/* =========================================================
   月白浜公園（研修用の練習作品）
   値の出典は DESIGN.md（色・文字・余白・部品の状態）
   ========================================================= */

/* ---------- デザイントークン ---------- */
:root {
  /* 色（DESIGN.md 2. 色） */
  --c-primary: #173e59;      /* メインカラー・主ボタン */
  --c-text: #183537;         /* 見出し・本文 */
  --c-text-sub: #5f706e;     /* 補足 */
  --c-link: #357ba6;         /* リンク・アイコン */
  --c-bg: #ffffff;
  --c-bg-tint: #eef5f8;      /* 区切りの背景 */
  --c-border: #d7e1de;       /* 飾りの線 */
  --c-footer: #102d3c;
  --c-alert-mark: #e66f51;   /* 注意の印（文字には使わない） */
  --c-alert-text: #b5462b;   /* 注意の文字 */
  --c-focus: #357ba6;

  /* 余白（DESIGN.md 4. 余白：4/8/12/16/24/32/48/64/96） */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --gutter: 80px;            /* PCの左右余白 */
  --max-width: 1440px;       /* 1280 + 左右80 */
  --radius-card: 16px;
  --radius-pill: 999px;
  --header-h: 88px;
  --bottom-bar-h: 64px;

  --font: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 100%;           /* 16px。文字サイズ「大」で120%に */
}
:root[data-font="large"] { font-size: 120%; }

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-wrap: anywhere;
  line-break: strict;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--c-link); text-underline-offset: 3px; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

/* フォーカス（DESIGN.md 5. 部品：外側2pxに3pxの枠） */
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: 4px;
}
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  padding: var(--s-3) var(--s-5);
  background: var(--c-primary); color: #fff; font-weight: 700;
  border-radius: var(--radius-pill);
}
.skip-link:focus { top: var(--s-4); }

.sp-only { display: none; }
.nowrap { white-space: nowrap; }

/* ---------- 練習作品の表示 ---------- */
.practice-notice {
  padding: var(--s-2) var(--s-4);
  background: var(--c-bg-tint);
  color: var(--c-text);
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: center;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  max-width: var(--max-width);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  margin-right: auto;
  color: var(--c-text);
  text-decoration: none;
}
.logo img { width: 40px; height: 40px; }
.logo__text { font-size: 1.375rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }

.global-nav__list { display: flex; gap: var(--s-6); }
.global-nav a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  color: var(--c-text);
  font-size: 0.875rem; font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.global-nav a:hover { color: var(--c-primary); text-decoration: underline; }

/* 文字サイズ切替 */
.font-switch { display: flex; align-items: center; gap: var(--s-1); }
.font-switch__label { margin-right: var(--s-2); color: var(--c-text-sub); font-size: 0.875rem; white-space: nowrap; }
.font-switch__btn {
  min-width: 44px; min-height: 44px;
  padding: 0 var(--s-2);
  border: 1px solid var(--c-border);
  border-radius: var(--s-2);
  background: var(--c-bg);
  font-size: 0.875rem; font-weight: 700;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.font-switch__btn:hover { background: var(--c-bg-tint); }
.font-switch__btn[aria-pressed="true"] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* スマホ用メニュー */
.menu-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border: 0; border-radius: var(--s-3);
  background: var(--c-bg-tint);
  color: var(--c-primary);
  cursor: pointer;
}
.menu-btn__close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: inline; }

