/* ============================================================
   form.css — フォームページ共通スタイル
   読み込み順: base.css → common.css → pages/inner.css → pages/form.css
   entry / acci / agency / kojinjoho の各フォーム入力・確認・完了ページで使用
   ============================================================ */

/* ===== フォームラッパー ===== */

.form-wrap {
	max-width: 900px;
	margin: 80px auto 120px;
	padding: 0 20px;
}

/* ===== イントロ ===== */

.form-intro {
	text-align: center;
	margin-bottom: 48px;
}

.form-intro__catch {
	font-family: 'Outfit', sans-serif;
	font-weight: 600;
	font-size: 28px;
	background: linear-gradient(90deg, #9BD7E8 0%, #00A7D4 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 16px;
}

.form-intro__desc {
	font-size: 15px;
	line-height: 1.8;
}

/* ===== ステップ ===== */

.form-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin-bottom: 48px;
}

.form-steps__line {
	width: 32px;
	height: 2px;
	background: #00A7D4;
	flex-shrink: 0;
}

.form-steps__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 16px 50px;
	border: 1px solid #00A7D4;
	border-radius: 12px;
	min-width: 250px;
	background: #fff;
}

.form-steps__item--active {
	background: linear-gradient(135deg, #9BD7E8 0%, #00A7D4 100%);
	border-color: transparent;
	border: none;
}

.form-steps__num {
	font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.05em;
	color: #00A7D4;
	line-height: 1;
}

.form-steps__item--active .form-steps__num {
	color: #fff;
}

.form-steps__name {
	font-weight: 600;
	font-size: 18px;
	color: #000;
}

.form-steps__item--active .form-steps__name {
	color: #fff;
}

/* ===== エラー表示 ===== */

.form-errors {
	background: #FFF0F0;
	border: 1px solid #E00;
	border-radius: 12px;
	padding: 24px 28px;
	margin-bottom: 32px;
}

.form-errors__title {
	font-weight: 700;
	font-size: 15px;
	color: #CC0000;
	margin-bottom: 12px;
}

.form-errors__item {
	font-size: 14px;
	color: #CC0000;
	line-height: 1.8;
}

/* ===== フォームカード ===== */

.form-card {
	background: #fff;
	border-radius: 16px;
	filter: drop-shadow(0px 0px 15px rgba(0, 0, 0, 0.15));
	padding: 60px;
}

/* ===== フィールド共通 ===== */

.form-fields {
	display: flex;
	flex-direction: column;
	gap: 36px;
	margin-bottom: 48px;
}

.form-field {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.form-field__head {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.form-field__label {
	font-weight: 500;
	font-size: 16px;
	color: #000;
	letter-spacing: 0.06em;
}

.form-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px 4px;
	background: #00A7D4;
	border-radius: 4px;
	font-weight: 600;
	font-size: 12px;
	color: #fff;
	letter-spacing: 0.04em;
	flex-shrink: 0;
}

.form-field__note {
	font-size: 13px;
	color: var(--color-sub);
}

/* ===== テキスト入力 ===== */

.form-input {
	display: block;
	width: 100%;
	padding: 15px 20px;
	border: 1px solid #CECECE;
	letter-spacing: 0.05em;
	border-radius: 12px;
	font-size: 16px;
	font-family: inherit;
	color: #000;
	background: #fff;
	transition: border-color 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.form-input:focus {
	outline: none;
	border-color: #00A7D4;
	box-shadow: 0 0 3px 3px rgba(0, 167, 212, 0.15);
}

.form-input.error {
	border-color: #CC0000;
}

.form-input.error:focus {
	border-color: #CC0000;
	box-shadow: 0 0 3px 3px rgba(204, 0, 0, 0.15);
}

.form-input::placeholder {
	color: #C0C0C0;
}

/* ===== セレクト ===== */

.form-select-wrap {
	position: relative;
}

.form-select-wrap::after {
	content: '';
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-60%) rotate(45deg);
	width: 8px;
	height: 8px;
	border-right: 2px solid #00A7D4;
	border-bottom: 2px solid #00A7D4;
	pointer-events: none;
}

.form-select {
	display: block;
	width: 100%;
	padding: 20px 52px 20px 24px;
	border: 1px solid #CECECE;
	border-radius: 12px;
	font-size: 16px;
	font-family: inherit;
	color: #000;
	background: #fff;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: border-color 0.2s;
}

.form-select:focus {
	outline: none;
	border-color: #00A7D4;
	box-shadow: 0 0 3px 3px rgba(0, 167, 212, 0.15);
}

.form-select.error {
	border-color: #CC0000;
}

.form-select.error:focus {
	border-color: #CC0000;
	box-shadow: 0 0 3px 3px rgba(204, 0, 0, 0.15);
}

/* ===== チェックボックス ===== */

.form-checkboxes {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
}

.form-checkboxes label,
.form-checkbox-wrap label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	color: #000;
	cursor: pointer;
}

.form-checkboxes input[type="checkbox"],
.form-checkbox-wrap input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border: 1px solid #CECECE;
	border-radius: 4px;
	background: #fff;
	flex-shrink: 0;
	cursor: pointer;
	position: relative;
	transition: border-color 0.2s, background 0.2s;
}

