/* =========================================================
   出展者オプション（/guide/ と /guide/<会期>/）専用
   このページでだけ読み込む（src/guide/*.njk の stylesheets）。

   サイトはダークプロ（紺地）で統一しているが、ここは出展者が申請のたびに読み返す
   実務資料なので、デザイン案に合わせて白地基調にしている（ヘッダー・フッターは共通）。
   既存の .card / .hero / .lead などとぶつからないよう、クラスはすべて gd- で始める。
   データから決まる色と位置は /css/guide-gen.css（生成物）にある。
   ========================================================= */

:root {
  --gd-kon: #0f193c;
  --gd-gold: #bea064;
  /* 白地の上の金文字。--gd-gold のままだと 2.4:1 程度で AA に届かない */
  --gd-gold-text: #866a2c;
  /* 濃い紫。ダークモードでも白地の上で使う箇所（推奨のバッジ）があるので、--gd-purple とは別に持つ */
  --gd-purple-deep: #4600be;
  --gd-purple: var(--gd-purple-deep);
  --gd-accent: #cc2071;
  /* カレンダーの土曜 */
  --gd-sat: #1f5fd0;
  /* 入稿テンプレートのガイド線の色。テンプレート（AI・PDF）の線の色に合わせるので、ダークモードでも変えない */
  --gd-tpl-red: #e0332e;
  --gd-tpl-green: #2e9b49;
  --gd-tpl-blue: #1f86d6;
  --gd-bg: #f3f4f8;
  --gd-surface: #ffffff;
  --gd-surface-2: #eceef5;
  --gd-fg: #0f193c;
  --gd-muted: #59617d;
  --gd-line: #d9dce7;
  --gd-link: #4600be;
  --gd-tag-bg: #f0ebff;
  --gd-gold-soft: #f5efe2;
  --gd-accent-soft: #fbe8f1;
  --gd-ok: #1f7a4d;
  --gd-warn: #a35d00;
  --gd-over: #6f748a;
  --gd-sel: #0f193c;
  --gd-on-dark: #ffffff;
  /* 強調色（ピンク・紫）や選択中の地の上の文字。ダークでは地が明るくなるので紺に切り替える */
  --gd-on-accent: #ffffff;
  /* 「該当者」の申請の帯の地。ダークでは紺が地に沈むので明るい紺にする（白文字は両方で 8:1 以上） */
  --gd-cond: #0f193c;
  --gd-hero-bg: #0f193c;
  --gd-hero-muted: #b9bfd6;
  --gd-hero-soft: #dfe2ee;
  --gd-hero-faint: #8d94b3;
  --gd-hero-ok: #7fe0ae;
  --gd-hero-soon: #ffc56b;
  --gd-hero-line: rgba(255, 255, 255, 0.28);
  --gd-hero-gold-line: rgba(190, 160, 100, 0.5);
  --gd-hero-panel: rgba(255, 255, 255, 0.04);
  --gd-hero-chip: rgba(255, 255, 255, 0.07);
  --gd-hero-chip-strong: rgba(255, 255, 255, 0.12);
  --gd-hero-chip-line: rgba(255, 255, 255, 0.22);
  /* 推奨の見出し（紫地）の白文字と白いバッジ。デザイン案に合わせ、ダークモードでも白のまま */
  --gd-on-rec: #ffffff;
  /* 白いバッジの文字。ダークの --gd-purple（#8f6cff）だと白地で 3.6:1 しかないので、ライトの紫に固定する */
  --gd-rec-pill-text: var(--gd-purple-deep);
  --gd-rec-chev-bg: rgba(255, 255, 255, 0.2);
  --gd-overlay: rgba(6, 10, 28, 0.88);
  --gd-badge-bg: rgba(15, 25, 60, 0.8);
  --gd-float-shadow: rgba(15, 25, 60, 0.3);
  --gd-photo-bg: #ffffff;
  --gd-swatch-edge: rgba(0, 0, 0, 0.18);
  --gd-r: 6px;
  --gd-tabs-h: 61px;
}

/* デザイン案のダークモードを移植。OS の設定に従う */
@media (prefers-color-scheme: dark) {
  :root {
    --gd-bg: #0a1029;
    --gd-surface: #121a3a;
    --gd-surface-2: #1a2449;
    --gd-fg: #eef0f7;
    --gd-muted: #a6acc4;
    --gd-line: #2a3560;
    --gd-hero-bg: #060b1f;
    --gd-link: #a98bff;
    --gd-tag-bg: #241b4d;
    --gd-purple: #8f6cff;
    --gd-accent: #ff5aa5;
    --gd-sat: #7aa7ff;
    --gd-gold-soft: #2c2817;
    --gd-accent-soft: #3a1530;
    --gd-ok: #5fd19a;
    --gd-warn: #ffb44d;
    --gd-over: #8b91b0;
    --gd-sel: #8f6cff;
    --gd-gold-text: #bea064;
    --gd-on-accent: #0f193c;
    /* 明るい紫地に白い丸を重ねると白い矢印が 2.8:1 になるため、ダークでは丸を暗くする */
    --gd-rec-chev-bg: rgba(15, 25, 60, 0.2);
    --gd-cond: #3a4a85;
  }
}

/* =========================================================
   土台
   ========================================================= */
.gd {
  background: var(--gd-bg);
  color: var(--gd-fg);
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.gd a { color: var(--gd-link); }
.gd a:focus-visible,
.gd button:focus-visible,
.gd input:focus-visible,
.gd summary:focus-visible { outline: 2px solid var(--gd-gold); outline-offset: 2px; }
.gd img { display: block; max-width: 100%; height: auto; }
/* JS が出し入れする要素は hidden 属性で隠す。display を指定したクラスが付いていても必ず隠れるようにする */
.gd [hidden] { display: none !important; }
.gd p { margin: 0 0 12px; }
.gd h3 { font-size: 18px; margin: 32px 0 12px; line-height: 1.4; font-weight: 700; }
.gd h4 { font-size: 15px; margin: 20px 0 8px; font-weight: 700; }
.gd-num { font-family: var(--font-en); font-variant-numeric: tabular-nums; }
.gd-u-mt { margin-top: 12px; }

/* アンカーで飛んだとき、追従タブの下に止める。ヘッダー分は html の scroll-padding-top が
   既に空けているので、ここで足すのはタブの高さだけ（両方足すと 80px 余分に下がる） */
.gd [id] { scroll-margin-top: calc(var(--gd-tabs-h) + 12px); }

.gd-wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: max(16px, env(safe-area-inset-left, 0px));
}

/* =========================================================
   hero
   ========================================================= */
.gd-hero { background: var(--gd-hero-bg); color: var(--gd-on-dark); }
.gd-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  padding-block: 24px 32px;
  align-items: end;
}
.gd-hero .breadcrumb { color: var(--gd-hero-muted); }
.gd-hero .breadcrumb a { color: var(--gd-hero-muted); }
.gd-hero__top { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.gd-eyebrow { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.2em; color: var(--gd-gold); text-transform: uppercase; }
.gd-hero h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.25; margin: 6px 0 14px; font-weight: 700; }
.gd-eyebrow__jp { margin-left: 10px; font-family: var(--font-jp); letter-spacing: 0.08em; text-transform: none; }
/* 展示会名は 3〜4 個並んで長いので、一覧ページの「出展者オプション」より一回り小さくする */
.gd-hero h1.gd-hero__title { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.4; margin-bottom: 8px; }
.gd .gd-hero__label { display: inline-block; margin: 0 0 16px; padding: 2px 12px; border: 1px solid var(--gd-hero-line); border-radius: 999px; font-family: var(--font-en); font-size: 14px; letter-spacing: 0.06em; color: var(--gd-gold); }
.gd-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; margin: 0; font-size: 14px; }
.gd-meta dt { color: var(--gd-hero-muted); }
.gd-updated { font-size: 12px; color: var(--gd-hero-faint); margin-top: 14px; }
.gd-closed { margin-top: 14px; padding: 8px 12px; border-left: 3px solid var(--gd-accent); background: var(--gd-hero-panel); font-size: 13px; }

.gd-next { border: 1px solid var(--gd-hero-gold-line); border-radius: var(--gd-r); padding: 18px 20px; background: var(--gd-hero-panel); }
.gd-next__item { display: none; }
.gd-next__item.is-current { display: block; }
.gd-next__lbl { font-size: 12px; color: var(--gd-gold); letter-spacing: 0.12em; }
.gd-next__days { font-family: var(--font-en); font-size: 26px; line-height: 1; margin: 10px 0 4px; }
/* JS が残り日数を入れたら大きく見せる（入る前は日付を出している） */
.gd-next__days.is-count { font-size: 44px; }
.gd-next__days small { font-size: 15px; margin-left: 4px; font-family: var(--font-jp); }
.gd-next__what { font-size: 14px; color: var(--gd-hero-soft); }
.gd-hero .gd-next a { color: var(--gd-gold); font-size: 13px; }

/* --- 展示会の切り替え（details のドロップダウン。JS なしで動く） --- */
.gd-switch-ev { font-size: 13px; }
.gd-switch-ev summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--gd-hero-gold-line);
  border-radius: 999px;
  color: var(--gd-on-dark);
}
.gd-switch-ev summary::-webkit-details-marker { display: none; }
.gd-switch-ev summary::after { content: "▾"; color: var(--gd-gold); }
.gd-switch-ev[open] summary::after { content: "▴"; }
/* ボタンではなく上段の行（.gd-hero__top）の右端にそろえて開く。ボタン基準だと、
   ボタンが左に回り込む幅では左外へ、右に寄る幅では右外へはみ出す */
.gd-switch-ev__menu {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 30;
  margin-top: 6px;
  min-width: min(320px, calc(100vw - 32px));
  padding: 6px;
  list-style: none;
  background: var(--gd-surface);
  border: 1px solid var(--gd-line);
  border-radius: var(--gd-r);
  box-shadow: 0 8px 24px var(--gd-badge-bg);
}
.gd-hero .gd-switch-ev__menu a { display: grid; gap: 1px; padding: 8px 10px; border-radius: 4px; color: var(--gd-fg); text-decoration: none; }
.gd-switch-ev__menu a:hover { background: var(--gd-surface-2); }
.gd-switch-ev__menu a[aria-current="page"] { background: var(--gd-gold-soft); }
.gd-switch-ev__menu b { font-size: 13.5px; line-height: 1.45; }
.gd-switch-ev__menu small { font-size: 12px; color: var(--gd-muted); }
.gd-switch-ev__menu ul { list-style: none; margin: 0; padding: 0; }
.gd .gd-switch-ev__h { margin: 6px 10px 2px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--gd-muted); }
.gd .gd-switch-ev__all { border-top: 1px solid var(--gd-line); margin: 4px 0 0; padding-top: 4px; }

/* =========================================================
   ページ内タブ（サイトのヘッダーの直下に追従）
   ========================================================= */