.drawer {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 12px 24px rgba(16, 45, 60, .12);
}
.drawer__list a {
  display: flex; align-items: center;
  min-height: 56px;
  padding: 0 var(--s-4);
  border-top: 1px solid var(--c-border);
  color: var(--c-text); font-weight: 700; text-decoration: none;
}
.drawer__list a::after { content: "→"; margin-left: auto; color: var(--c-link); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-3);
  min-height: 56px;
  padding: var(--s-4) var(--s-7);
  border-radius: var(--radius-pill);
  font-size: 1rem; font-weight: 700; line-height: 1.4;
  text-align: center;
  text-decoration: none;
  word-break: auto-phrase;
  transition: background-color .15s, box-shadow .15s;
}
.btn svg { flex: none; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: #10304a; box-shadow: 0 6px 16px rgba(16, 45, 60, .25); }
/* 暗い写真の上の主ボタン：紺の塗りでは背景に埋もれるため、白地に紺文字で反転させる */
.btn--on-dark { background: #fff; color: var(--c-primary); }
.btn--on-dark:hover { background: var(--c-bg-tint); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }

/* ---------- 最初の画面（ヒーロー） ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-6);
  min-height: 660px;
  padding: 140px var(--gutter) var(--s-7);
  color: #fff;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #1f4f6b; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* 文字を読みやすくする重ね色 */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16, 45, 60, .78) 0%, rgba(16, 45, 60, .45) 55%, rgba(16, 45, 60, .15) 100%);
}
.hero__photo-note {
  position: absolute; right: var(--s-4); top: var(--s-4); z-index: 1;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--s-2);
  background: rgba(255, 255, 255, .9);
  color: var(--c-text);
  font-size: 0.875rem; line-height: 1.6;
}

.hero__body {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--s-5);
  width: 100%;
  max-width: calc(var(--max-width) - var(--gutter) * 2);
  margin: 0 auto;
}
.badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-1) var(--s-4);
  border-radius: var(--radius-pill);
  background: #fff; color: var(--c-primary);
  font-size: 0.875rem; font-weight: 700; line-height: 1.8;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-primary); }
.hero__title { font-size: 3.5rem; line-height: 1.3; font-weight: 700; letter-spacing: .02em; }
.hero__lead { display: flex; align-items: center; gap: var(--s-2); font-size: 1rem; }
.hero__body .btn { margin-top: var(--s-2); }

/* 暗い背景の上のフォーカスは白（DESIGN.md 2. 色） */
.hero__body :focus-visible { outline-color: #fff; }

/* 今日の案内 */
.today {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-2) var(--s-6);
  width: 100%;
  max-width: calc(var(--max-width) - var(--gutter) * 2);
  margin: 0 auto;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--s-3);
  background: rgba(255, 255, 255, .96);
  color: var(--c-text);
  font-size: 0.875rem;
}
.today__title { font-size: 0.875rem; font-weight: 700; color: var(--c-primary); }
.today__list { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.today__item { display: inline-flex; align-items: center; gap: var(--s-2); }
.today__item a { color: var(--c-text); display: inline-flex; align-items: center; min-height: 44px; }
.today__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-text); flex: none; }
.today__item--alert { color: var(--c-alert-text); font-weight: 700; }
.today__item--alert .today__dot { background: var(--c-alert-mark); }

/* ---------- セクション共通 ---------- */
.section { padding: var(--s-9) var(--gutter); }
.section__inner { max-width: calc(var(--max-width) - var(--gutter) * 2); margin: 0 auto; }
.section__head { margin-bottom: var(--s-6); }
.section__title { font-size: 2.25rem; line-height: 1.4; font-weight: 700; word-break: auto-phrase; }

/* 英字の小見出し：飾り専用（DESIGN.md 3. 文字）。日本語の見出しと必ずセットで使う */
.eyebrow {
  display: flex; align-items: center; gap: var(--s-3);
  margin-bottom: var(--s-2);
  color: var(--c-primary);
  font-size: 0.75rem; font-weight: 700; letter-spacing: .04em;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }

/* ---------- リンクカード（3つの入口・目的から選ぶ で共通） ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.link-card {
  position: relative;
  display: flex; flex-direction: column; gap: var(--s-2);
  height: 100%;
  padding: var(--s-5);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  background: var(--c-bg);
  color: var(--c-text);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
/* 通常：枠線 #D7E1DE → マウス・フォーカス：枠を紺に（太さの変化は影で表現し、配置をずらさない） */
.link-card:hover { border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary), 0 6px 16px rgba(16, 45, 60, .1); }
.link-card:focus-visible { border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary); outline-offset: 3px; border-radius: var(--radius-card); }
.link-card__icon { color: var(--c-primary); margin-bottom: var(--s-2); }
.link-card__title { font-size: 1.375rem; line-height: 1.4; font-weight: 700; margin: 0; padding-right: var(--s-6); word-break: auto-phrase; }
.link-card__text { color: var(--c-text-sub); font-size: 0.875rem; line-height: 1.7; word-break: auto-phrase; }
.link-card__arrow { position: absolute; right: var(--s-5); top: var(--s-5); color: var(--c-link); transition: transform .15s; }
.link-card:hover .link-card__arrow { transform: translateX(4px); }

