/* =========
  Base
========= */
:root{
  --bg: #0f1210;
  --paper: #fbfaf6;
  --paper2: #f3f1ea;
  --text: #131614;
  --muted: rgba(19,22,20,.72);
  --line: rgba(19,22,20,.14);

  --invertText: rgba(255,255,255,.92);
  --invertMuted: rgba(255,255,255,.72);

  --accent: #2a4b3a;  
  --shadow: 0 18px 40px rgba(0,0,0,.14);

  --container: 1080px;
  --radius: 18px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.85;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover{ text-decoration-thickness: .14em; }

.skip-link{
  position: absolute; left: -9999px; top: 8px;
  background: #fff; color: #000; padding: 10px 12px; border-radius: 10px;
}
.skip-link:focus{ left: 8px; z-index: 9999; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* =========
  Header / Nav
========= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(251,250,246,.82);
  border-bottom: 1px solid var(--line);
}
.nav-wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}
.brand__link{ display: inline-flex; flex-direction: column; gap: 2px; text-decoration: none; }
.brand__jp{ font-size: 15px; letter-spacing: .08em; }
.brand__en{ font-size: 11px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }

.site-nav{ display: flex; align-items: center; gap: 12px; }
.nav-toggle{
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 10px;
  border-radius: 999px;
  letter-spacing: .08em;
}
.nav-menu{
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link{
  display: inline-block;
  padding: 8px 8px;
  color: rgba(19,22,20,.86);
  text-decoration: none;
  letter-spacing: .06em;
  font-size: 13px;
}
.nav-link:hover{ color: var(--accent); }
.nav-link.is-active{ color: var(--accent); }

/* =========
  Hero
========= */
.hero{
  position: relative;
  min-height: 86vh;
  background-color: #101310;
  /* ★ここを差し替え：ベンチ＋木の写真を hero.jpg として保存推奨 */
  background-image: url("../images/image_1.jpg");
  background-size: cover;
  background-position: center top;
  color: var(--invertText);
}
.hero__overlay{
  position: absolute; inset: 0;
  /* 文字を読みやすくするための薄い暗幕（国宝っぽい上品さ） */
  background:
    radial-gradient(1200px 700px at 12% 35%, rgba(0,0,0,.55), rgba(0,0,0,.20) 58%, rgba(0,0,0,.35)),
    linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.18) 56%, rgba(0,0,0,.10));
}
.hero__inner{
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  padding: 110px 0 56px;
}
.hero__text{
  max-width: 560px;
}
.hero__eyebrow{
  margin: 0 0 10px;
  letter-spacing: .24em;
  font-size: 12px;
  color: var(--invertMuted);
}
.hero__title{
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: .06em;
  font-weight: 600;
}
.hero__en{
  margin: 10px 0 0;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--invertMuted);
}
.hero__subtitle{
  margin: 10px 0 0;
  font-size: 13px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.70);
}
.hero__release{
  margin: 18px 0 0;
  font-size: 13px;
  letter-spacing: .10em;
  color: rgba(255,255,255,.86);
}
.hero__cta{
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  text-decoration: none;
  letter-spacing: .08em;
  font-size: 13px;
}
.btn:hover{ background: rgba(255,255,255,.16); }
.btn--ghost{
  background: transparent;
}

.hero__scroll{
  position: absolute;
  right: 0;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.70);
}
.hero__scrollText{ font-size: 12px; letter-spacing: .18em; }
.hero__scrollLine{
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,.38);
  transform-origin: left center;
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine{
  0%{ transform: scaleX(.3); opacity: .4; }
  50%{ transform: scaleX(1); opacity: .9; }
  100%{ transform: scaleX(.3); opacity: .4; }
}

