/* ============================================================
   東京 盆踊りマップ — 「宵祭り」テーマ
   濃藍の夜空に提灯の灯り。3分で夕方から夜、朝、昼へ巡る。
   ============================================================ */

:root {
  /* 夜空の階調（夕暮れ→宵→深夜） */
  --sunset-high: #b0678b;
  --sunset-mid: #e16a66;
  --sunset-low: #ffae63;
  --sunset-glow: rgba(255, 184, 92, 0.62);
  --dusk: #5a4a83;
  --yoi: #27365d;
  --night: #1b294b;
  --shinya: #192236;
  /* 灯り */
  --lantern: #ff6f4f;
  --lantern-hot: #d9362e;
  --lantern-glow: rgba(255, 82, 55, 0.42);
  /* 差し色・地色 */
  --shu: #e85a4f;
  --kinari: #f3ecdc;
  --text: #f6f0df;
  --text-dim: #d2cbb9;
  --card: rgba(24, 34, 70, 0.88);
  --card-border: rgba(255, 198, 122, 0.24);
  --silhouette: #070a18;
  --wave-line: rgba(243, 236, 220, .07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--shinya); }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--text);
  background: var(--shinya);
  min-height: 100vh;
  font-size: 19px;
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, .brand-name { font-family: "Zen Old Mincho", "Shippori Mincho", "Hiragino Mincho ProN", serif; }

a { color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ===== 時間で巡る空レイヤー ===== */
.sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: #df746c;
  animation: sky-base-cycle 270s linear infinite;
}

.sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(176, 103, 139, .92) 0%,
      rgba(225, 106, 102, .72) 30%,
      rgba(255, 174, 99, .86) 60%,
      rgba(90, 74, 131, .92) 100%);
  animation: sunset-layer-cycle 270s linear infinite;
}

.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 48% 58%,
      rgba(255, 222, 142, .42) 0%,
      rgba(255, 152, 82, .28) 24%,
      rgba(216, 86, 88, .1) 46%,
      transparent 68%);
  animation: sun-glow-cycle 270s linear infinite;
}

.stars {
  display: none;
}

