/* KUJIRA 予約フォーム
   2テーマ構造:
   - 基本(クラスなし)      = ブランド折衷: 白背景・角丸0・影なし・黄は点(kujira-createve/design.md準拠)
   - body.theme-soft = ソフト: クリーム背景・角丸・柔影・黄の面使い(参考デザイン準拠)
   構造・レイアウトは両テーマ共通。 */

:root {
  --brand: #ffd52b;
  --ink: #1b1b1b;
  --ink-sub: #666666;
  --ink-faint: #888888;
  --bg: #ffffff;
  --bg-alt: #f9f9f9;
  --line: #eeeeee;
  --line-strong: #cccccc;
  --error: #b23a48;

  /* テーマ変数(既定=ブランド折衷: 薄グレー地に白パネル) */
  --page-bg: #f5f5f5;
  --panel-bg: #ffffff;
  --panel-border: 1px solid var(--line);
  --panel-shadow: none;
  --r-panel: 24px;
  --r-card: 0px;
  --r-input: 0px;
  --r-photo: 0px;
  --card-shadow: none;
  --icon-chip-bg: #f5f5f5;
  --box-bg: var(--bg-alt);
  --box-border: var(--line);
}
body.theme-soft {
  --page-bg: #f6f1e8;
  --panel-bg: #ffffff;
  --panel-border: 1px solid #f0e9db;
  --panel-shadow: 0 16px 48px rgba(70, 55, 20, 0.08);
  --r-panel: 24px;
  --r-card: 14px;
  --r-input: 10px;
  --r-photo: 18px;
  --card-shadow: 0 2px 12px rgba(70, 55, 20, 0.05);
  --icon-chip-bg: #faf3e2;
  --box-bg: #faf7f0;
  --box-border: #f0e9db;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--page-bg);
}

.en { font-family: 'Montserrat', sans-serif; }
[hidden] { display: none !important; }

/* ================= レイアウト(左ヒーロー+右パネル) ================= */

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 12px 48px;
}

.hero { padding: 16px 8px 24px; }
.hero .logo {
  display: block;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 24px;
}
.hero-badge {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border-radius: 100px;
  padding: 7px 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;
}
.hero h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.55;
  margin: 14px 0 16px;
}
.hero-sub { font-size: 14px; color: var(--ink-sub); line-height: 1.9; }

.badges {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* 常に3列(375pxでも折り返さない) */
  gap: 8px;
  margin: 24px 0;
}
.badges li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 16px 6px 14px;
  text-align: center;
  line-height: 1.4;
}
.badges .b-title { font-size: 13px; font-weight: 700; }
.badges .b-desc { font-size: 10.5px; font-weight: 500; color: var(--ink-sub); line-height: 1.5; }
@media (max-width: 1023px) {
  .badges .b-title { font-size: 12px; }
  .badges .b-desc { font-size: 9.5px; }
}
@media (max-width: 389px) {
  .badges .b-title { font-size: 11px; }  /* 375pxで「日程調整まで完結」を1行に収める */
}
.badges .b-ic { display: flex; }
.badges svg { width: 22px; height: 22px; }
@media (min-width: 1024px) {
  .badges { max-width: 420px; }
  .badges li { font-size: 12px; }
}

/* 対応エリア(F-20: ヒーロー内の入口) */
.area-info {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin: 24px 0 8px;
}
.area-eyebrow {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-sub);
}
.area-summary { font-size: 14px; font-weight: 700; margin: 6px 0 8px; }
.area-link { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1024px) {
  .area-info { max-width: 420px; }  /* バッジ列と幅を揃える */
}

.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-photo);
}

.panel {
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: var(--r-panel);
  box-shadow: var(--panel-shadow);
  padding: 28px 20px 48px;
}

/* SPではバッジ・見出しをロゴと同じ中央揃えに(2026-07-19 クライアントFB) */
@media (max-width: 1023px) {
  .hero-badge { display: table; margin-left: auto; margin-right: auto; }
  .hero h1 { text-align: center; }
}

/* SPではStep2以降、ヒーローのコピー・写真を畳んでフォームに集中させる(ロゴのみ残す) */
@media (max-width: 1023px) {
  body.hero-compact .hero-copy,
  body.hero-compact .hero-photo { display: none; }
  body.hero-compact .hero { padding-bottom: 0; }
  body.hero-compact .hero .logo { margin-bottom: 12px; }
}

