/* ========================================
   プロジェクト・ヘイル・メアリー × ISIEX コラボLP
   CSS Stylesheet
   ======================================== */

/* ----------------------------------------
   1. CSS Variables & Base Reset
   ---------------------------------------- */
:root {
  /* Colors */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-purple: #8d83bd;
  --color-gray: #999999;
  
  /* Typography */
  --font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  
  /* Sizes */
  --max-width: 1200px;
  --kv-max-width: 83.33vw; /* 画面幅の12分の10 (10/12 = 83.33%) */
  --content-max-width: 800px;
  
  /* Spacing */
  --section-padding: 80px 20px;
  --content-padding: 0 20px;
  
  /* Transitions */
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-black);
  color: var(--color-white);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

/* ----------------------------------------
   2. Page Load Animation
   ---------------------------------------- */
.page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-black);
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1s ease;
}

.page-overlay.fade-out {
  opacity: 0;
}

body.loaded .page-overlay {
  display: none;
}

/* ----------------------------------------
   3. Fade-in Animation for Sections
   ---------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ----------------------------------------
   4. Layout Container
   ---------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--content-padding);
}

.section {
  padding: var(--section-padding);
}

/* ----------------------------------------
   5. Key Visual Section
   ---------------------------------------- */
.kv-section {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-color: var(--color-black);
  padding: 0;
}

.kv-wrapper {
  position: relative;
  width: 100%;
  max-width: var(--kv-max-width);
  margin: 0 auto;
}

.kv-image {
  width: 100%;
  height: auto;
  display: block;
}

/* KV side shadows for visual effect */
.kv-wrapper::before,
.kv-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.kv-wrapper::before {
  left: -100px;
  background: linear-gradient(to right, var(--color-black), transparent);
}

.kv-wrapper::after {
  right: -100px;
  background: linear-gradient(to left, var(--color-black), transparent);
}

/* KV Overlay Elements */
.kv-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 主演俳優名 - top01.svg（中央揃え、KV幅よりやや小さく） */
.kv-actor-name {
  position: absolute;
  top: 6%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 70%;
  max-width: none; /* KV幅に追従 */
  z-index: 10;
  display: block;
}

/* 監督情報 - top02.svg */
.kv-director-info {
  position: absolute;
  top: 12%;
  right: 5%;
  width: 35%;
  max-width: none; /* KV幅に追従 */
  z-index: 10;
}

/* キャッチコピー - top03.svg（中央揃え、やや下寄り） */
.kv-catchcopy {
  position: absolute;
  top: 75%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 40%;
  max-width: none; /* KV幅に追従 */
  z-index: 10;
  display: block;
}

/* 展示会ロゴ - ISIEX.png（位置固定、フェードインのみ、パララックス無効） */
.kv-exhibition-logo {
  position: absolute;
  bottom: 5%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 60%;
  max-width: none; /* KV幅に追従 */
  z-index: 10;
  display: block;
  transform: none !important;
}

