/* =========================================================
   Garden Hunt official site
   キービジュアルの「空・スライム・レンガ・ツタ・アジサイ・黄色いコート」を
   淡いパステルトーンに落とし込んだ配色
   ========================================================= */

:root {
  /* 空・スライム */
  --sky-50: #f7fbff;
  --sky-100: #eef7ff;
  --sky-200: #e0f0fd;
  --sky-300: #c9e5fa;
  --blue-300: #9fd3f3;
  --blue-400: #7bbfe9;
  --blue-500: #5aa6db;
  --blue-700: #2f6fa8;
  /* アジサイ */
  --lav-100: #f4f1ff;
  --lav-200: #e8e2ff;
  --lav-300: #d3c8fb;
  --lav-400: #ad9bea;
  --lav-700: #6e5bb8;
  --pink-50: #fff8fb;
  --pink-100: #fff0f6;
  --pink-200: #fde0ee;
  --pink-400: #f2b4d2;
  --pink-700: #b8527f;
  /* 黄色いコート */
  --butter-100: #fffaea;
  --butter-200: #fff1c2;
  --butter-300: #ffe597;
  --butter-400: #ffd66e;
  --butter-700: #7a5600;
  /* ツタ */
  --leaf-300: #b9e2b8;
  --leaf-400: #93cf93;
  --leaf-500: #6fb874;
  /* 文字 */
  --ink-900: #3a3e66;
  --ink-700: #555a82;
  --ink-500: #7e83a6;
  --white: #fff;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px rgba(92, 122, 170, .12);
  --shadow-card: 0 2px 0 rgba(160, 190, 225, .25), 0 12px 32px rgba(92, 122, 170, .10);
  --header-h: 64px;
  --gutter: clamp(16px, 4.5vw, 32px);

  --font-display: "Fredoka", "Zen Maru Gothic", system-ui, sans-serif;
  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --head-weight: 700;
  --body-leading: 1.95;

  color-scheme: light;
}

/* 言語ごとのフォント */
html[lang="en"], html[lang="fr"], html[lang="de"], html[lang="es"], html[lang="it"] {
  --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head-weight: 600;
  --body-leading: 1.7;
}
html[lang="zh-Hans"] {
  --font-head: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body-leading: 1.85;
}
html[lang="zh-Hant"] {
  --font-head: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --body-leading: 1.85;
}
html[lang="ko"] {
  --font-head: "Jua", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --head-weight: 400;
  --body-leading: 1.8;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--sky-50);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: var(--body-leading);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* 日本語：禁則を厳しめに（句読点・閉じカッコが行頭に来ない） */
html[lang="ja"] body { line-break: strict; }
html[lang="ko"] :is(h2, h3, h4, .hero__catch, .footer-cta__title, .person__name) { word-break: keep-all; }
html:not([lang="ja"]) p { text-wrap: pretty; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.45; font-weight: var(--head-weight); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--butter-400); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--ink-900); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* 改行制御：.ib はかたまりの途中で折り返さない（かたまり同士の間でだけ改行） */
.ib { display: inline-block; }
.nw { white-space: nowrap; }

.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }
.icon--sm { width: 1em; height: 1em; }

.container { width: min(1120px, 100% - var(--gutter) * 2); margin-inline: auto; position: relative; z-index: 1; }
.container--narrow { width: min(900px, 100% - var(--gutter) * 2); }
.section { position: relative; padding: clamp(64px, 9vw, 112px) 0; overflow: hidden; }