.gd-tabs { position: sticky; top: var(--header-h); z-index: 20; background: var(--gd-surface); border-bottom: 1px solid var(--gd-line); }
.gd-tabs__in { display: flex; align-items: center; gap: 10px; }
.gd-tabs ul { flex: 1; min-width: 0; display: flex; gap: 4px; list-style: none; margin: 0; padding-block: 8px; overflow-x: auto; scrollbar-width: none; }
.gd-tabs ul::-webkit-scrollbar { display: none; }
.gd-tabs ul a {
  display: flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--gd-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 999px;
}
.gd-tabs ul a:hover { color: var(--gd-fg); background: var(--gd-surface-2); }
.gd-tabs ul a.is-on { color: var(--gd-on-accent); background: var(--gd-sel); }
.gd-tabs ul { align-items: center; }
/* 長いタブ名は 2 段にして、タブ帯に多く収める */
.gd-tabs ul a.gd-tabs__two { flex-direction: column; justify-content: center; line-height: 1.2; font-size: 12px; padding: 3px 12px; }
/* 選んだタブを左端に回したとき、元の先頭（申請ガイド）の前に区切り線を入れて、一周したことが分かるようにする */
.gd-tabs ul li.is-wrap-start { position: relative; margin-left: 9px; }
.gd-tabs ul li.is-wrap-start::before { content: ""; position: absolute; left: -7px; top: 20%; bottom: 20%; border-left: 1px solid var(--gd-line); }
.gd-viewmode { flex: none; display: flex; border: 1px solid var(--gd-line); border-radius: 999px; overflow: hidden; background: var(--gd-surface); }
.gd-viewmode[hidden] { display: none; }
.gd-viewmode button { font: inherit; font-size: 12px; font-weight: 700; border: 0; background: transparent; color: var(--gd-muted); padding: 6px 12px; min-height: 44px; cursor: pointer; white-space: nowrap; }
.gd-viewmode button[aria-pressed="true"] { background: var(--gd-gold); color: var(--gd-kon); }

/* タブ別表示（JS で .gd.is-paged を付ける） */
.gd.is-paged .gd-sec:not(.is-active) { display: none; }
.gd.is-paged .gd-sec { border-bottom: 0; min-height: 60vh; }
.gd-pager { display: none; }
.gd.is-paged .gd-pager { display: flex; justify-content: space-between; gap: 12px; margin: 40px 0 0; padding-top: 20px; border-top: 2px solid var(--gd-line); }
.gd a.gd-pager__btn { display: grid; gap: 2px; text-align: left; background: var(--gd-surface); border: 1px solid var(--gd-line); border-radius: var(--gd-r); padding: 10px 16px; color: var(--gd-fg); font-weight: 700; font-size: 14px; min-width: 0; text-decoration: none; }
.gd a.gd-pager__btn--next { text-align: right; margin-left: auto; background: var(--gd-sel); color: var(--gd-on-accent); border-color: var(--gd-sel); }
.gd-pager__btn small { font-size: 11px; font-weight: 400; opacity: 0.85; }
.gd a.gd-pager__btn:hover { border-color: var(--gd-gold); }

/* =========================================================
   節と見出し
   ========================================================= */
.gd-main { padding-block: 12px 96px; }
.gd-sec { padding-block: 64px 16px; border-bottom: 2px solid var(--gd-line); }
.gd-sec:last-of-type { border-bottom: 0; }
.gd-sec-head {
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--gd-hero-bg);
  color: var(--gd-on-dark);
  border-left: 6px solid var(--gd-gold);
  border-radius: var(--gd-r);
}
.gd-sec-head--app { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.gd-sec-head__title { min-width: 0; }
.gd-en { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.2em; color: var(--gd-gold); text-transform: uppercase; }
.gd-sec-head h2 { font-size: 26px; margin: 2px 0 0; line-height: 1.35; font-weight: 700; color: var(--gd-on-dark); }
.gd-sh-apps { display: grid; gap: 8px; flex: 0 1 auto; max-width: 100%; min-width: 0; }
/* 紺の見出し帯の中に置いた申請情報 */
.gd-sec-head .gd-app { margin: 0; flex: 0 1 auto; max-width: 100%; background: var(--gd-hero-chip); border: 1px solid var(--gd-hero-chip-line); border-left: 3px solid var(--gd-gold); color: var(--gd-on-dark); padding: 10px 14px; }
.gd-sec-head .gd-app .gd-k { color: var(--gd-hero-muted); }
.gd-sec-head .gd-app a { color: var(--gd-gold); }
.gd-sec-head .gd-cd.is-ok { color: var(--gd-hero-ok); }
.gd-sec-head .gd-cd.is-soon { color: var(--gd-hero-soon); }
.gd-sec-head .gd-cd.is-over { color: var(--gd-hero-muted); }
.gd-sec-head .gd-copy-addr { background: var(--gd-hero-chip-strong); color: var(--gd-on-dark); }
.gd-sec-head .gd-copy-addr::after { border-color: var(--gd-hero-muted); box-shadow: -3px 3px 0 -1.5px var(--gd-hero-bg), -3px 3px 0 0 var(--gd-hero-muted); }
.gd-lead { color: var(--gd-muted); margin: 0 0 20px; }

/* 節の中の見出し（折りたたみ。JS が動かないときは全部開いている） */
.gd-h3row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin: 44px 0 16px; padding: 2px 0 10px 14px; border-left: 5px solid var(--gd-gold); border-bottom: 1px solid var(--gd-line); position: relative; }
.gd-h3row::after { content: ""; position: absolute; left: -5px; bottom: -1px; width: 80px; height: 2px; background: var(--gd-sel); }
.gd .gd-h3row h3 { margin: 0; font-size: 20px; line-height: 1.4; min-width: 0; }
.gd-h3row .gd-app { margin: 0; font-size: 13px; padding: 8px 12px; flex: 0 1 auto; max-width: 100%; }
.gd-coll { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: default; display: inline-flex; align-items: center; gap: 10px; }
.gd.is-js .gd-coll { cursor: pointer; }
.gd.is-js .gd-coll:hover { color: var(--gd-link); }
.gd-coll__chev { display: none; position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--gd-surface-2); transition: transform 0.2s; }
.gd.is-js .gd-coll__chev { display: inline-block; }
.gd-coll__chev::before { content: ""; position: absolute; left: 9px; top: 8px; width: 8px; height: 8px; border-right: 2px solid var(--gd-muted); border-bottom: 2px solid var(--gd-muted); transform: rotate(45deg); }
.gd-coll[aria-expanded="false"] .gd-coll__chev { transform: rotate(-90deg); }
.gd-sub-body[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .gd-coll__chev { transition: none; } }

.gd-notes { margin: 0 0 12px; padding-left: 1.2em; color: var(--gd-muted); font-size: 13.5px; list-style: disc; }
.gd-notes li { margin: 2px 0; }
.gd-notes--flush { margin: 0; }
.gd-plain { margin: 0 0 12px; padding-left: 1.2em; list-style: disc; }
.gd-plain li { margin: 4px 0; }
.gd-new { display: inline-block; font-family: var(--font-en); font-size: 11px; letter-spacing: 0.08em; color: var(--gd-on-accent); background: var(--gd-accent); border-radius: 3px; padding: 1px 6px; vertical-align: middle; margin-left: 6px; }
.gd-small { font-size: 13px; color: var(--gd-muted); }

/* =========================================================
   申請窓口・期限の帯
   ========================================================= */
.gd-to { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; }
.gd-to a { font-size: 13px; word-break: break-all; }
/* メールアドレス。押すとコピー（JS が無ければ選択してコピーできる） */
.gd-copy-addr {
  position: relative;
  font: inherit;
  font-size: 13px;
  color: var(--gd-fg);
  background: var(--gd-surface-2);
  border: 0;
  border-radius: 4px;
  padding: 2px 26px 2px 8px;
  cursor: copy;
  text-align: left;
  word-break: break-all;
  max-width: 100%;
  user-select: all;
  /* 押せる範囲は 44px（design.md のタッチターゲット）。表の行に収まるよう上下の余白で確保する */
  min-height: 44px;
}
.gd-copy-addr::after { content: ""; position: absolute; right: 7px; top: 50%; width: 9px; height: 11px; margin-top: -6px; border: 1.5px solid var(--gd-muted); border-radius: 2px; box-shadow: -3px 3px 0 -1.5px var(--gd-surface-2), -3px 3px 0 0 var(--gd-muted); }
.gd-copy-addr:hover { background: var(--gd-tag-bg); }
.gd-copy-addr.is-done::before { content: "コピーしました"; position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); background: var(--gd-kon); color: var(--gd-on-dark); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; white-space: nowrap; z-index: 5; }