/* スクロールインジケーター */
.scroll-indicator {
  position: absolute;
  bottom: 10%;
  left: 0;    
  right: 0;         
  width: 100%;      
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.scroll-indicator.visible {
  opacity: 1;
}

.scroll-indicator-text {
  color: var(--color-white);
  font-size: 10px;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.scroll-indicator-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: rotate(45deg);
  animation: scrollArrow 1.5s infinite;
  opacity: 0.7;
}

@keyframes scrollArrow {
  0% {
    opacity: 0.3;
    transform: rotate(45deg) translate(0, 0);
  }
  50% {
    opacity: 1;
    transform: rotate(45deg) translate(5px, 5px);
  }
  100% {
    opacity: 0.3;
    transform: rotate(45deg) translate(0, 0);
  }
}

/* KV要素の遅延表示アニメーション */
.kv-delayed-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.kv-delayed-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ISIEX.pngは位置固定のためtransformをリセット */
.kv-exhibition-logo.kv-delayed-fade.visible {
  transform: none;
}

/* ----------------------------------------
   6. Event Information Section
   ---------------------------------------- */
.event-section {
  padding: 20px 20px;
}

.event-container {
  max-width: var(--content-max-width); 
  margin: 0 auto;
  padding: 0 20px;
}

/* イベントグループ（ラベル + 情報） */
.event-group {
  margin-bottom: 40px;
}

.event-group:last-child {
  margin-bottom: 0;
}

/* リアル/オンライン ラベル（線枠・透過背景・白文字） */
.event-label-header {
  display: inline-block;
  border: 2px solid var(--color-purple);
  background: transparent;
  color: var(--color-white);
  padding: 4px 30px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* 情報エリア（枠なし） */
.event-info {
  padding-left: 10px;
}

.event-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.event-row:last-child {
  margin-bottom: 0;
}

.event-label {
  background-color: var(--color-purple);
  color: var(--color-white);
  padding: 8px 20px;
  font-size: 16px;
  font-weight: 700;
  margin-right: 25px;
  min-width: 70px;
  text-align: center;
}

.event-value {
  color: var(--color-white);
  font-weight: 700;
  font-size: 22px;
}

.event-value .date-large {
  font-size: 36px;
  font-weight: 900;
}

.event-value .date-unit {
  font-size: 18px;
  font-weight: 700;
}

.event-value .date-year {
  font-size: 20px;
}

.event-value .date-time {
  font-size: 20px;
  margin-left: 10px;
}

/* ----------------------------------------
   7. Collaboration Section
   ---------------------------------------- */
.collab-section {
  padding: 20px 20px;
}

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

.collab-heading {
  margin-bottom: 30px;
  text-align: center;
}

.collab-heading img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.collab-text {
  color: var(--color-white);
  font-size: 16px;
  line-height: 2;
  margin-bottom: 10px;
  text-align: left;
}

.collab-content {
  position: relative;
  width: 100%;
}

.collab-cta {
  width: 100%;
  margin-top: 20px;
}

.collab-prize {
  width: 33.33%;
  margin-left: auto;
  margin-top: -170px;
  margin-bottom: 20px;
}

.collab-prize img {
  width: 100%;
  max-width: none;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

/* ----------------------------------------
   8. CTA Button
   ---------------------------------------- */
.btn-cta {
  display: inline-block;
  background-color: var(--color-white);
  color: var(--color-black);
  padding: 14px 60px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  border: 2px solid var(--color-white);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  min-width: 350px;
}

.btn-cta:hover {
  background-color: var(--color-black);
  color: var(--color-white);
  box-shadow: 0 0 20px rgba(141, 131, 189, 0.5);
}

.btn-cta-small {
  padding: 12px 40px;
  font-size: 16px;
  min-width: 280px;
  border-radius: 6px;
}

/* ----------------------------------------
   9. Movie Information Section
   ---------------------------------------- */
.movie-section {
  padding: 20px 20px;
}

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

.movie-title {
  text-align: center;
  margin-bottom: 40px;
}

.movie-title img {
  max-width: 500px;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  margin: 0 auto;
}

.movie-subtitle {
  text-align: center;
  margin-bottom: 40px;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-white);
}

.movie-subtitle-text {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.movie-subtitle-dash {
  display: inline-block;
  width: 60px;
  height: 1px;
  background-color: var(--color-white);
}

.movie-description {
  color: var(--color-white);
  font-size: 16px;
  line-height: 2;
  margin-bottom: 30px;
  text-align: left;
}

.movie-story-heading {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-white);
}

.movie-story {
  color: var(--color-white);
  font-size: 16px;
  line-height: 2;
  margin-bottom: 40px;
  text-align: left;
}

.movie-distributor {
  text-align: center;
  font-size: 14px;
  color: var(--color-white);
  margin-top: 30px;
}

/* ----------------------------------------
   10. Trailer Section
   ---------------------------------------- */
.trailer-section {
  padding: 20px 0;
}

.trailer-heading-wrapper {
  max-width: var(--kv-max-width);
  margin: 0 auto 40px;
  padding: 0 20px;
}

.trailer-heading {
  background-color: var(--color-white);
  color: var(--color-black);
  text-align: center;
  padding: 8px 20px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.3em;
}

.trailer-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.trailer-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background-color: #111;
}

.trailer-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ----------------------------------------
   11. Footer Section
   ---------------------------------------- */
.footer-section {
  padding: 60px 20px 60px;
  text-align: center;
}

.footer-cta {
  margin-bottom: 40px;
}

.footer-logo {
  margin-bottom: 30px;
}

.footer-logo img {
  max-width: 200px;
  height: auto;
  margin: 0 auto;
  opacity: 0.8;
}

.footer-copyright {
  color: var(--color-white);
  font-size: 12px;
  padding-bottom: 20px;
}

/* ----------------------------------------
   12. Utility Classes
   ---------------------------------------- */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
.mb-80 { margin-bottom: 80px; }

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }

/* ----------------------------------------
   13. Responsive - Mobile
   ---------------------------------------- */
@media screen and (max-width: 768px) {
  :root {
    --section-padding: 50px 15px;
    --kv-max-width: 100%; /* モバイルは幅100% */
  }
  
  body {
    font-size: 14px;
  }
  
  .kv-wrapper::before,
  .kv-wrapper::after {
    display: none;
  }
  
  .kv-actor-name {
    width: 90%;
    max-width: none;
    top: 8%;
  }
  
  .kv-director-info {
    width: 35%;
    max-width: none;
    top: 15%;
  }
  
  .kv-catchcopy {
    width: 60%;
    max-width: none;
    top: 63% !important;
  }
  
  .kv-exhibition-logo {
    width: 70%;
    max-width: none;
    bottom: 15%;
  }
  
  .scroll-indicator {
    bottom: 3%;
  }
  
  .event-info {
    padding-left: 0;
  }
  
  .event-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .event-label {
    margin-right: 0;
  }
  
  .event-value {
    font-size: 18px;
  }
  
  .event-value .date-large {
    font-size: 28px;
  }
  
  .event-value .date-unit {
    font-size: 14px;
  }
  
  .event-value .date-year,
  .event-value .date-time {
    font-size: 16px;
  }
  
  .collab-content {
    display: flex;
    flex-direction: column;
  }
  
  .collab-prize {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    order: 1;
  }
  
  .collab-prize img {
    margin: 0 auto;
    max-width: 300px;
  }
  
  .collab-cta {
    width: 100%;
    text-align: center;
    margin-top: 0;
    order: 2;
  }
  
  .btn-cta {
    width: 100%;
    min-width: auto;
    padding: 12px 30px;
  }
  
  .movie-title img {
    max-width: 100%;
  }
  
  .movie-subtitle {
    font-size: 14px;
  }
  
  .movie-subtitle-dash {
    width: 30px;
  }
  
  .trailer-heading {
    font-size: 18px;
    letter-spacing: 0.2em;
  }
}

@media screen and (max-width: 480px) {
  .event-value .date-large {
    font-size: 24px;
  }
  
  .kv-actor-name {
    top: 5%;
  }
  
  .kv-director-info {
    top: 8%;
    width: 40%;
  }
  
  .kv-catchcopy {
    top: 50%;
  }
}