/* ==================================================
   haiyer.work — 共通スタイル
   デザインシステム: V3 Soft Brutalist
   (pyhiroba / haikei-touka 準拠)
   ================================================== */

/* ---------- リセット・基本 ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- 日本語の折り返し ----------
   日本語は語の切れ目が無いので、既定のままだと「〜します。」の句点だけが
   次の行に落ちるような切れ方をする（320〜1920px の全幅で実際に出ていた）。
   文節で折り返し、最終行が極端に短くならないようにする。
   `word-break: auto-phrase` と `text-wrap` は未対応のブラウザでは無視されるだけで、
   従来どおりの折り返しに戻る＝壊れない。 */
h1, h2, h3, h4, h5, h6, p, li, dt, dd, figcaption, blockquote {
  word-break: auto-phrase;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;      /* 見出しは各行の長さを揃える */
}
p, dd, figcaption, blockquote {
  text-wrap: pretty;       /* 最終行に1〜2文字だけ残すのを避ける */
}
/* 箇条書きは1〜3行で終わることが多く、行の長さを揃えたほうが収まりが良い。
   長い項目（ブラウザの上限行数を超えるもの）では自動的に無視され、pretty 相当に戻る。 */
li { text-wrap: balance; }

:root {
  /* ブランドカラー */
  --accent:        #028DAE;
  --accent-dk:     #01617a;
  --accent-soft:   #e3f3f7;
  --accent-border: #c8e8ef;

  /* インク（テキスト） */
  --ink:   #101418;
  --ink-2: #2b3138;
  --ink-3: #5b636c;
  --ink-4: #8a929b;
  /* トップページの本文用。--ink-3 では薄く、--ink-2 では見出しと区別が付かないので、
     その間を1段だけ立てた（白地でのコントラスト比 8.0:1）。 */
  --ink-body: #454c55;

  /* 背景・サーフェス（アクセント #028DAE に合わせた寒色寄りのニュートラル） */
  --bg:    #f7fafb;
  --paper: #ffffff;
  --bg-2:  #eef3f5;

  /* ボーダー */
  --line:   #dfe7ea;
  --line-2: #eaf0f2;

  /* 情報系の注意書き（暖色は使わずアクセント基調で統一） */
  --notice-bg:     #e8f4f8;
  --notice-border: #bfdfe9;
  --notice-ink:    #0a5568;

  /* ステータスカラー */
  --color-red:    #e74c3c;
  --color-orange: #f59e0b;
  --color-green:  #27ae60;

  /* 角丸 */
  --radius-sm: 4px;
  --radius-md: 14px;
  --radius-lg: 22px;

  /* シャドウ */
  --shadow:     0 1px 0 rgba(16,20,24,.04), 0 8px 28px -12px rgba(16,20,24,.10);
  --shadow-sm:  0 1px 0 rgba(16,20,24,.04), 0 4px 12px -6px rgba(16,20,24,.08);
  --shadow-hover: 0 2px 0 rgba(16,20,24,.04), 0 12px 32px -8px rgba(16,20,24,.14);

  /* フォント */
  --font-ui:   'Zen Kaku Gothic New', system-ui, sans-serif;
  --font-code: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  /* 白格子背景（アクセント4% / 28px方眼） */
  background-color: #f9fbfc;
  background-image:
    linear-gradient(rgba(2,141,174,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2,141,174,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--ink);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

a { color: inherit; }

/* ---------- ナビゲーション ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.logo {
  position: relative;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
/* ---- ブランドの下線 ----
   ロゴの下に敷く「左が太く、右へ細く流れる一本線」。これがこのブランドの意匠で、
   ロゴ（ヘッダー・ヒーロー・フッター）と節の見出しで使い回す。
   形は clip-path の4点（左上・右上・右下・左下）だけで作っていて、右側をすぼめている。
   画像にせずCSSで持つのは、10ページ以上で使うため（直すのが1箇所で済む）。
   太さは文字の大きさに対して em で決めず、場面ごとに px で決める。
   ヘッダー18px とヒーロー108px では、同じ比率だと片方が必ず破綻するため。 */
.logo::after,
.hero-name::after,
.lp-footer-logo .lp-footer-mark::after,
.lp-section-head .eyebrow::after {
  content: "";
  background: var(--accent);
  clip-path: polygon(0 0, 100% 38%, 100% 62%, 0 100%);
}
.logo::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 4px;
}
/* ブランド名の「.work」の部分。ヘッダー・ヒーロー・フッターで同じ見た目にする
   （以前は `.logo` の中だけに効いていて、ヒーローとフッターは色が違っていた） */
.logo-dot { color: var(--ink-4); font-weight: 700; }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--ink-2); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-feature-settings: "palt";
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(2,141,174,.5);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover:not(:disabled) { background: var(--paper); }
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-dk);
  height: 56px;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 800;
}
.btn-accent:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(2,141,174,.5);
}
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- セクション見出し ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-code);
}

/* 言語切替（グローブ付きセグメントトグル） */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 3px 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.lang-globe {
  display: inline-flex;
  color: var(--ink-4);
  margin-right: 4px;
}
.lang-btn {
  border: 0;
  background: transparent;
  padding: 6px 13px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .01em;
  color: var(--ink-4);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.lang-btn:hover:not(.is-active) { color: var(--accent-dk); }
.lang-btn.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px -2px rgba(2, 141, 174, .55);
}

/* 事業者ログイン導線（お客様向けCTAと競合しないよう控えめに） */
.nav-links .nav-admin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.nav-links .nav-admin:hover {
  border-color: var(--accent-border);
  color: var(--accent-dk);
  background: var(--accent-soft);
}
.nav-admin svg { flex-shrink: 0; }

/* ---------- フッター ---------- */
.footer {
  padding: 40px 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-4);
}
.footer-link {
  color: var(--ink-3);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.footer-link:hover { color: var(--accent-dk); border-color: var(--accent-border); }
.footer-copy { margin-top: 14px; }
.footer-links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px 22px; font-size: 13px; font-weight: 700;
}
.footer-links a {
  color: var(--ink-3); text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: var(--accent-dk); }

/* ==================================================
   規約・ポリシー
   ================================================== */
.legal { padding: 12px 0 40px; max-width: 820px; }
.legal-lead { font-size: 15px; color: var(--ink-2); line-height: 1.9; margin: 16px 0 34px; }
.legal-sec { margin-bottom: 30px; }
.legal-sec h2 {
  font-size: 17px; font-weight: 800; color: var(--ink);
  padding-bottom: 8px; margin-bottom: 12px;
  border-bottom: 2px solid var(--accent-border);
}
.legal-sec p { font-size: 14.5px; line-height: 1.95; color: var(--ink-2); }
.legal-sec p + p { margin-top: 10px; }
.legal-sec ol { margin: 6px 0 0 1.4em; }
.legal-sec li { font-size: 14.5px; line-height: 1.95; color: var(--ink-2); margin-bottom: 6px; }
.legal-sec a { color: var(--accent-dk); font-weight: 700; }

.legal-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13.5px; }
.legal-table th, .legal-table td {
  border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; line-height: 1.75;
}
.legal-table th { background: var(--bg-2); font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.muted-note { font-size: 12.5px; color: var(--ink-4); margin-top: 8px; }

/* 特商法などの定義リスト型テーブル */
.legal-table-def th {
  width: 190px; vertical-align: top; background: var(--bg-2);
}
.legal-table-def td { line-height: 1.9; }
.legal-table-def .todo { color: var(--color-red); font-weight: 700; }
@media (max-width: 640px) {
  .legal-table-def th, .legal-table-def td { display: block; width: auto; }
  .legal-table-def th { border-bottom: 0; }
}
/* 見出しセルの nowrap は、狭い画面では表ごと画面外へ押し出す
   （320px のプライバシーポリシー「外部サービスの利用」の表で 19px はみ出していた）。
   広い画面では従来どおり1行に保ち、狭いところでだけ折り返しを許す。 */
@media (max-width: 560px) {
  .legal-table { font-size: 12.5px; }
  .legal-table th { white-space: normal; }
  .legal-table th, .legal-table td { padding: 8px 9px; overflow-wrap: anywhere; }
}

/* 改定履歴の帯。
   以前は display:flex だったが、3ページとも中身は素のテキスト1本しか入っておらず、
   匿名フレックスアイテムは min-width:auto のまま縮まない。日本語の min-content は
   「最も長い折り返せないまとまり」なので、320px の特商法ページで 11px はみ出していた。
   （`.legal-meta > *` に min-width:0 を入れても、匿名アイテムには当たらない） */
.legal-meta {
  padding: 18px 20px; background: var(--bg-2);
  border-radius: var(--radius-md); margin-top: 34px; font-size: 14px;
  line-height: 1.9; overflow-wrap: anywhere;
}
.legal-meta .k { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-4); margin-bottom: 2px; }
.legal-meta .todo { color: var(--color-red); font-weight: 700; }
.legal-note {
  margin-top: 18px; padding: 13px 16px; font-size: 12.5px; line-height: 1.8;
  background: var(--notice-bg); border: 1px solid var(--notice-border);
  border-radius: var(--radius-md); color: var(--notice-ink);
}

/* ==================================================
   開発中の告知バー（全ページ共通・正式提供まで表示）
   --------------------------------------------------
   閉じられるようにしてあるので、×ぶんの余白を左右に同じだけ取って
   文章が画面の中央に来るようにしている（右だけ空けると中心がずれる）。
   ================================================== */
.dev-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 44px;
  background: var(--notice-bg);
  border-bottom: 1px solid var(--notice-border);
  color: var(--notice-ink);
  font-size: 12.5px;
  line-height: 1.7;
  text-align: center;
}
/* .dev-bar は display:flex なので、[hidden] の display:none を明示で上書きする */
.dev-bar[hidden] { display: none; }
.dev-bar-close {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  opacity: 0.55;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.dev-bar-close:hover { opacity: 1; background: rgba(0, 0, 0, 0.06); }
.dev-bar-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; opacity: 1; }
@media (max-width: 560px) {
  .dev-bar { font-size: 11.5px; padding: 8px 40px; }
}

/* ==================================================
   トップページ
   ================================================== */