.gd-app {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  align-items: baseline;
  background: var(--gd-surface);
  border: 1px solid var(--gd-line);
  border-left: 3px solid var(--gd-gold);
  border-radius: var(--gd-r);
  padding: 12px 14px;
  margin: 0 0 18px;
  font-size: 13px;
}
.gd-k { color: var(--gd-muted); white-space: nowrap; }
.gd-dl { font-weight: 700; }
.gd-pill { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.gd h3 .gd-pill { margin-left: 8px; vertical-align: 2px; }
.gd-pill--req { background: var(--gd-accent); color: var(--gd-on-accent); }
.gd-pill--rec { background: var(--gd-purple); color: var(--gd-on-accent); }
.gd-pill--opt { background: var(--gd-surface-2); color: var(--gd-muted); }
.gd-pill--cond { background: var(--gd-tag-bg); color: var(--gd-link); }
.gd-cd { font-size: 12px; font-weight: 700; white-space: nowrap; margin-left: 6px; }
.gd-cd:empty { display: none; }
.gd-cd.is-soon { color: var(--gd-warn); }
.gd-cd.is-ok { color: var(--gd-ok); }
.gd-cd.is-over { color: var(--gd-over); }

/* =========================================================
   申請ガイド
   ========================================================= */
.gd-flow { list-style: none; margin: 0; padding: 0; }
.gd-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; position: relative; padding-bottom: 28px; }
.gd-step:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--gd-line); }
.gd-step__no { width: 44px; height: 44px; border-radius: 50%; background: var(--gd-kon); color: var(--gd-on-dark); font-family: var(--font-en); font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
@media (prefers-color-scheme: dark) { .gd-step__no { background: var(--gd-purple); color: var(--gd-on-accent); } }
.gd-step__body { min-width: 0; padding-top: 6px; }
.gd .gd-step__body h3 { margin: 0 0 6px; font-size: 18px; }
.gd .gd-step__txt { color: var(--gd-muted); font-size: 13.5px; margin: 0 0 12px; }
.gd-g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.gd-g-grid--one { grid-template-columns: minmax(0, 520px); }
.gd a.gd-g-node,
.gd-g-dual { display: flex; flex-direction: column; gap: 4px; background: var(--gd-surface); border: 1px solid var(--gd-line); border-radius: var(--gd-r); padding: 12px 14px; color: var(--gd-fg); text-decoration: none; min-width: 0; transition: border-color 0.15s; }
.gd a.gd-g-node:hover { border-color: var(--gd-gold); }
.gd-g-node--must { border-color: var(--gd-accent) !important; box-shadow: inset 3px 0 0 var(--gd-accent); }
.gd-g-node--must .gd-pill { align-self: flex-start; }
/* 締切は常にカードの下端にそろえる */
.gd-g-node > .gd-g-meta { margin-top: auto; padding-top: 6px; }
.gd-g-hd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.gd-g-hd > .gd-g-meta { padding-top: 0; }
.gd-g-meta--r { margin-left: auto; }
.gd .gd-g-more { font-size: 13px; font-weight: 700; white-space: nowrap; }
.gd-g-more::after { content: " →"; }
.gd-g-req-list { margin: -6px 0 12px; padding-left: 1.2em; font-size: 13.5px; color: var(--gd-muted); }
/* 必須の申請のカード。下調べと申し込みの 2 つのボタンを並べる */
.gd-g-dual { grid-column: span 2; }
.gd-g-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.gd a.gd-g-btn { flex: 1 1 180px; display: grid; gap: 1px; min-height: 44px; padding: 9px 14px; border-radius: var(--gd-r); text-decoration: none; font-weight: 700; font-size: 14px; min-width: 0; background: var(--gd-surface); color: var(--gd-fg); border: 1px solid var(--gd-gold); }
.gd-g-btn small { font-size: 11.5px; font-weight: 400; color: var(--gd-muted); }
.gd-g-btn__hint { font-size: 10.5px; font-weight: 400; color: var(--gd-muted); }
.gd a.gd-g-btn--main { background: var(--gd-accent); color: var(--gd-on-accent); border-color: var(--gd-accent); }
/* 補足の小さい文字も地との比を 4.5:1 以上に保つため、半透明にせずボタンの文字色のまま出す */
.gd-g-btn--main small,
.gd-g-btn--main .gd-g-btn__hint { color: inherit; }
.gd a.gd-g-btn:hover { filter: brightness(1.05); }
.gd-g-q { font-weight: 700; font-size: 14.5px; line-height: 1.5; }
.gd-g-a { font-size: 13px; color: var(--gd-link); }
.gd-g-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--gd-muted); margin-top: 2px; }
.gd-g-meta b { color: var(--gd-fg); }
.gd-g-meta .gd-cd { margin-left: 0; }
.gd-g-sub { font-size: 14px; margin: 16px 0 4px; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.gd-g-sub::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--gd-gold); }
.gd-g-skip { background: var(--gd-surface); border: 1px dashed var(--gd-line); border-radius: var(--gd-r); padding: 12px 14px; font-size: 13.5px; color: var(--gd-muted); }
.gd-g-skip b { color: var(--gd-ok); }
.gd-g-switch { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border: 1px solid var(--gd-line); border-radius: var(--gd-r); overflow: hidden; margin: 0 0 10px; background: var(--gd-surface); max-width: 100%; }
.gd-g-switch[hidden] { display: none; }
.gd-g-switch button { font: inherit; border: 0; background: transparent; color: var(--gd-fg); padding: 10px 18px; min-height: 44px; cursor: pointer; display: grid; gap: 1px; text-align: left; min-width: 0; }
.gd-g-switch--yn button { padding: 8px 32px; text-align: center; }
.gd-g-switch button + button { border-left: 1px solid var(--gd-line); }
.gd-g-switch button small { font-size: 11.5px; color: var(--gd-muted); }
.gd-g-switch button[aria-pressed="true"] { background: var(--gd-sel); color: var(--gd-on-accent); }
.gd-g-switch button[aria-pressed="true"] small { color: inherit; opacity: 0.85; }
/* JS が無いときは分岐を全部見せる。どの分岐かが分かるよう見出しを付ける */
.gd-g-branch + .gd-g-branch { margin-top: 18px; }
.gd-g-branch__label { font-size: 12px; font-weight: 700; color: var(--gd-muted); margin-bottom: 6px; }
.gd.is-js:not(.is-printing) .gd-g-branch__label { display: none; }
.gd-g-branch[hidden] { display: none; }
.gd-g-consult { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: center; background: var(--gd-surface); border: 1px solid var(--gd-gold); box-shadow: inset 3px 0 0 var(--gd-gold); border-radius: var(--gd-r); padding: 14px 16px; }
.gd-g-wants { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.gd-g-wants li { font-weight: 700; font-size: 15px; padding-left: 22px; position: relative; }
.gd-g-wants li::before { content: "✓"; position: absolute; left: 0; color: var(--gd-gold-text); font-weight: 700; }
.gd .gd-g-consult .gd-g-q { margin: 0; }
.gd-g-c-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 16px; background: var(--gd-accent-soft); border-radius: var(--gd-r); }
.gd-g-c-note { font-size: 13px; }
.gd-g-c-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; }
.gd a.gd-g-c-tel { font-family: var(--font-en); font-weight: 700; font-size: 16px; color: var(--gd-fg); text-decoration: none; }
.gd-g-c-or { font-size: 11.5px; color: var(--gd-muted); }
.gd a.gd-btn-book { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; background: var(--gd-accent); color: var(--gd-on-accent); font-weight: 700; font-size: 14px; text-decoration: none; padding: 10px 18px; border-radius: 999px; }
.gd-btn-book::after { content: "↗"; font-size: 13px; }
.gd a.gd-btn-book--big { font-size: 17px; padding: 14px 30px; }

/* =========================================================
   申請期日カレンダー
   ========================================================= */
.gd-cal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.gd-month { background: var(--gd-surface); border: 1px solid var(--gd-line); border-radius: var(--gd-r); padding: 16px; min-width: 0; }
.gd .gd-month h3 { margin: 0 0 10px; font-size: 16px; display: flex; align-items: baseline; gap: 6px; }
.gd-month__y { font-family: var(--font-en); font-size: 12px; color: var(--gd-muted); font-weight: 500; }
.gd-month__m { font-family: var(--font-en); font-size: 22px; }
.gd-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.gd-wd { font-size: 11px; color: var(--gd-muted); padding-bottom: 2px; }
.gd-wd:first-child { color: var(--gd-accent); }
.gd-cell { position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: 5px; font-family: var(--font-en); font-size: 13px; color: var(--gd-fg); min-width: 0; }
.gd-cell.is-blank { visibility: hidden; }
.gd-cell.is-sun { color: var(--gd-accent); }
.gd-cell.is-sat { color: var(--gd-sat); }
.gd-cell.is-off { background: var(--gd-surface-2); color: var(--gd-muted); box-shadow: inset 0 0 0 1px var(--gd-line); }
.gd-cell.is-today { box-shadow: inset 0 0 0 1.5px var(--gd-fg); }
.gd a.gd-cell.is-dl { background: var(--gd-accent); color: var(--gd-on-accent); font-weight: 700; text-decoration: none; }
.gd-cell__c { position: absolute; top: 2px; right: 3px; font-size: 9px; font-family: var(--font-jp); line-height: 1; }
.gd-cell.is-ev { background: var(--gd-gold); color: var(--gd-kon); font-weight: 700; }
.gd-cell.is-mv { background: var(--gd-gold-soft); color: var(--gd-fg); box-shadow: inset 0 0 0 1px var(--gd-gold); }
.gd-cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--gd-muted); margin: 0 0 14px; }
.gd-lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; }
.gd-lg--dl { background: var(--gd-accent); }
.gd-lg--mv { background: var(--gd-gold-soft); box-shadow: inset 0 0 0 1px var(--gd-gold); }
.gd-lg--ev { background: var(--gd-gold); }
.gd-lg--today { box-shadow: inset 0 0 0 1.5px var(--gd-fg); }
.gd-lg--off { background: var(--gd-surface-2); box-shadow: inset 0 0 0 1px var(--gd-line); }
.gd-dl-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.gd-dl-group { border-top: 1px solid var(--gd-line); padding-top: 12px; }
.gd-dl-date { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; min-height: 44px; }
.gd-dl-date::-webkit-details-marker { display: none; }
.gd-dl-date b { font-family: var(--font-en); font-size: 17px; }
.gd-dl-date__cnt { margin-left: auto; font-size: 12px; color: var(--gd-muted); white-space: nowrap; }
.gd-dl-date__cnt::after { content: "　＋"; }
details[open] > .gd-dl-date .gd-dl-date__cnt::after { content: "　－"; }
details[open] > .gd-dl-date { margin-bottom: 6px; }
.gd-dl-item { padding: 8px 0; border-bottom: 1px dashed var(--gd-line); display: grid; gap: 3px; }
.gd-dl-item:last-child { border-bottom: 0; }
.gd-dl-item__l1 { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.gd-dl-item__l2 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; }
.gd-dl-item__n { font-weight: 700; font-size: 14px; line-height: 1.5; }
.gd-dl-item__n a { color: inherit; text-decoration: none; }
.gd-dl-item__n a:hover { color: var(--gd-link); text-decoration: underline; }
.gd-dl-item__vd { font-size: 12px; color: var(--gd-muted); }
.gd-dl-item__vd::before { content: "／"; margin-right: 6px; }
.gd-dl-item__mt { font-size: 11.5px; color: var(--gd-muted); border: 1px solid var(--gd-line); border-radius: 4px; padding: 0 6px; white-space: nowrap; }
/* 必須・推奨・該当者は色の付いた帯にして、任意の申請に埋もれないようにする */
.gd-dl-item--imp { border: 0; border-radius: var(--gd-r); padding: 8px 10px; margin: 6px 0; color: var(--gd-on-accent); }
.gd-dl-item--req { background: var(--gd-accent); }
.gd-dl-item--rec { background: var(--gd-purple); }
.gd-dl-item--cond { background: var(--gd-cond); color: var(--gd-on-dark); }
.gd-dl-item--imp .gd-pill { background: var(--gd-surface); }
.gd-dl-item--req .gd-pill { color: var(--gd-accent); }
.gd-dl-item--rec .gd-pill { color: var(--gd-purple); }
.gd-dl-item--cond .gd-pill { color: var(--gd-fg); }
.gd-dl-item--imp .gd-dl-item__vd,
.gd-dl-item--imp .gd-dl-item__mt,
.gd-dl-item--imp .gd-dl-item__n a:hover,
.gd .gd-dl-item--imp .gd-to a { color: inherit; }
.gd-dl-item--imp .gd-dl-item__mt { border-color: currentColor; }
.gd-dl-item--imp .gd-copy-addr { background: var(--gd-surface); color: var(--gd-fg); }
.gd .gd-cal-foot { font-size: 13px; color: var(--gd-muted); margin: 12px 0 0; }
.is-flash { animation: gd-flash 1.4s ease; }
@keyframes gd-flash { 0%, 40% { background: var(--gd-accent-soft); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .is-flash { animation: none; } }

/* =========================================================
   表
   ========================================================= */
.gd-tbl-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--gd-line); border-radius: var(--gd-r); background: var(--gd-surface); }
.gd table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.gd th,
.gd td { padding: 10px 12px; border-bottom: 1px solid var(--gd-line); text-align: left; vertical-align: top; }
.gd tr:last-child td { border-bottom: 0; }
.gd thead th { background: var(--gd-surface-2); font-size: 12.5px; color: var(--gd-muted); font-weight: 700; white-space: nowrap; }
.gd td.gd-c,
.gd th.gd-c { text-align: center; }
.gd td.gd-r,
.gd th.gd-r { text-align: right; }
.gd-yes { color: var(--gd-purple); font-weight: 700; }
.gd-no { color: var(--gd-over); }
.gd .gd-scroll-hint { display: none; font-size: 12px; color: var(--gd-muted); margin: -8px 0 12px; }
.gd tr[hidden] { display: none; }