/* 3つの入口：アイコンを色付きの四角に入れ、カードを高めにする（Figma 案A） */
.link-card--gate { min-height: 200px; padding: var(--s-5) var(--s-5) var(--s-6); }
.link-card__chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: var(--s-4);
  border-radius: var(--s-3);
}
/* アイコンの色は飾り専用（DESIGN.md 2. 色） */
.link-card__chip--visit { background: #ecf3f7; color: var(--c-link); }
.link-card__chip--group { background: #fdf7ed; color: #e7a83c; }
.link-card__chip--event { background: #fdf1ef; color: var(--c-alert-mark); }
.link-card--gate .link-card__arrow { top: var(--s-6); }

/* ---------- アクセス・駐車場 ---------- */
.section--tint { background: var(--c-bg-tint); }

/* 左右分割（アクセス・イベントで共通）。PC：左に見出し・説明・ボタン、右にカード。
   HTMLの順番はスマホの並び（説明→カード→ボタン）に合わせている */
.split {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  grid-template-areas:
    "head aside"
    "text aside"
    "btn  aside";
  grid-template-rows: auto auto 1fr;
  column-gap: var(--s-8);
}
.split__head { grid-area: head; margin-bottom: var(--s-5); }
.split__text { grid-area: text; color: var(--c-text-sub); word-break: auto-phrase; }
.split__aside { grid-area: aside; }
.split__btn { grid-area: btn; align-self: start; justify-self: start; margin-top: var(--s-6); padding-left: var(--s-6); padding-right: var(--s-6); }

/* 情報カード（dl/dt/dd：項目名と値の組として、検索エンジンやAIにも伝わる形） */
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin: 0; }
.info-card {
  display: flex; flex-direction: column; gap: var(--s-1);
  min-height: 116px;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--c-border);
  border-radius: var(--s-3);
  background: var(--c-bg);
}
.info-card__label { color: var(--c-text-sub); font-size: 0.875rem; font-weight: 700; line-height: 1.6; }
.info-card__value { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.5; word-break: auto-phrase; }

/* ---------- 過ごし方モデルコース ---------- */
.course__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }

/* 【要確認】の札（DESIGN.md 2. 色：背景 #FFF1EC × 文字 #B5462B） */
.tag-check {
  display: inline-flex; align-items: center;
  padding: var(--s-1) var(--s-4);
  border-radius: var(--radius-pill);
  background: #fff1ec;
  color: var(--c-alert-text);
  font-size: 0.875rem; font-weight: 700; line-height: 1.6;
  white-space: nowrap;
}

/* PC：4枚を横につなげて並べ、番号の間を線で結ぶ */
.course {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0; padding: 0; list-style: none;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.course__step {
  position: relative;
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-5);
  background: var(--c-bg);
}
.course__step + .course__step { border-left: 1px solid var(--c-border); }
.course__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  margin-bottom: var(--s-2);
  border-radius: 50%;
  background: var(--c-primary); color: #fff;
  font-size: 0.875rem; font-weight: 700; line-height: 1;
}
.course__title { margin: 0; font-size: 1.375rem; line-height: 1.4; font-weight: 700; word-break: auto-phrase; }
.course__text { color: var(--c-text-sub); font-size: 0.875rem; line-height: 1.7; word-break: auto-phrase; }
.course__note { margin-top: var(--s-4); color: var(--c-text-sub); font-size: 0.875rem; word-break: auto-phrase; }

/* ---------- 今月のイベント ---------- */
.event__aside { display: flex; flex-direction: column; gap: var(--s-4); }

