/* ==================================================================
   LQI 受講者向けページ 共通スタイル
   ------------------------------------------------------------------
   1. デザイントークン（色・余白・角丸など。見た目の調整はまずここ）
   2. ベース
   3. レイアウト（ヘッダー・ナビ・メイン・フッター）
   4. コンポーネント
   5. ユーティリティ
   ================================================================== */


/* ------------------------------------------------------------------
   1. デザイントークン
   ------------------------------------------------------------------ */
:root {
  /* ブランド */
  --c-primary: #2c3e8f;
  --c-primary-dark: #1f2c6b;
  --c-primary-light: #4b63c9;
  --c-primary-soft: #eef1fb;

  /* 文字・背景 */
  --c-text: #1f2430;
  --c-muted: #5b6475;
  --c-border: #e3e6ee;
  --c-bg: #f4f5f9;
  --c-surface: #ffffff;
  --c-surface-sub: #f7f8fb;

  /* 意味のある色 */
  --c-danger: #c62828;
  --c-danger-soft: #fdecec;
  --c-warn: #b45309;
  --c-warn-soft: #fff6e5;
  --c-info: #1d5fbf;
  --c-info-soft: #eaf2ff;
  --c-success: #1b7a4b;
  --c-success-soft: #e7f6ee;
  --c-tbd: #fff2a8;
  --c-tbd-badge: #f5c400;

  /* 形 */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(20, 30, 70, 0.05), 0 6px 20px rgba(20, 30, 70, 0.06);

  /* 文字 */
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;

  /* レイアウト */
  --container: 760px;
  --nav-height: 52px;
}


