/* =========================================================
   学×地フェスタ 第4回 — モックスタイル
   コンセプト：チラシの「1本の道」をページ全体に通す。
   セクションは道のループの内側に置き、道の上を登場人物が歩く。
   ========================================================= */

:root {
  /* color — すべてチラシのイラストから採色 */
  --ground: #d5eee1;      /* チラシ地色のミント */
  --ground-2: #e6f5ec;    /* ミントの明るい面（表・入力欄） */
  --road: #fbe7df;        /* 道の塗り */
  --line: #3b8e8e;        /* ロゴと線画のティール */
  --ink: #1d4543;         /* 本文。ティールを深く沈めた色 */
  --ink-soft: #4f6f6c;    /* 補足テキスト */
  --pink: #f3a3ab;
  --yellow: #fff36b;
  --leaf: #6fc583;
  --paper: #ffffff;
  --sat: #2c3792;         /* 土曜＝青（チラシの曜日バッジ） */
  --sun: #c01a2d;         /* 日曜＝赤 */
  --todo: #b8860b;        /* モック用「要確認」 */

  /* type */
  --f-display: "Yusei Magic", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;

  /* type scale (1.25 → 1.333 混在、和文に合わせて調整) */
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-s: 0.9375rem;    /* 15 */
  --fs-m: 1rem;         /* 16 */
  --fs-l: 1.25rem;      /* 20 */
  --fs-xl: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);        /* 24–32 */
  --fs-2xl: clamp(2rem, 1.3rem + 3vw, 3.25rem);        /* 32–52 */
  --fs-xl-plus: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); /* 28–40：セクション見出し */
  --fs-3xl: clamp(2.75rem, 1.6rem + 5vw, 5rem);        /* 44–80 */

  /* layout */
  --edge: clamp(16px, 4.5vw, 72px);   /* 画面の左右の余白。道もこの位置を通る */
  --content: 80rem;
  --wide: 112rem;      /* ヘッダーとヒーローだけ、広い画面でさらに広げる */
  --road-w: 64px;
  --road-edge: 3px;
  --turn-pad: calc(var(--edge) + var(--road-w) + 44px);
  --strip-h: 136px;
  --gutter-l: max(var(--edge), env(safe-area-inset-left, 0px));
  --gutter-r: max(var(--edge), env(safe-area-inset-right, 0px));

  color-scheme: light;
}

@media (max-width: 720px) {
  :root {
    --road-w: 34px;
    --turn-pad: calc(var(--edge) + var(--road-w) + 30px);
    --strip-h: 118px;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-m);
  line-height: 1.8;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--ground);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--line); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; word-break: auto-phrase; }
p { margin: 0; }