/* 連絡先の表 */
.gd-vendor-tbl td { vertical-align: middle; }
.gd-vendor-tbl td:first-child { min-width: 150px; }
.gd-vendor-tbl td:nth-child(2) { font-size: 12.5px; color: var(--gd-muted); min-width: 200px; }
.gd-vendor-tbl__roles { display: inline-flex; flex-direction: column; vertical-align: top; }
.gd-vendor-tbl__hours { display: block; font-size: 11.5px; font-weight: 400; color: var(--gd-muted); }
.gd-vendor-tbl .gd-copy-addr { white-space: nowrap; word-break: normal; overflow-wrap: normal; }
.gd a.gd-tel { font-family: var(--font-en); font-weight: 700; white-space: nowrap; text-decoration: none; color: var(--gd-fg); }

/* =========================================================
   パッケージプラン
   ========================================================= */
.gd-plan-cmp th.gd-plan-cmp__plan { font-size: 14px; color: var(--gd-fg); text-align: center; min-width: 118px; padding: 0; }
.gd a.gd-plan-cmp__pick { display: block; padding: 10px 12px; color: inherit; text-decoration: none; transition: background 0.15s; }
.gd a.gd-plan-cmp__pick:hover { background: var(--gd-tag-bg); }
.gd-plan-cmp th.is-sel { background: var(--gd-gold-soft); box-shadow: inset 0 -3px 0 var(--gd-gold); }
.gd-plan-cmp__plan img { width: 100%; max-width: 120px; margin: 0 auto 6px; border-radius: 4px; aspect-ratio: 4 / 3; object-fit: cover; }
.gd-plan-cmp__price { font-family: var(--font-en); font-size: 20px; font-weight: 700; display: block; }
.gd-plan-cmp__unit { font-size: 11px; color: var(--gd-muted); font-weight: 400; }
.gd-plan-cmp__more { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--gd-link); }
.gd-plan-cmp small { color: var(--gd-muted); font-size: 11.5px; }
/* 横スクロールしても項目名の列は残す */
.gd-plan-cmp td:first-child,
.gd-plan-cmp th:first-child { position: sticky; left: 0; background: var(--gd-surface); z-index: 1; font-weight: 700; white-space: nowrap; }
.gd-plan-cmp thead th:first-child { background: var(--gd-surface-2); }
.gd-dots { display: grid; justify-content: center; gap: 4px; margin: 2px auto 4px; }
.gd-dots--c1 { grid-template-columns: repeat(1, 14px); }
.gd-dots--c2 { grid-template-columns: repeat(2, 14px); }
.gd-dots--c3 { grid-template-columns: repeat(3, 14px); }
.gd-dots--c4 { grid-template-columns: repeat(4, 14px); }
.gd-dots--l { display: flex; flex-wrap: wrap; justify-content: flex-start; margin: 2px 0 4px; }
.gd-dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--gd-swatch-edge), 0 0 0 1px var(--gd-surface); }

.gd-seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.gd-seg[hidden] { display: none; }
.gd-seg--flush { margin: 0; }
.gd-seg button { font: inherit; font-size: 13px; font-weight: 500; border: 1px solid var(--gd-line); background: var(--gd-surface); color: var(--gd-fg); border-radius: 999px; padding: 7px 14px; cursor: pointer; min-height: 44px; }
.gd-seg button[aria-pressed="true"] { background: var(--gd-sel); color: var(--gd-on-accent); border-color: var(--gd-sel); }

/* JS が無いときは 5 プランを縦に並べる。JS が動いたら選んだ 1 つだけを出す */
.gd-plan-details { display: grid; gap: 14px; }
.gd-plan-details.is-js .gd-plan-detail:not(.is-active) { display: none; }
.gd-plan-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; background: var(--gd-surface); border: 1px solid var(--gd-line); border-radius: var(--gd-r); padding: 22px; }
.gd .gd-plan-detail__name { font-size: 22px; margin: 0; }
.gd .gd-plan-detail__tagline { color: var(--gd-muted); margin: 4px 0 14px; }
.gd-plan-detail__big { font-family: var(--font-en); font-size: 34px; font-weight: 700; line-height: 1; }
.gd-plan-detail__big small { font-family: var(--font-jp); font-size: 13px; font-weight: 400; color: var(--gd-muted); margin-left: 6px; }
.gd-spec { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 16px 0; font-size: 14px; }
.gd-spec dt { color: var(--gd-muted); }
.gd-viewer { display: grid; gap: 10px; align-content: start; min-width: 0; }
.gd a.gd-pv { position: relative; background: var(--gd-photo-bg); border: 1px solid var(--gd-line); border-radius: var(--gd-r); aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: zoom-in; max-width: 640px; width: 100%; justify-self: center; }
.gd-pv img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gd-pv__cap { position: absolute; left: 8px; bottom: 8px; background: var(--gd-badge-bg); color: var(--gd-on-dark); font-size: 11.5px; padding: 2px 9px; border-radius: 999px; }
.gd-pv__zoom { position: absolute; right: 8px; top: 8px; background: var(--gd-badge-bg); color: var(--gd-on-dark); font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.gd-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 640px; width: 100%; justify-self: center; }
.gd a.gd-th { background: var(--gd-photo-bg); border: 2px solid var(--gd-line); border-radius: var(--gd-r); padding: 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; text-decoration: none; }
.gd-th img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
/* 写真の地は白なので、ダークでも文字は紺で固定する */
.gd-th span { font-size: 11.5px; color: var(--gd-kon); }
.gd a.gd-th[aria-current="true"] { border-color: var(--gd-gold); box-shadow: 0 0 0 1px var(--gd-gold); }
.gd-ph { aspect-ratio: 4 / 3; border: 1.5px dashed var(--gd-line); border-radius: var(--gd-r); display: flex; align-items: center; justify-content: center; color: var(--gd-muted); font-size: 12px; background: var(--gd-surface-2); text-align: center; padding: 6px; }

/* 特記事項（複数小間の無料備品） */
.gd-notice { position: relative; background: var(--gd-gold-soft); border: 1.5px solid var(--gd-gold); border-radius: var(--gd-r); padding: 20px 20px 16px; margin: 28px 0 8px; }
.gd-notice__label { position: absolute; top: -11px; left: 16px; background: var(--gd-gold); color: var(--gd-kon); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; padding: 2px 12px; border-radius: 999px; }
.gd .gd-notice h4 { margin: 4px 0 8px; font-size: 16px; }
.gd .gd-notice p { font-size: 14px; }
.gd-calc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; background: var(--gd-surface); border: 1px solid var(--gd-line); border-radius: var(--gd-r); padding: 12px 14px; margin: 6px 0 14px; }
.gd-calc[hidden] { display: none; }
.gd-calc label { font-weight: 700; font-size: 14px; }
.gd-calc-in { display: flex; align-items: center; gap: 6px; }
.gd-calc-in input { width: 64px; font: inherit; font-size: 18px; font-family: var(--font-en); text-align: center; padding: 6px 4px; border: 1px solid var(--gd-line); border-radius: var(--gd-r); background: var(--gd-surface); color: var(--gd-fg); }
.gd-calc-in input.gd-calc-in--wide { width: 96px; }
.gd-step-btn { width: 44px; height: 44px; font: inherit; font-size: 18px; border: 1px solid var(--gd-line); border-radius: 50%; background: var(--gd-surface-2); color: var(--gd-fg); cursor: pointer; }
.gd-calc-out { font-size: 14px; min-width: 0; }
.gd-calc-out b { font-size: 28px; color: var(--gd-accent); margin: 0 2px; }
.gd-calc-out small { display: block; font-size: 12px; color: var(--gd-muted); }

/* =========================================================
   カード・画像
   ========================================================= */
.gd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gd-cards + .gd-cards { margin-top: 12px; }
.gd-card { background: var(--gd-surface); border: 1px solid var(--gd-line); border-radius: var(--gd-r); padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gd-card[hidden] { display: none; }
.gd-card__thumb { aspect-ratio: 4 / 3; background: var(--gd-photo-bg); border-radius: 4px; overflow: hidden; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gd-line); }
.gd-card__thumb a,
.gd-card__thumb img { width: 100%; height: 100%; }
.gd-card__thumb img { object-fit: contain; }
.gd-card__code { font-family: var(--font-en); font-size: 11.5px; color: var(--gd-muted); letter-spacing: 0.02em; min-height: 1em; }
.gd-card__nm { font-weight: 700; font-size: 14.5px; line-height: 1.45; }
.gd-card__sp { font-size: 12px; color: var(--gd-muted); line-height: 1.55; }
.gd-card__pr { font-family: var(--font-en); font-size: 19px; font-weight: 700; margin-top: auto; padding-top: 4px; }
.gd-card__pr small { font-family: var(--font-jp); font-size: 11px; color: var(--gd-muted); font-weight: 400; margin-left: 4px; }

/* 同じ写真の品番をまとめたカード */
.gd-cards--groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gd-card--group { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 10px 14px; align-items: start; }
.gd-card--group .gd-card__thumb { margin: 0; }
.gd-vars { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; }
.gd-vars li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--gd-line); font-size: 13px; }
.gd-vars li:last-child { border-bottom: 0; }
.gd-vars li[hidden] { display: none; }
.gd-vars__c { font-family: var(--font-en); font-size: 11.5px; color: var(--gd-muted); white-space: nowrap; }
.gd-vars__n small { color: var(--gd-muted); font-size: 12px; }
.gd-vars__p { font-family: var(--font-en); font-size: 15px; white-space: nowrap; }
.gd-vars__p small { font-family: var(--font-jp); font-size: 11px; color: var(--gd-muted); font-weight: 400; }