.hero {
  padding: 72px 0 90px;
  text-align: center;
}
.hero-brand {
  /* 下線は .hero-name の padding-bottom に含まれるので、ここは素の余白でよい */
  margin: 8px auto 18px;
}
.hero-kana {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0.22em;
  margin-bottom: 8px;
}
.hero-name {
  /* 下限を 56px にしていたため、320px幅では「hAIyer.work」が 356px になり
     56px はみ出していた（横スクロールの原因）。下限を 12vw が効く高さまで下げる。 */
  position: relative;
  display: inline-block;
  font-size: clamp(34px, 12vw, 108px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink);
  /* ⚠ 下線ぶんの余白を**箱の中に**持つこと。
     line-height が 1.02（字面より小さい）なので、箱の底は「y」の墨より上に来る。
     箱の外に line を置くと、位置の基準そのものが浅いので y の尻尾に必ず刺さる。
     余白を内側に取れば、下の見出しとの間隔も自動で正しくなる。 */
  padding-bottom: 0.3em;
}
/* ヒーローはロゴそのものとして見せる。下線も文字幅に合わせて伸縮させる。
   位置と太さは em で決める。文字の大きさが clamp で伸縮するので、px で決めると
   大きい画面と小さい画面のどちらかで必ず y に重なる。 */
.hero-name::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: max(3px, 0.085em);
}
.hero-h1 {
  font-size: clamp(20px, 3.4vw, 30px);
  line-height: 1.6;
  font-weight: 700;
  margin: 8px auto 0;
  color: var(--ink);
  letter-spacing: 0.01em;
  /* 狭い画面では <br> の2行がさらに折れる。せめて文節で折る */
  word-break: auto-phrase;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ==================================================
   フォームページ
   ================================================== */
.form-main {
  padding: 20px 0 60px;
}
.page-head {
  margin: 8px 0 28px;
}
.page-title {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 6px 0 0;
}
.page-lead {
  color: var(--ink-3);
  font-size: 15px;
  margin-top: 10px;
  max-width: 640px;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
}
.panel + .panel { margin-top: 22px; }
.panel-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.panel-title .badge {
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 2px 10px;
}
.panel-sub {
  color: var(--ink-3);
  font-size: 13px;
  margin-bottom: 18px;
}

/* ---------- 地点リスト ---------- */
.points { display: flex; flex-direction: column; gap: 12px; }

.point-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}
.point-marker {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 14px;
  background: color-mix(in oklab, var(--accent) 10%, white);
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, white);
}
.point-row[data-role="origin"] .point-marker {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-dk);
}
.point-body { flex: 1; min-width: 0; position: relative; }

.point-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 0 6px 0 14px;
  transition: border-color .15s, box-shadow .15s;
}
.point-input-wrap:focus-within {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px rgba(2,141,174,.10);
}
.point-input-wrap.is-confirmed {
  border-color: var(--accent-border);
  background: color-mix(in oklab, var(--accent) 4%, white);
}
.point-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  padding: 12px 0;
  color: var(--ink);
  min-width: 0;
}
.point-input::placeholder { color: var(--ink-4); }
.point-check {
  flex-shrink: 0;
  color: var(--color-green);
  display: none;
}
.point-input-wrap.is-confirmed .point-check { display: inline-flex; }
.point-remove {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--ink-4);
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s, color .15s;
}
.point-remove:hover { background: #fbecea; color: var(--color-red); }
.point-hint {
  font-size: 12px;
  color: var(--ink-4);
  margin: 5px 0 0 2px;
}
.point-hint.is-warn { color: var(--color-red); font-weight: 700; }

/* ---------- 候補ドロップダウン ---------- */
.suggest {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}
.suggest[hidden] { display: none; }
.suggest-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--line-2);
}
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover, .suggest-item.is-active {
  background: color-mix(in oklab, var(--accent) 6%, white);
}
.suggest-ic { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.suggest-main { font-size: 14px; font-weight: 600; color: var(--ink); }
.suggest-sub { font-size: 12px; color: var(--ink-3); }
.suggest-empty { padding: 14px; font-size: 13px; color: var(--ink-4); }

.add-point-wrap { margin-top: 14px; }
.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px dashed var(--accent-border);
  background: transparent;
  color: var(--accent-dk);
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s;
}
.btn-add:hover { background: var(--accent-soft); }
.btn-add:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- オプション ---------- */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.field-control {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  font: inherit;
  font-size: 14px;
  padding: 0 12px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field-control:hover:not(:disabled) { border-color: var(--accent-border); }
.field-control:focus {
  outline: 0;
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px rgba(2,141,174,.10);
}

/* select はブラウザ既定の矢印を消し、ピッカー（.pk-caret）と同じシェブロンに揃える。
   矢印はSVGのdata URIで描く（色は --ink-4 = #8a929b 相当。data URI内は変数を使えないため直値）。 */
select.field-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%238a929b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
select.field-control::-ms-expand { display: none; }
/* 選択肢のリスト自体はOSが描くため、せめて余白と文字は揃えておく */
select.field-control option { font: inherit; color: var(--ink); }
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
}
.check-row input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}
.check-row label { font-size: 14px; cursor: pointer; }

.actions-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* ---------- 結果 ---------- */
.results[hidden] { display: none; }
.result-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 20px;
}
.stat {
  background: var(--paper);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-family: var(--font-code);
  text-transform: uppercase;
}
.stat-value {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
}
.stat-value .unit {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-3);
  margin-left: 4px;
  letter-spacing: 0;
}
.stat.is-accent .stat-value { color: var(--accent); }

.legs { border-top: 1px solid var(--line-2); }
.legs-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-2);
  margin: 20px 0 12px;
}
.leg {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
}
.leg:last-child { border-bottom: 0; }
.leg-idx {
  flex-shrink: 0;
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--ink-4);
  width: 52px;
}
.leg-route { flex: 1; min-width: 0; color: var(--ink); font-weight: 600; }
.leg-route .arrow { color: var(--ink-4); margin: 0 6px; font-weight: 400; }
.leg-metrics { flex-shrink: 0; color: var(--ink-3); font-size: 13px; text-align: right; }

/* ---------- 通知バナー ---------- */
.banner {
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}
.banner[hidden] { display: none; }
.banner-demo {
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  color: var(--notice-ink);
}
/* banner-info は /register/ が使っているのに定義が無く、枠も背景も出ていなかった */
.banner-info {
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  color: var(--notice-ink);
}
.banner-error {
  background: #fdecea;
  border: 1px solid #f5c2bc;
  color: #a3271a;
}
.banner-ic { flex-shrink: 0; margin-top: 1px; }

/* ---------- ローディング ---------- */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.disclaimer {
  font-size: 12px;
  color: var(--ink-4);
  margin-top: 16px;
  line-height: 1.7;
}

/* ==================================================
   地点行 v2（ピックアップ日時 / 滞在時間）
   ================================================== */
.point-row-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
/* 右端の列はポップアップが画面外に出ないよう右寄せで開く */
.point-extra .pk-pop { left: auto; right: 0; }
.point-input-col {
  position: relative;   /* 候補ドロップダウンの基準 */
  flex: 1 1 auto;
  min-width: 0;
}
.point-extra { flex: 0 0 auto; }
.point-extra.is-pickup { width: 230px; }
.point-extra.is-dwell { width: 168px; }
.point-extra.is-time { width: 150px; }
.extra-field input[type="time"] { cursor: text; }

.extra-field {
  display: flex;
  align-items: center;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.extra-field:focus-within {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px rgba(2,141,174,.10);
}
.extra-field .extra-label {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  padding: 0 6px 0 12px;
  white-space: nowrap;
}
.extra-field input,
.extra-field select {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  height: 100%;
  padding: 0 10px 0 2px;
  color: var(--ink);
  cursor: pointer;
}
.extra-field input[type="datetime-local"] { cursor: text; }

.point-remove { margin-top: 32px; }

@media (max-width: 720px) {
  .point-row-top { flex-wrap: wrap; }
  .point-extra.is-pickup,
  .point-extra.is-dwell,
  .point-extra.is-time { width: 100%; }
}

/* ==================================================
   行程表（itinerary）
   ================================================== */
.itin-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-2);
  margin: 22px 0 14px;
}
.itin {
  position: relative;
  padding-left: 6px;
}
.itin-stop {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}
.itin-marker {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 13px;
  background: color-mix(in oklab, var(--accent) 10%, white);
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, white);
  z-index: 1;
}
.itin-stop.pickup .itin-marker,
.itin-stop.final .itin-marker {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-dk);
}
.itin-content { padding-bottom: 4px; }
.itin-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.itin-time {
  font-family: var(--font-code);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-dk);
}
.itin-sub {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* 区間（stop と stop の間の走行） */
.itin-leg {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 2px 15px;      /* マーカー中心に線を合わせる */
  padding: 8px 0 8px 28px;
  border-left: 2px dashed var(--accent-border);
  color: var(--ink-3);
}
.itin-leg-ic {
  display: inline-flex;
  color: var(--accent);
  margin-left: -39px;          /* 破線上にアイコンを重ねる */
  background: var(--paper);
  padding: 3px 0;
}
.itin-leg-metrics {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

/* ==================================================
   料金見積（距離制 / 時間制）
   ================================================== */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.quote-card {
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  background: color-mix(in oklab, var(--accent) 4%, white);
}
.quote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.quote-name { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.quote-tag {
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 2px 10px;
}
.quote-total {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--accent-dk);
}
.quote-total .yen { font-size: 19px; font-weight: 800; margin-right: 1px; }
.quote-break {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--accent-border);
  font-size: 12.5px;
  color: var(--ink-3);
}
.quote-break .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
}
.quote-break .row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.quote-break .row.total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--accent-border);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}

.result-sub-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-2);
  margin: 4px 0 12px;
}

/* ==================================================
   ウィザード（3ステップ）
   ================================================== */