.wrap {
  max-width: var(--content);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

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

/* モックで確定していない値に付ける印 */
.todo {
  display: inline-block;
  font-size: 0.6875rem; line-height: 1; letter-spacing: 0.08em;
  padding: 0.3em 0.55em 0.25em;
  border: 1px dashed var(--todo); color: var(--todo);
  border-radius: 3px; vertical-align: 0.2em; margin-left: 0.4em;
  font-family: var(--f-body); font-weight: 700;
}

/* ---------- header ---------- */
/* 画面から浮いた、ティール色のカプセル。メニューの現在地は黄色 */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  padding: 14px var(--gutter-r) 0 var(--gutter-l);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--wide); margin-inline: auto;
  padding: 10px 12px 10px 30px;
  background: color-mix(in srgb, var(--line) 94%, transparent);
  backdrop-filter: blur(10px);
  border-radius: 999px;
}
.site-header__logo { display: block; line-height: 0; }
.site-header__logo img { width: 132px; filter: brightness(0) invert(1); }
.gnav ul { display: flex; gap: 4px 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.gnav a {
  display: block; text-decoration: none; font-weight: 700; font-size: var(--fs-m); letter-spacing: 0.08em;
  color: var(--paper); padding: 11px 20px; border-radius: 999px;
  transition: background-color .2s ease, color .2s ease;
}
.gnav a:hover { background: color-mix(in srgb, var(--paper) 22%, transparent); }
.gnav a[aria-current="page"] { background: var(--yellow); color: var(--ink); }
.gnav__toggle { display: none; }

@media (max-width: 860px) {
  .site-header__inner { padding: 8px 10px 8px 20px; }
  .site-header__logo img { width: 110px; }
  .gnav__toggle {
    display: inline-flex; align-items: center; gap: 8px;
    font: 700 var(--fs-s)/1 var(--f-body); letter-spacing: .1em; color: var(--ink);
    background: var(--yellow); border: 0; border-radius: 999px;
    padding: 11px 18px; cursor: pointer;
  }
  .gnav__toggle span { display: block; width: 16px; height: 2px; background: var(--ink); box-shadow: 0 5px 0 var(--ink), 0 -5px 0 var(--ink); }
  .gnav ul {
    position: absolute; left: var(--gutter-l); right: var(--gutter-r); top: calc(100% + 8px);
    flex-direction: column; gap: 0; background: var(--paper);
    border: 2px solid var(--line); border-radius: 28px; padding: 10px 20px;
  }
  .gnav ul[hidden] { display: none !important; }
  .gnav li + li { border-top: 1px dashed color-mix(in srgb, var(--line) 45%, transparent); }
  .gnav a { padding: 12px 0; color: var(--ink); border-radius: 0; }
  .gnav a:hover { background: none; }
  .gnav a[aria-current="page"] { background: none; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: .4em; text-underline-offset: -.2em; }
}

/* ---------- hero ---------- */
/* 薄い黄色のパネル。左に文字、右にイラスト。旗と風船がパネルからはみ出す */
.hero { padding: 18px var(--gutter-r) 0 var(--gutter-l); }
.hero__panel {
  position: relative;
  /* 飾り（旗・風船）をイラストと同じ縮尺にするため、表示中のイラストの幅を計算しておく。
     素材は元データ（6902px幅のイラスト）と同じ縮尺で書き出されている */
  --pad-l: clamp(28px, 4vw, 72px);
  --pad-r: clamp(16px, 1.8vw, 28px);
  --col: calc((min(100vw - 2 * var(--edge), var(--wide)) - var(--pad-l) - var(--pad-r) - 14px) * 0.6333);
  --ill-w: min(var(--col), calc((100svh - 230px) * 1.2477));
  display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); align-items: center; gap: 24px 8px;
  max-width: var(--wide); margin-inline: auto;
  /* 高さは画面の高さに固定。中の文字は cqh（この高さの1%）で縮むので、必ず1画面に収まる */
  height: calc(100svh - 128px); min-height: 460px; container-type: size;
  padding: clamp(20px, 2.4vw, 36px) var(--pad-r) clamp(24px, 3vw, 48px) var(--pad-l);
  background: color-mix(in srgb, var(--yellow) 22%, var(--paper));
  border: 3px solid var(--line); border-radius: clamp(28px, 3.4vw, 52px);
}
.hero__bunting { position: absolute; top: 0; left: var(--pad-l); width: calc(var(--ill-w) * 2195 / 6902 * 2.4); height: auto; pointer-events: none; }
.hero__balloon { position: absolute; width: auto; z-index: 2; pointer-events: none; }
.hero__balloon--y { height: calc(var(--ill-w) * 729 / 6902); right: calc(var(--pad-r) + 2%); top: 14px; }
.hero__balloon--p { height: calc(var(--ill-w) * 724 / 6902); right: calc(var(--pad-r) + var(--ill-w) * 0.1); top: 34px; }

.hero__text { align-self: start; margin-top: calc(var(--ill-w) * 0.15); min-width: 0; display: grid; gap: 0; justify-items: start; }
.hero__edition {
  display: inline-flex; align-items: baseline; gap: .2em;
  font-family: var(--f-display); font-size: clamp(.9rem, 3cqh, 1.25rem); color: var(--paper);
  background: var(--line); border-radius: 999px; padding: 2px 18px 0; margin-bottom: 1.8cqh;
}
.hero__edition b { font-weight: 400; font-size: 1.4em; line-height: 1.2; }
.hero__text { --logo-w: min(100%, 460px, 60cqh); }
.hero__logo { width: var(--logo-w); }
.hero__copy {
  width: var(--logo-w); margin-top: 2.4cqh; text-align: center;   /* ロゴの幅に対して中央揃え */
  font-family: var(--f-display); color: var(--ink);
  font-size: clamp(1rem, 3.6cqh, 1.75rem); line-height: 1.5; letter-spacing: .12em;
}
.hero__copy span { background: linear-gradient(transparent 62%, var(--yellow) 62%); padding-inline: .15em; }