/* =========
  Sections
========= */
.section{
  padding: 72px 0;
}
.section--alt{
  background: var(--paper2);
  border-top: 1px solid rgba(0,0,0,.04);
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.section__head{
  margin-bottom: 26px;
}
.section__title{
  margin: 0;
  font-size: 24px;
  letter-spacing: .10em;
  font-weight: 600;
}
.section__lead{
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 820px;
}

.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card{
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: var(--shadow);
}
.card__title{
  margin: 0 0 10px;
  letter-spacing: .08em;
  font-size: 14px;
  color: rgba(19,22,20,.86);
}
.card__text{
  margin: 0;
  color: rgba(19,22,20,.84);
}

.small{ font-size: 12px; }
.muted{ color: var(--muted); }

/* =========
  News
========= */
.news{
  display: grid;
  gap: 14px;
}
.news-item{
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.news-item:first-child{ border-top: 0; }
.news-date{
  display: inline-block;
  font-size: 12px;
  letter-spacing: .10em;
  color: var(--muted);
}
.news-title{
  margin: 6px 0 0;
  font-size: 16px;
  letter-spacing: .04em;
  font-weight: 600;
}
.news-body{
  margin: 8px 0 0;
  color: rgba(19,22,20,.82);
}
.news-item--minor .news-title{ font-size: 14px; }

.more{
  margin-top: 18px;
}
.more-btn{
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px 14px;
  border-radius: 999px;
  letter-spacing: .08em;
  cursor: pointer;
}
.more-btn:hover{ border-color: rgba(0,0,0,.22); }
.more-panel{ margin-top: 12px; }

/* =========
  Story
========= */
.story{
  max-width: 880px;
}
.story p{ margin: 0 0 14px; }
.story-note{
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

/* =========
  Credits
========= */
.credits{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.credits__title{
  margin: 0 0 12px;
  letter-spacing: .10em;
  font-size: 14px;
  color: rgba(19,22,20,.86);
}
.credits__list{
  margin: 0;
}
.credits__row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.credits__row:first-child{ border-top: 0; }
.credits__row dt{
  font-weight: 600;
  letter-spacing: .04em;
}
.credits__row dd{
  margin: 0;
  color: rgba(19,22,20,.78);
}

/* =========
  Trailer
========= */
.media-box{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.55);
  box-shadow: var(--shadow);
}
.media-placeholder{
  padding: 36px 18px;
  text-align: center;
  color: rgba(19,22,20,.82);
}

/* =========
  Gallery
========= */
.gallery{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.thumb{
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
}
.thumb img{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .35s ease;
}
.thumb:hover img{ transform: scale(1.03); }

/* =========
  Footer
========= */
.site-footer{
  padding: 28px 0;
  background: #0f1210;
  color: rgba(255,255,255,.80);
}
.footer__inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__credit{
  margin: 0;
  letter-spacing: .06em;
  font-size: 12px;
}
.to-top{
  color: rgba(255,255,255,.78);
  text-decoration: none;
  letter-spacing: .10em;
  font-size: 12px;
}
.to-top:hover{ color: rgba(255,255,255,.92); }

/* =========
  Lightbox（stable）
========= */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.84);
  display: none;              /* ← ここがポイント */
  place-items: center;
  padding: 22px;
  z-index: 1000;
}

.lightbox.is-open{
  display: grid;              /* ← 開いた時だけ表示 */
}

.lightbox__img{
  max-width: min(980px, 92vw);
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0,0,0,.45);
}

.lightbox__close{
  position: fixed;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  font-size: 22px;
  cursor: pointer;
  z-index: 1001;              /* ← クリック奪われ防止 */
  pointer-events: auto;
}
.lightbox__close:hover{ background: rgba(255,255,255,.18); }
/* =========
  Responsive
========= */
@media (max-width: 980px){
  .nav-toggle{ display: inline-flex; }
  .nav-menu{
    position: absolute;
    right: 20px;
    top: 58px;
    width: min(320px, calc(100vw - 40px));
    padding: 10px;
    border-radius: 14px;
    background: rgba(251,250,246,.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    display: none;
  }
  .nav-menu.is-open{ display: flex; }
  .nav-link{ padding: 10px 10px; }

  .grid-2{ grid-template-columns: 1fr; }
  .credits{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: repeat(2, 1fr); }
  .hero__scroll{ display: none; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .hero__scrollLine{ animation: none; }
  .thumb img{ transition: none; }
}
.lightbox[hidden] { display: none !important; }
/* =========
  Cast grid
========= */
.cast-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cast-card{
  margin: 0;
}

.cast-card img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

.cast-meta{
  padding-top: 10px;
}

.cast-name{
  margin: 0;
  font-weight: 600;
  letter-spacing: .04em;
}

.cast-role{
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(19,22,20,.72);
}

/* レスポンシブ */
@media (max-width: 980px){
  .cast-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .cast-grid{ grid-template-columns: 1fr; }
}/* =========
  Cast layout（featured + small grid）
========= */

/* 主要2人：大きく見せる */
.cast-feature{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0 26px;
}

.cast-feature__card{
  margin: 0;
}

.cast-feature__card img{
  width: 100%;
  aspect-ratio: 16 / 9;     /* “画面いっぱい感”を出しやすい比率 */
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 44px rgba(0,0,0,.14);
}

/* 既存の cast-meta / cast-name / cast-role はそのまま使う前提 */
.cast-meta{ padding-top: 10px; }
.cast-name{ margin: 0; font-weight: 600; letter-spacing: .04em; }
.cast-role{ margin: 4px 0 0; font-size: 12px; letter-spacing: .08em; color: rgba(19,22,20,.72); }

/* その他キャスト：小さめの整列グリッド */
.cast-grid--small{
  grid-template-columns: repeat(4, 1fr); /* PCで小さめ感 */
  gap: 12px;
  margin-top: 12px;
}

/* 小さめカードの画像は正方形 */
.cast-grid--small .cast-card img{
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

/* スタッフ見出しは少し間をあける */
.credits__title--staff{
  margin-top: 28px;
}

/* レスポンシブ */
@media (max-width: 980px){
  .cast-feature{ grid-template-columns: 1fr; }
  .cast-grid--small{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px){
  .cast-grid--small{ grid-template-columns: 1fr; }
}

/* =========
  Lightbox（stable / for CSS background hero）
========= */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.84);
  display: none;                 /* 初期は必ず非表示（×出っぱなし防止） */
  place-items: center;
  padding: 22px;
  z-index: 1000;
}

.lightbox.is-open{
  display: grid;
}

.lightbox__panel{
  width: min(980px, 92vw);
  display: grid;
  gap: 12px;
}

.lightbox__img{
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0,0,0,.45);
  background: rgba(0,0,0,.22);
}

.lightbox__caption{
  color: rgba(255,255,255,.86);
  letter-spacing: .04em;
}

.lightbox__title{
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.lightbox__text{
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,.70);
  line-height: 1.7;
}

.lightbox__close{
  position: fixed;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  font-size: 22px;
  cursor: pointer;
  z-index: 1001;
  pointer-events: auto;
}
.lightbox__close:hover{ background: rgba(255,255,255,.18); }

/* クリックできることが分かるように（好みで） */
.hero{ cursor: zoom-in; }