/* =================================================================
   subpage.css — content styles for the inner pages
   (来場案内 / 企画一覧 / タイムテーブル / 校内マップ)
   Loaded on top of base.css + components.css.
   Tokens live in base.css. Use var(--…) rather than raw values.
   ================================================================= */

/* --- shared building blocks ------------------------------------ */

.block-title {
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--c-ink);
  letter-spacing: 0.02em;
  margin: var(--sp-8) 0 var(--sp-4);
  padding-left: var(--sp-3);
  border-left: 3px solid var(--c-blue);
}
.block-title:first-child { margin-top: 0; }

.lead-note {
  font-size: var(--text-base);
  color: var(--c-muted);
  margin-bottom: var(--sp-6);
}

.note {
  font-size: var(--text-sm);
  color: var(--c-muted);
  margin-top: var(--sp-3);
}

/* --- 来場案内 (info) ------------------------------------------- */

.info-list {
  border-top: 1px solid var(--c-line);
}
.info-row {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-1);
  border-bottom: 1px solid var(--c-line);
}
.info-row dt {
  flex: none;
  width: 72px;
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--c-blue);
}
.info-row dd { font-size: var(--text-md); }

.check-list { list-style: none; }
.check-list li {
  position: relative;
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-3);
  font-size: var(--text-md);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-blue);
}

/* --- パンフレット (pamphlet) ------------------------------------ */

.pam-list dd {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
/* アイコンだけのダウンロード。押しやすいよう 44px 四方 */
.pam-dl {
  flex: none;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-block: calc(-1 * var(--sp-2));
  border-radius: var(--r-pill);
  color: var(--c-blue);
}
.pam-dl:hover { background: var(--c-surface-2); }
.pam-dl svg { width: 20px; height: 20px; }

.access-name { font-size: var(--text-base); font-weight: var(--fw-bold); }
.access-addr { font-size: var(--text-sm); color: var(--c-muted); margin-bottom: var(--sp-4); }
.map-frame {
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--c-line);
}
.map-frame iframe { display: block; }
.access-ways {
  margin-top: var(--sp-5);
  display: grid;
  gap: var(--sp-4);
}
.access-way h3 { font-size: var(--text-base); font-weight: var(--fw-bold); margin-bottom: var(--sp-1); }
.access-way p { font-size: var(--text-base); }

/* FAQ (Q/A list) */
.faq-item {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-line);
}
.faq-item:first-child { border-top: 1px solid var(--c-line); }
.faq-q,
.faq-a { position: relative; padding-left: var(--sp-6); }
.faq-q {
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: var(--c-ink);
}
.faq-a {
  font-size: var(--text-base);
  color: var(--c-text);
  margin-top: var(--sp-2);
}
.faq-q::before,
.faq-a::before {
  position: absolute;
  left: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
}
.faq-q::before { content: "Q"; color: var(--c-blue); }
.faq-a::before { content: "A"; color: var(--c-muted); }

/* --- 企画一覧 (projects) — 階ごとのカード ---------------------- */

.proj-group { margin-bottom: var(--sp-7); }
.proj-group:last-child { margin-bottom: 0; }

.proj-list {
  list-style: none;
  display: grid;
  gap: var(--sp-4);
}

/* card: thumbnail | divider | body  (white, soft-shadowed) */
.proj-card {
  display: flex;
  gap: var(--sp-4);
  align-items: stretch;
  padding: var(--sp-4);
  background: var(--c-bg);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
}

/* 正方形のまま、画像を切らずに全部見せる。カードの高さに引き伸ばされると
   横長の枠になって画像が切れていたので、上に寄せて高さは幅から決める */
.proj-thumb {
  flex: none;
  align-self: flex-start;
  width: 84px;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-icon);
  overflow: hidden;
  background: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 白地のアイコンでも角丸の形が分かるよう、ふちに罫線を重ねる（画像の上に置くので角丸に沿う） */
.proj-thumb { position: relative; }
.proj-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--c-line);
  border-radius: inherit;
  pointer-events: none;
}
.proj-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* 企画のアイコンは、右クリック・長押し・ドラッグで「画像を保存」できないようにする（押した先が画像ではなく
   後ろの枠になる）。開発者ツールなどからは取れるので、気軽に保存されないための目隠し（本人の指定） */
.proj-thumb img,
.tt-pop-icon {
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}
/* placeholder icon shown until a real image is added */
.proj-thumb-fallback {
  width: 38%;
  height: 38%;
  color: var(--c-muted);
  opacity: 0.5;
}

.proj-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-left: var(--sp-4);
  border-left: 1px solid var(--c-line);
}

.proj-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-line);
}

.proj-name {
  min-width: 0;
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--c-ink);
  line-height: 1.3;
}

.proj-where {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}
.proj-org {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--c-ink);
}
.proj-room {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--c-blue);
  white-space: nowrap;
}
/* blue location pin via CSS mask — no per-card inline SVG needed */
.proj-room::before {
  content: "";
  flex: none;
  width: 1em;
  height: 1em;
  background: var(--c-blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill-rule='evenodd'%20d='M12%202C8.13%202%205%205.13%205%209c0%205.25%207%2013%207%2013s7-7.75%207-13c0-3.87-3.13-7-7-7Zm0%209.5a2.5%202.5%200%201%200%200-5%202.5%202.5%200%200%200%200%205Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill-rule='evenodd'%20d='M12%202C8.13%202%205%205.13%205%209c0%205.25%207%2013%207%2013s7-7.75%207-13c0-3.87-3.13-7-7-7Zm0%209.5a2.5%202.5%200%201%200%200-5%202.5%202.5%200%200%200%200%205Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.proj-desc {
  margin-top: var(--sp-3);
  font-size: var(--text-base);
  color: var(--c-text);
}

.proj-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.proj-tag {
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  color: var(--c-on-accent);
  background: var(--c-ink);
  border-radius: var(--r-pill);
  padding: 4px 12px;
}

/* --- 企画一覧: 検索・絞り込み・階ごとの開閉 (js/booths.js) ------- */
.booth-card[hidden], .booth-floor[hidden] { display: none; }

.booth-sample,
.booth-error {
  margin-bottom: var(--sp-6);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-blue);
  border-radius: var(--r-sm);
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--c-blue);
}

