/* フォーム */
.wpcf7-form {
	margin-top: 0;
}
#form {
	padding: 4em 10px 5em;
	background: #f5f5f5;
}
@media (max-width: 599px) {
	#form {
		padding: 3em 10px 5em;
	}
}

.lp-content__inner #form {
	padding: 5em 10px;
}
#form p {
	letter-spacing: 0.05em;
}
#form .fotm__title {
	display: block;
	width: 100%;
	text-align: center;
	font-size: 1.4em;
	font-weight: bold;
}
#form .form__head-subtitle {
	display: block;
	text-align: center;
}
#form .form__subtext {
	position: relative;
	display: block;
	font-size: 0.9em;
	margin: 0.5em 0;
	padding-left: 1.7em;
}
#form .form__subtext a {
	color: var(--color_link);
	text-decoration: underline;
}
#form .form__subtext::before {
	content: "";
	position: absolute;
	top: 0.2em;
	left: 0.2em;
	display: inline-block;
	width: 1.1em;
	height: 1.1em;
	background: url(/wp-content/themes/swell_child/assets/img/info-icon.png) no-repeat center;
	background-size: contain;
}
#form .form__linktext {
	color: #0073aa;
	text-decoration: underline;
}


#form input,
#form select,
#form textarea {
	background: #ffffff;
}
#form select,
#form input:not(#form input[type="radio"]):not(#form input[type="checkbox"]),
#form textarea {
	width: 100%;
	padding: 0.8em 1.2em;
	outline: none;
	border-radius: 4px;
}
#form textarea {
	height: 100px;
}
#form .wpcf7-radio,
#form .wpcf7-checkbox {
	display: block;
	padding: 10px 0 !important;
}
#form .form__inner {
	width: 100%;
	max-width: 800px;
	margin: auto;
}
#form .form__title {
	margin: 2em 0 0.5em;
}
#form .admin-only .form__title {
	margin: 0.8em 0 0.2em;
}
#form .form__ne,
#form .form__op,
#form .form__admin {
	margin-right: 0.5em;
	padding: 0.3em 0.6em 0.3em 0.8em;
	background-color: var(--color_main);
	color: white;
	font-size: 0.9em;
	border-radius: 4px;
	letter-spacing: 0.1em;
}
#form .form__op,
#form .form__admin {
	background-color: #888888;
}
#form .form__input-col {
	display: flex;
	gap: 1em;
	justify-content: space-between;
}
#form .form__input-col > span {
	flex-basis: 48%;
}
#form .wpcf7-not-valid-tip {
	color: #ce0000;
	margin: 0.5em;
	font-weight: bold;
}
#form .form__finishtext {
	margin-top: 3em;
}
#form .wpcf7-submit {
	display: block;
	max-width: 320px;
	background: #de2a2d;
	color: #fff;
	margin: 1em auto 0;
	padding: 0.4em 0 !important;
	border-radius: 5px;
	letter-spacing: 0.2em;
	transition: .3s;
	box-shadow: 0 0.2em 0.2em 0 #00000044;
}
#form .form_submit-top {
	font-size: 0.8em;
	margin: 3em auto 0;
	text-align: center;
}
#form .form_submit-top a {
	color: #0073aa;
	text-decoration: underline;
}
#form .wpcf7-response-output {
	background: #ffffff;
	border-radius: 4px;
	text-align: center;
}
#form .wpcf7-spinner {
	display: table;
	margin: 1.5em auto;
}
.form__head-title {
	max-width: 600px;
	margin: 0 auto 60px;
}

.form__head-text {
	max-width: 600px;
	margin: 0 auto 60px;
}

#form input[type="text"].wpcf7-validates-as-required:not(.inputted):not([name="form_kana1"]):not([name="form_kana2"]),
#form input[type="tel"].wpcf7-validates-as-required:not(.inputted),
#form input[type="email"].wpcf7-validates-as-required:not(.inputted),
#form textarea.wpcf7-validates-as-required:not(.inputted) {
	background: #f7e6e7;
}

.form__withconsul {
	display: table;
	width: 100%;
	max-width: 500px;
}
/*
.form__withconsul {
	position: relative;
	display: table;
	width: auto;
	border-radius: 8px;
	margin-top: 30px;
	padding: 12px 25px 12px;
	font-weight: bold;
	color: #0090d9;
	background: #ffffff;
	box-shadow: 3px 3px 4px 0 #00000033;
	text-align: center;
}

.form__withconsul::before {
	content: "";
	position: absolute;
	top: -30px;
	left: calc(40% - 20px);
	display: block;
	border-bottom: 30px solid #ffffff;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
}

.form__withconsul .numtext {
	color: #ce0000 !important;
	font-weight: bold;
}

.form__withconsul .pernum {
	font-size: 1.6em;
}

.form__withconsul .per {
	font-size: 1.2em;
}
*/

.form_banner_top {
	margin-bottom: 15px !important;
	font-weight: bold;
	text-align: center;
}

.form_banner {
	display: block;
	width: 92%;
	max-width: 600px;
	margin: 0 auto 60px;
	box-shadow: 0 3px 8px 0 #00000044;
}


@media (max-width: 599px) {
	#form .wpcf7-submit {
		margin-top: 3vw;
	}
	#form .form_submit-top {
		margin-top: 8vw;
	}
	.form__head-title {
		margin-bottom: 8vw;
	}
	.form__head-text {
		margin-bottom: 10vw;
	}
	.form_banner_top {
		margin-bottom: 10px !important;
	}
}






/* 説明会の空き状況カレンダー */
.sb_availability {
	width: 100%;
	overflow-x: auto;
}

.sb_availability table {
	width: 100%;
	min-width: 620px;
	background: #ffffff;
	border: 4px solid #008FD9;
}

.sb_availability th,
.sb_availability td {
	padding: 1em 0.5em;
	border: 1px solid #cccccc;
	text-align: center;
	font-size: 14px;
	font-weight: bold;
	letter-spacing: 0;
	line-height: 18px;
}

.sb_availability th {
	padding: 1em 0;
}

.sb_availability th:not(:first-child) {
	width: calc(100% / 11);
}

.sb_availability_text {
	text-align: center;
}

.sb_availability .saturday {
	background: #EDF3FB;
}

.sb_availability .sunday {
	background: #FCF2F2;
}

.sb_availability .available {
	color: #008FD9;

}

.sb_availability .few-left {
	color: #CE0000;
}

.sb_availability .closed {
	color: #888888
}

.dash {
	background: #dddddd;
	color: #666666;
}

.sb_availability_text {
	display: block;
	margin-top: 1.5em !important;
}
/* iPhone は入力欄の文字が 16px 未満だと、押したときに画面を拡大する（拡大されたまま入力することになり、フォームが入れにくい）。
   スマホの幅では入力欄の文字を 16px にする（2026-10-04 Claude Code。S・G・U のどのフォームのページでもこのファイルが読まれる） */
@media (max-width: 767px) {
	form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
	form select,
	form textarea {
		font-size: 16px !important;
	}
}