.event-cal {
  padding: var(--s-5);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  background: var(--c-bg);
}
.event-cal__title { margin: 0 0 var(--s-3); font-size: 1.125rem; line-height: 1.4; font-weight: 700; }
.event-cal__dates { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.event-cal__dates time {
  display: inline-flex; align-items: baseline; justify-content: center;
  min-width: 72px; padding: var(--s-2) var(--s-3);
  border-radius: var(--s-3);
  background: var(--c-bg-tint);
  color: var(--c-primary);
  font-size: 1.125rem; font-weight: 700; line-height: 1.4;
}
.event-cal__dow { font-size: 0.875rem; }
.event-cal__note { margin-top: var(--s-3); color: var(--c-text-sub); font-size: 0.875rem; }

/* 特別イベント：背景 #FFF7E7（DESIGN.md 2. 色） */
.event-special {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-5);
  padding: var(--s-5);
  border-radius: var(--radius-card);
  background: #fff7e7;
}
/* 本文が狭くなりすぎる幅では、ボタンを本文の下へ回り込ませる */
.event-special__body { flex: 1 1 280px; min-width: 0; }
.event-special__label { color: var(--c-alert-text); font-size: 0.75rem; font-weight: 700; letter-spacing: .04em; }
.event-special__title { margin: var(--s-1) 0; font-size: 1.375rem; line-height: 1.4; font-weight: 700; word-break: auto-phrase; }
.event-special__text { color: var(--c-text-sub); font-size: 0.875rem; line-height: 1.7; word-break: auto-phrase; }
.event-special__btn { flex: none; padding-left: var(--s-6); padding-right: var(--s-6); }

/* 副ボタン（外枠のみ。DESIGN.md 5. 部品） */
.btn--secondary { border: 2px solid var(--c-primary); background: var(--c-bg); color: var(--c-primary); }
.btn--secondary:hover { background: var(--c-bg-tint); }

/* ---------- 団体・イベント利用 ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.biz-card {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-6);
  border-radius: var(--radius-card);
  background: var(--c-bg);
}
.biz-card__head { display: flex; align-items: center; gap: var(--s-3); }
.biz-card__head .link-card__chip { margin: 0; flex: none; }
.biz-card__title { margin: 0; font-size: 1.375rem; line-height: 1.4; font-weight: 700; word-break: auto-phrase; }
.biz-card__lead { margin-top: var(--s-2); color: var(--c-primary); font-size: 2rem; line-height: 1.3; font-weight: 700; word-break: auto-phrase; }
.biz-card__text { color: var(--c-text-sub); word-break: auto-phrase; }

/* 条件の一覧（dl：項目名と値の組） */
.fact-list { margin: var(--s-2) 0 var(--s-5); border-top: 1px solid var(--c-border); }
.fact-list > div {
  display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--c-border);
}
.fact-list dt { color: var(--c-text-sub); font-size: 0.875rem; font-weight: 700; line-height: 1.8; }
.fact-list dd { margin: 0; font-weight: 700; word-break: auto-phrase; }

/* ボタンはカードの下端にそろえる */
.biz-card__btn { display: flex; width: 100%; margin-top: auto; }

/* ---------- よくある質問・お問い合わせ ---------- */
.faq-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 410px); gap: var(--s-8); align-items: start; }

.faq__list { display: flex; flex-direction: column; gap: var(--s-3); }
.faq__item {
  border: 1px solid var(--c-border);
  border-radius: var(--s-3);
  background: var(--c-bg);
}
.faq__q {
  position: relative;
  display: flex; align-items: center;
  min-height: 56px;
  padding: var(--s-3) var(--s-8) var(--s-3) var(--s-5);
  font-weight: 700; line-height: 1.6;
  cursor: pointer;
  list-style: none;
  word-break: auto-phrase;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::before { content: "Q."; flex: none; margin-right: var(--s-2); color: var(--c-primary); }
/* 開閉の印：閉じているとき「＋」、開くと縦線を消して「−」 */
.faq__q::after {
  content: ""; position: absolute; right: var(--s-5); top: 50%;
  width: 16px; height: 16px; margin-top: -8px;
  background:
    linear-gradient(var(--c-primary), var(--c-primary)) center / 16px 2px no-repeat,
    linear-gradient(var(--c-primary), var(--c-primary)) center / 2px 16px no-repeat;
  transition: background-size .2s;
}
.faq__item[open] .faq__q::after { background-size: 16px 2px, 2px 0; }
.faq__q:hover { background: var(--c-bg-tint); border-radius: var(--s-3); }
.faq__q:focus-visible { outline-offset: -3px; border-radius: var(--s-3); }
.faq__a { padding: 0 var(--s-5) var(--s-4) calc(var(--s-5) + 1.6em); color: var(--c-text-sub); word-break: auto-phrase; }
.faq__a::before { content: "A. "; color: var(--c-text); font-weight: 700; margin-left: -1.6em; }
.faq__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s-3); font-weight: 700; }

