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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol, pre, fieldset, legend, button, input, select, textarea {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img, picture, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ========================================
   Design tokens（配色・フォントサイズ）
   ======================================== */
:root {
  /* フォント */
  --font-family-base: "Shippori Mincho", serif;

  /* 配色 */
  --color-accent: #D5C500;
  --color-base-light: #fff;
  --color-base-dark: #060B05;

  /* フォントサイズ（clamp: 最小 可変 最大）SP〜PCで可変 */
  --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --font-size-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --font-size-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --font-size-md: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  --font-size-lg: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --font-size-xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --font-size-2xl: clamp(1.75rem, 1.4rem + 1.75vw, 2.5rem);
  --font-size-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);

  /* コンテンツ幅 */
  --content-max-width: 1280px;
}

/* ========================================
   Base
   ======================================== */
body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  color: var(--color-base-dark);
  background-color: var(--color-base-dark);
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: var(--color-base-dark);
  opacity: 1;
  transition: opacity 0.5s ease-out;
  pointer-events: none;
}

.page-transition.is-hidden {
  opacity: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
}

body.page-top .header {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

body.page-top.fv-reveal .header {
  opacity: 1;
  transition-delay: 1s;
}

.header__banner {
  overflow: hidden;
  padding: 0.25em 0;
  background-color: var(--color-accent);
}

.header__banner-inner {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: header-banner-loop 20s linear infinite;
}

.header__banner-inner .tx-date {
  height: clamp(0.875rem, 1vw + 0.5rem, 1rem);
  width: auto;
  margin-right: 2em;
  flex-shrink: 0;
}

@keyframes header-banner-loop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-12.5%); }
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 2vw + 0.5rem, 2rem);
}

.header__burger {
  display: none;
}

.header__nav-list {
  display: flex;
}

.header__nav-link {
  display: block;
  padding: 0.75em 1.25em;
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  color: var(--color-base-light);
  transition: color 0.3s ease-out;
}

.header__nav-link:hover {
  color: var(--color-accent);
}

.header__sns {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw + 0.25rem, 1.25rem);
}

.header__sns-link {
  display: block;
  width: clamp(1.25rem, 1.5vw + 0.75rem, 1.5rem);
}

.header__sns-link img {
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .header__bar {
    position: fixed;
    inset: 0;
    z-index: 9001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background-color: rgba(6, 11, 5, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out, background-color 0.4s ease-out, backdrop-filter 0.4s ease-out, -webkit-backdrop-filter 0.4s ease-out;
  }

  .header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    position: fixed;
    top: clamp(1.75rem, 3vw, 2.25rem);
    right: clamp(0.75rem, 2vw, 1.25rem);
    z-index: 9002;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
  }

  .header__burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-base-light);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  }

  .header.is-open .header__burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .header.is-open .header__burger-line:nth-child(2) {
    opacity: 0;
  }

  .header.is-open .header__burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header.is-open .header__bar {
    opacity: 1;
    visibility: visible;
    background-color: rgba(6, 11, 5, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .header__nav-list {
    flex-direction: column;
    align-items: center;
  }

  .header__nav-link {
    font-size: var(--font-size-lg);
    padding: 1em 2em;
    letter-spacing: 0.2em;
  }

  .header__sns {
    gap: 1.5rem;
  }

  .header__sns-link {
    width: 1.5rem;
  }
}

/* ========================================
   Loader
   ======================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-base-dark);
  mask: url(#loader-mask);
  -webkit-mask: url(#loader-mask);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  transition: opacity 0.6s ease-out;
}

.loader.is-out {
  pointer-events: none;
}

.loader.is-fading {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.loader.is-hidden {
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s;
}


/* ========================================
   FV（First View）
   ======================================== */
.fv__title,
.fv__bottom {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

body.fv-reveal .fv__title {
  opacity: 1;
  transition-delay: 0s;
}

body.fv-reveal .fv__bottom {
  opacity: 1;
  transition-delay: 0.5s;
}


.fv {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-base-dark);
  color: var(--color-base-light);
  overflow: hidden;
}



/* ========================================
   NEWS
   ======================================== */
.news {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw + 2rem, 6rem) clamp(1rem, 4vw, 2rem);
  color: var(--color-base-light);
}

.news__inner {
  max-width: 48rem;
  margin: 0 auto;
}

