/* =========================================================
   CRANE MOVIE『康花の世界』
   黒を基調に、絵と映画の場面を大きく見せる
   ========================================================= */

:root {
  --bg: #0b0b0c;
  --bg-deep: #121113;
  --panel: rgba(11, 11, 12, 0.78);
  --text: #e9e4da;
  --text-soft: #a9a296;
  --line: rgba(233, 228, 218, 0.14);
  --gold: #c9a45c;
  --crimson: #9c2b3a;

  --font-jp: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-en: "Cormorant Garamond", "Times New Roman", serif;

  --header-h: 64px;
  --wrap: 1040px;
  --wrap-wide: 1320px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  font-size: 17px;
  line-height: 2;
  letter-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 0.25em; }
a:hover { color: #e2c283; }

h1, h2, h3 { font-weight: 600; line-height: 1.5; margin: 0; }
p { margin: 0 0 1.2em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap--wide { max-width: var(--wrap-wide); }

/* ---------------------------------------------------------
   ヘッダー
   --------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  background: linear-gradient(rgba(11, 11, 12, 0.85), rgba(11, 11, 12, 0));
  transition: background 0.4s;
}
.site-header.is-scrolled {
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.32em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block;
  padding: 6px 12px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.14em;
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute; left: 10px;
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: transform 0.25s, background 0.25s;
  content: "";
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -8px; left: 0; }
.nav-toggle span::after { top: 8px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: rgba(11, 11, 12, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 24px 20px; }
  .nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
}

/* ---------------------------------------------------------
   トップ（絵と場面を大きく、ゆっくり切り替える）
   --------------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #000;
}

.hero__slides, .hero__slide, .hero__shade { position: absolute; inset: 0; }

.hero__slide {
  background-size: cover;
  background-position: var(--pos, center);
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 2.4s ease;
}
.hero__slide.is-active {
  opacity: 1;
  animation: slow-zoom 9s linear forwards;
}
@keyframes slow-zoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.12); }
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(0deg, rgba(11, 11, 12, 1) 0%, rgba(11, 11, 12, 0) 30%);
}

.hero__content {
  position: absolute;
  left: clamp(24px, 8vw, 120px);
  bottom: clamp(96px, 18vh, 180px);
  max-width: 90vw;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
  animation: rise 2s 0.4s cubic-bezier(.2,.7,.2,1) both;
}
.hero__lead {
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.3em;
  color: var(--text-soft);
  margin-bottom: 0.6em;
}
.hero__title {
  font-weight: 800;
  font-size: clamp(52px, 9vw, 128px);
  letter-spacing: 0.18em;
  line-height: 1.2;
}
.hero__badge {
  display: inline-block;
  margin: 1.6em 0 0;
  padding: 6px 18px;
  font-size: clamp(13px, 1.3vw, 15px);
  letter-spacing: 0.2em;
  border: 1px solid rgba(233, 228, 218, 0.5);
}

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-soft);
  text-decoration: none;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.4em;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 48px;
  background: linear-gradient(var(--text-soft), transparent);
  animation: scroll-line 2.4s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------
   セクション共通
   --------------------------------------------------------- */
.section { position: relative; padding: clamp(80px, 12vw, 150px) 0; }
.section--deep { background: var(--bg-deep); }

.heading { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.heading__en {
  display: block;
  font-family: var(--font-en);
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 18px);
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 8px;
}
.heading h2 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: 0.2em; }
.heading--left { text-align: left; }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 5fr 6fr; gap: 80px; }
}

/* 動画（押すまで YouTube を読み込まない） */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000 center / cover no-repeat;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.video button {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; cursor: pointer;
  background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45));
  color: var(--text);
  font: inherit;
  display: grid; place-items: center;
}
.video button span {
  display: grid; place-items: center;
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 1px solid rgba(233, 228, 218, 0.7);
  background: rgba(0, 0, 0, 0.35);
  transition: transform 0.3s, background 0.3s;
}
.video button span::before {
  content: "";
  margin-left: 6px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--text);
}
.video button:hover span { transform: scale(1.08); background: rgba(156, 43, 58, 0.7); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.note { text-align: center; color: var(--text-soft); margin-top: 32px; }

/* 須藤康花 */
.portrait { margin: 0; }
.portrait img { width: 100%; filter: grayscale(0.15) contrast(1.05); }
.portrait figcaption { margin-top: 10px; font-size: 14px; color: var(--text-soft); letter-spacing: 0.3em; }

.poem {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 2.4;
  letter-spacing: 0.16em;
}

/* 画 */
.gallery {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.gallery li { margin: 0; }
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: zoom-in;
  overflow: hidden;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter 0.6s;
  filter: brightness(0.9);
}
.gallery button:hover img,
.gallery button:focus-visible img { transform: scale(1.05); filter: brightness(1); }
.gallery p { margin: 12px 0 0; font-size: 16px; letter-spacing: 0.14em; }
.gallery p span { margin-left: 0.8em; color: var(--text-soft); font-size: 14px; }
/* 最初の 1 点は大きく */
@media (min-width: 860px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  /* 最初の 1 点は横いっぱいに、絵を切り取らず全体を見せる */
  .gallery li:first-child { grid-column: 1 / -1; }
  .gallery li:first-child img { aspect-ratio: 800 / 631; width: min(100%, calc(82vh * 800 / 631)); margin: 0 auto; }
}
.credit { text-align: right; color: var(--text-soft); font-size: 14px; margin-top: 24px; }

/* 出演者 */
.cast { display: grid; gap: clamp(48px, 8vw, 96px); }
.cast__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
@media (min-width: 860px) {
  .cast__item { grid-template-columns: 3fr 2fr; gap: 56px; }
  .cast__item:nth-child(even) img { order: 2; }
}
.cast__item img { width: 100%; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9); }
.cast__role { color: var(--gold); font-size: 14px; letter-spacing: 0.3em; margin-bottom: 4px; }
.cast__body h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: 0.24em; margin-bottom: 20px; }