.form-checkboxes input[type="checkbox"]:checked,
.form-checkbox-wrap input[type="checkbox"]:checked {
	background: #00A7D4;
	border-color: #00A7D4;
}

.form-checkboxes input[type="checkbox"]:checked::after,
.form-checkbox-wrap input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 2px;
	width: 4px;
	height: 9px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg);
}

.form-checkbox-wrap {
	margin-top: 10px;
}

/* ===== テキストエリア ===== */

.form-textarea {
	display: block;
	width: 100%;
	padding: 20px 24px;
	border: 1px solid #CECECE;
	border-radius: 12px;
	font-size: 16px;
	font-family: inherit;
	color: #000;
	background: #fff;
	resize: vertical;
	min-height: 160px;
	transition: border-color 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.form-textarea:focus {
	outline: none;
	border-color: #00A7D4;
	box-shadow: 0 0 3px 3px rgba(0, 167, 212, 0.15);
}

.form-textarea.error {
	border-color: #CC0000;
}

.form-textarea.error:focus {
	border-color: #CC0000;
	box-shadow: 0 0 3px 3px rgba(204, 0, 0, 0.15);
}

.form-textarea::placeholder {
	color: #C0C0C0;
}

/* ===== ラジオボタン ===== */

.form-radios {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
}

.form-radios label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	color: #000;
	cursor: pointer;
}

.form-radios input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	border: 1px solid #CECECE;
	border-radius: 50%;
	background: #fff;
	flex-shrink: 0;
	cursor: pointer;
	position: relative;
	transition: border-color 0.2s;
}

.form-radios input[type="radio"]:checked {
	border-color: #00A7D4;
	border-width: 6px;
}

/* ===== フォームセクションタイトル ===== */

.form-section-title {
	font-weight: 700;
	font-size: 18px;
	color: #000;
	padding-bottom: 12px;
	border-bottom: 1px solid #00A7D4;
	margin-top: 16px;
}

.form-section-title:first-child {
	margin-top: 0;
}

/* ===== 横並びインラインフィールド（名前の姓/名など） ===== */