@media (min-width: 1024px) {
  .page {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(560px, 660px);
    gap: 56px;
    align-items: start;
    padding: 48px 40px 96px;
  }
  .hero { position: sticky; top: 48px; padding: 0; }
  .hero .logo { text-align: left; margin-bottom: 48px; font-size: 30px; }
  .hero h1 { font-size: 34px; margin: 18px 0 20px; }
  .hero-sub { font-size: 15px; }
  .badges { margin: 28px 0 32px; }
  .panel { padding: 40px 40px 56px; }
}

/* ================= 電話案内 ================= */

.phone-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-sub);
  text-align: center;
  margin-bottom: 24px;
}
.phone-note strong { color: var(--ink); font-weight: 500; }

/* ================= プログレス(STEP n/3 + バー) ================= */

.progress { margin-bottom: 36px; }
.step-count {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ink-sub);
}
.step-count strong { font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: 0; }
.p-steps { display: flex; gap: 8px; margin-top: 14px; }
.p-step { flex: 1; text-align: center; }
.p-bar {
  display: block;
  height: 4px;
  border-radius: 100px;
  background: var(--line);
  transition: background 0.2s ease;
}
.p-bar.filled { background: var(--brand); }
.p-lab {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--line-strong);  /* 未到達=disabledグレー */
}
.p-lab.done { color: var(--ink); }
.p-lab.current { color: var(--ink); }
body.theme-soft .p-lab.current { color: #c09a00; }

/* ================= 見出し ================= */

.section-label {
  font-size: 16px;
  font-weight: 700;
  border-left: 6px solid var(--brand);
  padding-left: 12px;
  line-height: 1.5;
  margin: 48px 0 20px;
}
.section-label.first { margin-top: 0; }
body.theme-soft .section-label { border-left: 0; padding-left: 0; font-size: 17px; }

.req {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  padding: 1px 8px;
  margin-left: 10px;
  vertical-align: 2px;
}
body.theme-soft .req { background: var(--brand); color: var(--ink); border-radius: 100px; padding: 2px 12px; }
.req-lead { margin-left: 0; margin-right: 10px; } /* 文頭に置く必須バッジ(同意チェック用) */
.opt {
  display: inline-block;
  color: var(--ink-faint);
  font-size: 11px;
  margin-left: 8px;
}

/* ================= 選択カード ================= */

.opt-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.opt-grid.pair { grid-template-columns: 1fr 1fr; }
.opt-grid.single { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .opt-grid { grid-template-columns: 1fr 1fr; }
  .opt-grid.single { grid-template-columns: 1fr; }
}

.opt-card {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: var(--bg);
  border: 1px solid #e5e5e5;
  border-radius: 14px;           /* 2026-07-19 クライアントFB: 選択カードのみ角丸 */
  box-shadow: var(--card-shadow);
  padding: 15px 14px;
  cursor: pointer;
  position: relative;            /* インジケーター(.opt-mark)の絶対配置基準 */
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
body.theme-soft .opt-card { border-color: #ececec; }
.opt-card:hover { border-color: var(--brand); }
.opt-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt-card.selected { border: 2px solid var(--brand); background: #fffbec; padding: 14px 13px; }

.opt-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 100px;
  background: var(--icon-chip-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.opt-icon svg { width: 24px; height: 24px; }

.opt-body { flex: 1; min-width: 0; padding-right: 20px; }  /* 右上インジケーターとの重なり回避 */
.opt-title { display: block; font-size: 15px; font-weight: 700; line-height: 1.5; }
.opt-desc { display: block; font-size: 12px; color: var(--ink-sub); line-height: 1.6; margin-top: 2px; }
.opt-place { display: flex; align-items: flex-start; gap: 5px; margin-top: 8px; }
.opt-card .opt-place { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }  /* 場所情報の前に区切り線 */
.opt-card.selected .opt-place { border-top-color: #f2e7bd; }
.opt-card.selected .opt-icon { background: #faf3e2; }
.opt-place-ic { flex: 0 0 auto; display: flex; margin-top: 1px; }
.opt-place-ic svg { width: 15px; height: 15px; }
.opt-place-body { min-width: 0; }
.opt-place-name { display: block; font-size: 12px; font-weight: 500; line-height: 1.5; }
.opt-place-addr { display: block; font-size: 11px; color: var(--ink-sub); line-height: 1.5; }

.opt-mark {
  width: 24px;
  height: 24px;
  position: absolute;            /* カード右上に固定(2026-07-19 クライアントFB。richカード内は除外) */
  top: 14px;
  right: 14px;
  border: 2px solid var(--line-strong);
  border-radius: 100px;          /* 単一選択=円 */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.opt-mark.sq { border-radius: 6px; }  /* 複数選択=角丸四角 */
.opt-card.selected .opt-mark { background: var(--brand); border-color: var(--brand); }
.opt-card.selected .opt-mark::after {
  content: '';
  width: 10px;
  height: 5px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
  margin-top: -3px;
}

/* サムネイル付きイベントカード */
.opt-card.rich {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;              /* 角丸14pxにサムネイルを内接させる(はみ出し防止) */
}
.opt-card.rich.selected {
  border: 2px solid var(--brand);
  padding: 0;
  margin: -1px;  /* 枠の増分を相殺してレイアウトを動かさない(画像の上でも枠の太さが均一になる) */
}
.rich-img img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-card) var(--r-card) 0 0;
}
.rich-row { display: flex; gap: 14px; padding: 16px; align-items: flex-start; flex: 1; }
.rich-row .opt-mark { position: static; flex: 0 0 24px; margin-left: auto; margin-top: 2px; }  /* richカード内は従来のインライン配置 */
.rich-row .opt-body { padding-right: 0; }

/* SPも縦型カード(画像16:9+全文表示)。横型104px画像は「見づらい」FBにより廃止(2026-07-19) */
.rich-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
}

/* カテゴリグリッドの中に差し込まれたら全幅で展開(アコーディオン) */
#categoryChips > #subWrap {
  grid-column: 1 / -1;
  margin: 4px 0 8px;
  padding: 16px;
  background: var(--box-bg);
  border: 1px solid var(--box-border);
  border-radius: var(--r-card);
}
#categoryChips > #subWrap .chip-note { margin-top: 0; }
#subWrap { margin-top: 24px; }
.chip-note { font-size: 12px; color: var(--ink-sub); margin: 12px 0; }

/* ================= カレンダー(週グリッド) ================= */

.cal-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--panel-bg);
  padding-top: 8px;
}
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-range {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
}
.cal-range .jp { font-family: 'Noto Sans JP', sans-serif; font-weight: 500; font-size: 13px; }
.cal-arrow {
  appearance: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 100px;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.cal-arrow:hover { background: var(--brand); }
.cal-arrow:disabled {
  border-color: var(--line-strong);
  color: var(--line-strong);
  background: var(--bg);
  cursor: default;
}
body.theme-soft .cal-arrow { border-width: 1px; border-color: #ddd; }
body.theme-soft .cal-arrow:disabled { border-color: var(--line); }

.cal-days {
  display: grid;
  gap: 6px;                 /* .cal-grid の border-spacing と揃えて列位置を一致させる */
  padding: 0 6px 10px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cal-days .d {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  display: block;
  line-height: 1.3;
}
.cal-days .w {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-sub);
  display: block;
}

.cal-grid {
  border-collapse: separate;
  border-spacing: 6px;
  width: 100%;
  table-layout: fixed;
}
.cal-grid td { padding: 0; }
.cell {
  appearance: none;
  display: block;
  width: 100%;
  padding: 9px 0 7px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-input);
  background: var(--bg);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.03em;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
body.theme-soft .cell { border-color: #e5e0d5; }
.cell .cs { display: block; font-weight: 700; font-size: 14px; line-height: 1.3; }
.cell .ce { display: block; font-weight: 600; font-size: 10px; line-height: 1.3; color: var(--ink-sub); }
.cell:hover { background: var(--brand); border-color: var(--ink); }
body.theme-soft .cell:hover { border-color: var(--brand); background: #fffbec; }
.cell:hover .ce { color: var(--ink); }
.cell.selected { background: var(--brand); border: 2px solid var(--ink); padding: 8px 0 6px; }
body.theme-soft .cell.selected { border-color: var(--brand); }
.cell.selected .ce { color: var(--ink); }
.cal-grid td.na { background: var(--box-bg); border-radius: var(--r-input); }
.cal-grid td.page-empty {
  padding: 32px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-sub);
  background: var(--box-bg);
  border-radius: var(--r-input);
}

.selected-slot {
  margin-top: 24px;
  background: var(--box-bg);
  border: 1px solid var(--box-border);
  border-radius: var(--r-card);
  padding: 14px 20px;
  font-size: 15px;
  line-height: 1.6;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.selected-slot .sel-label { font-size: 12px; color: var(--ink-sub); flex: 0 0 auto; }
.selected-slot strong { font-weight: 700; }

.slot-empty { font-size: 14px; color: var(--ink-sub); padding: 16px 0; }
.loading { font-size: 14px; color: var(--ink-sub); padding: 24px 0; }

/* ================= 入力欄 ================= */

.field { margin: 32px 0; }
.field-row { display: flex; gap: 16px; margin: 32px 0; }
.field-row .field { flex: 1; margin: 0; }
.field > label, .field > .label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
}

input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-input);
  padding: 13px 14px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  transition: border-color 0.15s ease;
}
body.theme-soft input[type="text"], body.theme-soft input[type="tel"],
body.theme-soft input[type="email"], body.theme-soft textarea { border-color: #ddd; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); }
body.theme-soft input:focus, body.theme-soft textarea:focus { border-color: var(--brand); }
::placeholder { color: var(--ink-faint); }
textarea { resize: vertical; min-height: 120px; }

.field-note { font-size: 12px; color: var(--ink-sub); margin: 8px 0; line-height: 1.7; }
.error-text { font-size: 12px; color: var(--error); margin-top: 8px; }

/* ================= アップロード ================= */

.upload-zone {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-card);
  padding: 32px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-sub);
}
.upload-zone .file-link {
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
}
.file-info { margin-top: 8px; font-size: 13px; }
.file-remove {
  appearance: none; border: none; background: none;
  color: var(--error); font-size: 12px; cursor: pointer; text-decoration: underline; margin-left: 8px;
}

/* ================= 同意 ================= */

.agree-box {
  margin-top: 48px;
  background: var(--box-bg);
  border: 1px solid var(--box-border);
  border-radius: var(--r-card);
  padding: 28px 20px;
  display: flex;
  justify-content: center;
}
.agree-inner { text-align: center; }
.agree-inner .agree-row { justify-content: center; align-items: center; display: inline-flex; }
.agree-inner .error-text { text-align: center; }
.agree-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.agree-row input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--ink); flex: 0 0 auto;
}
body.theme-soft .agree-row input[type="checkbox"] { accent-color: #111; }
.agree-row a { color: var(--ink); }

/* ================= サマリーカード ================= */

.summary-card {
  border: 1px solid var(--box-border);
  background: var(--box-bg);
  border-radius: var(--r-card);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 14px;
}
.sum-rows { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.sum-row { display: flex; gap: 14px; align-items: baseline; }
.sum-label { flex: 0 0 5em; font-size: 12px; color: var(--ink-sub); }
.sum-value { font-size: 14px; font-weight: 700; line-height: 1.6; word-break: break-word; min-width: 0; }
.sum-value .sum-sub { display: block; font-size: 12px; font-weight: 500; margin-top: 2px; }

/* ================= 確認リスト ================= */

.confirm-list { border-top: 1px solid var(--line); margin-top: 24px; }
.confirm-row { display: flex; gap: 16px; padding: 18px 6px; border-bottom: 1px solid var(--line); }
.confirm-row dt { flex: 0 0 38%; font-size: 13px; color: var(--ink-sub); padding-top: 2px; }
.confirm-row dd { flex: 1; font-size: 15px; word-break: break-word; white-space: pre-wrap; }

/* ================= ボタン ================= */

.actions { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 56px; }

.btn {
  appearance: none;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  padding: 17px 56px;
  border: 2px solid var(--ink);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn .arrow { font-family: 'Montserrat', sans-serif; margin-left: 6px; }
.btn-primary { background: var(--brand); color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: var(--brand); }
.btn-secondary { background: var(--bg); color: var(--ink); }
.btn-secondary:hover { background: var(--brand); color: var(--ink); }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn:disabled:hover { background: var(--brand); color: var(--ink); }
.actions .btn-primary { width: 100%; max-width: 440px; }
body.theme-soft .btn { border: none; padding: 19px 56px; box-shadow: 0 6px 20px rgba(200, 160, 0, 0.25); }
body.theme-soft .btn-secondary { border: 1px solid #ddd; box-shadow: none; }
body.theme-soft .btn-primary:hover { background: #f5c800; color: var(--ink); }

.cta-note { text-align: center; font-size: 12px; color: var(--ink-sub); margin-top: 14px; }

.back-link {
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: var(--ink-sub);
  padding: 8px 16px;
}
.back-link:hover { color: var(--ink); text-decoration: underline; }

.text-link {
  appearance: none; border: none; background: none; padding: 0;
  font-size: 13px; color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.text-link:hover { text-decoration: underline; }
.text-link .arrow { font-family: 'Montserrat', sans-serif; }

/* ================= アラート ================= */

.alert {
  border: 1px solid var(--error);
  border-radius: var(--r-card);
  color: var(--error);
  font-size: 14px;
  padding: 12px 16px;
  margin: 16px 0;
}
.alert-info {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  color: var(--ink);
  font-size: 14px;
  padding: 12px 16px;
  margin: 16px 0;
  background: var(--box-bg);
}

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

.done-block { text-align: center; padding: 24px 0 0; }
.done-block h2 { font-size: 22px; font-weight: 700; margin: 0 0 28px; }
.done-card {
  background: var(--box-bg);
  border: 1px solid var(--box-border);
  border-radius: var(--r-card);
  padding: 24px;
  margin-bottom: 28px;
  text-align: left;
}
.done-card .sum-value.en-strong { font-family: 'Montserrat', sans-serif; letter-spacing: 0.05em; }
.done-note { font-size: 13px; color: var(--ink-sub); }

/* 担当スタッフカード */
.staff-card {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  background: var(--box-bg);
  border: 1px solid var(--box-border);
  border-radius: var(--r-card);
  padding: 24px;
  margin-bottom: 28px;
}
.staff-photo {
  width: 96px;
  height: 96px;
  border-radius: 100px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 2px solid var(--bg);
}
.staff-body { flex: 1; min-width: 0; }
.staff-label { font-size: 11px; color: var(--ink-sub); letter-spacing: 0.1em; }
.staff-name { font-size: 18px; font-weight: 700; line-height: 1.5; margin: 2px 0 4px; }
.staff-msg { font-size: 13px; color: var(--ink-sub); line-height: 1.7; margin-bottom: 8px; }

.after-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.after-card {
  background: var(--box-bg);
  border: 1px solid var(--box-border);
  border-radius: var(--r-card);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.after-title { font-size: 16px; font-weight: 700; line-height: 1.5; }
.after-desc { font-size: 13px; color: var(--ink-sub); line-height: 1.8; flex: 1; }
.after-card .qr {
  display: none;              /* QRはPCのみ表示 */
  width: 132px;
  height: 132px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  padding: 8px;
}
.after-card .btn { width: 100%; max-width: 320px; padding: 15px 24px; font-size: 14px; }
@media (min-width: 768px) {
  /* かつてLINEカードと2枚並びだった名残の2カラム指定は削除(2026-07-25 カード1枚で半分幅になるため) */
  .after-card .qr { display: block; }
}

/* ================= 単独ページ(cancel / followup)用 ================= */

.site-header { border-bottom: 1px solid var(--line); padding: 16px 24px; background: var(--bg); }
.site-header .logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
}
.wrap {
  max-width: 720px;
  margin: 32px auto 64px;
  padding: 40px 24px 56px;
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: var(--r-panel);
}
@media (max-width: 767px) {
  .wrap { margin: 12px 12px 40px; }
}
.wrap .eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-left: 10px solid var(--brand);
  padding-left: 10px;
  line-height: 1.4;
}
.wrap h1 { font-size: 22px; font-weight: 700; line-height: 1.3; margin: 14px 0 40px; }

/* ================= モーダル(送信前メール確認) ================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 27, 27, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal {
  background: var(--panel-bg);
  border-radius: 20px;
  padding: 32px 24px 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
}
.modal-title {
  font-size: 16px;
  font-weight: 700;
  border-left: 6px solid var(--brand);
  padding-left: 12px;
  display: inline-block;
  margin-bottom: 16px;
}
.modal-lead { font-size: 13px; color: var(--ink-sub); line-height: 1.8; }
.modal-email {
  font-size: 20px;
  font-weight: 700;
  word-break: break-all;
  background: var(--box-bg);
  border: 1px solid var(--box-border);
  border-radius: var(--r-card);
  padding: 16px 14px;
  margin: 18px 0 12px;
  line-height: 1.5;
}
.modal-note { font-size: 12px; color: var(--ink-sub); line-height: 1.7; }
.modal-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 24px; }
.modal-actions .btn-primary { width: 100%; }

/* 18:00以降の案内(カレンダー下) */
.after-hours-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-sub);
  line-height: 1.9;
}
.after-hours-note a[href],
.after-hours-note .text-link {
  font-size: inherit;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 対応エリアモーダル(F-21。.modal のパターンを流用し左揃え・スクロール対応) */
.area-modal {
  text-align: left;
  max-width: 560px;
  max-height: 75vh;
  position: relative;
  display: flex;
  flex-direction: column;
}
.area-modal .modal-title { margin: 6px 0 10px; }
.area-close {
  position: absolute;
  top: 10px;
  right: 10px;
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 10px;
  color: var(--ink-sub);
}
.area-close:hover { color: var(--ink); }
.area-lead { font-size: 13px; color: var(--ink-sub); line-height: 1.8; }
.area-body { overflow-y: auto; margin-top: 6px; overscroll-behavior: contain; /* iOSで背景へのスクロール連鎖を抑止 */ }
.area-pref {
  font-size: 14px;
  font-weight: 700;
  border-left: 6px solid var(--brand);
  padding-left: 10px;
  margin: 18px 0 8px;
}
.area-body p { font-size: 13px; line-height: 1.9; }
.area-body .area-note { margin-top: 18px; font-size: 12px; color: var(--ink-sub); }

/* ================= フッター ================= */

.site-footer {
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-sub);
}
.site-footer a { color: var(--ink); }

/* ================================================================
   完成見学会フォーム 固有（親のスタイルに足す分だけ）
   ================================================================ */

/* ---- STEP1: イベント紹介 ---- */
/* 物件写真のカルーセル。PCでは左のヒーロー側に置く（2026-09-21 kenta指示）。
   SPではヒーローがパネルの上に積まれるので、自然と最初に目に入る。
   ライブラリは使わず、scroll-snap + 横スクロールで作る（SPはそのまま指で送れる） */
/* いちばん上の告知バナー（正方形・1枚）。カルーセルはやめた（11月 N-40）*/
.ev-hero-card { margin: 0 0 24px; border: 2px solid var(--ink); line-height: 0; }
.ev-hero-card img { display: block; width: 100%; height: auto; }  /* 比率は HTML の width/height で決める（3:2 で届いても歪ませない・N-40） */
@media (min-width: 900px) {
  .ev-hero-card { margin: 22px 0 24px; }
}

.ev-carousel {
  position: relative;
  margin: 0 0 40px;  /* 下にドットを出す分（ドット7px＋上下の間） */
  border: 2px solid var(--ink);
  background: #f0f0ee;
}
@media (min-width: 900px) {
  .ev-carousel { margin: 22px 0 42px; }
}

.ev-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  line-height: 0;
}
.ev-track::-webkit-scrollbar { display: none; }

.ev-slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
}
.ev-slide img {
  display: block;
  width: 100%;
  /* height を auto にしないと、img の height 属性（=704）が使われて
     aspect-ratio が無視され、縦に伸びる */
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.ev-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
}
.ev-nav:hover { background: var(--brand); }
.ev-nav.prev { left: 8px; }
.ev-nav.next { right: 8px; }

/* ドットは写真枠の外（すぐ下）に置く。写真の中に置くと、文字入りのバナー
   （1枚目）の地名に重なる（2026-10-03 kenta判断） */
.ev-dots {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 14px);
  display: flex;
  justify-content: center;
  gap: 6px;
}
.ev-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c9c9c6;
  cursor: pointer;
}
.ev-dot[aria-current="true"] { background: var(--brand); width: 18px; }

