/* =====================================================================
   デイリーめいちゃんニュース ─ トップページ（最新号＋バックナンバー）の見た目
   - index.html は「号の一覧（ISSUES）」と骨組みだけ。見た目はここ、動きは home.js
   - バックナンバーは「時間をさかのぼる笹の道」：
       下へ行くほど過去へ。2026/8/8 より前はメンバーカラーがブライトグリーンだった時代なので、
       そこを越えると色が緑に変わる。いちばん下は「はじまりの日」（創刊号）
   ===================================================================== */

:root {
  --deep: #0033A0;
  --blue: #2A5FD0;
  --ink: #1E2F52;
  --ink-strong: #0E1B33;
  --sub: #5B6B8C;
  --bg: #EEF3FB;
  --g-deep: #1C7A33;
  --g: #3DAA4F;
  --g-bg: #EDF8EE;
  --pink: #E8577A;
  --card: rgba(255, 255, 255, 0.94);
  /* 今いる時代の色（スクロールで緑の時代に入ると切りかわる） */
  --accent: var(--blue);
  --accent-deep: var(--deep);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html { scroll-padding-top: 64px; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  position: relative;
  min-height: 100vh;
  transition: background-color 1.2s ease;
  /* 日本語の改行を壊さないための土台（japanese-line-breaks スキルの4点セット） */
  word-break: keep-all;
  word-break: auto-phrase;     /* 文節で折り返せるブラウザではそれを使う（だめなら上の keep-all ＋ BudouX） */
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
body.era-green { --accent: var(--g); --accent-deep: var(--g-deep); background-color: var(--g-bg); }
@media (hover: hover) and (pointer: fine) { body { cursor: none; } }
h1, h2, h3, h4 { text-wrap: balance; }
a, button, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #FFC94D; outline-offset: 2px; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('panda-s.png');
  background-repeat: repeat;
  background-size: 120px;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
  animation: scrollBg 12s linear infinite;
}
@keyframes scrollBg {
  0%   { background-position: 0 0; }
  100% { background-position: 120px 120px; }
}

.wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px;
  position: relative;
  z-index: 1;
}

/* ---------- ヘッダー ---------- */
.header {
  background: linear-gradient(135deg, #0033A0 0%, #2A5FD0 50%, #00246E 100%);
  border-radius: 20px;
  padding: 26px 20px 22px;
  color: white;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.header-top { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 12px; }
.header-top img { width: 90px; }
.panda-power-text { font-size: 21px; font-weight: 900; text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3); letter-spacing: 1px; }
.header h1 { font-size: 23px; font-weight: 900; letter-spacing: 1px; margin-bottom: 6px; text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2); }
.header .sub { font-size: 13px; opacity: 0.92; }