.form-inline-fields {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.form-inline-fields .form-inline-label {
	font-size: 14px;
	color: #6D6D6D;
	flex-shrink: 0;
}

.form-inline-fields .form-input {
	flex: 1;
	min-width: 120px;
}

/* ===== 郵便番号グループ ===== */

.form-zip-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.form-zip-sep {
	font-size: 18px;
	color: #6D6D6D;
}

.form-zip-group .form-input {
	width: auto;
	flex: 1;
}

/* ===== プライバシー ===== */

.form-privacy {
	background: #F2FBFD;
	border-radius: 20px;
	padding: 32px;
	margin-bottom: 40px;
}

.form-privacy__heading {
	font-weight: 700;
	font-size: 16px;
	color: #000;
	margin-bottom: 12px;
}

.form-privacy__text {
	font-size: 14px;
	line-height: 1.9;
}

.form-privacy__text + .form-privacy__text {
	margin-top: 8px;
}

.form-privacy__link {
	color: #6D6D6D;
	text-decoration: underline;
}

.form-privacy__link:hover {
	opacity: 0.75;
}

/* ===== 送信ボタン ===== */

.form-submit-wrap {
	text-align: center;
}

.form-submit {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	padding: 16px 30px 16px 60px;
	background: #00A7D4;
	border: 1px solid #00A7D4;
	border-radius: 100px;
	font-weight: 600;
	font-size: 18px;
	font-family: inherit;
	color: #fff;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.2s;
	text-decoration: none;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

.form-submit:hover {
	background: #fff;
	color: #00A7D4;
	transition: background 0.3s;
}

.form-submit__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	flex-shrink: 0;
	position: relative;
}

.form-submit__arrow::after {
	content: '';
	width: 8px;
	height: 8px;
	border-right: 2px solid #fff;
	border-top: 2px solid #fff;
	transform: rotate(45deg) translateX(-1px);
}

.form-submit:hover .form-submit__arrow::after {
	border-right: 2px solid #00A7D4;
	border-top: 2px solid #00A7D4;
}

/* ===== 名前グリッド（姓/名それぞれに独立ラベル+バッジ） ===== */

.form-name-grid {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.form-name-col {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

/* ===== 注意事項（kojinjoho用） ===== */

.form-notice {
	margin-bottom: 48px;
}

.form-notice__desc {
	font-size: 16px;
	line-height: 1.8;
	margin-bottom: 24px;
}

.form-notice__heading {
	font-weight: 700;
	font-size: 18px;
	margin-bottom: 16px;
}

.form-notice__subheading {
	font-weight: 700;
	font-size: 16px;
	margin-top: 24px;
	margin-bottom: 12px;
}

.form-notice__list {
	list-style: disc;
	padding-left: 24px;
	font-size: 14px;
	line-height: 1.8;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-notice__list a {
	color: #959595;
	text-decoration: underline;
}

.form-notice__address-box {
	border: 1px solid #00A7D4;
	border-radius: 20px;
	padding: 32px;
	margin-top: 24px;
}

.form-notice__address-label {
	font-size: 14px;
	margin-bottom: 12px;
}

.form-notice__address-name {
	font-weight: 700;
	font-size: 18px;
	margin-bottom: 4px;
}

.form-notice__address-detail {
	font-size: 16px;
	line-height: 1.8;
}

.form-notice__address-note {
	font-size: 14px;
	line-height: 1.8;
	margin-top: 16px;
	color: #444;
}

.form-notice__address-note a {
	color: #959595;
	text-decoration: underline;
}

/* ===== プライバシーカード内（同意チェックボックス） ===== */

.form-privacy__card {
	background: #fff;
	border-radius: 15px;
	padding: 30px;
	margin-top: 20px;
}

.form-privacy__agree {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin-top: 20px;
}

/* ===== プライバシーノート（フォームカード内・submit前） ===== */

.form-privacy-note {
	font-size: 14px;
	line-height: 1.8;
	margin-bottom: 32px;
	text-align: center;
}

/* ===== 郵便番号記号 ===== */

.form-zip-sym {
	font-size: 16px;
	color: #000;
	flex-shrink: 0;
}

/* ===== チェックボックスエラー ===== */

.form-checkboxes input[type="checkbox"].error,
.form-checkbox-wrap input[type="checkbox"].error {
	border-color: #CC0000;
}

/* ===== レスポンシブ（名前グリッド） ===== */

@media (max-width: 600px) {
	.form-name-grid {
		flex-direction: column;
		gap: 20px;
	}
}

/* ===== 完了画面 ===== */

.form-thanks {
	text-align: center;
	padding: 60px 0 80px;
}

.form-thanks__icon {
	display: block;
	width: 80px;
	height: 80px;
	margin: 0 auto 32px;
}

.form-thanks__title {
	font-size: 28px;
	font-weight: 700;
	color: #00A7D4;
	margin-bottom: 24px;
	line-height: 1.4;
}

.form-thanks__desc {
	font-size: 15px;
	line-height: 1.9;
	color: #6D6D6D;
}

/* ===== 確認画面フィールド（ラベルと値の視覚的分離） ===== */

.form-fields--confirm .form-field__label {
	font-size: 14px;
	color: #959595;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.form-fields--confirm .form-badge {
	font-size: 11px;
	padding: 2px 8px 3px;
}

.form-fields--confirm .form-field__head {
	gap: 8px;
}

/* ===== 確認画面リード文 ===== */

.form-confirm-lead {
	text-align: center;
	font-size: 15px;
	line-height: 1.8;
	margin-bottom: 40px;
}

/* ===== 確認画面フィールド値 ===== */

.form-confirm-value {
	font-size: 16px;
	line-height: 1.8;
	color: #000;
}

/* ===== 確認画面ボタングループ ===== */

.form-confirm-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
}

.form-btn-back {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	padding: 16px 60px 16px 30px;
	background: #fff;
	border: 1px solid #00A7D4;
	border-radius: 100px;
	font-weight: 600;
	font-size: 18px;
	font-family: inherit;
	color: #00A7D4;
	cursor: pointer;
	transition: background 0.2s;
	text-decoration: none;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

.form-btn-back:hover {
	background: #F2FBFD;
}

.form-btn-back__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	flex-shrink: 0;
	position: relative;
}

.form-btn-back__arrow::after {
	content: '';
	width: 8px;
	height: 8px;
	border-left: 2px solid #00A7D4;
	border-bottom: 2px solid #00A7D4;
	transform: rotate(45deg) translateX(2px);
}

@media (max-width: 600px) {
	.form-confirm-actions {
		flex-direction: column;
	}
}

/* ===== レスポンシブ（スマホ共通） ===== */

@media (max-width: 600px) {

	/* ラッパー余白 */
	.form-wrap {
		margin: 40px auto 80px;
		padding: 0 16px;
	}

	/* ステップバー */
	.form-steps {
		gap: 0;
		margin-bottom: 32px;
	}

	.form-steps__item {
		min-width: 0;
		flex: 1;
		padding: 10px 8px;
		border-radius: 8px;
		gap: 4px;
	}

	.form-steps__line {
		width: 12px;
		flex-shrink: 0;
	}

	.form-steps__num {
		font-size: 12px;
		letter-spacing: 0.02em;
	}

	.form-steps__name {
		font-size: 11px;
		text-align: center;
	}

	/* エラーリスト */
	.form-errors {
		padding: 16px 20px;
	}

	/* カード */
	.form-card {
		padding: 28px 20px;
		border-radius: 12px;
	}

	/* フィールド間隔 */
	.form-fields {
		gap: 28px;
		margin-bottom: 36px;
	}

	/* セクションタイトル */
	.form-section-title {
		font-size: 16px;
	}

	/* プライバシーボックス */
	.form-privacy {
		padding: 20px 16px;
		border-radius: 14px;
	}

	.form-privacy__card {
		padding: 20px 16px;
	}

	/* 住所ボックス（kojinjoho） */
	.form-notice__address-box {
		padding: 20px 16px;
	}

	/* 送信ボタン */
	.form-submit {
		font-size: 14px;
		padding: 14px 24px 14px 48px;
		gap: 12px;
		width: 100%;
		justify-content: center;
	}

	.form-submit__arrow {
		width: 30px;
		height: 30px;
	}

	/* 戻るボタン */
	.form-btn-back {
		font-size: 16px;
		padding: 14px 48px 14px 24px;
		gap: 12px;
		width: 100%;
		justify-content: center;
	}

	.form-btn-back__arrow {
		width: 30px;
		height: 30px;
	}

	/* 確認画面ボタングループ */
	.form-confirm-actions {
		flex-direction: column;
		gap: 16px;
	}

	/* 確認画面リード文 */
	.form-confirm-lead {
		font-size: 14px;
		margin-bottom: 28px;
	}

	/* 確認画面フィールド値 */
	.form-confirm-value {
		font-size: 15px;
	}

	/* 完了画面 */
	.form-thanks {
		padding: 40px 0 60px;
	}

	.form-thanks__icon {
		width: 64px;
		height: 64px;
		margin-bottom: 24px;
	}

	.form-thanks__title {
		font-size: 22px;
	}

	.form-thanks__desc {
		font-size: 14px;
		text-align: left;
	}

	/* イントロ */
	.form-intro__catch {
		font-size: 22px;
	}

	.form-intro__desc {
		font-size: 14px;
	}

	/* チェックボックス・ラジオ縦並び */
	.form-checkboxes {
		gap: 12px 0;
		flex-direction: column;
	}

	.form-radios {
		gap: 12px 0;
		flex-direction: column;
	}

	/* 郵便番号グループ */
	.form-zip-group .form-input {
		min-width: 0;
	}
}