.booth-tools { margin-bottom: var(--sp-6); }
/* 検索欄: 薄い灰色の面のピル。押すと白地に青い枠。右端に虫めがねの検索ボタン、文字があるときはその左に ×
   （虫めがねを左に置いていたら、押して検索するボタンが無いのに違和感があると言われた） */
.booth-searchbox { position: relative; }
.booth-search-btns {
  position: absolute;
  top: 50%;
  right: var(--sp-1);
  display: flex;
  align-items: center;
  transform: translateY(-50%);
}
.booth-search-clear,
.booth-search-go {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--c-muted);
  background: none;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
}
.booth-search-clear[hidden] { display: none; }
.booth-search-clear svg { width: 18px; height: 18px; }
.booth-search-go svg { width: 22px; height: 22px; }
.booth-search-go { color: var(--c-blue); }
.booth-search-clear:hover,
.booth-search-go:hover { background: rgba(var(--c-blue-rgb), 0.08); }
.booth-search {
  width: 100%;
  min-height: 52px;
  padding: 0 calc(var(--sp-1) + 88px) 0 var(--sp-5); /* 右はボタン2つ分 */
  font: inherit;
  font-size: var(--text-lg); /* 16px 未満だと iOS が入力時に拡大する */
  color: var(--c-ink);
  background: var(--c-surface-2);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.booth-search::placeholder { color: var(--c-muted); opacity: 0.7; }
.booth-search:focus { outline: none; background: var(--c-bg); border-color: var(--c-blue); }
/* ブラウザが出す欄の中の × は消す（自前の × と2つ並ばないように） */
.booth-search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.booth-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.booth-chip {
  min-height: 44px;
  padding: 0 var(--sp-5);
  font: inherit;
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--c-ink);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.booth-chip:hover { border-color: var(--c-blue); color: var(--c-blue); }
.booth-chip[aria-pressed="true"] {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: var(--c-on-accent);
}
/* 並び替え・絞り込み（検索欄の下に2つのボタン。押すとパネルが開く。よくある通販サイトの形）。
   パネルは PC ではボタンの下に開き、スマホでは画面の下からせり上がる */
.booth-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.booth-menu { position: relative; }
.booth-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0 var(--sp-4);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--c-ink);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  list-style: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.booth-menu-btn::-webkit-details-marker { display: none; }
.booth-menu-btn:hover,
.booth-menu[open] > .booth-menu-btn { border-color: var(--c-blue); color: var(--c-blue); }
/* 開閉の印（階の見出しと同じ形を小さく） */
.booth-menu-btn::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.booth-menu-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--c-blue);
}
.booth-menu-value:empty { display: none; }
.booth-menu-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: var(--text-xs);
  line-height: 20px;
  text-align: center;
  color: var(--c-on-accent);
  background: var(--c-blue);
  border-radius: var(--r-pill);
}
.booth-menu-badge[hidden] { display: none; }
/* 開いている間は後ろに幕。幕は summary の一部なので、押すとパネルが閉じる */
.booth-menu[open] > .booth-menu-btn::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1100; /* ヘッダー（1000）より前 */
  background: rgba(0, 0, 0, 0.32);
  cursor: default;
}
.booth-menu-panel {
  position: absolute;
  top: calc(100% + var(--sp-2));
  left: 0;
  z-index: 1101;
  width: min(400px, calc(100vw - 2 * var(--sp-4)));
  padding: var(--sp-5);
  background: var(--c-bg);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
}
.booth-filtermenu .booth-menu-panel { left: auto; right: 0; }
@media (max-width: 767px) {
  .booth-menu[open] > .booth-menu-btn::before { background: rgba(0, 0, 0, 0.4); }
  .booth-menu-panel,
  .booth-filtermenu .booth-menu-panel {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 85svh;
    overflow-y: auto;
    padding: var(--sp-6) var(--sp-4) calc(var(--sp-5) + env(safe-area-inset-bottom));
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    animation: booth-sheet 0.3s var(--ease);
  }
}
@keyframes booth-sheet {
  from { transform: translateY(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .booth-menu-panel { animation: none !important; }
}
.booth-menu-title {
  margin: var(--sp-5) 0 var(--sp-2);
  font-size: var(--text-ms);
  font-weight: var(--fw-bold);
  color: var(--c-ink);
}
.booth-menu-title:first-child { margin-top: 0; }
.booth-menu-panel .booth-chips { margin-top: 0; }
/* 並び順（ラジオ）と「階ごとに分ける」（チェック） */
.booth-radio,
.booth-switch {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 44px;
  font-size: var(--text-md);
  color: var(--c-ink);
  cursor: pointer;
}
.booth-radio input,
.booth-switch input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--c-blue);
}
.booth-switch {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-line);
}
/* 値段の範囲: 検索欄と同じ灰色の面に、枠の無いセレクトを2つ「〜」でつなぐ */
.booth-range {
  display: flex;
  justify-content: center; /* 矢印が文字のすぐ右に来るよう、セレクトは伸ばさず真ん中に寄せる */
  align-items: center;
  min-height: 48px;
  padding: 0 var(--sp-2);
  background: var(--c-surface-2);
  border-radius: var(--r-pill);
}
.booth-range-sep { color: var(--c-muted); }
.booth-range select {
  min-height: 40px;
  /* セレクトの幅は一番長い選択肢（「下限なし」）で決まり、「100円」を選ぶと矢印との間が空く。
     中身の幅に合わせる（field-sizing。効かないブラウザでは文字を真ん中に寄せて空きを両側に分ける） */
  field-sizing: content;
  text-align-last: center;
  padding: 0 calc(var(--sp-3) + 14px) 0 var(--sp-3);
  font: inherit;
  font-size: var(--text-lg); /* 16px 未満だと iOS が選ぶときに拡大する */
  font-weight: var(--fw-medium);
  color: var(--c-text);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d4390' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right var(--sp-2) center / 14px;
  border: none;
  border-radius: var(--r-pill);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.booth-range select:focus { outline: none; }
.booth-range select:focus-visible { box-shadow: 0 0 0 2px var(--c-blue); }
.booth-range select.is-set { color: var(--c-blue); font-weight: var(--fw-semibold); }
/* パネルの下: クリア（文字だけ）と「◯件を表示」（青ベタ。押すと閉じる） */
.booth-menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.booth-clear,
.booth-apply {
  min-height: 44px;
  font: inherit;
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  border-radius: var(--r-pill);
  cursor: pointer;
}
.booth-clear {
  padding: 0 var(--sp-3);
  color: var(--c-blue);
  background: none;
  border: none;
}
.booth-apply {
  flex: 1;
  max-width: 220px;
  padding: 0 var(--sp-5);
  color: var(--c-on-accent);
  background: var(--c-blue);
  border: 1px solid var(--c-blue);
}
/* いま効いている絞り込みの条件。押すと外れる（右の × は見た目の印） */
.booth-active {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.booth-active:empty { display: none; }
.booth-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 var(--sp-3) 0 var(--sp-4);
  font: inherit;
  font-size: var(--text-ms);
  font-weight: var(--fw-semibold);
  color: var(--c-blue);
  background: rgba(var(--c-blue-rgb), 0.08);
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
}
.booth-active-chip::after {
  content: "×";
  font-size: var(--text-lg);
  line-height: 1;
}
.booth-count {
  margin-top: var(--sp-3);
  font-size: var(--text-ms);
  color: var(--c-muted);
}
/* 近い企画を出しているとき。ぴったりではないことが分かるよう青で */
.booth-count.is-near { color: var(--c-blue); font-weight: var(--fw-semibold); }

/* 企画カード: パンフレットのカードと同じ並び。枠や影は付けず、アイコンと文字だけ。
   画面の幅によらず縦に1列（PCで2列に並べるのはやめた） */
.booth-list {
  --booth-gap: var(--sp-5); /* 罫線の上下それぞれ */
  list-style: none;
  margin-top: var(--sp-5);
}
/* 企画と企画の間に薄い罫線。絞り込みで隠れたカードを飛ばし、表示している2枚目から上に引く
   （:first-child だと、先頭が隠れたとき一番上に線が出る）。カードは光らせるために角丸なので、
   border-top だと線の両端が角丸に沿って曲がる。線は別の要素（::before）で引く */
.booth-card:not([hidden]) ~ .booth-card:not([hidden]) {
  position: relative;
  margin-top: var(--booth-gap);
  padding-top: var(--booth-gap);
}
.booth-card:not([hidden]) ~ .booth-card:not([hidden])::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-top: 1px solid var(--c-line);
}
.booth-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}
.booth-card .proj-thumb { width: 76px; }
.booth-card-body { flex: 1; min-width: 0; }
.booth-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-3);
}
.booth-card-title {
  min-width: 0;
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--c-ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
/* 右上の団体名と場所（パンフと同じく右寄せで2段） */
.booth-card-where {
  flex: none;
  max-width: 48%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
  font-size: var(--text-sm);
  line-height: 1.4;
}
.booth-card-org { font-weight: var(--fw-semibold); color: var(--c-ink); }
.booth-card-where .proj-room { white-space: normal; text-align: right; }
/* 教室名は校内マップへのリンク（その部屋を目的地に選んだ状態で開く） */
a.proj-room { text-decoration: none; }
a.proj-room:hover { text-decoration: underline; }
.booth-card-desc {
  white-space: pre-line; /* 説明文の改行（データの「\n」）をそのまま出す */
  margin-top: var(--sp-2);
  font-size: var(--text-ms);
  line-height: 1.65;
  color: var(--c-text);
}
.booth-card .proj-tags { margin-top: 0; }
/* 分類の右に値段（パンフと同じ並び） */
.booth-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}
.booth-card-foot:empty { display: none; }
.booth-price {
  flex: none;
  margin-left: auto;
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--c-ink);
}
/* 「料金を見る」。値段の下に右寄せ。開くと品目ごとの値段の表 */
.booth-prices > summary {
  width: fit-content;
  margin: var(--sp-1) 0 0 auto;
  font-size: var(--text-ms);
  font-weight: var(--fw-semibold);
  color: var(--c-blue);
  list-style: none;
  cursor: pointer;
}
.booth-prices > summary::-webkit-details-marker { display: none; }
.booth-prices > summary::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: var(--sp-2);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.booth-prices[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.booth-prices > summary:hover { text-decoration: underline; }
.booth-prices dl {
  margin-top: var(--sp-2);
  font-size: var(--text-ms);
  border-top: 1px solid var(--c-line);
}
.booth-prices dl > div {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--c-line);
}
.booth-prices dt { color: var(--c-text); }
.booth-prices dd { flex: none; text-align: right; font-weight: var(--fw-semibold); color: var(--c-ink); }
/* 地図から飛んできたカード。薄い青の面がふわっと消える */
.booth-card { border-radius: var(--r-sm); }
.booth-card.is-flash { animation: booth-flash 1.8s var(--ease); }
@keyframes booth-flash {
  0%, 30% { background: rgba(var(--c-blue-rgb), 0.1); box-shadow: 0 0 0 var(--sp-2) rgba(var(--c-blue-rgb), 0.1); }
  100% { background: transparent; box-shadow: 0 0 0 var(--sp-2) transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .booth-card.is-flash { animation-duration: 0.01s; }
}
@media (min-width: 768px) {
  .booth-list { --booth-gap: var(--sp-6); }
}

/* 階の見出し＝開閉ボタン。見た目は .block-title と同じ左の青い縦罫＋右端に開閉の印 */
.booth-floor + .booth-floor { margin-top: var(--sp-7); }
.booth-floor-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 44px;
  padding-left: var(--sp-3);
  border-left: 3px solid var(--c-blue);
  list-style: none;
  cursor: pointer;
}
.booth-floor-head::-webkit-details-marker { display: none; }
.booth-floor-name {
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--c-ink);
  letter-spacing: 0.02em;
}
.booth-floor-count {
  font-size: var(--text-ms);
  color: var(--c-muted);
}
/* 開閉の印（下向き＝閉じている、上向き＝開いている） */
.booth-floor-head::after {
  content: "";
  margin-left: auto;
  margin-right: var(--sp-2);
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--c-ink);
  border-bottom: 2px solid var(--c-ink);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.booth-floor[open] > .booth-floor-head::after { transform: translateY(2px) rotate(-135deg); }
