/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --c-bg: #12082c;
  --c-bg-sub: #1d0e63;
  --c-black: #000;
  --c-text: #fff;
  --c-text-dim: rgba(255, 255, 255, .72);
  --c-accent: #ff8bc1;
  --c-paper: #f3e9d2;
  --c-ink: #1a1a1a;
  --c-gold: #c9a24b;
  --c-gold-light: #f3d98b;
  --c-gold-dark: #7a5a1c;
  --c-stamp: #c8323c;

  --ff-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --ff-script: "Pacifico", cursive;
  --ff-mincho: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --ff-hand: "Yomogi", var(--ff-base);

  --w-container: 1200px;
  --w-narrow: 960px;
  --gutter: 20px;
  --header-h: 64px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-base);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: calc(var(--w-container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: calc(var(--w-narrow) + var(--gutter) * 2);
}

.pc-only {
  display: none;
}

/* 画像の仮置き（素材が届いたら img に差し替える） */
.ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 10px, transparent 10px 20px),
    linear-gradient(135deg, #3b1679, #12082c);
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
}

.ph--round {
  border-radius: 50%;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--gutter);
  transition: background-color .3s;
}

/* backdrop-filter は fixed の .nav を header 内に閉じ込めてしまうため使わない */
.header.is-scrolled {
  background: rgba(18, 8, 44, .92);
}

.header__logo {
  position: relative;
  z-index: 2;
  font-family: var(--ff-script);
  font-size: 20px;
  color: var(--c-accent);
}

.header__toggle {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.header__toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--c-text);
  transition: transform .3s, top .3s;
}

.header__toggle span:nth-child(1) { top: 17px; }
.header__toggle span:nth-child(2) { top: 25px; }

.is-nav-open .header__toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.is-nav-open .header__toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.nav {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 4, 26, .96);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
}

.is-nav-open .nav {
  opacity: 1;
  visibility: visible;
}

.is-nav-open {
  overflow: hidden;
}

.nav__list {
  text-align: center;
}

.nav__list li + li {
  margin-top: 28px;
}

.nav__list a {
  display: block;
  font-family: var(--ff-script);
  font-size: 28px;
  line-height: 1.4;
  transition: color .2s;
}

.nav__list a:hover {
  color: var(--c-accent);
}

.nav__list small {
  display: block;
  font-family: var(--ff-base);
  font-size: 11px;
  color: var(--c-text-dim);
}

/* ==========================================================================
   Common: Section / Title / Fade
   ========================================================================== */
.section {
  padding: 96px 0;
}

.section--sub {
  background: var(--c-bg-sub);
}

.ttl {
  margin-bottom: 56px;
  text-align: center;
}

.ttl__en {
  display: block;
  font-family: var(--ff-script);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--c-accent);
  text-shadow: 0 0 18px rgba(255, 139, 193, .45);
}

.ttl__ja {
  display: block;
  margin-top: 8px;
  font-family: var(--ff-mincho);
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--c-text-dim);
}

.js-fade {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s ease, transform .9s ease;
}

.js-fade.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   01. Hero（名前／拠点）
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  padding: calc(var(--header-h) + 32px) 0 96px;
  background: var(--c-black);
  text-align: center;
}

/* 映画ポスターの夕焼け空 */
.hero__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 100%, rgba(255, 170, 90, .85), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 85%, rgba(255, 110, 150, .5), transparent 70%),
    linear-gradient(180deg, #050208 0%, #2a0f3d 45%, #7a2a52 75%, #c45a3c 100%);
}

/* うっすら走査線（フィルムっぽさ） */
.hero__sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

