/* ひたちおおみや放送局 キーデッケ
   ロゴの「黄色・黒い線・水色の電波」をそのまま画面の言葉にする。
   太い黒線＋ずらした影で、紙に刷ったポップな番組表のように。文字は16px以上。 */

/* 見出しの書体は使う文字だけに絞って自前で配る（_tools/build_font.py）。本文は端末の標準の書体 */
@font-face {
  font-family: "Mochiy Pop One";
  src: url("/assets/font/mochiy.woff2?v=2a95280f") format("woff2");
  font-display: swap;
}

:root {
  --yellow: #fff151; /* メインカラー rgb(255 241 81)（松原さん指定） */
  --yellow-soft: #fff6b8;
  --paper: #fffcf0;
  --ink: #17140c;
  --ink-2: #4a4638;
  --sky: #56b7e6;
  --green: #5cc98b;
  --pink: #ff8fb1;
  --orange: #ff9f43;
  --violet: #a193ff;
  --red: #ff5f4f;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-s: 4px 4px 0 var(--ink);
  --r: 20px;
  --gut: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --tab-h: 0px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Mochiy Pop One", "Hiragino Maru Gothic ProN", "BIZ UDPGothic", sans-serif;
  --body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(rgba(23, 20, 12, .07) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  padding-bottom: var(--tab-h);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 4px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; }
.skip:focus { left: 8px; }

/* ---------- 共通の部品 ---------- */
.nw { white-space: nowrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 56px; padding: 12px 26px;
  border: var(--line); border-radius: 999px;
  font-weight: 700; font-size: 18px; text-decoration: none; line-height: 1.3;
  background: #fff; box-shadow: var(--shadow-s);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--ink { background: var(--ink); color: var(--yellow); }
.btn--ink .ic--yt rect { fill: var(--red); }
.btn--line { background: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); box-shadow: none; min-height: 52px; }
.btn--ghost:hover { background: rgba(255,255,255,.12); box-shadow: none; transform: none; }
.btn--xl { min-height: 68px; font-size: 20px; padding: 14px 32px; }
.btn--xl .ic { width: 1.4em; height: 1.4em; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sec-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(28px, 4.2vw, 44px); line-height: 1.25; letter-spacing: .02em;
  display: flex; align-items: center; gap: .45em; flex-wrap: wrap;
}
.sec-title--big { font-size: clamp(36px, 6.4vw, 72px); }
.sec-title--mb { margin-bottom: 20px; }
.sec-title--sub { margin: 64px 0 20px; }
.sec-title__mark {
  font-family: var(--display); font-size: 16px; letter-spacing: .12em;
  background: var(--red); color: #fff; border: var(--line); border-radius: 999px; padding: 2px 12px 3px;
  transform: rotate(-6deg);
}

/* 動画カード */
.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; min-width: 0; }
.card__thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border: var(--line); border-radius: 16px; background: var(--ink);
  box-shadow: var(--shadow-s);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card__play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--yellow); border: var(--line); color: var(--ink);
  transform: scale(.85); opacity: .92;
  transition: transform .35s var(--ease), opacity .35s;
}
.card__play .ic { width: 28px; height: 28px; }
.card__dur {
  position: absolute; right: 8px; bottom: 8px;
  background: var(--ink); color: #fff; font-size: 16px; font-weight: 700; line-height: 1;
  padding: 6px 10px 7px; border-radius: 999px;
}
.card__title {
  font-weight: 700; font-size: 18px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta { font-size: 16px; color: var(--ink-2); line-height: 1.4; }
.card:hover .card__thumb, .card:focus-visible .card__thumb { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 8px 8px 0 var(--ink); }
.card:hover .card__thumb img { transform: scale(1.06); }
.card:hover .card__play { transform: scale(1); opacity: 1; }
.card--short .card__thumb { aspect-ratio: 9 / 16; }
/* ショートには 3:4 のものもあるので、切らずに枠の中へ収める */
.card--short .card__thumb img { object-fit: contain; }
.card--short:hover .card__thumb img { transform: scale(1.03); }

.grid { display: grid; gap: 28px 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ---------- ヘッダー ---------- */
.head {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 10px var(--gut);
  background: var(--yellow);
  border-bottom: var(--line);
}
.head__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.head__logo img { width: 64px; height: 64px; border: var(--line); border-radius: 50%; background: var(--yellow); transition: transform .5s var(--ease); }
.head__logo:hover img { transform: rotate(-12deg) scale(1.05); }
.head__name { font-family: var(--display); font-size: 26px; line-height: 1.05; display: flex; flex-direction: column; }
.head__name small { font-family: var(--body); font-weight: 700; font-size: 16px; letter-spacing: .04em; }
.head__nav { display: flex; gap: 4px; margin-left: auto; }
.head__nav a {
  position: relative; text-decoration: none; font-weight: 700; font-size: 18px;
  padding: 10px 16px; border-radius: 999px; border: 3px solid transparent;
  transition: background-color .2s, border-color .2s;
}
.head__nav a:hover { background: rgba(255,255,255,.6); }
.head__nav a[aria-current] { background: #fff; border-color: var(--ink); }
.head__yt {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 10px 18px; border: var(--line); border-radius: 999px; background: #fff;
  font-weight: 700; font-size: 16px; text-decoration: none; box-shadow: var(--shadow-s);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.head__yt .ic rect { fill: var(--red); }
.head__yt-short { display: none; }
/* 名前は縮められるように（iPhone の書体は幅が広めなので、はみ出さない作りにしておく） */
.head__logo { min-width: 0; }
.head__name { min-width: 0; white-space: nowrap; }
.head__name small { overflow: hidden; text-overflow: ellipsis; }
.head__yt:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

.tabbar { display: none; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 6vw, 88px) var(--gut) clamp(56px, 7vw, 104px);
  background: var(--yellow);
  border-bottom: var(--line);
}
.hero__waves { position: absolute; right: 22%; top: 46%; width: 0; height: 0; pointer-events: none; }
.hero__waves span {
  position: absolute; left: 50%; top: 50%;
  width: 120vmax; height: 120vmax; margin: -60vmax 0 0 -60vmax;
  border-radius: 50%; border: 18px solid var(--sky);
  opacity: 0; transform: scale(.08);
  animation: wave 7s var(--ease) infinite;
}
.hero__waves span:nth-child(2) { animation-delay: 1.75s; }
.hero__waves span:nth-child(3) { animation-delay: 3.5s; }
.hero__waves span:nth-child(4) { animation-delay: 5.25s; }
@keyframes wave {
  0% { opacity: 0; transform: scale(.08); }
  12% { opacity: .5; }
  100% { opacity: 0; transform: scale(1); }
}
.hero__text { position: relative; z-index: 2; }
.hero__kicker {
  display: table; word-break: keep-all; font-family: var(--body); letter-spacing: 0; line-height: 1.6; font-weight: 700; font-size: 18px;
  background: var(--ink); color: var(--yellow); padding: 6px 18px 7px; border-radius: 999px;
  margin-bottom: 20px;
}
.hero__title {
  font-family: var(--display); font-weight: 400; line-height: 1.02; letter-spacing: -.01em;
  font-size: clamp(56px, 6.6vw, 104px);
  margin-bottom: 26px;
}
.hero__title .l1 { display: block; font-size: .56em; margin-bottom: .1em; }
.hero__title .l2 { display: block; white-space: nowrap; }
.hero__title .q {
  display: inline-block; color: var(--sky);
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  transform-origin: 50% 90%;
  animation: wobble 2.8s var(--ease) infinite;
}
@keyframes wobble {
  0%, 60%, 100% { transform: rotate(0); }
  70% { transform: rotate(14deg); }
  80% { transform: rotate(-10deg); }
  90% { transform: rotate(5deg); }
}
.hero__lead { font-size: clamp(18px, 1.6vw, 21px); font-weight: 700; line-height: 1.9; margin-bottom: 32px; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__tv { position: relative; z-index: 2; }
.tv {
  position: relative; display: block; text-decoration: none;
  background: var(--ink); border: var(--line); border-radius: 32px; padding: 16px 16px 20px;
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(1.6deg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tv:hover { transform: rotate(0) translate(-4px, -4px); box-shadow: 16px 16px 0 var(--ink); }
.tv__screen { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #000; }
.tv__screen img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tv:hover .tv__screen img { transform: scale(1.04); }
.tv__screen::after { /* ブラウン管の走査線 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 2px, transparent 2px 4px);
  mix-blend-mode: multiply;
}
.tv__play {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  width: clamp(96px, 11vw, 132px); height: clamp(96px, 11vw, 132px); border-radius: 50%;
  background: var(--yellow); border: var(--line); color: var(--ink);
  box-shadow: 0 0 0 0 rgba(255, 241, 81, .7);
  animation: pulse 2.2s ease-out infinite;
}
.tv__play .ic { width: 44%; height: 44%; }
.tv__play em { font-style: normal; font-weight: 700; font-size: 18px; line-height: 1; margin-top: 2px; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 241, 81, .75); }
  100% { box-shadow: 0 0 0 28px rgba(255, 241, 81, 0); }
}
.tv__badge {
  position: absolute; left: -14px; top: -20px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: var(--line); border-radius: 999px; padding: 6px 18px 7px;
  font-weight: 700; font-size: 18px; transform: rotate(-5deg);
}
.tv__badge.is-live { background: var(--red); color: #fff; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(2, start) infinite; }
.tv__badge.is-live .dot { background: #fff; }
@keyframes blink { to { visibility: hidden; } }
.tv__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; color: #fff; padding: 14px 6px 0; font-size: 18px; }
.tv__cap strong { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--yellow); }
.hero__mascot {
  position: absolute; right: -26px; bottom: -58px; width: clamp(96px, 10vw, 140px); height: auto;
  border: var(--line); border-radius: 50%; background: var(--yellow);
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-12px) rotate(8deg); } }

/* ---------- お知らせの流れる帯 ---------- */
.ticker { display: flex; align-items: stretch; background: var(--ink); color: #fff; border-bottom: var(--line); }
.ticker__label {
  display: flex; align-items: center; gap: 8px; flex: none; position: relative; z-index: 2;
  background: var(--red); color: #fff; font-weight: 700; font-size: 18px; padding: 12px 22px;
}
.ticker__track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker__move { display: flex; width: max-content; will-change: transform; }
.ticker__move p { display: flex; flex: none; font-weight: 700; font-size: 18px; white-space: nowrap; }
.ticker__move span { padding: 12px 0; }
.ticker__move span::after { content: "●"; color: var(--yellow); font-size: 12px; margin: 0 28px; vertical-align: .25em; }

/* ---------- 見かた ---------- */
.howto {
  max-width: var(--max); margin: clamp(48px, 6vw, 80px) auto 0; padding: 0 var(--gut);
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 40px;
}
.howto__title { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3vw, 34px); line-height: 1.3; }
.howto__title small { font-family: var(--body); font-weight: 700; font-size: 18px; color: var(--ink-2); }
.howto__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.howto__steps li {
  position: relative; display: flex; align-items: center; gap: 14px;
  background: #fff; border: var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow-s);
  font-weight: 700; font-size: 18px; line-height: 1.5;
}
.howto__steps li:not(:last-child)::after {
  content: ""; position: absolute; right: -14px; top: 50%; width: 14px; height: 3px; background: var(--ink);
}
.howto__steps b {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--yellow); border: var(--line); font-family: var(--display); font-weight: 400; font-size: 24px;
}
.howto__note { grid-column: 2; font-weight: 700; font-size: 18px; color: var(--ink-2); }

/* ---------- 次回の放送＋新着 ---------- */
.duo {
  max-width: var(--max); margin: clamp(56px, 7vw, 96px) auto 0; padding: 0 var(--gut);
  display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start;
}
.next {
  position: sticky; top: 104px;
  background: var(--sky); border: var(--line); border-radius: 28px; padding: 28px 26px 30px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px;
}
.next__label { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: var(--ink); color: #fff; font-weight: 700; font-size: 18px; padding: 4px 16px 5px; border-radius: 999px; margin-bottom: 8px; }
.next__date { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3vw, 38px); line-height: 1.25; }
.next__title { font-weight: 700; font-size: 22px; }
.next__place { font-size: 18px; }
.next__count { font-weight: 700; font-size: 20px; margin-top: 8px; }
.next__count b { font-family: var(--display); font-weight: 400; font-size: 64px; line-height: 1; margin: 0 .08em; }
.next__note { font-size: 16px; margin-bottom: 14px; }
.next .btn { width: 100%; }
.grid--fresh { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 本放送のアーカイブ ---------- */
.archive {
  margin-top: clamp(72px, 9vw, 128px);
  padding: clamp(56px, 7vw, 96px) 0 clamp(56px, 7vw, 88px);
  background: var(--yellow); border-block: var(--line);
  position: relative; overflow: hidden;
}
.archive::before { /* 電波の弧 */
  content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%;
  border: 22px solid var(--sky); box-shadow: 0 0 0 48px var(--yellow), 0 0 0 70px var(--sky), 0 0 0 118px var(--yellow), 0 0 0 140px var(--sky);
  opacity: .9;
}
.archive__head { position: relative; max-width: var(--max); margin: 0 auto 36px; padding: 0 var(--gut); }
.archive__head p { font-weight: 700; font-size: 19px; margin-top: 14px; }
.archive__row {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(230px, 24vw, 300px); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut);
  padding: 12px var(--gut) 24px; scrollbar-width: thin;
}
.ep {
  position: relative; scroll-snap-align: start; text-decoration: none;
  display: grid; grid-template-columns: 1fr auto; gap: 10px 8px;
  background: #fff; border: var(--line); border-radius: var(--r); padding: 12px 12px 14px; box-shadow: var(--shadow-s);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ep:hover { transform: translate(-3px, -3px) rotate(-.8deg); box-shadow: 8px 8px 0 var(--ink); }
.ep__no { grid-column: 1 / -1; font-weight: 700; font-size: 18px; line-height: 1; }
.ep__no b { font-family: var(--display); font-weight: 400; font-size: 40px; margin: 0 2px; }
.ep__thumb { grid-column: 1 / -1; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: var(--line); background: var(--ink); }
.ep__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep:hover .card__play { transform: scale(1); opacity: 1; }
.ep__date { font-weight: 700; font-size: 17px; }
.ep__dur { font-size: 16px; color: var(--ink-2); }
.ep--new { background: var(--ink); color: #fff; }
.ep--new .ep__no b { color: var(--yellow); }
.ep--new .ep__dur { color: #ddd; }
.ep--new::after {
  content: "最新"; position: absolute; right: -10px; top: -14px; background: var(--red); color: #fff;
  font-weight: 700; font-size: 16px; padding: 4px 14px; border: var(--line); border-radius: 999px; transform: rotate(8deg);
}
.archive__all { position: relative; max-width: var(--max); margin: 20px auto 0; padding: 0 var(--gut); }

/* ---------- 番組タイル ---------- */
.series { max-width: var(--max); margin: clamp(72px, 9vw, 120px) auto 0; padding: 0 var(--gut); }
.series__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 4px; text-decoration: none; overflow: hidden;
  background: var(--tone); border: var(--line); border-radius: 24px; padding: 14px 16px 18px; box-shadow: var(--shadow-s);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.tile__pics { position: relative; height: 128px; margin-bottom: 12px; }
.tile__pics img {
  position: absolute; width: 72%; aspect-ratio: 16 / 9; height: auto; object-fit: cover;
  border: var(--line); border-radius: 12px; background: var(--ink);
  transition: transform .5s var(--ease);
}
.tile__pics img:nth-child(1) { left: 0; top: 18px; transform: rotate(-6deg); z-index: 1; }
.tile__pics img:nth-child(2) { right: 0; top: 0; transform: rotate(5deg); }
.tile__pics img:nth-child(3) { left: 16%; top: 30px; z-index: 2; transform: rotate(-1deg); }
.tile:hover .tile__pics img:nth-child(1) { transform: rotate(-10deg) translate(-6px, 2px); }
.tile:hover .tile__pics img:nth-child(2) { transform: rotate(9deg) translate(6px, -2px); }
.tile:hover .tile__pics img:nth-child(3) { transform: rotate(0) translateY(-6px); }
.tile__name { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.35; }
.tile__count { font-weight: 700; font-size: 16px; }

/* 色 */
.tone-yellow { --tone: var(--yellow); }
.tone-sky { --tone: var(--sky); }
.tone-green { --tone: var(--green); }
.tone-pink { --tone: var(--pink); }
.tone-orange { --tone: var(--orange); }
.tone-violet { --tone: var(--violet); }
.tone-red { --tone: var(--red); }
.tone-ink { --tone: var(--ink); }

/* ---------- 横の棚 ---------- */
.shelf { max-width: var(--max); margin: clamp(56px, 7vw, 88px) auto 0; padding: 0 var(--gut); }
.shelf__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 18px; }
.shelf__title {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3vw, 32px); line-height: 1.3;
  background: var(--tone); border: var(--line); border-radius: 14px; padding: 6px 18px 8px; box-shadow: var(--shadow-s);
}
.shelf__count { font-family: var(--body); font-weight: 700; font-size: 16px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 0 10px; }
.shelf__lead { font-weight: 700; font-size: 17px; color: var(--ink-2); }
.shelf__more { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 18px; text-decoration: none; padding: 8px 4px; border-bottom: 3px solid var(--ink); }
.shelf__more:hover .ic { transform: translateX(4px); }
.shelf__more .ic { transition: transform .3s var(--ease); }
.shelf__wrap { position: relative; }
.shelf__row {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 23vw, 290px); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 6px 12px 22px 6px; margin: 0 -12px 0 -6px;
  scrollbar-width: none;
}
.shelf__row::-webkit-scrollbar { display: none; }
.shelf__row > * { scroll-snap-align: start; }
.shelf__btn {
  position: absolute; top: calc((clamp(240px, 23vw, 290px) * 9 / 16) / 2 - 12px); z-index: 3;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: var(--line); box-shadow: var(--shadow-s); cursor: pointer;
  transition: transform .25s var(--ease), opacity .25s;
}
.shelf__btn .ic { width: 28px; height: 28px; }
.shelf__btn:hover { transform: scale(1.08); }
.shelf__btn--prev { left: -20px; }
.shelf__btn--next { right: -20px; }
.shelf__btn[hidden] { display: grid; opacity: 0; pointer-events: none; }

.shelf--shorts {
  max-width: none; padding: clamp(48px, 6vw, 72px) 0; margin-top: clamp(72px, 9vw, 120px);
  background: var(--ink); color: #fff; border-block: var(--line);
}
.shelf--shorts .shelf__head, .shelf--shorts .shelf__wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.shelf--shorts .shelf__title { background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--sky); }
.shelf--shorts .shelf__lead { color: #d8d4c4; }
.shelf--shorts .shelf__row { grid-auto-columns: clamp(170px, 15vw, 210px); }
.shelf--shorts .card__thumb { border-color: #fff; box-shadow: 4px 4px 0 var(--sky); }
.shelf--shorts .card:hover .card__thumb { box-shadow: 8px 8px 0 var(--sky); }
.shelf--shorts .card__meta { color: #bdb9aa; }
.shelf--shorts .shelf__btn { top: calc(clamp(170px, 15vw, 210px) * 16 / 9 / 2 - 28px); color: var(--ink); }
.shelf--shorts .shelf__btn--prev { left: calc(var(--gut) - 20px); }
.shelf--shorts .shelf__btn--next { right: calc(var(--gut) - 20px); }

/* ---------- Keydeckeとは（トップの抜粋） ---------- */
.about-teaser {
  max-width: var(--max); margin: clamp(72px, 9vw, 128px) auto clamp(72px, 9vw, 120px); padding: 0 var(--gut);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center;
}
.about-teaser__pics { position: relative; padding: 0 12% 18% 0; }
.about-teaser__pics img { height: auto; border: var(--line); border-radius: 28px; box-shadow: var(--shadow); object-fit: cover; }
.about-teaser__pics img:first-child { width: 100%; aspect-ratio: 1; transform: rotate(-2deg); }
.about-teaser__pics img:last-child { position: absolute; right: 0; bottom: 0; width: 58%; aspect-ratio: 16 / 9; transform: rotate(3deg); }
.about-teaser__text p { font-size: 18px; margin: 18px 0 26px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 30px; }
.stats li { background: #fff; border: var(--line); border-radius: 18px; padding: 14px 10px; text-align: center; display: flex; flex-direction: column; }
.stats b { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.15; }
.stats span { font-weight: 700; font-size: 16px; line-height: 1.4; }

/* ---------- 下層ページ ---------- */
.page-head {
  position: relative; overflow: hidden;
  background: var(--tone, var(--yellow)); border-bottom: var(--line);
  padding: clamp(40px, 6vw, 80px) var(--gut) clamp(40px, 5vw, 64px);
}
.page-head__inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; }
.page-head__kicker a { color: inherit; }
.page-head__kicker { display: inline-block; font-weight: 700; font-size: 18px; background: var(--ink); color: #fff; padding: 4px 16px 5px; border-radius: 999px; margin-bottom: 14px; }
.page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 6vw, 72px); line-height: 1.2; }
.page-head p { font-weight: 700; font-size: 19px; margin-top: 12px; }
.page-head::after {
  content: ""; position: absolute; right: -120px; bottom: -220px; width: 420px; height: 420px; border-radius: 50%;
  border: 20px solid rgba(255,255,255,.55); box-shadow: 0 0 0 40px transparent, 0 0 0 60px rgba(255,255,255,.55);
}
.page { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 5vw, 64px) var(--gut) clamp(72px, 9vw, 120px); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 28px; }
.toolbar__label { font-weight: 700; font-size: 18px; margin-right: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 8px 18px;
  border: var(--line); border-radius: 999px; background: #fff; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"], .chip[aria-current] { background: var(--ink); color: var(--yellow); }

.series-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.series-list .tile__pics { height: 150px; }

/* 検索 */
.search { display: flex; gap: 10px; margin-bottom: 20px; max-width: 760px; }
.search input {
  flex: 1; min-width: 0; min-height: 64px; padding: 12px 22px; font: inherit; font-size: 20px; font-weight: 700;
  border: var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow-s);
}
.search input:focus { outline: none; box-shadow: 0 0 0 4px var(--sky), var(--shadow-s); }
.search .btn { min-height: 64px; }
.result-note { font-weight: 700; font-size: 18px; margin: 8px 0 24px; }
.empty { background: #fff; border: var(--line); border-radius: var(--r); padding: 28px; font-weight: 700; }

/* 読みもの（とは・規約） */
.prose { max-width: 780px; font-size: 18px; line-height: 2; }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3vw, 30px); line-height: 1.4; margin: 48px 0 14px; }
.prose h3 { font-weight: 700; font-size: 20px; margin: 32px 0 8px; }
.prose p + p { margin-top: 1em; }
.prose ul, .prose ol { margin: 12px 0; padding-left: 1.4em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.box { background: #fff; border: var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.mailbox { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; max-width: 720px; }
.mailbox__addr { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 4vw, 40px); word-break: break-all; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.about-grid img { height: auto; border: var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.about-grid figure { margin: 0 0 22px; }
.about-grid figcaption { font-size: 16px; color: var(--ink-2); margin-top: 10px; }

/* ---------- フッター ---------- */
.foot { background: var(--ink); color: #fff; padding: clamp(48px, 6vw, 72px) var(--gut) 28px; border-top: var(--line); }
.shelf--shorts + .about-teaser { margin-top: clamp(72px, 9vw, 120px); }
.foot__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; align-items: start; }
.foot__brand { display: flex; gap: 18px; align-items: flex-start; }
.foot__brand img { width: 96px; height: 96px; border-radius: 50%; border: 3px solid #fff; flex: none; }
.foot__brand p { font-size: 16px; line-height: 1.8; color: #d8d4c4; }
.foot__brand strong { display: block; color: #fff; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.35; margin-bottom: 8px; }
.foot__sns { display: flex; flex-direction: column; gap: 12px; }
.sns {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 20px;
  border: 3px solid #fff; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 18px;
  transition: background-color .2s, color .2s;
}
.sns:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.sns--yt .ic rect { fill: var(--red); }
.foot__links { display: flex; flex-direction: column; gap: 6px; }
.foot__links a { font-weight: 700; font-size: 18px; text-decoration: none; padding: 6px 0; display: inline-block; }
.foot__links a:hover { color: var(--yellow); text-decoration: underline; text-underline-offset: 5px; }
.foot__copy { max-width: var(--max); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); font-size: 16px; color: #bdb9aa; }

/* ---------- 再生画面 ---------- */
.player {
  position: fixed; inset: 0; z-index: 100; overflow-y: auto; overscroll-behavior: contain;
  background: #0f0d08; color: #fff;
  opacity: 0; transition: opacity .35s var(--ease);
}
.player.is-open { opacity: 1; }
.player__inner { max-width: 1120px; margin: 0 auto; padding: 16px var(--gut) 48px; transform: translateY(28px); transition: transform .5s var(--ease); }
.player.is-open .player__inner { transform: none; }
.player__bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 8px 0 14px; background: #0f0d08; }
.player__onair { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--yellow); }
.player__close {
  display: inline-flex; align-items: center; gap: 8px; min-height: 60px; padding: 10px 26px 10px 20px;
  background: var(--yellow); color: var(--ink); border: 3px solid var(--yellow); border-radius: 999px;
  font-weight: 700; font-size: 20px; cursor: pointer;
  transition: transform .2s var(--ease);
}
.player__close .ic { width: 28px; height: 28px; stroke-width: 3; }
.player__close:hover { transform: scale(1.04); }
.player__screen { display: flex; justify-content: center; }
.player__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 18px; overflow: hidden; border: 3px solid #fff; }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player.is-short .player__frame { width: auto; height: min(78vh, 760px); aspect-ratio: 9 / 16; }
.player__info { padding: 20px 0 0; }
.player__title { font-weight: 700; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.55; }
.player__meta { font-size: 17px; color: #cfcab8; margin-top: 6px; }
.player__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.player__actions .ic--yt rect { fill: var(--red); }
.player__toast { min-height: 1.8em; margin-top: 10px; font-weight: 700; color: var(--yellow); }
.player__next { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2); }
.player__next h3 { font-family: var(--display); font-weight: 400; font-size: 24px; margin-bottom: 18px; }
.player__queue { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.player__queue .card__thumb { border-color: #fff; box-shadow: none; }
.player__queue .card__meta { color: #bdb9aa; }
.player__queue .card--short .card__thumb { aspect-ratio: 16 / 9; }
body.is-locked { overflow: hidden; }


/* ---------- 動画1本ずつのページ ---------- */
.watch__stage { background: var(--ink); color: #fff; padding: 14px var(--gut) clamp(24px, 4vw, 44px); border-bottom: var(--line); }
.crumbs { max-width: 1120px; margin: 0 auto 14px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-weight: 700; font-size: 16px; color: #cfcab8; }
.crumbs a { color: #fff; text-underline-offset: 4px; }
.watch__player { position: relative; max-width: 1120px; margin: 0 auto; aspect-ratio: 16 / 9; background: #000; border: 3px solid #fff; border-radius: 20px; overflow: hidden; }
.watch__stage.is-short .watch__player { max-width: none; width: auto; height: min(78vh, 760px); aspect-ratio: 9 / 16; }
.watch__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lite { position: absolute; inset: 0; display: block; }
.lite img { width: 100%; height: 100%; object-fit: cover; }
.watch__stage.is-short .lite img { object-fit: contain; }
.lite::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.45)); }
.lite__play {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: clamp(104px, 13vw, 150px); height: clamp(104px, 13vw, 150px); border-radius: 50%;
  background: var(--yellow); border: var(--line); color: var(--ink);
  animation: pulse 2.2s ease-out infinite; transition: transform .3s var(--ease);
}
.lite__play .ic { width: 44%; height: 44%; }
.lite__play em { font-style: normal; font-weight: 700; font-size: 17px; line-height: 1; margin-top: 2px; }
.lite:hover .lite__play { transform: translate(-50%, -50%) scale(1.06); }
.watch__body { max-width: var(--max); margin: 0 auto; padding: clamp(28px, 4vw, 48px) var(--gut) clamp(72px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(32px, 5vw, 64px); align-items: start; }
.watch__series { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.watch__series .chip { background: var(--tone, #fff); min-height: 44px; font-weight: 700; }
.watch__title { font-family: var(--body); font-weight: 700; font-size: clamp(24px, 3vw, 34px); line-height: 1.5; }
.watch__meta { font-weight: 700; font-size: 18px; color: var(--ink-2); margin-top: 8px; }
.watch__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.watch__actions .ic--yt rect { fill: var(--red); }
.watch__toast { min-height: 1.8em; margin-top: 8px; font-weight: 700; }
.watch__desc { background: #fff; border: var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-s); margin-top: 12px; }
.watch__desc h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin-bottom: 14px; }
.watch__desc p { font-size: 18px; line-height: 1.95; overflow-wrap: anywhere; }
.watch__desc p + p { margin-top: 1.1em; }
.watch__desc p.tags { font-size: 16px; color: var(--ink-2); }
.watch__desc a { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.pn__a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; background: #fff; border: var(--line); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow-s); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pn__a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.pn__a small { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 16px; color: var(--ink-2); }
.pn__a span { font-weight: 700; font-size: 17px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pn__a--next { text-align: right; align-items: flex-end; grid-column: 2; }
.watch__side .sec-title { font-size: 26px; margin-bottom: 18px; }
.grid--side { grid-template-columns: 1fr; gap: 18px; margin-bottom: 20px; }
.grid--side .card { display: grid; grid-template-columns: 46% 1fr; gap: 4px 12px; align-items: start; }
.grid--side .card__thumb { grid-row: 1 / 3; border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); }
.grid--side .card__title { font-size: 17px; -webkit-line-clamp: 3; }
.grid--side .card__meta { font-size: 16px; }
.grid--side .card__play { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.grid--side .card__play .ic { width: 18px; height: 18px; }
.grid--side .card__dur { font-size: 16px; padding: 3px 8px 4px; right: 5px; bottom: 5px; }
.grid--side .card--short .card__thumb { aspect-ratio: 16 / 9; }
@media (max-width: 860px) {
  .watch__body { grid-template-columns: 1fr; }
  .watch__stage { padding-top: 10px; }
  .watch__player { border-radius: 14px; }
  .watch__stage.is-short .watch__player { height: min(70vh, 640px); }
  .watch__actions .btn { flex: 1 1 100%; }
  .pn { grid-template-columns: 1fr; }
  .pn__a--next { grid-column: 1; }
}


/* ---------- お問い合わせフォーム（大きな入力欄・大きな選択肢） ---------- */
.sns-box { margin-top: 28px; max-width: 760px; }
.sns-box .toolbar__label { display: block; margin-bottom: 12px; }
.sns-box .toolbar { margin: 0; }
.form { max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.form__note { font-size: 16px; color: var(--ink-2); }
.form__error { background: #ffe3df; border: 3px solid var(--red); border-radius: 16px; padding: 14px 18px; font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field legend { font-weight: 700; font-size: 19px; padding: 0; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 19px; line-height: 1.6; padding: 14px 18px; min-height: 60px;
  background: var(--paper); border: var(--line); border-radius: 16px; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 200px; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: 0 0 0 4px var(--sky); }
.hint { font-size: 16px; color: var(--ink-2); }
.req, .opt { display: inline-block; font-size: 16px; font-weight: 700; line-height: 1; padding: 4px 8px 5px; border-radius: 8px; vertical-align: .1em; margin-left: 6px; }
.req { background: var(--red); color: #fff; }
.opt { background: #e8e4d4; color: var(--ink); }
.radios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.radio, .check { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.radio span {
  flex: 1; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px;
  border: var(--line); border-radius: 16px; background: #fff; font-weight: 700; font-size: 18px; line-height: 1.4;
}
.radio span::before { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; border: var(--line); background: #fff; }
.radio input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio input:checked + span { background: var(--yellow); }
.radio input:checked + span::before { background: radial-gradient(var(--ink) 0 40%, #fff 44%); }
.radio input:focus-visible + span, .check input:focus-visible + span { box-shadow: 0 0 0 4px var(--sky); }
.check > span { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-weight: 700; font-size: 18px; min-height: 48px; }
.check > span::before { content: ""; flex: none; width: 32px; height: 32px; border: var(--line); border-radius: 8px; background: #fff; }
.check input:checked + span::before { background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317140c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 80% no-repeat; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { align-self: flex-start; min-width: 260px; }
.done { max-width: 760px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.done__mark { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); border: var(--line); }
.done__mark .ic { width: 44px; height: 44px; }
.done p { font-size: 18px; }
@media (max-width: 860px) {
  .radios { grid-template-columns: 1fr; }
  .form__submit { align-self: stretch; }
}


/* ---------- スマホのメニュー（下から出る一覧） ---------- */
.menu-sheet { position: fixed; inset: 0; z-index: 105; background: rgba(15, 13, 8, .6); display: flex; align-items: flex-end; justify-content: center; }
.menu-sheet[hidden] { display: none; }
.menu-sheet__box {
  width: min(560px, 100%); max-height: calc(100dvh - 24px); overflow-y: auto;
  background: var(--paper); border: var(--line); border-bottom: 0; border-radius: 28px 28px 0 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); animation: rise .4s var(--ease) both;
}
.menu-sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.menu-sheet__head h2 { font-family: var(--display); font-weight: 400; font-size: 24px; }
.menu-sheet__close { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 8px 16px; background: var(--yellow); border: var(--line); border-radius: 999px; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; }
.menu-sheet__close .ic { width: 22px; height: 22px; stroke-width: 3; }
.menu-sheet__list { display: flex; flex-direction: column; gap: 8px; }
.menu-sheet__list a {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 16px;
  background: #fff; border: var(--line); border-radius: 16px; text-decoration: none; font-weight: 700; font-size: 18px;
}
.menu-sheet__list a span { flex: 1; }
.menu-sheet__list .ic { width: 26px; height: 26px; }
.menu-sheet__list a[aria-current] { background: var(--yellow); }
.menu-sheet__sns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.menu-sheet__sns .ic--yt rect { fill: var(--red); }

/* ---------- ホーム画面に置く（PWA） ---------- */
.head__back { display: none; }
.is-app .head__back {
  display: inline-flex; align-items: center; gap: 2px; flex: none; min-height: 48px; padding: 6px 12px 6px 6px;
  background: #fff; border: var(--line); border-radius: 999px; font-weight: 700; font-size: 16px; cursor: pointer;
}
.is-app .head__back .ic { width: 24px; height: 24px; }
.is-app .is-home .head__back { display: none; }
.is-app .head { padding-top: calc(8px + env(safe-area-inset-top)); }
/* アプリとして開いたときは「戻る」が入るので、狭い画面ではヘッダーの小さい1行目を省く */
@media (max-width: 420px) {
  .is-app .head__name small { display: none; }
  .is-app .head { gap: 8px; }
}
.a2hs {
  max-width: var(--max); margin: 32px auto 0; padding: 18px 22px; width: calc(100% - var(--gut) * 2);
  display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap;
  background: #fff; border: var(--line); border-radius: 24px; box-shadow: var(--shadow-s);
}
.a2hs[hidden] { display: none; }
.a2hs img { width: 72px; height: 72px; border-radius: 18px; border: var(--line); flex: none; }
.a2hs__text { flex: 1 1 260px; }
.a2hs__text h2 { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.4; }
.a2hs__text p { font-size: 17px; line-height: 1.7; }
.a2hs__btns { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.a2hs__close { background: none; border: 0; font-weight: 700; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; padding: 12px 6px; cursor: pointer; color: var(--ink-2); }
.a2hs-guide { position: fixed; inset: 0; z-index: 110; background: rgba(15, 13, 8, .7); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.a2hs-guide[hidden] { display: none; }
.a2hs-guide__box { width: min(520px, 100%); background: var(--paper); border: var(--line); border-radius: 28px; padding: 26px 22px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; margin-bottom: calc(var(--tab-h) + 8px); }
.a2hs-guide__box h2 { font-family: var(--display); font-weight: 400; font-size: 24px; }
.a2hs-guide__box ol { display: flex; flex-direction: column; gap: 12px; }
.a2hs-guide__box li { display: flex; align-items: center; gap: 14px; background: #fff; border: var(--line); border-radius: 18px; padding: 12px 14px; font-size: 18px; line-height: 1.6; }
.a2hs-guide__box li b { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); border: var(--line); font-family: var(--display); font-weight: 400; font-size: 22px; }
.share-ic { display: inline-flex; align-items: center; gap: 4px; background: var(--sky); color: #fff; border-radius: 8px; padding: 0 8px 0 6px; }
.share-ic .ic { width: 20px; height: 20px; }
.a2hs-guide__note { font-size: 17px; font-weight: 700; }
/* 画面下の帯（2ページ目か、動画を1本見たあとに出す） */
.a2hs-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab-h) + 12px); z-index: 60;
  display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto;
  background: #fff; border: var(--line); border-radius: 20px; padding: 10px 10px 10px 12px; box-shadow: var(--shadow);
  animation: rise .6s var(--ease) both;
}
.a2hs-bar[hidden] { display: none; }
.a2hs-bar img { width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--ink); flex: none; }
.a2hs-bar p { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.a2hs-bar strong { font-size: 17px; }
.a2hs-bar span { font-size: 16px; color: var(--ink-2); }
.a2hs-bar .btn { min-height: 48px; padding: 8px 18px; flex: none; }
.a2hs-bar__close { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.a2hs-bar__close .ic { width: 24px; height: 24px; }
.a2hs-guide__box [hidden] { display: none; }  /* ol などに display を付けているので、hidden を優先させる */
.a2hs-guide__box { max-height: calc(100dvh - var(--tab-h) - 32px); overflow-y: auto; }
.a2hs-bar p { overflow-wrap: anywhere; }
@media (max-width: 420px) { .a2hs-bar img { display: none; } .a2hs-bar { gap: 8px; padding-left: 16px; } }
.a2hs-guide__lead { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.app-hero { display: flex; align-items: center; gap: 24px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.app-hero img { width: 160px; height: 160px; border-radius: 36px; border: var(--line); box-shadow: var(--shadow); }
.app-steps { display: grid; gap: 22px; }
.app-steps .sec-title { margin-bottom: 16px; font-size: clamp(22px, 3vw, 30px); }
.app-steps__list { grid-template-columns: 1fr; }
.app-steps__list li:not(:last-child)::after { display: none; }
.app-steps p { font-size: 18px; }

@media (max-width: 860px) {
  .a2hs__btns { width: 100%; }
  .a2hs__btns .btn { flex: 1 1 auto; }
}


/* ---------- スポンサー・ご依頼 ---------- */
.support {
  max-width: var(--max); margin: clamp(72px, 9vw, 120px) auto 0; padding: 0 var(--gut);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: stretch;
}
.support__ask { background: var(--sky); border: var(--line); border-radius: 28px; padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.support__ask p { font-weight: 700; font-size: 18px; }
.support__kicker { background: var(--ink); color: #fff; border-radius: 999px; padding: 3px 14px 4px; font-size: 16px !important; }
.support__list { background: #fff; border: var(--line); border-radius: 28px; padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-s); }
.support .sec-title { font-size: clamp(26px, 3vw, 38px); }
.support__thanks { font-family: var(--display); font-size: 20px; margin-bottom: 14px; }
.sponsor-list { display: flex; flex-direction: column; gap: 10px; }
.sponsor-list a, .sponsor-list span {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px;
  padding: 10px 16px; border: var(--line); border-radius: 16px; background: var(--paper);
  font-weight: 700; font-size: 18px; line-height: 1.4; text-decoration: none;
  transition: background-color .2s, transform .2s var(--ease);
}
.sponsor-list a:hover { background: var(--yellow); transform: translateX(4px); }
.stats--big { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats--big b { font-size: clamp(32px, 4vw, 48px); }
.note { font-size: 16px; color: var(--ink-2); margin-top: 12px; }
.ways { margin-top: clamp(56px, 7vw, 88px); display: flex; flex-direction: column; gap: 22px; }
.ways > .sec-title { margin-bottom: 4px; }
.way { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px 32px; align-items: center; background: #fff; border: var(--line); border-radius: 24px; padding: clamp(18px, 2.5vw, 28px); box-shadow: var(--shadow-s); }
.way h3 { font-family: var(--display); font-weight: 400; font-size: 24px; margin-bottom: 8px; }
.way p { font-size: 18px; }
.way__videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.way__videos .card__title { font-size: 16px; }
.way__videos .card--short .card__thumb { aspect-ratio: 3 / 4; }
.way__guest { font-size: 16px; color: var(--ink-2); margin-top: 6px; line-height: 1.6; }
.sponsors-box { margin-top: clamp(56px, 7vw, 88px); }
.sponsor-tier { font-weight: 700; font-size: 18px; margin: 16px 0 10px; }
.flow { margin-top: clamp(56px, 7vw, 88px); }
.flow .sec-title { margin-bottom: 20px; }
.cta-box { margin-top: clamp(56px, 7vw, 88px); background: var(--yellow); border: var(--line); border-radius: 28px; padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow); }
.cta-box .sec-title { margin-bottom: 20px; }
.cta-box__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.side-ask {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; margin-top: 28px;
  background: var(--sky); border: var(--line); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow-s); text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.side-ask:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.side-ask strong { font-size: 18px; }
.side-ask span { font-size: 16px; grid-column: 1; }
.side-ask .ic { grid-column: 2; grid-row: 1 / 3; width: 28px; height: 28px; }
@media (max-width: 860px) {
  .support { grid-template-columns: 1fr; }
  .stats--big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .way { grid-template-columns: 1fr; }
  .cta-box__btns .btn { flex: 1 1 100%; }
}

/* ---------- 浮き上がり ---------- */
/* 最初の画面（ヒーロー）は JS を待たずに CSS だけで出す */
.rise { animation: rise 1s var(--ease) both; }
.hero__title.rise { animation-delay: .17s; }
.hero__lead.rise { animation-delay: .29s; }
.hero__cta.rise { animation-delay: .41s; }
.hero__tv.rise { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- タブレット ---------- */
@media (max-width: 1080px) {
  .head__nav a { padding: 10px 11px; font-size: 17px; }
  .series__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--fresh { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__inner { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

/* ---------- スマホ・縦のタブレット ---------- */
@media (max-width: 860px) {
  :root { --tab-h: calc(72px + env(safe-area-inset-bottom)); }
  html { scroll-padding-top: 84px; }
  .head { padding-block: 8px; gap: 12px; }
  .head__nav { display: none; }
  .head__logo img { width: 54px; height: 54px; }
  .head__name { font-size: 22px; }
  .head__yt { margin-left: auto; padding: 8px 14px; gap: 6px; }
  .head__yt-long { display: none; }
  .head__yt-short { display: inline; }

  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: repeat(4, 1fr);
    height: var(--tab-h); padding-bottom: env(safe-area-inset-bottom);
    background: #fff; border-top: var(--line);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.2;
  }
  .tabbar button { background: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; }
  .tabbar button[aria-expanded="true"] { background: var(--yellow); }
  .tabbar .ic { width: 28px; height: 28px; }
  .tabbar a[aria-current] { background: var(--yellow); }
  .tabbar a[aria-current] .ic { transform: translateY(-1px); }

  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero__waves { right: 50%; top: 72%; }
  .hero__tv { order: -1; margin: 18px 6px 18px 0; }
  .hero__title { font-size: clamp(52px, 15vw, 96px); margin-bottom: 18px; }
  .hero__lead { margin-bottom: 24px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__mascot { right: -8px; bottom: -40px; width: 84px; }
  .tv { padding: 10px 10px 14px; border-radius: 24px; box-shadow: 8px 8px 0 var(--ink); }
  .tv__cap { font-size: 16px; }
  .tv__cap strong { font-size: 20px; }

  .ticker__label span { display: none; }
  .ticker__label { padding: 12px 14px; }

  .howto { grid-template-columns: 1fr; }
  .howto__steps { grid-template-columns: 1fr; }
  .howto__steps li:not(:last-child)::after { right: auto; left: 40px; top: auto; bottom: -14px; width: 3px; height: 14px; }
  .howto__steps br { display: none; }
  .howto__note { grid-column: 1; }

  .duo { grid-template-columns: 1fr; }
  .next { position: static; }
  .grid--fresh { grid-template-columns: 1fr; }
  .grid--fresh .card { display: grid; grid-template-columns: 44% 1fr; gap: 4px 14px; align-items: start; }
  .grid--fresh .card__thumb { grid-row: 1 / 3; border-radius: 12px; }
  .grid--fresh .card__title { font-size: 17px; -webkit-line-clamp: 3; }
  .grid--fresh .card__play { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .grid--fresh .card__play .ic { width: 20px; height: 20px; }
  .grid--fresh .card__dur { font-size: 16px; padding: 4px 8px 5px; right: 6px; bottom: 6px; }

  .series__grid, .series-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tile { padding: 10px 12px 14px; border-radius: 18px; }
  .tile__pics, .series-list .tile__pics { height: 84px; margin-bottom: 8px; }
  .tile__pics img { border-width: 2px; border-radius: 8px; }
  .tile__name { font-size: 17px; }

  .shelf__row { grid-auto-columns: 72%; }
  .shelf--shorts .shelf__row { grid-auto-columns: 46%; }
  .shelf__btn { display: none !important; }
  .shelf__more { margin-left: 0; }

  .archive__row { grid-auto-columns: 70%; }
  .archive::before { width: 300px; height: 300px; right: -150px; top: -150px; border-width: 14px; }

  .about-teaser { grid-template-columns: 1fr; }
  .stats b { font-size: 26px; }

  .foot__inner { grid-template-columns: 1fr; }
  .foot__brand img { width: 72px; height: 72px; }

  .player__inner { padding-top: 8px; }
  .player__close { min-height: 56px; }
  .player__queue { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .player__queue .card__title { font-size: 16px; }
  .player.is-short .player__frame { height: min(70vh, 640px); }
  .player__actions .btn { flex: 1 1 100%; }

  .search { flex-direction: column; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .head__name { font-size: 20px; }
}
/* とても狭い画面（幅320px級）：ロゴを小さく、登録ボタンはマークだけ */
@media (max-width: 370px) {
  .head { gap: 8px; }
  .head__logo { gap: 8px; }
  .head__logo img { width: 44px; height: 44px; }
  .head__name { font-size: 18px; }
  .head__yt { padding: 8px 10px; }
  .head__yt-short { display: none; }
}
