@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Cinzel+Decorative:wght@400;700;900&family=Cormorant+Garamond:wght@400;500;600;700&display=swap');






body {
  margin: 0;
  font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 35%, #000000 100%);
  /* ベースフォントをビューポートに応じて拡大縮小 */
  font-size: clamp(13px, 1.4vw, 18px);
}

/* 見出し中央寄せとサブタイトル */
h2,
h3,
.navbar-menu a {
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
}

h2 {
  text-align: center;
  margin-bottom: 2px;
  font-size: clamp(22px, 4.2vw, 48px);
  line-height: 1.05;
  position: relative;
  padding-top: 6px;
  padding-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  h2 {
    font-size: clamp(26px, 7vw, 34px);
    letter-spacing: 0.18em;
    line-height: 1.1;
  }

  .h2-subtitle {
    font-size: clamp(10px, 2.2vw, 12px);
    letter-spacing: 0.2em;
  }

  body {
    font-size: clamp(12px, 3.1vw, 14px);
  }
}

section h2::before,
section h2::after {
  content: none;
}

.h2-subtitle {
  display: block;
  text-align: center;
  margin-top: 2px;
  font-size: clamp(10px, 1vw, 14px);
  font-weight: 400;
  color: rgba(0, 0, 0, 0.95);
  opacity: 0.95;
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ナビゲーション */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  z-index: 999;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 70px;
}

/* ハンバーガーボタン */
.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  gap: 6px;
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 10001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.navbar-menu {
  position: fixed;
  inset: 0;
  /* fill viewport but hidden by height/opacity */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.95);
  gap: 20px;
  height: 0;
  overflow: hidden;
  transition: height 0.28s ease, opacity 0.28s ease;
  padding: 0;
  list-style: none;
  margin: 0;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
}

.navbar-menu.active {
  height: 100vh;
  padding: 60px 20px;
  opacity: 1;
  pointer-events: auto;
}

/* Menu links larger and spaced when overlay is active */
.navbar-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 1px;
  display: block;
  padding: 10px 0;
}

.navbar-menu li {
  list-style: none;
}

@media (min-width: 1024px) {
  .navbar-menu a {
    font-size: 22px;
  }
}

.navbar-menu li {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-menu li:last-child {
  border-bottom: none;
}

.navbar-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  text-transform: uppercase;
  display: block;
}

.navbar-menu a:hover {
  color: #ccc;
}

@media (max-width: 768px) {
  .navbar-menu a {
    font-size: 12px;
  }

  .navbar-logo {
    font-size: 18px;
  }
}

/* コンテンツの上余白調整 */
.content {
  position: relative;
  z-index: 1;
}




/* 黒い幕 */
.intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  z-index: 9999;
  animation: fadeOut 5s ease forwards;
}

/* コンテンツ全体 */
.content {
  opacity: 0;
  transform: translateY(20px);
  animation: floatIn 1.2s ease forwards;
  animation-delay: 0.8s;
}

/* 黒が消える */
@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* 浮き上がり */
@keyframes floatIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}







/* ヒーロー */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #ffffff;
}

.hero-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 768px) {
  .hero {
    height: auto;
  }

  .hero-img {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* ヒーロー画像は画像自身の縦横比を維持（高さは自動） */



/* セクション */
section {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
  position: relative;
  border-top: 1px solid rgba(192, 41, 15, 0.15);
}

section.intro-text {
  display: none;
}

.intro-banner {
  max-width: none;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  position: relative;
  height: 80vh;
  min-height: 520px;
  border-bottom: 1px solid rgba(192, 41, 15, 0.2);
  box-shadow: 0 4px 12px rgba(192, 41, 15, 0.08);
}

.intro-banner-img {
  width: 100%;
  height: 100%;
  display: block;
  max-width: 100%;
  object-fit: cover;
  object-position: center center;
}

.intro-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 40px 24px;
  padding-top: 80px;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
  border-radius: 0;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 100%;
}

.intro-text h2 {
  font-size: clamp(44px, 4vw, 80px);
  font-weight: bold;
  letter-spacing: 0.16em;
  margin-bottom: 200px;
  text-transform: uppercase;
}

.intro-text p {
  max-width: 100%;
  margin: 12px auto 0;
  line-height: 1.7;
  font-size: clamp(56px, 6vw, 90px);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* スマホ向け */
@media (max-width: 768px) {
  .intro-banner {
    height: 70vh;
  }

  .intro-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
  }

  .intro-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 18px 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
    color: #fff;
    text-align: center;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .intro-text h2 {
    font-size: clamp(18px, 5vw, 28px);
    line-height: 1.15;
    margin-bottom: 10px;
  }

  .intro-text p {
    font-size: clamp(12px, 3.6vw, 15px);
    line-height: 1.5;
    white-space: normal;
  }
}

/* スタッフ */
.staff {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 80px 20px;
  color: #ffffff;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('images/casthaikei.png') left top/cover no-repeat;
  background-attachment: scroll;
  background-position: left top;
}

.staff-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.staff-description {
  padding: 20px;
  display: flex;
  align-items: center;
}

.staff-description p {
  line-height: 1.55;
  font-size: clamp(13px, 1.2vw, 16px);
  margin: 0;
}

.staff-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: translateY(16px) scale(1.02);
  filter: brightness(0.4) contrast(1.1);
  box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
}

