/* =========================================================
   小学生でもわかるAI図鑑 — クレイ（粘土）スタイル
   記事の挿絵と同じ: クリーム #FAF3E1 / ティール #1B7A72 / チャコール #2F2F2F
   ========================================================= */
:root {
  --cream: #faf3e1;
  --cream-deep: #f1e6cb;
  --stage: #fef6e0;          /* 挿絵の背景色に合わせた台座 */
  --paper: #fffcf4;
  --paper-2: #fbf3df;
  --ink: #2f2f2f;
  --ink-2: #5a564f;
  --ink-3: #8a8478;
  --teal: #1b7a72;
  --teal-deep: #13605a;
  --teal-soft: #dceeeb;
  --teal-tint: #eef6f4;
  --sun: #f5c443;
  --peach: #f19a5b;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;

  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Yu Gothic", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "BIZ UDPGothic", "Yu Gothic", sans-serif;
  --font-latin: "Fredoka", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;

  --shadow-clay:
    inset 0 1px 0 #fff,
    inset 0 -3px 0 rgba(120, 95, 40, 0.07),
    0 22px 40px -24px rgba(80, 60, 20, 0.35),
    0 6px 14px -10px rgba(80, 60, 20, 0.2);
  --shadow-clay-hover:
    inset 0 1px 0 #fff,
    inset 0 -3px 0 rgba(120, 95, 40, 0.07),
    0 32px 54px -26px rgba(80, 60, 20, 0.42),
    0 12px 22px -12px rgba(80, 60, 20, 0.22);
  --shadow-teal:
    inset 0 2px 0 rgba(255, 255, 255, 0.32),
    inset 0 -4px 0 rgba(0, 0, 0, 0.17),
    0 10px 18px -10px rgba(27, 122, 114, 0.7);
  --shadow-white:
    inset 0 2px 0 #fff,
    inset 0 -4px 0 rgba(120, 95, 40, 0.1),
    0 10px 18px -12px rgba(80, 60, 20, 0.35);

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt";
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* 奥行き: やわらかい光と、紙のような粒 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(55% 45% at 88% -8%, rgba(27, 122, 114, 0.16), transparent 65%),
    radial-gradient(40% 38% at -8% 28%, rgba(245, 196, 67, 0.2), transparent 65%),
    radial-gradient(50% 40% at 75% 108%, rgba(27, 122, 114, 0.12), transparent 65%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.6;
  background-image: url("noise.png");
  background-size: 160px 160px;
  transform: translateZ(0);
}
img, video { max-width: 100%; height: auto; }
a { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 900; line-height: 1.3; margin: 0; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
.latin, .num, .count, time { font-family: var(--font-latin); }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #fff; padding: 0.5em 1em; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* ---------- 出現アニメーション ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.9s var(--ease-spring); transition-delay: calc(var(--i, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-pop { opacity: 0; transform: scale(0.84) rotate(-4deg); transition: opacity 0.6s ease, transform 1s var(--ease-spring); transition-delay: calc(var(--i, 0) * 90ms); }
.js .rv-pop.in { opacity: 1; transform: none; }

/* ---------- 粘土の部品 ---------- */
.clay {
  position: relative;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-clay);
}
.clay-hover { transition: transform 0.5s var(--ease-spring), box-shadow 0.5s ease; }
.clay-hover:hover { transform: translateY(-5px) rotate(-0.35deg); box-shadow: var(--shadow-clay-hover); }

.pill, .brand-pill, .pill-inline {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.3em 0.95em; border-radius: 999px;
  background: var(--teal); color: #fff;
  font-family: var(--font-display); font-weight: 900; font-size: 0.85rem; line-height: 1.4;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.32), inset 0 -3px 0 rgba(0, 0, 0, 0.16), 0 6px 12px -6px rgba(27, 122, 114, 0.55);
  white-space: nowrap;
}
.pill-soft { background: #fff; color: var(--teal); box-shadow: inset 0 2px 0 #fff, inset 0 -3px 0 rgba(120, 95, 40, 0.1), 0 6px 12px -8px rgba(80, 60, 20, 0.3); }
.pill-sun { background: var(--sun); color: var(--ink); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 0 rgba(120, 80, 0, 0.18), 0 6px 12px -8px rgba(200, 150, 0, 0.5); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.8em 1.5em; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 900; font-size: 1rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s ease, background 0.3s ease;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-teal); }
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-2px) scale(1.02); }
.btn-primary:active { transform: translateY(1px) scale(0.99); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18); }
.btn-ghost { background: #fff; color: var(--teal); box-shadow: var(--shadow-white); }
.btn-ghost:hover { transform: translateY(-2px) scale(1.02); }
.btn-ghost:active { transform: translateY(1px); }
.btn-x { background: var(--ink); color: #fff; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18), inset 0 -4px 0 rgba(0, 0, 0, 0.35), 0 10px 18px -10px rgba(0, 0, 0, 0.5); }
.btn-x:hover { background: #1a1a1a; transform: translateY(-2px) scale(1.02); }
.btn-disabled { background: var(--cream-deep); color: var(--ink-3); cursor: default; box-shadow: inset 0 -3px 0 rgba(120, 95, 40, 0.08); }
.btn-lg { font-size: 1.08rem; padding: 0.95em 1.7em; }
.btn-sm { font-size: 0.85rem; padding: 0.55em 1.1em; }
.btn.is-done { background: var(--sun); color: var(--ink); }

.bars, .bars-sm { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.bars i, .bars-sm i { display: block; width: 3px; border-radius: 2px; background: currentColor; height: 40%; animation: bar 1.1s ease-in-out infinite; }
.bars i:nth-child(2), .bars-sm i:nth-child(2) { animation-delay: 0.12s; }
.bars i:nth-child(3), .bars-sm i:nth-child(3) { animation-delay: 0.24s; }
.bars i:nth-child(4), .bars-sm i:nth-child(4) { animation-delay: 0.36s; }
.bars i:nth-child(5), .bars-sm i:nth-child(5) { animation-delay: 0.48s; }
@keyframes bar { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-9px) rotate(var(--rot, 0deg)); } }
@keyframes twinkle { 0%, 100% { transform: scale(0.7) rotate(0deg); opacity: 0.5; } 50% { transform: scale(1.15) rotate(20deg); opacity: 1; } }

/* ---------- ヘッダー / フッター ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 243, 225, 0.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(47, 47, 47, 0.06);
  transition: box-shadow 0.3s ease;
}
.site-head.is-stuck { box-shadow: 0 12px 30px -22px rgba(80, 60, 20, 0.35); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; letter-spacing: 0.02em; }
.head-nav { display: flex; align-items: center; gap: 1.2rem; }
.head-nav > a:not(.btn) { font-family: var(--font-display); font-weight: 700; color: var(--ink-2); text-decoration: none; position: relative; }
.head-nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transition: transform 0.3s var(--ease-out); transform-origin: left; }
.head-nav > a:not(.btn):hover::after { transform: scaleX(1); }

.site-foot { margin-top: 2rem; padding: 3rem 0 2.5rem; border-top: 1px solid rgba(47, 47, 47, 0.08); }
.foot-in { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.foot-note { font-size: 0.8rem; color: var(--ink-3); max-width: 42em; margin: 0.8rem 0 0; }
.foot-right { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.foot-author { margin: 0; font-size: 0.9rem; color: var(--ink-2); font-weight: 700; }
.foot-author a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--teal-soft); }

/* ---------- セクション共通 ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tint { background: linear-gradient(180deg, rgba(27, 122, 114, 0.05), rgba(27, 122, 114, 0.02)); border-block: 1px solid rgba(27, 122, 114, 0.08); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-note { margin: 0; max-width: 34em; color: var(--ink-2); font-size: 0.95rem; }
.kicker-lbl { font-family: var(--font-latin); font-weight: 600; color: var(--teal); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; display: flex; align-items: center; gap: 0.55em; margin: 0 0 0.35rem; }
.kicker-lbl::before { content: ""; width: 22px; height: 4px; border-radius: 2px; background: var(--teal); }
.h2 { font-size: clamp(1.65rem, 3.4vw, 2.3rem); }
.h2 em, .h3 em { font-style: normal; color: var(--teal); }
.h3 { font-size: 1.25rem; margin: 0 0 1rem; }
.kicker { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 0.8rem; }
.proof { display: inline-flex; align-items: center; gap: 0.45em; font-family: var(--font-display); font-weight: 700; color: var(--teal); font-size: 0.88rem; }
.proof svg { width: 1em; height: 1em; }
.count { font-weight: 600; font-size: 0.85rem; color: var(--ink-3); }

/* ---------- ヒーロー（トップ） ---------- */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 3rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.55em; font-family: var(--font-display); font-weight: 700; color: var(--ink-2); font-size: 0.9rem; margin: 0 0 1rem; }
.eyebrow .dot { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(27, 122, 114, 0.16); }
.display { font-size: clamp(2.4rem, 6.2vw, 4.5rem); line-height: 1.05; }
.display .pill-inline { font-size: 0.36em; margin-bottom: 0.45em; padding: 0.35em 1.05em; }
.display .display-big { display: block; letter-spacing: 0.01em; }
.display .display-big .latin { font-weight: 700; }
.display em { font-style: normal; color: var(--teal); position: relative; display: inline-block; }
.display em::after { content: ""; position: absolute; left: 0.02em; right: 0.02em; bottom: 0.02em; height: 0.16em; border-radius: 1em; background: var(--sun); z-index: -1; opacity: 0.85; }
.display .display-catch { display: block; font-size: 0.42em; color: var(--teal); margin-top: 0.5em; line-height: 1.35; }
.lede { font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--ink-2); max-width: 34em; margin: 1.2rem 0 1.6rem; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
.stats { display: flex; gap: 1.8rem; margin: 2.2rem 0 0; padding: 0; flex-wrap: wrap; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-family: var(--font-display); font-size: 0.78rem; color: var(--ink-3); font-weight: 700; }
.stats dd { margin: 0; font-family: var(--font-latin); font-weight: 700; font-size: 2.1rem; line-height: 1.1; color: var(--ink); }
.stats dd small { font-size: 0.55em; color: var(--teal); margin-left: 0.05em; }

.hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 440px; margin-inline: auto; }
.medallion {
  position: absolute; inset: 9%; border-radius: 50%; overflow: hidden;
  background: radial-gradient(120% 120% at 30% 18%, #fffbee, #f8ecd0);
  box-shadow: var(--shadow-clay), inset 0 -14px 30px rgba(120, 95, 40, 0.08);
  animation: float 6s ease-in-out infinite;
}
.medallion img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; display: block; }
.medallion .art-ph-icon { position: absolute; inset: 0; margin: auto; }
.hero-art .chip {
  position: absolute; padding: 0.4em 1.1em; border-radius: 999px; background: #fff; color: var(--teal);
  font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; box-shadow: var(--shadow-white);
  animation: float 5.5s ease-in-out infinite;
}
.hero-art .f1 { top: 4%; left: 0; --rot: -8deg; }
.hero-art .f2 { top: 20%; right: -3%; --rot: 6deg; animation-delay: 0.9s; }
.hero-art .f3 { bottom: 10%; left: 3%; --rot: 4deg; animation-delay: 1.7s; }
.hero-art .bars-lg {
  position: absolute; right: 4%; bottom: 9%; height: 54px; padding: 12px 16px; gap: 5px;
  background: var(--teal); color: #fff; border-radius: 18px; box-shadow: var(--shadow-teal);
  animation: float 6.5s ease-in-out 0.4s infinite; --rot: -5deg;
}
.hero-art .bars-lg i { width: 6px; border-radius: 3px; }
.hero-art .spk { position: absolute; color: var(--sun); width: 22px; height: 22px; animation: twinkle 2.6s ease-in-out infinite; }
.hero-art .spk svg { width: 100%; height: 100%; }
.hero-art .s1 { top: 6%; right: 22%; }
.hero-art .s2 { bottom: 26%; right: 0; animation-delay: 0.8s; width: 16px; height: 16px; }
.hero-art .s3 { top: 42%; left: -4%; animation-delay: 1.6s; width: 18px; height: 18px; }