.ev-lead {
  font-size: 14px;
  line-height: 1.9;
  color: #444;
  margin: 0 0 22px;
}

/* ---- 物件の魅力訴求（11月 requirements.md §8 N-31。10月 v1.4〜v1.5 から移植）---- */
.ev-points { margin: 0 0 40px; }
.ev-points-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  margin: 0 0 18px;
}
.ev-point { margin: 0 0 36px; }
.ev-point:last-child { margin-bottom: 0; }
.ev-point-no {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ink-faint);
  margin: 0 0 4px;
}
.ev-point-head {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 8px;
}
.ev-point-body {
  font-size: 14px;
  line-height: 1.9;
  color: #444;
  margin: 0 0 14px;
}
/* 写真の枠（11月 N-31）。写真は切り抜かずに全体を見せ、枠との差（縦長写真の左右など）は
   同じ写真をぼかして埋める（kenta 2026-10-12「縦長で左右に余白が出る時はブラー」）。
   ぼかしは .fit-bg（HTML の style で写真と同じ画像を指定。CSS 変数の url() は CSS ファイル基準で解決されるため使わない） */
.fit-frame { position: relative; overflow: hidden; margin: 0; background: #eee; }
.fit-bg {
  position: absolute;
  inset: -24px;
  background: center / cover no-repeat;
  filter: blur(18px) brightness(.96);
}
.fit-frame img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }

