/* =========================================================
   KOMAME FILM — page styles
   ========================================================= */

.film-page {
  --film-ink: #171717;
  --film-soft: #5f5d59;
  --film-paper: #f8f6f1;
  --film-line: #d8d3ca;
  --film-accent: #1f4a2c;
  overflow-x: hidden;
  background: var(--film-paper);
  color: var(--film-ink);
}

.film-page main { overflow: hidden; }

.film-hero {
  display: grid;
  grid-template-columns: minmax(390px, 0.78fr) minmax(0, 1.22fr);
  min-height: calc(100svh - 84px);
  background: var(--film-paper);
}

.film-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(72px, 8vw, 132px) clamp(36px, 6vw, 96px);
}

.film-hero__copy::after {
  content: "";
  position: absolute;
  right: clamp(22px, 4vw, 64px);
  bottom: clamp(24px, 5vw, 72px);
  width: 72px;
  height: 1px;
  background: var(--film-line);
}

.film-hero__mark {
  width: 76px;
  height: auto;
  margin-bottom: 28px;
}

.film-hero__eyebrow {
  margin: 0 0 18px;
  color: var(--film-soft);
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.film-hero h1 {
  margin: 0 0 30px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(38px, 3.6vw, 52px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.055em;
}

.film-hero h1 span { white-space: nowrap; }

.film-hero__lead {
  max-width: 34em;
  margin: 0 0 38px;
  color: var(--film-soft);
  font-size: 13px;
  line-height: 2.15;
}

.film-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  width: min(100%, 340px);
  padding: 17px 20px;
  background: var(--film-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: background 0.2s ease;
}

.film-instagram:hover { background: var(--film-accent); }

.film-instagram__arrow {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  line-height: 1;
}

.film-hero__visual {
  position: relative;
  min-height: 650px;
  margin: 0;
  overflow: hidden;
  background: #e8e4dc;
}

.film-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 14%;
  background: linear-gradient(90deg, var(--film-paper), rgba(248, 246, 241, 0));
  pointer-events: none;
}

.film-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.film-hero__visual figcaption {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 20px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.82);
  color: #3e3d3a;
  font-family: "Cormorant Garamond", serif;
  font-size: 10px;
  letter-spacing: 0.16em;
}

/* ---------- Photo gallery ---------- */
.film-gallery {
  padding: clamp(84px, 9vw, 132px) 0;
  background: #fff;
}

.film-gallery__inner {
  width: min(1200px, calc(100% - clamp(40px, 8vw, 128px)));
  margin-inline: auto;
}

.film-gallery__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.film-gallery__eyebrow {
  margin: 0 0 8px;
  color: var(--film-soft);
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.film-gallery h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.film-gallery__controls {
  display: flex;
  gap: 10px;
}

.film-gallery__button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--film-line);
  color: var(--film-ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.film-gallery__button:hover:not(:disabled) {
  border-color: var(--film-ink);
  background: var(--film-ink);
  color: #fff;
}

.film-gallery__button:disabled {
  cursor: default;
  opacity: 0.28;
}

.film-gallery__track {
  display: flex;
  gap: clamp(18px, 2.4vw, 32px);
  overflow-x: auto;
  padding: 0 0 20px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: #a9a49c #edeae4;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.film-gallery__track:focus-visible {
  outline: 2px solid var(--film-accent);
  outline-offset: 6px;
}

.film-gallery__item {
  position: relative;
  flex: 0 0 min(72%, 800px);
  margin: 0;
  scroll-snap-align: start;
  overflow: hidden;
  background: #eeeae3;
}

.film-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.film-gallery__item figcaption {
  position: absolute;
  right: 14px;
  bottom: 13px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.84);
  color: #4b4945;
  font-family: "Cormorant Garamond", serif;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.film-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 42px;
  padding: 30px clamp(24px, 5vw, 72px);
  background: #171717;
  color: rgba(255, 255, 255, 0.64);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.film-footer__logo {
  display: flex;
  align-items: center;
  width: 160px;
  height: 42px;
}

.film-footer__logo img {
  width: 155px;
  height: auto;
  filter: brightness(0) invert(1);
}

.film-footer__links {
  display: flex;
  gap: 26px;
}

.film-footer__links a { color: rgba(255, 255, 255, 0.8); }
.film-footer__links a:hover { color: #fff; }
.film-footer p { margin: 0; }

@media (max-width: 860px) {
  .film-page.nav-open .site-nav {
    height: calc(100dvh - 72px);
    bottom: auto;
  }

  .film-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .film-hero__copy {
    min-height: 520px;
    padding: 80px clamp(24px, 8vw, 56px) 72px;
  }

  .film-hero__visual { min-height: 520px; }

  .film-hero__visual::after {
    inset: 0 0 auto;
    width: 100%;
    height: 16%;
    background: linear-gradient(180deg, var(--film-paper), rgba(248, 246, 241, 0));
  }
}

@media (max-width: 560px) {
  .film-hero__copy {
    min-height: auto;
    padding: 66px 24px 62px;
  }

  .film-hero__copy::after { display: none; }
  .film-hero__mark { width: 64px; margin-bottom: 22px; }

  .film-hero h1 {
    margin-bottom: 24px;
    font-size: clamp(32px, 9.2vw, 40px);
    line-height: 1.58;
    letter-spacing: 0.035em;
  }

  .film-hero__lead {
    margin-bottom: 30px;
    font-size: 12px;
    line-height: 2.05;
  }

  .film-instagram { width: 100%; }

  .film-hero__visual {
    min-height: 0;
  }

  .film-hero__visual img {
    height: auto;
    aspect-ratio: 4 / 5;
    object-position: center;
  }

  .film-hero__visual figcaption {
    right: 14px;
    bottom: 13px;
    font-size: 8px;
  }

  .film-gallery { padding: 70px 0 64px; }

  .film-gallery__inner {
    width: calc(100% - 40px);
  }

  .film-gallery__head {
    align-items: center;
    margin-bottom: 28px;
  }

  .film-gallery h2 { font-size: 34px; }

  .film-gallery__button {
    width: 42px;
    height: 42px;
  }

  .film-gallery__track { gap: 14px; }

  .film-gallery__item {
    flex-basis: 88%;
  }

  .film-footer {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 18px;
    padding: 34px 24px;
  }

  .film-footer__links { gap: 20px; }
}