/* ---------- 最新号 ---------- */
.hero {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 16px;
  border: 2px solid var(--blue);
  box-shadow: 0 4px 18px rgba(42, 95, 208, 0.2);
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s, box-shadow 0.15s;
}
.hero:hover { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(42, 95, 208, 0.3); }
.hero-badge {
  display: inline-block;
  background: #e53935;
  color: white;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.hero-issue { font-size: 14px; color: var(--deep); font-weight: 700; margin-bottom: 4px; }
.hero-date { font-size: 13px; color: #6b7280; margin-bottom: 10px; }
.hero-title { font-size: 18px; font-weight: 900; color: var(--ink-strong); line-height: 1.5; margin-bottom: 16px; }
.hero-btn {
  display: inline-block;
  background: linear-gradient(135deg, #0033A0, #2A5FD0);
  color: white;
  font-size: 15px;
  font-weight: 900;
  padding: 12px 30px;
  border-radius: 26px;
  box-shadow: 0 3px 10px rgba(0, 51, 160, 0.3);
}

/* ---------- ブックマークのおすすめ ---------- */
.bookmark-banner {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 26px;
  font-size: 13px;
  line-height: 1.6;
  border-left: 4px solid #f9a825;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bookmark-banner .star { font-size: 22px; flex-shrink: 0; }

.section-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--deep);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 6px;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

/* =====================================================================
   バックナンバー
   ===================================================================== */
.arc { margin-bottom: 28px; }
.arc-count { font-size: 12px; font-weight: 700; color: var(--sub); }
.arc-lead { font-size: 13px; line-height: 1.7; color: var(--sub); margin-bottom: 12px; }

/* よんだ号スタンプ */
.stamps {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1.5px dashed rgba(232, 87, 122, 0.45);
}
.stamps-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2.5px solid var(--pink);
  color: var(--pink);
  display: grid;
  place-items: center;
  font-size: 22px;
  transform: rotate(-10deg);
}
.stamps-body { flex: 1; min-width: 0; }
.stamps-head { font-size: 13px; font-weight: 700; color: var(--ink); }
.stamps-head b { font-size: 22px; font-weight: 900; color: var(--pink); margin: 0 2px; font-variant-numeric: tabular-nums; }
.stamps-bar { height: 8px; border-radius: 4px; background: rgba(232, 87, 122, 0.15); overflow: hidden; margin: 6px 0 4px; }
.stamps-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #FF9CB5, var(--pink)); transition: width 1s ease; }
.stamps-note { font-size: 11px; color: var(--sub); line-height: 1.5; }

/* さがす */
.arc-tools { display: flex; gap: 8px; margin-bottom: 8px; }
.arc-search { flex: 1; position: relative; }
.arc-search input {
  width: 100%;
  height: 46px;
  border-radius: 14px;
  border: 2px solid rgba(42, 95, 208, 0.25);
  background: #fff;
  padding: 0 40px 0 14px;
  font: inherit;
  font-size: 16px;            /* iPhoneで勝手にズームしない大きさ */
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.arc-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(42, 95, 208, 0.15); }
.arc-search input::-webkit-search-cancel-button { display: none; }
.arc-clear {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(42, 95, 208, 0.1);
  color: var(--deep);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}
.arc-random {
  flex-shrink: 0;
  height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: var(--deep);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 51, 160, 0.25);
  transition: transform 0.15s;
}
.arc-random:hover { transform: translateY(-2px) rotate(-2deg); }
.arc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.arc-tag {
  border: 1px dashed rgba(42, 95, 208, 0.4);
  background: rgba(255, 255, 255, 0.8);
  color: var(--blue);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.arc-tag:hover, .arc-tag.is-on { background: var(--blue); color: #fff; border-style: solid; }
.arc-result { font-size: 13px; font-weight: 700; color: var(--deep); margin: 8px 0 0; }
.arc-empty {
  text-align: center;
  padding: 28px 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--sub);
}
.arc-empty img { width: 64px; display: block; margin: 0 auto 8px; }

/* 月のチップ（上にはりつく） */
.arc-months {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 10px -16px 0;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 14px -10px rgba(14, 27, 51, 0.35);
}
.arc-months::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid rgba(42, 95, 208, 0.25);
  color: var(--deep);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip small { font-size: 10px; opacity: 0.7; font-weight: 700; }
.chip.is-green { color: var(--g-deep); border-color: rgba(61, 170, 79, 0.35); }
.chip.is-current { background: var(--deep); color: #fff; border-color: transparent; }
.chip.is-green.is-current { background: var(--g-deep); }
.chip-root { color: var(--g-deep); border-style: dashed; border-color: rgba(61, 170, 79, 0.5); }

/* ---------- タイムライン（笹の道） ---------- */
.tl { position: relative; padding-top: 4px; }
.tl-month { --c: var(--blue); --c-deep: var(--deep); }
.tl-month.is-green { --c: var(--g); --c-deep: var(--g-deep); }
.tl-month-head {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 22px 0 10px 2px;
  color: var(--c-deep);
}
.tl-month-num { font-size: 44px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.tl-month-unit { font-size: 18px; font-weight: 900; }
.tl-month-year { font-size: 12px; font-weight: 700; color: var(--sub); margin-left: 4px; }
.tl-month-count {
  margin-left: auto;
  align-self: center;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--c-deep);
}

.tl-list { list-style: none; position: relative; }

.tl-item {
  --c: var(--blue);
  --c-deep: var(--deep);
  position: relative;
  padding: 0 0 10px 54px;
}
.tl-item.is-green { --c: var(--g); --c-deep: var(--g-deep); }

/* 笹のくき（1号ずつのかけらをつないで1本に見せる） */
.tl-item::before, .tl-era::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 0;
  bottom: 0;
  width: 8px;
  background:
    repeating-linear-gradient(180deg, transparent 0 52px, rgba(0, 0, 0, 0.16) 52px 55px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0 2px, transparent 2px 6px, rgba(0, 0, 0, 0.08) 6px),
    var(--c);
  opacity: 0.55;
}
.tl-node {
  position: absolute;
  left: 5px;
  top: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--c);
  display: grid;
  place-items: center;
  font-size: 19px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.tl-card {
  position: relative;
  display: block;
  background: var(--card);
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 64px;
  border: 1.5px solid transparent;
  box-shadow: 0 2px 10px rgba(14, 27, 51, 0.07);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.tl-card:hover { transform: translateX(3px); border-color: var(--c); box-shadow: 0 6px 18px rgba(14, 27, 51, 0.12); }
.tl-card.has-stamp { padding-right: 62px; }
.tl-meta { display: block; font-size: 12px; color: var(--sub); margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.tl-meta b { color: var(--c-deep); font-weight: 900; margin-right: 4px; }
.tl-meta .sat { color: #2A6FDB; font-weight: 700; }
.tl-meta .sun { color: #D9415E; font-weight: 700; }
.tl-title { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.5; color: var(--ink-strong); }
.tl-title.is-empty { color: var(--sub); font-weight: 400; }
.tl-ribbon {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 6px;
  background: linear-gradient(135deg, #FFE08A, #FFC94D);
  color: #6B4A00;
}
.tl-new {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  background: #e53935;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 4px;
  vertical-align: 1px;
}
.tl-stamp {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  color: var(--pink);
  display: grid;
  place-items: center;
  align-content: center;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  transform: rotate(-14deg);
  opacity: 0.85;
}
.tl-stamp span { font-size: 16px; }

/* 時代のさかいめ（2026/8/8 メンバーカラー変更） */
.tl-era {
  position: relative;
  list-style: none;
  padding: 6px 0 16px 54px;
}
.tl-era::before { background: linear-gradient(180deg, var(--blue), var(--g)); opacity: 0.6; }
.tl-era-box {
  position: relative;
  border-radius: 16px;
  padding: 16px 16px 14px;
  color: #fff;
  background: linear-gradient(160deg, var(--deep) 0%, var(--blue) 45%, var(--g) 70%, var(--g-deep) 100%);
  box-shadow: 0 8px 22px rgba(14, 27, 51, 0.18);
  overflow: hidden;
}
.tl-era-box::after {
  content: '💙💚';
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 18px;
  letter-spacing: 2px;
}
.tl-era-badge { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: 1px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); margin-bottom: 8px; }
.tl-era-title { font-size: 15px; font-weight: 900; line-height: 1.6; }
.tl-era-text { font-size: 13px; line-height: 1.7; opacity: 0.95; margin-top: 4px; }
.tl-era-node {
  position: absolute;
  left: 3px;
  top: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: conic-gradient(var(--blue) 0 50%, var(--g) 50% 100%);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

/* スクロールで1号ずつ現れる */
.reveal .tl-item, .reveal .tl-era { opacity: 0; transform: translateX(22px); transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal .tl-item.in, .reveal .tl-era.in { opacity: 1; transform: none; }
.reveal .tl-item.in .tl-node { animation: nodePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes nodePop { 0% { transform: scale(0.4); } 100% { transform: scale(1); } }

/* ---------- いちばん下：はじまりの日 ---------- */
.finale {
  --c: var(--g);
  position: relative;
  text-align: center;
  margin: 8px 0 0;
  padding: 26px 18px 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(28, 122, 51, 0.18);
  overflow: hidden;
}
.finale-sprout { font-size: 44px; line-height: 1; display: inline-block; transform-origin: 50% 100%; }
.finale.in .finale-sprout { animation: sprout 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes sprout { 0% { transform: scale(0.2); } 60% { transform: scale(1.15) rotate(-6deg); } 100% { transform: scale(1); } }
.finale-kicker { font-size: 13px; font-weight: 900; letter-spacing: 3px; color: var(--g-deep); margin-top: 8px; }
.finale-date { font-size: 14px; color: var(--sub); margin-top: 6px; }
.finale-title { font-size: 26px; font-weight: 900; color: var(--ink-strong); margin: 2px 0 14px; }
.finale-title small { display: block; font-size: 13px; color: var(--g-deep); margin-bottom: 2px; }
.finale-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--g-deep), var(--g));
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  padding: 12px 28px;
  border-radius: 26px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(28, 122, 51, 0.3);
  transition: transform 0.15s;
}
.finale-btn:hover { transform: translateY(-2px); }
.finale-stats { font-size: 13px; line-height: 1.8; color: var(--ink); margin: 18px auto 0; max-width: 26em; }
.finale-stats b { font-size: 18px; font-weight: 900; color: var(--g-deep); }
.finale-ground {
  position: relative;
  margin: 20px -18px 0;
  padding: 30px 18px 22px;
  background: linear-gradient(180deg, #CFEFD3, #A9DDB0);
  border-radius: 50% 50% 0 0 / 28px 28px 0 0;   /* ゆるやかな丘 */
}
.finale-top {
  border: 0;
  background: #fff;
  color: var(--deep);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s;
}
.finale-top:hover { transform: translateY(-2px); }
.finale-pandas { font-size: 22px; letter-spacing: 6px; margin-top: 10px; }

/* ---------- 右はしの笹（パンダさんを動かすと時間旅行） ---------- */
.scrub {
  position: fixed;
  top: 50%;
  right: max(4px, calc(50vw - 340px - 66px));
  width: 36px;
  height: min(62vh, 520px);
  transform: translateY(-50%);
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.scrub.is-on { opacity: 1; pointer-events: auto; }
.scrub-rail {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 6px;
  margin-left: -3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--blue) 0 var(--era-at, 100%), var(--g) var(--era-at, 100%) 100%);
  opacity: 0.45;
}
.scrub-tick {
  position: absolute;
  left: 50%;
  width: 14px;
  height: 3px;
  margin: -1px 0 0 -7px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(14, 27, 51, 0.15);
}
.scrub-tick::after {
  content: attr(data-label);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  padding: 2px 7px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transition: opacity 0.2s;
}
.scrub.is-drag .scrub-tick::after { opacity: 1; }
.scrub-thumb {
  position: absolute;
  left: 50%;
  top: 0;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  cursor: grab;
  will-change: transform;
}
.scrub-thumb img { width: 100%; height: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); pointer-events: none; }
.scrub.is-drag .scrub-thumb { cursor: grabbing; }
.scrub.is-drag .scrub-thumb img { transform: scale(1.15); }
.scrub-bubble {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: var(--accent-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 0.25s, background-color 0.6s;
  pointer-events: none;
}
.scrub-bubble small { display: block; font-size: 10px; opacity: 0.85; }
.scrub.is-active .scrub-bubble, .scrub.is-drag .scrub-bubble { opacity: 1; }

/* スマホでは右はしの笹の分だけ、カードを少し細く */
@media (max-width: 799px) {
  .tl, .finale { margin-right: 26px; }
}

/* ---------- 作っているひと ---------- */
.editor-cta {
  background: linear-gradient(135deg, #00246E 0%, #0033A0 100%);
  border-radius: 20px;
  padding: 24px 20px;
  margin-bottom: 20px;
  text-align: center;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 51, 160, 0.3);
  text-decoration: none;
  display: block;
  transition: transform 0.15s, box-shadow 0.15s;
}
.editor-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0, 51, 160, 0.4); }
.editor-cta-label { font-size: 11px; letter-spacing: 2px; opacity: 0.8; margin-bottom: 6px; }
.editor-cta-title { font-size: 20px; font-weight: 900; margin-bottom: 6px; }
.editor-cta-sub { font-size: 13px; opacity: 0.85; line-height: 1.6; margin-bottom: 14px; }
.editor-cta-btn {
  display: inline-block;
  background: white;
  color: var(--deep);
  font-size: 14px;
  font-weight: 900;
  padding: 10px 24px;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ---------- フッター ---------- */
.footer { text-align: center; padding: 24px 16px 40px; color: var(--deep); }
.footer img { width: 52px; margin-bottom: 10px; }
.footer-text { font-size: 15px; font-weight: 700; color: var(--deep); }
.share-label { font-size: 12px; color: var(--blue); font-weight: 700; margin: 16px 0 8px; }
.share-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 0;
  border-radius: 24px;
  color: white;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s, opacity 0.15s;
}
.share-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.share-x { background: #000; }
.share-line { background: #06c755; }
.share-copy { background: var(--blue); }

/* ---------- ちいさなお知らせ ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 9995;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(14, 27, 51, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- ふわっと出る・ゆれる・ただようパンダさん ---------- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(8deg); }
  60% { transform: rotate(-5deg); }
  80% { transform: rotate(5deg); }
}
.wobble { animation: wobble 2.5s ease-in-out infinite; display: inline-block; }

.float-panda {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
  transition: opacity 0.6s;
}
/* 笹の道を歩いている間は、ただようパンダさんは右はしの1頭におまかせ */
@media (max-width: 799px) { body.in-archive .float-panda { opacity: 0; } }
.fp1 { width: 60px; left: 6px; top: 20%; animation: fpBob 4.4s ease-in-out infinite; }
.fp2 { width: 52px; left: 3px; top: 72%; animation: fpSlow 6.6s ease-in-out infinite; }
@keyframes fpBob  { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-18px) rotate(6deg); } }
@keyframes fpSlow { 0%, 100% { transform: translateY(0) rotate(3deg) scale(1); } 50% { transform: translateY(-14px) rotate(-5deg) scale(1.05); } }

/* カーソルについてくるパンダさん（マウスのときだけ） */
#cursor-panda {
  position: fixed;
  left: 0;
  top: 0;
  width: 36px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
  will-change: transform;
}
#cursor-panda.is-on { opacity: 0.9; }
@media (hover: none), (pointer: coarse) { #cursor-panda { display: none !important; } }

/* ---------- 動きを減らす設定の人には、ゆれ・現れる動き・紙ふぶきをお休み ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before, .wobble, .float-panda, .finale-sprout { animation: none !important; }
  .fade-in, .reveal .tl-item, .reveal .tl-era { opacity: 1; transform: none; transition: none; }
  .reveal .tl-item.in .tl-node { animation: none; }
  body { transition: none; }
}