/* POINT の写真カルーセル。上のカルーセル（.ev-carousel）と同じ部品・同じ動き（kenta 2026-10-12）。
   写真は切り抜かず、余白はぼかし（.fit-frame） */
.ev-slide.fit-frame { aspect-ratio: 3 / 2; }
.ev-slide.fit-frame img { aspect-ratio: auto; height: 100%; object-fit: contain; }
.pt-carousel { margin-bottom: 36px; }

/* ---- Before / After（11月 §8 N-31。材料が届いてから使う）---- */
.ev-ba { margin: 0 0 40px; }
.ba-tag {
  margin: 0;
  padding: 6px 0;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #fff;
}
.ba-before .ba-tag { background: #77706a; }
.ba-after .ba-tag { background: #b98a3e; }
.ba-carousel { margin-bottom: 0; }
.ba-carousel .ev-dots { display: none !important; }  /* B/A はサムネイルで選ぶ（ドットと役割が重なる） */
.ba-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 4px; }
.ba-thumb { appearance: none; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; line-height: 0; }
.ba-thumb[aria-current="true"] { border-color: var(--brand); }
.ba-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ba-carousel .ev-slide.fit-frame { aspect-ratio: 4 / 3; }
.ba-carousel figcaption {
  position: absolute;
  z-index: 1;
  left: 8px;
  top: 8px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  background: rgba(255, 255, 255, .92);
  border-radius: 999px;
}
.ba-arrow { text-align: center; font-size: 22px; color: #999; margin: 8px 0; line-height: 1; }

/* 予約ボタンのフロート（11月 §8 N-31・D-31）。表示・非表示は JS が hidden で切り替える */
.appeal-jump {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  appearance: none;
  border: 2px solid var(--ink);
  border-radius: 100px;
  background: var(--brand);
  color: var(--ink);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .1em;
  padding: 14px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}
.appeal-jump .arrow { display: inline-block; margin-left: 8px; font-family: 'Montserrat', sans-serif; }
.appeal-jump[hidden] { display: none; }
/* PC は画面右下に小さく（左のバナーに重ねない） */
@media (min-width: 768px) {
  .appeal-jump { left: auto; right: 24px; bottom: 24px; padding: 14px 28px; font-size: 14px; }
}
/* 追従ボタンが最後の行を隠さないよう、STEP1 の下に逃げ場を作る */
#stepEvent { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }

.ev-facts { margin: 0 0 26px; padding: 0; border-top: 1px solid #e4e4e4; }
.ev-fact {
  display: flex;
  gap: 14px;
  padding: 13px 2px;
  border-bottom: 1px solid #e4e4e4;
}
.ev-fact dt {
  flex: 0 0 74px;
  font-size: 12px;
  font-weight: 700;
  color: #7a7a7a;
  padding-top: 2px;
  letter-spacing: .04em;
}
.ev-fact dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 500;
}
.ev-fact-note {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #7a7a7a;
  margin-top: 3px;
}

.ev-note-title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: .04em;
}
.ev-notes {
  margin: 0 0 28px;
  padding: 16px 18px 16px 34px;
  background: #f7f7f5;
  font-size: 13px;
  line-height: 1.85;
  color: #444;
}
.ev-notes li { margin-bottom: 7px; }
.ev-notes li:last-child { margin-bottom: 0; }

/* ---- STEP2: カレンダー表（左に時刻・上に日付）----
   タブ＋ボタン並びだと「いつの何時か」が一目で分からなかったため、
   親フォームと同じ表形式にした（2026-09-21 kenta指示）。
   .cal-grid / .cell は親のスタイルをそのまま使う */

.cal-grid thead th {
  padding: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}
.cal-grid thead th .cd-dow {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-sub);
  margin-top: 1px;
}

