@charset "utf-8";

/* ベース */
* {
	box-sizing: border-box;
}

html {
	font-size: 100%;
}

body {
	margin: 0;
	background: #fff;
	color: #333;
	font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, メイリオ, sans-serif;
	font-size: .9375em;
	line-height: 1.7;
	-webkit-text-size-adjust: 100%;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: bottom;
}

a {
	color: #1e2186;
}

[hidden] {
	display: none;
}

/* ヘッダー */
.reserve-header {
	border-bottom: 1px solid #e3e7ea;
	background: #fff;
}

.reserve-header__inner {
	max-width: 1000px;
	margin: 0 auto;
	padding: 10px 15px;
}

.reserve-header__logo {
	display: inline-block;
}

.reserve-header__logo img {
	max-height: 40px;
	width: auto;
}

@media (min-width:768px) {
	.reserve-header__inner {
		padding: 15px 20px;
	}

	.reserve-header__logo img {
		max-height: 56px;
	}
}

/* 本文レイアウト */
.reserve-main {
	padding: 25px 0 50px;
	background: #f6f8f9;
}

.reserve-inner {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 15px;
}

@media (min-width:768px) {
	.reserve-main {
		padding: 40px 0 70px;
	}

	.reserve-inner {
		padding: 0 20px;
	}
}

.reserve-title {
	margin: 0 0 15px;
	color: #1e2186;
	font-size: 1.25em;
	line-height: 1.4;
	text-align: center;
}

.reserve-title span {
	display: block;
	margin-top: 5px;
	font-size: .8em;
}

.reserve-lead {
	margin: 0 0 25px;
	font-size: .9333em;
	text-align: center;
}

@media (min-width:768px) {
	.reserve-title {
		font-size: 1.625em;
	}

	.reserve-lead {
		margin-bottom: 35px;
	}
}

/* フォーム全体 */
.reserve-form {
	padding: 20px 15px;
	border-radius: 4px;
	background: #fff;
}

@media (min-width:768px) {
	.reserve-form {
		padding: 35px 40px;
	}
}

.form-row {
	margin-bottom: 22px;
}

.form-row__head {
	margin-bottom: 6px;
}

.form-label {
	font-weight: bold;
}

.form-sublabel {
	display: block;
	margin-bottom: 3px;
	color: #6b7780;
	font-size: .8666em;
}

.form-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 7px;
	border-radius: 3px;
	color: #fff;
	font-size: .7333em;
	font-weight: bold;
	line-height: 1.6;
	vertical-align: 2px;
}

.form-badge--required {
	background: #e8543f;
}

.form-badge--optional {
	background: #7c8a95;
}

.form-privacy-link {
	font-weight: bold;
	text-decoration: underline;
}

/* 入力欄 */
.reserve-form input[type="text"],
.reserve-form input[type="tel"],
.reserve-form input[type="email"],
.reserve-form input[type="number"],
.reserve-form select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d5dbe0;
	border-radius: 3px;
	background: #fff;
	color: #333;
	font-family: inherit;
	font-size: 1em;
	line-height: 1.4;
}

/* 他の入力欄と見た目を揃えるためスピンボタンを消す */
.reserve-form input[type="number"] {
	-moz-appearance: textfield;
	appearance: textfield;
}

.reserve-form input[type="number"]::-webkit-outer-spin-button,
.reserve-form input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.reserve-form input::placeholder {
	color: #b6bfc6;
}

.reserve-form input:focus,
.reserve-form select:focus {
	border-color: #34a8dd;
	outline: none;
}

/* 入力チェックの結果を枠線で示す（formrunがクラスを付け外しする） */
.reserve-form input[type="text"].is-error,
.reserve-form input[type="tel"].is-error,
.reserve-form input[type="email"].is-error,
.reserve-form input[type="number"].is-error,
.reserve-form select.is-error {
	border-color: #e8543f;
	background: #fdf7f6;
}

.reserve-form input[type="text"].is-success,
.reserve-form input[type="tel"].is-success,
.reserve-form input[type="email"].is-success,
.reserve-form input[type="number"].is-success,
.reserve-form select.is-success {
	border-color: #6bbf8a;
}

.form-choice-list.is-error .form-choice {
	border-color: #e8543f;
	background: #fdf7f6;
}

.form-choice-list.is-success .form-choice {
	border-color: #6bbf8a;
}