/* ---------- シリーズ ---------- */
.series-feat { display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; }
.series-feat-art { display: grid; place-items: center; background: var(--stage); position: relative; min-height: 260px; padding: 0.6rem; }
.series-feat-art img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 0.7s var(--ease-spring); }
.series-feat:hover .series-feat-art img { transform: scale(1.03); }
.series-feat-body { padding: clamp(1.4rem, 3vw, 2.4rem); }
.h-series { font-size: clamp(1.6rem, 3vw, 2.2rem); display: flex; align-items: baseline; gap: 0.5em; flex-wrap: wrap; }
.h-series .name { font-family: var(--font-latin); font-weight: 700; }
.h-series .kana { font-size: 0.5em; color: var(--ink-3); font-weight: 700; }
.catch { font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; color: var(--teal); margin: 0.2rem 0 0.6rem; }
.lead { color: var(--ink-2); margin: 0 0 1rem; }
.progress { display: flex; align-items: center; gap: 0.7rem; margin: 0.8rem 0 1rem; }
.segs { display: flex; gap: 4px; flex: 1; max-width: 300px; }
.segs i { flex: 1; height: 10px; border-radius: 5px; background: #e7dec6; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08); }
.segs i.on { background: var(--teal); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.15); }
.progress-label { font-family: var(--font-latin); font-weight: 600; color: var(--ink-2); font-size: 0.92rem; white-space: nowrap; }
.progress-label b { font-size: 1.25em; color: var(--teal); }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; padding: 0; margin: 0 0 1.3rem; }
.chips li { padding: 0.25em 0.8em; border-radius: 999px; background: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: var(--ink-2); box-shadow: inset 0 -2px 0 rgba(120, 95, 40, 0.08), 0 3px 8px -5px rgba(80, 60, 20, 0.3); }
.chips-lg { margin: 0; }
.chips-lg li { font-size: 0.95rem; padding: 0.45em 1em; }