/* 時刻の列。幅を固定して、日付の列を均等に広げる */
.cal-grid .cal-time {
  width: 4.6em;
  padding: 0 8px 0 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
  color: var(--ink);
}
.cal-grid .cal-time .ct-end {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-sub);
}

/* 選べない枠。ボタンにせず、理由だけ出す */
.cal-grid td.na {
  text-align: center;
  font-size: 12px;
  color: #b4b4b4;
  padding: 12px 0;
}

/* ---- STEP3: お子さま同伴のラジオ ---- */
.radio-row { display: flex; gap: 8px; }
.radio-chip { flex: 0 0 auto; }
.radio-chip input { position: absolute; opacity: 0; pointer-events: none; }
/* 枠線と角丸はテキスト入力欄に揃える（2026-09-21 kenta指摘。2pxだと浮いていた） */
.radio-chip span {
  display: inline-block;
  min-width: 96px;
  text-align: center;
  padding: 13px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-input);
  background: var(--bg);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.radio-chip span:hover { border-color: var(--ink); }
.radio-chip input:checked + span {
  background: var(--brand);
  border-color: var(--ink);
  font-weight: 700;
}
.radio-chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.sp-only { display: inline; }
@media (min-width: 560px) { .sp-only { display: none; } }

/* 完了画面のラベルは「メールアドレス」「お子さまのご同伴」が入るので、
   既定の 5em では折り返す。ここだけ広げる */
