@charset "UTF-8";
/* KBF 2026 公式アプリ
   配色・書体はサイト本体（assets/css/style.css）と同じものを使う。
   値を変えるときは必ず両方そろえること。 */

:root {
  /* 写真があることを示すしるし（枠と山と太陽） */
  --icon-photo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M2 1h16a1 1 0 011 1v12a1 1 0 01-1 1H2a1 1 0 01-1-1V2a1 1 0 011-1zm0 12h16V2H2v11zm3.2-3.1l2.6-3.2 2.3 2.8 1.7-1.9L16 13H4l1.2-3.1zM6 6a1.3 1.3 0 110-2.6A1.3 1.3 0 016 6z'/%3E%3C/svg%3E");
  --bg:          #101216;
  --surface:     #181B21;
  --surface-2:   #1F232A;
  --line:        rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.20);
  --text:        #FFFFFF;
  --text-2:      rgba(255, 255, 255, 0.70);
  --text-3:      rgba(255, 255, 255, 0.55);
  --accent:      #D61826;
  --accent-text: #FF7E86;
  --logo-red:    #D61826;
  --logo-blue:   #4BAEDC;
  --logo-green:  #039A5E;
  --radius:      0.5rem;
  --radius-lg:   0.75rem;
  --header-h:    3.5rem;
  --tabbar-h:    4.25rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); }

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

[hidden] { display: none !important; }

/* ── ヘッダー ───────────────────────────────────────────────────────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--header-h);
  padding: 0 1rem;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
}
.app-header__logo { height: 1.5rem; width: auto; display: block; }
.app-header__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.app-header__spacer { flex: 1 1 auto; }
.app-header__avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.app-header__menu {
  padding: 0.25rem 0.5rem;
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ── 本体 ───────────────────────────────────────────────────────────── */
.app-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 1rem calc(var(--tabbar-h) + 2rem);
}

.view-title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
}
.view-lead {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  color: var(--text-3);
}

/* ── ログイン画面 ───────────────────────────────────────────────────── */
.gate {
  max-width: 26rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}
.gate__logo { width: 8rem; height: auto; margin-bottom: 2rem; }
.gate__title { margin: 0 0 0.75rem; font-size: 1.15rem; font-weight: 700; }
.gate__text { margin: 0 0 2rem; font-size: 0.85rem; color: var(--text-2); text-align: left; }
.gate__note { margin: 1.5rem 0 0; font-size: 0.72rem; color: var(--text-3); text-align: left; }

.btn-line {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  background-color: #06C755;
  color: #FFFFFF;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius);
}
.btn-line:hover { filter: brightness(1.06); }

/* ── ステージ切替 ───────────────────────────────────────────────────── */
.stage-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.stage-tabs::-webkit-scrollbar { display: none; }
.stage-tab {
  flex: 0 0 auto;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-2);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.stage-tab[aria-selected="true"] {
  color: var(--text);
  background-color: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

/* ── 全ステージ表 ────────────────────────────────────────────────────
   紙のタイムテーブルと同じ形。縦が時刻、横がステージ。
   ステージごとの色はロゴの3色。文字色を色ごとに変えているのは、
   白が青と緑の上では読めないため（白/赤 5.2:1、白/青 2.5:1）。 */
.tt { margin-bottom: 1.5rem; }

.tt__head {
  display: flex;
  gap: 2px;
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  padding-bottom: 2px;
  background-color: var(--bg);
}
.tt__corner { flex: 0 0 2rem; }
.tt__stage {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.4rem 0.25rem;
  text-align: center;
  background-color: var(--col);
  border-radius: 0.3rem 0.3rem 0 0;
}
.tt__stage-name {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--col-text);
}

.tt__stage-delay {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--col-text);
}


.tt__body { position: relative; display: flex; gap: 2px; }