.booth-floor-body { margin-top: var(--sp-4); }

/* フロアのプレビュー。いま表示している企画の部屋だけ青く塗る */
.booth-map {
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-bg);
}
.booth-map-svg { display: block; width: 100%; height: auto; }
/* 部屋は塗らない（青く塗ったら気持ち悪かった）。見えない当たり判定で、押すとカードへ飛ぶ */
.booth-map-room { fill: transparent; pointer-events: none; }
.booth-map-room.is-hit { pointer-events: all; cursor: pointer; }
.booth-map-room:focus { outline: none; }
.booth-map-room:focus-visible { stroke: var(--c-blue); stroke-width: 4; }
.booth-map-link {
  display: inline-block;
  margin: var(--sp-2) 0 var(--sp-4);
  font-size: var(--text-ms);
  font-weight: var(--fw-semibold);
  color: var(--c-blue);
  text-decoration: none;
}
.booth-map-link::after { content: " →"; }
.booth-map-link:hover { text-decoration: underline; }
/* 代表のカードの「タイムテーブルを見る」。見た目は地図へのリンクと同じで、下の余白だけ詰める */
.booth-card-link { margin: var(--sp-2) 0 0; }

/* --- タイムテーブル (timetable) -------------------------------- */

/* パンフと同じく、会場を横に並べて縦を時刻にそろえる（会場ごとの一覧を並べただけでは、横の行が
   同じ時刻にならず見づらかった）。位置と長さは HTML の --at / --len（分）で、1分を --tt-px にする。
   15分の出演（1日目の講堂）でも時刻と名前の2行が入り、押しやすい高さになるのが 3px */