.wiz-progress {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
}
.wiz-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-4);
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
}
.wiz-num {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-family: var(--font-code);
  font-size: 12px;
  background: var(--bg-2);
  color: var(--ink-4);
  border: 1px solid var(--line);
}
.wiz-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wiz-step.is-active {
  border-color: var(--accent-border);
  color: var(--accent-dk);
  background: color-mix(in oklab, var(--accent) 5%, white);
}
.wiz-step.is-active .wiz-num { background: var(--accent); color: #fff; border-color: var(--accent-dk); }
.wiz-step.is-done { color: var(--ink-2); }
.wiz-step.is-done .wiz-num { background: var(--accent-soft); color: var(--accent-dk); border-color: var(--accent-border); }

/* overflow-x:clip はスライドインの横あふれのみ抑え、日付ポップアップ(縦)は表示する */
.stage { position: relative; overflow-x: clip; }
@keyframes islandIn {
  from { opacity: 0; transform: translateX(-70px); }
  to   { opacity: 1; transform: none; }
}
.island-enter { animation: islandIn .38s cubic-bezier(.22, .61, .36, 1); }

/* お客様情報 */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .fg-2 { grid-column: 1 / -1; }
.req { color: var(--color-red); font-weight: 900; }

.sched-block { margin-top: 24px; }
.sched-list { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 12px; }
.sched-row { display: flex; align-items: center; gap: 10px; }
.sched-row .datepicker { flex: 1; }

/* ==================================================
   ピッカー共通（日付 / 時刻 / 滞在時間）
   ================================================== */
.picker { position: relative; }
.sched-row .datepicker { flex: 1; }

.pk-field {
  display: flex; align-items: center; gap: 10px;
  width: 100%; height: 50px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: #fff; font: inherit; font-size: 14.5px; color: var(--ink);
  cursor: pointer; text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.pk-field-sm { height: 46px; padding: 0 12px; font-size: 14px; }
.pk-field:hover { border-color: var(--accent-border); }
.pk-field:focus-visible { outline: 0; border-color: var(--accent-border); box-shadow: 0 0 0 3px rgba(2,141,174,.10); }
/* 開いている間は入力欄側にもフォーカス相当の縁を出す（どれを開いているか分かるように） */
.picker:has(> .pk-pop:not([hidden])) > .pk-field {
  border-color: var(--accent-border); box-shadow: 0 0 0 3px rgba(2,141,174,.10);
}
.picker:has(> .pk-pop:not([hidden])) > .pk-field .pk-caret { transform: rotate(180deg); }
.pk-caret { transition: transform .15s; }
.pk-ic { color: var(--accent); display: inline-flex; flex-shrink: 0; }
.pk-value { flex: 1; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-field.is-empty .pk-value { color: var(--ink-4); font-weight: 500; }
.pk-caret { color: var(--ink-4); display: inline-flex; flex-shrink: 0; }

.pk-pop {
  position: absolute; z-index: 70; top: calc(100% + 10px); left: 0;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-hover);
  padding: 18px;
  animation: pkIn .16s ease-out;
}
.pk-pop[hidden] { display: none; }
/* 下に収まらないときは上向きに開く */
.pk-pop.is-up { top: auto; bottom: calc(100% + 10px); animation: pkInUp .16s ease-out; }
@keyframes pkIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes pkInUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pk-pop-title {
  font-size: 13px; font-weight: 800; color: var(--ink-2);
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2);
}

/* ---------- セレクト（ネイティブ <select> の置き換え） ---------- */
/* 値は隠した <select> が持つ。見た目だけこちらで描く。 */
.selectpicker > select { display: none; }
.pk-pop-select { min-width: 100%; padding: 6px; max-height: 320px; overflow-y: auto; }
.pk-opt {
  display: block; width: 100%; padding: 9px 12px;
  border: 0; border-radius: var(--radius-sm); background: transparent;
  font: inherit; font-size: 13.5px; color: var(--ink);
  cursor: pointer; text-align: left; white-space: nowrap;
}
.pk-opt:hover { background: var(--accent-soft); color: var(--accent-dk); }
.pk-opt.is-selected { background: var(--accent); color: #fff; font-weight: 700; }
/* 隠した <select> が disabled のときはボタン側も押せなくする（連絡手段なしの打診カード等） */
.selectpicker > .pk-field:disabled { background: var(--bg-2); color: var(--ink-4); cursor: not-allowed; }
.selectpicker > .pk-field:disabled:hover { border-color: var(--line); }

/* --- 日付 --- */
.pk-pop-date { width: 372px; max-width: calc(100vw - 40px); }
.pk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pk-title { font-weight: 800; font-size: 17px; color: var(--ink); }
.pk-nav {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink-2); cursor: pointer; display: grid; place-items: center;
  transition: background .15s, border-color .15s, color .15s;
}
.pk-nav:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-dk); }
.pk-nav:disabled { opacity: .3; cursor: not-allowed; }
.pk-wdrow { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 6px; }
.pk-wd { text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-4); padding: 5px 0; font-family: var(--font-code); }
.pk-wd.sun { color: var(--color-red); }
.pk-wd.sat { color: var(--accent); }
.pk-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.pk-day {
  height: 44px; border: 0; background: transparent; border-radius: 12px;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  cursor: pointer; display: grid; place-items: center;
  transition: background .12s, color .12s;
}
.pk-day.is-blank { visibility: hidden; }
.pk-day.sun { color: var(--color-red); }
.pk-day.sat { color: var(--accent); }
.pk-day:hover:not(:disabled):not(.is-selected) { background: var(--accent-soft); }
.pk-day.is-today { box-shadow: inset 0 0 0 2px var(--accent-border); }
.pk-day.is-selected { background: var(--accent); color: #fff !important; font-weight: 800; }
.pk-day.is-disabled { color: var(--ink-4); opacity: .35; cursor: not-allowed; }
/* 定休日：無効化に加え、取り消し線＋赤系ドットで「定休日」と分かるようにする */
.pk-day.is-closed { position: relative; opacity: .6; text-decoration: line-through; color: var(--color-red); }
.pk-day.is-closed::after {
  content: ''; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--color-red);
}
.pk-legend { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); font-size: 11.5px; color: var(--ink-3); }
.pk-lg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-red); display: inline-block; }

/* --- 時刻（スクロールなし・全表示） --- */
.pk-pop-time { width: 328px; max-width: calc(100vw - 40px); }
.pk-sec-label {
  font-size: 11px; font-weight: 700; color: var(--ink-4);
  font-family: var(--font-code); margin: 2px 0 6px;
}
.pk-grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-bottom: 10px; }
.pk-grid-6 .pk-cell { height: 36px; font-size: 13px; }
.pk-cell {
  height: 42px; border: 1px solid transparent; border-radius: 10px;
  background: var(--bg-2); font: inherit; font-size: 14.5px; font-weight: 700;
  color: var(--ink-2); cursor: pointer; display: grid; place-items: center;
  font-family: var(--font-code);
  transition: background .12s, color .12s, border-color .12s;
}
.pk-cell:hover { background: var(--accent-soft); color: var(--accent-dk); border-color: var(--accent-border); }
.pk-cell.is-selected { background: var(--accent); color: #fff; border-color: var(--accent-dk); }
.pk-presets { display: flex; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.pk-preset {
  flex: 1; height: 34px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font: inherit; font-size: 12.5px; font-weight: 700;
  color: var(--ink-3); cursor: pointer; font-family: var(--font-code);
  transition: background .15s, color .15s, border-color .15s;
}
.pk-preset:hover { background: var(--accent-soft); color: var(--accent-dk); border-color: var(--accent-border); }

/* --- 滞在時間 --- */
.pk-pop-dwell { width: 320px; max-width: calc(100vw - 40px); }
.pk-dwell-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-height: 300px; overflow-y: auto; }
.pk-cell-wide { font-family: var(--font-ui); font-size: 13px; height: 44px; }

/* --- 見出し・必須マーク・エラー --- */
/* 見出しを両カラムに置くことで、入力欄とピッカーの高さを揃える */
.point-cap {
  display: flex; align-items: center; gap: 3px;
  height: 18px; margin-bottom: 6px;
  font-size: 11.5px; font-weight: 700; color: var(--ink-3);
  white-space: nowrap;
}
.req-star {
  color: var(--color-red); font-style: normal; font-weight: 900; font-size: 12px; line-height: 1;
}
.point-extra.is-invalid .pk-field,
.point-input-col.is-invalid .point-input-wrap {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(231,76,60,.12);
}

.wiz-nav { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
.wiz-nav .btn-accent { margin-left: auto; }

.sched-chip {
  display: inline-block;
  font-weight: 700;
  color: var(--accent-dk);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 3px 12px;
  margin-right: 6px;
  font-size: 13px;
}

/* 車種選択 */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.vehicle-card {
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  cursor: pointer;
  font: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.vehicle-card:hover { border-color: var(--accent-border); }
.vehicle-card.is-selected {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 5%, white);
  box-shadow: 0 0 0 3px rgba(2,141,174,.10);
}
.vehicle-card.is-full {
  opacity: .6;
  background: color-mix(in oklab, var(--ink) 4%, white);
  pointer-events: none;
}
.vehicle-card.is-full:hover { border-color: var(--line); }
.vehicle-card.is-full .vh-photos { pointer-events: auto; }
.vh-full {
  display: inline-block; margin-left: 6px; font-weight: 800; font-size: 11.5px;
  color: #b23b3b; background: #fbeaea; border-radius: 999px; padding: 1px 8px;
}
.vh-ic { color: var(--accent); }
.vh-name { font-weight: 800; font-size: 15px; color: var(--ink); line-height: 1.35; }
.vh-cat { font-size: 12px; color: var(--ink-3); font-family: var(--font-code); }
.vh-check {
  position: absolute; top: 12px; right: 12px;
  width: 22px; height: 22px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  opacity: 0; transform: scale(.7);
  transition: opacity .15s, transform .15s;
}
.vehicle-card.is-selected .vh-check { opacity: 1; transform: none; }

/* 特記事項 */
.notes-block { margin-top: 22px; }
.notes-area {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  resize: vertical;
}
.notes-area::placeholder { color: var(--ink-4); }
.notes-area:focus { outline: 0; border-color: var(--accent-border); box-shadow: 0 0 0 3px rgba(2,141,174,.10); }

.notes-summary {
  padding: 14px 18px;
  background: var(--bg-2);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  font-size: 14px;
}
.notes-summary .cs-k { color: var(--ink-4); font-size: 12px; font-weight: 700; }
.notes-summary .notes-text { margin-top: 6px; white-space: pre-wrap; color: var(--ink-2); line-height: 1.7; }

/* 結果：お客様サマリー */
.cust-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 16px 18px;
  background: var(--bg-2);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  font-size: 14px;
}
.cust-summary .cs-k { color: var(--ink-4); font-size: 12px; font-weight: 700; margin-right: 8px; }

.rate-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 14px 18px;
  align-items: end;
  padding: 4px 0 6px;
  margin-bottom: 8px;
}
.rate-note { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--ink-4); }