.tt__axis { flex: 0 0 2rem; position: relative; }
.tt__hour {
  position: absolute;
  left: 0;
  width: 100%;
  margin-top: -0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.tt__rules { position: absolute; inset: 0 0 0 2rem; pointer-events: none; }
.tt__rule {
  position: absolute;
  left: 0;
  width: 100%;
  border-top: 1px solid var(--line);
}
.tt__rule.is-hour { border-top-color: var(--line-strong); }

.tt__col { flex: 1 1 0; min-width: 0; position: relative; }

.tt-act {
  position: absolute;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.25rem 0.3rem;
  text-align: left;
  background-color: var(--col);
  /* 間をあけずに続く演目があるので、1組ずつ枠で囲って境目を出す */
  border: 2px solid var(--bg);
  border-radius: 0.25rem;
  color: var(--col-text);
}

.tt-act__time {
  display: block;
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}
.tt-act__name {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  font-size: 0.72rem;   /* 入りきらないときはJSで一段ずつ小さくする */
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
/* いちばん小さくしても入らないときだけ、行数で切って「…」を出す */
.tt-act__name.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
}
.tt-act.is-done { opacity: 0.4; }
.tt-act.is-now { outline: 2px solid var(--text); outline-offset: -2px; }
.tt-act.is-fav .tt-act__time::after {
  content: '★';
  margin-left: 0.25rem;
  font-size: 0.7rem;
}

/* いまの時刻。紙のタイムテーブルにはできないところ */
.tt__now {
  position: absolute;
  left: 2rem;
  right: 0;
  height: 0;
  border-top: 2px solid var(--accent-text);
  pointer-events: none;
  z-index: 5;
}
/* 左の時刻の数字を隠さないよう、右端に置く */
.tt__now-label {
  position: absolute;
  top: -0.7rem;
  right: 0;
  padding: 0 0.25rem;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--bg);
  background-color: var(--accent-text);
  border-radius: 0.2rem;
}