.tt-day {
  --tt-px: 3px;
  --tt-axis: 40px; /* 左の時刻の欄 */
  margin-bottom: var(--sp-8);
}
/* 日の切り替え。灰色の細長い枠を2つに分け、選んだ方に白い面を敷く（iPhone の切り替えと同じ形）。
   白い面は1枚（::before）で、位置は --x。選び直すと横へ滑り、指やマウスでつかんで動かすこともできる
   （js/main.js がつかんでいる間だけ --x を px で書く）。
   これまでに試してやめた形: 分類ボタンと同じピルを左に寄せる（絞り込みに見えた）、
   下線のタブ（すぐ下の表の正時の線と線が重なって紛らわしかった） */
.tt-tabs {
  --x: 0px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: var(--sp-1);
  margin-bottom: var(--sp-8);
  background: var(--c-surface-2);
  border-radius: var(--r-pill);
  touch-action: pan-y; /* 横につかんで動かしてもページのスクロールや「戻る」にしない */
}
.tt-tabs[hidden] { display: none; }
.tt-tabs::before {
  content: "";
  position: absolute;
  top: var(--sp-1);
  bottom: var(--sp-1);
  left: var(--sp-1);
  width: calc(50% - var(--sp-1));
  background: var(--c-bg);
  border-radius: var(--r-pill);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transform: translateX(var(--x));
}
.tt-tabs:has(.tt-tab:nth-child(2)[aria-pressed="true"]) { --x: 100%; }
/* 開いた直後は滑らせない（2日目が今日のとき、読み込んだ瞬間に横へ動いて見えるので）。js/main.js が付ける */
.tt-tabs.is-ready::before { transition: transform 0.35s var(--ease); }
.tt-tabs.is-dragging::before { transition: none; } /* つかんでいる間は指にそのまま付いてくる */
@media (prefers-reduced-motion: reduce) {
  .tt-tabs.is-ready::before { transition: none; }
}
/* ボタンは素の display のまま（中身が上下の真ん中に来る）。flex の align-items: baseline にしたら
   文字が上に寄り、下に空きができた */