.gd-feature { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.gd-feature .gd-card__nm { font-size: 16px; }
.gd-cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gd-cards--three .gd-card__sp { font-size: 13px; color: var(--gd-fg); }
.gd-wide-img { border-radius: var(--gd-r); border: 1px solid var(--gd-line); margin: 0 0 14px; background: var(--gd-photo-bg); width: 100%; }
.gd-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.gd-gallery--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gd-gallery--free { grid-template-columns: repeat(2, minmax(0, 160px)); }
.gd-gallery--compact { grid-template-columns: repeat(2, minmax(0, 260px)); }
.gd-gallery--compact img { aspect-ratio: 4 / 3; object-fit: cover; }
.gd-gallery--same img { aspect-ratio: 900 / 648; object-fit: cover; object-position: center; }
.gd-gallery figure,
.gd-fig { margin: 0; min-width: 0; }
.gd-fig { margin-bottom: 10px; max-width: 560px; }
.gd-gallery img,
.gd-fig img { width: 100%; border-radius: var(--gd-r); border: 1px solid var(--gd-line); background: var(--gd-photo-bg); }
.gd-gallery:not(.gd-gallery--two):not(.gd-gallery--compact) img { aspect-ratio: 1 / 1; object-fit: contain; padding: 6px; }
.gd-gallery figcaption,
.gd-fig figcaption { font-size: 11.5px; color: var(--gd-muted); margin-top: 4px; text-align: center; }
.gd-zoom { cursor: zoom-in; display: block; }

.gd-price-tbl td { vertical-align: middle; }
.gd-price-tbl td.gd-code { font-size: 12.5px; color: var(--gd-muted); white-space: nowrap; font-family: var(--font-en); }
.gd-price-tbl td.gd-strong { font-size: 15px; font-weight: 700; white-space: nowrap; font-family: var(--font-en); }
.gd-price-tbl tr.gd-sub td { background: var(--gd-surface-2); }
.gd-price-tbl td.gd-pimg { width: 96px; padding: 6px 12px; }
.gd-price-tbl td.gd-pimg img { width: 80px; aspect-ratio: 4 / 3; object-fit: contain; background: var(--gd-photo-bg); border: 1px solid var(--gd-line); border-radius: 4px; }

/* --- カラーサンプル --- */
.gd-colors { display: grid; gap: 14px; margin: 0 0 12px; }
.gd-crow { background: var(--gd-surface); border: 1px solid var(--gd-line); border-radius: var(--gd-r); padding: 16px; min-width: 0; }
.gd-crow h5 { font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.gd-crow h5 span { font-family: var(--font-en); font-weight: 500; color: var(--gd-muted); font-size: 13px; margin-left: 6px; }
.gd-sw-line { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-start; }
.gd-sw-line > * { min-width: 0; }
.gd-glabel { font-size: 11.5px; color: var(--gd-muted); margin-bottom: 6px; }
.gd-sw-row { display: flex; flex-wrap: wrap; gap: 10px; }
.gd-sw { width: 72px; display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.3; }
.gd-sw__chip { width: 72px; height: 52px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--gd-swatch-edge); margin-bottom: 5px; }
.gd-sw--carpet .gd-sw__chip { height: 40px; border-radius: 14px; }
.gd-sw__jp { font-size: 11.5px; font-weight: 700; letter-spacing: -0.02em; }
.gd-sw__en { font-size: 11px; color: var(--gd-muted); font-family: var(--font-en); }
.gd .gd-cnote { font-size: 12.5px; color: var(--gd-muted); margin: 10px 0 0; }
.gd-carpet-tbl th { font-size: 11.5px; white-space: nowrap; }
.gd-carpet-tbl td:first-child { font-weight: 700; white-space: nowrap; }
.gd-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; box-shadow: inset 0 0 0 1px var(--gd-swatch-edge); }

/* --- 出展者様の声 --- */
.gd-voices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; }
.gd a.gd-voice { position: relative; display: block; background: var(--gd-surface); border: 1px solid var(--gd-line); border-radius: var(--gd-r); overflow: hidden; color: inherit; text-decoration: none; min-width: 0; }
.gd-voice img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gd-voice__play { position: absolute; top: 10px; left: 10px; background: var(--gd-badge-bg); color: var(--gd-on-dark); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.gd-voice:hover .gd-voice__play { background: var(--gd-accent); color: var(--gd-on-accent); }
.gd-quote { border-left: 3px solid var(--gd-gold); padding: 6px 0 6px 14px; margin: 12px 14px; font-size: 14px; }
.gd-quote cite { display: block; font-style: normal; color: var(--gd-muted); font-size: 12.5px; }

/* =========================================================
   電気工事
   ========================================================= */
.gd-elec { display: grid; gap: 14px; margin: 0 0 18px; }
.gd-elec-fig { background: var(--gd-surface); border: 1px solid var(--gd-line); border-radius: var(--gd-r); padding: 12px; overflow-x: auto; }
.gd-elec-fig svg { display: block; width: 100%; min-width: 560px; height: auto; }
.gd-ef-src { fill: var(--gd-kon); }
.gd-ef-bolt { fill: var(--gd-gold); }
.gd-ef-t { font-size: 15px; font-weight: 700; fill: var(--gd-fg); font-family: var(--font-jp); }
.gd-ef-tw { fill: var(--gd-on-dark); font-size: 14px; }
.gd-ef-s { font-size: 13px; fill: var(--gd-muted); font-family: var(--font-jp); }
.gd-ef-sw { fill: var(--gd-fg); font-weight: 700; }
.gd-ef-trunk { stroke: var(--gd-accent); stroke-width: 8; stroke-linecap: round; }
.gd-ef-trunk-a { fill: var(--gd-accent); }
.gd-ef-tag1 { fill: var(--gd-accent); }
.gd-ef-tag2 { fill: var(--gd-purple); }
.gd-ef-tag-t { fill: var(--gd-on-accent); font-size: 14px; }
.gd-ef-booth { fill: var(--gd-bg); stroke: var(--gd-muted); stroke-width: 2; stroke-dasharray: 8 6; }
.gd-ef-brk { fill: var(--gd-surface); stroke: var(--gd-fg); stroke-width: 2; }
.gd-ef-brk1 { stroke: var(--gd-accent); stroke-width: 3; }
.gd-ef-brk2 { stroke: var(--gd-purple); stroke-width: 3; }
.gd-ef-c1 { fill: var(--gd-accent); font-weight: 700; }
.gd-ef-c2 { fill: var(--gd-purple); font-weight: 700; }
.gd-ef-wire { fill: none; stroke: var(--gd-purple); stroke-width: 4; stroke-linejoin: round; }
.gd-ef-dev { fill: var(--gd-surface); stroke: var(--gd-fg); stroke-width: 2; }
.gd-ef-ray { stroke: var(--gd-gold); stroke-width: 3; stroke-linecap: round; }
.gd-ef-hole { fill: var(--gd-fg); }
.gd-elec-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gd-ec { background: var(--gd-surface); border: 1px solid var(--gd-line); border-radius: var(--gd-r); padding: 14px 16px; min-width: 0; }
.gd-ec--1 { border-top: 4px solid var(--gd-accent); display: flex; flex-direction: column; }
.gd-ec__app { margin-top: auto; padding-top: 12px; }
.gd-ec__app .gd-app { margin: 0; }
.gd-ec--2 { border-top: 4px solid var(--gd-purple); }
.gd-ec__h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 16px; }
.gd-ec__no { font-size: 18px; font-weight: 700; }
.gd-ec--1 .gd-ec__no { color: var(--gd-accent); }
.gd-ec--2 .gd-ec__no { color: var(--gd-purple); }
.gd-ec dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 13.5px; }
.gd-ec dt { color: var(--gd-muted); white-space: nowrap; }
.gd-ec dd b { font-size: 16px; }
.gd .gd-ec__note { margin: 10px 0 0; font-size: 12.5px; color: var(--gd-accent); font-weight: 700; }
.gd-ec-cap { margin: 12px 0 0; border: 2px solid var(--gd-purple); border-radius: var(--gd-r); overflow: hidden; }
.gd-ec-cap__h { background: var(--gd-purple); color: var(--gd-on-accent); font-weight: 700; font-size: 13.5px; padding: 6px 12px; }
.gd-ec-cap__r { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 12px; font-size: 13.5px; }
.gd-ec-cap__r + .gd-ec-cap__r { border-top: 1px dashed var(--gd-line); }
.gd-ec-cap__r b { color: var(--gd-purple); }
.gd-ec-cap__r small { display: block; font-size: 12px; color: var(--gd-muted); margin-top: 2px; }
.gd-ec-cap__k { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; text-align: center; }
.gd-ec-cap__k--own { background: var(--gd-surface-2); color: var(--gd-fg); border: 1px solid var(--gd-line); }
.gd-ec-cap__k--pkg { background: var(--gd-gold); color: var(--gd-kon); }

/* 料金シミュレーション（JS が動くときだけ出す） */
.gd-esim { background: var(--gd-surface); border: 1px solid var(--gd-gold); border-radius: var(--gd-r); padding: 14px 16px; display: grid; gap: 12px; }
.gd-esim[hidden] { display: none; }
.gd-esim__h { display: grid; gap: 2px; }
.gd-esim__h b { font-size: 16px; }
.gd-esim__h small { font-size: 12.5px; color: var(--gd-muted); }
.gd-esim__in { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; }
.gd-esim__f { display: grid; gap: 6px; }
.gd-esim__f label,
.gd-esim__l { font-weight: 700; font-size: 13px; }
.gd-esim__seg { display: inline-flex; border: 1px solid var(--gd-line); border-radius: 999px; overflow: hidden; }
.gd-esim__seg button { font: inherit; font-size: 13.5px; font-weight: 700; border: 0; background: var(--gd-surface); color: var(--gd-muted); padding: 8px 16px; min-height: 44px; cursor: pointer; }
.gd-esim__seg button[aria-pressed="true"] { background: var(--gd-sel); color: var(--gd-on-accent); }
.gd-esim__f[hidden] { display: none; }
.gd-esim__sel { font: inherit; font-size: 16px; padding: 7px 10px; min-height: 44px; border: 1px solid var(--gd-line); border-radius: var(--gd-r); background: var(--gd-surface); color: var(--gd-fg); max-width: 100%; }
.gd-esim__chk { font-size: 13.5px; display: flex; align-items: center; gap: 6px; cursor: pointer; padding-bottom: 8px; min-height: 44px; }
.gd-esim__out { background: var(--gd-gold-soft); border-radius: var(--gd-r); padding: 12px 16px; font-size: 13.5px; }
.gd-esim__row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--gd-line); }
.gd-esim__row > span:first-child { min-width: 0; }
.gd-esim__row .gd-num { white-space: nowrap; }
.gd-esim__row small { display: block; color: var(--gd-muted); font-size: 12px; }
.gd-esim__row--auto { color: var(--gd-purple); }
.gd-esim__tot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 8px; font-weight: 700; }
.gd-esim__tot .gd-num { font-size: 26px; color: var(--gd-accent); }
.gd .gd-esim__note { margin: 8px 0 0; font-size: 12px; color: var(--gd-muted); }