/* ── お知らせ・遅延 ─────────────────────────────────────────────────── */
.stage-notice__stage { font-weight: 700; margin-bottom: 0.15rem; }
.stage-notice {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  background-color: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.stage-notice__delay { color: var(--accent-text); font-weight: 700; }

/* ── 演目リスト ─────────────────────────────────────────────────────── */
.act-list { list-style: none; margin: 0; padding: 0; }
.act {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.5rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.act.is-onstage { border-color: var(--accent); }
.act.is-done { opacity: 0.45; }

.act__time {
  flex: 0 0 3.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.act__time small {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-3);
}
.act__body { flex: 1 1 auto; min-width: 0; }
.act__name {
  display: block;
  width: 100%;
  padding: 0;
  font-weight: 500;
  font-size: inherit;
  text-align: left;
  color: inherit;
}
/* 写真がある出演者は、押せば見られることが分かるようにしるしを付ける */
.act__name.has-photo::after {
  content: '';
  display: inline-block;
  width: 0.9rem;
  height: 0.75rem;
  margin-left: 0.4rem;
  vertical-align: -0.05rem;
  background-color: var(--text-3);
  -webkit-mask: var(--icon-photo) center / contain no-repeat;
  mask: var(--icon-photo) center / contain no-repeat;
}
.act__meta { font-size: 0.72rem; color: var(--text-3); }
.act__badge {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.05rem 0.45rem;
  font-size: 0.66rem;
  font-weight: 700;
  border-radius: 999px;
}
.act__badge.is-now { background-color: var(--accent); color: #FFFFFF; }
.act__badge.is-next { border: 1px solid var(--line-strong); color: var(--text-2); }
.act__badge.is-shifted { border: 1px solid var(--line-strong); color: var(--accent-text); }

.act__fav {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text-3);
}
.act__fav svg { width: 1.25rem; height: 1.25rem; }
.act__fav[aria-pressed="true"] { color: var(--accent-text); }
.act__fav[aria-pressed="true"] svg { fill: currentColor; }

/* ── 空の状態 ───────────────────────────────────────────────────────── */
.empty {
  padding: 3rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-3);
}

/* ── マップ ─────────────────────────────────────────────────────────── */
.map-actions { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.btn {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
}
.btn:hover { background-color: var(--surface-2); }
.btn.is-active { background-color: var(--accent); border-color: var(--accent); font-weight: 700; }

.map-status { margin: 0 0 0.75rem; font-size: 0.78rem; color: var(--text-3); }

/* 地図はページと一緒にスクロールする。
   枠の中だけが別に動くと、指がどちらを動かしているのか分からなくなる。 */
.map-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #F6F3EC;
}
.map-inner { position: relative; width: 100%; }
.map-svg { display: block; width: 100%; height: auto; }

/* 一覧から「マップで確認」を押されたブース。
   どこが光っているのかすぐ分かるよう、枠を太らせて点滅させる。 */
.map-svg .booth.is-found .booth__box {
  animation: booth-found 0.9s ease-in-out 4;
}
@keyframes booth-found {
  0%, 100% { stroke-width: 1.5; }
  50%      { stroke-width: 7; fill: #FFFFFF; }
}
@media (prefers-reduced-motion: reduce) {
  .map-svg .booth.is-found .booth__box {
    animation: none;
    stroke-width: 7;
  }
}

/* 押せるところ。指で触れている間だけ濃くする */
.map-svg .booth,
.map-svg .stage { cursor: pointer; }
.map-svg .booth__box,
.map-svg .stage__box { transition: filter 0.12s ease; }
.map-svg .booth:active .booth__box,
.map-svg .stage:active .stage__box { filter: brightness(0.9); }
.map-svg .booth:focus-visible .booth__box,
.map-svg .stage:focus-visible .stage__box {
  stroke: #2A2620;
  stroke-width: 3;
}
.map-svg .booth:focus,
.map-svg .stage:focus { outline: none; }

/* 凡例 */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  font-size: 0.72rem;
  color: var(--text-3);
}
.map-legend__item { display: inline-flex; align-items: center; }
.map-legend__item::before {
  content: '';
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.35rem;
  border-radius: 0.2rem;
  border: 2px solid currentColor;
}
.map-legend__item.is-food { color: var(--logo-red); }
.map-legend__item.is-goods { color: var(--logo-green); }
.map-legend__item.is-stage { color: var(--logo-blue); }
.map-legend__item.is-stage::before { background-color: currentColor; }
.map-legend__note { flex: 1 1 100%; color: var(--text-3); }

.map-pin {
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  margin: -0.55rem 0 0 -0.55rem;
  border-radius: 50%;
  background-color: #4BAEDC;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 4px rgba(75, 174, 220, 0.28);
}

.dist-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.dist-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.dist-item span:last-child { color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ── タブバー ───────────────────────────────────────────────────────── */
/* 会場では片手で、明るい屋外で操作する。
   本文と地続きに見えないよう面を分け、いま開いている場所を塗りで示す。 */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: stretch;
  min-height: var(--tabbar-h);
  /* ゲストはタブが2つになる。等分すると左右に離れて間延びするので、
     1つあたりの幅に上限を設けて中央に寄せる。 */
  justify-content: center;
  padding: 0.4rem 0.25rem;
  padding-bottom: calc(0.4rem + env(safe-area-inset-bottom));
  background-color: var(--surface);
  border-top: 1px solid var(--line-strong);
}
.tabbar__btn {
  flex: 1 1 0;
  max-width: 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.35rem 0.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-2);
  border-radius: var(--radius);
}
.tabbar__btn:hover { color: var(--text); }
.tabbar__btn:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; }

/* アイコンは塗りつぶせる面に載せる。開いている場所だけが塗られる。
   形がタブごとに変わらないよう、入れ物は全タブ共通にしてある。 */
.tabbar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 1.85rem;
  border-radius: 9999px;
  transition: background-color 0.2s ease;
}
.tabbar__icon svg { width: 1.4rem; height: 1.4rem; }

.tabbar__btn[aria-selected="true"] { color: var(--text); font-weight: 700; }

/* ロゴのK・B・Fと同じ順で、タブごとに色を持たせる。
   選んでいないときはアイコンの線に、選んでいるときは面の塗りに使う。
   面に載せる前景は、色ごとに読めるほうを選んである
   （白は赤の上で5.2:1だが青の上では2.5:1しかないため、青と緑は暗い前景にする）。 */