.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; margin-top: 1.4rem; }
.series-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; }
.series-card-art { aspect-ratio: 3 / 2; background: var(--stage); position: relative; overflow: hidden; }
.series-card-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s var(--ease-spring); }
.series-card:hover .series-card-art img { transform: scale(1.05); }
.series-card-body { padding: 1.1rem 1.25rem 1.3rem; }
.series-card h3 { font-size: 1.25rem; }
.series-card h3 .name { font-family: var(--font-latin); font-weight: 700; }
.series-card .catch { font-size: 0.95rem; margin: 0.25rem 0 0; }
.art-ph { width: 100%; height: 100%; min-height: 180px; display: grid; place-content: center; justify-items: center; gap: 0.6rem; background: radial-gradient(80% 80% at 50% 30%, #fffbee, #f5e9cc); }
.art-ph-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.3), inset 0 -5px 0 rgba(0, 0, 0, 0.18), 0 14px 24px -12px rgba(27, 122, 114, 0.7); }
.art-ph-icon svg { width: 44px; height: 44px; }
.art-ph-lbl { font-family: var(--font-latin); font-weight: 700; color: var(--ink-2); font-size: 1.1rem; text-decoration: none; }
a .art-ph, a .art-ph * { text-decoration: none; }
.ep-cover:has(.art-ph) { aspect-ratio: 3 / 1; }
.art-ph-sm { min-height: 120px; }
/* 準備中（リンクなし） */
.is-soon { cursor: default; }
.series-card.is-soon .series-card-art img, .series-feat.is-soon .series-feat-art img { filter: saturate(0.55) opacity(0.8); }
.series-card.is-soon:hover .series-card-art img { transform: none; }
.soon-badge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 0.35em; padding: 0.3em 0.85em; border-radius: 999px; background: rgba(47, 47, 47, 0.82); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 0.78rem; backdrop-filter: blur(4px); }
.soon-badge svg { width: 1em; height: 1em; }
.art-ph-sm .art-ph-icon { width: 56px; height: 56px; }
.art-ph-sm .art-ph-icon svg { width: 28px; height: 28px; }