.contact {
  padding: var(--s-6);
  border-radius: var(--radius-card);
  background: var(--c-bg-tint);
}
.contact__title { margin: 0 0 var(--s-4); font-size: 1.5rem; line-height: 1.4; font-weight: 700; }
.contact__facts { margin: 0 0 var(--s-3); }
.contact__facts > div { grid-template-columns: 6em minmax(0, 1fr); }
.contact__note { color: var(--c-text-sub); font-size: 0.875rem; word-break: auto-phrase; }
.contact__btn { display: flex; width: 100%; margin-top: var(--s-5); }

/* ---------- フッター（背景 #102D3C × 文字 #BCC5C9：8.2:1） ---------- */
.site-footer {
  padding: var(--s-8) var(--gutter) var(--s-6);
  background: var(--c-footer);
  color: #bcc5c9;
  font-size: 0.875rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--s-7);
  max-width: calc(var(--max-width) - var(--gutter) * 2);
  margin: 0 auto;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
/* 暗い背景の上のフォーカスは白（DESIGN.md 2. 色） */
.site-footer :focus-visible { outline-color: #fff; }

.site-footer__brand { display: flex; flex-direction: column; gap: var(--s-1); }
.site-footer__logo {
  display: inline-flex; align-items: center; align-self: flex-start;
  min-height: 44px; margin-bottom: var(--s-2);
  font-size: 1.375rem; font-weight: 700; letter-spacing: .02em;
}

.site-footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.site-footer__heading { margin: 0 0 var(--s-2); color: #fff; font-size: 0.875rem; font-weight: 700; }
.site-footer__col a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  word-break: auto-phrase;
}

.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-5);
  max-width: calc(var(--max-width) - var(--gutter) * 2);
  margin: var(--s-7) auto 0;
  padding-top: var(--s-5);
  border-top: 1px solid rgba(188, 197, 201, .3);
  word-break: auto-phrase;
}
.site-footer__bottom small { font-size: inherit; }

/* ---------- スマホ下部の固定バー ---------- */
.bottom-bar { display: none; }

/* ---------- 準備中ページ ---------- */
.placeholder {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--s-9) var(--s-4);
  text-align: center;
}
.placeholder h1 { font-size: 2.25rem; line-height: 1.4; margin-bottom: var(--s-5); }
.placeholder p { color: var(--c-text-sub); margin-bottom: var(--s-6); word-break: auto-phrase; }
.placeholder .placeholder__badge {
  display: inline-block;
  margin-bottom: var(--s-4);
  padding: var(--s-1) var(--s-4);
  border-radius: var(--radius-pill);
  background: var(--c-bg-tint);
  color: var(--c-primary);
  font-size: 0.875rem; font-weight: 700;
}