@keyframes sky-base-cycle {
  /* 昼 33.75秒 */
  0%, 12.5%, 100% { background-color: #7fc4f2; }
  /* 夕方 67.5秒 */
  37.5% { background-color: #df746c; }
  /* 夜 135秒 */
  50%, 87.5% { background-color: #192236; }
  /* 朝 33.75秒 */
  93.75% { background-color: #7aa7c9; }
}

@keyframes sunset-layer-cycle {
  0%, 12.5%, 100% { opacity: .1; }
  37.5% { opacity: 1; }
  50%, 87.5% { opacity: 0; }
  93.75% { opacity: .34; }
}

@keyframes sun-glow-cycle {
  0%, 12.5%, 100% { opacity: .18; }
  37.5% { opacity: 1; }
  50%, 87.5% { opacity: 0; }
  93.75% { opacity: .55; }
}

/* 遠花火：夜だけ、たまに空の奥で開く */
.fireworks {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: fireworks-night-cycle 270s linear infinite;
  mix-blend-mode: screen;
}

.fw {
  --burst-size: 112px;
  --firework-core: #fff3bf;
  --firework-warm: #ffbc65;
  --firework-red: #ff7664;
  --firework-blue: #9fd8ff;
  --firework-green: #c8f7a7;
  position: absolute;
  width: var(--burst-size);
  height: var(--burst-size);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.18);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 246, 206, .92) 0 3%, transparent 4%),
    repeating-conic-gradient(
      from 7deg,
      transparent 0deg 10deg,
      color-mix(in srgb, var(--firework-core) 72%, transparent) 11deg 12deg,
      transparent 13deg 22deg
    ),
    radial-gradient(circle, transparent 0 34%, rgba(255, 235, 176, .34) 35% 36%, transparent 38% 58%, rgba(255, 136, 100, .2) 59% 60%, transparent 62%),
    radial-gradient(circle, rgba(255, 196, 110, .28), rgba(255, 118, 100, .12) 34%, transparent 68%);
  filter: drop-shadow(0 0 10px rgba(255, 194, 103, .42));
  animation: distant-firework 54s ease-out infinite;
}

.fw::before,
.fw::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.fw::before {
  width: 5px;
  height: 5px;
  background: var(--firework-core);
  box-shadow:
    0 calc(var(--burst-size) * -.46) 0 1px var(--firework-warm),
    calc(var(--burst-size) * .12) calc(var(--burst-size) * -.41) 0 0 var(--firework-core),
    calc(var(--burst-size) * .25) calc(var(--burst-size) * -.37) 0 1px var(--firework-red),
    calc(var(--burst-size) * .36) calc(var(--burst-size) * -.26) 0 0 var(--firework-blue),
    calc(var(--burst-size) * .46) calc(var(--burst-size) * -.08) 0 1px var(--firework-green),
    calc(var(--burst-size) * .43) calc(var(--burst-size) * .14) 0 0 var(--firework-core),
    calc(var(--burst-size) * .32) calc(var(--burst-size) * .32) 0 1px var(--firework-red),
    calc(var(--burst-size) * .12) calc(var(--burst-size) * .44) 0 0 var(--firework-warm),
    0 calc(var(--burst-size) * .48) 0 1px var(--firework-blue),
    calc(var(--burst-size) * -.15) calc(var(--burst-size) * .42) 0 0 var(--firework-core),
    calc(var(--burst-size) * -.34) calc(var(--burst-size) * .31) 0 1px var(--firework-green),
    calc(var(--burst-size) * -.45) calc(var(--burst-size) * .08) 0 0 var(--firework-red),
    calc(var(--burst-size) * -.45) calc(var(--burst-size) * -.13) 0 1px var(--firework-core),
    calc(var(--burst-size) * -.33) calc(var(--burst-size) * -.32) 0 0 var(--firework-blue),
    calc(var(--burst-size) * -.14) calc(var(--burst-size) * -.44) 0 1px var(--firework-warm);
}

.fw::after {
  width: 62%;
  height: 62%;
  border: 1px solid rgba(255, 239, 190, .46);
  box-shadow:
    0 0 18px 4px rgba(255, 194, 103, .32),
    inset 0 0 18px rgba(255, 118, 100, .22);
  background:
    radial-gradient(circle, rgba(255, 246, 206, .65) 0 4%, transparent 6%),
    repeating-conic-gradient(from 18deg, transparent 0deg 16deg, rgba(255, 238, 190, .46) 17deg 18deg, transparent 19deg 34deg);
  opacity: .8;
}

.fw1 {
  --burst-size: 132px;
  top: 8%;
  left: 69%;
  animation-delay: 8s;
}
.fw2 {
  --burst-size: 96px;
  --firework-warm: #ffd05a;
  --firework-red: #ff8f7a;
  --firework-blue: #b9f0ff;
  top: 17%;
  left: 13%;
  animation-delay: 27s;
}
.fw3 {
  --burst-size: 76px;
  --firework-warm: #ffe7a6;
  --firework-red: #ff9d6e;
  --firework-blue: #94c8ff;
  top: 7%;
  left: 43%;
  animation-delay: 43s;
}

@keyframes fireworks-night-cycle {
  0%, 49.5%, 88%, 100% { opacity: 0; }
  52%, 86% { opacity: .9; }
}

@keyframes distant-firework {
  0%, 77% { opacity: 0; transform: scale(.16) rotate(-8deg); filter: blur(1.4px) drop-shadow(0 0 0 rgba(255, 194, 103, 0)); }
  81% { opacity: .98; transform: scale(.42) rotate(2deg); filter: blur(.35px) drop-shadow(0 0 16px rgba(255, 194, 103, .5)); }
  90% { opacity: .92; transform: scale(1.02) rotate(10deg); filter: blur(0) drop-shadow(0 0 22px rgba(255, 194, 103, .44)); }
  100% { opacity: 0; transform: scale(1.42) rotate(18deg); filter: blur(1.6px) drop-shadow(0 0 8px rgba(255, 194, 103, .12)); }
}

body.sky-test-night .sky,
body.sky-test-night .sky::before,
body.sky-test-night .sky::after,
body.sky-test-night .fireworks,
body.sky-test-night .fw {
  animation: none !important;
}
body.sky-test-night .sky { background: #192236 !important; }
body.sky-test-night .sky::before,
body.sky-test-night .sky::after { opacity: 0 !important; }
body.sky-test-night .fireworks { opacity: 0 !important; }
body.sky-test-fireworks .fireworks { opacity: .9 !important; }
body.sky-test-fireworks .fw {
  animation: debug-firework-pop 2.8s ease-out both !important;
  opacity: 0;
  transform: scale(.12) rotate(-8deg);
  filter: blur(1.4px) drop-shadow(0 0 0 rgba(255, 194, 103, 0));
}
body.sky-test-fireworks .fw1 { animation-delay: 0s !important; }
body.sky-test-fireworks .fw2 { animation-delay: .28s !important; }
body.sky-test-fireworks .fw3 { animation-delay: .56s !important; }

@keyframes debug-firework-pop {
  0% { opacity: 0; transform: scale(.12) rotate(-8deg); filter: blur(1.4px) drop-shadow(0 0 0 rgba(255, 194, 103, 0)); }
  18% { opacity: .98; transform: scale(.36) rotate(1deg); filter: blur(.35px) drop-shadow(0 0 16px rgba(255, 194, 103, .5)); }
  48% { opacity: .94; transform: scale(1.02) rotate(10deg); filter: blur(0) drop-shadow(0 0 22px rgba(255, 194, 103, .44)); }
  100% { opacity: 0; transform: scale(1.42) rotate(18deg); filter: blur(1.6px) drop-shadow(0 0 8px rgba(255, 194, 103, .12)); }
}

.sky-debug {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 80;
  display: flex;
  gap: 6px;
  padding: 7px;
  background: rgba(5, 7, 18, .78);
  border: 1px solid rgba(255, 180, 94, .32);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .34);
}
.sky-debug button {
  min-width: 48px;
  padding: 7px 11px;
  color: var(--kinari);
  background: rgba(255, 180, 94, .08);
  border: 1px solid rgba(255, 180, 94, .26);
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.sky-debug button:hover,
.sky-debug button:focus-visible,
.sky-debug button.on {
  color: #2c1c10;
  background: linear-gradient(180deg, #ffe2b8, var(--lantern));
  border-color: var(--lantern);
  outline: none;
}

/* 最下部に着いた時だけ上がる花火 */
.bottom-fireworks {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
}
body.fireworks-on .bottom-fireworks {
  opacity: 1;
}
.burst {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0;
  transform: scale(.2);
  background: #fff1ba;
  box-shadow:
    0 -54px 0 2px #ffe7a6,
    38px -38px 0 1px #ff7664,
    54px 0 0 2px #ffd05a,
    38px 38px 0 1px #ffffff,
    0 54px 0 2px #ff7664,
    -38px 38px 0 1px #ffd05a,
    -54px 0 0 2px #fff1ba,
    -38px -38px 0 1px #ff7664;
  animation: none;
}
body.fireworks-on .burst {
  animation: firework-pop 1.55s ease-out both;
}
.b1 { left: 18%; top: 20%; }
.b2 { left: 50%; top: 14%; animation-delay: .18s; }
.b3 { left: 78%; top: 24%; animation-delay: .34s; }
.b4 { left: 34%; top: 36%; animation-delay: .52s; }
.b5 { left: 64%; top: 40%; animation-delay: .7s; }

@keyframes firework-pop {
  0% { opacity: 0; transform: scale(.12); filter: blur(1px); }
  14% { opacity: 1; }
  58% { opacity: .95; transform: scale(1.12); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.75); filter: blur(1.5px); }
}

/* ===== ナビ ===== */
.top-nav {
  position: relative; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(16px, 4vw, 48px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  transition: color .25s, filter .25s;
}
.brand:hover,
.brand:focus-visible {
  color: var(--lantern);
  filter: drop-shadow(0 0 12px var(--lantern-glow));
  outline: none;
}
.brand-mark {
  position: relative;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1.7px solid var(--shu); border-radius: 50%;
  color: var(--shu);
  font-family: "Zen Old Mincho", "Shippori Mincho", serif; font-weight: 900; font-size: 14px;
  line-height: 1.02;
  letter-spacing: .02em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  background: rgba(232, 90, 79, 0.08);
  box-shadow: inset 0 0 0 3px rgba(232, 90, 79, .2);
}
.brand-name { font-size: 21px; letter-spacing: .08em; font-weight: 800; }
.top-nav nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.top-nav nav a {
  text-decoration: none; font-size: 17px; letter-spacing: .04em;
  color: var(--text); font-weight: 600; transition: color .25s;
  white-space: nowrap;
}
.top-nav nav a:hover { color: var(--lantern); }

/* ===== ヒーロー ===== */
.hero {
  position: relative; z-index: 1;
  min-height: 78vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(16px, 6vw, 80px) 72px;
  overflow: hidden;
}

/* 提灯列 */
.lantern-string {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 204px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 36px clamp(24px, 3.8vw, 64px) 0;
  z-index: 4;
}
.rope {
  position: absolute; top: 27px; left: -4%; right: -4%; height: 86px;
  border-top: 2px solid rgba(233, 226, 207, .22);
  border-radius: 50%;
  pointer-events: none;
}
.lantern {
  position: relative;
  flex: 0 0 auto;
  width: 70px; height: 112px;
  background: none;
  border: 0;
  filter: drop-shadow(0 0 16px rgba(255, 104, 55, .55));
  transform-origin: 50% -22px;
  animation: sway 4.6s ease-in-out infinite alternate;
  cursor: pointer;
  text-decoration: none;
  color: #6b1712;
  appearance: none;
  font: inherit;
  transition: filter .18s, transform .18s;
}
/* 胴体はSVG（#chochin シンボル）。蓋ぶんだけボタンより上下にはみ出す */
.lantern .chochin {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 124%;
  aspect-ratio: 76 / 124;
  transform: translate(-50%, -50%);
}
.lantern span {
  position: absolute;
  inset: 14px 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: "Zen Old Mincho", "Shippori Mincho", serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: .03em;
  color: #5e1510;
  text-shadow: 0 1px 0 rgba(255, 238, 185, .42);
}
.lantern em {
  position: absolute;
  left: 50%;
  bottom: -32px;
  transform: translateX(-50%);
  min-width: 4.5em;
  color: var(--kinari);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 10px rgba(7, 10, 24, .8);
  opacity: .86;
}
.lantern:hover,
.lantern:focus-visible {
  filter: brightness(1.12) saturate(1.08) drop-shadow(0 0 24px rgba(255, 104, 55, .7));
  outline: none;
}
.lantern:focus-visible {
  outline: 3px solid rgba(255, 235, 183, .72);
  outline-offset: 7px;
}
.l1 { animation-delay: 0s;   top: 16px; }
.l2 { animation-delay: -1.2s; top: 2px; }
.l3 { animation-delay: -2.1s; top: 8px; }
.l4 { animation-delay: -.6s;  top: 0; }
.l5 { animation-delay: -1.7s; top: 14px; }
.l6 { animation-delay: -.9s;  top: 3px; }
.l7 { animation-delay: -2.6s; top: 13px; }

@keyframes sway { from { rotate: -3.2deg; } to { rotate: 3.2deg; } }
@keyframes mobile-sway { from { rotate: -2deg; } to { rotate: 2deg; } }

.hero-inner {
  position: relative;
  display: flex; align-items: center; gap: clamp(28px, 6vw, 90px);
  max-width: 1100px; margin: 0 auto; width: 100%;
  padding-top: 186px;
  z-index: 3;
}

/* 縦書き大見出し */
.tate {
  writing-mode: vertical-rl;
  font-size: clamp(50px, 6.2vw, 82px);
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.55;
  /* 高さは内容に任せ、<br> の2列だけで折る（中途半端な折り返し防止） */
  height: auto;
  color: var(--kinari);
  text-shadow: 0 0 34px rgba(255, 170, 80, .25);
  flex-shrink: 0;
}

.hero-copy .lede {
  font-size: clamp(21px, 2vw, 25px);
  letter-spacing: .02em;
  color: var(--text);
  margin-bottom: 34px;
  font-weight: 500;
}
.tonight-callout {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  margin: -12px 0 22px;
  padding: 9px 17px;
  color: var(--kinari);
  background: rgba(255, 111, 79, .13);
  border: 1px solid rgba(255, 111, 79, .48);
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 0 22px -5px var(--lantern-glow);
}
.tonight-callout[hidden] { display: none; }
.tonight-callout span { white-space: nowrap; }
.tonight-callout strong {
  color: #ffe7b7;
  font-family: "Zen Old Mincho", "Shippori Mincho", serif;
  font-size: 1.8em;
  line-height: 1;
}
.tonight-callout:hover,
.tonight-callout:focus-visible {
  border-color: var(--lantern);
  box-shadow: 0 0 30px -2px var(--lantern-glow);
  outline: none;
}
.lede .num {
  color: #ffe7b7;
  font-size: 1.5em;
  font-family: "Zen Old Mincho", "Shippori Mincho", serif;
  text-shadow: 0 2px 10px rgba(35, 12, 18, .7);
}

.cta {
  position: relative;
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 17px 34px;
  border: 1px solid var(--lantern);
  border-radius: 999px;
  text-decoration: none;
  font-size: 19px; letter-spacing: .03em;
  font-weight: 700;
  color: var(--kinari);
  background: linear-gradient(180deg, rgba(35, 12, 28, .46), rgba(35, 12, 28, .28));
  backdrop-filter: blur(4px);
  transition: box-shadow .3s, background .3s;
  appearance: none;
  font-family: inherit;
  cursor: pointer;
}
.cta strong {
  color: #ffe7b7;
  font-size: 1.6em;
  font-family: "Zen Old Mincho", "Shippori Mincho", serif;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(35, 12, 18, .7);
}
.cta:hover { box-shadow: 0 0 34px 4px var(--lantern-glow); background: rgba(35, 12, 28, .54); }
.cta-glow {
  position: absolute; inset: -1px; border-radius: inherit;
  box-shadow: 0 0 22px 2px var(--lantern-glow);
  animation: pulse 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

/* ===== セクション共通 ===== */
.section {
  position: relative; z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) clamp(16px, 4vw, 40px);
}
.section-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(32px, 3.6vw, 44px); letter-spacing: .08em; font-weight: 800; }
.tate-label {
  border-left: 3px solid var(--shu);
  padding-left: 16px;
}
.section-sub { color: var(--text-dim); font-size: 18px; letter-spacing: .02em; font-weight: 500; }
.section-head.compact {
  margin-bottom: 20px;
}
.section-head.compact h2 {
  font-size: clamp(27px, 3vw, 36px);
}

.wave-divider {
  position: relative;
  z-index: 1;
  height: clamp(60px, 8vw, 90px);
  max-width: 100%;
  margin: -18px 0;
  opacity: .9;
  pointer-events: none;
  background:
    radial-gradient(58px 29px at 50% 100%, transparent 56%, var(--wave-line) 58%, var(--wave-line) 62%, transparent 64%) 0 0 / 84px 42px,
    radial-gradient(58px 29px at 50% 100%, transparent 56%, rgba(243, 236, 220, .045) 58%, rgba(243, 236, 220, .045) 62%, transparent 64%) 42px 21px / 84px 42px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 32%, #000 68%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 32%, #000 68%, transparent);
}

/* ===== フィルター ===== */
.filters {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px;
  background: rgba(9, 13, 32, .82);
  border: 1px solid rgba(233, 226, 207, .16);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}
.filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.filters .search-box {
  grid-column: 1 / -1;
}
.search-box { flex: 1 1 260px; }
#q, select, .multi-filter summary {
  width: 100%;
  padding: 14px 16px;
  font: inherit; font-size: 18px; font-weight: 600;
  color: var(--text);
  background: rgba(246, 240, 223, .08);
  border: 1px solid rgba(233, 226, 207, .24);
  border-radius: 8px;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
select { width: 100%; cursor: pointer; }
.filter-reset {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  color: #fff7df;
  background:
    linear-gradient(180deg, rgba(255, 128, 96, .96), rgba(205, 59, 48, .96));
  border: 1px solid rgba(255, 206, 170, .78);
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.filter-reset:hover,
.filter-reset:focus-visible {
  color: #fffbe8;
  border-color: rgba(255, 236, 196, .95);
  background:
    linear-gradient(180deg, rgba(255, 151, 112, 1), rgba(225, 75, 55, 1));
  box-shadow: 0 0 20px -2px rgba(255, 82, 55, .72);
  outline: none;
}
.archive-toggle,
.confirmed-toggle {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  color: var(--text-dim);
  background: rgba(246, 240, 223, .06);
  border: 1px solid rgba(233, 226, 207, .20);
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .25s, box-shadow .25s, background .25s, color .25s;
}
.archive-toggle.on,
.confirmed-toggle.on {
  color: #2f1708;
  border-color: rgba(255, 221, 149, .95);
  background:
    linear-gradient(180deg, #ffd97d, #ffad4d);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .26),
    0 0 22px -4px rgba(255, 173, 77, .85);
}
.archive-toggle:hover,
.archive-toggle:focus-visible,
.confirmed-toggle:hover,
.confirmed-toggle:focus-visible {
  color: #ffe4b6;
  border-color: rgba(255, 180, 94, .70);
  box-shadow: 0 0 18px -6px rgba(255, 180, 94, .70);
  outline: none;
}
.multi-filter {
  position: relative;
  min-width: 0;
}
.multi-filter summary {
  display: block;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.multi-filter summary::-webkit-details-marker { display: none; }
.multi-filter summary::after {
  content: "⌄";
  float: right;
  color: var(--text-dim);
}
.multi-filter[open] summary {
  border-color: var(--lantern);
  box-shadow: 0 0 14px var(--lantern-glow);
}
.multi-filter-menu {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  gap: 2px;
  max-height: 320px;
  overflow: auto;
  padding: 8px;
  color: #201918;
  background: rgba(243, 236, 220, .96);
  border: 1px solid rgba(35, 12, 28, .22);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0,0,0,.34);
}
.multi-filter-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  cursor: pointer;
}
.multi-filter-menu label:hover {
  background: rgba(255, 111, 79, .16);
}
.multi-filter-menu input {
  accent-color: var(--lantern);
}
#q:focus, select:focus, .multi-filter summary:focus { border-color: var(--lantern); box-shadow: 0 0 14px var(--lantern-glow); }
#q::placeholder { color: rgba(169, 168, 149, .7); }

.month-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 16px;
  font: inherit; font-size: 17px; letter-spacing: 0; font-weight: 700;
  color: var(--text);
  background: rgba(246, 240, 223, .06);
  border: 1px solid rgba(233, 226, 207, .24);
  border-radius: 999px;
  cursor: pointer;
  transition: all .22s;
}
.chip:hover { color: var(--kinari); border-color: var(--lantern); }
.chip.on {
  color: #2c1c10; font-weight: 700;
  background: linear-gradient(180deg, #ffd9a0, var(--lantern));
  border-color: var(--lantern);
  box-shadow: 0 0 16px var(--lantern-glow);
}
.chip.tonight-chip {
  border-color: rgba(255, 111, 79, .6);
}

.filter-active-note {
  display: inline-flex;
  align-items: center;
  margin: 24px 4px 0;
  padding: 8px 16px;
  color: #2c1c10;
  background: linear-gradient(180deg, #fff1bf, #ffbc65);
  border: 1px solid rgba(255, 226, 184, .85);
  border-radius: 999px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
  box-shadow: 0 0 18px -6px var(--lantern-glow);
}
.filter-active-note[hidden] { display: none; }
.result-note { margin: 24px 4px 16px; color: var(--text-dim); font-size: 18px; letter-spacing: .02em; font-weight: 700; }
#result-count { color: var(--lantern); font-size: 1.5em; font-family: "Zen Old Mincho", "Shippori Mincho", serif; }
.view-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 18px;
  padding: 4px;
  background: rgba(9, 13, 32, .7);
  border: 1px solid rgba(233, 226, 207, .16);
  border-radius: 999px;
}
.view-tab {
  min-width: 78px;
  padding: 8px 18px;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.view-tab.on {
  color: #2c1c10;
  background: linear-gradient(180deg, #ffd9a0, var(--lantern));
  border-color: var(--lantern);
  box-shadow: 0 0 14px var(--lantern-glow);
}
.view-tab:focus-visible {
  outline: 3px solid rgba(255, 235, 183, .72);
  outline-offset: 3px;
}

.date-groups {
  display: grid;
  gap: 14px;
}
.date-divider {
  display: grid;
  grid-template-columns: minmax(22px, 1fr) auto auto minmax(22px, 1fr);
  align-items: center;
  gap: 10px;
  margin: 18px 0 2px;
  color: var(--kinari);
  font-family: "Zen Old Mincho", "Shippori Mincho", serif;
  font-weight: 900;
  letter-spacing: .04em;
}
.date-divider time,
.date-divider-label {
  min-width: 0;
  color: #ffe7b7;
  font-size: 24px;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 2px 12px rgba(35, 12, 18, .52);
}
.date-divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 180, 94, .64), transparent);
}
.date-divider-count {
  min-width: 38px;
  color: #ff9b83;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}
.date-divider.today time {
  color: #fff3cf;
}
.date-event-list {
  display: grid;
  gap: 10px;
}
.date-event-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  color: var(--text);
  background: rgba(15, 20, 45, .86);
  border: 1px solid var(--card-border);
  border-left: 4px solid rgba(255, 180, 94, .5);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.date-event-item:hover,
.date-event-item:focus-visible {
  border-color: var(--lantern);
  box-shadow: 0 10px 30px -10px var(--lantern-glow);
  outline: none;
  transform: translateY(-2px);
}
.date-event-item .ward {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 13px;
  letter-spacing: .03em;
  font-weight: 800;
  color: #ff8d82;
}
.date-event-item h3 {
  margin: 0 0 4px;
  color: var(--kinari);
  font-size: 20px;
  line-height: 1.42;
  font-weight: 900;
}
.date-event-item p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}
.date-event-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 118px;
}

/* ===== 会場カード（提灯札） ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(315px, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  padding: 22px 22px 18px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-top: 4px solid rgba(255, 180, 94, .5);
  border-radius: 8px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card-top {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.card-title {
  min-width: 0;
}
.title-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.title-line h3 {
  flex: 1 1 auto;
  min-width: 0;
}
.title-line .day-index {
  flex: 0 0 auto;
  margin-top: 9px;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--lantern);
  box-shadow: 0 10px 34px -6px var(--lantern-glow);
}
.card .ward,
.modal .ward {
  display: inline-block;
  font-size: 15px; letter-spacing: .03em; font-weight: 800;
  color: #ff8d82;
  border: 1px solid rgba(232, 90, 79, .65);
  border-radius: 4px;
  padding: 3px 9px;
  margin-bottom: 12px;
}
.card h3 {
  font-size: 22px; font-weight: 800; letter-spacing: 0;
  line-height: 1.45;
  color: var(--kinari);
  margin: 8px 0 12px;
  min-height: 0;
}
.card .meta { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.tag {
  font-size: 15px; letter-spacing: 0; font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text-dim);
  border: 1px solid rgba(233, 226, 207, .16);
}
.tag.month-on {
  color: #2c1c10; font-weight: 700;
  background: linear-gradient(180deg, #ffd9a0, var(--lantern));
  border-color: var(--lantern);
}
.tag.scale-大 { color: var(--lantern); border-color: rgba(255, 180, 94, .5); }
.tag.day-index {
  color: #2c1c10;
  background: linear-gradient(180deg, #fff1bf, #ffbc65);
  border-color: rgba(255, 226, 184, .85);
  font-weight: 900;
}
.card .access {
  margin-top: 14px;
  font-size: 16.5px; line-height: 1.8; font-weight: 500;
  color: var(--text-dim);
  border-top: 1px dashed rgba(233, 226, 207, .12);
  padding-top: 10px;
}
.time-line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: -4px 0 12px;
  color: #ffe2b8;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 800;
  letter-spacing: .02em;
}
/* 今月開催 = 灯る提灯ドット */
.card.lit::after {
  content: "";
  position: absolute; top: 14px; right: 14px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--lantern);
  box-shadow: 0 0 12px 3px var(--lantern-glow);
  animation: pulse 2.6s ease-in-out infinite;
}
.card.tonight {
  border-color: rgba(255, 111, 79, .92);
  box-shadow: 0 0 28px -9px var(--lantern-glow), inset 0 0 0 1px rgba(255, 111, 79, .2);
}
.card.tonight::before {
  content: "今夜";
  position: absolute;
  top: 13px;
  right: 30px;
  padding: 2px 8px;
  color: #2c1c10;
  background: linear-gradient(180deg, #ffe2b8, var(--lantern));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  box-shadow: 0 0 14px var(--lantern-glow);
}

.date-stamp {
  display: grid;
  align-content: center;
  justify-items: center;
  width: 92px;
  min-height: 82px;
  padding: 8px 6px;
  color: #ffe2b8;
  border: 1px solid rgba(255, 180, 94, .56);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 226, 184, .08), rgba(255, 111, 79, .05)),
    rgba(7, 10, 24, .38);
}
.date-stamp strong {
  max-width: 100%;
  font-family: "Zen Old Mincho", "Shippori Mincho", serif;
  font-size: 29px;
  line-height: 1;
  letter-spacing: 0;
  color: #ffe7b7;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  text-overflow: clip;
}
.date-stamp em {
  display: block;
  margin-top: 7px;
  color: #38160f;
  font-family: "Zen Old Mincho", "Shippori Mincho", serif;
  font-size: 19px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}
