/* ===== 全体 ===== */
html {
  scroll-behavior: smooth;
}

/* ===== ヒーロー：夜空 ===== */
.hero-sky {
  background:
    radial-gradient(1.5px 1.5px at 12% 28%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(1px 1px at 32% 12%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 55% 34%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 71% 8%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 88% 26%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 6%, rgba(255, 255, 255, 0.5), transparent 60%),
    linear-gradient(180deg, #070b18 0%, #0b1020 40%, #1e2a4a 85%, #2b3a66 100%);
}

.title-glow {
  text-shadow: 0 0 24px rgba(251, 146, 60, 0.35), 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ===== 花火（CSSのみ） ===== */
.fw {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  opacity: 0;
}
.fw1 {
  left: 16%;
  top: 24%;
  box-shadow:
    0 -52px #fbbf24, 26px -45px #fde68a, 45px -26px #fb923c, 52px 0 #fbbf24,
    45px 26px #fde68a, 26px 45px #fb923c, 0 52px #fbbf24, -26px 45px #fde68a,
    -45px 26px #fb923c, -52px 0 #fbbf24, -45px -26px #fde68a, -26px -45px #fb923c;
}
.fw2 {
  right: 14%;
  top: 14%;
  box-shadow:
    0 -40px #fda4af, 20px -35px #fecdd3, 35px -20px #fb7185, 40px 0 #fda4af,
    35px 20px #fecdd3, 20px 35px #fb7185, 0 40px #fda4af, -20px 35px #fecdd3,
    -35px 20px #fb7185, -40px 0 #fda4af, -35px -20px #fecdd3, -20px -35px #fb7185;
}
@media (prefers-reduced-motion: no-preference) {
  .fw {
    animation: fw-burst 4.6s ease-out infinite;
  }
  .fw2 { animation-delay: 2.2s; }
}

@keyframes fw-burst {
  0%   { transform: scale(0.1); opacity: 0; }
  4%   { opacity: 1; }
  38%  { transform: scale(1); opacity: 0; }
  100% { opacity: 0; }
}

/* ===== 提灯 ===== */
.lantern {
  position: absolute;
  filter: drop-shadow(0 0 16px rgba(251, 146, 60, 0.45));
  transform-origin: top center;
}
@media (prefers-reduced-motion: no-preference) {
  .lantern { animation: sway 4.5s ease-in-out infinite alternate; }
  .lantern-slow { animation-duration: 6s; animation-delay: 1s; }
}
@keyframes sway {
  from { transform: rotate(-4deg); }
  to   { transform: rotate(4deg); }
}

/* ===== カウントダウンバッジ ===== */
@media (prefers-reduced-motion: no-preference) {
  .glow-badge { animation: badge-glow 2.6s ease-in-out infinite; }
}
@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 18px rgba(249, 115, 22, 0.45); }
  50%      { box-shadow: 0 0 34px rgba(249, 115, 22, 0.8); }
}

/* ===== セクション見出し（オレンジの縦帯） ===== */
.section-title {
  position: relative;
  padding-left: 14px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f97316, #fbbf24);
}

/* ===== スクロールで現れる ===== */
.reveal, .reveal-fade {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal { transform: translateY(24px); }
.reveal.is-visible, .reveal-fade.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-fade { opacity: 1; transform: none; transition: none; }
}

/* ===== 綱の区切り（屯田大綱引きへのオマージュ） ===== */
.rope-divider {
  height: 10px;
  max-width: 180px;
  margin: 0 auto;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='10' viewBox='0 0 24 10'><path d='M0 5 Q6 0 12 5 T24 5' fill='none' stroke='%23c9a86a' stroke-width='2.5' stroke-linecap='round'/></svg>") repeat-x center;
  opacity: 0.9;
}

/* ===== キーボード操作時のフォーカス表示 ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #f97316;
  outline-offset: 2px;
  border-radius: 6px;
}

/* ===== FAQの開閉マーク ===== */
details summary::-webkit-details-marker { display: none; }
details summary { list-style: none; position: relative; padding-right: 28px; }
details summary::after {
  content: '＋';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #f97316;
  font-weight: bold;
  transition: transform 0.2s ease;
}
details[open] summary::after { content: '−'; }

/* ===== フッターの提灯ライン ===== */
.lantern-divider {
  height: 2px;
  margin: 4px auto 12px;
  max-width: 240px;
  background: linear-gradient(90deg, transparent, #fb923c, #fbbf24, #fb923c, transparent);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(251, 146, 60, 0.5);
}

/* ===== チャットボタン ===== */
@media (prefers-reduced-motion: no-preference) {
  .chat-fab { animation: fab-hop 6s ease-in-out infinite; }
}
@keyframes fab-hop {
  0%, 90%, 100% { transform: translateY(0); }
  93%           { transform: translateY(-6px); }
  96%           { transform: translateY(0); }
}

/* ===== Leafletの絵文字ピン ===== */
.pin-emoji {
  font-size: 26px;
  line-height: 34px;
  text-align: center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

/* ===== 現在地ボタン（Leafletコントロール） ===== */
.locate-btn {
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
