/* おもろカントリー 体験予約フォーム */
:root {
	--green: #1d5c3a;
	--green-dark: #144529;
	--green-pale: #e6f0ea;
	--tee: #f0a81c;
	--tee-pale: #fff6e0;
	--ink: #1f2a24;
	--sub: #5b6b62;
	--line: #cfd9d3;
	--bg: #eef3f0;
	--error: #a8322d;
	--error-pale: #fdeeed;
	--radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.75;
}

/* ---------- ヘッダー / フッター ---------- */
.site-header {
	background: #fff;
	border-bottom: 4px solid var(--green);
	padding: 14px 16px;
	text-align: center;
}
.site-header .logo { height: 52px; width: auto; max-width: 70%; }

.site-footer {
	padding: 28px 16px 40px;
	text-align: center;
	color: var(--sub);
	font-size: 13px;
}

.container {
	max-width: 640px;
	margin: 0 auto;
	padding: 24px 16px 8px;
}

h1 {
	margin: 20px 0 8px;
	font-size: 1.55rem;
	line-height: 1.4;
	color: var(--green-dark);
}
.lead { margin: 0 0 20px; color: var(--sub); }

/* ---------- ステップ表示 ---------- */
.steps {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 6px;
}
.steps li {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 4px;
	border-bottom: 3px solid var(--line);
	color: var(--sub);
	font-size: 14px;
	font-weight: 600;
}
.steps .step-no {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--line);
	color: #fff;
	font-size: 12px;
}
.steps .is-current { color: var(--green-dark); border-bottom-color: var(--green); }
.steps .is-current .step-no { background: var(--green); }
.steps .is-done { color: var(--green); border-bottom-color: var(--green); }
.steps .is-done .step-no { background: var(--green); }

/* ---------- カード ---------- */
.card {
	background: #fff;
	border-radius: var(--radius);
	padding: 24px 20px;
	box-shadow: 0 1px 3px rgba(20, 69, 41, .08), 0 6px 20px rgba(20, 69, 41, .06);
}

/* ---------- 電話予約の案内 ---------- */
.tel-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 20px;
	padding: 16px 18px;
	background: var(--tee-pale);
	border: 1.5px solid var(--tee);
	border-radius: var(--radius);
}
.tel-box--compact { margin: 20px 0 0; }
.tel-text { min-width: 0; }
.tel-lead { margin: 0; font-weight: 700; line-height: 1.5; }
.tel-hours { margin: 2px 0 0; font-size: 13px; color: var(--sub); }

/* ---------- フォーム ---------- */
.form-group { margin-bottom: 20px; }

label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
	font-size: 15px;
}

.badge {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	vertical-align: 1px;
}
.badge-req { background: var(--error); color: #fff; }
.badge-opt { background: var(--line); color: var(--sub); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	font: inherit;
	font-size: 16px; /* iOSの自動ズーム防止 */
	color: var(--ink);
	background: #fff;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	appearance: none;
	-webkit-appearance: none;
}
select {
	padding-right: 38px;
	background-image: linear-gradient(45deg, transparent 50%, var(--sub) 50%),
		linear-gradient(135deg, var(--sub) 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
}
input:focus-visible,
select:focus-visible,
.btn:focus-visible {
	outline: 3px solid rgba(29, 92, 58, .35);
	outline-offset: 1px;
	border-color: var(--green);
}

.hint { margin: 6px 0 0; font-size: 13px; color: var(--sub); }
.note {
	margin: 0 0 16px;
	padding: 10px 14px;
	background: var(--green-pale);
	border-radius: 8px;
	font-size: 14px;
}
.divider { border: 0; border-top: 1px solid var(--line); margin: 28px 0 20px; }

.datetime-row {
	display: grid;
	grid-template-columns: 1fr 160px;
	gap: 12px;
}

/* ---------- ボタン ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary {
	width: 100%;
	margin-top: 8px;
	background: var(--green);
	color: #fff;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:disabled { background: var(--sub); cursor: wait; }

.btn-secondary {
	background: #fff;
	color: var(--green-dark);
	border-color: var(--green);
}
.btn-secondary:hover { background: var(--green-pale); }

.btn-tel {
	flex-shrink: 0;
	background: var(--tee);
	color: #3a2800;
	font-size: 1.1rem;
	white-space: nowrap;
}
.btn-tel:hover { background: #dc9610; }
.tel-icon { font-size: 1.1em; }

.btn-row { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.btn-row .btn-primary { margin-top: 0; }

/* ---------- エラー ---------- */
.error-box,
.js-error {
	margin: 0 0 20px;
	padding: 14px 16px;
	background: var(--error-pale);
	border: 1.5px solid var(--error);
	border-radius: 10px;
	color: var(--error);
}
.error-box .error-title { margin: 0 0 4px; font-weight: 700; }
.error-box ul { margin: 0; padding-left: 1.3em; }
.js-error { margin-top: 8px; font-weight: 700; }
.js-error[hidden] { display: none; }

/* ---------- 確認画面 ---------- */
.confirm-list { margin: 0; }
.confirm-list > div {
	display: grid;
	grid-template-columns: 9em 1fr;
	gap: 4px 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}
.confirm-list > div:first-child { padding-top: 0; }
.confirm-list dt { color: var(--sub); font-size: 14px; font-weight: 600; }
.confirm-list dd { margin: 0; font-weight: 600; word-break: break-all; }

/* ---------- 完了画面 ---------- */
.done { text-align: center; padding: 32px 20px; }
.done h1 { margin-top: 12px; }
.done p { margin: 0 0 8px; }
.done-mark {
	position: relative;
	width: 64px;
	height: 64px;
	margin: 0 auto;
	border-radius: 50%;
	background: var(--green);
}
.done-mark::after {
	content: "";
	position: absolute;
	left: 22px;
	top: 14px;
	width: 14px;
	height: 28px;
	border: solid #fff;
	border-width: 0 5px 5px 0;
	transform: rotate(45deg);
}

/* ---------- スマホ ---------- */
@media (max-width: 640px) {
	.datetime-row { grid-template-columns: 1fr; }
	.tel-box { flex-direction: column; align-items: stretch; text-align: center; }
	.btn-tel { width: 100%; }
	.confirm-list > div { grid-template-columns: 1fr; gap: 0; }
	h1 { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
	.btn { transition: none; }
}