.tt-tab {
  position: relative; /* 白い面より前 */
  min-height: 44px;
  font: inherit;
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  text-align: center;
  color: var(--c-text);
  background: none;
  border: none;
  border-radius: var(--r-pill);
  user-select: none; /* つかんで動かすときに文字が選択されないように */
  cursor: pointer;
  transition: color 0.2s ease;
}
.tt-tab:hover,
.tt-tab[aria-pressed="true"] { color: var(--c-blue); }
.tt-tab-date { font-size: var(--text-sm); font-weight: var(--fw-medium); margin-left: 6px; }
.tt-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--sp-2);
  padding-left: calc(var(--tt-axis) + var(--sp-2));
  margin-bottom: var(--sp-3);
}
.tt-venue-name {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--c-ink);
  text-align: center;
}
.tt-grid {
  position: relative;
  display: grid;
  grid-template-columns: var(--tt-axis) 1fr 1fr;
  column-gap: var(--sp-2);
  height: calc(var(--len) * var(--tt-px));
}
/* 正時の点線。文字は左の欄、線は会場の列の下に引く */
.tt-hour {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--at) * var(--tt-px));
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--c-muted);
}
.tt-hour::after {
  content: "";
  position: absolute;
  left: calc(var(--tt-axis) + var(--sp-1));
  right: 0;
  top: 50%;
  border-top: 1px solid var(--c-line);
}
.tt-col { position: relative; grid-row: 1; list-style: none; }
.tt-col:nth-of-type(1) { grid-column: 2; }
.tt-col:nth-of-type(2) { grid-column: 3; }
.tt-row {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--at) * var(--tt-px));
  height: calc(var(--len) * var(--tt-px) - var(--sp-1)); /* 続けて始まる出演の間に隙間 */
  z-index: 1; /* 点線より前 */
}
/* 枠は薄い青の塗りに角丸。パンフの「青い線＋左の太い帯」を画面でやったら、四角い線ばかりで
   印刷物のように硬く見えた */
.tt-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  /* 文字は上に寄せる（カレンダーと同じ）。15分の枠では2行（約33px）が上下の真ん中に来るよう詰め、
     長い枠でも --sp-3 より下げない */
  padding: clamp(var(--sp-1), (var(--len) * var(--tt-px) - 37px) / 2, var(--sp-3)) var(--sp-2) 0;
  font: inherit;
  text-align: left;
  color: var(--c-ink);
  background: color-mix(in srgb, var(--c-blue) 7%, var(--c-bg)); /* 透かすと正時の線が枠の中に見える */
  border: none;
  border-radius: var(--r-xs);
  overflow: hidden;
  cursor: pointer;
  transition: background 0.2s ease;
}
.tt-item:hover { background: color-mix(in srgb, var(--c-blue) 14%, var(--c-bg)); }
.tt-time {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  color: var(--c-blue);
}
.tt-title {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  overflow-wrap: anywhere; /* 「Stellarum Harmonia」などが狭い列からはみ出さないように */
}
@media (max-width: 359px) {
  /* 320幅でも「Know Weathers'」が15分の枠に1行で入るように */
  .tt-day { --tt-axis: 34px; }
  .tt-item { padding-inline: var(--sp-1); }
  .tt-title { font-size: var(--text-sm); }
}
/* 上演中（js/main.js が .is-now を付ける）は青ベタ、今の時刻に線 */
.tt-row.is-now .tt-item,
.tt-row.is-now .tt-time { background: var(--c-blue); color: var(--c-on-accent); }
.tt-nowline {
  position: absolute;
  left: calc(var(--tt-axis) + var(--sp-1));
  right: 0;
  top: calc(var(--at) * var(--tt-px));
  z-index: 2;
  border-top: 2px solid var(--c-blue);
}
.tt-nowline[hidden] { display: none; }

/* 企画を押すと開く概要（HTML の popover。JS 無しで開閉でき、外側を押すか Esc で閉じる） */
.tt-pop {
  width: min(100% - 2 * var(--sp-4), 420px);
  max-height: 85svh;
  margin: auto;
  padding: var(--sp-6);
  overflow: auto;
  color: var(--c-text);
  background: var(--c-bg);
  border: none;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
}
.tt-pop::backdrop { background: rgba(0, 0, 0, 0.35); }
.tt-pop-icon {
  display: block;
  width: 96px;
  height: 96px;
  margin-bottom: var(--sp-4);
  border-radius: var(--r-icon);
  box-shadow: 0 0 0 1px var(--c-line); /* 白地のアイコンでも形が分かるように（企画一覧と同じ） */
}
.tt-pop-title { font-size: var(--text-xl); font-weight: var(--fw-bold); color: var(--c-ink); }
.tt-pop-org { font-size: var(--text-ms); margin-top: 2px; }
.tt-pop-desc { font-size: var(--text-base); margin-top: var(--sp-3); white-space: pre-line; }
.tt-pop-times {
  list-style: none;
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-line);
  font-size: var(--text-ms);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}
.tt-pop-close {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: var(--sp-5);
  font: inherit;
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--c-ink);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  cursor: pointer;
}
.tt-pop-close:hover { border-color: var(--c-blue); color: var(--c-blue); }

/* 「上演中」「次」の札（表の上の「いま」で使う） */
.tt-tag {
  display: block;
  width: fit-content;
  margin-bottom: var(--sp-1);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  line-height: 1.6;
  padding: 0 var(--sp-2);
  border-radius: var(--r-pill);
  border: 1px solid var(--c-blue);
  background: var(--c-blue);
  color: var(--c-on-accent);
}
.tt-tag--next { background: var(--c-bg); color: var(--c-blue); }

/* 表の上の「いま」。会期の日だけ js/main.js が中身を入れて出す。列は下の表と同じ */
.tt-now {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  padding: var(--sp-4);
  margin-bottom: var(--sp-8);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
}
.tt-now[hidden] { display: none; }
.tt-now dt { font-size: var(--text-ms); font-weight: var(--fw-bold); color: var(--c-ink); margin-bottom: var(--sp-1); }
.tt-now dd {
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  color: var(--c-ink);
  overflow-wrap: anywhere;
}
.tt-now-time {
  display: block;
  font-size: var(--text-ms);
  font-weight: var(--fw-medium);
  color: var(--c-muted);
}