/* 電気器具カタログ（数量入力は JS が動くときだけ） */
.gd .gd-el-lead { font-size: 13.5px; margin: 0 0 10px; }
.gd-elist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--gd-line); border-radius: var(--gd-r); background: var(--gd-surface); }
.gd-elist li { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto 92px; align-items: center; gap: 10px 16px; padding: 10px 14px; border-bottom: 1px solid var(--gd-line); }
.gd-elist li:last-child { border-bottom: 0; }
.gd-tl-img { width: 88px; aspect-ratio: 4 / 3; background: var(--gd-photo-bg); border: 1px solid var(--gd-line); border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gd-tl-img a,
.gd-tl-img img { width: 100%; height: 100%; object-fit: contain; }
.gd-tl-main { display: grid; gap: 1px; min-width: 0; }
.gd-tl-code { font-size: 11.5px; color: var(--gd-muted); font-family: var(--font-en); }
.gd-tl-main b { font-size: 14.5px; }
.gd-tl-main small { font-size: 12px; color: var(--gd-muted); }
.gd-el-pr { display: grid; text-align: right; }
.gd-el-pr b { font-size: 15px; font-family: var(--font-en); }
.gd-el-pr small { font-size: 11.5px; color: var(--gd-muted); }
.gd-el-qty input { width: 52px; font-size: 16px; }
.gd-el-qty .gd-step-btn { width: 44px; height: 44px; font-size: 16px; }
.gd-el-qty[hidden],
.gd-el-sub[hidden],
.gd-el-tot[hidden],
.gd .gd-el-lead[hidden] { display: none; }
.gd-el-sub { text-align: right; font-weight: 700; font-size: 15px; }
.gd-ap[hidden] { display: none; }
.gd .gd-ap__h { margin: 18px 0 4px; font-size: 15px; }
.gd .gd-ap__lead { margin: 0 0 4px; font-size: 13.5px; }
.gd .gd-ap__warn { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--gd-accent); }
.gd-ap__list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--gd-line); border-radius: var(--gd-r); background: var(--gd-surface); }
.gd-ap__list li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 120px auto 92px; align-items: center; gap: 8px 16px; padding: 9px 36px 9px 14px; border-bottom: 1px solid var(--gd-line); }
.gd-ap__list li:last-child { border-bottom: 0; }
.gd-ap__nm { display: grid; gap: 2px; min-width: 0; }
.gd-ap__nm b { font-size: 14.5px; }
.gd-ap__nm small { font-size: 12px; color: var(--gd-muted); }
.gd-ap__w { text-align: right; font-weight: 700; font-size: 14px; }
.gd-ap__w small { font-weight: 400; font-size: 11.5px; color: var(--gd-muted); }
.gd-ap__sub { text-align: right; font-weight: 700; font-size: 15px; }
.gd-ap__list input { font: inherit; font-size: 16px; padding: 4px 6px; border: 1px solid var(--gd-line); border-radius: 4px; background: var(--gd-surface); color: var(--gd-fg); }
.gd-ap__list .gd-ap__q { width: 52px; }
.gd-ap__list .gd-step-btn { width: 44px; height: 44px; font-size: 16px; }
.gd-ap__list .gd-ap__txt { max-width: 220px; font-size: 16px; }
.gd-ap__list .gd-ap__wi { width: 72px; text-align: right; margin-right: 2px; }
/* 見た目は 28px の丸。押せる範囲は ::before で 44px に広げる（design.md のタッチターゲット） */
.gd-ap__del::before { content: ""; position: absolute; inset: -8px; }
.gd-ap__del { position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--gd-surface-2); color: var(--gd-muted); font: inherit; font-size: 14px; line-height: 1; cursor: pointer; }
.gd-ap__del:hover { background: var(--gd-accent); color: var(--gd-on-accent); }
.gd-ap__add { margin: 8px 0 0; min-height: 44px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--gd-link); background: var(--gd-surface); border: 1px dashed var(--gd-line); border-radius: var(--gd-r); padding: 8px 16px; cursor: pointer; }
.gd-ap__add:hover { border-color: var(--gd-gold); }
.gd .gd-ap__note { font-size: 12px; color: var(--gd-muted); margin: 6px 0 0; }
.gd-el-tot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin: 12px 0 0; padding: 12px 16px; background: var(--gd-gold-soft); border: 1px solid var(--gd-gold); border-radius: var(--gd-r); }
.gd-el-tot div { display: grid; }
.gd-el-tot span { font-size: 12.5px; font-weight: 700; }
.gd-el-tot b { font-size: 22px; color: var(--gd-accent); }
.gd-el-tot small { font-size: 11.5px; color: var(--gd-muted); }
.gd-el-go { margin-left: auto; font-size: 13px; font-weight: 700; }
.gd .gd-pw-link { font-size: 13.5px; margin: 12px 0 0; }

/* =========================================================
   レンタル
   ========================================================= */
.gd-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.gd-filters[hidden] { display: none; }
.gd-search { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid var(--gd-line); border-radius: var(--gd-r); background: var(--gd-surface); color: var(--gd-fg); min-height: 44px; }
.gd-cat[hidden],
.gd-cat-part[hidden] { display: none; }
.gd-cat-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 36px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--gd-line); }
.gd-cat-head__t { display: grid; gap: 4px; min-width: 0; }
.gd .gd-cat-head h3 { margin: 0; font-size: 20px; padding: 2px 0 2px 14px; border-left: 5px solid var(--gd-gold); }
.gd-cat-head__note { font-size: 12.5px; color: var(--gd-muted); }
.gd-cat-head__apps { display: flex; gap: 10px; flex: 0 1 auto; max-width: 100%; min-width: 0; }
.gd-cat-head__apps .gd-app { margin: 0; padding: 8px 12px; font-size: 13px; min-width: 0; }
.gd-cat-merged { margin-top: 12px; }
.gd .gd-h4-first { margin-top: 4px; }
.gd .gd-empty { color: var(--gd-muted); padding: 20px 0; }
.gd-empty[hidden] { display: none; }

/* =========================================================
   規定（アコーディオン）
   ========================================================= */
.gd-acc { background: var(--gd-surface); border: 1px solid var(--gd-line); border-radius: var(--gd-r); margin: 0 0 10px; }
.gd-acc summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; }
.gd-acc summary::-webkit-details-marker { display: none; }
.gd-acc summary::after { content: "＋"; color: var(--gd-muted); font-weight: 400; }
.gd-acc[open] summary::after { content: "－"; }
.gd-acc__t { flex: 1 1 auto; min-width: 0; }
.gd-acc__body > .gd-app { margin: 0 0 14px; font-size: 13px; padding: 8px 12px; }
.gd-acc__body { padding: 0 16px 16px; font-size: 14px; }

/* =========================================================
   週間スケジュール（位置と高さは /css/guide-gen.css のクラス）
   ========================================================= */
.gd-wk-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--gd-muted); margin: 0 0 10px; }
.gd-wk-legend i { display: inline-block; width: 14px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.gd-wk-scroll { overflow-x: auto; border: 1px solid var(--gd-line); border-radius: var(--gd-r); background: var(--gd-surface); }
.gd-wk { display: grid; grid-template-columns: 52px repeat(5, minmax(112px, 1fr)); min-width: 620px; padding-bottom: 12px; }
.gd-wk-h { height: 92px; padding: 8px; border-bottom: 1px solid var(--gd-line); font-size: 12px; line-height: 1.4; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; }
.gd-wk-h__ph { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--gd-gold-text); }
.gd-wk-h b { font-family: var(--font-en); font-size: 18px; }
.gd-wk-h small { font-size: 11px; color: var(--gd-muted); }
.gd-wk-h small.gd-wk-pwt { color: var(--gd-accent); font-weight: 700; }
.gd-wk-h--open { background: var(--gd-gold-soft); }
.gd-wk-col { border-left: 1px solid var(--gd-line); min-width: 0; }
.gd-wk-body,
.gd-wk-axis { position: relative; margin-top: 10px; }
/* 1 時間ごとの罫線。<i> を並べる代わりに背景で描く（位置指定の style を使わないため） */
.gd-wk-body { background-image: linear-gradient(to bottom, var(--gd-line) 1px, transparent 1px); background-repeat: repeat-y; }
.gd-wk-axis span { position: absolute; right: 6px; transform: translateY(-50%); font-family: var(--font-en); font-size: 11px; color: var(--gd-muted); }
.gd-wk-b { position: absolute; left: 4px; right: 20px; border-radius: 4px; padding: 3px 6px; font-size: 12px; line-height: 1.35; overflow: hidden; color: var(--gd-fg); }
.gd-wk-b b { display: block; font-family: var(--font-en); font-size: 11px; }
.gd-wk-b small { display: block; font-size: 10.5px; color: var(--gd-muted); }
.gd-wk-b--thin { padding: 0 6px; white-space: nowrap; font-size: 11px; line-height: 16px; }
.gd-wk-b--thin b { display: inline; margin-right: 4px; }
.gd-wk-b--setup { background: var(--gd-gold-soft); box-shadow: inset 3px 0 0 var(--gd-gold); }
.gd-wk-b--over { background: repeating-linear-gradient(45deg, var(--gd-gold-soft) 0 6px, var(--gd-surface) 6px 12px); box-shadow: inset 3px 0 0 var(--gd-gold); }
.gd-wk-b--prep { background: var(--gd-surface-2); box-shadow: inset 3px 0 0 var(--gd-muted); }
.gd-wk-b--open { background: var(--gd-gold); color: var(--gd-kon); font-weight: 700; }
.gd-wk-b--open small { color: var(--gd-kon); }
.gd-wk-b--exit { background: var(--gd-accent-soft); }
.gd-wk-b--carry,
.gd-wk-b--out { background: var(--gd-tag-bg); box-shadow: inset 3px 0 0 var(--gd-purple); }
.gd-wk-legend i.gd-wk-b { position: static; }
.gd-wk-pw { position: absolute; right: 6px; width: 10px; border-radius: 5px; background: var(--gd-accent-soft); border: 2px solid var(--gd-accent); z-index: 1; }
.gd-wk-legend i.gd-wk-pw-l { background: var(--gd-accent-soft); border: 2px solid var(--gd-accent); border-radius: 6px; width: 10px; }
.gd-wk-m { position: absolute; left: 0; right: 0; border-top: 2px solid var(--gd-accent); z-index: 2; }
.gd-wk-m span { position: absolute; top: 3px; left: 6px; right: 6px; background: var(--gd-accent); color: var(--gd-on-accent); font-size: 10.5px; line-height: 1.4; padding: 2px 6px; border-radius: 3px; }