/* 各日程ブロック */
.sched-result { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.sched-result:first-of-type { border-top: 0; padding-top: 6px; margin-top: 6px; }
.sched-result-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.sched-badge {
  font-family: var(--font-code);
  font-size: 12px; font-weight: 700;
  color: #fff; background: var(--accent);
  border-radius: 999px; padding: 3px 12px;
}
.sched-when { font-size: 14px; font-weight: 700; color: var(--ink-2); }

/* 全日程合計 */
.grand {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--accent) 6%, white);
}
.grand-title { font-size: 14px; font-weight: 800; color: var(--ink-2); margin-bottom: 12px; }
.grand-metrics { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.grand-metrics b { color: var(--ink); font-weight: 800; }
.grand-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.grand-quote {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: #fff;
  border: 1px solid var(--accent-border); border-radius: var(--radius-md);
}
.grand-quote span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.grand-quote b { font-size: 24px; font-weight: 900; color: var(--accent-dk); letter-spacing: -0.01em; }

.loading-box { display: flex; align-items: center; gap: 12px; padding: 40px 8px; color: var(--ink-3); font-weight: 700; }
.spinner-accent { border: 2px solid var(--accent-border); border-top-color: var(--accent); }

/* ==================================================
   ドラッグ並べ替え
   ================================================== */
/* 見出し(18px+6px)＋入力欄(50px)の中心にマーカーを合わせる */
.point-lead { display: flex; align-items: center; gap: 4px; flex-shrink: 0; margin-top: 32px; }
.point-drag {
  width: 22px; height: 30px; display: grid; place-items: center;
  color: var(--ink-4); cursor: grab; border-radius: 6px;
  transition: background .15s, color .15s;
}
.point-drag:hover { background: var(--accent-soft); color: var(--accent-dk); }
.point-drag:active { cursor: grabbing; }
.point-drag.is-hidden { visibility: hidden; }
.point-row.is-dragging { opacity: .45; }
.point-row.is-drop-before { box-shadow: 0 -3px 0 -1px var(--accent); }
.point-row.is-drop-after { box-shadow: 0 3px 0 -1px var(--accent); }

/* ==================================================
   STEP2 ヘッダー
   ================================================== */
.route-head { margin-bottom: 22px; }
.route-head-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.route-day {
  font-family: var(--font-code); font-size: 12px; font-weight: 700;
  color: #fff; background: var(--accent); border-radius: 999px; padding: 4px 12px;
}
.route-day .of { opacity: .7; font-weight: 500; }
.route-date {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 800; color: var(--accent-dk);
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  border-radius: 999px; padding: 4px 14px;
}
.route-badge { margin-left: auto; }
.route-title { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; margin: 0 0 12px; }
.route-steps {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--bg-2); border-radius: var(--radius-md);
  font-size: 13px; color: var(--ink-2);
}
.route-steps .rs { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.route-steps .rs i {
  width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-style: normal;
  font-size: 11px; font-weight: 800; font-family: var(--font-code);
}
.route-steps .rs b { color: var(--accent-dk); }
.route-steps .rs-arrow { color: var(--ink-4); display: inline-flex; }
.route-steps .rs-note { margin-left: auto; font-size: 12px; color: var(--ink-4); }

/* ==================================================
   車種：単価・写真
   ================================================== */
.vh-rate {
  font-size: 12px; font-weight: 700; color: var(--accent-dk);
  background: var(--accent-soft); border-radius: 6px; padding: 3px 8px;
  align-self: flex-start; font-family: var(--font-code);
}

/* 台数ステッパー（複数台選択） */
.vh-qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; align-self: flex-start; }
.vh-q-btn {
  width: 30px; height: 30px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper);
  font-size: 18px; font-weight: 700; color: var(--ink-2); cursor: pointer; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.vh-q-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-dk); }