#doneCard .sum-row { gap: 16px; }
#doneCard .sum-label { flex: 0 0 8.5em; }

/* ---- SP: サマリーカードの縦積み ----
   ラベル(5em固定) + 値 + 「変更する」の3カラムだと、SP幅で値の列が
   極端に狭くなって「マンションリノベ／ーション完成見学／会」と3行に折れる。
   SPではラベルを値の上に置き、「変更する」も自分の行に落とす（2026-09-21 kenta指摘） */
@media (max-width: 559px) {
  .summary-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 16px 14px;
  }
  .summary-card .sum-row {
    display: block;
    line-height: 1.55;
  }
  .summary-card .sum-label {
    display: block;
    font-size: 11px;
    margin-bottom: 1px;
  }
  .summary-card .sum-value { font-size: 14px; }
  .summary-card .sum-value .sum-sub { margin-top: 3px; }
  .summary-card .text-link { align-self: flex-start; }
}

/* ---- 日本語の折り返しを文節単位にする ----
   既定の折り返しは1文字単位なので「…ご利用くださ／い。」のように
   語の途中や句点だけが次行に落ちる。Chrome の文節認識と
   末尾1文字の孤立を避ける指定を、本文が入る箱にまとめて当てる。
   非対応ブラウザでは無視されるだけで、従来の折り返しに戻る（2026-09-21 kenta指摘） */