.hero__inner {
  position: relative;
  max-width: calc(var(--w-container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero__tag {
  display: inline-block;
  padding: 2px 14px;
  border: 1px solid var(--c-accent);
  color: var(--c-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.hero__lead {
  margin-top: 20px;
  font-family: var(--ff-mincho);
  font-size: 15px;
  letter-spacing: .3em;
}

.hero__title {
  margin-top: 8px;
  font-weight: 400;
}

.hero__title-en {
  display: block;
  font-family: var(--ff-script);
  font-size: clamp(52px, 14vw, 128px);
  line-height: 1.3;
  color: var(--c-accent);
  text-shadow:
    3px 3px 0 #3a0f2c,
    6px 6px 0 rgba(0, 0, 0, .5),
    0 0 40px rgba(255, 139, 193, .5);
  transform: rotate(-4deg);
}

.hero__title-ja {
  display: block;
  margin-top: 4px;
  font-family: var(--ff-mincho);
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 700;
  letter-spacing: .3em;
}

.hero__title-ja small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-dim);
}

/* 元画像が 160px のため、それ以上は拡大しない */
.hero__photo {
  width: 160px;
  aspect-ratio: 1;
  margin: 32px auto 0;
  overflow: hidden;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px var(--c-accent),
    0 0 24px 4px rgba(255, 139, 193, .55),
    0 24px 60px rgba(0, 0, 0, .55);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
}

.hero__meta dt {
  font-family: var(--ff-script);
  font-size: 14px;
  color: var(--c-accent);
}

.hero__meta dd {
  font-weight: 700;
}

/* ポスター下部のクレジット（ビリングブロック） */
.hero__billing {
  max-width: 800px;
  margin: 36px auto 0;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .55);
  transform: scaleY(1.35);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 20px;
  padding-bottom: 44px;
  font-family: var(--ff-script);
  font-size: 13px;
  transform: translateX(-50%);
}

.hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 36px;
  background: var(--c-text);
  animation: scroll-line 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   02. Who am I（どんな人？）
   ========================================================================== */
.who__intro {
  text-align: center;
  font-size: 16px;
  line-height: 2.1;
}

.who__keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.who__keywords li {
  padding: 4px 16px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  font-size: 13px;
}

/* 羊皮紙カード */
.paper {
  position: relative;
  max-width: var(--w-narrow);
  margin: 56px auto 0;
  padding: 48px 28px 40px;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, .5), transparent 50%),
    radial-gradient(ellipse at 90% 90%, rgba(150, 110, 60, .25), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(150, 110, 60, .2), transparent 40%),
    var(--c-paper);
  color: var(--c-ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  transform: rotate(-.6deg);
}

.paper__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.paper__stamp {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border: 3px solid var(--c-stamp);
  border-radius: 50%;
  color: var(--c-stamp);
  font-family: var(--ff-mincho);
  font-size: 14px;
  font-weight: 700;
  writing-mode: vertical-rl;
  letter-spacing: .1em;
  transform: rotate(-12deg);
  opacity: .85;
}

.paper__ttl {
  font-family: var(--ff-script);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.4;
}

.paper__list li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px dashed rgba(26, 26, 26, .25);
  font-family: var(--ff-hand);
  font-size: 16px;
  line-height: 1.7;
}

.paper__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--c-ink);
  border-radius: 2px;
}

.paper__list li::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 14px;
  width: 7px;
  height: 13px;
  border: solid var(--c-stamp);
  border-width: 0 3px 3px 0;
  transform: rotate(40deg);
}

.paper__sign {
  margin-top: 24px;
  text-align: right;
  font-family: var(--ff-script);
  font-size: 22px;
  color: #2b2b6b;
}

/* ==========================================================================
   Scene（セクション区切りのイラスト）
   ========================================================================== */
.scene svg {
  width: 100%;
  height: clamp(220px, 34vw, 480px);
}

/* ==========================================================================
   03. Favorites（好きなこと）
   ========================================================================== */
.gallery {
  display: grid;
  gap: 56px;
}

.gallery__item {
  text-align: center;
}

/* 金の額縁 */
.frame {
  aspect-ratio: 4 / 3;
  padding: 14px;
  background:
    linear-gradient(135deg, var(--c-gold-light), var(--c-gold) 30%, var(--c-gold-dark) 55%, var(--c-gold) 75%, var(--c-gold-light));
  box-shadow:
    inset 0 0 0 2px var(--c-gold-dark),
    inset 0 0 0 8px var(--c-gold),
    inset 0 0 0 10px var(--c-gold-dark),
    0 18px 40px rgba(0, 0, 0, .5);
}

.frame > * {
  box-shadow: inset 0 0 12px rgba(0, 0, 0, .6);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 額縁の下の札 */
.plate {
  display: inline-block;
  min-width: 160px;
  margin-top: 20px;
  padding: 6px 20px;
  background: linear-gradient(180deg, #f6f6f6, #cfcfcf);
  color: var(--c-ink);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
}

.plate__ttl {
  font-family: var(--ff-mincho);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.plate__en {
  font-size: 10px;
  letter-spacing: .2em;
  color: #666;
  line-height: 1.4;
}

.gallery__text {
  margin-top: 14px;
  font-size: 14px;
  color: var(--c-text-dim);
}

/* ==========================================================================
   04. By the way（余談）
   ========================================================================== */
.talk__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.talk__row + .talk__row {
  margin-top: 32px;
}

.talk__row--q {
  justify-content: flex-end;
}

.talk__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .5);
}

.talk__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.talk__row--a .talk__icon .ph {
  background: linear-gradient(135deg, var(--c-accent), #8a3b7a);
  color: #fff;
  font-family: var(--ff-script);
  font-size: 20px;
  letter-spacing: 0;
}

.talk__row--q .talk__icon .ph {
  font-family: var(--ff-script);
  font-size: 20px;
  letter-spacing: 0;
}

.talk__bubble {
  position: relative;
  max-width: 680px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 14px;
  font-size: 14px;
  color: var(--c-text-dim);
}

.talk__bubble::before {
  content: "";
  position: absolute;
  top: 22px;
  width: 14px;
  height: 14px;
  background: var(--c-bg);
  border: solid rgba(255, 255, 255, .7);
}

.talk__row--q .talk__bubble::before {
  right: -8px;
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
}

.talk__row--a .talk__bubble::before {
  left: -8px;
  border-width: 0 0 1px 1px;
  transform: rotate(45deg);
}

.talk__label {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
}

.talk__row--a .talk__label {
  color: var(--c-accent);
}

/* ==========================================================================
   05. Cast（影響を受けた人）
   ========================================================================== */
.cast {
  display: grid;
  gap: 48px;
}

.cast__item {
  text-align: center;
}

.cast__icon {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .25) 0 18%, transparent 19%),
    radial-gradient(ellipse 34% 26% at 50% 88%, rgba(255, 255, 255, .25) 0 98%, transparent 100%),
    linear-gradient(135deg, #3b1679, #12082c);
  box-shadow: 0 0 0 3px var(--c-gold), 0 0 0 6px var(--c-bg-sub), 0 0 0 7px rgba(201, 162, 75, .5);
}

.cast__icon {
  overflow: hidden;
}

.cast__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cast__role {
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--c-accent);
}