.vh-q-btn:disabled { opacity: .4; cursor: not-allowed; }
.vh-q-n { min-width: 30px; text-align: center; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* 人数上限の注記 */
.pax-cap-note { font-size: 11.5px; color: var(--accent-dk); margin: 5px 0 0; font-weight: 600; }

/* 定員バー（人数 vs 選択定員） */
.cap-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 18px 0 4px; padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; font-weight: 700;
}
.cap-bar.is-ok { background: #e7f7ee; color: #1c7a45; border: 1px solid #b8e3ca; }
.cap-bar.is-short { background: #fdecea; color: #b4232a; border: 1px solid #f0c0bc; }
.cap-ok { font-weight: 800; }
.cap-need { font-weight: 700; }

/* 複数台割引の行 */
.qs-table tfoot .qs-disc th { color: var(--accent-dk); font-size: 13px; border-top: 1px solid var(--line-2); padding-top: 10px; font-weight: 700; }
.qs-table tfoot .qs-disc th.num { font-size: 14px; }
.vh-photos {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font: inherit; font-size: 12px; font-weight: 700;
  color: var(--ink-2); cursor: pointer; align-self: flex-start;
  transition: background .15s, border-color .15s, color .15s;
}
.vh-photos:hover { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-dk); }

/* ---- ギャラリー ---- */
.gallery-ov {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 25, 30, .78); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 24px;
  animation: pkIn .18s ease-out;
}
.gallery {
  width: min(880px, 100%); background: #fff;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 24px 70px -20px rgba(0,0,0,.5);
}
.gallery-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.gallery-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.gallery-close {
  width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent;
  color: var(--ink-3); cursor: pointer; display: grid; place-items: center;
}
.gallery-close:hover { background: var(--bg-2); color: var(--ink); }
.gallery-main {
  position: relative; display: grid; place-items: center;
  background: var(--bg-2); min-height: 300px;
}
.gallery-img { max-width: 100%; max-height: 62vh; display: block; object-fit: contain; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.gallery-nav:hover { background: #fff; }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-thumbs { display: flex; gap: 8px; padding: 12px 18px; overflow-x: auto; }
.gallery-thumb {
  flex: 0 0 auto; width: 66px; height: 50px; padding: 0;
  border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  background: var(--bg-2); cursor: pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.is-active { border-color: var(--accent); }
.gallery-count {
  padding: 0 18px 14px; font-size: 12px; color: var(--ink-4);
  font-family: var(--font-code); text-align: right;
}

/* ==================================================
   見積ヒーロー（距離＋時間＋高速）
   ================================================== */
.quote-hero {
  border: 1px solid var(--accent-border); border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--accent) 5%, white);
  padding: 26px 28px; margin-bottom: 22px; text-align: center;
}
.quote-hero-label { font-size: 13px; font-weight: 800; color: var(--ink-3); }
.quote-hero-total {
  font-size: 52px; font-weight: 900; letter-spacing: -0.03em;
  color: var(--accent-dk); line-height: 1.05; margin: 6px 0 18px;
}
.quote-hero-total .yen { font-size: 26px; font-weight: 800; margin-right: 2px; }
.quote-hero-break {
  display: flex; align-items: stretch; justify-content: center;
  gap: 10px; flex-wrap: wrap;
}
.quote-hero-break .qb {
  flex: 1 1 170px; background: #fff; border: 1px solid var(--accent-border);
  border-radius: var(--radius-md); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.quote-hero-break .qb span { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.quote-hero-break .qb b { font-size: 20px; font-weight: 900; color: var(--ink); letter-spacing: -0.01em; }
.quote-hero-break .qb small { font-size: 11px; color: var(--ink-4); font-family: var(--font-code); }
.quote-hero-break .qb-plus {
  display: grid; place-items: center; font-size: 18px; font-weight: 900; color: var(--ink-4);
}
.quote-hero-meta { margin-top: 16px; font-size: 13px; color: var(--ink-3); font-weight: 600; }

.sched-metrics { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }

/* ==================================================
   見積シート（画面表示・見積書に寄せたデザイン）
   ================================================== */
.quote-sheet {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  margin-bottom: 24px;
}
.qs-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 18px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.qs-kicker {
  font-family: var(--font-code); font-size: 11.5px; font-weight: 700;
  letter-spacing: .16em; color: var(--accent); text-transform: uppercase; margin-bottom: 8px;
}
.qs-to { font-size: 22px; font-weight: 900; letter-spacing: -0.01em; color: var(--ink); }
.qs-sama { font-size: 15px; font-weight: 700; margin-left: 4px; }
.qs-org { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.qs-head-right { font-size: 13px; color: var(--ink-2); text-align: right; line-height: 2; }
.qs-head-right .k { color: var(--ink-4); font-size: 11.5px; font-weight: 700; margin-right: 10px; }
.qs-issuer-name { font-size: 14px; font-weight: 900; color: var(--ink); letter-spacing: -0.01em; }

.qs-total {
  display: flex; align-items: baseline; justify-content: flex-start; gap: 12px;
  padding: 18px 22px; margin-bottom: 22px;
  background: color-mix(in oklab, var(--accent) 6%, white);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
}
.qs-total-label { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.qs-total-value {
  font-size: 40px; font-weight: 900; letter-spacing: -0.03em;
  color: var(--accent-dk); line-height: 1.05; margin-left: auto;
}
.qs-total-tax { font-size: 12px; color: var(--ink-3); font-weight: 600; }

.qs-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 20px; }
.qs-table th, .qs-table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); text-align: left; }
.qs-table thead th {
  font-size: 11.5px; font-weight: 700; color: var(--ink-3);
  font-family: var(--font-code); letter-spacing: .04em;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.qs-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qs-table tbody td:first-child { font-weight: 700; color: var(--ink); }
.qs-table tbody td:not(:first-child) { color: var(--ink-2); }
.qs-table tfoot th {
  border-top: 2px solid var(--accent); border-bottom: 0;
  font-size: 16px; font-weight: 900; color: var(--ink); text-align: right; padding-top: 14px;
}
.qs-table tfoot th.num { font-size: 22px; color: var(--accent-dk); letter-spacing: -0.02em; }

.qs-meta {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  padding: 16px 18px; background: var(--bg-2);
  border-radius: var(--radius-md); font-size: 14px; font-weight: 600;
}
.qs-meta .k { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-4); margin-bottom: 2px; }
.qs-notes {
  margin-top: 12px; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 14px;
}
.qs-notes .k { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-4); margin-bottom: 4px; }
.qs-notes div { white-space: pre-wrap; line-height: 1.8; color: var(--ink-2); }

/* オプション（AI概算） */
.qs-total-incl { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.opt-block { margin-bottom: 20px; }
.opt-head { font-size: 13px; font-weight: 800; color: var(--accent-dk); margin-bottom: 8px; padding-left: 10px; border-left: 3px solid var(--accent); }
.opt-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.opt-table th, .opt-table td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.opt-table thead th { font-size: 11px; font-weight: 700; color: var(--ink-3); background: var(--bg-2); font-family: var(--font-code); letter-spacing: .04em; }
.opt-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.opt-table tbody td:first-child { font-weight: 700; color: var(--ink); }
.opt-note { font-size: 11.5px; font-weight: 400; color: var(--ink-3); margin-top: 3px; }
.opt-table .opt-x td { background: #fdf5e7; }
.opt-table .opt-x td:first-child { color: var(--ink-2); }
.opt-table .opt-x .opt-note { color: #b26a00; font-weight: 600; }
.opt-disc { font-size: 11.5px; color: var(--ink-4); margin: 8px 2px 0; line-height: 1.6; }
.opt-loading { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13px; padding: 14px 2px; }

/* 満車（ダブルブッキング防止）バナー */
.avail-block {
  background: #fdecea; color: #b4232a; border: 1px solid #f0c0bc;
  border-radius: var(--radius-md); padding: 14px 18px; margin: 16px 0; line-height: 1.7;
}
.avail-block b { display: block; font-size: 15px; margin-bottom: 4px; }
.avail-block div { font-size: 13.5px; }

@media (max-width: 640px) {
  .quote-sheet { padding: 20px 18px; }
  .qs-head-right { text-align: left; }
  .qs-total { flex-direction: column; align-items: flex-start; gap: 4px; }
  .qs-total-value { font-size: 32px; }
  .qs-table { font-size: 13px; }
  .qs-table th, .qs-table td { padding: 9px 8px; }
}

/* 小型スマホ（320〜400px）：余白を詰め、横スクロールを出さない */
@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .form-main { padding-top: 0; }
  .page-title { font-size: 23px; }
  .page-head { margin-bottom: 6px; }
  .panel { padding: 16px 15px; border-radius: 14px; }
  .panel + .panel { margin-top: 16px; }
  .panel-title { font-size: 15px; }
  .form-grid { gap: 12px; }

  /* iOS で input にフォーカスした時の自動ズームを防ぐ（フォント16px以上） */
  .field-control, .notes-area, select.field-control, textarea { font-size: 16px; }

  /* 進捗ステップ（番号のみ・4つを詰めて表示） */
  .wiz-progress { gap: 6px; margin-bottom: 16px; }
  .wiz-step { padding: 9px 6px; }
  .wiz-num { width: 22px; height: 22px; font-size: 11px; }

  /* 見積シート：はみ出し防止＋文字を少し小さく */
  .quote-sheet { padding: 15px 13px; }
  .qs-table { font-size: 12.5px; }
  .qs-table th, .qs-table td { padding: 8px 6px; }
  .qs-table td:first-child, .qs-table th:first-child { word-break: break-word; }
  .qs-table tfoot th { font-size: 12.5px; }
  .qs-table tfoot th.num { font-size: 18px; }
  .qs-total-value { font-size: 27px; }
  .qs-total-tax { font-size: 11.5px; }
  .qs-meta { grid-template-columns: 1fr; }

  /* オプション・車種カード */
  .opt-item { padding: 11px 12px; gap: 10px; }
  .opt-name { font-size: 14px; }
  .vehicle-grid { grid-template-columns: 1fr; }

  /* ナビゲーションボタンは縦積みでタップしやすく */
  .wiz-nav { flex-wrap: wrap; gap: 8px; }
  .wiz-nav .btn { flex: 1 1 auto; }
}

/* ==================================================
   行程・特記事項の確認（仮見積の手前）
   ================================================== */
.itin-notes {
  margin-top: 20px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg-2);
  font-size: 14px;
}
.itin-notes .k { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-4); margin-bottom: 5px; }
.itin-notes div { white-space: pre-wrap; line-height: 1.8; color: var(--ink-2); }

.itin-confirm {
  margin-top: 24px; padding: 18px 20px;
  border: 1px solid var(--accent-border); border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--accent) 4%, white);
  transition: border-color .18s, box-shadow .18s;
}
.itin-confirm.is-invalid { border-color: var(--color-red); box-shadow: 0 0 0 3px rgba(231,76,60,.10); }
.itin-confirm .consent-item { padding: 4px 0; font-weight: 700; color: var(--ink); }
.itin-confirm-hint { margin: 6px 0 0 31px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.itin-confirm.is-done { border-color: var(--accent); }
.itin-confirm.is-done .itin-confirm-hint { display: none; }

/* 仮見積のリビール（行程確認後に表示） */
.quote-reveal { display: none; }
.quote-reveal.is-open { display: block; margin-top: 28px; animation: quoteReveal .32s ease-out; }
@keyframes quoteReveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==================================================
   同意・送信
   ================================================== */
.consent-box {
  margin-top: 26px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper);
}
.consent-box.is-invalid { border-color: var(--color-red); box-shadow: 0 0 0 3px rgba(231,76,60,.10); }
.consent-lead {
  display: flex; gap: 12px; padding: 14px 16px; margin-bottom: 16px;
  background: var(--notice-bg); border: 1px solid var(--notice-border); border-radius: var(--radius-md);
  font-size: 13.5px; line-height: 1.8; color: var(--notice-ink);
}
.consent-lead svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.consent-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 0; font-size: 14px; line-height: 1.7; cursor: pointer;
}
.consent-item input[type="checkbox"] {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
  accent-color: var(--accent); cursor: pointer;
}
.consent-item a { color: var(--accent-dk); font-weight: 700; }
.turnstile-reverify { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.turnstile-reverify[hidden] { display: none; }

/* 上限到達などの通知ポップアップ */
.notice-ov {
  position: fixed; inset: 0; z-index: 220;
  background: rgba(15, 25, 30, .55); backdrop-filter: blur(2px);
  display: grid; place-items: center; padding: 24px;
  animation: pkIn .16s ease-out;
}
.notice-box {
  width: min(400px, 100%); background: #fff;
  border-radius: var(--radius-lg); box-shadow: 0 24px 60px -18px rgba(0,0,0,.45);
  padding: 28px 26px; text-align: center;
}
.notice-ic {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--notice-bg); color: var(--accent); border: 1px solid var(--notice-border);
}
.notice-msg { font-size: 14.5px; line-height: 1.8; color: var(--ink); margin-bottom: 20px; }
.notice-box .btn { width: 100%; }

/* STEP2 のタイムゾーン注記 */
.route-steps .rs-tz { width: 100%; font-size: 12px; color: var(--ink-4); }

/* 受付期間の案内 */
.lead-note {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 10px 0 12px; padding: 10px 14px;
  background: var(--notice-bg); border: 1px solid var(--notice-border);
  border-radius: var(--radius-md);
  font-size: 13px; line-height: 1.7; color: var(--notice-ink);
}
.lead-note svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.lead-note b { font-weight: 800; }

/* STEP1 の認証ブロック */
/* 認証ブロック（Turnstile をサイトのテーマに馴染ませる枠） */
.verify-block {
  margin-top: 24px;
  padding: 18px 20px 20px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--accent) 4%, white);
}
.verify-head {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 800; color: var(--ink-2); margin-bottom: 4px;
}
.verify-head .v-ic {
  display: inline-flex; color: var(--accent);
}
.verify-note { font-size: 12.5px; color: var(--ink-3); margin: 0 0 12px; line-height: 1.7; }
/* Turnstile 本体（iframe内部は変更不可のため中央寄せ＋自然な余白で馴染ませる）。
   ウィジェットは data-theme="light" で描いている。既定の auto だと端末のダークモードに
   追従して、白い画面に黒い枠が1つだけ浮いてしまうため。 */
.turnstile-holder { display: flex; justify-content: center; }
.turnstile-holder:not(:empty) { margin: 2px 0 16px; }

/* ==================================================
   送信完了
   ================================================== */
