@charset "UTF-8";
/* =========================================================
   菅叶和応援広告企画2026 共通スタイル
   ・スマホ優先（min-width でPC向けに上書き）
   ・色やサイズは :root の変数でまとめて管理
   ========================================================= */

/* ---------- 変数 ---------- */
:root {
  /* 背景のパステル3色 */
  --bg-sky: #cdeefe;
  --bg-pink: #ffe0ee;
  --bg-yellow: #fff7d1;

  /* アクセント */
  --accent: #ff4f9a;
  --accent-soft: #ffb3d1;
  --text: #5a4a5e;

  /* ピンク・水色（ハッシュタグや注意書きなど、カード以外でも使う） */
  --pink-border: #ffb3d1;
  --pink-text: #e0457b;
  --blue-border: #9edcf0;
  --blue-text: #1f8fb0;

  /* メッセージカード6色（枠 / 文字）。オープニングのペンライトと同じ6色の色み。
     文字は白いカードの上で読みやすい濃さ（コントラスト比 4.5 以上）にしている */
  --card-pink-border: #ffb3d1;
  --card-pink-text: #d1307f;
  --card-sky-border: #9edcf0;
  --card-sky-text: #1a7fa6;
  --card-yellow-border: #ffd84a;
  --card-yellow-text: #9a6a00;
  --card-blue-border: #9db2ff;
  --card-blue-text: #2f58d6;
  --card-red-border: #ff9e94;
  --card-red-text: #d2362a;
  --card-white-border: #d9d6e6;
  --card-white-text: #5f5a78;

  /* レイアウト */
  --header-h: 56px;
  --bottom-nav-h: 64px;
  --card-w: 207px;        /* スマホ：12px × 15文字 ＋ 左右の余白24px ＋ 枠3px */
  --gap-avg: 24px;        /* カード同士の平均のすき間（実際の間隔はJSでばらつかせる） */

  --font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif,
          "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
}

@media (min-width: 768px) {
  :root {
    --card-w: 308px;    /* PC：13px × 21文字 ＋ 左右の余白32px ＋ 枠3px */
    --gap-avg: 36px;
  }
}

/* ---------- リセット・基本 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-weight: 500;
  color: var(--text);
  line-height: 1.7;
  /* 全画面のパステルグラデーション（固定） */
  background: linear-gradient(160deg, var(--bg-sky) 0%, var(--bg-pink) 52%, var(--bg-yellow) 100%) fixed;
  background-color: var(--bg-pink);
  overflow-x: hidden;
  /* スマホ下部ナビのぶん余白を空ける */
  padding-bottom: var(--bottom-nav-h);
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

img {
  max-width: 100%;
  height: auto;
}

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

/* hidden 属性は display を指定した要素にも必ず効かせる */
[hidden] {
  display: none !important;
}

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

/* =========================================================
   背景装飾（星・花びら・メインイラスト）
   ========================================================= */