.ev-lead,
.ev-point-head,
.ev-point-body,
.ev-notes li,
.ev-fact dd,
.ev-fact-note,
.chip-note,
.field-note,
.sum-value,
.sum-sub,
.done-note,
.alert,
.cta-note,
.hero h1,
.b-desc,
.section-label,
label {
  word-break: auto-phrase;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}



/* ---- 「変更する」を押せると分かる形にする ----
   サマリーカードの中で黒い平文リンクだと本文と同化して気づかれない。
   色は足さない（黄色はCTA専用。ここに使うと進むボタンと戻るリンクが同じ強さに見える）。
   枠線で面にして、タップ領域も広げる（2026-09-21 kenta指摘） */
.change-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.change-link svg { width: 13px; height: 13px; flex: 0 0 auto; }
.change-link:hover {
  border-color: var(--ink);
  background: #f7f7f5;
  text-decoration: none;   /* .text-link:hover の下線を打ち消す（枠があるので不要） */
}
.change-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }


/* ---- SP: 同意チェックを1行に収める ----
   中央寄せ＋28px/20pxの余白だと、375pxで「個人情報の／取り扱いに同意します」と
   語の途中で折れていた。左寄せにして余白と字送りを詰め、1行に収める
   （2026-09-21 kenta指摘） */
@media (max-width: 559px) {
  .agree-box {
    margin-top: 32px;
    padding: 16px 12px;
    justify-content: flex-start;
  }
  .agree-inner { text-align: left; width: 100%; }
  .agree-inner .agree-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
  }
  .agree-inner .error-text { text-align: left; }
  .agree-row .req-lead { margin-right: 6px; }
  /* 「個人情報の取り扱いに同意します」を途中で折らない */
  .agree-row > span { white-space: nowrap; }
}

/* ---- 完了画面の THANK YOU ----
   予約が終わった瞬間に「待っています」を伝える一枚（2026-09-21 kenta指示）。
   写真の上に文字を重ねるので、下半分にスクリムを敷いて可読性を確保する */
.thanks {
  position: relative;
  margin: 20px 0 24px;
  border: 2px solid var(--ink);
  overflow: hidden;
  line-height: 0;
}
.thanks img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
.thanks figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 16px 16px;
  text-align: center;
  line-height: 1.5;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
  color: #fff;
}
.thanks-en {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--brand);
}
.thanks-jp {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 3px;
}
@media (max-width: 559px) {
  .thanks-en { font-size: 21px; }
  .thanks-jp { font-size: 12px; }
  .thanks figcaption { padding: 34px 12px 13px; }
}