/* --- フロアマップ（assets/maps のフロア別SVGをタブで切替） ---- */

.floor-tabs {
  display: flex;
  align-items: flex-end; /* 選択タブだけ背を高くして手前に見せる */
  position: relative;
  z-index: 1; /* 地図カードの上辺に重ねる */
}
.floor-tab {
  flex: 1 1 0; /* 均等割り。狭い画面では縮む */
  max-width: 84px;
  height: 44px; /* タッチターゲット最小 44px */
  padding: 0 var(--sp-3);
  margin: 0 -1px -1px 0; /* 隣のタブ・地図カードと枠線を共有 */
  border: 1px solid var(--c-line);
  border-bottom: 0;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: var(--c-surface);
  color: var(--c-muted);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.floor-tab:hover { background: var(--c-bg); color: var(--c-ink); }
.floor-tab.is-active {
  z-index: 1; /* 隣のタブより手前 */
  height: 50px; /* height はトランジションさせない（切替がバウンドして見える） */
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: var(--c-on-accent);
}
.floor-tabs + .campusmap { border-top-left-radius: 0; }

/* --- 校内マップ + 道案内 (interactive map / wayfinding) -------- */

.map-sample-tag {
  font-family: var(--font-display);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  color: var(--c-muted);
  background: var(--c-line);
  border-radius: var(--r-pill);
  padding: 2px 9px; /* tag pill shape — kept off-scale on purpose */
  vertical-align: middle;
  margin-left: var(--sp-2);
}

.campusmap {
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-bg);
  padding: var(--sp-3);
  overflow: hidden;
  touch-action: pan-y; /* 等倍時はページスクロールを妨げない */
  cursor: grab;
}
.campusmap.is-zoomed { touch-action: none; } /* ズーム中は1本指パン・ピンチを地図側で処理 */
.campusmap.is-panning { cursor: grabbing; }
.cm-svg {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-select: none;
}

/* 部屋のタップ領域：フロア図（image）の上に載せる透明オーバーレイ */
.cm-room { cursor: pointer; }
.cm-room-box {
  fill: rgba(var(--c-blue-rgb), 0.001); /* 完全透明だとタップを拾わないブラウザ対策 */
  stroke: transparent;
  stroke-width: 2;
  transition: fill 0.18s ease, stroke 0.18s ease;
}
.cm-room:hover .cm-room-box { stroke: var(--c-blue); }
.cm-room:focus { outline: none; }
.cm-room:focus .cm-room-box { stroke: var(--c-blue); }

.cm-room.is-target .cm-room-box { fill: rgba(var(--c-blue-rgb), 0.24); stroke: var(--c-blue); }
.cm-room.is-origin .cm-room-box { fill: rgba(var(--c-blue-rgb), 0.10); stroke: var(--c-blue); }
/* AED の記号（図面を切り抜いて一番上に重ねたもの）。押しても下の部屋に届くように */
.cm-aed { pointer-events: none; }

.cm-route {
  stroke: var(--c-blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}
.cm-route.is-on {
  /* dasharray/dashoffset は経路の実長に合わせて JS がセットする */
  animation: cm-draw 0.7s var(--ease) forwards;
}
@keyframes cm-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cm-route.is-on { animation: none; stroke-dashoffset: 0 !important; }
}

.cm-stair-marker circle {
  r: calc(var(--sp-2) * 2);
  fill: var(--c-blue);
  stroke: var(--c-on-accent);
  stroke-width: 2;
}
.cm-stair-marker text {
  fill: var(--c-blue);
  font-size: calc(var(--text-xs) * 4);
  font-weight: var(--fw-bold);
  paint-order: stroke;
  stroke: var(--c-bg);
  stroke-width: var(--sp-1);
  stroke-linejoin: round;
}

/* 地図の記号（map.html）。パンフの凡例の記号（assets/maps/legend-icons.svg）を切り抜いた絵＋パンフと同じ言葉 */
.map-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-3);
  font-size: var(--text-ms);
}
.map-legend li { display: flex; align-items: center; gap: var(--sp-2); }
.map-legend svg { width: 22px; height: 22px; flex: none; }

.cm-floor-guide {
  margin-top: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r-sm);
  background: var(--c-surface);
}
.cm-floor-guide-text {
  color: var(--c-ink);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
}