.staff-image:hover img {
  transform: translateY(0) scale(1.08);
  filter: brightness(1.1) contrast(1.1);
  box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0);
}

@media (max-width: 768px) {
  .staff-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .staff-description {
    padding: 6px 4px;
    align-items: flex-start;
  }

  .staff-description p {
    font-size: clamp(11px, 2.8vw, 13px);
    line-height: 1.45;
  }

  .staff-image img {
    width: clamp(140px, 32vw, 240px);
    max-width: 60%;
    height: auto;
    margin: 0 auto;
    display: block;
  }
}








/* キャスト */
.cast {
  max-width: none;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  position: relative;
  /* 背景に casthaikei.png を表示して、情報をその上に重ねる */
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('images/casthaikei.png') left top/cover no-repeat;
  background-attachment: scroll;
  background-position: left top;
  min-height: 420px;
  padding-top: 60px;
  padding-bottom: 60px;
  border-top: 1px solid rgba(192, 41, 15, 0.2);
  border-bottom: 1px solid rgba(192, 41, 15, 0.15);
}

/* HTML 内の img はフォールバックとして残すが、表示は背景優先で非表示にする */
.cast .cast-bg {
  display: none;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.cast>* {
  position: relative;
  z-index: 2;
}

.cast h2,
.cast .h2-subtitle {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}



.cast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.cast-card {
  position: relative;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.3s ease;
}

.cast-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 32px rgba(192, 41, 15, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2);
}

.cast-card h3,
.cast-card p {
  color: #fff;
}








.cast-card h3 {
  font-size: clamp(14px, 1.6vw, 20px);
  margin: 6px 0 0;
}

.cast-card p {
  font-size: clamp(12px, 1.2vw, 16px);
  line-height: 1.2;
  margin: 2px 0 0;
}

.cast-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 18px;

  border: 1px solid #c0290f;
  color: #fff;
  font-size: 13px;
  letter-spacing: 2px;

  transition: .3s;
}






.cast-card img {
  width: 70%;
  max-width: 240px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px;
  transform: translateY(12px) scale(1.0);
  filter: brightness(0.4) contrast(1.1);
  box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.cast-card:hover img {
  transform: translateY(0) scale(1.08);
  filter: brightness(1.1) contrast(1.1);
  box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0);
}











.cast-card:hover .cast-btn {

  background: #c0290f;

  color: #fff;
}











/* キャストの見出し・本文もレスポンシブに */
.cast h2 {
  font-size: clamp(18px, 2.4vw, 28px);
}

.cast .h2-subtitle {
  font-size: clamp(12px, 1.2vw, 14px);
}

.cast-card h3 {
  font-size: clamp(14px, 1.6vw, 20px);
  margin-top: 8px;
}

.cast-card p {
  font-size: clamp(12px, 1.2vw, 16px);
  line-height: 1.5;
}

/* ナビメニュー項目を画面に応じて大きくする */
.navbar-menu a {
  font-size: clamp(16px, 2.4vw, 22px);
}


@media (max-width: 768px) {

  .cast-grid {
    grid-template-columns: 1fr;
  }

}

/* 相関図 */
.relation-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 60px;
}

.relation-card {
  position: relative;
  max-width: 900px;
  margin: 32px auto 0;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.relation-card img {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
  transform: translateY(12px) scale(1.0);
  filter: brightness(0.4) contrast(1.1);
  box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.relation-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(192, 41, 15, 0.25), 0 8px 16px rgba(0, 0, 0, 0.18);
}

.relation-card:hover img {
  transform: translateY(0) scale(1.03);
  filter: brightness(1.05) contrast(1.08);
  box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0);
}

@media (max-width: 768px) {
  .relation-section {
    padding: 56px 16px 40px;
  }

  .relation-card {
    margin-top: 24px;
  }
}

/* staff: mobile — テキスト左、画像右 に配置 */
@media (max-width: 768px) {
  .staff-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
  }

  /* スクロールを無くす：正方形制約を外し高さを自動にする */
  .staff-description {
    flex: 1 1 50%;
    padding: 8px 8px;
    box-sizing: border-box;
    display: block;
    overflow: visible;
  }

  .staff-description p {
    font-size: clamp(12px, 3.2vw, 14px);
    line-height: 1.5;
    margin: 0;
  }

  .staff-image {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-sizing: border-box;
  }

  .staff-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-width: none;
  }
}




/*ニュース*/
.news-title {
  font-size: 24px;
  margin-bottom: 16px;
}

.news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* スマホは1列 */
@media (max-width: 768px) {
  .news {
    grid-template-columns: repeat(2, 1fr);
  }
}

