/* =========================================================================
   視察プランナー（misawa-observation）— アプリスタイル
   料金シミュレーター（misawa-simulator）のデザインシステム準拠（tokens.css を使用）
   世界観: ウォームグレー下地 / 白カード+2px墨枠 / 角ばり / フラット /
           りいクッキー手書き見出し / ＼ ／斜線 / 2px点線罫線 / イチョウ色アクセント
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
.ic { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.18em; stroke: currentColor; fill: none; flex-shrink: 0; }
.bico { display: inline-flex; align-items: center; line-height: 0; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
html.is-modal-open, html.is-modal-open body { overflow: hidden; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-ink);
  font-family: var(--font-body); font-size: 13.5px; font-weight: var(--body-weight);
  line-height: 1.75; letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.round { font-family: var(--font-display); font-weight: 400; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--pad-x); }
#plannerShell { padding-bottom: 92px; }

/* ---------- 最初の立場選択 ---------- */
.role-gate { min-height: 100vh; display: grid; place-items: center; padding: 44px var(--pad-x); background: #fff; }
.role-gate__in { width: min(920px, 100%); text-align: center; }
.role-gate__brand { margin: 0 0 8px; color: #8a6d2f; font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.role-gate h1 { margin: 0 0 28px; font-family: var(--font-display); font-size: clamp(27px, 4vw, 42px); font-weight: 400; letter-spacing: .06em; }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.role-btn { min-height: 116px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 2px solid var(--color-ink); background: #fff; text-align: left; font-family: var(--font-display); font-size: 15px; line-height: 1.5; transition: background .15s, transform .15s; }
.role-btn:hover, .role-btn:focus-visible { background: var(--color-accent-soft); transform: translateY(-2px); outline: none; }
.role-btn img { width: 76px; height: 86px; object-fit: contain; flex: 0 0 76px; }
.role-btn span { flex: 1; }
@media (max-width: 760px) {
  .role-gate { align-items: start; padding-top: 34px; }
  .role-gate h1 { margin-bottom: 20px; }
  .role-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .role-btn { min-height: 96px; padding: 8px 10px; font-size: 13px; }
  .role-btn img { width: 58px; height: 72px; flex-basis: 58px; }
}
@media (max-width: 420px) { .role-grid { grid-template-columns: 1fr; } }

/* ---------- ヘッダー ---------- */
.app-header { background: var(--color-white); border-bottom: 2px solid var(--color-ink); }
.app-header__in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 18px var(--pad-x); flex-wrap: wrap; }
.app-title { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 400; letter-spacing: 0.06em; margin: 0; }
.app-header__right { margin-left: auto; }
.official { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--color-ink); border-bottom: 2px solid var(--color-accent); padding-bottom: 1px; }
.official .ic { width: 1em; height: 1em; }
.official:hover { opacity: .75; }

/* ---------- 条件バー ---------- */
.condbar { position: sticky; top: 0; z-index: 40; background: rgba(238,238,238,.96); backdrop-filter: blur(6px); border-bottom: 2px dotted var(--color-rule); }
.condbar__in { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; max-width: 1080px; margin: 0 auto; padding: 13px var(--pad-x); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.04em; color: var(--color-ink); display: inline-flex; align-items: center; gap: 6px; }

/* 必須項目（未入力の間だけ強調） */
.req-tag { display: none; font-family: var(--font-body); font-size: 9.5px; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--color-error); border-radius: 2px; padding: 1px 5px; line-height: 1.5; }
.field.is-required .req-tag { display: inline-block; }
.field.is-required select, .field.is-required .date-trigger { border-color: var(--color-error); background: #fdf6f4; }
.field.is-required select:focus, .field.is-required .date-trigger:focus { outline: 2px solid var(--color-error); outline-offset: 1px; }
.field.is-filled .req-tag { display: none; }
.field.is-filled select, .field.is-filled .date-trigger { border-color: var(--color-ink); background: #fff; }
.field.is-filled > label::after { content: "✓"; color: var(--color-success); font-size: 12px; font-weight: 700; }
.field select, .field input[type="date"] {
  height: 46px; padding: 0 12px; border: 2px solid var(--color-ink); border-radius: 2px;
  background: #fff; font-family: var(--font-body); font-size: 15px; color: var(--color-ink); letter-spacing: 0.04em; min-width: 176px;
}
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--color-ink); border-radius: 2px; background: #fff; height: 46px; touch-action: manipulation; }
.stepper button { width: 42px; height: 100%; border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--color-ink); -webkit-user-select: none; user-select: none; }
.stepper button:hover { background: var(--color-accent-soft); }
.stepper .val { min-width: 52px; text-align: center; font-weight: 700; font-size: 16px; }
/* モバイル: 立場・候補日・人数をコンパクトに */
@media (max-width: 640px) {
  .condbar__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-auto-flow: row dense; gap: 7px 8px; padding: 8px 14px; align-items: end; }
  .field { gap: 2px; min-width: 0; }
  .field > label { font-family: var(--font-body); font-size: 10.5px; font-weight: 700; color: var(--color-sub); letter-spacing: .02em; }
  .field select, .field input[type="date"] { height: 36px; font-size: 12.5px; min-width: 0; width: 100%; padding: 0 7px; }
  .field--date { grid-column: 1 / -1; }
  .stepper { height: 36px; }
  .stepper button { width: 30px; font-size: 18px; }
  .stepper .val { min-width: 32px; font-size: 14px; }
  .callout { font-size: 11px; padding: 6px 11px; }
  .date-trigger { height: 36px; width: 100%; min-width: 0; font-size: 12.5px; padding: 0 9px; }
  .req-tag { font-size: 8.5px; padding: 0 4px; }
}