/* info + route panel shown when a room is tapped */
.map-panel {
  margin-top: var(--sp-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}
/* 未選択のとき。パネルは消さず、何をすればいいかをここに出す */
.map-panel-empty {
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  color: var(--c-ink);
}
.map-panel-empty-note {
  margin-top: var(--sp-2);
  font-size: var(--text-base);
  color: var(--c-text);
}
.map-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.map-panel-room { font-size: var(--text-xl); font-weight: var(--fw-bold); color: var(--c-ink); }
/* パネル自体は閉じないので「×」は使わない。何が起きるかを文字で書く */
.map-panel-clear {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* タッチターゲット最小 44px */
  font-family: inherit;
  font-size: var(--text-ms);
  font-weight: var(--fw-semibold);
  line-height: 1;
  color: var(--c-text);
  background: none;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: var(--sp-2) var(--sp-4);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.map-panel-clear:hover { border-color: var(--c-blue); color: var(--c-blue); }
/* 企画のアイコン＋企画名・団体名を横に並べる */
.map-panel-proj {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}
.map-panel-proj .proj-thumb { width: 64px; }
.map-panel-proj-text { min-width: 0; }
.map-panel-proj-title { font-size: var(--text-md); font-weight: var(--fw-semibold); }
.map-panel-proj-org {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  color: var(--c-blue);
  margin-top: 2px;
}
.map-panel-proj-desc { font-size: var(--text-base); color: var(--c-text); margin-top: var(--sp-2); white-space: pre-line; }
/* 同じ部屋に企画が複数あるときは、2つ目から罫線で区切る */
.map-panel-item + .map-panel-item { margin-top: var(--sp-4); padding-top: var(--sp-1); border-top: 1px solid var(--c-line); }
.map-panel-item .booth-map-link { display: inline-block; margin-top: var(--sp-2); }

.map-route { margin-top: var(--sp-4); border-top: 1px solid var(--c-line); padding-top: var(--sp-4); }
.map-route-title {
  font-size: var(--text-ms);
  font-weight: var(--fw-semibold);
  color: var(--c-ink);
  margin-bottom: var(--sp-3);
}
.map-route-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: var(--text-ms);
  font-weight: var(--fw-semibold);
  color: var(--c-ink);
}
.map-route-field select {
  font-family: inherit;
  font-size: var(--text-md);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-bg);
  color: var(--c-ink);
  appearance: none;
  -webkit-appearance: none;
  /* appearance:none で消えた矢印を描き直す（coaster.css の .rc-select と同じシェブロン）。
     これが無いとセレクトが入力欄に見えてタップできると分からない。 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d4390' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  background-size: 18px;
  padding-right: var(--sp-9);
}
.map-route-field select:focus { outline: none; border-color: var(--c-blue); }
.map-route-field select:disabled { opacity: 0.5; cursor: not-allowed; }
.map-route-field + .map-route-field { margin-top: var(--sp-3); }

/* 現在地→目的地。乗換案内と同じ縦並びで、左の罫線と点が2つを1本につなぐ。
   飾りアイコンは置かず、線と点という構造だけで関係を示す。 */
.map-route-od {
  display: grid;
  gap: var(--sp-5);
  padding-left: var(--sp-6);
  position: relative;
}
.map-route-leg { position: relative; }
/* 現在地の点から目的地の点までを結ぶ縦線。現在地側から伸ばし、grid の隙間(--sp-5)を
   またいで目的地の点の中心でちょうど止める。目的地の点より下に線を残さない。 */
.map-route-leg--from::after {
  content: "";
  position: absolute;
  left: calc(var(--sp-6) * -1 + 4px);
  top: calc(0.45em + 9px);
  bottom: calc((var(--sp-5) + 0.45em + 4px) * -1);
  width: 1px;
  background: var(--c-line);
}
.map-route-leg::before {
  content: "";
  position: absolute;
  left: calc(var(--sp-6) * -1);
  top: 0.45em;
  width: 9px;
  height: 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-blue);
  background: var(--c-bg);
}
.map-route-leg--to::before { background: var(--c-blue); }
.map-route-leg-head {
  font-size: var(--text-ms);
  font-weight: var(--fw-semibold);
  color: var(--c-blue);
}
.map-route-leg-name {
  margin-top: var(--sp-1);
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  color: var(--c-ink);
}
.map-route-leg .map-route-field { margin-top: var(--sp-3); }

/* 選択を確定してから経路を描く。選択の途中で地図が動かないようにするため */
.map-route-go {
  /* ラベル2枚を同じマスに重ねて入れ替える */
  display: grid;
  width: 100%;
  margin-top: var(--sp-5);
  font-family: var(--font-ja);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  line-height: 1;
  padding: var(--sp-4) var(--sp-6);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--c-blue);
  color: var(--c-on-accent);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.32s var(--ease), filter 0.18s var(--ease);
}
.map-route-go:disabled { opacity: 0.45; cursor: not-allowed; }
.map-route-go:not(:disabled):hover { filter: brightness(0.92); }

/* 表示済み。押した瞬間に緑へ変わる。ラベルは演出なしで素直に入れ替える。
   2枚を重ねたままにしているのは、長い方の文字幅でボタン幅を固定して
   押した瞬間に横幅が動かないようにするため。 */
.map-route-go.is-done { background: var(--c-success); }
.map-route-go-label { grid-area: 1 / 1; }
.map-route-go-label--done,
.map-route-go.is-done .map-route-go-label { visibility: hidden; }
.map-route-go.is-done .map-route-go-label--done { visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .map-route-go { transition: none; }
}

/* 経路が引けなかったときだけ出る。成功時は出発／到着の表示で足りるので空にする */
.map-route-result {
  margin-top: var(--sp-3);
  font-size: var(--text-base);
  color: var(--c-blue);
}
.map-route-result:empty { margin-top: 0; }

/* --- テーマ＆ロゴ (theme) -------------------------------------- */

/* short, larger lead sentence that opens a section */
.theme-statement {
  font-size: var(--text-2xl);
  font-weight: var(--fw-semibold);
  line-height: 1.7;
  color: var(--c-ink);
  margin-bottom: var(--sp-4);
}
.theme-statement .em { color: var(--c-blue); }

/* body paragraphs */
.theme-body p {
  font-size: var(--text-md);
  color: var(--c-text);
  margin-bottom: var(--sp-3);
}
.theme-body p:last-child { margin-bottom: 0; }

/* --- アーカイブ (archive) — 過去年へのリンクカード ------------- */

.archive-list {
  list-style: none;
  display: grid;
  gap: var(--sp-4);
}

.archive-card {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-5);
  background: var(--c-bg);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: box-shadow 0.18s ease;
}
.archive-card:hover {
  box-shadow: var(--shadow-pop);
}

.archive-year {
  flex: none;
  font-family: var(--font-display);
  font-size: var(--text-hero-unit);
  font-weight: var(--fw-black);
  letter-spacing: 0.01em;
  color: var(--c-blue);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.archive-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.archive-name {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--c-ink);
}
.archive-meta {
  font-size: var(--text-sm);
  color: var(--c-muted);
}