.when { margin-top: 2.4cqh; display: grid; gap: 1.8cqh; width: 100%; border-top: 2px dashed var(--line); padding-top: 2.2cqh; }
/* 日付と時間を同じ表の行に並べる。年は1行目だけ見せ、列をそろえる */
.when__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 1cqh; }
.when__rows li { display: grid; grid-template-columns: 3em auto auto 1fr; align-items: center; column-gap: 10px; }
.when__year { font-family: var(--f-display); font-size: var(--fs-s); color: var(--ink-soft); }
.when__date { font-family: var(--f-display); font-size: clamp(1.5rem, 6cqh, 3rem); line-height: 1; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.when__time { margin-left: 14px; font-family: var(--f-display); font-size: clamp(1rem, 3.6cqh, 1.875rem); line-height: 1; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.dow {
  display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%;
  color: var(--paper); font-weight: 700; font-size: var(--fs-s); line-height: 1; letter-spacing: 0;
}
.dow--sat { background: var(--sat); }
.dow--sun { background: var(--sun); }
.when__place {
  /* 会場を敷物にのせて、日付に負けない存在感にする */
  justify-self: start; display: grid; gap: 2px; padding: 1.5cqh 3cqh 1.5cqh 2.6cqh;
  background: var(--line); color: var(--paper); border-radius: 16px;
  font-weight: 700; font-size: clamp(1rem, 3cqh, 1.375rem); letter-spacing: .06em; line-height: 1.45;
}
.when__place span { display: block; font-weight: 500; font-size: var(--fs-s); letter-spacing: .04em; opacity: .9; }
.hero .btn-row { margin-top: 2.6cqh; gap: 1.6cqh; }
.hero .btn { padding: 1.5cqh 3.2cqh; font-size: clamp(.8125rem, 2.2cqh, 1rem); }

.hero__illust { min-width: 0; display: grid; place-items: center; }
.hero__illust img { width: 100%; height: auto; max-height: calc(100svh - 230px); object-fit: contain; }

@media (max-width: 900px) {
  .hero__panel { grid-template-columns: 1fr; min-height: 0; padding-top: 72px; }
  .hero__illust img { max-height: none; }
  .hero__panel { --col: calc(min(100vw - 2 * var(--edge), var(--wide)) - var(--pad-l) - var(--pad-r) - 6px); --ill-w: var(--col); }
}
@media (max-width: 720px) {
  .hero { padding-top: 12px; }
  .hero__panel { padding: 64px 18px 12px; }
}

/* ---------- trail（道） ---------- */
.trail { position: relative; isolation: isolate; }
.trail__road { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; overflow: visible; }
.trail__road .edge { fill: none; stroke: var(--line); stroke-linecap: butt; stroke-linejoin: round; }
.trail__road .fill { fill: none; stroke: var(--road); stroke-linecap: butt; stroke-linejoin: round; }

/* 道の水平部分。ここに人が立つ */
.strip { position: relative; height: var(--strip-h); }
.strip__walker {
  position: absolute; bottom: calc(var(--road-w) * 0.38);
  height: calc(var(--strip-h) - 10px); width: auto; max-width: none;
}
.strip__walker--s { height: calc(var(--strip-h) * 0.45); }
.strip__walker--m { height: calc(var(--strip-h) * 0.7); }
@media (max-width: 720px) { .strip__walker.hide-sp { display: none; } }

/* 道のループの内側に置くセクション */
.stop { padding-block: clamp(28px, 3.4vw, 52px); }
.stop__inner {
  max-width: var(--content); margin-inline: auto;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.stop[data-turn="right"] .stop__inner { padding-right: var(--turn-pad); }
.stop[data-turn="left"] .stop__inner { padding-left: var(--turn-pad); }
/* 中身が画面中央に寄って、道との間に余白ができる幅から、道よけの余白をなくす */
@media (min-width: 1640px) {
  .stop[data-turn] .stop__inner { padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
}

/* ---------- section heading ---------- */
.sec-head { display: grid; gap: 10px; margin-bottom: clamp(18px, 2.4vw, 30px); max-width: 48rem; }
.sec-head h2 {
  font-family: var(--f-display); font-size: var(--fs-xl-plus); line-height: 1.3;
  letter-spacing: 0.06em; font-feature-settings: "palt" 1; color: var(--line);
}
.sec-head p { color: var(--ink-soft); font-size: var(--fs-s); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 32px 56px; align-items: start; }
.about__logo { width: min(540px, 100%); margin-bottom: 20px; }
.about__lead { font-size: 1.125rem; line-height: 1.95; font-weight: 500; max-width: 34em; word-break: auto-phrase; }
.about__lead em { font-style: normal; background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.about__nums { display: flex; flex-wrap: wrap; gap: 8px 36px; margin-top: 24px; }
.about__nums div { display: grid; }
.about__nums dt { font-size: var(--fs-xs); color: var(--ink-soft); font-weight: 700; order: 2; }
.about__nums dd { margin: 0; font-family: var(--f-display); font-size: var(--fs-2xl); line-height: 1.1; order: 1; }
.about__nums dd small { font-size: 0.4em; margin-left: .15em; }

.message {
  position: relative; background: var(--paper); border: 2px solid var(--line);
  border-radius: 28px 28px 28px 6px; padding: 26px 26px 22px; font-size: var(--fs-s); line-height: 1.95;
}
.message__from { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed color-mix(in srgb, var(--line) 50%, transparent); }
.message__from small { display: block; font-size: var(--fs-xs); color: var(--ink-soft); line-height: 1.4; }
.message__from b { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-l); letter-spacing: .2em; line-height: 1.3; }
.message__photo { width: 52px; height: 52px; border-radius: 50%; background: var(--ground-2); border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-size: 10px; color: var(--ink-soft); letter-spacing: 0; }

@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* ---------- outline ---------- */
.outline { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px 64px; }
.facts { margin: 0; display: grid; }
.facts > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 4px 16px; padding-block: 16px; border-bottom: 2px dotted color-mix(in srgb, var(--line) 55%, transparent); }
.facts > div:first-child { border-top: 2px solid var(--line); }
.facts dt { font-weight: 700; color: var(--line); }
.facts dd { margin: 0; font-weight: 500; }
.facts dd small { display: block; color: var(--ink-soft); font-size: var(--fs-s); font-weight: 400; }

.ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ways li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; align-items: center; background: var(--ground-2); border-radius: 20px; padding: 14px 20px 14px 14px; }
.ways img { width: 76px; height: 76px; object-fit: contain; }
.ways h3 { font-family: var(--f-display); font-size: var(--fs-l); line-height: 1.4; color: var(--ink); }
.ways p { font-size: var(--fs-s); color: var(--ink-soft); line-height: 1.75; }
@media (max-width: 900px) { .outline { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .facts > div { grid-template-columns: 3.5em minmax(0, 1fr); } }

/* ---------- exhibitors preview ---------- */
.ex-sum { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.ex-sum__total { font-family: var(--f-display); line-height: 1; }
.ex-sum__total b { font-weight: 400; font-size: clamp(4.5rem, 3rem + 7vw, 8rem); color: var(--line); letter-spacing: -0.02em; }
.ex-sum__total span { font-size: var(--fs-xl); margin-left: .1em; }
.ex-sum__total small { display: block; font-family: var(--f-body); font-size: var(--fs-xs); color: var(--ink-soft); margin-top: 10px; letter-spacing: .06em; }
.cat-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.cat-list li { break-inside: avoid; display: flex; align-items: baseline; gap: 10px; padding-block: 8px; border-bottom: 1px dashed color-mix(in srgb, var(--line) 45%, transparent); }
.cat-list a { text-decoration: none; font-weight: 700; flex: 1; display: flex; gap: 10px; align-items: baseline; }
.cat-list a::after { content: ""; flex: 1; border-bottom: 2px dotted color-mix(in srgb, var(--line) 35%, transparent); transform: translateY(-4px); order: 1; }
.cat-list .n { font-family: var(--f-display); font-size: var(--fs-l); order: 2; font-variant-numeric: tabular-nums; }
.cat-list a:hover { color: var(--line); }
.ex-sum__names { grid-column: 1 / -1; font-size: var(--fs-s); color: var(--ink-soft); line-height: 2.1; }
.ex-sum__names span + span::before { content: "／"; margin-inline: .5em; color: color-mix(in srgb, var(--line) 60%, transparent); }
@media (max-width: 760px) { .ex-sum { grid-template-columns: 1fr; } .cat-list { columns: 1; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font-weight: 700; letter-spacing: .08em; color: var(--ink);
  background: var(--yellow); border: 2px solid var(--line); border-radius: 999px;
  padding: 12px 26px; box-shadow: 0 4px 0 var(--line);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--line); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.btn--paper { background: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- stage ---------- */
.tabs { display: inline-flex; gap: 6px; padding: 6px; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); margin-bottom: 26px; }
.tabs button {
  font: inherit; font-weight: 700; color: var(--ink); background: transparent; border: 0;
  border-radius: 999px; padding: 8px 18px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}
.tabs button .d { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-l); line-height: 1; }
.tabs button[aria-selected="true"] { background: var(--line); color: var(--paper); }
.tabs .dow { width: 1.7em; height: 1.7em; font-size: 12px; }

.notice { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-s); color: var(--todo); font-weight: 700; margin-bottom: 18px; }
.timetable { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--line); }
.timetable li {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; gap: 4px 24px; align-items: baseline;
  padding-block: 16px; border-bottom: 2px dotted color-mix(in srgb, var(--line) 55%, transparent);
}
.timetable time { font-family: var(--f-display); font-size: var(--fs-l); font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; }
.timetable time span { font-size: .75em; color: var(--ink-soft); }
.timetable h3 { font-size: var(--fs-l); font-weight: 700; line-height: 1.5; }
.timetable p { font-size: var(--fs-s); color: var(--ink-soft); grid-column: 2; }
.timetable li.is-now { background: linear-gradient(90deg, color-mix(in srgb, var(--yellow) 70%, transparent), transparent 70%); }
@media (max-width: 640px) {
  .timetable li { grid-template-columns: 1fr; gap: 2px; }
  .timetable p { grid-column: 1; }
}

/* ---------- access ---------- */
.access { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.access__map {
  aspect-ratio: 4 / 3; max-width: 100%; background: var(--ground-2); border: 2px dashed var(--line); border-radius: 24px;
  display: grid; place-items: center; text-align: center; color: var(--ink-soft); font-size: var(--fs-s); padding: 24px;
}
.access__map b { display: block; font-family: var(--f-display); font-weight: 400; font-size: var(--fs-l); color: var(--line); }
.access__venue { font-family: var(--f-display); font-size: var(--fs-xl); line-height: 1.4; color: var(--ink); margin-bottom: 4px; }
.access ul { margin: 18px 0 0; padding-left: 1.2em; font-size: var(--fs-s); }
.access li { margin-bottom: 6px; }
@media (max-width: 860px) { .access { grid-template-columns: 1fr; } }

/* ---------- news ---------- */
.news { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--line); max-width: 52rem; }
.news li { border-bottom: 2px dotted color-mix(in srgb, var(--line) 55%, transparent); }
.news a { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 2px 20px; padding-block: 16px; text-decoration: none; }
.news time { font-family: var(--f-display); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.news a:hover span { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
@media (max-width: 560px) { .news a { grid-template-columns: 1fr; } }

/* ---------- committee teaser ---------- */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; }
.teaser__text h2 { font-family: var(--f-display); font-size: var(--fs-xl); color: var(--line); line-height: 1.4; margin-bottom: 10px; }
.teaser__img { display: flex; align-items: flex-end; gap: 6px; }
.teaser__img img { height: 150px; width: auto; }
@media (max-width: 720px) { .teaser { grid-template-columns: 1fr; } .teaser__img img { height: 110px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--line); color: var(--paper); margin-top: 0; }
.site-footer a { color: var(--paper); }
.site-footer__inner {
  max-width: var(--content); margin-inline: auto;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px 64px;
}
.site-footer h2 { font-family: var(--f-display); font-size: var(--fs-l); margin-bottom: 12px; }
.contact { display: grid; gap: 6px; font-size: var(--fs-m); }
.contact div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.contact dt { font-size: var(--fs-xs); opacity: .8; width: 4.5em; }
.contact dd { margin: 0; font-weight: 700; letter-spacing: .06em; }
.copy-btn {
  font: 700 11px/1 var(--f-body); letter-spacing: .08em; color: var(--line); background: var(--paper);
  border: 0; border-radius: 999px; padding: 6px 10px; cursor: pointer;
}
.credits { display: grid; gap: 20px; font-size: var(--fs-s); line-height: 1.9; }
.credits h3 { font-size: var(--fs-xs); font-weight: 700; opacity: .8; letter-spacing: .12em; margin-bottom: 2px; }
.credits p span + span::before { content: "・"; }
.site-footer__bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: end; border-top: 1px solid color-mix(in srgb, var(--paper) 35%, transparent); padding-top: 22px; font-size: var(--fs-xs); }
.site-footer__bottom img { width: 130px; filter: brightness(0) invert(1); }
@media (max-width: 820px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- sub page head ---------- */
.page-head { padding-top: clamp(28px, 5vw, 64px); }
.page-head__inner { max-width: var(--content); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: end; }
.crumbs { font-size: var(--fs-xs); color: var(--ink-soft); margin-bottom: 14px; }
.crumbs a { text-decoration-color: color-mix(in srgb, var(--line) 50%, transparent); text-underline-offset: 4px; }
.page-head h1 { font-family: var(--f-display); font-size: var(--fs-3xl); line-height: 1.15; color: var(--line); letter-spacing: .04em; font-feature-settings: "palt" 1; }
.page-head__lead { margin-top: 18px; max-width: 36em; font-weight: 500; }
.page-head__img { display: flex; align-items: flex-end; gap: 4px; }
.page-head__img img { height: 170px; width: auto; }
@media (max-width: 720px) { .page-head__inner { grid-template-columns: 1fr; } .page-head__img img { height: 120px; } }

/* ---------- exhibitors page ---------- */
.filters { display: grid; gap: 16px; margin-bottom: 36px; }
.filters__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters__label { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-soft); width: 4.5em; flex: none; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip > span {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--fs-s);
  padding: 7px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); line-height: 1.3;
}
.chip input:checked + span { background: var(--line); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.chip .dow { width: 1.5em; height: 1.5em; font-size: 11px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 18px; max-width: 26rem; width: 100%; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding: 8px 0; }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }
.result-count { font-size: var(--fs-s); color: var(--ink-soft); font-weight: 700; }

.ex-group { margin-bottom: 44px; }
.ex-group__head { display: flex; align-items: baseline; gap: 14px; border-bottom: 2px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }
.ex-group__head h2 { font-family: var(--f-display); font-size: var(--fs-xl); color: var(--line); line-height: 1.3; }
.ex-group__head span { font-family: var(--f-display); color: var(--ink-soft); }
.ex-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; }
.ex-list > li { break-inside: avoid; }
.ex-item { display: flex; align-items: center; gap: 12px; padding-block: 11px; border-bottom: 1px dashed color-mix(in srgb, var(--line) 40%, transparent); }
.ex-item__name { flex: 1; min-width: 0; font-weight: 700; line-height: 1.55; }
.ex-item__days { display: inline-flex; gap: 4px; flex: none; }
.ex-item__days .dow { width: 1.6em; height: 1.6em; font-size: 11px; }
.ex-item__days .tbd { font-size: 11px; color: var(--ink-soft); font-weight: 700; border: 1px solid color-mix(in srgb, var(--ink-soft) 50%, transparent); border-radius: 999px; padding: 2px 8px; }
.ex-sub { list-style: none; margin: 0 0 0 10px; padding: 0 0 0 16px; border-left: 2px solid color-mix(in srgb, var(--line) 45%, transparent); }
.ex-sub .ex-item__name { font-weight: 500; }
.ex-empty { padding: 40px 0; text-align: left; color: var(--ink-soft); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-xs); color: var(--ink-soft); font-weight: 700; margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .dow { width: 1.6em; height: 1.6em; font-size: 10px; }
@media (max-width: 760px) { .ex-list { columns: 1; } }