/* ---------- ロゴ文字（GardenHunt） ---------- */
.wordmark {
  display: inline-flex;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.01em;
  filter: drop-shadow(0 2px 0 #fff) drop-shadow(0 -1px 0 #fff) drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff);
}
.wordmark__a { color: #5eaee3; }
.wordmark__b { color: #9a86e6; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em;
  border: 2px solid #fff;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 1rem;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn--primary {
  color: var(--butter-700);
  background: linear-gradient(180deg, #fff6d2 0%, var(--butter-300) 55%, var(--butter-400) 100%);
  box-shadow: 0 8px 20px rgba(226, 172, 56, .25), inset 0 -3px 0 rgba(226, 172, 56, .25);
}
.btn--primary:hover { box-shadow: 0 12px 26px rgba(226, 172, 56, .3), inset 0 -3px 0 rgba(226, 172, 56, .25); }
.btn--sky {
  color: var(--blue-700);
  background: linear-gradient(180deg, #f2faff 0%, var(--sky-300) 100%);
  box-shadow: 0 4px 12px rgba(92, 150, 210, .18);
}
.btn--ghost {
  color: var(--blue-700);
  background: #fff;
  border-color: var(--sky-300);
  box-shadow: 0 4px 14px rgba(92, 122, 170, .08);
}
.btn--lg { font-size: clamp(1.02rem, 2.4vw, 1.15rem); padding: .95em 2.1em; }
.btn--sm { font-size: .88rem; padding: .5em 1em; }
.btn--lg .icon { width: 1.35em; height: 1.35em; }

.text-link { display: inline-flex; align-items: center; gap: .35em; color: var(--blue-700); font-weight: 700; text-underline-offset: .2em; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: opacity .45s ease, transform .45s ease, visibility .45s, box-shadow .25s ease;
}
/* キービジュアルが見えている間はヘッダーごと隠し、スクロールするとふわっと表示（main.js が .is-shown を付け外し） */
.js .site-header:not(.is-shown):not(:focus-within) { opacity: 0; visibility: hidden; transform: translateY(-100%); }
/* 背景のぼかしは疑似要素に（子要素の position: fixed に影響させないため） */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 229, 250, .8);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(92, 122, 170, .10); }
.site-header__inner {
  height: 100%;
  width: min(1320px, 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: inline-flex; align-items: center; padding: 6px 2px; text-decoration: none; }
.brand__logo { height: 48px; width: auto; filter: drop-shadow(0 2px 6px rgba(92, 122, 170, .18)); }
.site-header__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px 0 10px;
  border: 1.5px solid var(--sky-300); border-radius: 999px;
  background: #fff; color: var(--blue-700);
  font-weight: 700; font-size: .88rem; cursor: pointer;
}
.lang__btn:hover, .lang__btn[aria-expanded="true"] { background: var(--sky-100); }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.lang__chev { transition: transform .2s; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 210px; padding: 8px;
  background: #fff; border-radius: var(--radius-md);
  box-shadow: 0 18px 44px rgba(92, 122, 170, .22), 0 0 0 1px var(--sky-200);
  display: grid; gap: 2px;
}
.lang__menu[hidden] { display: none; }
.lang__menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 9px 12px; border: 0; border-radius: var(--radius-sm);
  background: transparent; text-align: left; cursor: pointer;
  font-weight: 700; font-size: .95rem; color: var(--ink-900);
}
.lang__menu button:hover, .lang__menu button:focus-visible { background: var(--sky-100); }
.lang__menu button[aria-checked="true"] { background: var(--sky-200); color: var(--blue-700); }
.lang__menu button[aria-checked="true"]::after { content: "✓"; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #9fd3f3, #7bbfe9);
  color: #fff; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .9rem; letter-spacing: .06em;
  box-shadow: 0 4px 12px rgba(92, 150, 210, .25);
}
.menu-btn .icon { width: 20px; height: 20px; }

@media (max-width: 600px) {
  :root { --header-h: 56px; }
  .brand__logo { height: 42px; }
  .header-steam { display: none; }
  .lang__btn { padding: 0 10px; height: 38px; }
  .menu-btn { width: 42px; height: 40px; padding: 0; justify-content: center; }
  .menu-btn__label { display: none; }
}
@media (max-width: 360px) {
  .lang__current { display: none; }
}

/* ---------- メニュー（全画面ポップアップ） ---------- */
.menu {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  background: rgba(214, 234, 252, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__panel {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 18px 18px 22px;
  box-shadow: 0 24px 60px rgba(92, 122, 170, .28);
  display: grid; gap: 16px;
  animation: menu-pop .28s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes menu-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.menu__head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.menu__close {
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--sky-100); color: var(--blue-700);
}
.menu__close .icon { width: 22px; height: 22px; }
.menu__logo { height: 44px; width: auto; }
.menu__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.menu__grid a {
  display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 8px;
  min-height: 60px; padding: 8px 10px;
  border-radius: 16px; background: var(--sky-100); color: var(--ink-900); text-decoration: none;
  transition: background .15s, transform .15s;
}
.menu__grid li:nth-child(4n+2) a, .menu__grid li:nth-child(4n+3) a { background: var(--lav-100); }
.menu__grid a:hover { transform: translateY(-2px); background: var(--sky-200); }
.menu__grid .icon { grid-row: 1 / span 2; width: 26px; height: 26px; color: var(--blue-500); justify-self: center; }
.menu__grid li:nth-child(4n+2) .icon, .menu__grid li:nth-child(4n+3) .icon { color: var(--lav-400); }
.menu__en { align-self: end; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .6rem; letter-spacing: .08em; color: var(--ink-500); line-height: 1.2; }
.menu__grid a > span:last-child { align-self: start; font-family: var(--font-head); font-weight: var(--head-weight); font-size: .84rem; line-height: 1.35; }
.menu__cta { width: 100%; }
.menu__foot { border-top: 1px dashed var(--sky-300); padding-top: 12px; }
.menu__label { display: flex; align-items: center; gap: 6px; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .78rem; color: var(--ink-500); letter-spacing: .06em; margin-bottom: 8px; }
.menu__langs { display: flex; flex-wrap: wrap; gap: 6px; }
.menu__langs a {
  padding: 5px 11px; border-radius: 999px; border: 1.5px solid var(--sky-300);
  color: var(--ink-700); text-decoration: none; font-weight: 700; font-size: .82rem;
}
.menu__langs a[aria-current="true"] { background: var(--blue-400); border-color: var(--blue-400); color: #fff; }

@media (max-height: 700px) {
  .menu__panel { gap: 12px; padding: 14px 14px 16px; }
  .menu__grid a { min-height: 52px; padding: 6px 10px; }
  .menu__logo { height: 38px; }
}

/* ---------- ヒーロー ---------- */
.hero { position: relative; background: var(--sky-200); }
.hero__visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* 流れる告知テキスト */
.ticker {
  position: relative; z-index: 2;
  overflow: hidden; white-space: nowrap;
  background: #fff;
  border-top: 1px solid var(--pink-200); border-bottom: 1px solid var(--pink-200);
  color: var(--pink-700);
  font-family: var(--font-head); font-weight: var(--head-weight); font-size: .86rem;
  line-height: 1; padding: 10px 0;
}
.ticker__track { display: inline-flex; animation: ticker 32s linear infinite; }
.ticker__track span { padding: 0 1.6em; position: relative; }
.ticker__track span::after { content: "✿"; position: absolute; right: -.45em; color: var(--lav-400); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.catch {
  position: relative; overflow: hidden;
  text-align: center;
  padding: clamp(56px, 8vw, 88px) 0;
  background:
    radial-gradient(rgba(255, 255, 255, .7) 1.3px, transparent 1.6px) 0 0 / 14px 14px,
    linear-gradient(180deg, var(--sky-200) 0%, #d6ebfc 100%);
}
.catch__slime {
  position: absolute; z-index: 0; height: auto; pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(92, 122, 170, .18));
  animation: floaty 6s ease-in-out infinite;
}
.catch__slime--pure { width: clamp(84px, 15vw, 190px); left: max(2%, calc(50% - 600px)); bottom: 10%; transform: rotate(-6deg); }
.catch__slime--lolidium { width: clamp(76px, 13vw, 170px); right: max(2%, calc(50% - 600px)); top: 12%; animation-delay: -3s; }
@media (max-width: 640px) {
  .catch { padding-top: 92px; padding-bottom: 104px; }
  .catch__slime--pure { left: 4%; bottom: 14px; }
  .catch__slime--lolidium { right: 4%; top: 12px; }
}
.hero__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero__catch {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: clamp(1.55rem, 7vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: .03em;
  color: var(--blue-700);
  text-shadow: 0 2px 0 #fff, 0 0 18px rgba(255, 255, 255, .9);
}
/* 日本語：3行を固定で改行（1行が画面幅に収まるよう文字サイズを調整） */
.hero__lead {
  font-weight: 700; color: var(--ink-700);
  font-size: clamp(.95rem, 2vw, 1.12rem);
  line-height: 1.85;
}
html[lang="ja"] .hero__lead { font-size: min(1.12rem, calc((100vw - 9vw - 8px) / 23)); }
.hero__lead .line { display: block; }
.hero__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .8); border: 1.5px solid #fff;
  color: var(--blue-700); font-weight: 700; font-size: .85rem; line-height: 1.4;
}
.chip--hot { background: #fff; color: var(--pink-700); }

/* 泡 */
.bubble {
  position: absolute; left: var(--x); top: var(--y); z-index: 0;
  width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff 0 14%, rgba(255, 255, 255, .35) 22%, rgba(255, 255, 255, .1) 62%, rgba(255, 255, 255, .6) 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9);
  animation: floaty 6s ease-in-out var(--d) infinite;
  pointer-events: none;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- セクション見出し ---------- */
.sec-head { text-align: center; margin-bottom: clamp(32px, 5vw, 52px); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sec-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: .04em;
  background: linear-gradient(90deg, #7fc4ee 0%, #a99aee 55%, #efa5cb 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #fff) drop-shadow(0 6px 14px rgba(120, 150, 200, .18));
}
.sec-title {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: var(--head-weight);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--ink-700);
}
.sec-title::before, .sec-title::after {
  content: ""; flex: none; width: 1.15em; height: 1.15em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='%23f7c3dc'%3E%3Cpath id='p' d='M20 3.5c4.2 0 7.2 3.1 7.2 6.9 0 3.8-3.3 6.3-7.2 9.3-3.9-3-7.2-5.5-7.2-9.3 0-3.8 3-6.9 7.2-6.9z'/%3E%3Cuse href='%23p' transform='rotate(90 20 20)'/%3E%3Cuse href='%23p' transform='rotate(180 20 20)'/%3E%3Cuse href='%23p' transform='rotate(270 20 20)'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='3.6' fill='%23ffe9a0'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sec-title::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='%23c8bdf6'%3E%3Cpath id='p' d='M20 3.5c4.2 0 7.2 3.1 7.2 6.9 0 3.8-3.3 6.3-7.2 9.3-3.9-3-7.2-5.5-7.2-9.3 0-3.8 3-6.9 7.2-6.9z'/%3E%3Cuse href='%23p' transform='rotate(90 20 20)'/%3E%3Cuse href='%23p' transform='rotate(180 20 20)'/%3E%3Cuse href='%23p' transform='rotate(270 20 20)'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='3.6' fill='%23ffe9a0'/%3E%3C/svg%3E");
}
.sec-lead { color: var(--ink-700); max-width: 38em; font-size: .95rem; margin-top: 6px; text-align: center; }
.sub-title {
  font-family: var(--font-head); font-weight: var(--head-weight);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  text-align: center; margin: clamp(48px, 7vw, 80px) 0 22px;
  color: var(--blue-700);
}
.body-text { font-size: 1rem; }
.body-text + .body-text { margin-top: .9em; }

/* 写真フレーム */
.photo {
  margin: 0; position: relative;
  border-radius: var(--radius-lg);
  background: #fff; padding: 6px;
  box-shadow: var(--shadow-soft);
}
.photo img { border-radius: calc(var(--radius-lg) - 6px); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- MOVIE ---------- */
.movie {
  background:
    radial-gradient(rgba(173, 155, 234, .12) 1.6px, transparent 2px) 0 0 / 18px 18px,
    linear-gradient(180deg, var(--sky-50) 0%, var(--lav-100) 100%);
}
.video {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 16px 44px rgba(110, 91, 184, .18);
  background: #dfe6f5;
}
.video__poster { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: #dfe6f5; }
.video__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.video__poster:hover img { transform: scale(1.03); }
.video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(64px, 12vw, 92px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--pink-400);
  box-shadow: 0 10px 30px rgba(60, 60, 120, .25);
  transition: transform .2s ease;
}
.video__poster:hover .video__play { transform: translate(-50%, -50%) scale(1.08); }
.video__play .icon { width: 42%; height: 42%; margin-left: 8%; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 14px 4px 18px; }
.player__title { font-family: var(--font-head); font-weight: var(--head-weight); color: var(--ink-900); font-size: .98rem; line-height: 1.6; }
.player__tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 260px)); justify-content: center; gap: 12px; }
@media (max-width: 640px) { .player__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.player__tabs button {
  display: grid; gap: 8px; width: 100%; padding: 6px 6px 10px; text-align: left;
  border: 2px solid transparent; border-radius: 18px; cursor: pointer;
  background: #fff; box-shadow: var(--shadow-card);
  transition: border-color .15s, transform .15s;
}
.player__tabs button:hover { transform: translateY(-2px); }
.player__tabs button[aria-selected="true"] { border-color: var(--lav-400); }
.player__tabs img { border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.player__tab-label { display: block; padding: 0 4px; font-family: var(--font-head); font-weight: var(--head-weight); font-size: .88rem; color: var(--ink-700); line-height: 1.4; }
.player__tabs button[aria-selected="true"] .player__tab-label { color: var(--lav-700); }
.player__tabs button[aria-selected="true"] .player__tab-label::before { content: "▶"; font-size: .7em; margin-right: .4em; vertical-align: .1em; }

/* ---------- ABOUT ---------- */
.about { background: linear-gradient(180deg, var(--lav-100) 0%, var(--sky-50) 60%); }
.cloud {
  position: absolute; z-index: 0; pointer-events: none;
  width: 240px; height: 72px; border-radius: 72px; background: #fff; opacity: .9;
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 110px; height: 110px; left: 36px; top: -56px; }
.cloud::after { width: 84px; height: 84px; right: 32px; top: -38px; }
.cloud--a { left: -70px; top: 150px; transform: scale(.8); }
.cloud--b { right: -90px; top: 48%; }

.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.about__text { display: flex; flex-direction: column; align-items: flex-start; }
.speech {
  position: relative;
  display: inline-block; margin-bottom: 22px;
  padding: 10px 22px;
  background: var(--butter-200);
  color: var(--butter-700);
  border-radius: 999px;
  font-family: var(--font-head); font-weight: var(--head-weight);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
}
.speech::after {
  content: ""; position: absolute; left: 34px; bottom: -11px;
  border: 7px solid transparent; border-top: 11px solid var(--butter-200);
}
.about__photo { max-width: 540px; justify-self: end; transform: rotate(1.2deg); }
.sticker {
  position: absolute; right: -10px; top: -18px;
  display: grid; place-items: center;
  width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e7f6ff, var(--blue-300) 80%);
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .9rem; line-height: 1.05; text-align: center;
  text-shadow: 0 1px 2px rgba(47, 111, 168, .35);
  border: 3px solid #fff; box-shadow: 0 6px 16px rgba(92, 150, 210, .25);
  transform: rotate(12deg);
}

.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.howto__item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 30px 22px 24px;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.howto__num {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--butter-300); color: var(--butter-700);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  border: 3px solid #fff;
}
.howto__icon { width: 44px; height: 44px; flex: none; }
.howto__item h4 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 4px; color: var(--ink-900); }
.howto__item p { font-size: .93rem; color: var(--ink-700); text-align: left; }

.controls {
  margin-top: 22px;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 26px;
  padding: 20px 26px;
  background: rgba(255, 255, 255, .75);
  border: 1.5px dashed var(--sky-300);
  border-radius: var(--radius-lg);
}
.controls__title { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); color: var(--blue-700); font-size: 1rem; }
.controls__title .icon { width: 1.5em; height: 1.5em; }
.controls__list { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.controls__list > div { display: flex; align-items: center; gap: 10px; }
.controls__list dt { display: flex; gap: 4px; }
kbd {
  display: inline-grid; place-items: center;
  min-width: 32px; height: 32px; padding: 0 8px;
  border-radius: 8px; background: #fff; border: 1.5px solid var(--sky-300);
  box-shadow: 0 2px 0 var(--sky-300);
  font-family: var(--font-display); font-weight: 600; color: var(--blue-700);
}
.controls__list dd { font-weight: 700; }
.controls__note { grid-column: 1 / -1; font-size: .86rem; color: var(--ink-500); line-height: 1.8; }

/* ---------- STORY（淡いレンガ＋ツタ） ---------- */
.story {
  background-color: #f6e6e0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='44'%3E%3Crect width='120' height='44' fill='%23fbf1ed'/%3E%3Crect x='1' y='1' width='57' height='19' rx='3' fill='%23f3dfd8'/%3E%3Crect x='61' y='1' width='57' height='19' rx='3' fill='%23f6e5df'/%3E%3Crect x='-29' y='23' width='57' height='19' rx='3' fill='%23f1dbd3'/%3E%3Crect x='31' y='23' width='57' height='19' rx='3' fill='%23f5e2db'/%3E%3Crect x='91' y='23' width='57' height='19' rx='3' fill='%23f1dbd3'/%3E%3C/svg%3E");
  background-size: 120px 44px;
  padding-top: clamp(88px, 11vw, 128px);
}
.ivy {
  position: absolute; left: 0; right: 0; top: 0; height: 56px; z-index: 2; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 56'%3E%3Cpath d='M0 0H160V10C150 16 140 9 130 15S110 10 100 16 80 9 70 15 50 10 40 16 20 9 10 15 0 10 0 10Z' fill='%2393cf93'/%3E%3Cg stroke='%2393cf93' stroke-width='2' fill='none'%3E%3Cpath d='M22 12C24 24 18 32 22 42'/%3E%3Cpath d='M92 12C90 20 96 26 92 34'/%3E%3Cpath d='M136 12C138 26 132 36 136 50'/%3E%3C/g%3E%3Cg fill='%23a6d9a4'%3E%3Cellipse cx='16' cy='24' rx='6' ry='8.5' transform='rotate(-30 16 24)'/%3E%3Cellipse cx='27' cy='37' rx='5.5' ry='8' transform='rotate(25 27 37)'/%3E%3Cellipse cx='98' cy='24' rx='6' ry='8.5' transform='rotate(30 98 24)'/%3E%3Cellipse cx='130' cy='27' rx='6' ry='9' transform='rotate(-25 130 27)'/%3E%3Cellipse cx='141' cy='44' rx='5.5' ry='8' transform='rotate(25 141 44)'/%3E%3Cellipse cx='60' cy='18' rx='7' ry='9' transform='rotate(10 60 18)'/%3E%3C/g%3E%3Cg fill='%23c3e6c1'%3E%3Cellipse cx='22' cy='46' rx='5' ry='7' transform='rotate(-15 22 46)'/%3E%3Cellipse cx='86' cy='35' rx='5' ry='7.5' transform='rotate(-30 86 35)'/%3E%3Cellipse cx='48' cy='17' rx='5' ry='7' transform='rotate(-35 48 17)'/%3E%3Cellipse cx='114' cy='18' rx='6' ry='7' transform='rotate(30 114 18)'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 160px 56px;
}
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.story__photo { transform: rotate(-1.2deg); }
.story__card {
  position: relative;
  padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 40px);
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  display: grid; gap: 1.2em;
  text-align: center;
  font-size: clamp(.98rem, 1.7vw, 1.08rem);
  line-height: 2;
}
.story__card::before {
  content: ""; position: absolute; inset: 9px; border-radius: calc(var(--radius-xl) - 7px);
  border: 1.5px dashed var(--pink-400); pointer-events: none;
}
.story__card strong { color: var(--lav-700); }
.story__last { color: var(--blue-700); font-weight: 700; }

/* ---------- SYSTEM ---------- */
.features {
  background:
    radial-gradient(rgba(173, 155, 234, .1) 2px, transparent 2.5px) 0 0 / 22px 22px,
    #fffdf9;
}
.feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(22px, 5vw, 60px); align-items: center;
  margin-bottom: clamp(56px, 8vw, 96px);
}
.feature:last-child { margin-bottom: 0; }
.feature--rev .feature__media { order: 2; }
.feature__media { transform: rotate(-1deg); }
.feature--rev .feature__media { transform: rotate(1deg); }
.feature__num {
  display: inline-grid; place-items: center;
  width: 52px; height: 46px; margin-bottom: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: #fff;
  background: radial-gradient(circle at 35% 30%, #d7efff, var(--blue-300) 75%);
  border-radius: 55% 45% 50% 50% / 60% 60% 42% 42%;
  box-shadow: 0 4px 12px rgba(92, 150, 210, .22);
  text-shadow: 0 1px 2px rgba(47, 111, 168, .3);
}
.feature:nth-of-type(even) .feature__num { background: radial-gradient(circle at 35% 30%, #efeaff, var(--lav-300) 75%); box-shadow: 0 4px 12px rgba(110, 91, 184, .2); }
.feature__title {
  font-family: var(--font-head);
  font-size: clamp(1.18rem, 2.5vw, 1.55rem); line-height: 1.55;
  color: var(--ink-900);
  margin-bottom: 14px;
}
.feature__text { display: grid; gap: .8em; color: var(--ink-700); }
.feature__text strong { color: var(--blue-700); background: linear-gradient(transparent 64%, rgba(201, 229, 250, .9) 64%); }
.feature__link { margin-top: 20px; }

/* ---------- CHARACTER ---------- */
.chara {
  background:
    radial-gradient(rgba(255, 255, 255, .7) 1.5px, transparent 2px) 0 0 / 14px 14px,
    linear-gradient(170deg, var(--sky-100) 0%, var(--lav-100) 60%, var(--pink-100) 100%);
}
.chara__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  grid-template-rows: repeat(3, auto);
  gap: 18px;
}
.chara-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); display: grid; }
.chara-card--main { grid-row: 1 / span 3; grid-template-rows: 1fr auto; }
.chara-card--main .chara-card__img { background: linear-gradient(180deg, #d9efff, #fff7dc); }
.chara-card--main .chara-card__img img { width: 100%; height: 100%; max-height: 620px; object-fit: cover; object-position: 50% 10%; }
.chara-card--sub { grid-template-columns: 190px 1fr; }
.chara-card__img { position: relative; overflow: hidden; background: var(--sky-100); }
.chara-card--sub .chara-card__img img { width: 100%; height: 100%; object-fit: cover; }
.chara-card__img--manga img { object-position: 60% 45%; }
.chara-card__img--fig { display: grid; place-items: center; padding: 14px; background: radial-gradient(circle at 50% 60%, #fff 0%, var(--sky-100) 70%); }
.chara-card--sub .chara-card__img--fig img { width: 100%; height: auto; max-height: 150px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(92, 122, 170, .18)); }
.chara-card--enemy .chara-card__img--fig { background: radial-gradient(circle at 50% 60%, #fff 0%, var(--lav-100) 70%); }
.chara-card--enemy .chara-card__img { background: var(--lav-100); }
.chara-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 4px; }
.chara-card--main .chara-card__body { padding: 24px 28px 28px; }
.chara-card__role {
  align-self: flex-start;
  padding: 2px 12px; border-radius: 999px;
  background: var(--sky-200); color: var(--blue-700);
  font-size: .78rem; font-weight: 700; line-height: 1.6;
}
.chara-card--main .chara-card__role { background: var(--butter-200); color: var(--butter-700); }
.chara-card--enemy .chara-card__role { background: var(--lav-200); color: var(--lav-700); }
.chara-card__name { font-family: var(--font-head); font-size: 1.35rem; color: var(--ink-900); }
.chara-card--main .chara-card__name { font-size: clamp(1.7rem, 3.4vw, 2.2rem); }
.chara-card__desc { color: var(--ink-700); font-size: .93rem; margin-top: 4px; }

.cv-line { display: flex; align-items: center; gap: 8px; }
.cv-line__name { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.05rem; color: var(--lav-700); }
.chara-card--main .cv-line__name { font-size: 1.2rem; }
.cv-badge {
  display: inline-grid; place-items: center;
  padding: 1px 8px; border-radius: 6px;
  background: var(--lav-400); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: .72rem; letter-spacing: .06em; line-height: 1.6;
}
.cv-badge--staff { background: var(--pink-400); }

/* ---------- CAST & STAFF ---------- */
.cast { background: linear-gradient(180deg, var(--pink-50) 0%, var(--butter-100) 100%); }
.cast__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.person {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.person__icon {
  flex: none; width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; box-shadow: 0 0 0 3px var(--lav-200);
  overflow: hidden;
}
.person__thumb {
  flex: none; width: 132px; height: auto; aspect-ratio: 480 / 312; object-fit: cover;
  border-radius: 12px; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--pink-200);
}
.person__role { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; color: var(--ink-500); }
.person__name { font-family: var(--font-head); font-weight: var(--head-weight); font-size: clamp(1.45rem, 3vw, 1.75rem); line-height: 1.3; color: var(--ink-900); margin-top: 4px; letter-spacing: .04em; }
.person__roman { font-family: var(--font-display); font-weight: 500; font-size: .8rem; color: var(--ink-500); letter-spacing: .04em; }
.cast__cta {
  margin: 26px auto 0; max-width: 640px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px;
  text-align: center; font-weight: 700; color: var(--ink-700);
}
.dev {
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(22px, 4vw, 32px);
  background: rgba(255, 255, 255, .85);
  border: 1.5px dashed var(--butter-400);
  border-radius: var(--radius-lg);
}
.dev__label { font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .12em; color: var(--butter-700); }
.dev__name { font-family: var(--font-head); font-size: 1.25rem; margin: 2px 0 8px; }
.dev__text { color: var(--ink-700); font-size: .95rem; }
.dev__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
.dev__links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; text-underline-offset: .2em; }

/* ---------- SCREENSHOTS ---------- */
.shots { background: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery button {
  display: block; width: 100%; padding: 0;
  border: 0; border-radius: var(--radius-md); overflow: hidden; cursor: zoom-in;
  background: var(--sky-100);
  box-shadow: 0 6px 18px rgba(92, 122, 170, .12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery button:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(92, 122, 170, .18); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- LET'S PLAY ---------- */
.letsplay { background: linear-gradient(180deg, #fff 0%, var(--sky-100) 100%); }
.lp-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; }
.lp-card {
  display: grid; gap: 6px; height: 100%;
  padding: 6px 6px 12px;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-card);
  color: var(--ink-900); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.lp-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(92, 122, 170, .16); }
.lp-card__thumb { position: relative; display: block; border-radius: 13px; overflow: hidden; background: var(--sky-200); }
.lp-card__thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lp-card__play { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }
.lp-card__title {
  padding: 0 6px; font-weight: 700; font-size: .88rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lp-card__ch { padding: 0 6px; font-size: .78rem; font-weight: 700; color: var(--pink-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-playlist { display: flex; justify-content: center; margin-top: 22px; }

/* ---------- MEDIA ---------- */
.media {
  background:
    radial-gradient(rgba(242, 180, 210, .16) 2px, transparent 2.5px) 0 0 / 24px 24px,
    var(--pink-50);
}
.media-list { display: grid; gap: 10px; }
.media-item {
  position: relative;
  display: grid; gap: 4px;
  padding: 14px 44px 14px 18px;
  background: #fff; border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(184, 82, 127, .06);
  border: 1.5px solid transparent;
  color: var(--ink-900); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.media-item:hover { border-color: var(--pink-400); transform: translateY(-1px); }
.media-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .8rem; }
.media-item__meta time { font-family: var(--font-display); font-weight: 500; color: var(--ink-500); letter-spacing: .02em; }
.media-item__outlet { font-weight: 700; color: var(--pink-700); }
.media-item__title { font-family: "Zen Maru Gothic", var(--font-body); font-weight: 700; font-size: .93rem; line-height: 1.7; }
.media-item__ext { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--pink-400); }
.badge {
  padding: 1px 8px; border-radius: 999px;
  background: var(--sky-200); color: var(--blue-700);
  font-family: var(--font-display); font-weight: 600; font-size: .7rem; letter-spacing: .04em; line-height: 1.6;
}
.badge--prj { background: var(--lav-200); color: var(--lav-700); }
.js [data-more-list]:not(.is-open) > li:nth-child(n+7) { display: none; }
.more { display: flex; justify-content: center; margin-top: 18px; }
.more .btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.media-db { margin-top: 28px; padding: 18px 22px; background: rgba(255, 255, 255, .8); border-radius: var(--radius-md); }
.media-db__note { font-size: .82rem; color: var(--ink-500); line-height: 1.8; }
.media-db__title { font-family: var(--font-head); font-size: .95rem; margin: 12px 0 6px; color: var(--pink-700); }
.media-db__list { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.media-db__list a { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: .9rem; text-underline-offset: .2em; }

/* ---------- INFO ---------- */
.info { background: linear-gradient(180deg, var(--sky-100), var(--sky-200)); }
.info__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; }
.info__side { display: grid; gap: 18px; }
.panel { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: clamp(20px, 3vw, 30px); }
.panel__title { font-family: var(--font-head); font-size: 1.05rem; color: var(--blue-700); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.panel__title::before { content: ""; width: 8px; height: 20px; border-radius: 6px; background: linear-gradient(180deg, var(--blue-300), var(--lav-300)); }
.panel__note { margin-top: 10px; font-size: .84rem; color: var(--ink-500); }
.spec > div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1.5px dotted var(--sky-300); }
.spec > div:first-child { padding-top: 0; }
.spec > div:last-child { border-bottom: 0; padding-bottom: 0; }
.spec dt { color: var(--ink-500); font-weight: 700; font-size: .9rem; }
.spec dd { font-weight: 700; }
.spec--compact > div { padding: 9px 0; grid-template-columns: 8em 1fr; }
.table-wrap { overflow-x: auto; }
.lang-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.lang-table th, .lang-table td { padding: 7px 10px; text-align: center; border-bottom: 1px solid var(--sky-200); }
.lang-table thead th { font-size: .78rem; color: var(--ink-500); font-weight: 700; }
.lang-table tbody th { text-align: left; font-weight: 700; white-space: nowrap; }
.lang-table td { color: var(--blue-500); font-weight: 700; }
.lang-table tbody tr:first-child { background: var(--butter-100); }

/* ---------- FOOTER ---------- */
.footer-cta {
  position: relative; overflow: hidden;
  padding: clamp(72px, 10vw, 120px) 0;
  text-align: center;
  background: var(--sky-200);
}
.footer-cta::before, .footer-cta::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.footer-cta::before { inset: -24px; background: url("../img/keyvisual-1280.webp") center 40% / cover no-repeat; filter: blur(5px) saturate(1.05); }
.footer-cta::after {
  background:
    radial-gradient(rgba(255, 255, 255, .5) 1.4px, transparent 1.6px) 0 0 / 12px 12px,
    linear-gradient(180deg, rgba(238, 247, 255, .72), rgba(244, 241, 255, .82));
}
.footer-cta__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-cta__title { font-family: var(--font-head); font-weight: var(--head-weight); font-size: clamp(1.6rem, 5vw, 2.5rem); color: var(--blue-700); text-shadow: 0 2px 0 #fff; }
.footer-cta__text { font-weight: 700; color: var(--ink-700); margin-bottom: 8px; }

.footer-main {
  position: relative;
  padding: 84px 0 24px;
  background-color: #f7efec;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='44'%3E%3Crect width='120' height='44' fill='%23fbf4f1'/%3E%3Crect x='1' y='1' width='57' height='19' rx='3' fill='%23f5e7e2'/%3E%3Crect x='61' y='1' width='57' height='19' rx='3' fill='%23f7ebe7'/%3E%3Crect x='-29' y='23' width='57' height='19' rx='3' fill='%23f3e4de'/%3E%3Crect x='31' y='23' width='57' height='19' rx='3' fill='%23f7ebe7'/%3E%3Crect x='91' y='23' width='57' height='19' rx='3' fill='%23f3e4de'/%3E%3C/svg%3E");
  background-size: 120px 44px;
  color: var(--ink-900);
}
.footer-main__inner { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr; gap: 32px; }
.footer-logo { display: inline-block; text-decoration: none; }
.footer-logo img { width: 190px; height: auto; }
.footer-genre { margin-top: 12px; font-weight: 700; color: var(--ink-700); font-size: .9rem; }
.footer-heading { font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .08em; margin-bottom: 10px; color: var(--pink-700); }
.footer-links { display: grid; gap: 6px; }
.footer-links a, .footer-langs a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-900); text-decoration: none; font-weight: 700; font-size: .93rem; }
.footer-links a:hover, .footer-langs a:hover { color: var(--blue-700); text-decoration: underline; text-underline-offset: .2em; }
.footer-links .icon { color: var(--blue-500); }
.footer-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.footer-langs a[aria-current="true"] { color: var(--blue-700); }
.footer-langs a[aria-current="true"]::before { content: "✓"; }
.back-to-top {
  display: flex; width: max-content; align-items: center; gap: 6px; margin: 40px auto 0;
  font-family: var(--font-display); font-weight: 600; font-size: .85rem; letter-spacing: .1em;
  color: var(--blue-700); text-decoration: none;
}
.copyright { text-align: center; margin-top: 16px; color: var(--ink-500); font-family: var(--font-display); }

/* ページトップ（右下） */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--blue-500);
  box-shadow: 0 6px 18px rgba(92, 122, 170, .25);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top .icon { width: 22px; height: 22px; }

/* ---------- ライトボックス ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(40, 46, 90, .88); }
.lightbox::backdrop { background: rgba(40, 46, 90, .5); }
.lightbox__inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 64px 72px; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.lightbox__count { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: #fff; font-family: var(--font-display); }
.lightbox__btn {
  position: absolute; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .15); color: #fff;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .3); }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__btn--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--close { right: 14px; top: 14px; }

/* ---------- スクロール演出 ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .about__photo.reveal.is-visible { transform: rotate(1.2deg); }
.js .story__photo.reveal.is-visible { transform: rotate(-1.2deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bubble, .ticker__track, .menu__panel, .catch__slime { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .gallery button, .media-item, .brand { transition: none; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 959px) {
  .about__grid, .story__grid, .feature, .info__grid { grid-template-columns: 1fr; }
  .about__photo { justify-self: center; width: 100%; }
  .feature--rev .feature__media { order: 0; }
  .howto { grid-template-columns: 1fr; gap: 26px; max-width: 560px; margin-inline: auto; }
  .howto__item { flex-direction: row; align-items: flex-start; text-align: left; gap: 14px; padding: 24px 20px 20px; }
  .howto__num { left: 22px; transform: none; }
  .howto__icon { width: 40px; height: 40px; margin-top: 4px; }
  .chara__grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .chara-card--main { grid-row: auto; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .chara-card--main .chara-card__img img { max-height: 520px; }
  .cast__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .lp-card__title { font-size: .8rem; }
  .footer-main__inner { grid-template-columns: 1fr 1fr; }
  .footer-main__inner > .footer-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .catch .btn--lg { width: 100%; max-width: 340px; }
  .controls { grid-template-columns: 1fr; padding: 16px 18px; }
  .chara-card--main { grid-template-columns: 1fr; }
  .chara-card--main .chara-card__img img { max-height: 420px; }
  .chara-card--sub { grid-template-columns: 120px 1fr; }
  .chara-card__body { padding: 16px 16px 18px; }
  .chara-card__name { font-size: 1.2rem; }
  .person { padding: 16px; gap: 14px; }
  .person__icon { width: 76px; height: 76px; }
  .person__thumb { width: 112px; }
  .spec > div, .spec--compact > div { grid-template-columns: 1fr; gap: 0; }
  .footer-main__inner { grid-template-columns: 1fr; }
  .sticker { width: 68px; height: 68px; font-size: .76rem; right: -4px; top: -16px; }
  .lightbox__inner { padding: 56px 10px 64px; }
  .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 8px; transform: none; width: 44px; height: 44px; }
  .lightbox__btn--prev { left: 12px; }
  .lightbox__btn--next { right: 12px; }
  .to-top { right: 12px; bottom: 12px; width: 44px; height: 44px; }
}

/* 翻訳適用前のチラつき防止（main.js / 3秒タイマーで解除） */
html.i18n-pending body { visibility: hidden; }