.form-select {
	position: relative;
}

.form-select select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 32px;
}

.form-select:after {
	position: absolute;
	top: 50%;
	right: 12px;
	margin-top: -8px;
	color: #7c8a95;
	font-family: FontAwesome;
	content: "\f107";
	pointer-events: none;
}

.form-col2 {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -5px;
}

.form-col2__item {
	width: 50%;
	padding: 0 5px;
}

/* 選択肢 */
.form-choice-list {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -4px;
}

.form-choice {
	display: flex;
	align-items: center;
	width: 100%;
	margin: 0 4px 8px;
	padding: 10px 12px;
	border: 1px solid #d5dbe0;
	border-radius: 3px;
	cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease;
}

.form-choice:hover {
	border-color: #34a8dd;
}

.form-choice input {
	flex-shrink: 0;
	margin: 0 8px 0 0;
}

.form-choice > span {
	flex: 1;
}

.form-choice__body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.form-choice__date {
	margin-right: 8px;
	font-weight: bold;
}

.form-choice__type {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 10px;
	background: #34a8dd;
	color: #fff;
	font-size: .7333em;
	line-height: 1.7;
}

.form-choice-list--col2 .form-choice {
	width: calc(50% - 8px);
}

@media (min-width:768px) {
	.form-choice-list--schedule .form-choice {
		width: calc(50% - 8px);
	}
}

/* 注記・エラー・カウンタ */
.form-note {
	margin: 0 0 6px;
	color: #6b7780;
	font-size: .8666em;
}

.form-alert {
	margin: 10px 0 0;
	padding: 10px 12px;
	border-left: 4px solid #e8543f;
	background: #fdf1ef;
	color: #c0392b;
	font-size: .8666em;
	font-weight: bold;
	line-height: 1.6;
}

.form-count {
	display: flex;
	justify-content: space-between;
	margin-top: 4px;
	color: #8a949b;
	font-size: .8em;
}

.form-error {
	display: block;
	margin-top: 5px;
	color: #e8543f;
	font-size: .8666em;
}

/* 住所ブロック */
.form-block {
	margin-bottom: 22px;
	padding: 15px;
	border: 1px solid #e3e7ea;
	border-radius: 4px;
	background: #fafbfc;
}

.form-block__title {
	margin: 0 0 12px;
	font-weight: bold;
}

.form-block .form-row:last-child {
	margin-bottom: 0;
}

/* 確認画面 */
.form-confirm {
	padding: 10px 12px;
	border-radius: 3px;
	background: #f2f5f7;
	word-break: break-all;
}

.form-confirm span + span {
	margin-left: 8px;
}

.form-confirm-lead {
	margin: 0 0 15px;
	text-align: center;
}

/* ボタン */
.form-action {
	margin-top: 30px;
}

.form-submit {
	display: block;
	width: 100%;
	padding: 15px 10px;
	border: none;
	border-radius: 3px;
	background: #34a8dd;
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 1.0666em;
	font-weight: bold;
	transition: background-color .2s ease;
}

.form-submit:hover {
	background: #2b95c6;
}

.form-back {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 12px 10px;
	border: 1px solid #c3ccd2;
	border-radius: 3px;
	background: #fff;
	color: #56646e;
	cursor: pointer;
	font-family: inherit;
	font-size: .9333em;
	transition: background-color .2s ease;
}

.form-back:hover {
	background: #f2f5f7;
}