.date-stamp span {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--text-dim);
  text-align: center;
}
.date-stamp.date-on {
  color: #2c1c10;
  background: linear-gradient(180deg, #ffe2b8, rgba(255, 111, 79, .92));
  border-color: var(--lantern);
  box-shadow: 0 0 18px -3px var(--lantern-glow);
}
.date-stamp.date-on strong,
.date-stamp.date-on span { color: #33140e; }
.date-stamp.date-on em { color: #4a1c13; }
.date-stamp.candidate {
  border-style: dashed;
  opacity: .88;
}
.date-stamp.plan strong { font-size: 27px; }
.date-stamp.tbd,
.date-stamp.done {
  min-height: 70px;
  opacity: .62;
  border-color: rgba(233, 226, 207, .22);
}
.date-stamp.large {
  width: 104px;
  min-height: 132px;
}
.date-stamp.large strong {
  font-size: 39px;
}
.date-stamp.large em {
  font-size: 23px;
}
.date-stamp.large span {
  font-size: 12px;
}
.ward-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 100px;
  border-bottom: 1px solid rgba(233, 226, 207, .12);
}
.ward-divider span {
  writing-mode: vertical-rl;
  padding-left: 13px;
  border-left: 3px solid var(--shu);
  color: var(--kinari);
  font-family: "Zen Old Mincho", "Shippori Mincho", serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: .08em;
}
.ward-divider i {
  color: var(--text-dim);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}
.list-actions {
  display: flex;
  justify-content: center;
  min-height: 54px;
  margin-top: 24px;
}
.more-btn {
  padding: 11px 25px;
  color: var(--kinari);
  background: rgba(35, 12, 28, .34);
  border: 1px solid var(--lantern);
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .03em;
  cursor: pointer;
}
.more-btn:hover,
.more-btn:focus-visible {
  box-shadow: 0 0 24px -4px var(--lantern-glow);
  outline: none;
}

/* ===== 地図ビュー ===== */
.map-view {
  position: relative;
}
.event-map {
  width: 100%;
  height: min(72vh, 680px);
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(255, 180, 94, .32);
  border-radius: 8px;
  background: #111827;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 18px 46px -24px rgba(0,0,0,.8);
}
.leaflet-container {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  background: #111827;
}
.leaflet-tile-pane {
  filter: none;
  opacity: 1;
}
.leaflet-control-attribution {
  color: rgba(243, 236, 220, .72);
  background: rgba(9, 13, 32, .82);
  font-size: 10px;
}
.leaflet-control-attribution a { color: #ffd9a0; }
.lantern-marker-wrap {
  background: transparent;
  border: 0;
}
.lantern-marker {
  position: relative;
  display: block;
  width: 18px;
  height: 25px;
  border-radius: 48% 48% 42% 42% / 35% 35% 55% 55%;
  background:
    linear-gradient(90deg,
      rgba(142, 38, 31, .95) 0 18%,
      rgba(255, 212, 154, .88) 18% 50%,
      rgba(255, 144, 94, .9) 50% 65%,
      rgba(142, 38, 31, .95) 65% 100%);
  box-shadow: 0 2px 7px rgba(0, 0, 0, .62), 0 0 8px 1px rgba(255, 111, 79, .24);
  opacity: .9;
}
.lantern-marker::before,
.lantern-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 10px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: #150d08;
}
.lantern-marker::before { top: -2px; }
.lantern-marker::after { bottom: -2px; }
.lantern-marker.current {
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .66), 0 0 10px 2px rgba(255, 111, 79, .36);
}
.lantern-marker.tonight {
  filter: brightness(1.16) saturate(1.12);
  box-shadow: 0 2px 9px rgba(0, 0, 0, .68), 0 0 14px 3px rgba(255, 111, 79, .46);
}
.lantern-marker.recurring {
  background:
    linear-gradient(90deg,
      rgba(82, 62, 42, .95) 0 18%,
      rgba(255, 217, 160, .72) 18% 50%,
      rgba(184, 133, 71, .76) 50% 65%,
      rgba(82, 62, 42, .95) 65% 100%);
  opacity: .78;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .62), 0 0 7px 1px rgba(255, 180, 94, .18);
}
.lantern-marker.recurring i {
  position: absolute;
  right: -8px;
  top: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #271b12;
  background: #ffd9a0;
  border: 1px solid rgba(82, 62, 42, .75);
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
.lantern-marker.season {
  width: 14px;
  height: 20px;
  margin: 4px 0 0 2px;
  background:
    linear-gradient(90deg,
      rgba(82, 62, 42, .34) 0 18%,
      rgba(255, 217, 160, .22) 18% 50%,
      rgba(184, 133, 71, .30) 50% 65%,
      rgba(82, 62, 42, .34) 65% 100%);
  border: 1px solid rgba(255, 217, 160, .42);
  opacity: .48;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
}
.lantern-marker.season::before,
.lantern-marker.season::after {
  width: 8px;
  background: rgba(233, 226, 207, .42);
}
.lantern-marker.season i {
  position: absolute;
  right: -8px;
  top: -8px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: rgba(233, 226, 207, .82);
  background: rgba(21, 13, 8, .72);
  border: 1px dashed rgba(233, 226, 207, .42);
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.empty { text-align: center; color: var(--text-dim); padding: 60px 0; letter-spacing: .02em; font-size: 18px; }

/* ===== 盆踊り暦 ===== */
.koyomi-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  height: auto;
  padding: 0;
}
.calendar-month {
  min-width: 0;
  padding: 16px;
  background: rgba(9, 13, 32, .74);
  border: 1px solid rgba(233, 226, 207, .16);
  border-radius: 8px;
}
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.calendar-head h3 {
  color: var(--kinari);
  font-family: "Zen Old Mincho", "Shippori Mincho", serif;
  font-size: 24px;
  line-height: 1.2;
}
.calendar-head button {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: #ffe2b8;
  background: rgba(255, 111, 79, .08);
  border: 1px solid rgba(255, 111, 79, .42);
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.calendar-head button:hover,
.calendar-head button:focus-visible {
  border-color: var(--lantern);
  box-shadow: 0 0 14px -4px var(--lantern-glow);
  outline: none;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.weekday {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.calendar-blank,
.calendar-day {
  min-height: 82px;
  padding: 6px;
  border-radius: 6px;
}
.calendar-day {
  position: relative;
  background: rgba(246, 240, 223, .04);
  border: 1px solid rgba(233, 226, 207, .1);
}
.calendar-day.has-event {
  background: linear-gradient(180deg, rgba(255, 111, 79, .13), rgba(15, 20, 45, .72));
  border-color: rgba(255, 180, 94, .34);
}
.calendar-day.today {
  box-shadow: inset 0 0 0 1px var(--lantern), 0 0 18px -8px var(--lantern-glow);
}
.calendar-day.selected {
  background: linear-gradient(180deg, rgba(255, 217, 160, .28), rgba(255, 111, 79, .15) 58%, rgba(15, 20, 45, .82));
  border-color: rgba(255, 217, 160, .78);
  box-shadow: inset 0 0 0 1px rgba(255, 217, 160, .52), 0 0 22px -6px var(--lantern-glow);
}
.day-number {
  display: block;
  margin-bottom: 4px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.calendar-day.has-event .day-number {
  color: #ffe2b8;
}
.day-hit {
  position: absolute;
  left: 50%;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  transform: translateX(-50%);
  padding: 0;
  color: #2c1c10;
  background: linear-gradient(180deg, #ffd9a0, var(--lantern));
  border: 1px solid var(--lantern);
  border-radius: 50%;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 12px -5px var(--lantern-glow);
}
.day-hit:hover,
.day-hit:focus-visible {
  border-color: var(--lantern);
  box-shadow: 0 0 18px -3px var(--lantern-glow);
  outline: none;
}
.calendar-day.selected .day-hit {
  background: linear-gradient(180deg, #fff4d7, #ffcf72);
  border-color: #fff4d7;
}
.koyomi-selection {
  margin-top: 22px;
}
.koyomi-selection-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(233, 226, 207, .18);
}
.koyomi-selection-head p {
  margin: 0 0 4px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 800;
}
.koyomi-selection-head h3 {
  margin: 0;
  color: var(--kinari);
  font-family: "Zen Old Mincho", "Shippori Mincho", serif;
  font-size: 30px;
  line-height: 1.25;
}
.koyomi-selection-head span {
  flex: 0 0 auto;
  color: #2c1c10;
  background: linear-gradient(180deg, #ffd9a0, var(--lantern));
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 900;
}
.koyomi-event-list {
  display: grid;
  gap: 12px;
}
.result-filter {
  color: var(--text-dim);
  font-size: .72em;
  font-weight: 800;
}
.kbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  height: 100%;
  justify-content: center;
  outline: none;
}
.month-firework {
  position: relative;
  display: grid;
  place-items: center;
  width: min(var(--fw-size), 100%);
  aspect-ratio: 1;
  min-width: 12px;
  max-width: 128px;
  border-radius: 50%;
}
.fire-core,
.month-firework::before,
.month-firework::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}
.fire-core {
  width: 9px;
  height: 9px;
  background: #ffe7b7;
  box-shadow:
    0 -25px 0 1px rgba(255, 231, 183, .8),
    18px -18px 0 1px rgba(255, 111, 79, .75),
    25px 0 0 1px rgba(255, 208, 90, .72),
    18px 18px 0 1px rgba(255, 255, 255, .72),
    0 25px 0 1px rgba(255, 111, 79, .75),
    -18px 18px 0 1px rgba(255, 208, 90, .72),
    -25px 0 0 1px rgba(255, 231, 183, .8),
    -18px -18px 0 1px rgba(255, 111, 79, .75);
  transform: scale(calc(var(--fw-size) / 92px));
  opacity: .36;
  transition: opacity .25s, transform .25s;
}
.month-firework::before {
  inset: 9%;
  border: 1px solid rgba(255, 180, 94, .12);
}
.kbar:hover .fire-core,
.kbar:focus-visible .fire-core,
.kbar.now .fire-core {
  opacity: .96;
  transform: scale(calc(var(--fw-size) / 78px));
}
.kbar.now .fire-core {
  animation: pulse 3.2s ease-in-out infinite;
}
.kbar.empty-month .fire-core {
  width: 6px;
  height: 6px;
  box-shadow: none;
  opacity: .45;
}
.kbar .klabel { font-size: 16px; color: var(--text-dim); letter-spacing: 0; font-weight: 700; }
.kbar.now .klabel { color: var(--lantern); font-weight: 700; }

/* ===== ティザー ===== */
.teaser-card {
  text-align: center;
  padding: clamp(40px, 6vw, 70px) 24px;
  border: 1px solid rgba(233, 226, 207, .14);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(255, 140, 59, .14), transparent 60%),
    rgba(10, 13, 30, .6);
}
.teaser-card h2 { font-size: clamp(29px, 3.1vw, 38px); letter-spacing: .08em; margin-bottom: 18px; }
.teaser-card p { color: var(--text-dim); font-size: 18px; margin-bottom: 22px; }
.badge {
  display: inline-block;
  font-size: 14.5px; letter-spacing: .16em;
  color: var(--shu);
  border: 1px solid var(--shu);
  border-radius: 999px;
  padding: 6px 20px;
}

/* ===== フッター ===== */
footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: 60px 20px 46px;
  color: var(--text-dim);
  font-size: 16px;
  border-top: 1px solid rgba(233, 226, 207, .08);
}
footer .fine { margin-top: 16px; letter-spacing: .15em; opacity: .6; }

/* ===== 祭りの地平線（影絵はassets/yagura-silhouette.svg、地面の帯=画像下端15%） ===== */
.festival-horizon {
  position: relative;
  z-index: 1;
  margin-top: -24px;
  pointer-events: none;
}
.festival-horizon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(min(100vw, 1500px) * 0.06);
  background: var(--silhouette);
}
.horizon-scene {
  position: relative;
  width: min(100%, 1500px);
  margin: 0 auto;
}
/* 祭りの明かりが空ににじむ。夜フェーズで影絵が夜空と同化しないための背光 */
.horizon-scene::before {
  content: "";
  position: absolute;
  inset: 0 -10% 10%;
  background: radial-gradient(ellipse at 50% 92%,
    rgba(255, 152, 82, .42) 0%, rgba(214, 92, 78, .22) 42%, transparent 72%);
  pointer-events: none;
}
.horizon-scene img {
  display: block;
  width: 100%;
  height: auto;
}
.horizon-glow {
  position: absolute;
  width: 4.5%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(255, 196, 110, .6) 0%, rgba(255, 110, 60, .24) 45%, transparent 70%);
  mix-blend-mode: screen;
  animation: pulse 3.4s ease-in-out infinite;
}
/* 提灯の位置（画像内の座標比）に合わせて灯す */
.horizon-glow.g1 { left: 13%; top: 45%; }
.horizon-glow.g2 { left: 31%; top: 34%; animation-delay: 1.2s; }
.horizon-glow.g3 { left: 87%; top: 45%; animation-delay: 2.1s; }

/* ===== レスポンシブ・モーション配慮 ===== */
@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding: 10px 18px 42px;
  }
  .lantern-string {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    height: 96px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 2px 0 12px;
    overflow: visible;
  }
  .lantern-string::-webkit-scrollbar { display: none; }
  .rope {
    display: block;
    top: 12px;
    left: -8%;
    right: -8%;
    height: 30px;
    border-top-color: rgba(243, 236, 220, .18);
  }
  .lantern {
    justify-self: center;
    width: clamp(42px, 12vw, 52px);
    height: 78px;
    color: #5e1510;
    filter: drop-shadow(0 0 9px rgba(255, 104, 55, .42));
    transform-origin: 50% -14px;
    animation: mobile-sway 4.8s ease-in-out infinite alternate;
  }
  .lantern .chochin {
    display: block;
    height: 122%;
  }
  .lantern span {
    position: absolute;
    inset: 9px 0 8px;
    display: flex;
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: #5e1510;
    font-family: "Zen Old Mincho", "Shippori Mincho", serif;
    font-size: clamp(10.5px, 3.1vw, 12.5px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: 0;
    text-shadow: 0 1px 0 rgba(255, 238, 185, .42);
    white-space: normal;
    overflow: hidden;
  }
  .lantern em {
    display: none;
  }
  .lantern:hover,
  .lantern:focus-visible {
    filter: brightness(1.1) saturate(1.08) drop-shadow(0 0 16px rgba(255, 104, 55, .62));
  }
  .l1 { animation-delay: 0s; }
  .l2 { animation-delay: -1s; }
  .l3 { animation-delay: -2s; }
  .l4 { animation-delay: -.55s; }
  .l5 { animation-delay: -1.55s; }
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 0;
    max-width: 100%;
  }
  .tate {
    writing-mode: horizontal-tb;
    font-size: 36px;
    line-height: 1.28;
    letter-spacing: .03em;
  }
  .top-nav {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 18px 10px;
  }
  .brand-name { font-size: 18px; white-space: nowrap; }
  .brand-mark { width: 32px; height: 32px; font-size: 10.5px; }
  .top-nav nav a {
    font-size: 13px;
    white-space: nowrap;
    color: rgba(246, 240, 223, .82);
  }
  .top-nav nav {
    max-width: 100%;
    flex-wrap: wrap;
    gap: 8px 14px;
    overflow: visible;
    padding-bottom: 0;
  }
  .hero-copy { width: 100%; }
  .hero-copy .lede {
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 1.75;
    color: rgba(246, 240, 223, .9);
  }
  .hero-copy .lede br { display: none; }
  .cta {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding: 12px 16px;
    font-size: 16px;
    white-space: normal;
    text-align: center;
  }
  .cta strong { font-size: 1.4em; }
  .tonight-callout {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    font-size: 14px;
    margin: 0 0 14px;
  }
  .tonight-callout strong { font-size: 1.5em; }
  .section {
    padding-top: 48px;
    padding-bottom: 58px;
  }
  .section-head {
    gap: 10px;
    margin-bottom: 22px;
  }
  .section-head h2 {
    font-size: 29px;
    line-height: 1.35;
  }
  .section-sub {
    font-size: 14px;
    line-height: 1.75;
  }
  .cards { grid-template-columns: 1fr; }
  .koyomi-bars {
    grid-template-columns: 1fr;
    height: auto;
  }
  .date-stamp.large {
    width: 82px;
    min-height: 106px;
  }
  .date-stamp.large strong { font-size: 31px; }
  .date-stamp.large em { font-size: 19px; }
  .filters { padding: 16px; }
  .filter-row {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 18px;
  }
  .card-top {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
  }
  .date-stamp {
    width: 82px;
    min-height: 76px;
  }
  .date-stamp strong { font-size: 25px; }
  .date-stamp em { font-size: 17px; }
  .card h3 {
    font-size: 20px;
    line-height: 1.42;
  }
  .calendar-month { padding: 12px; }
  .calendar-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .calendar-day {
    min-height: 76px;
    padding: 5px;
  }
  .day-hit {
    font-size: 10px;
    width: 24px;
    height: 24px;
  }
  /* 影絵は画像のアスペクト比なりに表示（固定高さにすると見切れる） */
  .view-tabs {
    display: flex;
    width: 100%;
  }
  .view-tab {
    flex: 1;
  }
  .date-divider {
    grid-template-columns: minmax(18px, 1fr) auto minmax(18px, 1fr);
    gap: 8px;
  }
  .date-divider time,
  .date-divider-label {
    font-size: 20px;
  }
  .date-divider-count {
    grid-column: 2;
    min-width: 0;
    text-align: center;
  }
  .date-event-item {
    grid-template-columns: 1fr;
    padding: 14px 15px;
  }
  .date-event-meta {
    justify-content: flex-start;
    min-width: 0;
  }
  .event-map {
    height: 70vh;
    min-height: 420px;
  }
  .glossary-tools {
    padding: 16px;
  }
  .glossary-grid {
    grid-template-columns: 1fr;
  }
  .glossary-card {
    min-height: 0;
    padding: 18px;
  }
  .glossary-card h3 {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .bottom-fireworks { display: none; }
}