/* =========================================================
   搬入出（会場サービス）
   ========================================================= */
.gd .gd-sh-h { font-size: 15px; margin: 22px 0 8px; padding-left: 10px; border-left: 4px solid var(--gd-gold); }
.gd .gd-sh-sub { font-size: 13px; color: var(--gd-muted); margin: 0 0 8px; }
.gd-sh-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gd-sh-way { background: var(--gd-surface); border: 1px solid var(--gd-line); border-radius: var(--gd-r); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gd .gd-sh-way p { margin: 0; font-size: 13.5px; }
.gd-sh-way__h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 8px; border-bottom: 1px solid var(--gd-line); padding-bottom: 6px; }
.gd-sh-way__h b { font-size: 16px; }
.gd-sh-way__h span { font-size: 12px; color: var(--gd-muted); }
.gd-sh-route { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; }
.gd-sh-route span { background: var(--gd-surface-2); border-radius: 4px; padding: 3px 8px; font-weight: 700; display: grid; }
.gd-sh-route small { font-weight: 400; font-size: 11px; color: var(--gd-muted); }
.gd-sh-route i { font-style: normal; color: var(--gd-gold-text); font-weight: 700; }
.gd .gd-sh-way__fee { margin-top: auto; font-size: 12.5px; font-weight: 700; color: var(--gd-purple); }
.gd-sh-flow { list-style: none; counter-reset: gd-sf; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gd-sh-flow li { counter-increment: gd-sf; background: var(--gd-surface); border: 1px solid var(--gd-line); border-radius: var(--gd-r); padding: 12px 14px; display: grid; align-content: start; gap: 4px; font-size: 13px; min-width: 0; }
.gd-sh-flow li::before { content: counter(gd-sf); width: 24px; height: 24px; border-radius: 50%; background: var(--gd-sel); color: var(--gd-on-accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.gd-sh-flow b { font-size: 14.5px; }
.gd-sh-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 10px; font-size: 13.5px; font-weight: 700; }
.gd-sh-pick[hidden],
.gd-sh-sizes[hidden] { display: none; }
.gd-sh-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }
.gd-sh-sz { background: var(--gd-surface); border: 1px solid var(--gd-line); border-radius: var(--gd-r); padding: 8px 10px; display: grid; gap: 1px; text-align: center; }
.gd-sh-sz span { font-size: 12px; color: var(--gd-muted); }
.gd-sh-sz b { font-size: 16px; }
.gd-sh-all { margin-top: 10px; }
.gd-sh-tbl { font-size: 13px; width: 100%; }
.gd-sh-tbl th,
.gd-sh-tbl td { white-space: nowrap; }
.gd-sh-tbl .is-on { background: var(--gd-gold-soft); font-weight: 700; }

/* =========================================================
   お問い合わせ
   ========================================================= */
.gd-contact-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.gd-contact-cta > div { background: var(--gd-hero-bg); color: var(--gd-on-dark); border-radius: var(--gd-r); padding: 18px 20px; min-width: 0; }
.gd-contact-cta__k { font-size: 12px; color: var(--gd-gold); letter-spacing: 0.1em; }
.gd .gd-contact-cta__v { display: block; font-family: var(--font-en); font-size: 22px; font-weight: 700; word-break: break-all; user-select: all; color: var(--gd-on-dark); text-decoration: none; }
.gd-contact-cta__s { font-size: 12px; color: var(--gd-hero-muted); }
.gd .gd-contact-cta__v.gd-copy-addr { display: inline-block; margin: 4px 0; padding: 2px 34px 2px 10px; background: var(--gd-hero-chip); }
.gd .gd-contact-cta__v.gd-copy-addr:hover { background: var(--gd-hero-chip-strong); }
.gd-contact-cta__v.gd-copy-addr::after { right: 12px; border-color: var(--gd-hero-muted); box-shadow: -3px 3px 0 -1.5px var(--gd-hero-bg), -3px 3px 0 0 var(--gd-hero-muted); }

/* 申請ガイドから詳細へ移ったときの「申請ガイドに戻る」 */
.gd-back-guide { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40; min-height: 44px; font: inherit; font-size: 14px; font-weight: 700; background: var(--gd-sel); color: var(--gd-on-accent); border: 0; border-radius: 999px; padding: 11px 22px; box-shadow: 0 4px 16px var(--gd-float-shadow); cursor: pointer; white-space: nowrap; }
.gd-back-guide[hidden] { display: none; }
.gd-back-guide:hover { filter: brightness(1.15); }
/* スマホ幅では画面下に電話・問い合わせの帯（.sticky-cta）が出るので、その上に置く */
@media (max-width: 840px) { .gd-back-guide { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

/* =========================================================
   よくある質問
   ========================================================= */
.gd-faq-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.gd-faq-cats[hidden],
.gd-faq-g[hidden] { display: none; }
.gd-faq-cats button { font: inherit; font-size: 13px; font-weight: 700; min-height: 44px; border: 1px solid var(--gd-line); background: var(--gd-surface); color: var(--gd-muted); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.gd-faq-cats button[aria-pressed="true"] { background: var(--gd-sel); border-color: var(--gd-sel); color: var(--gd-on-accent); }
.gd-faq-g { margin: 0 0 18px; }
.gd .gd-faq-g__h { font-size: 15px; margin: 0 0 8px; padding-left: 10px; border-left: 4px solid var(--gd-gold); }
.gd-faq { background: var(--gd-surface); border: 1px solid var(--gd-line); border-radius: var(--gd-r); margin: 0 0 6px; }
.gd-faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 44px; padding: 8px 14px; font-weight: 700; font-size: 14.5px; }
.gd-faq summary::-webkit-details-marker { display: none; }
.gd-faq summary::after { content: "＋"; color: var(--gd-muted); font-weight: 400; }
.gd-faq[open] summary::after { content: "－"; }
.gd-faq__mk { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gd-sel); color: var(--gd-on-accent); font-size: 12.5px; font-weight: 700; }
.gd-faq__mk--a { background: var(--gd-accent); }
.gd-faq__a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 0 14px 13px; font-size: 14px; line-height: 1.75; }
.gd .gd-faq__a p { margin: 0 0 8px; }
.gd .gd-faq__a p:last-child { margin-bottom: 0; }
.gd-faq__dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0 0 8px; font-size: 13.5px; }
.gd-faq__dl dt { color: var(--gd-muted); }
.gd-faq__dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
/* タブ別表示のときだけ、各節の最下部に関係する質問を出す（全体表示では「よくある質問」の節と重なるので隠す） */
.gd-faq-inline { margin: 36px 0 0; padding: 16px 18px 10px; background: var(--gd-surface-2); border-radius: var(--gd-r); }
.gd:not(.is-paged) .gd-faq-inline { display: none; }
.gd .gd-faq-inline__h { font-size: 15px; margin: 0 0 10px; }
.gd-faq-more { display: inline-block; margin: 6px 0; font-size: 13px; font-weight: 700; }

/* =========================================================
   展示会の一覧（/guide/）
   ========================================================= */
.gd-ev-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.gd a.gd-ev-card { display: grid; gap: 8px; height: 100%; background: var(--gd-surface); border: 1px solid var(--gd-line); border-left: 4px solid var(--gd-gold); border-radius: var(--gd-r); padding: 18px 20px; color: var(--gd-fg); text-decoration: none; transition: border-color 0.15s; }
.gd a.gd-ev-card:hover { border-color: var(--gd-gold); }
.gd-ev-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.gd-ev-card__label { font-family: var(--font-en); font-size: 13px; font-weight: 700; color: var(--gd-muted); }
.gd-ev-card__title { font-size: 19px; font-weight: 700; line-height: 1.45; }
.gd-ev-card__meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; font-size: 13.5px; }
.gd-ev-card__meta dt { color: var(--gd-muted); }
.gd-ev-card__go { font-size: 13px; font-weight: 700; color: var(--gd-link); }
.gd-ev-status { justify-self: start; font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 999px; background: var(--gd-surface-2); color: var(--gd-muted); }
.gd-ev-status--open { background: var(--gd-accent); color: var(--gd-on-accent); }

/* =========================================================
   画像の拡大表示（<dialog>）
   ========================================================= */
.gd-lb { border: 0; padding: 16px; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.gd-lb::backdrop { background: var(--gd-overlay); }
.gd-lb[open] { display: flex; align-items: center; justify-content: center; }
.gd-lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 100%; max-height: 100%; }
.gd-lb__fig img { max-height: calc(100vh - 120px); max-width: 100%; width: auto; border-radius: 6px; background: var(--gd-photo-bg); }
.gd-lb__fig figcaption { color: var(--gd-on-dark); font-size: 13px; }
.gd-lb__close,
.gd-lb__nav { position: absolute; border: 0; border-radius: 999px; cursor: pointer; font-family: inherit; background: var(--gd-photo-bg); color: var(--gd-kon); min-height: 44px; min-width: 44px; }
.gd-lb__close { top: 12px; right: 12px; font-size: 14px; padding: 6px 16px; }
.gd-lb__nav { top: 50%; transform: translateY(-50%); font-size: 28px; line-height: 1; padding: 6px 14px; }
.gd-lb__nav--prev { left: 12px; }
.gd-lb__nav--next { right: 12px; }
.gd-lb__nav[hidden] { display: none; }

/* =========================================================
   2027.02 幕張から足した部品（データに項目がある展示会だけに出る）
   ========================================================= */
/* パッケージ装飾に単独の申請が無いことの案内 */
.gd .gd-form-note { font-size: 13px; background: var(--gd-surface-2); border-radius: var(--gd-r); padding: 8px 12px; margin: 0 0 14px; }

/* 推奨の申請の見出し（回線）。帯の色を反転して目立たせる */
.gd-h3row--rec { background: var(--gd-purple); color: var(--gd-on-rec); border: 0; border-radius: var(--gd-r); padding: 12px 18px; }
.gd-h3row--rec::after { display: none; }
.gd.is-js .gd-h3row--rec .gd-coll:hover { color: var(--gd-on-rec); }
.gd-h3row--rec h3 .gd-pill--rec { background: var(--gd-on-rec); color: var(--gd-rec-pill-text); }
.gd-h3row--rec .gd-coll__chev { background: var(--gd-rec-chev-bg); }
.gd-h3row--rec .gd-coll__chev::before { border-color: var(--gd-on-rec); }
.gd-h3row--rec .gd-app { color: var(--gd-fg); }
.gd-h3row--rec .gd-app .gd-pill--rec { background: var(--gd-on-rec); color: var(--gd-rec-pill-text); border: 1px solid var(--gd-muted); }
.gd-net-label { white-space: nowrap; }
.gd-net-sub { display: block; font-size: 12.5px; color: var(--gd-muted); font-weight: 400; }
.gd .gd-sh-note { margin: -8px 0 12px; }
.gd-notes--tight { margin-top: -6px; }