/* スパム対策（画面外に隠す） */
._formrun_gotcha {
	position: absolute;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

/* フッター */
.reserve-footer {
	padding: 25px 15px;
	border-top: 1px solid #e3e7ea;
	background: #fff;
	text-align: center;
}

.reserve-footer__home {
	display: inline-block;
	margin-bottom: 12px;
	font-size: .9333em;
}

.reserve-footer .copyright {
	margin: 0;
	color: #7c8a95;
	font-size: .7333em;
}

/* ページトップ（style.css の .page-top を踏襲） */
.page-top {
	width: 40px;
	position: fixed;
	bottom: 140px;
	right: 0;
	z-index: 5;
	padding: 7px 0;
	border-radius: 50% 0 0 50%;
	background: rgba(77, 76, 76, .8);
	color: #1e2186;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
}

.page-top.is-visible {
	opacity: 1;
	visibility: visible;
}

@media (min-width:768px),
print {
	.page-top {
		width: auto;
		bottom: 60px;
		cursor: pointer;
		padding: 5px 10px 5px 20px;
		border-radius: 15px 0 0 15px;
		font-size: .8125em;
		color: #fff;
	}

	.page-top:before {
		display: inline-block;
		vertical-align: middle;
		font-family: Times New Roman;
		font-style: italic;
		content: "PAGE TOP";
	}
}

@media print {
	.page-top {
		display: none;
	}
}

.page-top:after {
	display: block;
	width: 25px;
	height: 25px;
	margin: 0 auto;
	border-radius: 50%;
	background: #fff;
	font-family: FontAwesome;
	content: "\f106";
	transition: all .25s ease;
}

@media (min-width:768px),
print {
	.page-top:after {
		display: inline-block;
		vertical-align: middle;
		width: 14px;
		height: 14px;
		margin-left: 10px;
		color: #717070;
		line-height: normal;
	}
}

@media (min-width:768px) {
	.page-top:hover {
		background: rgba(0, 0, 0, .8);
	}

	.page-top:hover:after {
		transform: scale(1.5);
	}
}

/* 選択中の日程（画面下部に固定表示） */
.selected-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 6;
	padding: 10px 15px;
	border-top: 1px solid #d5dbe0;
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 -2px 8px rgba(0, 0, 0, .08);
}

.selected-bar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	max-width: 720px;
	margin: 0 auto;
}

.selected-bar__label {
	flex-shrink: 0;
	margin-right: 8px;
	padding: 1px 8px;
	border-radius: 3px;
	background: #34a8dd;
	color: #fff;
	font-size: .7333em;
	font-weight: bold;
	line-height: 1.7;
}

.selected-bar__value {
	font-weight: bold;
}

/* 固定バーが送信ボタンやフッターに重ならないようにする */
body.has-selected-bar {
	padding-bottom: 56px;
}

@media (min-width:768px) {
	body.has-selected-bar .page-top {
		bottom: 120px;
	}
}

@media print {
	.selected-bar {
		display: none;
	}
}

/* 送信完了ページ */
.reserve-thanks {
	max-width: 720px;
	margin: 0 auto;
	padding: 40px 15px 60px;
	text-align: center;
}

.reserve-thanks__title {
	margin: 0 0 20px;
	color: #1e2186;
	font-size: 1.25em;
}

.reserve-thanks__box {
	margin: 25px 0;
	padding: 20px 15px;
	border-radius: 4px;
	background: #f6f8f9;
	text-align: left;
}

.reserve-thanks__box p {
	margin: 0 0 10px;
}

.reserve-thanks__box p:last-child {
	margin-bottom: 0;
}

.reserve-thanks__home {
	display: inline-block;
	margin-top: 10px;
	padding: 13px 40px;
	border-radius: 3px;
	background: #34a8dd;
	color: #fff;
	font-weight: bold;
	text-decoration: none;
	transition: background-color .2s ease;
}

.reserve-thanks__home:hover {
	background: #2b95c6;
}

@media (min-width:768px) {
	.reserve-thanks {
		padding: 60px 20px 80px;
	}

	.reserve-thanks__title {
		font-size: 1.625em;
	}

	.reserve-thanks__box {
		padding: 25px 30px;
	}
}

/* 学校名の候補リスト */
.form-combobox {
	position: relative;
}

/* 画面下部の固定バー（z-index:6）より前面に出す */
.form-combobox__list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 7;
	max-height: 250px;
	margin: 2px 0 0;
	padding: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid #d5dbe0;
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
	list-style: none;
}

.form-combobox__option {
	padding: 10px 12px;
	border-bottom: 1px solid #eef1f3;
	line-height: 1.4;
	cursor: pointer;
}

.form-combobox__option:last-child {
	border-bottom: none;
}

.form-combobox__option.is-active {
	background: #eaf6fc;
}

.form-combobox__meta {
	display: block;
	margin-top: 2px;
	color: #6b7780;
	font-size: .8em;
}

.form-combobox__count {
	margin: 4px 0 0;
	color: #6b7780;
	font-size: .8666em;
}

.form-combobox__count:empty {
	display: none;
}

@media (min-width:768px) {
	.form-combobox__option:hover {
		background: #f2f8fb;
	}
}