/* ------------------------------------------------------------------
   2. ベース
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px); /* 固定ナビに見出しが隠れないように */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--c-text);
  background: var(--c-bg);
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding-left: 1.4em; }
a { color: var(--c-primary); text-underline-offset: 3px; }
a:hover { color: var(--c-primary-dark); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #8aa0ff; outline-offset: 2px; border-radius: 4px; }


/* ------------------------------------------------------------------
   3. レイアウト
   ------------------------------------------------------------------ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* ヘッダー */
.site-header {
  padding: 36px 0 32px;
  color: #fff;
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 55%, var(--c-primary-light) 100%);
}
.site-header__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.85rem; opacity: 0.92; }
.site-header h1 { margin-top: 8px; font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.4; }
.site-header__lead { margin-top: 10px; font-size: 0.95rem; opacity: 0.92; }
.site-header .badge { background: rgba(255, 255, 255, 0.18); color: #fff; }
.site-header .is-tbd { background: none; }

/* ナビ（上部に固定） */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.site-nav__list {
  display: flex;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 8px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav__list::-webkit-scrollbar { display: none; }
.site-nav__link {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  padding: 0 12px;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.site-nav__link:hover { color: var(--c-primary); }
.site-nav__link[aria-current="page"] { color: var(--c-primary); border-bottom-color: var(--c-primary); }

/* メイン */
.page-main { display: grid; gap: 20px; padding-top: 24px; padding-bottom: 56px; }

/* フッター */
.site-footer {
  padding: 28px 0 72px;
  font-size: 0.85rem;
  color: var(--c-muted);
  text-align: center;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
}
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-bottom: 12px; padding: 0; list-style: none; }
.site-footer__copy { margin-top: 4px; }


/* ------------------------------------------------------------------
   4. コンポーネント
   ------------------------------------------------------------------ */

/* --- カード（各セクション） --- */
.card {
  padding: 24px 20px;
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (min-width: 640px) { .card { padding: 28px 32px; } }
.card > * + * { margin-top: 16px; }
.card > h3 { margin-top: 28px; font-size: 1rem; color: var(--c-primary-dark); }

/* --- セクション見出し（番号付き） --- */
.section-head { display: flex; align-items: center; gap: 12px; }
.section-head__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-primary);
  background: var(--c-primary-soft);
}
.section-head h2 { font-size: 1.2rem; line-height: 1.5; }

/* --- 要点カード（まずはここだけ） --- */
.facts { display: grid; gap: 12px; padding: 0; list-style: none; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact {
  padding: 16px 18px;
  background: var(--c-surface);
  border-top: 4px solid var(--c-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.fact--alert { border-top-color: var(--c-danger); }
.fact__label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: var(--c-muted); }
.fact__value { margin-top: 4px; font-size: 1.15rem; font-weight: 700; line-height: 1.5; }
.fact__sub { margin-top: 4px; font-size: 0.85rem; color: var(--c-muted); }
.fact__link { margin-top: 6px; font-size: 0.85rem; }

.section-label { font-size: 0.85rem; font-weight: 700; color: var(--c-muted); }

/* --- ページ内目次（チップ） --- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding: 0; list-style: none; }
.toc a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--c-text);
  text-decoration: none;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
}
.toc a:hover { color: var(--c-primary); border-color: var(--c-primary); }
.toc__num { font-weight: 700; color: var(--c-primary); }

/* --- 注意書き（info / warn / tip） --- */
.callout {
  position: relative;
  padding: 14px 16px 14px 48px;
  font-size: 0.93rem;
  color: #173a73;
  background: var(--c-info-soft);
  border-radius: var(--radius-sm);
}
.callout::before {
  content: "i";
  position: absolute;
  top: 16px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--c-info);
  border-radius: 50%;
}
.callout--warn { color: #6b3a06; background: var(--c-warn-soft); }
.callout--warn::before { content: "!"; background: var(--c-warn); }
.callout--tip { color: #11502f; background: var(--c-success-soft); }
.callout--tip::before { content: "✓"; background: var(--c-success); }
.callout > * + * { margin-top: 6px; }
.callout a { color: inherit; font-weight: 700; }

/* --- リンクボタン（他ページ・他セクションへの誘導） --- */
.link-buttons { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.link-buttons a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--c-surface);
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
}
.link-buttons a::after { content: " →"; }

/* --- 番号付きのお願い --- */
.numbered { display: grid; gap: 12px; padding: 0; list-style: none; counter-reset: n; }
.numbered > li {
  position: relative;
  padding: 14px 16px 14px 58px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  counter-increment: n;
}
.numbered > li::before {
  content: counter(n);
  position: absolute;
  top: 15px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--c-primary);
  border-radius: 50%;
}
.numbered__title { font-weight: 700; }
.numbered__desc { font-size: 0.9rem; color: var(--c-muted); }

/* --- タイムライン（スケジュール） --- */
.timeline { padding: 0; list-style: none; }
.timeline__item { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding-bottom: 22px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { /* 縦線 */
  content: "";
  position: absolute;
  top: 36px;
  bottom: 4px;
  left: 31px;
  width: 2px;
  background: var(--c-border);
}
.timeline__item:last-child::before { display: none; }
.timeline__label {
  display: grid;
  place-items: center;
  height: 32px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--c-primary);
  border: 2px solid var(--c-primary);
  border-radius: var(--radius-pill);
}
.timeline__item.is-online .timeline__label { color: var(--c-primary); background: var(--c-surface); }
.timeline__date { padding-top: 2px; font-size: 1.05rem; font-weight: 700; }
.timeline__title { font-weight: 700; color: var(--c-primary-dark); }
.timeline__place { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--c-muted); }
.timeline__note { font-size: 0.85rem; color: var(--c-muted); }

/* --- ピル・バッジ --- */
.pill, .badge {
  display: inline-block;
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.9;
  white-space: nowrap;
  border-radius: var(--radius-pill);
}
.pill--primary { color: var(--c-primary); background: var(--c-primary-soft); }
.pill--info { color: var(--c-info); background: var(--c-info-soft); }
.pill--req { color: var(--c-danger); background: var(--c-danger-soft); }
.pill--opt { color: var(--c-muted); background: #eef0f3; }
.pill--cond { color: var(--c-warn); background: var(--c-warn-soft); }

/* --- 締切の一覧 --- */
.deadlines { display: grid; gap: 10px; padding: 0; list-style: none; }
.deadline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius-sm);
}
.deadline.is-soon { background: #fffafa; border-left-color: var(--c-danger); }
.deadline.is-closed { opacity: 0.6; border-left-color: #c5cad3; }
.deadline.is-none { border-left-color: var(--c-success); }
.deadline__title { font-weight: 700; }
.deadline__meta { margin-top: 4px; font-size: 0.85rem; }
.deadline__meta > div { display: flex; gap: 10px; }
.deadline__meta dt { flex: none; min-width: 3.5em; color: var(--c-muted); }

.status {
  flex: none;
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  border-radius: var(--radius-pill);
}
.status--open { color: var(--c-primary); background: var(--c-primary-soft); }
.status--soon { color: #fff; background: var(--c-danger); }
.status--closed { color: var(--c-muted); background: #eef0f3; }
.status--none { color: var(--c-success); background: var(--c-success-soft); }

/* --- 項目名と値の一覧 --- */
.info-list { border: 1px solid var(--c-border); border-radius: var(--radius-sm); overflow: hidden; }
.info-list > div { display: grid; grid-template-columns: 7.5em 1fr; }
.info-list > div + div { border-top: 1px solid var(--c-border); }
.info-list dt { padding: 12px 14px; font-size: 0.85rem; font-weight: 700; color: var(--c-muted); background: var(--c-surface-sub); }
.info-list dd { padding: 12px 14px; }
.info-list dd small { display: block; font-size: 0.85rem; color: var(--c-muted); }
@media (max-width: 420px) {
  .info-list > div { grid-template-columns: 1fr; }
  .info-list dt { padding-bottom: 4px; }
  .info-list dd { padding-top: 4px; }
}

/* --- チェックリスト（持ち物） --- */
.checklist { display: grid; gap: 8px; padding: 0; list-style: none; }
.checklist > li { display: flex; align-items: baseline; gap: 12px; padding: 10px 14px; background: var(--c-surface-sub); border-radius: var(--radius-sm); }
.checklist .pill { flex: none; min-width: 4.5em; text-align: center; }
.checklist__note { display: block; font-size: 0.85rem; color: var(--c-muted); }

/* --- ◯×の対比（服装など） --- */
.dos { display: grid; gap: 8px; padding: 0; list-style: none; }
@media (min-width: 640px) { .dos { grid-template-columns: 1fr 1fr; } }
.dos > li { position: relative; padding: 12px 14px 12px 46px; font-weight: 700; border-radius: var(--radius-sm); }
.dos > li::before {
  position: absolute;
  top: 13px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 0.8rem;
  line-height: 1;
  color: #fff;
  border-radius: 50%;
}
.dos .do { color: #11502f; background: var(--c-success-soft); }
.dos .do::before { content: "◯"; background: var(--c-success); }
.dos .dont { color: #7a1c1c; background: var(--c-danger-soft); }
.dos .dont::before { content: "×"; background: var(--c-danger); }

/* --- チェック付きリスト（修了要件など） --- */
.checks { display: grid; gap: 8px; padding: 0; list-style: none; }
.checks > li { position: relative; padding-left: 32px; }
.checks > li::before {
  content: "✓";
  position: absolute;
  top: 3px;
  left: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  border-radius: 50%;
}

/* --- ステップ（受付の流れ・道順） --- */
.steps { padding: 0; list-style: none; counter-reset: s; }
.steps > li { position: relative; padding: 0 0 18px 42px; counter-increment: s; }
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before {
  content: counter(s);
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--c-primary);
  background: var(--c-surface);
  border: 2px solid var(--c-primary);
  border-radius: 50%;
}
.steps > li::after { /* ステップ間の線 */
  content: "";
  position: absolute;
  top: 32px;
  bottom: 2px;
  left: 13px;
  width: 2px;
  background: var(--c-border);
}
.steps > li:last-child::after { display: none; }

/* --- 画像の仮枠（画像を置いたら <img> に差し替え） --- */
.figure-ph {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 16px;
  font-size: 0.85rem;
  color: var(--c-muted);
  text-align: center;
  background: repeating-linear-gradient(45deg, #fafbfd, #fafbfd 10px, #f2f4f8 10px, #f2f4f8 20px);
  border: 2px dashed #c9cfdc;
  border-radius: var(--radius-sm);
}
.figure { margin: 0; }
.figure img { display: block; border-radius: var(--radius-sm); }
.figure figcaption { margin-top: 6px; font-size: 0.85rem; color: var(--c-muted); }

/* --- 天気 --- */
.weather { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; padding: 0; list-style: none; }
.weather__day { padding: 14px; text-align: center; background: var(--c-surface-sub); border-radius: var(--radius-sm); }
.weather__label { font-size: 0.8rem; font-weight: 700; color: var(--c-muted); }
.weather__forecast { margin-top: 2px; font-size: 1.1rem; font-weight: 700; }
.weather__temp { font-size: 0.85rem; }
.temp-high { color: var(--c-danger); }
.temp-low { color: var(--c-info); }

/* --- スポット（宿・食） --- */
.spots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.spot { padding: 16px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); }
.spot__title { font-weight: 700; color: var(--c-primary-dark); }
.spot__desc { margin-top: 4px; font-size: 0.9rem; color: var(--c-muted); }
.spot__meta { margin-top: 8px; font-size: 0.85rem; }

/* --- トップへ戻る --- */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  width: 46px;
  height: 46px;
  font-size: 1.1rem;
  color: #fff;
  cursor: pointer;
  background: var(--c-primary);
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }


/* ------------------------------------------------------------------
   5. ユーティリティ
   ------------------------------------------------------------------ */

/* 未確定値（master.js の tbd: true、または HTML に直接 class="is-tbd"） */
.is-tbd { background: linear-gradient(transparent 55%, var(--c-tbd) 55%); }
.is-tbd::after {
  content: "要確認";
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0;
  vertical-align: 2px;
  color: #3b2f00;
  background: var(--c-tbd-badge);
  border-radius: 4px;
}

.muted { color: var(--c-muted); }
.small { font-size: 0.85rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .to-top { transition: none; }
}