.archive-go {
  flex: none;
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--c-blue);
  line-height: 1;
}

@media (min-width: 768px) {
  .access-ways { grid-template-columns: 1fr 1fr; }

  .proj-card { gap: var(--sp-5); padding: var(--sp-5); }
  .proj-thumb { width: 120px; }
  .proj-body { padding-left: var(--sp-5); }
  .proj-name { font-size: var(--text-3xl); }

}

/* --- ブログ (blog) ---------------------------------------------- */
/* 一覧から記事を選んで開く（js/blog.js）。一覧は縦に1列、お知らせと同じく罫線1本で
   区切る。見出し画像のある記事だけ、右に小さく添える */
.blog-list { list-style: none; }
.blog-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--c-line);
  color: inherit;
  text-decoration: none;
}
.blog-list li:first-child .blog-item { padding-top: 0; }
.blog-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.blog-item-title {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--c-ink);
  line-height: 1.5;
  transition: color 0.25s ease;
}
.blog-item:hover .blog-item-title { color: var(--c-blue); }
.blog-item-excerpt {
  font-size: var(--text-ms);
  color: var(--c-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
/* 見出し画像と同じ横長（1280×670） */
.blog-item-thumb {
  flex: none;
  width: 120px;
  aspect-ratio: 1280 / 670;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.blog-date {
  font-family: var(--font-en);
  font-size: var(--text-ms);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  color: var(--c-blue);
}

/* 記事を開いているとき */
.blog-reading .page-hero { display: none; }
.blog-reading .blog { padding-top: var(--header-h); }
.blog-back {
  display: inline-block;
  font-size: var(--text-ms);
  font-weight: var(--fw-semibold);
  color: var(--c-blue);
  text-decoration: none;
}
.blog-back::before { content: "← "; }
.blog-back:hover { text-decoration: underline; }
.blog-article {
  margin-block: var(--sp-6) var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--c-line);
}
.blog-article-title {
  margin-top: var(--sp-2);
  font-size: var(--text-title);
  font-weight: var(--fw-extrabold);
  color: var(--c-ink);
  line-height: 1.3;
}
.blog-cover {
  display: block;
  width: 100%;
  margin-top: var(--sp-6);
  border-radius: var(--r-md);
}
.blog-body { margin-top: var(--sp-6); font-size: var(--text-md); }
.blog-body > * + * { margin-top: var(--sp-4); }
.blog-body img { display: block; max-width: 100%; border-radius: var(--r-sm); }

/* 本文の部品（ブログ編集ツールで入れる。_reference/blog-editor/public/blog-core.js の render が作る形）。
   見出しはサイトの .block-title、箇条書きは .check-list、囲みは .card、表は .info-list、
   Q&A は .faq-item、リンクのカードは .archive-card、企画のカードは .booth-card をそのまま使う */
.blog-body > * + .block-title { margin-top: var(--sp-8); }
.blog-h3 {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--c-ink);
}
.blog-body > * + .blog-h3 { margin-top: var(--sp-6); }
.blog-body u { text-underline-offset: 0.2em; }
.t-lg { font-size: var(--text-2xl); }
.t-sm { font-size: var(--text-sm); }
.t-blue { color: var(--c-blue); }
.blog-body a:not([class]) { color: var(--c-blue); }
.blog-fig img { width: 100%; }
.blog-fig figcaption {
  margin-top: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--c-muted);
}
.blog-ol { padding-left: 1.4em; }
.blog-ol li + li { margin-top: var(--sp-2); }
.blog-body .check-list li:last-child { margin-bottom: 0; }
.blog-quote {
  padding-left: var(--sp-4);
  border-left: 3px solid var(--c-line);
}
.blog-quote cite {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--c-muted);
}
.blog-quote cite::before { content: "— "; }
.blog-body .blog-hr {
  margin-block: var(--sp-8);
  border: 0;
  border-top: 1px solid var(--c-line);
}
.blog-body .note { margin-top: var(--sp-3); }
.talk-say p + p,
.blog-card p + p,
.blog-quote p + p { margin-top: var(--sp-3); }
.blog-body .booth-list { margin-top: var(--sp-6); }
.blog-body .section-badge { margin-bottom: 0; }

/* 対談の発言（オモコロの記事のような形）。写真は使わず、丸に名字の頭の1字、その下に名字。
   色（.talk-blue など）は人を見分けるためだけで、ブログ編集ツールで人ごとに選ぶ */
.talk {
  --talk-icon: 48px;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}
.blog-body > .talk + .talk { margin-top: var(--sp-5); }
.talk-who {
  flex: none;
  width: var(--talk-icon);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
}
.talk-icon {
  display: grid;
  place-items: center;
  width: var(--talk-icon);
  height: var(--talk-icon);
  border-radius: 50%;
  background: var(--talk-c);
  color: var(--c-on-accent);
  font-size: calc(var(--talk-icon) * 0.46);
  font-weight: var(--fw-bold);
  line-height: 1;
}
.talk-name {
  max-width: calc(var(--talk-icon) + var(--sp-4));
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--talk-c);
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}
/* 1行目が丸の真ん中あたりに来るように下げる */
.talk-say {
  flex: 1;
  min-width: 0;
  padding-top: calc(var(--talk-icon) / 2 - 0.9em);
}
.talk-blue { --talk-c: var(--c-talk-blue); }
.talk-red { --talk-c: var(--c-talk-red); }
.talk-green { --talk-c: var(--c-talk-green); }
.talk-orange { --talk-c: var(--c-talk-orange); }
.talk-purple { --talk-c: var(--c-talk-purple); }
.talk-gray { --talk-c: var(--c-talk-gray); }

@media (min-width: 768px) {
  .blog-item-thumb { width: 168px; }
  .talk { --talk-icon: 56px; }
}