/* ---------- 今いるページ（aria-current="page"）の印 ---------- */
.global-nav a[aria-current="page"] { color: var(--c-primary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.drawer__list a[aria-current="page"] { background: var(--c-bg-tint); color: var(--c-primary); }
.site-footer a[aria-current="page"] { text-decoration: underline; }

/* =========================================================
   タブレット（ナビが詰まる幅）
   ========================================================= */
@media (max-width: 1200px) {
  :root { --gutter: 32px; }
  .site-header__inner { gap: var(--s-5); }
  .global-nav__list { gap: var(--s-5); }
  .font-switch__label { display: none; }
}

/* =========================================================
   スマホ（DESIGN.md 6. スマホの並び順）
   ========================================================= */
@media (max-width: 960px) {
  :root { --gutter: 16px; --header-h: 64px; }

  /* 下部バーの高さ分の余白は、フッターの中に持たせる（ページ最下部に白い帯を出さない） */
  /* Tabで移動したとき、フォーカスした部品が下部バーに隠れないようにする */
  html { scroll-padding-bottom: calc(var(--bottom-bar-h) + var(--s-4)); }
  .sp-only { display: inline; }

  .site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo menu"
      "nav  font";
    gap: 0;
    padding: 0;
  }
  .logo { grid-area: logo; min-height: var(--header-h); padding-left: var(--gutter); }
  .logo img { width: 36px; height: 36px; }
  .logo__text { font-size: 1.125rem; }
  .menu-btn { grid-area: menu; display: inline-flex; margin-right: var(--gutter); }

  /* 横並びのナビ：はみ出した分はナビの中だけで横スクロール */
  .global-nav {
    grid-area: nav;
    min-width: 0;
    overflow-x: auto;
    background: var(--c-bg-tint);
    scrollbar-width: none;
    /* 右端を薄くして、横にスクロールできることを伝える */
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  }
  .global-nav::-webkit-scrollbar { display: none; }
  .global-nav__list { gap: 0; padding: 0 var(--s-6) 0 var(--s-2); width: max-content; }
  .global-nav a { padding: 0 var(--s-3); min-height: 48px; }

  .font-switch { grid-area: font; background: var(--c-bg-tint); padding-right: var(--gutter); }
  .font-switch__btn { min-width: 44px; }

  /* 主ボタンを最初の画面に収めるため、画面の高さに合わせて縮める */
  .hero {
    min-height: min(600px, calc(100svh - 176px));
    justify-content: flex-end;
    padding: var(--s-7) var(--gutter) var(--s-5);
    gap: var(--s-5);
  }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(16, 45, 60, .15) 0%, rgba(16, 45, 60, .55) 45%, rgba(16, 45, 60, .85) 100%);
  }
  .hero__body { gap: var(--s-4); }
  .hero__photo-note { top: var(--s-2); right: var(--s-2); padding: 0 var(--s-2); }
  /* 「海と歴史を歩く、」（8文字）が1行に収まる大きさを上限にする。
     狭い画面で文字「大」にしたとき、見出しが3行に崩れて主ボタンが押し下げられるのを防ぐ */
  .hero__title { font-size: min(2.125rem, calc((100vw - var(--gutter) * 2) / 8.4)); line-height: 1.35; }
  .hero__lead { font-size: 0.9375rem; }
  .hero__body .btn { width: 100%; padding: var(--s-4) var(--s-5); margin-top: 0; }

  .today { flex-direction: column; align-items: flex-start; gap: var(--s-1); padding: var(--s-3) var(--s-4); }
  .today__list { flex-direction: column; gap: 0; }
  .today__item { min-height: 32px; }

  .bottom-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: grid; grid-template-columns: repeat(3, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--c-bg);
    border-top: 1px solid var(--c-border);
    box-shadow: 0 -4px 16px rgba(16, 45, 60, .08);
  }
  .bottom-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px;
    min-height: var(--bottom-bar-h);
    color: var(--c-primary);
    font-size: 0.875rem; font-weight: 700; line-height: 1.3;
    text-decoration: none;
  }
  .bottom-bar a + a { border-left: 1px solid var(--c-border); }
  .bottom-bar a[aria-current="page"] { background: var(--c-bg-tint); box-shadow: inset 0 3px 0 var(--c-primary); }
  .bottom-bar :focus-visible { outline-offset: -4px; }

  .section { padding: var(--s-8) var(--gutter); }
  .section__head { margin-bottom: var(--s-5); }
  .section__title { font-size: 1.75rem; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  /* スマホだけ横長のカード：アイコンを左、文字を右、矢印を右端の中央に置き、縦の長さを抑える */
  .card-grid { gap: var(--s-3); }
  .link-card,
  .link-card--gate {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: var(--s-4);
    row-gap: 0;
    min-height: 0;
    padding: var(--s-4) var(--s-7) var(--s-4) var(--s-4);
  }
  @media (max-width: 359px) {
    .link-card, .link-card--gate { padding-right: var(--s-6); column-gap: var(--s-3); }
  }
  .link-card__icon,
  .link-card__chip { grid-row: 1 / 3; justify-self: center; margin: 0; }
  .link-card__title { padding-right: 0; align-self: end; }
  .link-card__text { align-self: start; }
  .link-card__arrow,
  .link-card--gate .link-card__arrow { right: var(--s-4); top: 50%; transform: translateY(-50%); }
  .link-card:hover .link-card__arrow { transform: translate(4px, -50%); }

  .split { display: block; }
  .split__text { margin-bottom: var(--s-5); }
  .info-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .info-card { min-height: 0; padding: var(--s-3) var(--s-4); }
  .split__btn { display: flex; width: 100%; margin-top: var(--s-5); }

  /* スマホ：縦の流れ（番号を左に置き、番号同士を線でつなぐ） */
  .course__head { flex-direction: column; align-items: flex-start; }
  .course { grid-template-columns: minmax(0, 1fr); border: 0; border-radius: 0; overflow: visible; }
  .course__step {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: var(--s-4); row-gap: 0;
    padding: 0 0 var(--s-5);
    background: transparent;
  }
  .course__step + .course__step { border-left: 0; }
  .course__num { grid-row: 1 / 3; align-self: start; margin: 0; }
  .course__step:not(:last-child)::before {
    content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px;
    width: 2px; background: var(--c-border);
  }

  .event-special { flex-direction: column; align-items: stretch; padding: var(--s-4); }
  .event-special__body { flex: none; }
  .event-special__btn { padding-left: var(--s-4); padding-right: var(--s-4); }
  .event-cal { padding: var(--s-4); }

  .biz-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .biz-card { padding: var(--s-5) var(--s-4); }
  .biz-card__lead { font-size: 1.75rem; }
  .fact-list > div { grid-template-columns: 6.5em minmax(0, 1fr); gap: var(--s-3); }
  .biz-card__btn { padding-left: var(--s-4); padding-right: var(--s-4); }
  /* 狭い画面・文字「大」では、項目名の下に値を置く */
  :root[data-font="large"] .fact-list > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  @media (max-width: 359px) { .fact-list > div { grid-template-columns: minmax(0, 1fr); gap: 0; } }

  .faq-contact { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .faq__q { padding-left: var(--s-4); padding-right: var(--s-7); }
  .faq__q::after { right: var(--s-4); }
  .faq__a { padding-left: calc(var(--s-4) + 1.6em); padding-right: var(--s-4); }
  .contact { padding: var(--s-5) var(--s-4); }
  .contact__btn { padding-left: var(--s-4); padding-right: var(--s-4); }

  /* フッター：1列にまとめ、単語の途中で改行しない（DESIGN.md 6. スマホの並び順 13） */
  .site-footer { padding: var(--s-7) var(--gutter) calc(var(--s-5) + var(--bottom-bar-h) + env(safe-area-inset-bottom)); }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .site-footer__nav { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .site-footer__col ul { display: flex; flex-wrap: wrap; column-gap: var(--s-5); }
  .site-footer__bottom { flex-direction: column; margin-top: var(--s-6); }

  .placeholder { padding: var(--s-8) var(--gutter); }
  .placeholder h1 { font-size: 1.75rem; }
}

/* 画面の低いスマホ（例：320×568）では、上の余白と行間を詰める */
@media (max-width: 960px) and (max-height: 700px) {
  .practice-notice { padding: var(--s-1) var(--s-4); line-height: 1.5; }
  .hero { padding-top: var(--s-7); gap: var(--s-4); }
  .hero__body { gap: var(--s-3); }
  .hero__title { line-height: 1.3; }
}

@media (min-width: 961px) {
  .drawer { display: none !important; }
}

/* 動きを減らす設定（DESIGN.md 7. 動きの用途） */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