/* ---------- committee page ---------- */
.prose { max-width: 38em; display: grid; gap: 1.2em; }
.prose p { line-height: 2.05; }
.prose strong { background: linear-gradient(transparent 62%, var(--yellow) 62%); }

.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pillars li { display: grid; grid-template-rows: 150px auto auto; gap: 10px; }
.pillars img { height: 150px; width: auto; justify-self: start; object-fit: contain; }
.pillars h3 { font-family: var(--f-display); font-size: var(--fs-l); color: var(--line); line-height: 1.4; border-top: 2px solid var(--line); padding-top: 12px; }
.pillars p { font-size: var(--fs-s); line-height: 1.9; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } .pillars li { grid-template-rows: auto; grid-template-columns: 100px minmax(0, 1fr); column-gap: 18px; } .pillars img { height: 110px; grid-row: span 2; } }

.history { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--line); }
.history li { padding: 18px 18px 18px 0; border-right: 2px dotted color-mix(in srgb, var(--line) 50%, transparent); display: grid; gap: 4px; align-content: start; }
.history li + li { padding-left: 18px; }
.history li:last-child { border-right: 0; }
.history .ed { font-family: var(--f-display); font-size: var(--fs-xl); color: var(--line); line-height: 1.2; }
.history .yr { font-size: var(--fs-xs); color: var(--ink-soft); font-weight: 700; }
.history .st { font-size: var(--fs-s); }
.history .st b { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-l); }
.history li.is-current { background: linear-gradient(transparent 0, color-mix(in srgb, var(--yellow) 55%, transparent) 0); }
@media (max-width: 760px) {
  .history { grid-template-columns: 1fr 1fr; }
  .history li { border-bottom: 2px dotted color-mix(in srgb, var(--line) 50%, transparent); }
  .history li:nth-child(2n) { border-right: 0; }
  .history li:nth-child(2n+1) { padding-left: 0; }
}