.cast__name {
  margin-top: 2px;
  font-family: var(--ff-mincho);
  font-size: 22px;
  font-weight: 700;
}

.cast__text {
  max-width: 420px;
  margin: 12px auto 0;
  font-size: 14px;
  color: var(--c-text-dim);
}

/* ==========================================================================
   06. Story（これまでの歩み）
   ========================================================================== */
.program {
  width: fit-content;
  margin: -24px auto 40px;
  padding: 4px 24px;
  border-top: 1px solid var(--c-gold);
  border-bottom: 1px solid var(--c-gold);
  color: var(--c-gold);
  font-family: var(--ff-mincho);
  font-size: 12px;
  letter-spacing: .5em;
  text-transform: uppercase;
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--c-accent), rgba(255, 139, 193, .1));
}

.timeline__item {
  position: relative;
  padding-bottom: 40px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 10px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 12px var(--c-accent);
}

.timeline__year {
  font-family: var(--ff-mincho);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-accent);
}

.timeline__body h3 {
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.6;
}

.timeline__body p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--c-text-dim);
}

/* ==========================================================================
   Ending
   ========================================================================== */
.ending {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  margin-top: 40px;
}

.ending__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ending__inner {
  position: relative;
  padding: 120px var(--gutter) 200px;
  text-align: center;
}

.ending__fin {
  font-family: var(--ff-script);
  font-size: clamp(64px, 16vw, 140px);
  line-height: 1.3;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}

.ending__thanks {
  margin-top: 12px;
  font-family: var(--ff-mincho);
  font-size: 14px;
  letter-spacing: .2em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 40px var(--gutter);
  background: var(--c-bg);
  text-align: center;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 13px;
  letter-spacing: .15em;
}

.footer__links a {
  transition: color .2s;
}

.footer__links a:hover {
  color: var(--c-accent);
}

.footer__copy {
  margin-top: 20px;
  font-size: 11px;
  color: var(--c-text-dim);
}

/* ==========================================================================
   Responsive (PC)
   ========================================================================== */
@media (min-width: 768px) {
  :root {
    --gutter: 40px;
  }

  body {
    font-size: 16px;
  }

  .pc-only {
    display: inline;
  }

  .section {
    padding: 140px 0;
  }

  .ttl {
    margin-bottom: 72px;
  }

  .ttl__en {
    font-size: 56px;
  }

  .header {
    padding: 0 40px;
  }

  .header__logo {
    font-size: 24px;
  }

  .hero__billing {
    font-size: 11px;
  }

  .paper {
    padding: 64px 72px 56px;
  }

  .paper__ttl {
    font-size: 36px;
  }

  .paper__stamp {
    width: 68px;
    height: 68px;
    font-size: 16px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 72px 56px;
  }

  .gallery__item:nth-child(even) {
    margin-top: 80px;
  }

  .talk__icon {
    width: 88px;
    height: 88px;
  }

  .cast__icon {
    width: 200px;
    height: 200px;
    margin-bottom: 28px;
  }

  .talk__bubble {
    padding: 20px 28px;
  }

  .cast {
    grid-template-columns: repeat(auto-fit, minmax(0, 420px));
    justify-content: center;
    gap: 40px;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    left: 120px;
  }

  .timeline__item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 52px;
  }

  .timeline__item::before {
    left: 115px;
  }

  .timeline__year {
    text-align: right;
  }

  .timeline__body h3 {
    margin-top: 0;
  }

  .ending {
    min-height: 640px;
  }

  .ending__inner {
    padding-top: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__scroll::after {
    animation: none;
  }
}