.deco {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* 星：radial-gradient を重ねた静止レイヤー（DOM要素を増やさない） */
.deco__stars {
  position: absolute;
  inset: 0;
  opacity: 0.85;
  background-image:
    radial-gradient(circle, #fff 0 2px, transparent 3px),
    radial-gradient(circle, #fff5a8 0 1.5px, transparent 2.5px),
    radial-gradient(circle, #fff 0 1px, transparent 2px),
    radial-gradient(circle, #ffd1e6 0 1.5px, transparent 2.5px);
  background-size: 220px 240px, 310px 280px, 170px 150px, 260px 330px;
  background-position: 20px 30px, 120px 90px, 60px 140px, 200px 10px;
}

/* キラッとした十字の星（数個だけ） */
.deco__sparkle {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  opacity: 0.9;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
  animation: twinkle 4s ease-in-out infinite;
}

.deco__sparkle:nth-child(2) { top: 14%; left: 8%; }
.deco__sparkle:nth-child(3) { top: 22%; right: 10%; width: 14px; height: 14px; animation-delay: 1.2s; }
.deco__sparkle:nth-child(4) { top: 62%; left: 4%; width: 12px; height: 12px; animation-delay: 2.1s; }
.deco__sparkle:nth-child(5) { top: 48%; right: 5%; animation-delay: 0.6s; }

@keyframes twinkle {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(0.6); opacity: 0.4; }
}

/* 花びら：JSで数個だけ生成。transform と opacity のみ動かして軽量に */
.petal {
  position: absolute;
  top: -40px;
  left: var(--x, 50%);
  width: var(--size, 14px);
  height: calc(var(--size, 14px) * 0.8);
  background: linear-gradient(135deg, #ffd3e5, #ffa9cb);
  border-radius: 80% 0 80% 0;
  opacity: 0;
  will-change: transform;
  animation: petal-fall var(--dur, 16s) linear var(--delay, 0s) infinite;
}

@keyframes petal-fall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.8; }
  50% { transform: translate(var(--sway, 40px), 55vh) rotate(200deg); }
  90% { opacity: 0.7; }
  100% { transform: translate(0, 110vh) rotate(400deg); opacity: 0; }
}

/* メインイラスト：画面下中央に大きく
   （現在は未使用。使うときは <img class="main-illust" src="..." alt=""> を body 直下に置く） */
.main-illust {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: -1;
  width: min(92vw, 720px);
  max-height: 78vh;
  object-fit: contain;
  object-position: bottom;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

/* =========================================================
   ヘッダー・メニュー
   ========================================================= */
/* ヘッダーは固定しない（スクロールすると一緒に流れて見えなくなる）。
   メニューボタンだけ右上に固定する。
   ※ backdrop-filter を付けると中の固定ボタンがヘッダーに閉じ込められるので使わない */
.site-header {
  position: relative;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 72px 0 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 8px rgba(255, 79, 154, 0.08);
}

.site-logo {
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .site-logo {
    font-size: 18px;
  }
}

/* ハンバーガーボタン（CSSで描く3本線） */
/* 右上に固定した丸いメニューボタン（ピンクのグラデーションに白い線） */
.menu-btn {
  position: fixed;
  top: 6px;
  right: 10px;
  z-index: 70;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8fb3, #ff4f9a);
  box-shadow: 0 4px 12px rgba(255, 79, 154, 0.35);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.menu-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(255, 79, 154, 0.45);
}

.menu-btn span {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-btn span:nth-child(1) { top: 12px; }
.menu-btn span:nth-child(2) { top: 19px; }
.menu-btn span:nth-child(3) { top: 26px; }

/* 開いているときは × に変形 */
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 右から出てくるメニュー */
.site-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(78vw, 300px);
  height: 100%;
  padding: calc(var(--header-h) + 16px) 24px 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: -4px 0 20px rgba(255, 79, 154, 0.15);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s ease, visibility 0.35s;
}

.site-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

.site-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu a {
  display: block;
  padding: 14px 8px;
  border-bottom: 1px dashed var(--accent-soft);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.site-menu a:hover,
.site-menu a[aria-current="page"] {
  color: var(--accent);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(90, 74, 94, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* =========================================================
   フッター・スマホ下部ナビ
   ========================================================= */
.site-footer {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.6);
}

.site-footer__x {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.site-footer__x svg {
  width: 18px;
  height: 18px;
}

/* 非公式である旨の注記 */
.site-footer__note {
  margin: 0 auto 8px;
  font-size: 11px;
  line-height: 1.6;
  opacity: 0.8;
}

/* 文の区切りで折り返す（画面が狭いときだけ2行になる） */
.site-footer__note span {
  display: inline-block;
}

.site-footer small {
  display: block;
  font-size: 12px;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: var(--bottom-nav-h);
  display: flex;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 -2px 10px rgba(255, 79, 154, 0.1);
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.bottom-nav svg {
  width: 24px;
  height: 24px;
}

.bottom-nav a[aria-current="page"] {
  color: var(--accent);
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

/* =========================================================
   共通パーツ
   ========================================================= */
main {
  flex: 1;
  width: 100%;
}

/* 白いピル型の見出し */
.pill-title {
  display: block;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 20px auto 12px;
  padding: 10px 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(255, 79, 154, 0.15);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  line-height: 1.5;
}

@media (min-width: 400px) {
  .pill-title {
    font-size: 15px;
  }
}

@media (min-width: 768px) {
  .pill-title {
    margin-top: 28px;
    padding: 12px 36px;
    font-size: 20px;
  }
}

/* ピンクのボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 10px 28px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 79, 154, 0.18);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--accent);
  color: #fff;
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

/* 白い半透明パネル */
.panel {
  width: min(100% - 32px, 760px);
  margin: 0 auto 24px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(255, 79, 154, 0.1);
}

@media (min-width: 768px) {
  .panel {
    padding: 28px 36px;
  }
}

.panel__title {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 800;
}

/* =========================================================
   メッセージカード
   ========================================================= */
.card {
  /* 色は --c-border / --c-text で切り替え */
  --c-border: var(--card-pink-border);
  --c-text: var(--card-pink-text);
  position: relative;
  width: var(--card-w);
  padding: 10px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(120, 90, 130, 0.06);
  color: var(--c-text);
  cursor: pointer;
  transition: box-shadow 0.2s;
}

/* 6色（並び順は js/messages.js の COLORS） */
.card--pink   { --c-border: var(--card-pink-border);   --c-text: var(--card-pink-text); }
.card--sky    { --c-border: var(--card-sky-border);    --c-text: var(--card-sky-text); }
.card--yellow { --c-border: var(--card-yellow-border); --c-text: var(--card-yellow-text); }
.card--blue   { --c-border: var(--card-blue-border);   --c-text: var(--card-blue-text); }
.card--red    { --c-border: var(--card-red-border);    --c-text: var(--card-red-text); }
.card--white  { --c-border: var(--card-white-border);  --c-text: var(--card-white-text); }

.card:hover,
.card:focus-visible {
  box-shadow: 0 6px 18px rgba(120, 90, 130, 0.16);
}

.card:focus-visible {
  outline: 2px solid var(--c-border);
  outline-offset: 3px;
}

.card__text {
  margin: 0;
  font-size: 12px;          /* スマホ。PCは14px（長いメッセージでも重なりすぎないよう小さめ） */
  font-weight: 700;
  line-height: 1.65;
  text-align: left;
  /* 改行をそのまま表示・長い英数字も折り返す */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.card__name {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  opacity: 0.75;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .card {
    padding: 14px 16px;
  }

  .card__text {
    font-size: 13px;
    line-height: 1.7;
  }

  .card__name {
    font-size: 12px;
  }
}

/* トップページ用の小さいカード */
.flow--compact {
  --card-w: 207px;   /* 12px × 15文字 ＋ 余白24px ＋ 枠3px */
  --gap-avg: 24px;
}

.flow--compact .card {
  padding: 10px 12px;
}

.flow--compact .card__text {
  font-size: 12px;
  line-height: 1.6;
}

.flow--compact .card__name {
  font-size: 11px;
}

@media (min-width: 768px) {
  .flow--compact {
    --card-w: 279px; /* 12px × 21文字 ＋ 余白24px ＋ 枠3px */
    --gap-avg: 30px;
  }
}

/* =========================================================
   メッセージが流れるエリア
   ・.lane > .track > .set × 2 > .slot > .card
   ・.slot の幅は「カード幅＋すき間」。すき間はJSでランダムにするが、
     1セット内の合計は「枚数 × --gap-avg」にそろえるので .set の幅は常に一定
     → 2セット並べて translateX(0 → -50%) で継ぎ目なくループ
   ========================================================= */
.flow {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  /* 横方向ははみ出しを隠す。縦はレーン同士で重なってOK */
  overflow: hidden;
  /* 長文カードがレーンからはみ出しても切れにくいよう上下に余白 */
  padding: 56px 0;
}

@media (min-width: 768px) {
  .flow {
    padding: 48px 0;
  }
}

.lane {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
}

/* 横方向の指の動きはスライド操作に使い、縦方向はページのスクロールに任せる */
.lane {
  touch-action: pan-y;
}

/* スライド中：このレーンの自動スクロールを止め、文字選択もしない */
.lane.is-dragging {
  z-index: 2;
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

.lane.is-dragging .track {
  animation-play-state: paused;
}

/* マウスを乗せた・フォーカスしたカードのレーンを手前に */
.lane:hover,
.lane:focus-within {
  z-index: 2;
}

.track {
  display: flex;
  width: max-content;
  animation: flow-left var(--dur, 60s) linear infinite;
  will-change: transform;
}

@keyframes flow-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.set {
  display: flex;
  align-items: center;
  flex: none;
}

.slot {
  flex: none;
  width: calc(var(--card-w) + var(--gap, var(--gap-avg)));
  display: flex;
  justify-content: flex-start; /* カードは左寄せ。右側がすき間になる */
}

/* カードごとの縦の「ずれ」（JSで --dy をランダムに設定） */
.slot .card {
  transform: translate(var(--dx, 0px), var(--dy, 0px));
}

.slot .card:hover,
.slot .card:focus-visible {
  z-index: 1;
}

/* PC：マウスを乗せたカードのレーンだけ一時停止 */
@media (hover: hover) {
  .lane:has(.card:hover) .track {
    animation-play-state: paused;
  }
}

/* キーボードでフォーカス中も止める */
.lane:has(.card:focus-visible) .track,
/* モーダル表示中・一覧表示中は全停止 */
body.is-paused .track {
  animation-play-state: paused;
}

/* 読み込み中・エラー表示 */
.flow__status {
  margin: auto;
  padding: 16px;
  color: var(--text);
  font-weight: 700;
  text-align: center;
}

/* --- メッセージページのレイアウト --- */
.message-page {
  display: flex;
  flex-direction: column;
}

.message-page .flow {
  /* ヘッダー・見出し・ボタン・下部ナビを除いた高さいっぱい */
  height: calc(100dvh - var(--header-h) - var(--bottom-nav-h) - 150px);
  min-height: 460px;
}

@media (min-width: 768px) {
  .message-page .flow {
    height: calc(100dvh - var(--header-h) - 170px);
    min-height: 560px;
  }
}

.message-actions {
  display: flex;
  justify-content: center;
  padding: 8px 16px 24px;
}

/* --- トップページの縮小版 --- */
.flow--compact {
  height: 480px;
  padding: 48px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

@media (min-width: 768px) {
  .flow--compact {
    height: 460px;
  }
}

/* =========================================================
   一覧（グリッド）表示
   ========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  width: min(100% - 32px, 1200px);
  margin: 8px auto 24px;
}

.grid .card {
  width: auto;
}

.grid[hidden],
.flow[hidden] {
  display: none;
}

/* =========================================================
   モーダル（<dialog> を使用）
   ========================================================= */
.modal {
  width: min(100% - 32px, 560px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.modal::backdrop {
  background: rgba(90, 74, 94, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal[open] {
  animation: modal-in 0.25s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.modal__card {
  width: 100%;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 32px 28px 24px;
  background: rgba(255, 255, 255, 0.97);
  cursor: default;
}

.modal__card .card__text {
  font-size: 18px;
  line-height: 1.9;
}

.modal__card .card__name {
  font-size: 14px;
}

.modal__close {
  position: absolute;
  top: -14px;
  right: -10px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent-soft);
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 79, 154, 0.2);
}

.modal__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =========================================================
   トップページ
   ========================================================= */
/* ---------- 駅広告スライドショー ---------- */
.carousel {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .carousel {
    margin-top: 20px;
  }
}

.carousel__viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1414 / 1000;
  background: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .carousel__viewport {
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(90, 74, 94, 0.15);
  }
}

.carousel__track {
  display: flex;
  height: 100%;
  /* JS で --index（何枚目か）を変えて横にずらす */
  transform: translateX(calc(var(--index, 0) * -100%));
  transition: transform 0.6s ease;
}

.carousel__track.is-jumping {
  transition: none; /* ループの端から反対の端へ瞬間移動するとき */
}

.carousel__slide {
  flex: 0 0 100%;
  height: 100%;
}

.carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

/* 左右のタップ領域：画像の左右それぞれ約3割 */
.carousel__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 30%;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.carousel__nav--prev {
  left: 0;
  justify-content: flex-start;
}

.carousel__nav--next {
  right: 0;
  justify-content: flex-end;
}

/* 矢印（白い丸の中に ‹ ›） */
.carousel__nav span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 8px rgba(90, 74, 94, 0.2);
  transition: background 0.2s, transform 0.2s;
}

.carousel__nav span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2.5px solid var(--accent);
  border-right: 2.5px solid var(--accent);
}

.carousel__nav--prev span::before {
  transform: translateX(2px) rotate(-135deg);
}

.carousel__nav--next span::before {
  transform: translateX(-2px) rotate(45deg);
}

.carousel__nav:hover span {
  background: #fff;
}

.carousel__nav:active span {
  transform: scale(0.9);
}

.carousel__nav:focus-visible {
  outline: none;
}

.carousel__nav:focus-visible span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* 何枚目かを示すドット */
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
}

.carousel__dots button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.carousel__dots button::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin: auto;
  border-radius: 50%;
  background: rgba(255, 79, 154, 0.3);
  transition: background 0.2s, transform 0.2s;
}

.carousel__dots button[aria-current="true"]::before {
  background: var(--accent);
  transform: scale(1.25);
}

.carousel__dots button:focus-visible {
  outline: 2px solid var(--accent);
  border-radius: 50%;
}

.hero {
  padding: 24px 16px 8px;
  text-align: center;
}

.hero__title {
  margin: 0;
  color: var(--accent);
  font-size: clamp(22px, 6vw, 40px);
  font-weight: 800;
  line-height: 1.5;
  text-shadow: 0 2px 0 #fff, 0 0 12px rgba(255, 255, 255, 0.9);
}

.hero__title span {
  display: inline-block;
}

/* カウントダウン */
.countdown {
  text-align: center;
}

.countdown__label {
  margin: 0 0 8px;
  font-weight: 700;
}

.countdown__nums {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.countdown__unit {
  min-width: 64px;
  padding: 8px 6px;
  border: 1.5px solid var(--accent-soft);
  border-radius: 14px;
  background: #fff;
}

.countdown__unit b {
  display: block;
  color: var(--accent);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.countdown__unit small {
  font-size: 11px;
  font-weight: 700;
}

.countdown__hb {
  margin: 0;
  color: var(--accent);
  font-size: clamp(30px, 9vw, 52px);
  font-weight: 800;
  letter-spacing: 0.04em;
  animation: hb-pop 1.6s ease-in-out infinite;
}

/* 掲出期間終了後のお礼 */
.countdown__thanks {
  margin: 4px 0;
  white-space: pre-line; /* js/main.js の THANKS_TEXT の \n で改行 */
  color: var(--accent);
  font-size: clamp(18px, 5.2vw, 26px);
  font-weight: 800;
  line-height: 1.6;
}

@keyframes hb-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* お知らせ */
.news {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--accent-soft);
}

.news li:last-child {
  border-bottom: 0;
}

.news time {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.news__empty {
  opacity: 0.7;
}

/* ハッシュタグの表示と「ハッシュタグをコピー」ボタン */
.news__links {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.news__tag {
  padding: 4px 12px;
  border: 1.5px solid var(--blue-border);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.news__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

/* 先頭にコピーのアイコン（重なった四角） */
.news__copy::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 3px;
  box-shadow: 3px -3px 0 -1px var(--accent), 3px -3px 0 1px currentColor;
}

.news__copy:hover {
  background: #e83e88;
}

.news__copy.is-done {
  background: var(--blue-text);
}

.news__copy.is-done::before {
  display: none;
}

.news__copy:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.section-more {
  display: flex;
  justify-content: center;
  margin: 12px 0 28px;
}

/* =========================================================
   駅広告（イラスト／インフォメーションページ）
   ・見出し → 説明文 → 駅ごとのカード（画像・場所・補足）
   ========================================================= */
.section-head {
  padding: 28px 16px 8px;
  text-align: center;
}

.section-head__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
}

.section-head__lead {
  margin: 12px 0 0;
  font-size: 14px;
}

@media (min-width: 768px) {
  .section-head {
    padding-top: 40px;
  }

  .section-head__title {
    font-size: 26px;
  }

  .section-head__lead {
    font-size: 15px;
  }
}

.station-list {
  display: grid;
  gap: 24px;
  width: min(100% - 32px, 740px);
  margin: 20px auto 40px;
}

.station-card {
  margin: 0;
  padding: 16px 16px 20px;
  border-radius: 16px;
  background: rgba(250, 250, 250, 0.95);
  box-shadow: 0 6px 20px rgba(90, 74, 94, 0.12);
  text-align: center;
}

@media (min-width: 768px) {
  .station-card {
    padding: 24px 40px 28px;
  }
}

.station-card__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.station-card__place {
  margin: 20px 0 0;
  font-size: 16px;
  font-weight: 800;
}

.station-card__note {
  margin: 10px 0 0;
  font-size: 14px;
  opacity: 0.85;
}

@media (min-width: 768px) {
  .station-card__place {
    font-size: 18px;
  }
}

/* 絵師さんのXプロフィールへのリンク（イラストページ） */
.station-card__artist {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.station-card__artist:hover {
  text-decoration-thickness: 2px;
}

/* 場所・日程（インフォメーション） */
.station-card__info {
  max-width: 560px;
  margin: 14px auto 0;
  text-align: left;
  font-size: 14px;
}

.station-card__info > div {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed var(--accent-soft);
}

.station-card__info > div:last-child {
  border-bottom: 1px dashed var(--accent-soft);
}

.station-card__info dt {
  flex: none;
  min-width: 2.5em;
  color: var(--accent);
  font-weight: 800;
}

.station-card__info dd {
  margin: 0;
  font-weight: 700;
}

/* 場所の詳しい説明 */
.station-card__detail {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
  opacity: 0.85;
}

/* マップ画像：タップ・クリックで元の大きさの画像を別タブで開く */
.station-card__zoom {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.station-card__zoom-hint {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.7;
}

@media (min-width: 768px) {
  .station-card__zoom-hint {
    display: none; /* PCでは十分な大きさで見えるので案内は出さない */
  }
}

/* ---------- 画像の拡大表示（js/main.js の initLightbox） ---------- */
html.is-lightbox-open {
  overflow: hidden; /* 表示中は後ろのページをスクロールさせない */
}

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(40, 30, 45, 0.9);
  color: #fff;
  overflow: hidden;
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox[open] {
  animation: modal-in 0.2s ease;
}

.lightbox__scroller {
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 12px 52px;
  -webkit-overflow-scrolling: touch;
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  background: #fff;
  cursor: zoom-in;
  -webkit-user-drag: none;
  user-select: none;
}

/* 拡大中：画像を大きくして、スクロールで見たい場所へ動かせるようにする */
.lightbox.is-zoomed .lightbox__scroller {
  display: block;
  padding: 0;
}

.lightbox.is-zoomed .lightbox__img {
  max-width: none;
  max-height: none;
  border-radius: 0;
  cursor: zoom-out;
}

.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.lightbox__close:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.lightbox__hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  font-size: 12px;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

/* ※注意書き（改札外＝水色／改札内＝ピンク） */
.station-card__caution {
  display: inline-block;
  margin: 14px 0 0;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .station-card__caution {
    padding: 6px 14px;
    font-size: 13px;
  }
}

.station-card__caution--free {
  background: #e3f5fb;
  color: var(--blue-text);
}

.station-card__caution--ticket {
  background: #ffe8f1;
  color: var(--pink-text);
}


/* =========================================================
   動きを減らす設定の人向け
   ・自動スクロールをやめ、各レーンを横スクロールで読めるように
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .track {
    animation: none;
  }

  .flow {
    overflow: visible;
    justify-content: flex-start;
    gap: 16px;
  }

  .message-page .flow,
  .flow--compact {
    height: auto;
    min-height: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .lane {
    flex: none;
    overflow-x: auto;
    touch-action: auto; /* この表示ではブラウザの普通の横スクロールを使う */
    padding: 8px 0 16px;
    scroll-snap-type: x proximity;
  }

  .slot {
    scroll-snap-align: start;
    align-self: flex-start;
  }

  .slot .card {
    transform: none;
  }

  .carousel__track {
    transition: none;
  }

  .petal,
  .deco__sparkle,
  .countdown__hb,
  .modal[open],
  .lightbox[open] {
    animation: none;
  }

  .petal {
    display: none;
  }
}