/* 視察候補日（第1〜第5希望のモーダル） */
.field--date { position: relative; }
.date-trigger { height: 46px; min-width: 176px; padding: 0 12px; border: 2px solid var(--color-ink); border-radius: 2px; background: #fff; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--color-ink); }
.date-trigger .caret { color: var(--color-sub); font-size: 11px; }
/* モーダル本体。sticky な条件バーの中に吹き出しを出すと、iPhone で中身が
   画面外にはみ出したまま掴めなくなるため、body 直下の全画面ダイアログにしている */
.date-modal { position: fixed; inset: 0; z-index: 70; background: rgba(20,16,8,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.date-modal[hidden] { display: none; }
.date-modal__panel { display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: 86vh; max-height: 86dvh; background: #fff; border: 2px solid var(--color-ink); border-radius: 2px; box-shadow: 0 20px 50px rgba(0,0,0,.3); overflow: hidden; }
.date-modal__head { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 2px dotted var(--color-rule); }
.date-modal__title { font-family: var(--font-display); font-size: 18px; flex: 1; }
.date-modal__close { border: none; background: none; font-size: 24px; line-height: 1; color: var(--color-sub); padding: 0 6px; }
.date-modal__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 12px 14px; }
.date-modal__foot { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 2px dotted var(--color-rule); background: #fff; }
.date-modal__count { flex: 1; min-width: 0; font-size: 11px; color: var(--color-sub); line-height: 1.5; }
.date-modal__lead { font-size: 11.5px; color: var(--color-sub); margin: 0 0 6px; line-height: 1.6; }
.date-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.date-row .lb { font-size: 11.5px; font-weight: 700; min-width: 74px; display: inline-flex; align-items: center; gap: 4px; }
.date-row .req { font-size: 9px; font-weight: 700; color: #fff; background: var(--color-error); border-radius: 2px; padding: 0 4px; font-style: normal; }
.date-row.is-filled .req { background: var(--color-success); }
.date-fields { flex: 1; min-width: 0; display: flex; gap: 7px; }
.date-pick { width: 136px; height: 34px; flex: 0 0 136px; min-width: 0; border: 2px solid var(--color-rule); border-radius: 2px; padding: 0 7px; background: #fff; color: var(--color-ink); font-family: var(--font-body); font-size: 12px; display: inline-flex; align-items: center; justify-content: space-between; gap: 5px; }
.date-pick span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.date-pick .caret { flex: none; color: var(--color-sub); font-size: 10px; }
.date-pick:focus { outline: none; border-color: var(--color-accent); }
.date-pick:disabled { color: var(--color-sub); background: #f2f0ea; cursor: not-allowed; }
.date-time { display: flex; gap: 6px; min-width: 0; }
.date-time .date-time-mode { flex: 0 0 92px; }
.date-time-range { display: flex; align-items: center; gap: 4px; min-width: 0; }
.date-time-range[hidden] { display: none; }
.date-time-range select { width: 68px; flex: 0 0 68px; padding: 0 4px; font-variant-numeric: tabular-nums; }
.date-row input, .date-row select { height: 34px; flex: 1; min-width: 0; border: 2px solid var(--color-rule); border-radius: 2px; padding: 0 8px; background: #fff; font-family: var(--font-body); font-size: 12.5px; color: var(--color-ink); }
.date-row input:focus, .date-row select:focus { outline: none; border-color: var(--color-accent); }
.date-row select:disabled { color: var(--color-sub); background: #f2f0ea; cursor: not-allowed; }
.date-done { flex: none; min-width: 168px; height: 40px; padding: 0 16px; background: var(--color-ink); color: #fff; border: 0; border-radius: 2px; font-family: var(--font-button); font-weight: 700; font-size: 13px; }
.date-calendar { width: 300px; max-width: 100%; margin: 6px 0 10px 82px; padding: 9px; border: 2px solid var(--color-rule); background: #faf8f2; }
.date-calendar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.date-calendar__head b { font-size: 13px; }
.cal-nav { width: 30px; height: 28px; border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--color-ink); }
.cal-nav:disabled { opacity: .25; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-week span { text-align: center; font-size: 9.5px; color: var(--color-sub); }
.cal-day { height: 31px; border: 1px solid var(--color-rule); border-radius: 2px; background: #eeeae1; color: #aaa; font-size: 11px; }
.cal-day--blank { border: 0; background: transparent; }
.cal-day.is-outside { border-color: transparent; background: transparent; color: #c8c3b8; }
.cal-day.is-available { background: #fff; border: 2px solid var(--color-accent); color: var(--color-ink); font-weight: 700; cursor: pointer; }
.cal-day.is-available:hover { background: var(--color-accent-soft); }
.cal-day.is-selected { background: var(--color-accent-fill); border-color: var(--color-ink); color: #2a2113; }
.cal-day.is-used { background: #ddd6c4; color: #766d5b; border-color: #b9ad91; }
.date-calendar__foot { display: flex; align-items: center; gap: 9px; margin-top: 7px; font-size: 9.5px; color: var(--color-sub); }
.date-calendar__foot span { display: inline-flex; align-items: center; gap: 3px; }
.date-calendar__foot button { margin-left: auto; border: 0; background: transparent; color: var(--color-link); font-size: 10px; text-decoration: underline; }
.cal-key { display: inline-block; width: 10px; height: 10px; background: #eeeae1; border: 1px solid var(--color-rule); }
.cal-key--ok { background: #fff; border: 2px solid var(--color-accent); }
.cal-key--outside { border-color: transparent; background: transparent; }
/* スマホ: 下からせり上がるシート。中身はシート内でスクロールする */
@media (max-width: 640px) {
  .date-modal { align-items: flex-end; padding: 0; }
  .date-modal__panel { max-width: none; max-height: 90vh; max-height: 90dvh; border-width: 2px 0 0; }
  .date-modal__head { padding: 11px 12px; }
  .date-modal__title { font-size: 16px; }
  .date-modal__body { padding: 10px 12px 14px; }
  /* 幅が足りず件数表示が3行に折れるので、スマホでは縦積みにして CTA を全幅にする */
  .date-modal__foot { flex-direction: column; align-items: stretch; gap: 6px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); }
  .date-modal__count { flex: none; font-size: 10.5px; text-align: center; }
  .date-done { width: 100%; min-width: 0; height: 42px; font-size: 13px; }

  /* 1希望＝1カード。ラベルを上段に逃がして、日付ボタンと時間帯を横に並べる */
  .date-row { display: block; padding: 8px 9px; margin-bottom: 7px; border: 2px dotted var(--color-rule); background: #fff; }
  .date-row.is-filled { border-style: solid; border-color: var(--color-accent); background: #fffdf5; }
  .date-row .lb { min-width: 0; margin-bottom: 5px; font-size: 11.5px; }
  .date-fields { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
  .date-pick { flex: 1 1 auto; width: auto; min-width: 0; height: 40px; font-size: 14px; padding: 0 9px; }
  /* 時間帯の入れ物を透過させ、時刻の2つだけを次の行へ全幅で送る */
  .date-time { display: contents; }
  /* iOS は 16px 未満の select にフォーカスすると勝手にズームするので下げない */
  .date-row select { height: 40px; font-size: 16px; }
  .date-time .date-time-mode { flex: 0 0 124px; }
  .date-time-range { flex: 1 0 100%; flex-direction: row; align-items: center; gap: 6px; }
  .date-time-range select { flex: 1 1 auto; width: auto; }

  .date-calendar { width: auto; margin-left: 0; }
  .cal-day { height: 38px; font-size: 13px; }
  .cal-week span { font-size: 10.5px; }
}

/* 立場選択の誘導（未選択の間だけ表示） */
.field--vt { position: relative; }
.callout { position: absolute; top: calc(100% + 9px); left: 0; z-index: 45; background: var(--color-ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; padding: 7px 13px; border-radius: 2px; white-space: nowrap; }
.callout::before { content: ""; position: absolute; top: -5px; left: 24px; width: 10px; height: 10px; background: var(--color-ink); transform: rotate(45deg); }
.callout[hidden] { display: none; }

/* ---------- 冒頭ガイダンス ---------- */
.intro { background: #fff; border-bottom: 2px dotted var(--color-rule); }
.intro__in { max-width: 1080px; margin: 0 auto; padding: 12px var(--pad-x); display: flex; align-items: center; gap: 14px; }
.intro__icon .ic, .intro__icon svg { width: 26px; height: 26px; }
.intro__text { font-size: 12px; line-height: 1.8; letter-spacing: .02em; flex: 1; }
.intro__step { display: inline-block; background: var(--color-accent-fill); color: #2a2113; font-weight: 700; border-radius: 999px; padding: 0 8px; margin: 0 3px; font-size: 12px; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; max-height: 300px; overflow: hidden; border-bottom: 2px solid var(--color-ink); }
.hero img { width: 100%; height: 300px; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--overlay-hero); }
.hero__lead {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2; width: max-content; max-width: calc(100% - 40px);
  color: #fff; font-family: var(--font-display); font-size: clamp(14px, 2vw, 20px); letter-spacing: 0.08em; line-height: 1.8;
  text-shadow: var(--text-shadow-hero); text-align: center;
}
@media (max-width: 600px) { .hero img { height: 190px; } .hero { max-height: 190px; } .hero__lead { bottom: 12px; } }

/* ---------- 見出し ---------- */
.h-slash { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 24px); font-weight: 400; letter-spacing: 0.05em; line-height: 1.2; }
.h-slash::before { content: "＼"; } .h-slash::after { content: "／"; }
.section { padding: 24px 0 6px; }
.section--chara { position: relative; }
.section-chara { position: absolute; z-index: 3; object-fit: contain; pointer-events: none; }
.section-chara--peek { width: 58px; height: 94px; right: 8px; top: -36px; }
.section-chara--note { width: 55px; height: 82px; right: 10px; top: -24px; }
.section__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; margin-bottom: 12px; }
.section__lead { font-size: 12px; color: var(--color-sub); letter-spacing: 0.05em; }
.step-no { font-family: var(--font-display); font-size: 20px; color: var(--color-accent); margin-right: 7px; white-space: nowrap; }
@media (max-width: 620px) {
  .h-slash { font-size: 18px; gap: 7px; letter-spacing: 0.02em; }
  .step-no { font-size: 16px; margin-right: 5px; }
  .section { padding: 20px 0 5px; }
  .section__lead { font-size: 11.5px; letter-spacing: 0.03em; }
}

/* ---------- グリッド・カード ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid3, .grid2 { grid-template-columns: 1fr; gap: 10px; } }
.card { background: #fff; border: 2px solid var(--color-ink); border-radius: 0; overflow: hidden; }
.cardpad { padding: 12px 14px; }
.ct { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 16px; padding-bottom: 7px; border-bottom: 2px dotted var(--color-rule); margin-bottom: 9px; }
.ct .ic { color: var(--color-accent); width: 1.25em; height: 1.25em; }

/* ---------- お悩み ---------- */
.worrybox { background: #fff; border: 2px solid var(--color-ink); padding: 13px 15px; }
.worrybox .q { font-family: var(--font-display); font-size: 16.5px; letter-spacing: 0.04em; }
.worrybox .msg { color: var(--color-sub); font-size: 11.5px; margin: 2px 0 10px; }
.worries { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 640px) { .worries { grid-template-columns: 1fr; } }
.worry { background: #fff; border: 2px solid var(--color-rule); padding: 8px 11px; font-size: 12.5px; font-weight: 700; cursor: pointer; line-height: 1.7; }
.worry:hover { border-color: var(--color-ink); }
.worry small { display: block; font-weight: 500; color: #8a6d2f; font-size: 11px; margin-top: 1px; }
.emptynote { color: var(--color-sub); font-size: 12px; text-align: center; padding: 6px; grid-column: 1 / -1; }

/* ---------- 推奨プラン ---------- */
.pkg { position: relative; display: flex; flex-direction: column; cursor: default; }
.pkg__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #ddd; border-bottom: 2px solid var(--color-ink); }
.pkg__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pkg:hover .pkg__media img { transform: scale(1.04); }
.pkg .rib { display: none; position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--color-accent-fill); color: #2a2113; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 2px; }
.pkg.rec .rib { display: block; }
.pkg .bd { padding: 6px 8px 8px; flex: 1; display: flex; flex-direction: column; }
.pkg .lv { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #8a6d2f; }
.pkg .nm { font-family: var(--font-display); font-size: 15.5px; margin-top: 1px; letter-spacing: 0.02em; }
.pkg .pr { font-size: 15.5px; font-weight: 700; margin-top: 4px; }
.pkg .pr small { font-size: 10.5px; color: var(--color-sub); font-weight: 500; }
.pkg__facts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.pkg__facts span { display: inline-flex; align-items: center; min-height: 27px; background: var(--color-accent-fill); color: #2a2113; border: 2px solid var(--color-accent); padding: 2px 8px; font-size: 11px; font-weight: 700; line-height: 1.4; }
.pkg__facts b { font-family: var(--font-display); font-size: 13px; margin-left: 4px; }
.pkg ul { list-style: none; margin: 5px 0 0; padding: 0; }
.pkg li { font-size: 11.5px; color: var(--color-ink); padding: 1px 0 1px 15px; position: relative; line-height: 1.7; }
.pkg li::before { content: "✓"; position: absolute; left: 0; color: var(--color-accent); font-weight: 700; }
.pkg .who { font-size: 10.5px; color: #8a6d2f; background: var(--color-accent-soft); padding: 3px 8px; margin-top: 6px; font-weight: 700; }
.pkg .pick { margin-top: 8px; border: 2px solid var(--color-ink); background: #fff; color: var(--color-ink); font-family: var(--font-button); font-weight: 700; font-size: 12.5px; letter-spacing: 0.05em; padding: 8px; border-radius: 2px; }
.pkg .pick:hover { background: var(--color-accent-soft); }
.pkg.sel { box-shadow: 0 0 0 3px var(--color-accent); }
.pkg.sel .pick { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }

/* ---------- 利用形態を選ぶまでのロック ---------- */
.tier-gate-note { min-height: 180px; margin: 22px 0 16px; border: 3px solid var(--color-accent); background: #fff; display: flex; align-items: center; justify-content: center; gap: 13px; padding: 28px; text-align: center; }
.tier-gate-note__mark { width: 34px; height: 34px; flex: 0 0 34px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--color-accent-fill); color: #2a2113; font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.tier-gate-note p { margin: 0; font-family: var(--font-display); font-size: 16px; line-height: 1.8; }
@media (max-width: 620px) {
  .tier-gate-note { min-height: 150px; padding: 22px 16px; align-items: flex-start; }
  .tier-gate-note p { font-size: 14px; text-align: left; }
}

/* ---------- テーマ ---------- */
.theme { position: relative; cursor: pointer; display: flex; flex-direction: column; transition: box-shadow var(--t-fast); }
.theme:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.theme.on { box-shadow: 0 0 0 3px var(--color-accent); }
.theme.is-blocked:not(.on) { opacity: .48; cursor: not-allowed; }
.theme.is-blocked:not(.on):hover .theme__media img { transform: none; }
.theme__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #ddd; border-bottom: 2px solid var(--color-ink); }
.theme__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.theme:hover .theme__media img { transform: scale(1.04); }
.card-check { position: absolute; top: 10px; right: 10px; z-index: 3; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--color-ink); background: rgba(255,255,255,.94); color: transparent; display: inline-flex; align-items: center; justify-content: center; }
.card-check .ic { width: 16px; height: 16px; }
.theme:hover .card-check { border-color: var(--color-accent); }
.theme.on .card-check { background: var(--color-accent-fill); border-color: var(--color-accent-fill); color: #2a2113; }
.theme .bd { padding: 5px 8px 7px; }
.theme .tt { font-family: var(--font-display); font-size: 14.5px; line-height: 1.35; letter-spacing: 0.02em; }
.theme .bub { font-size: 11px; color: var(--color-sub); margin-top: 2px; line-height: 1.6; }
.theme .dur { font-size: 10.5px; font-weight: 700; color: #8a6d2f; margin-top: 4px; }
/* お悩みからのおすすめハイライト */
.theme.hint { box-shadow: 0 0 0 3px var(--color-accent); }
.theme .hintrib { display: none; position: absolute; top: 10px; left: 10px; z-index: 3; background: var(--color-accent-fill); color: #2a2113; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 2px; }
.theme.hint .hintrib { display: block; }
.theme-total { margin-top: 10px; text-align: center; font-size: 12px; font-weight: 700; color: var(--color-ink); background: #fff; border: 2px dotted var(--color-rule); padding: 6px 12px; }
.theme-total b { color: #8a6d2f; }

.sublabel { font-family: var(--font-display); font-size: 14.5px; margin-top: 16px; letter-spacing: 0.05em; }

/* ---------- コース ---------- */
.selcard { padding: 8px 11px; cursor: pointer; transition: box-shadow var(--t-fast); }
.selcard:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.selcard.on { box-shadow: 0 0 0 3px var(--color-accent); }
.selcard .h { font-family: var(--font-display); font-size: 14.5px; }
.selcard .d { font-size: 11.5px; color: var(--color-sub); margin-top: 2px; }
.selcard .fee { font-size: 12px; font-weight: 700; color: #8a6d2f; margin-top: 4px; }

/* ---------- 話す人・ゲスト（プロフィールカード） ---------- */
.person { position: relative; cursor: pointer; display: flex; flex-direction: column; transition: box-shadow var(--t-fast); }
.person:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.person.on { box-shadow: 0 0 0 3px var(--color-accent); }
.person.on .card-check { background: var(--color-accent-fill); border-color: var(--color-accent-fill); color: #2a2113; }
.person:hover .card-check { border-color: var(--color-accent); }
.person--fixed { cursor: default; }
.person--fixed:hover .card-check { border-color: var(--color-accent-fill); }
.person__media { aspect-ratio: 5/3; overflow: hidden; background: #ddd; border-bottom: 2px solid var(--color-ink); }
.person__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.person:hover .person__media img { transform: scale(1.04); }
.person__media--blank { display: grid; place-items: center; background: var(--color-accent-soft); }
.person__media--blank span { font-family: var(--font-display); font-size: 42px; color: #8a6d2f; letter-spacing: 0.12em; }
.person__bd { padding: 7px 10px 10px; display: flex; flex-direction: column; flex: 1; }
.person__nm { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.03em; }
.person__tt { font-size: 11px; font-weight: 700; color: #8a6d2f; margin-top: 1px; line-height: 1.6; }
.person__fee { font-size: 11.5px; font-weight: 700; color: #8a6d2f; margin-top: 2px; }
.person__more { align-self: flex-start; margin-top: 8px; display: inline-flex; align-items: center; border: 2px solid var(--color-ink); background: #fff; color: var(--color-ink); font-family: var(--font-button); font-weight: 700; font-size: 11.5px; letter-spacing: 0.04em; padding: 5px 11px; border-radius: 2px; }
.person__more:hover { background: var(--color-accent-soft); }
.person--simple .person__bd { padding: 10px 46px 10px 12px; }
.person--simple .person__more { margin-top: 6px; }
@media (max-width: 620px) {
  .person__media { aspect-ratio: 16/7; }
  .person__media--blank span { font-size: 34px; }
}
.guest-lb { font-family: var(--font-display); font-size: 13px; color: var(--color-ink); margin: 14px 0 8px; padding-top: 12px; border-top: 2px dotted var(--color-rule); }

/* どんな人？ポップアップ */
.prof-head { display: flex; gap: 12px; align-items: center; padding-bottom: 10px; border-bottom: 2px dotted var(--color-rule); margin-bottom: 10px; }
.prof-head__ph { width: 84px; height: 63px; object-fit: cover; border: 2px solid var(--color-ink); flex-shrink: 0; }
.prof-head__nm { font-family: var(--font-display); font-size: 18px; line-height: 1.3; }
.prof-head__nm small { display: block; font-family: var(--font-body); font-size: 10px; font-weight: 700; color: var(--color-sub); letter-spacing: 0.08em; margin-top: 1px; }
.prof-head__tt { font-size: 11px; font-weight: 700; color: #8a6d2f; margin-top: 3px; line-height: 1.6; }
.prof__sec { margin-bottom: 10px; }
.prof__sec:last-child { margin-bottom: 0; }
.prof__h { font-family: var(--font-display); font-size: 13.5px; color: #8a6d2f; letter-spacing: 0.04em; }
.prof p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.9; }
.prof__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.prof__tags span { border: 2px solid var(--color-rule); background: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; }
.prof__quote { margin-top: 12px; background: var(--color-accent-soft); border: 2px dotted #8a6d2f; padding: 9px 12px; font-family: var(--font-display); font-size: 13.5px; line-height: 1.8; }

/* ---------- オプション ---------- */
.checks { display: flex; flex-direction: column; gap: 7px; }
.chk { display: flex; align-items: center; gap: 9px; border: 2px solid var(--color-rule); background: #fff; padding: 7px 11px; cursor: pointer; }
.chk:hover { border-color: var(--color-accent); }
.chk.on { border-color: var(--color-accent); background: var(--color-accent-soft); }
.chk input { width: 16px; height: 16px; accent-color: var(--color-accent-fill); }
.chk .nm { font-size: 12.5px; font-weight: 700; }
.chk .fee { margin-left: auto; font-size: 11.5px; font-weight: 700; color: #8a6d2f; }
/* ---------- アクセス ---------- */
.acc-media { aspect-ratio: 16/6; overflow: hidden; background: #ddd; border-bottom: 2px solid var(--color-ink); }
.acc-media img { width: 100%; height: 100%; object-fit: cover; }
.acc-addr { font-size: 13px; font-weight: 700; }
.acc-main { font-size: 12.5px; color: var(--color-ink); margin-top: 1px; }
.acc-links { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.acc-links a { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 2px solid var(--color-ink); border-radius: 2px; padding: 6px 10px; font-size: 11.5px; font-weight: 700; color: var(--color-ink); }
.acc-links a:hover { background: var(--color-accent-soft); }
.acc-links .ic { width: 1em; height: 1em; color: var(--color-accent); }
.acc-route-hint { font-size: 11px; color: var(--color-sub); margin-top: 7px; line-height: 1.6; }
.acc-note { font-size: 11.5px; color: var(--color-sub); margin-top: 10px; }

/* ---------- 当日お話しすること ---------- */
.talk-grp { margin-bottom: 10px; }
.talk-grp:last-child { margin-bottom: 0; }
.talk-grp .th { font-family: var(--font-display); font-size: 13.5px; letter-spacing: 0.03em; }
.talk-grp ul { list-style: none; margin: 2px 0 0; padding: 0; }
.talk-grp li { font-size: 11.5px; color: var(--color-ink); padding: 1px 0 1px 14px; position: relative; line-height: 1.7; }
.talk-grp li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent-fill); }
.talk-empty { font-size: 13px; color: var(--color-sub); text-align: center; padding: 14px 6px; }

/* ---------- タイムライン ---------- */
.tl { padding: 2px 0; }
.tl .day { font-family: var(--font-display); font-size: 13px; color: #8a6d2f; background: var(--color-accent-soft); padding: 2px 10px; display: inline-block; margin: 10px 0 4px; }
.tl .day:first-child { margin-top: 0; }
.tl .ev { display: flex; gap: 10px; padding: 5px 0; border-bottom: 2px dotted var(--color-rule); align-items: flex-start; }
.tl .ev:last-child { border-bottom: none; }
.tl .tm { font-weight: 700; color: #8a6d2f; font-size: 11.5px; min-width: 42px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.tl .ds { font-size: 12px; flex: 1; min-width: 0; line-height: 1.7; }
.tl .dur { font-size: 11px; color: var(--color-sub); flex-shrink: 0; }
.tl .ev.opt .ds { color: #8a6d2f; }

/* ---------- お持ち帰り ---------- */
.give { padding: 9px 12px; font-size: 12px; display: flex; gap: 9px; align-items: flex-start; }
.give .bico { color: var(--color-accent); margin-top: 2px; } .give .ic { width: 16px; height: 16px; }
.give .g { font-weight: 700; }
.give .w { color: var(--color-sub); font-size: 10.5px; margin-top: 0; }

/* ---------- 受け入れ ---------- */
.intake { display: flex; gap: 11px; align-items: center; flex-wrap: wrap; }
.intake .bico { color: var(--color-accent); } .intake .ic { width: 20px; height: 20px; }
.intake div { font-size: 12.5px; flex: 1; min-width: 220px; }

.disc { font-size: 11px; color: var(--color-sub); margin-top: 8px; text-align: center; line-height: 1.7; }

/* ---------- フッター ---------- */
.app-footer { background: var(--color-ink); color: var(--color-footer-text); padding: 26px var(--pad-x); margin-top: 30px; }
.app-footer__in { max-width: 1080px; margin: 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.app-footer__link { font-family: var(--font-display); font-size: 19px; color: #fff; letter-spacing: 0.08em; }
.footer-chara { width: 64px; height: 74px; object-fit: contain; margin: -42px 8px -18px 0; }

/* ---------- 下部固定サマリ ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--color-ink); border-top: 3px solid var(--color-accent); }
.bar .in { max-width: 1080px; margin: 0 auto; padding: 10px var(--pad-x); display: flex; align-items: center; gap: 16px; }
.bar .summary { color: #d9d9d9; font-size: 12px; flex: 1; min-width: 0; }
.bar .est { text-align: right; line-height: 1.35; flex-shrink: 0; }
.bar .est .lb { font-size: 10px; color: #aaa; white-space: nowrap; }
.bar .est .val { font-size: 17px; font-weight: 700; color: var(--color-accent-fill); font-family: var(--font-display); white-space: nowrap; }
.detail-lnk { background: none; border: 0; color: #cfc3a0; font-size: 10px; font-weight: 700; text-decoration: underline; padding: 0; margin-left: 6px; cursor: pointer; }
.detail-lnk:hover { color: #fff; }
.bar .cta { border: none; border-radius: 2px; padding: 12px 18px; font-family: var(--font-button); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.bar .copy { background: transparent; color: #eee; border: 2px solid #777; }
.bar .copy:hover:not(:disabled) { border-color: #fff; }
.bar .copy:disabled { opacity: .45; cursor: not-allowed; }
.bar .quote { background: transparent; color: #eee; border: 2px solid #777; cursor: not-allowed; }
.bar .quote:disabled { opacity: .45; }
.bar .quote.live { border-color: var(--color-accent-fill); color: var(--color-accent-fill); cursor: pointer; }
.bar .quote.live:hover { background: rgba(255,255,255,.08); }
.bar .apply { background: #555; color: #999; cursor: not-allowed; }
.bar .apply:disabled { cursor: not-allowed; }
.bar .apply.live { background: var(--color-accent-fill); color: #2a2113; cursor: pointer; }
.bar .apply.live:hover { opacity: .9; }

/* 必須項目（テーマ・候補日）が埋まるまで、サマリ全体を伏せて理由を出す */
.bar.is-locked { border-top-color: #7a7365; }
.bar.is-locked .in { opacity: .26; filter: grayscale(1); pointer-events: none; user-select: none; }
.bar__lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 8px var(--pad-x); background: rgba(38,38,38,.82); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.bar__lock[hidden] { display: none; }
.bar__lock-ic { display: inline-flex; align-items: center; line-height: 0; color: var(--color-accent-fill); font-size: 21px; flex-shrink: 0; }
.bar__lock-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bar__lock-txt b { font-family: var(--font-button); font-size: 13.5px; font-weight: 700; color: #fff; letter-spacing: .04em; line-height: 1.5; }
.bar__lock-txt small { font-size: 11px; color: #b9b3a6; letter-spacing: .03em; line-height: 1.5; }
.bar__lock-cta { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 2px solid var(--color-accent-fill); border-radius: 2px; background: transparent; color: var(--color-accent-fill); font-family: var(--font-button); font-weight: 700; font-size: 13px; letter-spacing: .04em; white-space: nowrap; transition: background .15s, color .15s; }
.bar__lock-cta:hover, .bar__lock-cta:focus-visible { background: var(--color-accent-fill); color: #2a2113; outline: none; }

/* モバイル: 費用の目安＋申込ボタンだけのシンプル構成 */
@media (max-width: 760px) {
  .bar .summary { display: none; }
  .bar .copy { display: none; }
  .bar .in { gap: 12px; padding: 8px 14px; justify-content: space-between; }
  .bar .est { text-align: left; flex: 1; min-width: 0; }
  .bar .cta { padding: 11px 12px; font-size: 12.5px; flex-shrink: 0; }
  .bar .quote .bico { display: none; }
  .bar__lock { gap: 10px; padding: 8px 14px; justify-content: space-between; }
  .bar__lock-ic { display: none; }
  .bar__lock-txt b { font-size: 12px; line-height: 1.45; text-wrap: balance; }
  .bar__lock-txt small { display: none; }
  .bar__lock-cta { padding: 10px 12px; font-size: 12.5px; }
}

/* ---------- モーダル ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(20,16,8,.55); z-index: 70; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-back[hidden] { display: none; }
.modal { background: #fff; border: 2px solid var(--color-ink); border-radius: 2px; max-width: 480px; width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.3); overflow: hidden; max-height: 86vh; display: flex; flex-direction: column; }
.modal__body { overflow-y: auto; }
.mail-pre { white-space: pre-wrap; word-break: break-word; background: #faf8f2; border: 2px dotted var(--color-rule); padding: 10px 12px; font-size: 11.5px; line-height: 1.7; max-height: 42vh; overflow: auto; }
.modal-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mbtn { flex: 1; min-width: 140px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--color-ink); background: #fff; color: var(--color-ink); font-family: var(--font-button); font-weight: 700; font-size: 12.5px; border-radius: 2px; cursor: pointer; text-decoration: none; }
.mbtn:hover { background: var(--color-accent-soft); }
.mbtn--primary { background: var(--color-ink); color: #fff; }
.mbtn--primary:hover { background: #555; }
.modal-note { font-size: 11px; color: var(--color-sub); line-height: 1.7; }
.dt-row { display: flex; gap: 10px; padding: 4px 0; border-bottom: 2px dotted var(--color-rule); font-size: 12px; align-items: baseline; }
.dt-row .k { min-width: 86px; font-weight: 700; color: #8a6d2f; flex-shrink: 0; }
.dt-row .v { flex: 1; min-width: 0; }
.dt-cost { margin-top: 10px; }
.dt-row--total { border-bottom: 0; font-size: 13px; }
.dt-row--total .v b { color: #8a6d2f; }
.modal__head { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 2px dotted var(--color-rule); }
.modal__title { font-family: var(--font-display); font-size: 18px; flex: 1; }
.modal__close { border: none; background: none; font-size: 22px; line-height: 1; color: var(--color-sub); padding: 0 4px; }
.modal__body { padding: 16px 18px; font-size: 13.5px; color: var(--color-ink); line-height: 1.9; }
.cap-lead { font-size: 13px; line-height: 1.8; margin: 0 0 14px; }
.cap-form { display: flex; flex-direction: column; gap: 12px; }
.cap-f { display: flex; flex-direction: column; gap: 5px; }
.cap-f__l { font-size: 12px; font-weight: 700; color: var(--color-sub); }
.cap-f__row { display: flex; gap: 6px; align-items: stretch; }
.cap-f__i, .cap-f__t, .cap-f__s { box-sizing: border-box; font: inherit; font-size: 16px; color: var(--color-ink); background: #fff; border: 1.5px solid var(--color-rule); border-radius: 3px; padding: 9px 10px; width: 100%; }
.cap-f__row .cap-f__i { flex: 1; min-width: 0; }
.cap-f__s { width: auto; flex-shrink: 0; }
.cap-f__t { resize: vertical; line-height: 1.7; }
.cap-f--check { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.cap-f--check input { width: 18px; height: 18px; accent-color: var(--color-accent-fill); }
.cap-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cap-wait { padding: 28px 4px; color: var(--color-sub); text-align: center; }
.cap-prev { border: 2px solid var(--color-rule); background: #fff; margin-top: 14px; }
.cap-prev img { display: block; width: 100%; height: auto; }

/* ---------- トースト ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--color-ink); color: #fff; padding: 10px 20px; border-radius: 2px; font-size: 13px; font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translateY(0); }

/* ── 見積り申し込みフォーム（2026-08-23）──────────────────────────
   以前は「文面をコピーしてメールで送る」だけだった。その場で送れるようにしたぶんの見た目。
   既存のモーダル（.mbtn / .modal-note）の上に乗せるので、色・角丸は既存のトークンに揃える。 */
.ob-f { margin-bottom: 10px; }
.ob-f label { display: block; font-size: 11.5px; font-weight: 700; color: var(--color-ink); margin-bottom: 4px; }
.ob-req { display: inline-block; margin-left: 6px; padding: 1px 6px; font-size: 9.5px; font-weight: 700;
  background: var(--color-ink); color: #fff; border-radius: 2px; vertical-align: 1px; }
.ob-f input, .ob-f textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 13.5px; line-height: 1.6;
  padding: 9px 10px; background: #fff; color: var(--color-ink);
  border: 2px solid var(--color-ink); border-radius: 2px; appearance: none;
}
.ob-f textarea { min-height: 74px; resize: vertical; }
.ob-f input:focus, .ob-f textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.ob-f input:disabled, .ob-f textarea:disabled { background: #f4f4f4; color: #888; }
.ob-check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; font-size: 11.5px; line-height: 1.75; color: var(--color-ink); cursor: pointer; }
.ob-check input { flex: none; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--color-accent-fill); }
.ob-check a { color: var(--color-link); text-decoration: underline; }
.ob-msg { margin-top: 8px; font-size: 12px; line-height: 1.8; }
.ob-msg.err { color: #b6482a; font-weight: 700; }
.ob-msg.ok { color: #2f6b34; }
.ob-plan { margin-top: 12px; }
.ob-plan summary { font-size: 11.5px; color: var(--color-sub); cursor: pointer; }
.ob-plan .mail-pre { margin-top: 6px; }