/* 申請ガイド：回線の問いの注意 */
.gd .gd-g-warn { margin: 10px 0 0; font-size: 13px; background: var(--gd-accent-soft); border-radius: var(--gd-r); padding: 8px 12px; }
/* 薄いピンクの上のピンク文字は 4.46:1 で AA に届かないので、ラベルは地の色を反転する */
.gd-g-warn b { background: var(--gd-accent); color: var(--gd-on-accent); border-radius: 3px; padding: 0 6px; margin-right: 8px; }

/* 回線の範囲の図（電気工事の図の .gd-ef-* に足す分） */
.gd-elec-fig + .gd-plain { margin-top: 14px; }
.gd-nf-globe { fill: none; stroke: var(--gd-gold); stroke-width: 2.5; }
.gd-nf-arc { fill: none; stroke: var(--gd-purple); stroke-width: 3; stroke-linecap: round; }
.gd-nf-opt { fill: none; stroke: var(--gd-muted); stroke-width: 3; stroke-dasharray: 6 6; }
.gd-nf-solid { stroke-dasharray: none; }
.gd-nf-opt-t { fill: var(--gd-fg); font-weight: 700; }
.gd-nf-ban { fill: none; stroke: var(--gd-accent); stroke-width: 3; }
.gd-nf-ban-w { fill: none; stroke: var(--gd-fg); stroke-width: 3; stroke-linecap: round; }
.gd-nf-ban-dot { fill: var(--gd-fg); }
.gd-nf-ban-t { fill: var(--gd-accent); font-weight: 700; }
.gd-nf-plug { stroke: var(--gd-fg); stroke-width: 2.5; stroke-linecap: round; }
.gd-nf-cord { fill: none; stroke: var(--gd-fg); stroke-width: 2.5; }
.gd-nf-price { font-size: 13px; font-weight: 400; }

/* 入稿データ作成用のテンプレート・設置希望位置図面のフォーマット */
.gd a.gd-btn-line { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--gd-accent); background: transparent; border: 1.5px solid var(--gd-accent); font-weight: 700; font-size: 14px; text-decoration: none; padding: 8px 16px; border-radius: 999px; }
.gd-btn-line::after { content: "↗"; font-size: 13px; }
.gd a.gd-btn-line:hover { background: var(--gd-accent-soft); }
.gd a.gd-btn-book--sm { font-size: 13px; padding: 5px 14px; }
.gd-tpl,
.gd-map { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 26px; align-items: start; background: var(--gd-surface); border: 1px solid var(--gd-line); border-left: 3px solid var(--gd-gold); border-radius: var(--gd-r); padding: 16px 18px; margin: 4px 0 18px; }
.gd-map { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); scroll-margin-top: calc(var(--gd-tabs-h) + 12px); }
.gd-tpl__txt,
.gd-tpl__fig,
.gd-map__txt,
.gd-map__side { min-width: 0; }
.gd .gd-tpl h4,
.gd .gd-map h4 { margin: 0 0 6px; font-size: 15px; }
.gd .gd-tpl p,
.gd .gd-map p { margin: 0 0 8px; font-size: 13.5px; }
.gd .gd-tpl p { color: var(--gd-muted); }
.gd-tpl__rules { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.gd-tpl__rules li { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: baseline; }
.gd-tpl__ln { display: inline-block; width: 16px; height: 0; border-top: 3px solid; transform: translateY(-4px); }
.gd-tpl__ln--r { border-top-color: var(--gd-tpl-red); }
.gd-tpl__ln--g { border-top-color: var(--gd-tpl-green); }
.gd-tpl__ln--b { border-top-color: var(--gd-tpl-blue); }
.gd-tpl__ln--k { border-top-color: var(--gd-gold); }
.gd-tpl__dl { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-tpl__sets { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.gd-tpl__sets li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; border: 1px solid var(--gd-line); border-radius: var(--gd-r); padding: 8px 12px; background: var(--gd-surface-2); }
.gd-tpl__set-n { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; font-size: 14px; }
.gd-tpl__set-n span { font-size: 12.5px; color: var(--gd-muted); }
.gd-tpl__fig,
.gd-map__fig { margin: 0; }
.gd-tpl__fig img,
.gd-map__fig img { width: 100%; height: auto; border: 1px solid var(--gd-line); border-radius: 4px; background: var(--gd-photo-bg); }
.gd-tpl__fig figcaption,
.gd-map__fig figcaption { font-size: 12px; color: var(--gd-muted); margin-top: 4px; }
.gd-map ol { margin: 0 0 8px; padding-left: 1.4em; font-size: 13.5px; list-style: decimal; }
.gd-map ol li { margin: 2px 0; }
.gd-map__notes { margin: 0; }
.gd-map__side { display: grid; gap: 12px; }
.gd-map__dl { display: grid; gap: 6px; justify-items: center; text-align: center; }
.gd-map__dl small { font-size: 11.5px; color: var(--gd-muted); }
@media (max-width: 800px) {
  .gd-tpl,
  .gd-map { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 960px) {
  .gd-cal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .gd-hero__inner { grid-template-columns: 1fr; gap: 20px; padding-block: 20px 24px; }
  .gd-plan-detail { grid-template-columns: 1fr; padding: 16px; }
  .gd-viewer { order: -1; padding-bottom: 16px; border-bottom: 1px solid var(--gd-line); }
  .gd-feature { grid-template-columns: 1fr; }
  .gd-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gd-sec-head .gd-app,
  .gd-sh-apps,
  .gd-h3row .gd-app,
  .gd-cat-head__apps { flex-basis: 100%; }
  .gd-cat-head__apps--multi { flex-wrap: wrap; }
  .gd-cat-head__apps .gd-app { flex: 1 1 260px; }
}
@media (max-width: 760px) {
  .gd-cards--groups { grid-template-columns: 1fr; }
  .gd-elec-cards { grid-template-columns: 1fr; }
  .gd-ec dl { grid-template-columns: 1fr; gap: 2px; }
  .gd-ec dd { margin-bottom: 6px; }
}
@media (max-width: 640px) {
  .gd { font-size: 14.5px; }
  .gd-hero h1 { font-size: 28px; }
  .gd-hero h1.gd-hero__title { font-size: 23px; }
  .gd-next { padding: 14px 16px; }
  .gd-next__days.is-count { font-size: 36px; }
  .gd-cal-grid,
  .gd-contact-cta,
  .gd-voices,
  .gd-cards--three,
  .gd-gallery--two,
  .gd-g-grid--two { grid-template-columns: 1fr; }
  .gd-sec-head h2 { font-size: 21px; }
  .gd-sec { padding-block: 44px 8px; }
  .gd-sec-head { padding: 12px 14px; }
  .gd .gd-h3row h3,
  .gd .gd-cat-head h3 { font-size: 18px; }
  /* 推奨の見出しはダークで白文字が 3.65:1 なので、大きい文字（太字 18.67px 以上）のまま保つ */
  .gd .gd-h3row--rec h3 { font-size: 20px; }
  .gd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gd-card { padding: 10px; }
  .gd-card__nm { font-size: 13.5px; }
  .gd-card__pr { font-size: 17px; }
  .gd .gd-scroll-hint { display: block; }
  .gd-feature .gd-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
  .gd-feature .gd-card__thumb { grid-row: span 3; margin: 0; }
  .gd-card--group { grid-template-columns: 1fr; }
  .gd-card--group .gd-card__thumb { max-width: calc(50% - 4px); }
  .gd-vars li { grid-template-columns: minmax(0, 1fr) auto; }
  .gd-vars__c { grid-column: 1 / -1; }
  .gd-g-dual { grid-column: auto; }
  .gd a.gd-btn-book--big { width: 100%; justify-content: center; font-size: 16px; padding: 13px 16px; white-space: nowrap; }
  .gd-sh-ways,
  .gd-sh-flow { grid-template-columns: 1fr; }
  .gd-ap__list li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n w" "q s"; }
  .gd-ap__nm { grid-area: n; }
  .gd-ap__w { grid-area: w; }
  .gd-ap__list .gd-calc-in { grid-area: q; }
  .gd-ap__sub { grid-area: s; }
  .gd-faq__dl { grid-template-columns: 1fr; gap: 0; }
  .gd-faq__dl dd { margin-bottom: 6px; }
  .gd-g-switch:not(.gd-g-switch--yn) { display: grid; grid-auto-flow: row; }
  .gd-g-switch:not(.gd-g-switch--yn) button + button { border-left: 0; border-top: 1px solid var(--gd-line); }
  .gd-step { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .gd-step__no { width: 34px; height: 34px; font-size: 16px; }
  .gd-step:not(:last-child)::before { left: 16px; top: 34px; }
  .gd-step__body { padding-top: 2px; }
  .gd .gd-step__body h3 { font-size: 16px; }
  .gd-elist li { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "i m m" "i p p" "q q s"; gap: 6px 12px; }
  .gd-elist .gd-tl-img { grid-area: i; align-self: start; width: 72px; }
  .gd-elist .gd-tl-main { grid-area: m; }
  .gd-el-pr { grid-area: p; text-align: left; display: flex; gap: 6px; align-items: baseline; }
  .gd-el-qty { grid-area: q; }
  .gd-el-sub { grid-area: s; }
  .gd-el-go { margin-left: 0; }
  .gd-viewmode button { padding: 6px 9px; }
  /* 行ごとのカードに組み替える。見出しは data-l から出す */
  .gd table.gd-stack thead { display: none; }
  .gd table.gd-stack,
  .gd table.gd-stack tbody,
  .gd table.gd-stack tr,
  .gd table.gd-stack td { display: block; width: 100%; }
  .gd table.gd-stack tr { padding: 10px 12px; border-bottom: 1px solid var(--gd-line); }
  .gd table.gd-stack tr:last-child { border-bottom: 0; }
  .gd table.gd-stack tr[hidden] { display: none; }
  .gd table.gd-stack td { border: 0; padding: 2px 0; text-align: left; }
  .gd table.gd-stack td[data-l]::before { content: attr(data-l); display: inline-block; min-width: 6.5em; color: var(--gd-muted); font-size: 12px; margin-right: 6px; }
  .gd table.gd-stack td:first-child { font-weight: 700; font-size: 15px; padding-bottom: 4px; }
  .gd table.gd-stack td.gd-pimg { width: auto; padding: 0 0 6px; }
}

@media print {
  .header,
  .footer,
  .sticky-cta,
  .gd-tabs,
  .gd-filters,
  .gd-seg,
  .gd-switch-ev,
  .gd-esim,
  .gd-back-guide,
  .gd-end-spacer,
  .gd-faq-cats,
  .gd-g-switch { display: none !important; }
  .gd-sec,
  .gd-card,
  .gd-month,
  .gd-plan-detail { break-inside: avoid; }
}