/* ---------- 最新の記事 ---------- */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 1.2rem; overflow-x: auto; padding: 0.6rem 0.3rem 1.4rem; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--teal-soft) transparent; }
.mini { scroll-snap-align: start; display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; }
.mini-cover { aspect-ratio: 5 / 2; background: var(--stage); overflow: hidden; }
.mini-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-body { padding: 1rem 1.15rem 1.25rem; }
.mini h3 { font-size: 1.02rem; line-height: 1.5; }
.mini .kicker { margin-bottom: 0.5rem; }

/* ---------- 約束 ---------- */
.promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.promise { padding: 1.6rem 1.4rem 1.5rem; }
.promise .num { font-family: var(--font-latin); font-weight: 700; font-size: 1.7rem; color: var(--teal); line-height: 1; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-white); transform: rotate(-5deg); }
.promise h3 { font-size: 1.15rem; margin: 1rem 0 0.5rem; }
.promise p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* ---------- 著者 ---------- */
.author { display: grid; grid-template-columns: auto 1fr auto; gap: 1.8rem; align-items: center; padding: 1.8rem 2rem; }
.avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: radial-gradient(120% 120% at 30% 18%, #fffbee, #f8ecd0); box-shadow: var(--shadow-clay); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.author-name { font-size: 1.35rem; }
.author-name .count { margin-left: 0.4em; }
.author-bio { margin: 0.4rem 0 0; color: var(--ink-2); }

/* ---------- パンくず ---------- */
.crumbs { display: flex; gap: 0.5em; flex-wrap: wrap; font-family: var(--font-display); font-size: 0.85rem; color: var(--ink-3); font-weight: 700; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.crumbs li + li::before { content: "›"; margin-right: 0.5em; color: var(--ink-3); }

/* ---------- シリーズページ ---------- */
.s-hero { padding: 0.5rem 0 3rem; }
.s-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center; margin-top: 1.5rem; }
.s-hero .display { font-size: clamp(2.1rem, 5.2vw, 3.8rem); }
.s-hero-art { position: relative; padding: 1rem 0.5rem; }
.frame { border-radius: var(--r-lg); overflow: hidden; background: var(--stage); box-shadow: var(--shadow-clay); }
.frame img { display: block; width: 100%; height: auto; }
.s-hero-art .frame { transform: rotate(1.6deg); transition: transform 0.7s var(--ease-spring); }
.s-hero-art:hover .frame { transform: rotate(0deg) scale(1.01); }
.tape { position: absolute; top: 2px; left: 50%; width: 130px; height: 30px; transform: translateX(-50%) rotate(-3deg); background: rgba(245, 196, 67, 0.75); border-radius: 4px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
.map-wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2rem; align-items: center; }
.rooms { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.rooms li { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1rem; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 -2px 0 rgba(120, 95, 40, 0.06), 0 6px 14px -12px rgba(80, 60, 20, 0.3); font-family: var(--font-display); font-weight: 700; }
.rooms .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; font-size: 0.85rem; font-weight: 700; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.16); flex: none; }

