:root {
  --ink: #202020;
  --ink-soft: #2a2a2a;
  --paper: #f1f1ef;
  --white: #fff;
  --line: rgba(32, 32, 32, .22);
  --site-max: 960px;
  --pad: clamp(24px, 3.5vw, 64px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #111;
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; width: 100%; }
main,
.site-footer {
  width: min(100%, var(--site-max));
  margin-inline: auto;
  overflow: hidden;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  transition: clip-path 1s var(--ease), visibility 1s;
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader__mark { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(28px, 5vw, 72px); letter-spacing: .12em; }
.loader__line { position: absolute; bottom: 10vh; width: min(280px, 64vw); height: 1px; background: #555; }
.loader__line span { display: block; height: 100%; width: 0; background: white; animation: loading 1.15s var(--ease) forwards; }
@keyframes loading { to { width: 100%; } }

.site-header {
  position: fixed;
  z-index: 50;
  top: 28px;
  left: 50%;
  width: min(calc(100% - 56px), calc(var(--site-max) - 56px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  transform: translateX(-50%);
  transition: width .6s var(--ease), padding .6s var(--ease), color .4s, background .4s, border-radius .6s;
}
.site-header.is-pill {
  width: min(760px, calc(100% - 32px));
  padding: 14px 22px;
  color: var(--ink);
  background: rgba(245,245,243,.92);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}
.site-logo { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 700; font-size: 18px; letter-spacing: .12em; white-space: nowrap; }
.site-nav { display: flex; gap: clamp(18px, 2.4vw, 38px); font-size: 12px; font-weight: 800; letter-spacing: .07em; }
.site-nav a { position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: currentColor; transition: right .35s; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: white;
  background: var(--ink);
}
.hero__media, .hero__shade, .hero__image { position: absolute; inset: 0; }
.hero__media { transform: scale(1.03); transition: transform .2s linear; }
.hero__image { height: 100%; object-fit: cover; filter: saturate(.88) contrast(1.08); opacity: 0; transform: scale(1.08); transition: opacity 1.25s ease, transform 7s ease; }
.hero__image.is-active { opacity: 1; transform: scale(1.01); }
.hero__shade { background: linear-gradient(90deg, rgba(6,10,14,.44), rgba(6,10,14,.18) 58%, rgba(6,10,14,.08)), linear-gradient(0deg, rgba(6,10,14,.32), transparent 48%); }
.hero__content {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100% - 80px));
  margin: 0 auto;
  padding-top: 21svh;
}
.hero__title {
  margin: 0;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(68px, 8.1vw, 115px);
  font-stretch: condensed;
  line-height: .76;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.hero__title span { display: block; overflow: hidden; animation: titleIn 1.25s var(--ease) both; }
.hero__title span:nth-child(2) { animation-delay: .08s; }
.hero__title span:nth-child(3) { animation-delay: .16s; }
@keyframes titleIn { from { opacity: 0; transform: translateY(115%); } to { opacity: 1; transform: none; } }
.hero__jp { position: absolute; left: 0; top: -13%; margin: 0; font-size: clamp(16px, 1.5vw, 21px); font-weight: 800; line-height: 1.55; }
.hero__en { position: absolute; right: 0; bottom: -17%; margin: 0; max-width: 230px; font-size: 11px; font-weight: 700; line-height: 1.55; letter-spacing: .08em; }
.hero__meta { position: absolute; z-index: 4; left: var(--pad); bottom: 40px; display: flex; flex-direction: column; gap: 6px; font-family: "Yu Mincho", serif; font-weight: 700; letter-spacing: .09em; }
.hero__meta span:last-child { font-family: Arial, sans-serif; font-size: 11px; letter-spacing: .18em; }
.scroll-cue { position: absolute; z-index: 4; right: var(--pad); bottom: 40px; display: flex; gap: 10px; align-items: center; font-size: 10px; font-weight: 800; letter-spacing: .18em; writing-mode: vertical-rl; }
.scroll-cue i { display: block; width: 1px; height: 44px; overflow: hidden; background: rgba(255,255,255,.35); }
.scroll-cue i::after { content: ""; display: block; width: 1px; height: 22px; background: white; animation: scrollLine 1.7s infinite ease-in-out; }
@keyframes scrollLine { from { transform: translateY(-24px); } to { transform: translateY(48px); } }

.manifesto {
  position: relative;
  min-height: 104svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  background: #000;
}
.manifesto__content { position: relative; z-index: 2; text-align: center; }
.eyebrow { margin: 0 0 24px; font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.manifesto h2 { margin: 0; font-size: clamp(42px, 6vw, 88px); line-height: 1.12; letter-spacing: -.05em; }
.manifesto__content > p:not(.eyebrow) { margin: 28px 0 0; font-size: clamp(16px, 1.4vw, 22px); font-weight: 700; }
.shuffle-button { width: 132px; height: 132px; margin-top: 50px; border: 0; border-radius: 50%; display: inline-grid; place-content: center; gap: 7px; color: var(--ink); background: white; cursor: pointer; font-size: 12px; font-weight: 900; letter-spacing: .12em; transition: transform .45s var(--ease), color .3s, background .3s; }
.shuffle-button:hover { transform: rotate(10deg) scale(1.08); color: white; background: var(--ink); box-shadow: inset 0 0 0 1px white; }

.archive { padding: clamp(100px, 12vw, 190px) var(--pad); background: var(--paper); }
.section-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; margin-bottom: 70px; }
.section-heading h2 { margin: 0; color: #c9c9c7; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(72px, 12vw, 180px); line-height: .73; letter-spacing: -.045em; }
.section-heading h2 span { display: block; }
.section-heading p { margin: 0 2vw 1vw 24px; font-size: 14px; font-weight: 700; line-height: 1.8; }
.memory-list { display: grid; width: 100%; margin-inline: auto; gap: 26px; }
.memory-card { width: min(100%, 840px); min-height: 360px; margin-inline: auto; display: grid; grid-template-columns: 55% 45%; overflow: hidden; border-radius: 14px; background: var(--ink); color: white; }
.memory-card--image-right { grid-template-columns: 45% 55%; }
.memory-card--image-right .memory-card__photo { order: 2; }
.memory-card__photo { overflow: hidden; background: #111; }
.memory-card__photo img { height: 100%; object-fit: cover; transform: scale(1.01); transition: opacity .4s, transform 1.2s var(--ease); }
.memory-card:hover .memory-card__photo img { transform: scale(1.06); }
.memory-card__copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; padding: clamp(24px, 4vw, 42px); }
.memory-card__copy time { max-width: 100%; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(52px, 6vw, 76px); line-height: .85; letter-spacing: -.045em; white-space: nowrap; }
.memory-card__copy > span { margin-top: 24px; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.memory-card__copy button { width: 54px; height: 54px; margin-top: 48px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; color: white; background: transparent; cursor: pointer; font-size: 21px; transition: transform .3s, background .3s, color .3s; }
.memory-card__copy button:hover { transform: translateX(7px); color: var(--ink); background: white; }
.memory-card.is-changing img, .manifesto.is-changing img, .feature.is-changing img, .closing.is-changing img { opacity: .05; transform: scale(1.12); }

.film-strip { position: relative; z-index: 2; grid-area: 1 / 1; width: 100%; margin: 0; overflow: hidden; background: var(--ink); }
/* 流れる写真の帯。動かしているのは script.js（setupFilm）。
   CSS アニメーションで長い帯を流すと iPhone で帯ごと消えたので、
   画面幅ぶんだけ並べて1枚ずつ末尾へ回す方式に変えた（2026-09-20）。
   止める・速さ・枚数はすべて script.js 側にある。 */
.film-strip__track { display: flex; width: max-content; }
.film-strip__track img { width: clamp(140px, 15vw, 190px); aspect-ratio: 4 / 3; flex: none; object-fit: cover; filter: saturate(.55); }

.feature { position: relative; min-height: 100svh; overflow: hidden; color: white; background: var(--ink); }
.feature__visual { position: absolute; z-index: 1; top: 16%; left: 0; width: 100%; display: grid; align-items: center; }
.feature__word { position: relative; z-index: 1; grid-area: 1 / 1; margin-left: 2vw; color: #303030; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(120px, 24vw, 360px); line-height: .8; letter-spacing: -.05em; }
.feature__copy { position: absolute; z-index: 3; left: var(--pad); bottom: 11%; }
.feature__copy h2 { margin: 0; font-size: clamp(48px, 7vw, 106px); line-height: 1.05; letter-spacing: -.055em; }

.picker { padding: clamp(80px, 10vw, 150px) var(--pad); background: var(--paper); }
.picker h2 { margin: 0 0 45px; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(54px, 8vw, 116px); line-height: .9; letter-spacing: -.04em; }
.picker__list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.picker__list button { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 140px; padding: 0 7%; border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; }
.picker__list button:last-child { border-right: 0; }
.picker__list span { font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(44px, 5.5vw, 82px); }
.picker__list i { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-style: normal; transition: transform .3s, color .3s, background .3s; }
.picker__list button:hover i { transform: translateX(6px); color: white; background: var(--ink); }

.closing { position: relative; min-height: 86svh; overflow: hidden; color: white; background: #000; }
.closing__content { position: absolute; z-index: 2; left: var(--pad); top: 50%; transform: translateY(-50%); }
.closing h2 { margin: 0; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(72px, 11vw, 160px); line-height: .82; letter-spacing: -.04em; }

.site-footer { min-height: 150px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 30px var(--pad); color: white; background: var(--ink); border-top: 1px solid #444; }
.site-footer__logo { font-family: "Yu Mincho", serif; font-size: 22px; font-weight: 700; letter-spacing: .12em; }
.site-footer__links { display: flex; align-items: center; gap: 22px; }
.site-footer__links a { width: 30px; height: 30px; display: grid; place-items: center; transition: opacity .3s, transform .3s; }
.site-footer__links a:hover { opacity: .62; transform: translateY(-3px); }
.site-footer__links svg { width: 24px; height: 24px; overflow: visible; fill: currentColor; }
.site-footer__links a[aria-label="X"] svg { fill: none; stroke: currentColor; stroke-width: 2; }
.site-footer__links .youtube-play { fill: var(--ink); stroke: none; }
.site-footer small { justify-self: end; font-size: 10px; letter-spacing: .16em; }

.reveal { opacity: 0; transform: translateY(55px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.flash { position: fixed; z-index: 900; inset: 0; pointer-events: none; background: white; opacity: 0; }
.flash.is-flashing { animation: flash .62s ease; }
@keyframes flash { 0%,100% { opacity: 0; } 12% { opacity: .55; } }

@media (max-width: 760px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
    padding: 12px 14px;
    flex-direction: row;
    align-items: center;
    color: white;
    background: rgba(18,18,18,.62);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    backdrop-filter: blur(14px);
  }
  .site-header.is-pill { width: calc(100% - 24px); padding: 12px 14px; border-color: rgba(32,32,32,.14); border-radius: 999px; }
  .site-logo { font-size: 15px; }
  .menu-toggle { width: 40px; height: 40px; display: grid; place-content: center; gap: 5px; padding: 0; border: 0; border-radius: 50%; color: inherit; background: transparent; cursor: pointer; }
  .menu-toggle span { width: 20px; height: 1px; display: block; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
  .site-header.is-menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-header.is-menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: absolute; top: calc(100% + 8px); right: 0; width: min(260px, calc(100vw - 24px)); display: grid; gap: 0; padding: 10px; color: white; background: rgba(18,18,18,.96); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; box-shadow: 0 18px 45px rgba(0,0,0,.3); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: opacity .25s, visibility .25s, transform .25s var(--ease); }
  .site-header.is-menu-open .site-nav { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .site-nav a { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 11px; letter-spacing: .08em; }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a::after { display: none; }
  .hero__image { object-position: 72% center; }
  .hero__content { width: calc(100% - 40px); padding-top: calc(31svh - 40px); }
  .hero__title { font-size: clamp(36px, 11.5vw, 61px); }   /* スマホは 2 割小さく（2026-09-20 本人指示。元 45/14.4vw/76） */
  .hero__jp { top: -80px; left: 0; font-size: 14px; }
  .hero__en { display: none; }
  .hero__meta { bottom: 24px; }
  .scroll-cue { right: 18px; bottom: 24px; }
  .manifesto { min-height: 90svh; }
  .shuffle-button { width: 108px; height: 108px; }
  .archive { padding-inline: 16px; }
  .section-heading { grid-template-columns: 1fr; gap: 30px; }
  .section-heading h2 { font-size: 20vw; }
  .section-heading p { margin: 0; }
  .memory-card, .memory-card--image-right { min-height: min(118vw, 480px); grid-template-columns: 1fr; grid-template-rows: 54% 46%; }
  .memory-card--image-right .memory-card__photo { order: 0; }
  .memory-card__copy { padding: 24px; }
  .memory-card__copy time { font-size: clamp(54px, 16vw, 76px); }
  .memory-card__copy > span { margin-top: 14px; }
  .memory-card__copy button { position: absolute; right: 24px; bottom: 24px; margin-top: 0; }
  .memory-card { position: relative; }
  .feature { min-height: 0; padding: 52px 0 60px; }
  .feature__visual { position: relative; top: auto; left: auto; }
  .feature__copy { position: relative; left: auto; bottom: auto; margin: 64px 24px 0; }
  .feature__copy h2 { font-size: 11vw; }
  .picker__list { grid-template-columns: 1fr; }
  .picker__list button { min-height: 105px; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .picker__list button:last-child { border-bottom: 0; }
  .closing { min-height: 0; padding: 80px 0; }
  .closing__content { position: relative; left: auto; top: auto; padding: 0 24px; transform: none; }
  .closing h2 { font-size: clamp(42px, 12vw, 72px); }
  .site-footer { grid-template-columns: 1fr; padding-block: 50px; }
  .site-footer small { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