.news-item {
  background: #c0290f6f;
  padding: 10px;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;

  font-size: clamp(12px, 1vw, 16px);
  line-height: 1.6;
  text-align: left;

  cursor: pointer;
  transition: transform 0.4s ease,
    box-shadow 0.4s ease,
    background-color 0.3s ease,
    color 0.3s ease;

  border-radius: 4px;
}

.news-item h3 {
  font-size: clamp(14px, 1.2vw, 18px);
  margin: 0 0 8px;
  line-height: 1.3;
}

.news-item p {
  font-size: clamp(10px, 0.9vw, 13px);
}

.news-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(192, 41, 15, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
  background: #c0290f;
  color: #ffffff;
}



/* フェード */
.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: 1s;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

.cast.fade {
  opacity: 0;
  transform: none;
}

.cast.fade.show {
  opacity: 1;
  transform: none;
}

.cast.fade>* {
  transform: translateY(30px);
  transition: transform 1s;
}

.cast.fade.show>* {
  transform: translateY(0);
}

/* haikei の直下に置く画像を幅揃えで表示 */
.haikei-sibling {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

/* デスクトップ表示で画像を大きくする */
@media (min-width: 1024px) {
  .cast-card img {
    width: clamp(220px, 16vw, 420px);
    max-width: none;
  }

  .staff-image img {
    width: clamp(320px, 24vw, 640px);
  }


}

/* ニュースセクションの区切り装飾 */
.news-section {
  border-top: 1px solid rgba(192, 41, 15, 0.2) !important;
  border-bottom: 1px solid rgba(192, 41, 15, 0.15) !important;
}







#typing {
  margin-top: 20px;
  white-space: pre-wrap;
  line-height: 2;
  min-height: 30em;
  /* あらかじめ高さを確保 */
  width: 80%;
  margin: 0 auto;
  font-size: clamp(12px, 1.2vw, 16px);
  text-align: left;
}

/* パソコン */
@media (min-width: 769px) {
  #typing {
    column-count: 2;
    /* 2列 */
    column-gap: 50px;
    /* 列の間隔 */
    text-align: justify;
    /* 両端揃え（任意） */
    font-size: 15px;
    line-height: 2;
  }
}

/* スマホ */
@media (max-width: 768px) {
  #typing {
    column-count: 1;
    font-size: 11px;
    line-height: 1.45;
    width: 92%;
    min-height: 0;
    margin-top: 8px;
  }
}


#typing::after {
  content: "|";
  animation: blink 1s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}














.modal {
  display: none;

  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, .8);

  z-index: 99999;

  justify-content: center;
  align-items: center;
}

.modal-content {

  width: min(700px, 90%);

  background: #111;

  color: white;

  padding: 40px;

  border: 1px solid #8b0000;

  text-align: center;

  position: relative;

  animation: fade .3s;
}

.modal-content img {

  width: 250px;

  max-width: 100%;

  margin-bottom: 20px;
}

.close {

  position: absolute;

  right: 20px;

  top: 15px;

  font-size: 35px;

  cursor: pointer;
}

@keyframes fade {

  from {
    opacity: 0;
    transform: scale(.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }

}









/* ===========================
   Loading
=========================== */

#loading {

  position: fixed;

  inset: 0;

  background: #000;

  display: flex;

  justify-content: center;

  align-items: center;

  z-index: 999999;

  transition: opacity 1s ease;

}

.loading-content {

  text-align: center;

  color: white;

}

.loading-small {

  font-size: 18px;

  letter-spacing: 5px;

  opacity: .7;

}

.loading-text {

  margin-top: 20px;

  letter-spacing: 4px;

}

.loading-bar {

  width: 300px;

  height: 4px;

  background: #333;

  margin: 30px auto;

  overflow: hidden;

}

.loading-progress {

  width: 0;

  height: 100%;

  background: #c0290f;

  animation: loadingBar 3s forwards;

}

#movieTitle {

  margin-top: 40px;

  font-size: 60px;

  letter-spacing: 10px;

  opacity: 0;

  animation: titleFade .8s forwards;

  animation-delay: 3s;

}

@keyframes loadingBar {

  to {

    width: 100%;

  }

}

@keyframes titleFade {

  from {

    opacity: 0;

    transform: translateY(20px);

  }

  to {

    opacity: 1;

    transform: translateY(0);

  }

}









.scene-gallery {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-top: none;
  border-bottom: none;
}

.gallery-track {
  display: flex;
  width: max-content;
  animation: scrollGallery 35s linear infinite;
  gap: 0;
  line-height: 0;
  align-items: stretch;
}

.gallery-track img {
  width: 350px;
  height: 220px;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  filter: brightness(.75);
  transition: .3s;
}

.gallery-track img:hover {

  filter: brightness(1);

  transform: scale(1.05);

}

@keyframes scrollGallery {

  from {

    transform: translateX(0);

  }

  to {

    transform: translateX(-50%);

  }

}




.gallery-track:hover {

  animation-play-state: paused;

}



@media(max-width:768px) {
  .gallery-track img {
    width: 220px;
    height: 140px;
  }
}