/* ===== イベント主役カード ===== */
.card .venue-line {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: .03em;
  margin: -6px 0 12px;
}
.tag.date-on {
  color: #2c1c10; font-weight: 700;
  background: linear-gradient(180deg, #ffe2b8, var(--lantern));
  border-color: var(--lantern);
  box-shadow: 0 0 12px var(--lantern-glow);
}
.tag.done { opacity: .55; }
.tag.unnamed { border-style: dashed; }

/* ===== 月日ラベル・特徴文・詳細モーダル ===== */
.date-label {
  font-size: 13px; font-weight: 700; letter-spacing: .05em;
  padding: 4px 12px; border-radius: 999px;
}
.date-label.date-on {
  color: #2c1c10;
  background: linear-gradient(180deg, #ffe2b8, var(--lantern));
  box-shadow: 0 0 12px var(--lantern-glow);
}
.date-label.candidate {
  color: #ffe2b8;
  border: 1px solid rgba(255, 180, 94, .7);
  background: rgba(255, 180, 94, .08);
}
.date-label.candidate.medium { color: #ffd9a0; }
.date-label.candidate.low {
  color: var(--text-dim);
  border-style: dashed;
  background: transparent;
}
.date-label.plan { color: var(--lantern); border: 1px solid rgba(255, 180, 94, .55); }
.date-label.tbd { color: var(--text-dim); border: 1px dashed rgba(233, 226, 207, .3); }
.date-label.done { color: var(--text-dim); border: 1px solid rgba(233, 226, 207, .18); opacity: .65; }
.tag.confidence {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.tag.confidence.confirmed {
  color: #2c1c10;
  background: #ffe2b8;
  border-color: #ffe2b8;
}
.tag.confidence.high,
.tag.confidence.medium {
  color: #ffd9a0;
  border-color: rgba(255, 180, 94, .55);
  background: rgba(255, 180, 94, .08);
}
.tag.confidence.low,
.tag.confidence.unknown {
  color: var(--text-dim);
  border-style: dashed;
  opacity: .85;
}

/* 過去実績あり・今年は日程未確認（候補として正直に見せる）：確定より控えめな金 */
.tag.confidence.recurring {
  color: #ffd9a0;
  border-color: rgba(255, 180, 94, .55);
  background: rgba(255, 180, 94, .10);
}
.tag.confidence.rule-predicted,
.tag.confidence.historical-slide {
  color: #ffd9a0;
  border-color: rgba(255, 180, 94, .55);
  background: rgba(255, 180, 94, .10);
}
.tag.confidence.season-hint,
.tag.confidence.historical-reference {
  color: var(--text-dim);
  border-style: dashed;
  background: transparent;
  opacity: .9;
}
.date-stamp.recurring {
  opacity: .92;
  border-color: rgba(255, 180, 94, .5);
  background: rgba(255, 180, 94, .08);
}
.date-stamp.recurring strong { color: #ffd9a0; }
.date-stamp.recurring span { color: #e9b97a; }
.date-label.recurring { color: #ffd9a0; border: 1px solid rgba(255, 180, 94, .5); }
.date-stamp.rule-predicted,
.date-stamp.historical-slide {
  opacity: .92;
  border-color: rgba(255, 180, 94, .5);
  background: rgba(255, 180, 94, .08);
}
.date-stamp.rule-predicted strong,
.date-stamp.historical-slide strong { color: #ffd9a0; }
.date-stamp.rule-predicted span,
.date-stamp.historical-slide span { color: #e9b97a; }
.date-label.rule-predicted,
.date-label.historical-slide { color: #ffd9a0; border: 1px solid rgba(255, 180, 94, .5); }

.card { cursor: pointer; }
.card .desc {
  margin-top: 12px;
  font-size: 13px; line-height: 1.75;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .song-line {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #ffd9a0;
}
.card .more {
  display: block; margin-top: 12px;
  font-size: 12px; letter-spacing: .1em;
  color: var(--lantern);
  opacity: 0; transition: opacity .25s;
}
.card:hover .more, .card:focus .more { opacity: 1; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(5, 7, 18, .78);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  padding: 20px;
}
.modal {
  position: relative;
  width: min(560px, 100%);
  max-height: 86vh; overflow-y: auto;
  padding: 34px 30px 28px;
  background: linear-gradient(180deg, #181d40, #0e1230);
  border: 1px solid rgba(255, 180, 94, .35);
  border-top: 4px solid var(--lantern);
  border-radius: 16px;
  box-shadow: 0 22px 70px -18px rgba(255, 156, 70, .35), 0 30px 80px rgba(0,0,0,.6);
}
.modal-close {
  position: absolute; top: 12px; right: 14px;
  width: 38px; height: 38px;
  font-size: 21px; line-height: 1;
  color: var(--text-dim);
  background: transparent; border: none; border-radius: 50%;
  cursor: pointer;
}
.modal-close:hover { color: var(--kinari); background: rgba(233, 226, 207, .08); }
.modal h3 {
  font-size: 22px; font-weight: 700; letter-spacing: .04em; line-height: 1.5;
  color: var(--kinari);
  margin: 10px 0 14px;
}
.modal .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.modal-desc { font-size: 15px; line-height: 1.9; margin-bottom: 18px; }
.modal-row { margin-bottom: 14px; }
.modal-row h4 {
  font-size: 12px; letter-spacing: .18em; font-weight: 600;
  color: var(--shu);
  margin-bottom: 4px;
}
.modal-row p { font-size: 14px; line-height: 1.8; color: var(--text); }
.modal-row.time-row p {
  color: #ffe2b8;
  font-weight: 800;
}
.copy-value {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.copy-value p {
  flex: 1 1 auto;
  min-width: 0;
}
.copy-button {
  flex: 0 0 auto;
  min-width: 68px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 180, 94, .42);
  border-radius: 8px;
  color: #ffe2b8;
  background: rgba(255, 180, 94, .07);
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
}
.copy-button:hover,
.copy-button:focus-visible {
  color: var(--kinari);
  border-color: rgba(255, 180, 94, .72);
  background: rgba(255, 180, 94, .12);
  outline: none;
}
.copy-button.copied {
  color: #2c1c10;
  background: linear-gradient(180deg, #ffe2b8, var(--lantern));
  border-color: rgba(255, 226, 184, .82);
}
.candidate-list {
  display: grid;
  gap: 8px;
}
.candidate-item {
  margin: 0;
}
.candidate-item a {
  color: inherit;
  text-decoration: none;
}
.candidate-item a:hover .candidate-date {
  color: var(--lantern);
}
.candidate-date,
.candidate-confidence,
.candidate-source {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 6px 6px 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12.5px;
  line-height: 1.4;
}
.candidate-date {
  color: #ffe2b8;
  border: 1px solid rgba(255, 180, 94, .5);
}
.candidate-confidence {
  color: #ffd9a0;
  background: rgba(255, 180, 94, .08);
}
.candidate-source {
  color: var(--text-dim);
  border: 1px dashed rgba(233, 226, 207, .24);
}
.song-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}
.song-tags .song-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 180, 94, .45);
  border-radius: 8px;
  color: #ffe2b8;
  background: rgba(255, 180, 94, .08);
  font-size: 12.5px;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s;
}
.song-tags .song-tag:hover,
.song-tags .song-tag:focus-visible {
  border-color: rgba(255, 226, 184, .86);
  background: rgba(255, 180, 94, .16);
  transform: translateY(-1px);
}
.song-tags .song-tag.confirmed {
  border-color: rgba(255, 226, 184, .78);
  background: rgba(255, 180, 94, .15);
}
.song-tags .song-tag.signature-song {
  border-color: rgba(255, 226, 184, .74);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 226, 184, .22), transparent 34%),
    rgba(255, 180, 94, .1);
}
.song-tags .song-tag.area-song {
  border-color: rgba(226, 233, 246, .62);
  background:
    radial-gradient(circle at 90% 10%, rgba(232, 239, 255, .16), transparent 34%),
    rgba(226, 233, 246, .07);
}
.song-tag strong {
  font-size: 13px;
  line-height: 1.35;
  color: #ffe8be;
}
.song-tag em {
  font-style: normal;
  color: var(--text-dim);
  font-size: 11.5px;
}
.song-tag small {
  font-size: 10px;
  letter-spacing: .03em;
  color: rgba(255, 226, 184, .62);
}
.local-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #241308;
  background:
    linear-gradient(110deg, transparent 0 18%, rgba(255,255,255,.72) 28%, transparent 38%),
    linear-gradient(135deg, #8e5a12, #ffd56f 38%, #fff3bf 52%, #d58a2a 76%, #7a3d0e);
  background-size: 220% 100%, 100% 100%;
  border: 1px solid rgba(255, 244, 205, .95);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 0 18px -4px rgba(255, 213, 111, 1), inset 0 1px 0 rgba(255,255,255,.6);
}
.area-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #1b2334;
  background:
    linear-gradient(110deg, transparent 0 18%, rgba(255,255,255,.76) 28%, transparent 38%),
    linear-gradient(135deg, #9da8ba, #f7fbff 38%, #d8e7ff 56%, #8794a8 78%, #eef4ff);
  background-size: 220% 100%, 100% 100%;
  border: 1px solid rgba(255, 255, 255, .92);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 0 18px -5px rgba(216, 231, 255, 1), inset 0 1px 0 rgba(255,255,255,.72);
}
.song-tags .song-tag.suggested {
  border-style: dashed;
  border-color: rgba(255, 180, 94, .3);
  background: rgba(255, 180, 94, .04);
}
.song-tag.suggested strong {
  color: rgba(255, 232, 190, .75);
}
.song-note {
  margin: 4px 0 2px;
  font-size: 12px;
  color: var(--text-dim);
}
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}
.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 180, 94, .42);
  border-radius: 8px;
  color: #ffe2b8;
  background: rgba(255, 180, 94, .07);
  font-size: 12.5px;
  line-height: 1.35;
  text-decoration: none;
}
.source-link[href]:hover {
  color: var(--kinari);
  border-color: rgba(255, 180, 94, .72);
  background: rgba(255, 180, 94, .12);
}
.source-note {
  cursor: default;
}
.source-link.source-official {
  min-height: 38px;
  padding: 8px 14px;
  color: #2c1c10;
  background: linear-gradient(180deg, #ffe2b8, var(--lantern));
  border-color: rgba(255, 226, 184, .82);
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 0 16px -5px var(--lantern-glow);
}
.source-link.source-official[href]:hover {
  color: #2c1c10;
  background: linear-gradient(180deg, #ffe9c8, #ffbc65);
  border-color: rgba(255, 226, 184, .9);
  filter: brightness(1.06);
}
.map-link {
  display: inline-block;
  margin: 6px 0 14px;
  padding: 11px 24px;
  font-size: 14px; font-weight: 700; letter-spacing: .06em;
  color: #2c1c10; text-decoration: none;
  background: linear-gradient(180deg, #ffd9a0, var(--lantern));
  border-radius: 999px;
  box-shadow: 0 0 18px -2px var(--lantern-glow);
}
.map-link:hover { filter: brightness(1.08); }
.modal-access { font-size: 12.5px; color: var(--text-dim); margin-bottom: 14px; }
.modal-note {
  font-size: 11.5px; color: var(--text-dim); opacity: .8;
  border-top: 1px dashed rgba(233, 226, 207, .15);
  padding-top: 12px;
}
.modal-backdrop[hidden] { display: none; }

/* ===== 用語集 ===== */
.glossary-section {
  padding-top: clamp(54px, 7vw, 84px);
}
.glossary-tools {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: rgba(9, 13, 32, .82);
  border: 1px solid rgba(233, 226, 207, .16);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}
#glossary-q {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  background: rgba(246, 240, 223, .08);
  border: 1px solid rgba(233, 226, 207, .24);
  border-radius: 8px;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
#glossary-q:focus {
  border-color: var(--lantern);
  box-shadow: 0 0 14px var(--lantern-glow);
}
#glossary-q::placeholder { color: rgba(169, 168, 149, .7); }
.glossary-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.glossary-count {
  margin-bottom: 14px;
}
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}
.glossary-card {
  min-height: 210px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 180, 94, .06), transparent 58%),
    rgba(15, 20, 45, .9);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.glossary-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.glossary-card h3 {
  font-size: 23px;
  line-height: 1.35;
  color: var(--kinari);
  font-weight: 800;
}
.glossary-reading {
  margin-top: 2px;
  color: #ffd9a0;
  font-size: 13px;
  line-height: 1.5;
}
.glossary-category {
  flex: 0 0 auto;
  max-width: 112px;
  padding: 4px 9px;
  color: #ffb2a2;
  border: 1px solid rgba(232, 90, 79, .55);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}
.glossary-card > p:not(.glossary-reading) {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.85;
}
.glossary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.glossary-meta span {
  padding: 3px 8px;
  color: var(--text-dim);
  border: 1px solid rgba(233, 226, 207, .14);
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1.45;
}

/* ===== 全体の文字サイズ調整 ===== */
body {
  font-size: 26px;
}
.brand-name { font-size: 29px; }
.brand-mark { width: 48px; height: 48px; font-size: 15.5px; }
.top-nav nav a { font-size: 24px; }
.tate { font-size: clamp(50px, 6.2vw, 82px); }
.hero-copy .lede { font-size: clamp(21px, 2vw, 25px); }
.tonight-callout { font-size: 22px; }
.cta { font-size: 27px; }
.section-head h2 { font-size: clamp(45px, 5vw, 62px); }
.section-sub { font-size: 25px; }
#q,
select,
.multi-filter summary,
#glossary-q {
  font-size: 25px;
}
.filter-reset,
.archive-toggle,
.confirmed-toggle { font-size: 22px; }
.multi-filter-menu label { font-size: 21px; }
.chip { font-size: 22px; }
.filter-active-note { font-size: 27px; }
.result-note { font-size: 25px; }
.view-tab { font-size: 21px; }
.date-divider time,
.date-divider-label { font-size: 34px; }
.date-divider-count { font-size: 18px; }
.cards {
  grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
}
.card-top { grid-template-columns: 122px minmax(0, 1fr); }
.card .ward,
.modal .ward,
.date-event-item .ward {
  font-size: 21px;
}
.card h3,
.date-event-item h3 {
  font-size: 29px;
}
.card .venue-line,
.card .time-line,
.card .desc,
.card .song-line,
.date-event-item p {
  font-size: 20px;
}
.tag,
.date-label,
.copy-button,
.source-link,
.candidate-date,
.candidate-confidence,
.candidate-source {
  font-size: 17px;
}
.date-stamp {
  width: 112px;
  min-height: 104px;
}
.date-stamp.large {
  width: 114px;
  min-height: 142px;
}
.date-stamp strong { font-size: 41px; }
.date-stamp em { font-size: 27px; }
.date-stamp span { font-size: 15px; }
.modal { font-size: 25px; }
.modal h3 { font-size: 38px; }
.modal-row h4 { font-size: 24px; }
.modal-row p,
.modal-access,
.candidate-item,
.song-tags .song-tag,
.source-link {
  font-size: 18px;
}
.song-tag strong { font-size: 19px; }
.song-tag em { font-size: 16px; }
.song-tag small { font-size: 14px; }
.local-badge,
.area-badge {
  font-size: 14px;
}
.map-link { font-size: 20px; }
.glossary-card h3 { font-size: 32px; }
.glossary-reading { font-size: 18px; }
.glossary-category { font-size: 17px; max-width: 154px; }
.glossary-card > p:not(.glossary-reading) { font-size: 20px; }
.glossary-meta span { font-size: 16px; }

@media (max-width: 720px) {
  body {
    font-size: 22px;
  }
  .brand-name { font-size: 25px; }
  .brand-mark { width: 40px; height: 40px; font-size: 13px; }
  .top-nav nav a { font-size: 18px; }
  .lantern span { font-size: clamp(13px, 3.7vw, 15px); }
  .tate { font-size: 46px; }
  .hero-copy .lede { font-size: 22px; }
  .cta { font-size: 22px; }
  .tonight-callout { font-size: 19px; }
  .section-head h2 { font-size: 38px; }
  .section-sub { font-size: 19px; }
  .cards { grid-template-columns: 1fr; }
  .card-top { grid-template-columns: 100px minmax(0, 1fr); }
  #q,
  select,
  .multi-filter summary,
  #glossary-q {
    font-size: 22px;
  }
  .filter-reset,
  .confirmed-toggle,
  .archive-toggle,
  .chip,
  .view-tab {
    font-size: 19px;
  }
  .filter-active-note { font-size: 23px; }
  .result-note { font-size: 22px; }
  .date-divider time,
  .date-divider-label { font-size: 28px; }
  .date-divider-count { font-size: 16px; }
  .card h3,
  .date-event-item h3 {
    font-size: 27px;
  }
  .card .ward,
  .modal .ward,
  .date-event-item .ward {
    font-size: 19px;
  }
  .card .venue-line,
  .card .time-line,
  .card .desc,
  .card .song-line,
  .date-event-item p {
    font-size: 18px;
  }
  .tag,
  .date-label {
    font-size: 15px;
  }
  .date-stamp {
    width: 96px;
    min-height: 88px;
  }
  .date-stamp strong { font-size: 34px; }
  .date-stamp em { font-size: 24px; }
  .modal { font-size: 21px; }
  .modal h3 { font-size: 30px; }
}