.done-wrap { text-align: center; padding: 20px 10px 10px; }
.done-ic {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 999px;
  display: grid; place-items: center; color: #fff; background: var(--color-green);
  box-shadow: 0 10px 26px -10px rgba(39,174,96,.7);
}
.done-title { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 10px; }
.done-lead { font-size: 14.5px; color: var(--ink-2); line-height: 1.85; margin-bottom: 22px; }
.done-code {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 24px; border: 1px solid var(--accent-border); border-radius: var(--radius-md);
  background: var(--accent-soft); margin-bottom: 22px;
}
.done-code .k { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.done-code b { font-size: 20px; font-weight: 900; color: var(--accent-dk); font-family: var(--font-code); }
.done-summary {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
  padding: 16px 20px; background: var(--bg-2); border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; margin-bottom: 16px;
}
.done-summary .k { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-4); margin-bottom: 2px; }
.done-note { font-size: 12.5px; color: var(--ink-4); margin-bottom: 20px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  /* テキストリンクは省くが、言語切替は残す */
  .nav-links > a { display: none; }
  .panel { padding: 20px; }
  .leg { flex-wrap: wrap; gap: 4px 14px; }
  .leg-metrics { text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .wiz-label { display: none; }
  .wiz-step { justify-content: center; padding: 10px; }
  .rate-bar { grid-template-columns: 1fr; }
  .wiz-nav .btn-accent { margin-left: 0; width: 100%; }
  .quote-hero-total { font-size: 40px; }
  .quote-hero-break .qb-plus { display: none; }
  .route-steps .rs-note { margin-left: 0; width: 100%; }
  .pk-pop { left: auto; right: 0; }
  .gallery-nav { width: 38px; height: 38px; }
}

/* ==================================================
   印刷／PDF：見積書だけをA4 1枚で出力
   ================================================== */
#quote-doc { display: none; }

@media print {
  @page { size: A4 portrait; margin: 12mm; }

  body { background: #fff !important; }
  .island-enter { animation: none !important; }

  /* 見積書以外は出力しない */
  .nav, .footer, .wiz-progress, .wiz-nav, .page-head, .banner { display: none !important; }
  .stage .panel > *:not(#quote-doc) { display: none !important; }
  .panel { border: 0 !important; box-shadow: none !important; padding: 0 !important; background: #fff !important; }
  .container { padding: 0 !important; max-width: none !important; }

  #quote-doc {
    display: block;
    font-size: 10pt;
    line-height: 1.5;
    color: #000;
  }
  .qd-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
    border-bottom: 2px solid var(--accent); padding-bottom: 10px; margin-bottom: 14px;
  }
  .qd-head-l { flex: 1; }
  .qd-title { font-size: 20pt; font-weight: 900; letter-spacing: .16em; margin: 0 0 5px; }
  .qd-meta { font-size: 9pt; line-height: 1.7; color: #333; }
  .qd-issuer { text-align: right; min-width: 200px; line-height: 1.5; }
  .qd-issuer-name { font-size: 12pt; font-weight: 900; margin-bottom: 2px; }
  .qd-issuer-line { font-size: 8.5pt; color: #333; }

  .qd-to { margin-bottom: 10px; }
  .qd-to-main { font-size: 14pt; font-weight: 800; border-bottom: 1px solid #333; display: inline-block; padding: 0 44px 3px 0; }
  .qd-hon { font-size: 11pt; font-weight: 700; margin-left: 5px; }
  .qd-to-sub { font-size: 9pt; margin-top: 4px; color: #333; }
  .qd-greeting { font-size: 9.5pt; margin: 0 0 14px; line-height: 1.75; }

  .qd-total {
    display: flex; align-items: baseline; gap: 14px;
    border: 2px solid var(--accent); border-radius: 4px;
    padding: 10px 18px; margin-bottom: 16px;
    background: #f2f9fb;
  }
  .qd-total-label { font-size: 10pt; font-weight: 800; }
  .qd-total-value { font-size: 22pt; font-weight: 900; letter-spacing: -0.01em; margin-left: auto; }
  .qd-total-tax { font-size: 9pt; color: #555; }

  .qd-info { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 9.5pt; }
  .qd-info th, .qd-info td { border: 1px solid #bbb; padding: 5px 9px; text-align: left; }
  .qd-info th { background: #eef3f5; width: 78px; font-weight: 700; white-space: nowrap; }

  .qd-sec-title {
    font-size: 10pt; font-weight: 800; margin: 0 0 6px;
    padding-left: 8px; border-left: 4px solid var(--accent);
  }
  .qd-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 9.5pt; }
  .qd-table th, .qd-table td { border: 1px solid #bbb; padding: 5px 9px; text-align: left; }
  .qd-table thead th { background: #eef3f5; font-weight: 700; }
  .qd-table .num { text-align: right; white-space: nowrap; }
  .qd-table tfoot th { text-align: right; }
  .qd-quote .qd-no { width: 34px; text-align: center; }
  .qd-quote tfoot .qd-discrow th { background: #f5f8fa; font-size: 9pt; font-weight: 700; color: #01617a; }
  .qd-quote tfoot .qd-taxrow th { background: #f5f8fa; font-size: 9pt; font-weight: 700; color: #444; }
  .qd-quote tfoot .qd-sumrow th { background: #eef3f5; font-size: 12pt; font-weight: 900; }
  .qd-table .nw { white-space: nowrap; }
  .qd-itin .route { font-size: 8.5pt; }

  .qd-notes { font-size: 9pt; border: 1px solid #bbb; padding: 7px 9px; margin-bottom: 12px; }

  .qd-foot { margin-top: 6px; }
  .qd-terms { font-size: 8pt; line-height: 1.6; margin: 0; padding-left: 1.1em; }

  /* オプション（AI概算）— 印刷 */
  .qd-total-incl { font-size: 9pt; color: #555; }
  .opt-loading { display: none; }
  .opt-block { margin-bottom: 14px; }
  .opt-head { font-size: 10pt; font-weight: 800; margin: 0 0 6px; padding-left: 8px; border-left: 4px solid var(--accent); }
  .opt-table { width: 100%; border-collapse: collapse; font-size: 9.5pt; margin-bottom: 5px; }
  .opt-table th, .opt-table td { border: 1px solid #bbb; padding: 5px 9px; text-align: left; vertical-align: top; }
  .opt-table thead th { background: #eef3f5; font-weight: 700; }
  .opt-table .num { text-align: right; white-space: nowrap; }
  .opt-note { font-size: 8pt; color: #555; margin-top: 2px; }
  .opt-x td { background: #f6efe0; }
  .opt-disc { font-size: 8pt; color: #555; margin: 3px 0 0; }

  /* 途中で改ページさせない */
  #quote-doc, .qd-table, .qd-foot { break-inside: avoid; page-break-inside: avoid; }
}

/* 上限に達した追加ボタン（押せるが、押すと理由を表示する） */
.btn-add.is-maxed { opacity: .55; }

/* 見積の算出に失敗したとき */
.quote-failed {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px 22px; margin-bottom: 22px;
  background: #fdecea; border: 1px solid #f5c2bc; border-radius: var(--radius-lg);
  color: #7d2318;
}
.quote-failed .qf-ic { flex-shrink: 0; color: var(--color-red); }
.quote-failed b { display: block; font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.quote-failed p { font-size: 13.5px; line-height: 1.8; margin: 0; }

/* 仮見積「金額は見せない」時の注記 */
.qs-none-note { font-size: 13px; color: var(--ink-3); font-weight: 600; }

/* ---------- フォームのオプション（水・英語ドライバー・お出迎え） ---------- */
.opt-block { margin: 18px 0 6px; }
.opt-title { font-weight: 800; font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.opt-list { display: grid; gap: 10px; }
.opt-item {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 15px;
  background: var(--paper); transition: border-color .15s, background .15s, box-shadow .15s;
}
.opt-item:hover { border-color: var(--accent-border); }
.opt-item.is-selected { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 6%, white); box-shadow: 0 0 0 3px rgba(2,141,174,.10); }
.opt-item .opt-check { position: absolute; opacity: 0; width: 0; height: 0; }
.opt-check-box {
  flex: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line);
  display: grid; place-items: center; color: transparent; background: #fff; transition: all .15s;
}
.opt-item.is-selected .opt-check-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.opt-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.opt-name { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.opt-price { font-size: 12.5px; color: var(--accent-dk); font-weight: 700; }

/* ハイヤー待機カット（滞在時間ピッカー内） */
.wc-toggle { display: block; width: 100%; margin-top: 8px; padding: 10px 12px; border: 1.5px dashed var(--accent-border);
  background: var(--accent-soft); color: var(--accent-dk); border-radius: 10px; font-weight: 700; font-size: 12.5px;
  cursor: pointer; font-family: inherit; }
.wc-toggle:hover { background: color-mix(in oklab, var(--accent) 12%, white); }
.wc-toggle:disabled { opacity: .6; cursor: default; }
.wc-msg { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.wc-msg.is-warn { color: #b23b3b; font-weight: 700; }
.wc-note { font-size: 12px; color: var(--ink-3); background: var(--accent-soft); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; line-height: 1.6; }
.wc-back { display: block; width: 100%; margin-top: 8px; padding: 8px; border: 0; background: transparent; color: var(--ink-4);
  font-weight: 700; font-size: 12.5px; cursor: pointer; font-family: inherit; }

/* ==================================================
   トップページ（LP）
   PyHiroba のLP構成に合わせた：ナビ / ヒーロー / できること /
   画面を見る / 料金 / 導入の流れ / フッター
   ================================================== */
.lp-nav-cta { display: flex; align-items: center; gap: 14px; }

/* ---- セクション共通 ---- */
.lp-section { padding: 84px 0; }
/* 背景はページ全体で白格子ひとつに統一する。
   以前は1節おきに白い紙を敷いて縞にしていたが、格子が途切れて落ち着かなかった。
   節の区切りは、見出しとカードの島でじゅうぶんに付く。
   `.lp-section-alt` はHTML側にまだ残っているので、無害な別名として受けておく。 */
.lp-section-alt { background: transparent; border: 0; }
.lp-section-head { max-width: 760px; margin-bottom: 44px; }
/* 節のラベルに、ロゴと同じ線を敷く。ブランドの意匠をページ内で繰り返す。
   ⚠ 線は文字の**真下**に、文字の幅ぶんだけ引く。ロゴもヒーローも「文字の下に一本」なので、
      横へ流すと同じ意匠に見えない。
   inline-block にして幅を文字ぶんに縮め、下線の場所は padding で箱の中に確保する
   （ヒーローと同じ作り。箱の外に置くと、下の見出しとの間隔がずれる）。 */
.lp-section-head .eyebrow {
  position: relative;
  display: inline-block;
  padding-bottom: 9px;
}
.lp-section-head .eyebrow::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
}
.lp-section-title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 900;
  line-height: 1.42;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 12px;
  /* 日本語を文節で折り返す（「まる／ごと」のような割れ方を防ぐ）。
     対応していないブラウザは従来どおり文字単位で折るだけなので、入れて害はない。 */
  word-break: auto-phrase;
}
.lp-section-lead {
  margin-top: 16px;
  font-size: 16px;
  line-height: 2;
  color: var(--ink-body);
}

/* ---- できること ----
   管理画面の項目に合わせた8つ。カードは敷かず、白格子の上に罫線だけで区切る。
   紙のカードを8枚並べると、ページで唯一「格子が見えない帯」になってしまうため。 */
.lp-feat-grid {
  display: grid;
  /* min() を挟まないと、320px幅の端末で余白ぶん（左右20px×2）はみ出す。
     実際に 320px で 56px、360px で 16px の横スクロールが出ていた。 */
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 0 44px;
  border-top: 1px solid var(--line);
}
.lp-feat {
  display: flex;
  gap: 16px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
.lp-feat-ic {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dk);
}
.lp-feat h3 {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.lp-feat p { font-size: 14.5px; line-height: 1.95; color: var(--ink-body); }

/* ---- 無料トライアル ---- */
/* ---- 無料トライアル ----
   カードで囲わず、白格子の上に直接置く。縦罫と余白で3つを分ける。
   見出しを大きく、説明は一言だけにして、詳しくは上のリード文と下の注記に持たせる。
   横幅は下の「ご利用料金」と同じ＝コンテナいっぱいなので、並びで読める。 */
.lp-trial-grid {
  display: grid;
  /* min() を挟まないと、狭い端末で余白ぶん（左右20px×2）はみ出す */
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.lp-trial-item {
  padding: 30px 26px 30px 0;
  border-right: 1px solid var(--line);
}
.lp-trial-item:last-child { border-right: 0; }
.lp-trial-item:not(:first-child) { padding-left: 26px; }
.lp-trial-no {
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}
.lp-trial-item h3 {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.lp-trial-item p { font-size: 14.5px; line-height: 1.9; color: var(--ink-body); }

.lp-trial-cta { text-align: center; margin-top: 34px; }
.lp-trial-btn { min-width: 300px; }
.lp-trial-micro { margin-top: 14px; font-size: 13px; color: var(--ink-3); line-height: 1.85; }

/* ---- 料金 ---- */
.lp-price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.lp-price-list { list-style: none; }
.lp-price-list li {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 8px 20px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line-2);
}
.lp-price-k { font-size: 15.5px; font-weight: 800; }
.lp-price-d { font-size: 14.5px; color: var(--ink-body); line-height: 1.85; }
/* 金額は「月額」「＋税」より大きく見せる。添え物を同じ大きさで並べると、
   いくらなのかが一目で拾えない。 */
.lp-price-v {
  font-family: var(--font-code);
  font-size: 17px;
  font-weight: 600;
  color: var(--accent-dk);
  white-space: nowrap;
}
.lp-price-per { font-size: 11.5px; font-weight: 500; color: var(--ink-4); margin-right: 5px; }
.lp-price-tax { font-size: 11px; font-weight: 500; color: var(--ink-4); margin-left: 4px; }
.lp-price-free { font-size: 15px; font-weight: 600; }
.lp-price-list li:last-child { border-bottom: 0; }


/* ---- 導入の流れ ---- */
.lp-steps { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.lp-step {
  display: flex;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}
.lp-step-num {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-code);
  font-size: 17px;
  font-weight: 600;
}
.lp-step-title { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.lp-step-desc { font-size: 15px; line-height: 2; color: var(--ink-body); }
.lp-step-body .btn { margin-top: 16px; }

/* ---- 締めのCTA ----
   箱で囲わない。ここだけ紙を敷くと、白格子で通したページの最後で調子が変わる。
   ロゴとその下線を置いて、手紙の署名のように終わらせる。 */
.lp-cta-band {
  margin-top: 56px;
  text-align: center;
  padding: 8px 20px 0;
}
.lp-cta-mark {
  position: relative;
  display: inline-block;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink);
  /* 下線ぶんは箱の中に持つ（ヒーローと同じ理由。外に出すと y の尻尾に刺さる） */
  padding-bottom: 0.3em;
  margin-bottom: 18px;
}
.lp-cta-mark::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.05em;
  height: max(3px, 0.085em);
  background: var(--accent);
  clip-path: polygon(0 0, 100% 38%, 100% 62%, 0 100%);
}
.lp-cta-band h3 { font-size: clamp(20px, 2.6vw, 27px); font-weight: 900; letter-spacing: -0.02em; }
.lp-cta-band p { margin: 14px auto 0; max-width: 600px; font-size: 15px; line-height: 2; color: var(--ink-body); }
.lp-cta-main { margin-top: 28px; min-width: 280px; }
.lp-cta-sub { margin-top: 16px; }
.lp-cta-sub a { font-size: 13.5px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 5px; }
.lp-cta-sub a:hover { color: var(--accent-dk); }

/* ---- 本サービスへの想い ---- */
/* 背景は他の節と同じ白格子。以前は薄いグレーで、ここだけ色が違っていた。
   ⚠ この節だけ**手書き風の字体**にしてある。機能や料金は事実の説明なので Zen Kaku のままだが、
      ここは書き手の一人称なので、地の文と同じ顔にすると読み流されてしまう。
      Zen Kurenaido は index.html でこの節のためだけに読み込んでいる（他ページは読まない）。 */
.lp-essay {
  /* 島の横幅は料金カード・導入の流れと同じ（コンテナいっぱい）に揃える。
     以前は 720px で、上下の節より明らかに細かった */
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 40px 38px;
  font-family: "Zen Kurenaido", "Zen Kaku Gothic New", sans-serif;
}
/* 本文は段落も箇条書きも**同じ大きさ・同じ濃さ**にする。
   手書き風は字面が細いので、地の文より少しだけ大きく、行間も広めに取る。 */
.lp-essay p,
.lp-essay li {
  font-size: 16px;
  line-height: 2.15;
  color: var(--ink-2);
  font-weight: 400;
}
.lp-essay > p + p,
.lp-more-body > p + p { margin-top: 20px; }
.lp-essay-list {
  list-style: none;
  margin: 22px 0;
  padding: 0;
}
/* 印は普通の「・」。本文と同じ色・同じ大きさなので、記号が主張しない */
.lp-essay-list li { padding-left: 1.4em; text-indent: -1.4em; }
.lp-essay-list li::before { content: '・'; }
.lp-essay-list li + li { margin-top: 6px; }

/* ---- 続きを読む ----
   長い文章を初めから全部見せると読む前に諦められるので、問いかけの先を畳む。
   <details> なのでJavaScriptを使わない（CSPでインラインscriptを禁じている）。

   ⚠ details を flex にして order を入れ替えている。閉じている間は文章の途中（＝読み手が
      いま止まっている場所）に出したいが、開いたら読み終わりに「閉じる」がある方が自然なため。
      display を変えても開閉そのものはブラウザ側の処理なので壊れない。 */
.lp-more { display: flex; flex-direction: column; }
.lp-more > summary { order: 1; }
.lp-more > .lp-more-body { order: 2; }
.lp-more[open] > summary { order: 3; }

/* ボタンの箱はやめ、中央の下線つきの文字にする */
.lp-more-btn {
  align-self: center;
  margin-top: 24px;
  padding: 4px 2px;
  color: var(--ink-3);
  font-size: 15px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  cursor: pointer;
  list-style: none;            /* 既定の三角を消す */
  user-select: none;
  transition: color .15s;
}
.lp-more-btn::-webkit-details-marker { display: none; }
.lp-more-btn::marker { content: ''; }
.lp-more-btn:hover { color: var(--accent-dk); }
.lp-more-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
/* 開いている時だけラベルを入れ替える（文字は両方DOMに置く＝読み上げにも出る） */
.lp-more:not([open]) .lp-more-close { display: none; }
.lp-more[open] .lp-more-open { display: none; }
.lp-more-body { padding-top: 20px; }
.lp-more-body > p:first-child { margin-top: 0 !important; }

/* 出典は文章の最後に小さく置く。主張の根拠なので、小さくても読める濃さにする */
.lp-essay .lp-essay-src {
  margin-top: 26px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-4);
}
.lp-thoughts .lp-cta-band { margin-top: 44px; }

/* ---- フッター ---- */
.lp-footer {
  /* 背景は敷かない（ページ全体で白格子ひとつ）。区切りは罫線1本で足りる */
  background: transparent;
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
}
.lp-footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-2);
}
.lp-footer-logo { position: relative; display: inline-block; font-size: 20px; font-weight: 900; color: var(--ink); letter-spacing: -0.01em; }
/* フッターのロゴにも同じ下線。かな書きは線の外に出したいので、
   下線は「hAIyer.work」だけを囲む内側の要素に載せる */
.lp-footer-logo .lp-footer-mark { position: relative; }
.lp-footer-logo .lp-footer-mark::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 4px;
}
.lp-footer-kana { font-size: 12px; font-weight: 700; color: var(--ink-4); margin-left: 6px; letter-spacing: .04em; }
.lp-footer-tagline { margin-top: 12px; font-size: 13.5px; line-height: 1.9; color: var(--ink-3); }
.lp-footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
}
.lp-footer-cols h5 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--ink-4);
  margin-bottom: 14px;
}
.lp-footer-cols a {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 5px 0;
  transition: color .15s;
}
.lp-footer-cols a:hover { color: var(--accent-dk); }
.lp-footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 22px;
  font-size: 12px;
  color: var(--ink-4);
}

@media (max-width: 860px) {
  .lp-price-list li { grid-template-columns: 1fr auto; }
  .lp-price-d { grid-column: 1 / -1; }
  .lp-footer-top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .lp-section { padding: 60px 0; }
  /* ヒーローの余白はPC基準だと縦長になりすぎる。スマホでは詰める */
  .hero { padding: 40px 0 52px; }
  .hero-brand { margin-bottom: 20px; }
  .hero-kana { font-size: 16px; letter-spacing: 0.18em; }
  .hero-cta { margin-top: 28px; }
  /* トライアルが主導線になったので、スマホでもナビに残す（以前は隠していた）。
     代わりに幅を詰め、セクション内リンクのほうを隠す */
  .lp-nav-links { display: none; }
  .lp-nav-cta { gap: 10px; }
  .lp-nav-cta .btn-primary { padding: 0 14px; font-size: 13px; height: 38px; }
  .lp-feat { padding: 20px 2px; gap: 13px; }
  .lp-step { flex-direction: column; gap: 14px; padding: 24px 20px; }
  .lp-price-list li { padding: 18px 20px; }
  .lp-cta-band { padding: 8px 4px 0; }
  .lp-cta-main { width: 100%; min-width: 0; }
  /* 狭い画面では縦罫が使えないので、横罫で区切る */
  .lp-trial-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .lp-trial-item:last-child { border-bottom: 0; }
  .lp-trial-item:not(:first-child) { padding-left: 0; }
  .lp-trial-btn { width: 100%; min-width: 0; }
  .lp-essay { padding: 28px 22px; }
  .lp-essay p, .lp-essay li { font-size: 15px; line-height: 2.05; }
}
@media (max-width: 380px) {
  .lp-nav-cta .btn-primary { padding: 0 11px; font-size: 12px; }
  .lp-essay { padding-left: 16px; padding-right: 16px; }
}

/* 規約・ポリシー本文の箇条書き（ul は既存CSSに無かったため追加） */
.legal-sec ul { margin: 6px 0 0 1.4em; }
.legal-sec ol ul { margin-top: 6px; }
.legal-table ul { margin: 6px 0 0 1.3em; }
.legal-table li { line-height: 1.8; }

/* ==================================================
   事業者登録（/register/ の3画面で共用）
   /register/         … 2つの導線を選ぶ入口
   /register/self/    … 自社で初期設定（初期費用無料）
   /register/support/ … 初期導入支援のご依頼
   ================================================== */
.reg-wrap { max-width: 560px; margin: 0 auto; padding: 8px 0 60px; }
.reg-choose { max-width: 940px; margin: 0 auto; padding: 8px 0 60px; }
.reg-lead { color: var(--ink-2); font-size: 14.5px; line-height: 1.9; margin: 6px 0 22px; }
.reg-field { margin-bottom: 16px; }
.reg-field .field-label { display: block; margin-bottom: 6px; }
.slug-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.slug-row .prefix { color: var(--ink-3); font-size: 13px; font-family: var(--font-code); }
.reg-hint { font-size: 12.5px; color: var(--ink-3); margin: 6px 0 0; line-height: 1.7; }
.reg-hint a { color: var(--accent-dk); font-weight: 700; }
/* URLは文章ではないので、行頭揃え（balance）の対象から外し、はみ出す時だけ折る。
   break-all だと末尾に1文字だけ落ちて読みにくい。
   ⚠ ここを text-wrap: nowrap にすると折り返せず、320pxで62pxはみ出す。 */
.reg-preview { font-size: 13px; color: var(--accent-dk); margin-top: 6px;
  word-break: normal; overflow-wrap: anywhere; text-wrap: wrap; }
.reg-preview .u { overflow-wrap: anywhere; }
#ts-holder { min-height: 0; }

/* 任意項目の印。必須（.req の赤い＊）と取り違えられないよう、色も形も変える */
.opt {
  display: inline-block; margin-left: 4px; padding: 1px 7px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--ink-4); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 999px; vertical-align: 1px;
}

/* 入力したその場で出す確認結果（許可番号・法人番号）。
   3段階ある：確認できた(ok) / 受け付けるが確証はない(warn) / 形式が違う(ng)。
   ng でも送信はサーバー側の判定に任せる（ここで止めると、書式の揺れで
   実在の事業者が申し込めなくなる）。 */
.field-check { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; }
.field-check[hidden] { display: none; }
.field-check .fc-ic { flex: none; line-height: 1.5; }
.field-check.is-ok { color: var(--color-green); }
.field-check.is-warn { color: #a56a00; }
.field-check.is-ng { color: var(--color-red); }
.field-check.is-busy { color: var(--ink-4); }

/* 箇条書きや定義リストの見出し語。
   文章の中で太字を使わない方針にしたので、太さではなく色の濃さで見分ける。 */
.term { font-weight: 500; color: var(--ink); }

.reg-foot { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 18px; }
.reg-foot a { color: var(--accent-dk); font-weight: 700; }

/* 準備中のお知らせ */
.reg-notice { margin-bottom: 22px; }

/* 2つの導線 */
.reg-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  align-items: start;
}
.reg-choice { display: flex; flex-direction: column; }
.reg-choice-tag {
  align-self: flex-start;
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em;
  color: var(--ink-2); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
}
.reg-choice-tag-free {
  color: var(--accent-dk); background: var(--accent-soft); border-color: var(--accent-border);
}
.reg-choice h2 { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; margin: 14px 0 6px; }
.reg-choice-price { font-size: 14px; font-weight: 700; color: var(--accent-dk); margin-bottom: 14px; }
.reg-choice-desc { font-size: 14px; line-height: 1.95; color: var(--ink-3); }
.reg-choice-list { list-style: none; margin: 16px 0 22px; display: grid; gap: 8px; }
.reg-choice-list li {
  position: relative; padding-left: 24px;
  font-size: 13.5px; line-height: 1.8; color: var(--ink-2);
}
.reg-choice-list li::before {
  content: ''; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.reg-choice .btn { margin-top: auto; }
.reg-choice-note { font-size: 12px; color: var(--ink-4); line-height: 1.7; margin-top: 12px; }

/* 送信完了 */
.reg-done { text-align: center; }
.reg-done .btn { margin-top: 20px; }

@media (max-width: 640px) {
  .reg-choice-grid { grid-template-columns: 1fr; }
}

/* ---- 事業者登録フォーム（2026-09 改定：申込→初期設定→支払い方法の3段） ---- */
.reg-steps{display:flex;gap:8px;list-style:none;padding:0;margin:0 0 18px;flex-wrap:wrap}
.reg-steps li{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--ink-4);
  background:#fff;border:1px solid var(--line);border-radius:999px;padding:5px 12px}
.reg-steps li span{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;
  border-radius:50%;background:var(--line);color:#fff;font-size:11px;font-weight:700}
.reg-steps li.is-on{color:var(--ink);border-color:var(--accent)}
.reg-steps li.is-on span{background:var(--accent)}
.reg-sec{font-size:14px;font-weight:700;margin:26px 0 12px;padding-bottom:7px;border-bottom:2px solid var(--line)}
.reg-sec:first-of-type{margin-top:0}
.reg-grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.req{color:var(--color-red)}
.reg-slug-row{display:flex;align-items:center;gap:4px;flex-wrap:wrap;font-size:13px;color:var(--ink-4)}
.reg-origin{font-size:12.5px}
.reg-pay{display:grid;gap:10px;margin-bottom:16px}
.reg-pay-opt{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:10px;
  padding:12px 14px;cursor:pointer;background:#fff}
.reg-pay-opt:has(input:checked){border-color:var(--accent);box-shadow:0 0 0 2px rgba(2,141,174,.12)}
.reg-pay-opt input{margin-top:3px;flex:none}
.reg-pay-opt.is-soon{background:var(--bg-2)}
.reg-pay-opt.is-soon .t{color:var(--ink-3)}
.reg-pay-opt .t{font-size:13.5px;font-weight:500}
.reg-pay-opt p{margin:3px 0 0;font-size:12px;color:var(--ink-4);line-height:1.6}
.reg-soon{display:inline-block;font-size:10.5px;font-weight:700;color:#b8791b;background:#fdf4e3;
  border-radius:4px;padding:1px 6px;margin-left:5px;vertical-align:1px}
.reg-agree{margin-top:18px}
.reg-agree .check-row{display:flex;gap:8px;align-items:flex-start;font-size:13px}
@media(max-width:560px){.reg-grid2{grid-template-columns:1fr}}

/* 本文中から案内ページへ送るリンク */
.lp-inline-link {
  display: inline-block; margin-top: 6px;
  color: var(--accent-dk); font-weight: 700; text-decoration: none;
  border-bottom: 2px solid var(--accent-border);
}
.lp-inline-link:hover { border-bottom-color: var(--accent); }

/* ==================================================
   ご利用開始までの流れ（/guide/）
   ================================================== */
.guide { max-width: 760px; margin: 0 auto; padding: 8px 0 60px; }

/* 所要時間の目安。申し込みの心理的な重さを最初に下げる */
.guide-time {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 22px 0 32px;
}
.guide-time div {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 14px 12px; text-align: center;
}
.guide-time .t { display: block; font-size: 15px; font-weight: 500; color: var(--accent-dk); }
.guide-time span { display: block; font-size: 12px; color: var(--ink-4); margin-top: 3px; }

.guide-step { display: flex; gap: 18px; align-items: flex-start; padding: 26px 0; border-top: 1px solid var(--line-2); }
.guide-step:first-of-type { border-top: 0; padding-top: 0; }
.guide-num {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900;
}
.guide-body { flex: 1; min-width: 0; }
.guide-body h2 { font-size: 21px; font-weight: 900; letter-spacing: -0.01em; margin: 4px 0 0; }
.guide-desc { font-size: 14.5px; line-height: 1.95; color: var(--ink-2); margin: 10px 0 0; }
.guide-h3 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-4);
  margin: 22px 0 8px; text-transform: uppercase;
}
.guide-list, .guide-ol { margin: 0; padding-left: 20px; }
.guide-list { list-style: none; padding-left: 0; }
.guide-list li {
  position: relative; padding-left: 20px; font-size: 13.5px; line-height: 1.9; color: var(--ink-2);
}
.guide-list li + li { margin-top: 7px; }
.guide-list li::before {
  content: ''; position: absolute; left: 4px; top: .68em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.guide-ol li { font-size: 13.5px; line-height: 1.9; color: var(--ink-2); }
.guide-ol li + li { margin-top: 7px; }
.guide-ol li::marker { color: var(--accent); font-weight: 700; }
.guide-body code {
  font-family: var(--font-code); font-size: .92em;
  background: var(--bg-2); border-radius: var(--radius-sm); padding: 1px 5px;
}
.guide-note {
  margin-top: 16px; padding: 13px 16px; font-size: 13px; line-height: 1.85;
  background: var(--notice-bg); border: 1px solid var(--notice-border);
  border-radius: var(--radius-md); color: var(--notice-ink);
}
.guide-note a { color: var(--accent-dk); font-weight: 700; }
.guide-note-strong { border-left: 4px solid var(--accent); }
.guide-body > .btn { margin-top: 20px; }

.guide-faq { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.guide-faq h2 { font-size: 19px; font-weight: 900; margin-bottom: 6px; }
.guide-faq dt { font-size: 14px; font-weight: 700; margin-top: 20px; color: var(--ink); }
.guide-faq dd { margin: 6px 0 0; font-size: 13.5px; line-height: 1.9; color: var(--ink-3); }
.guide-faq dd a { color: var(--accent-dk); font-weight: 700; }

.guide-cta { margin-top: 44px; }

@media (max-width: 560px) {
  .guide-time { grid-template-columns: 1fr; gap: 8px; }
  .guide-time div { display: flex; align-items: baseline; justify-content: space-between; text-align: left; padding: 11px 14px; }
  .guide-time span { margin-top: 0; }
  .guide-step { gap: 12px; }
  .guide-num { width: 32px; height: 32px; font-size: 15px; }
  .guide-body h2 { font-size: 18px; }
}