/* エピソードの道（ルート） */
.route { list-style: none; margin: 0; padding: 0; position: relative; }
.route::before { content: ""; position: absolute; left: 28px; top: 48px; bottom: 48px; border-left: 4px dotted rgba(27, 122, 114, 0.4); }
.ep { display: grid; grid-template-columns: 60px 1fr; gap: 1.2rem; margin-bottom: 2rem; align-items: start; }
.ep-node { position: sticky; top: 90px; display: grid; place-items: center; z-index: 1; }
.ep-num { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; font-family: var(--font-latin); font-weight: 700; font-size: 1.3rem; box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.3), inset 0 -5px 0 rgba(0, 0, 0, 0.18), 0 10px 16px -8px rgba(27, 122, 114, 0.7), 0 0 0 8px var(--cream); }
.ep-num svg { width: 24px; height: 24px; }
.is-coming .ep-num { background: #fff; color: var(--ink-3); box-shadow: var(--shadow-white), 0 0 0 8px var(--cream); }
.ep-card { overflow: hidden; }
.ep-cover { display: block; position: relative; aspect-ratio: 5 / 2; background: var(--stage); overflow: hidden; }
.ep-cover.r32 { aspect-ratio: 3 / 2; }
.ep-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s var(--ease-spring); }
.ep-card:hover .ep-cover img { transform: scale(1.03); }
.is-coming .ep-cover img { filter: saturate(0.5) opacity(0.75); }
.ribbon { position: absolute; top: 18px; left: -44px; transform: rotate(-35deg); background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 0.8rem; padding: 0.35em 3.2em; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18); letter-spacing: 0.05em; }
.ep-body { padding: 1.4rem 1.5rem 1.5rem; }
.ep-title { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.45; margin: 0.3rem 0 0.6rem; }
.ep-title a { color: inherit; text-decoration: none; }
.ep-title a:hover { color: var(--teal); }
.ep-hook { margin: 0 0 0.9rem; color: var(--ink-2); }
.meta { display: flex; gap: 1.1rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 1rem; font-family: var(--font-display); font-size: 0.88rem; font-weight: 700; color: var(--ink-2); }
.meta li { display: inline-flex; align-items: center; gap: 0.35em; }
.meta svg { width: 1.15em; height: 1.15em; color: var(--teal); }
.ep-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; }
.link-more { display: inline-flex; align-items: center; gap: 0.3em; font-family: var(--font-display); font-weight: 900; color: var(--teal); text-decoration: none; margin-left: auto; }
.link-more svg { width: 1em; height: 1em; transition: transform 0.3s var(--ease-spring); }
.link-more:hover svg { transform: translateX(4px); }
.demo { margin-top: 1rem; padding: 1rem; border-radius: var(--r-md); background: var(--stage); box-shadow: inset 0 2px 6px rgba(120, 95, 40, 0.1); }
.demo[hidden] { display: none; }
.demo video, .demo-inline video { width: 100%; border-radius: 12px; display: block; background: #000; }
.demo-note { font-size: 0.8rem; color: var(--ink-3); margin: 0.6rem 0 0; }
.tags { display: flex; gap: 0.4rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 1rem 0 0; }
.tags li { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; color: var(--teal); background: var(--teal-tint); padding: 0.15em 0.7em; border-radius: 999px; }
.tags li::before { content: "#"; opacity: 0.7; }
.planned-wrap { margin-top: 3rem; padding-left: 76px; }
.planned { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0.7rem; }
.planned li { display: flex; gap: 0.8rem; align-items: center; padding: 0.8rem 1rem; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 -2px 0 rgba(120, 95, 40, 0.06); color: var(--ink-2); font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.planned .n { font-family: var(--font-latin); font-weight: 700; color: var(--ink-3); min-width: 2.2em; }
.planned svg { width: 1.1em; height: 1.1em; color: var(--ink-3); margin-left: auto; flex: none; }
.cta-follow { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem 2.2rem; flex-wrap: wrap; }
.cta-follow .lead { margin: 0.5rem 0 0; }

/* ---------- エピソードページ ---------- */
.e-hero { padding: 0.5rem 0 2.5rem; }
.e-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; margin-top: 1.5rem; }
.e-title { font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.35; }
.e-title .pre { display: block; font-size: 0.55em; color: var(--teal); margin-bottom: 0.3em; }
.e-hero .lede { margin: 1rem 0 1rem; }
.e-hero .meta { margin-bottom: 1.4rem; }
.e-cover { border-radius: var(--r-lg); overflow: hidden; background: var(--stage); box-shadow: var(--shadow-clay); transform: rotate(-1.2deg); transition: transform 0.7s var(--ease-spring); }
.e-cover:hover { transform: rotate(0deg) scale(1.01); }
.e-cover img { display: block; width: 100%; height: auto; }
.e-body-wrap { padding-top: 1rem; }
.e-body { display: grid; grid-template-columns: 1fr 330px; gap: 2rem; align-items: start; }
.e-main > * + * { margin-top: 1.6rem; }
.box { padding: 1.6rem 1.7rem; }
.box h2 { font-size: 1.25rem; margin: 0 0 1rem; display: flex; align-items: center; gap: 0.55em; }
.box h2::before { content: ""; width: 10px; height: 26px; border-radius: 5px; background: var(--teal); flex: none; }
.summary { margin: 0; color: var(--ink-2); font-size: 1.02rem; }
.check { list-style: none; padding: 0; margin: 0; }
.check li { display: flex; gap: 0.75em; padding: 0.6em 0; border-top: 1px dashed rgba(47, 47, 47, 0.14); font-weight: 500; }
.check li:first-child { border-top: 0; padding-top: 0; }
.check svg { flex: none; width: 1.5em; height: 1.5em; color: #fff; background: var(--teal); border-radius: 50%; padding: 4px; margin-top: 0.2em; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18); }
.side { position: sticky; top: 88px; }
.side .box + .box { margin-top: 1.2rem; }
.side-h { font-size: 1.05rem; margin: 0 0 0.4rem; }
.side-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.side-list li a { display: flex; align-items: center; gap: 0.7em; padding: 0.45em 0.6em; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; }
.side-list li a:hover { background: rgba(255, 255, 255, 0.7); color: var(--teal); }
.side-list .n { font-family: var(--font-latin); font-weight: 700; color: var(--ink-3); min-width: 2em; }
.side-list .is-current a { background: var(--teal); color: #fff; box-shadow: var(--shadow-teal); }
.side-list .is-current .n { color: rgba(255, 255, 255, 0.8); }
.side-list .is-coming:not(.is-current) a { opacity: 0.55; }
.side-list .side-soon { display: flex; align-items: center; gap: 0.7em; padding: 0.45em 0.6em; color: var(--ink-3); font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; opacity: 0.6; cursor: default; }
.is-coming .ep-title { color: var(--ink-2); }
.cta-x { text-align: center; }
.cta-x .kicker-lbl { justify-content: center; }
.cta-x-lead { margin: 0 0 1rem; color: var(--ink-2); font-size: 0.92rem; }
.cta-x .btn { width: 100%; }
.cta-x .tags { justify-content: center; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pn a, .pn .pn-soon { text-decoration: none; color: inherit; padding: 1rem 1.2rem; display: block; }
.pn .pn-soon { opacity: 0.65; cursor: default; }
.pn .pn-soon .lbl { color: var(--ink-3); }
.pn .lbl { font-family: var(--font-latin); font-weight: 600; font-size: 0.78rem; color: var(--teal); letter-spacing: 0.08em; }
.pn .t { font-family: var(--font-display); font-weight: 900; font-size: 0.98rem; line-height: 1.4; display: block; margin-top: 0.2rem; }
.pn .next { text-align: right; }
.demo-inline video { box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.5); }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 2rem 0; }
.nf .display { color: var(--teal); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .hero-grid, .s-hero-grid, .e-hero-grid, .map-wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; margin-top: 1rem; }
  .series-feat { grid-template-columns: 1fr; }
  .series-feat-art { min-height: 0; aspect-ratio: 3 / 2; }
  .e-body { grid-template-columns: 1fr; }
  .side { position: static; }
  .s-hero-art { max-width: 640px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .head-nav { gap: 0.8rem; }
  .head-nav > a:not(.btn) { display: none; }
  .brand-name { font-size: 1.1rem; }
  .hero { padding-top: 1.6rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .stats { gap: 1.2rem; }
  .ep { grid-template-columns: 44px 1fr; gap: 0.8rem; }
  .ep-num { width: 44px; height: 44px; font-size: 1rem; box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.3), inset 0 -4px 0 rgba(0, 0, 0, 0.18), 0 8px 14px -8px rgba(27, 122, 114, 0.7), 0 0 0 6px var(--cream); }
  .ep-num svg { width: 18px; height: 18px; }
  .route::before { left: 20px; }
  .ep-body { padding: 1.1rem 1.15rem 1.25rem; }
  .ep-actions .btn { flex: 1 1 auto; }
  .link-more { margin-left: 0; }
  .planned-wrap { padding-left: 0; }
  .author { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 1.6rem 1.3rem; }
  .pn { grid-template-columns: 1fr; }
  .pn .next { text-align: left; }
  .cta-follow { padding: 1.6rem 1.3rem; }
  .box { padding: 1.3rem 1.2rem; }
  .strip { grid-auto-columns: 82%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .rv-pop { opacity: 1; transform: none; }
}