/* 主題歌 */
.song-title { text-align: center; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: 0.14em; margin-bottom: 40px; }
.song-title span { display: block; font-size: 15px; color: var(--text-soft); letter-spacing: 0.3em; margin-top: 6px; }

/* 康花美術館 */
.museum { text-align: center; }
.museum__label { font-family: var(--font-en); font-style: italic; color: var(--gold); letter-spacing: 0.2em; margin-bottom: 4px; }
.museum h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: 0.24em; margin-bottom: 24px; }
.btn {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 40px;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.2em;
  transition: background 0.3s, color 0.3s;
}
.btn:hover { background: var(--gold); color: var(--bg); }

/* CRANE MOVIE について */
.about__text { max-width: 720px; margin: 0 auto; font-size: 18px; }

/* フッター */
.site-footer {
  padding: 64px 20px 40px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
}
.site-footer .brand { display: block; font-size: 22px; margin-bottom: 4px; }
.site-footer__tag { font-family: var(--font-en); font-style: italic; letter-spacing: 0.16em; }

/* ---------------------------------------------------------
   絵を大きく見る
   --------------------------------------------------------- */
.lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.94);
  color: var(--text);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img {
  max-width: 92vw;
  max-height: 84vh;
  width: auto; height: auto;
  margin: 0 auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}
.lightbox figcaption { margin-top: 14px; letter-spacing: 0.16em; }
.lightbox button {
  position: absolute;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 40px;
  line-height: 1;
  width: 56px; height: 56px;
  cursor: pointer;
  opacity: 0.7;
}
.lightbox button:hover { opacity: 1; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); font-size: 56px; }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); font-size: 56px; }

/* ---------------------------------------------------------
   スクロールに合わせて静かに現れる（対応ブラウザのみ）
   --------------------------------------------------------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
  }
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide, .hero__slide.is-active { animation: none; transition: none; }
  .hero__content, .hero__scroll::after { animation: none; }
}

.center { text-align: center; }

/* 下層ページではヘッダーを最初から不透明に */
.site-header.is-solid {
  background: rgba(11, 11, 12, 0.92);
  border-bottom: 1px solid var(--line);
}

/* ---------------------------------------------------------
   下層ページの見出し
   --------------------------------------------------------- */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 40px) clamp(24px, 8vw, 120px) clamp(48px, 8vh, 88px);
  background: #000 center / cover no-repeat;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2)),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 11, 12, 0) 45%);
}
.page-hero--plain { min-height: 40vh; background: var(--bg); }
.page-hero--plain::before { display: none; }
.page-hero__content { position: relative; animation: rise 1.6s 0.2s cubic-bezier(.2,.7,.2,1) both; }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: 0.2em; }

/* 過去作品 */
.films {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 6vw, 80px) clamp(24px, 4vw, 48px);
}
@media (min-width: 860px) { .films { grid-template-columns: 1fr 1fr; } }
.film h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: 0.14em; margin-top: 20px; }
.film__meta { color: var(--text-soft); font-size: 14px; letter-spacing: 0.2em; margin-top: 4px; }

/* 撮影風景 */
.photos {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2vw, 28px);
}
@media (min-width: 860px) { .photos { grid-template-columns: repeat(4, 1fr); } }
.photos img { width: 100%; aspect-ratio: 9 / 15; object-fit: cover; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.9); }

/* 写真と文章を左右に並べる（写真を少し大きめに） */
@media (min-width: 860px) {
  .split--photo { grid-template-columns: 6fr 5fr; gap: 64px; }
}
.split__photo { width: 100%; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9); }