.news__title {
  margin: 0 0 clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
  font-size: var(--font-size-sm);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.news__list {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.news__item {
  display: flex;
  align-items: baseline;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 1.25em 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.news__date {
  flex-shrink: 0;
  font-size: var(--font-size-xs);
  letter-spacing: 0.05em;
}

.news__text {
  font-size: var(--font-size-sm);
}

@media (max-width: 767px) {
  .news__item {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ========================================
   Trailer
   ======================================== */
.trailer {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw + 2rem, 6rem) clamp(1rem, 4vw, 2rem);
  color: var(--color-base-light);
}

.trailer__inner {
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
}

.trailer__title {
  margin: 0 0 clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
  font-size: var(--font-size-sm);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.trailer__embed {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}

.trailer__embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.bg-image {
  background-image: url("../images/bg-image.jpg");
  background-size: auto 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.fv__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  width: 100%;
  padding: clamp(2rem, 3vw + 1rem, 3.5rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 5vw + 1rem, 3rem);
  text-align: center;
  transition: filter 0.3s ease-out;
}

@media (max-width: 767px) {
  .fv__body {
    padding-top: clamp(2rem, 6vw + 1rem, 3rem);
  }
}

.fv__title {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
}

.fv__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fv__title img {
  width: min(85vw, clamp(16rem, 42vw, 32rem));
  height: auto;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .fv__title img {
    width: min(98vw, 36rem);
  }
}

.fv__director {
  margin-bottom: clamp(1.5rem, 3vw + 1rem, 2.5rem);
}

.fv__director .tx-name {
  width: clamp(4.5rem, 11vw + 1.5rem, 7.5rem);
  height: auto;
}

.fv__date {
  margin-bottom: clamp(1.5rem, 3vw + 1rem, 2.5rem);
}

.fv__date .tx-date {
  width: clamp(16rem, 40vw + 5rem, 28rem);
  height: auto;
}

.fv__logo {
  margin-bottom: 0;
}

.fv__logo img {
  width: clamp(3rem, 7vw + 1.5rem, 4.5rem);
  height: auto;
  margin: 0 auto;
}

/* ========================================
   CAST
   ======================================== */
.cast {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw + 2rem, 6rem) clamp(1rem, 4vw, 2rem);
  color: var(--color-base-light);
}

.cast__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.cast__title {
  margin: 0 0 clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
  font-size: var(--font-size-sm);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.cast__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 40rem;
  margin: 0 auto;
}

.cast__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25em 1em;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cast__role {
  font-size: var(--font-size-xs);
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.cast__name {
  font-size: var(--font-size-md);
  letter-spacing: 0.05em;
}

.cast__toggle {
  position: absolute;
  right: 0.75em;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 1.25rem;
  color: var(--color-base-light);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background-color 0.3s ease-out;
  line-height: 1;
}

.cast__toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ========================================
   Modal
   ======================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(6, 11, 5, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: background-color 0.4s ease-out, backdrop-filter 0.4s ease-out, -webkit-backdrop-filter 0.4s ease-out;
}

.modal.is-open .modal__overlay {
  background-color: rgba(6, 11, 5, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 36rem;
  max-height: 80vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background-color: var(--color-base-dark);
  color: var(--color-base-light);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  color: var(--color-base-light);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease-out;
}

.modal__close:hover {
  color: var(--color-accent);
}

.modal__content .cast__role {
  display: block;
  margin-bottom: 0.25em;
}

.modal__content .cast__name {
  display: block;
  margin-bottom: 1em;
}

.modal__body p {
  font-size: var(--font-size-xs);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.modal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.75em;
}

.modal__links a {
  font-size: var(--font-size-xs);
  color: var(--color-base-light);
  text-decoration: underline;
  transition: color 0.3s ease-out;
}

.modal__links a:hover {
  color: var(--color-accent);
}

@media (max-width: 767px) {
  .cast__grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   THEATER
   ======================================== */
.theater {
  min-height: calc(100vh - 3rem);
  min-height: calc(100dvh - 3rem);
  padding: clamp(3rem, 8vw + 2rem, 6rem) clamp(1rem, 4vw, 2rem);
  background-color: var(--color-base-dark);
  color: var(--color-base-light);
}

.theater__inner {
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
}

.theater__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw + 1rem, 3rem);
}

.theater__title {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.theater__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
}

.theater__tab {
  padding: 0.5em 1em;
  font-family: var(--font-family-base);
  font-size: var(--font-size-sm);
  color: var(--color-base-light);
  background-color: transparent;
  border: 1px solid var(--color-base-light);
  cursor: pointer;
  transition: background-color 0.3s ease-out, color 0.3s ease-out;
}

.theater__tab.is-active {
  color: var(--color-base-dark);
  background-color: var(--color-base-light);
}

.theater__table-wrap {
  max-width: 100%;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

@media (min-width: 768px) {
  .theater__table-wrap {
    overflow-x: auto;
  }
}

.theater__table {
  width: 100%;
  font-size: var(--font-size-sm);
}

@media (min-width: 768px) {
  .theater__table {
    min-width: 32rem;
  }
}

.theater__table th,
.theater__table td {
  padding: 1.25em 1em;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  word-break: break-all;
}

@media (min-width: 768px) {
  .theater__table th,
  .theater__table td {
    word-break: normal;
  }
}

@media (max-width: 767px) {
  .theater__table th,
  .theater__table td {
    padding: 0.75em 0.5em;
    font-size: var(--font-size-xs);
  }
}

.theater__table th {
  font-weight: 500;
}

.theater__table tbody tr:last-child td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.theater__table a {
  color: var(--color-base-light);
  text-decoration: underline;
}

.theater__table a:hover {
  color: var(--color-accent);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  position: relative;
  z-index: 1;
  padding: clamp(1rem, 3vw + 0.5rem, 1.5rem) clamp(1rem, 4vw, 2rem);
  background-color: var(--color-accent);
  color: var(--color-base-dark);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.footer__copy {
  margin: 0;
  font-size: var(--font-size-xs);
}

.footer__sns {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw + 0.5rem, 1.25rem);
}

.footer__sns-link {
  display: block;
  width: clamp(1.25rem, 1.5vw + 0.75rem, 1.5rem);
  height: auto;
}

.footer__sns-link img {
  width: 100%;
  height: auto;
  filter: brightness(0);
}