.tabbar__btn[data-view="home"]      .tabbar__icon { color: var(--logo-red); }
.tabbar__btn[data-view="timetable"] .tabbar__icon { color: var(--logo-blue); }
.tabbar__btn[data-view="map"]       .tabbar__icon { color: var(--logo-green); }
.tabbar__btn[data-view="posts"]     .tabbar__icon { color: var(--logo-red); }

.tabbar__btn[data-view="home"][aria-selected="true"] .tabbar__icon,
.tabbar__btn[data-view="posts"][aria-selected="true"] .tabbar__icon {
  background-color: var(--logo-red);
  color: #FFFFFF;
}
.tabbar__btn[data-view="timetable"][aria-selected="true"] .tabbar__icon {
  background-color: var(--logo-blue);
  color: var(--bg);
}
.tabbar__btn[data-view="map"][aria-selected="true"] .tabbar__icon {
  background-color: var(--logo-green);
  color: var(--bg);
}

/* 面が塗られると同色のバッジが埋もれるので、選ばれているあいだは白地にする */
.tabbar__btn[aria-selected="true"] .tabbar__badge {
  background-color: #FFFFFF;
  color: var(--logo-red);
}

/* ── トースト ───────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 1rem);
  transform: translateX(-50%);
  z-index: 30;
  max-width: calc(100% - 2rem);
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  background-color: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ── ひろば（投稿） ─────────────────────────────────────────────────── */
.post-form {
  padding: 0.9rem;
  margin-bottom: 1.25rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.post-form textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  resize: vertical;
}
.post-form__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.post-form__count {
  flex: 1 1 auto;
  font-size: 0.72rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.btn.primary {
  background-color: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}
.btn:disabled { opacity: 0.5; }

.btn-file {
  flex: 0 0 auto;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  background-color: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.btn-file input { display: none; }

.post-preview { position: relative; margin-top: 0.6rem; }
.post-preview img {
  display: block;
  width: 100%;
  max-height: 16rem;
  object-fit: cover;
  border-radius: var(--radius);
}
.post-preview__clear {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  background-color: rgba(16, 18, 22, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.post-list { list-style: none; margin: 0; padding: 0; }
.post {
  padding: 0.9rem;
  margin-bottom: 0.6rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.post__head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.post__avatar {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.post__name { font-size: 0.82rem; font-weight: 500; }
.post__time { flex: 1 1 auto; font-size: 0.72rem; color: var(--text-3); text-align: right; }
.post__body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.9rem; }
.post__image {
  display: block;
  width: 100%;
  margin-top: 0.6rem;
  border-radius: var(--radius);
}
.post__report {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-3);
  text-decoration: underline;
}
.post-more { text-align: center; margin: 1rem 0 0; }

/* ── 設定 ───────────────────────────────────────────────────────────── */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.setting-row input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }

/* ── 友だち追加の案内 ───────────────────────────────────────────────── */
.friend-banner {
  padding: 1rem;
  margin-bottom: 1.25rem;
  background-color: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.friend-banner__title { margin: 0; font-size: 0.88rem; font-weight: 700; }
.friend-banner__text { margin: 0.35rem 0 0; font-size: 0.78rem; color: var(--text-2); }
.friend-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }
.friend-banner__actions .btn { text-decoration: none; }
.friend-banner__actions .btn.primary { background-color: #06C755; border-color: #06C755; }

.setting-note { margin: 0.75rem 0 0; font-size: 0.78rem; color: var(--text-2); }
.setting-note a { font-weight: 500; }
.setting-note.is-warn { color: var(--accent-text); }

/* ── ゲスト ─────────────────────────────────────────────────────────── */
.gate__or {
  margin: 1.75rem 0 0.75rem;
  font-size: 0.78rem;
  color: var(--text-3);
}
.btn-outline {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--text);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.btn-outline:hover { background-color: var(--surface-2); }

.app-header__tag {
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 999px;
}
/* 中止の表示だけは、スクロールしても消えないヘッダーに残す */
.app-header__tag--stop {
  color: #FFFFFF;
  font-weight: 700;
  background-color: var(--accent);
  border-color: var(--accent);
}

/* ─── 開催中止の知らせ ───
   画面のいちばん上に置く。閉じるボタンは付けない。
   起動の演出のあとに出る幕は assets/css/event-cancel.css。 */
.event-cancel {
  padding: 1.5rem 1.25rem;
  background-color: var(--accent);
  color: #FFFFFF;
  text-align: center;
}
.event-cancel__label {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.event-cancel__headline {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.45;
}
.event-cancel__message {
  margin: 0.7rem 0 0;
  font-size: 0.84rem;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.event-cancel__time {
  margin: 0.7rem 0 0;
  font-size: 0.72rem;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}

.guest-prompt {
  padding: 1.25rem;
  margin-top: 1.5rem;
  text-align: center;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.guest-prompt__title { margin: 0; font-size: 0.88rem; font-weight: 700; }
.guest-prompt__text {
  margin: 0.4rem 0 1.1rem;
  font-size: 0.78rem;
  color: var(--text-2);
}
.guest-prompt .btn-line { max-width: 18rem; margin: 0 auto; }

/* ── ホーム画面への追加・通知の案内 ─────────────────────────────────── */
.install-box,
.push-box {
  padding: 1rem;
  margin-bottom: 1.25rem;
  background-color: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.install-box__title,
.push-box__title { margin: 0; font-size: 0.88rem; font-weight: 700; }
.install-box__text,
.push-box__text { margin: 0.35rem 0 0; font-size: 0.78rem; color: var(--text-2); }
.install-box__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }
.install-box__note {
  margin: 0.75rem 0 0;
  font-size: 0.74rem;
  color: var(--text-3);
}

/* 追加の手順。押す場所が分かるよう、番号とボタンの形を並べる */
.install-steps {
  counter-reset: install-step;
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
}
.install-step {
  counter-increment: install-step;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--text-2);
}
.install-step:first-child { border-top: none; padding-top: 0; }
.install-step::before {
  content: counter(install-step);
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35rem;
  text-align: center;
  color: var(--text);
  background-color: var(--accent);
  border-radius: 50%;
}
.install-step__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 0.1rem;
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 0.35rem;
}
.install-step__icon svg { width: 1rem; height: 1rem; }
.install-step__text { flex: 1 1 auto; min-width: 0; }
.push-box .btn { margin-top: 0.85rem; }
.push-box__note { margin: 0.6rem 0 0; font-size: 0.74rem; color: var(--text-3); }
.push-box__note.is-warn { color: var(--accent-text); }

/* ── お知らせ ───────────────────────────────────────────────────────── */
.tabbar__icon { position: relative; }
.tabbar__badge {
  position: absolute;
  top: -0.1rem;
  right: 0.1rem;
  /* 下の面が赤くなっても数字が埋もれないよう、縁で切り離す */
  box-shadow: 0 0 0 2px var(--surface);
  min-width: 1rem;
  padding: 0 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1rem;
  text-align: center;
  color: #FFFFFF;
  background-color: var(--accent);
  border-radius: 999px;
}

.news-list { list-style: none; margin: 0; padding: 0; }
.news-item {
  padding: 0.9rem;
  margin-bottom: 0.6rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.news-item__head { display: flex; align-items: center; gap: 0.5rem; }
.news-item__date { font-size: 0.72rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.news-item__cat {
  padding: 0.05rem 0.45rem;
  font-size: 0.66rem;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.news-item__title { margin: 0.4rem 0 0; font-weight: 700; font-size: 0.92rem; }
.news-item__summary { margin: 0.3rem 0 0; font-size: 0.8rem; color: var(--text-2); }
.news-item__more {
  margin-top: 0.6rem;
  font-size: 0.76rem;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.news-item__body {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
/* 本文は管理画面で書かれたHTML。段落・見出し・箇条書き・リンクが入る。 */
.news-item__body > :first-child { margin-top: 0; }
.news-item__body > :last-child { margin-bottom: 0; }
.news-item__body p { margin: 0 0 0.7rem; }
.news-item__body h2,
.news-item__body h3,
.news-item__body h4 {
  margin: 1.1rem 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-1);
}
.news-item__body ul,
.news-item__body ol { margin: 0 0 0.7rem; padding-left: 1.2rem; }
.news-item__body ul { list-style: disc; }
.news-item__body ol { list-style: decimal; }
.news-item__body li { margin-bottom: 0.2rem; }
.news-item__body strong,
.news-item__body b { color: var(--text-1); font-weight: 700; }
.news-item__body a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.news-item__body blockquote {
  margin: 0 0 0.7rem;
  padding: 0.5rem 0.7rem;
  background-color: var(--surface-2);
  border-radius: 0.4rem;
}
.news-item__body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.7rem 0;
  border-radius: 0.4rem;
}
.news-item__body hr { margin: 0.9rem 0; border: 0; border-top: 1px solid var(--line); }

/* ── 情報 ───────────────────────────────────────────────────────────── */
.info-heading {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
}
.info-heading:first-child { margin-top: 0; }
.info-sub { margin: 0 0 0.75rem; font-size: 0.74rem; color: var(--text-3); }
.info-text { margin: 0; font-size: 0.84rem; color: var(--text-2); white-space: pre-wrap; }

.info-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.info-chip.is-guest { border-color: var(--accent); }
.info-chip__tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-text);
}

/* 高さがばらばらなので段組みで流す。格子だと行の高さが最大に揃い、隙間だらけになる */
/* 写真・お品書き・紹介文が入ると縦に長くなる。
   スマホの幅で2段にすると1行が短すぎて読みにくいので、1段で並べる。 */
.info-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
  column-gap: 0.6rem;
}
@media (min-width: 560px) { .info-cards { columns: 2; } }
.info-card {
  display: inline-block;
  width: 100%;
  margin-bottom: 0.6rem;
  overflow: hidden;
  break-inside: avoid;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.info-card__name:last-child { padding-bottom: 0.6rem; }
.info-card__booth {
  display: inline-block;
  margin: 0.6rem 0.7rem 0;
  padding: 0.05rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-text);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.info-card__booth + .info-card__name { padding-top: 0.2rem; }

/* 一覧から地図へ */
.info-card__map {
  display: block;
  width: calc(100% - 1.4rem);
  margin: 0.6rem 0.7rem 0.7rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-2);
  background-color: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.info-card__map:active { background-color: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.info-card__photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* 出演者写真は切り取らない。縦位置・横位置のまま、いただいた構図で出す。 */
.artist-photo { display: block; width: 100%; height: auto; }
.artist-photo + .artist-photo { margin-top: 2px; }
.info-card__name { margin: 0; padding: 0.6rem 0.7rem 0; font-size: 0.82rem; font-weight: 500; }
.info-card__msg {
  margin: 0.25rem 0 0;
  padding: 0 0.7rem 0.7rem;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--text-3);
  /* 出店者が書いた改行をそのまま見せる */
  white-space: pre-wrap;
}

.info-list { margin: 0; }
.info-list__label {
  margin-top: 0.9rem;
  font-size: 0.74rem;
  color: var(--text-3);
}
.info-list__label:first-child { margin-top: 0; }
.info-list__value { margin: 0.15rem 0 0; font-size: 0.88rem; white-space: pre-wrap; }

.info-qa {
  padding: 0.9rem;
  margin-bottom: 0.6rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.info-qa__q { margin: 0; font-size: 0.86rem; font-weight: 700; }
.info-qa__a { margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--text-2); }

.info-bullets { margin: 0; padding-left: 1.1rem; }
.info-bullets li { margin-bottom: 0.5rem; font-size: 0.82rem; color: var(--text-2); }

/* ── オープニング（サイトと同じ演出） ───────────────────────────────── */
#intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
  animation: intro-out 0.5s ease 1.6s forwards;
}
.intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
#intro img {
  display: block;
  width: min(56vw, 260px);
  height: auto;
  animation: intro-logo 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.intro-bar {
  display: flex;
  width: min(56vw, 260px);
  height: 3px;
  transform-origin: left center;
  animation: intro-bar 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}
.intro-bar > span { flex: 1; }
.intro-bar > span:nth-child(1) { background-color: var(--logo-red); }
.intro-bar > span:nth-child(2) { background-color: var(--logo-blue); }
.intro-bar > span:nth-child(3) { background-color: var(--logo-green); }

@keyframes intro-logo {
  from { opacity: 0; transform: translateY(14px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes intro-bar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes intro-out {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  #intro { display: none; }
}

/* ── ホーム ─────────────────────────────────────────────────────────── */
/* 本文の左右の余白いっぱいまで写真を広げる */
.home-hero {
  position: relative;
  margin: -1rem -1rem 1.5rem;
  overflow: hidden;
  isolation: isolate;
}
.home-hero__bg {
  display: block;
  width: 100%;
  height: 15rem;
  object-fit: cover;
}
/* 写真の上に文字を載せるので、単色の膜をかけて読めるようにする */
.home-hero__scrim {
  position: absolute;
  inset: 0;
  background-color: rgba(16, 18, 22, 0.70);
}
.home-hero__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
}
.home-hero__logo { width: min(52vw, 200px); height: auto; }
.home-hero__year {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  /* 字間を空けると右にずれて見えるので、その分だけ戻す */
  text-indent: 0.42em;
  color: var(--text);
}
.home-hero__count {
  display: inline-block;
  margin: 0.5rem 0 0;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  background-color: var(--accent);
  border-radius: 999px;
}
.home-hero__count:empty { display: none; }

/* オープニングの年号 */
.intro-year {
  margin: -0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--text);
  animation: intro-logo 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.section-head {
  margin: 2rem 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
}

/* 見出しを押すと開く箱 */
.fold {
  margin-bottom: 0.5rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fold__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  text-align: left;
  font-size: 0.86rem;
  font-weight: 500;
}
.fold__head > span:first-child { flex: 1 1 auto; min-width: 0; }
.fold__mark { flex: 0 0 auto; color: var(--text-3); font-size: 0.95rem; }
.fold__body {
  padding: 0 0.9rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-2);
}
.fold__body .info-bullets { margin: 0; }
.fold__body .info-text { margin: 0; }

/* ── 出店カードの品目 ───────────────────────────────────────────────── */
.info-card__items {
  margin: 0.25rem 0 0;
  padding: 0 0.7rem;
  font-size: 0.74rem;
  line-height: 1.65;
  color: var(--text-2);
}
.info-card__items:last-child { padding-bottom: 0.7rem; }

/* ── 出演者の詳細 ────────────────────────────────────────────────────
   タイムテーブルで名前を押すと開く。写真はここで見せる。 */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; }
@media (min-width: 560px) { .sheet { align-items: center; justify-content: center; } }

.sheet__backdrop { position: absolute; inset: 0; background-color: rgba(0, 0, 0, 0.72); }

.sheet__panel {
  position: relative;
  width: 100%;
  max-width: 28rem;
  max-height: 88vh;
  overflow-y: auto;
  padding-bottom: 1.25rem;
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  animation: sheet-in 0.22s ease both;
}
@media (min-width: 560px) { .sheet__panel { border-radius: var(--radius-lg); } }

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .sheet__panel { animation: none; } }

.sheet__close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.35rem;
  line-height: 1;
  color: #FFFFFF;
  background-color: rgba(16, 18, 22, 0.66);
  border-radius: 999px;
}

.sheet__photos { display: block; }
.sheet__photo { display: block; width: 100%; height: auto; }
.sheet__photo + .sheet__photo { margin-top: 2px; }

.sheet__body { padding: 1rem 1.1rem 0; }
.sheet__stage { margin: 0; font-size: 0.72rem; color: var(--text-3); }
.sheet__name { margin: 0.2rem 0 0; font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.sheet__time {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.sheet__note {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--text-3);
  white-space: pre-wrap;
}
.sheet__actions { margin-top: 1rem; }
.sheet__actions .btn { width: 100%; }

/* 開いているあいだは後ろを動かさない */
.sheet-open, .sheet-open body { overflow: hidden; }

/* シートの中身（ステージ・出店） */
.sheet__delay { margin: 0.5rem 0 0; font-size: 0.82rem; font-weight: 700; color: var(--accent-text); }
.sheet__items { margin: 0.4rem 0 0; font-size: 0.82rem; color: var(--text-2); line-height: 1.7; }

.sheet__now {
  margin-top: 0.8rem;
  padding: 0.7rem 0.8rem;
  background-color: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.sheet__now.is-now { border-color: var(--accent); }
.sheet__now-label {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.sheet__now.is-now .sheet__now-label {
  color: #FFFFFF;
  background-color: var(--accent);
  border-color: var(--accent);
}
.sheet__now-name { margin: 0.35rem 0 0; font-size: 0.95rem; font-weight: 700; }
.sheet__now-time { margin: 0.15rem 0 0; font-size: 0.76rem; color: var(--text-3); font-variant-numeric: tabular-nums; }

.sheet__acts { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.sheet__act + .sheet__act { border-top: 1px solid var(--line); }
.sheet__act.is-done { opacity: 0.45; }
.sheet__act-btn {
  display: flex;
  gap: 0.7rem;
  width: 100%;
  padding: 0.5rem 0;
  text-align: left;
  font-size: 0.84rem;
}
.sheet__act-time {
  flex: 0 0 2.7rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.sheet__act-name { flex: 1 1 auto; min-width: 0; }

/* ── 当日のお問い合わせ ───────────────────────────────────────────────── */
.inquiry {
  padding: 1rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.inquiry__lead { margin: 0; font-size: 0.8rem; color: var(--text-2); }
.inquiry__urgent {
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text);
  background-color: var(--surface-2);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}
.inquiry__urgent strong { color: var(--accent-text); }

.inquiry__form { margin-top: 1rem; }
.inquiry__label {
  display: block;
  margin: 0.75rem 0 0.25rem;
  font-size: 0.74rem;
  color: var(--text-3);
}
.inquiry__form input[type="text"],
.inquiry__form textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background-color: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.inquiry__form textarea { line-height: 1.7; resize: vertical; }
.inquiry__form .btn { width: 100%; margin-top: 0.75rem; }
.inquiry__note { margin: 0.5rem 0 0; font-size: 0.76rem; color: var(--text-3); }

.inquiry-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.inquiry__head { margin: 0 0 0.5rem; font-size: 0.76rem; font-weight: 700; color: var(--text-2); }

.inq {
  padding: 0.75rem 0.8rem;
  margin-bottom: 0.6rem;
  background-color: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.inq.is-answered { border-color: var(--accent); }
.inq__head { display: flex; align-items: center; gap: 0.6rem; }
.inq__time { font-size: 0.72rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.inq__status {
  padding: 0.05rem 0.5rem;
  font-size: 0.66rem;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.inq.is-answered .inq__status {
  color: #FFFFFF;
  background-color: var(--accent);
  border-color: var(--accent);
}
.inq__body {
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.inq__answer {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}
.inq__answer-label { font-size: 0.7rem; font-weight: 700; color: var(--accent-text); }
.inq__answer-body {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--text-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.inq__published {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  color: var(--text-3);
}

/* ── お困りごと回答コーナー ─────────────────────────────────────────── */
.answers { margin-bottom: 0.5rem; }
.answers__lead {
  margin: -0.25rem 0 0.75rem;
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--text-3);
}
.answer-list { list-style: none; margin: 0; padding: 0; }
.answer {
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.6rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.answer__q {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.answer__a {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}
.answer__label { font-size: 0.7rem; font-weight: 700; color: var(--accent-text); }
.answer__body {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--text-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.answer__time {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