.members { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: 28px 24px; }
.members li { display: grid; gap: 4px; }
.members .face { aspect-ratio: 1; max-width: 100%; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); display: grid; place-items: center; overflow: hidden; margin-bottom: 8px; }
.members .face img { width: 78%; height: 78%; object-fit: contain; object-position: bottom; }
.members .role { font-size: var(--fs-xs); color: var(--ink-soft); font-weight: 700; }
.members .nm { font-family: var(--f-display); font-size: var(--fs-l); line-height: 1.4; }
.members .af { font-size: var(--fs-xs); color: var(--ink-soft); }

.join { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.join > div { background: var(--paper); border: 2px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.join h3 { font-family: var(--f-display); font-size: var(--fs-l); color: var(--line); line-height: 1.4; }
.join p { font-size: var(--fs-s); line-height: 1.85; }
@media (max-width: 860px) { .join { grid-template-columns: 1fr; } }

/* ---------- motion ---------- */
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.sway { transform-origin: 50% 100%; animation: sway 4.5s ease-in-out infinite; }
.sway--late { animation-delay: -2s; animation-duration: 5.2s; }
@media (prefers-reduced-motion: reduce) {
  .sway { animation: none; }
  .btn, .gnav a { transition: none; }
}

/* ---------- 非公開ゲート（gate.js） ---------- */
html:not(.is-authed) body > *:not(.gate) { display: none !important; }
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: var(--ground); }
.gate[hidden] { display: none; }
.gate__card { width: min(100%, 26rem); display: grid; gap: 16px; justify-items: center; text-align: center; padding: 36px 28px; background: var(--paper); border: 3px solid var(--line); border-radius: 32px; }
.gate__card img { width: 220px; }
.gate__lead { font-weight: 700; }
.gate__msg { min-height: 1.5em; font-size: var(--fs-s); color: var(--sun); font-weight: 700; }
.gate__field { display: grid; gap: 4px; width: 100%; text-align: left; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-soft); }
.gate__field input { font: inherit; font-size: var(--fs-m); color: var(--ink); padding: 11px 16px; background: var(--ground-2); border: 2px solid var(--line); border-radius: 999px; }
.gate__field input:focus { outline: 3px solid var(--yellow); outline-offset: 2px; }
.gate__btn { cursor: pointer; font: inherit; font-weight: 700; }
.gate__reset { font: inherit; font-size: var(--fs-xs); color: var(--ink-soft); background: none; border: 0; text-decoration: underline; cursor: pointer; }
