/* =========================================================
   STEP①: 基本フォント・共通レイアウト・メインビジュアル・SHIBUYA RUNWAY
   ========================================================= */

/* ------------------------------
   フォント読み込み（ローカル @font-face）
------------------------------ */
@font-face {
  font-family: "Fractul SemiBold";
  src: url("/assets/fonts/Fractul-SemiBold.woff2") format("woff2"),
       url("/assets/fonts/Fractul-SemiBold.woff") format("woff"),
       url("/assets/fonts/Fractul-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fractul Regular";
  src: url("/assets/fonts/Fractul-Regular.woff2") format("woff2"),
       url("/assets/fonts/Fractul-Regular.woff") format("woff"),
       url("/assets/fonts/Fractul-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fractul Medium";
  src: url("/assets/fonts/Fractul-Medium.woff2") format("woff2"),
       url("/assets/fonts/Fractul-Medium.woff") format("woff"),
       url("/assets/fonts/Fractul-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   共通ユーティリティ
========================================================= */
body {
  overflow-x: hidden; /* 横スクロール防止 */
}

.only-pc { display: block; }
.only-sp { display: none; }
@media (max-width: 767px) {
  .only-pc { display: none; }
  .only-sp { display: block; }
  .only-sp .lang-ja { font-size: 14px; line-height: 30px; }
}

/* br制御 */
.br-pc { display: inline; }
.br-sp { display: none; }
@media (max-width: 767px) {
  .br-pc { display: none; }
  .br-sp { display: inline; }
}

/* =========================================================
   レイアウトベース
========================================================= */
.section {
  padding: 80px 0;
}
.container {
  width: min(1040px, 92%);
  margin: 0 auto;
}

/* メインビジュアルだけは余白をリセット */
.section.full-size {
  padding: 0 !important;
}

/* =========================================================
   メインビジュアル（Swiper含む）
========================================================= */
.main-visual img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
@media (max-width: 768px) {
  .main-visual {
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
}

/* =========================================================
   SHIBUYA RUNWAY セクション
========================================================= */
.section--runway {
  background: #fff;
  padding: 120px 0 100px;
}

.runway__inner {
  width: min(880px, 90%);
  margin: 0 auto;
  text-align: center;
}

.runway__title {
  font-family: "Fractul SemiBold", "Fractul", sans-serif;
  font-size: 72px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}

.runway__lead {
  font: 400 18px/2 "Noto Sans JP", sans-serif;
  margin-bottom: 22px;
}

/* ------------------------------
   概要ボックス
------------------------------ */
.runway__meta {
  margin-top: 48px;
  display: block;
  text-align: initial;
  border: 0;
  padding: 0;
}

/* 黒ヘッダー（640×64） */
.runway__meta-head {
  width: 640px;
  height: 64px;
  margin: 0 auto;
  background: #000;
  color: #fff;
  font: 400 18px/64px "Noto Sans JP", sans-serif;
  letter-spacing: 0.05em;
  text-align: center;
}

/* 白囲みボックス */
.runway__meta-box {
  width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #000;
  padding: 24px 32px;
  display: grid;
  gap: 12px;
}

.runway__meta-row {
  display: flex;
  gap: 16px;
  font: 400 16px/1.8 "Noto Sans JP", sans-serif;
  margin: 0;
}
.runway__meta-row dt {
  width: 72px;
  font-weight: 400;
  color: #000;
}
.runway__meta-row dd {
  color: #000;
}

/* ------------------------------
   SHIBUYA RUNWAY：SP調整
------------------------------ */
@media (max-width: 768px) {
  .runway__title {
    font-size: 48px;
  }
  .runway__lead {
    font-size: 16px;
  }
  .runway__meta-head,
  .runway__meta-box {
    width: 90%;
  }
  .runway__meta-box {
    padding: 18px;
  }
  .runway__meta-row {
    font-size: 16px;
  }
}

/* =========================================================
   STEP②: CONTENTS 1〜3（TOKYO / SEOUL / FINALE）
   ※ 余白やセクション間距離は STEP③ で一括管理
========================================================= */

/* ------------------------------
   CONTENTS 1：TOKYO トレンドランウェイ
------------------------------ */
.c1 {
  width: 800px;
  margin: 0 auto;                 /* セクション内の上下余白はSTEP③で */
  background: #fff;
  border: 1px solid #000;
  position: relative;
  text-align: center;
  padding: 72px 36px 36px;        /* タイトル上は広め */
}

/* 左上バッジ（CONTENTS 1） */
.c1-badge {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 240px;
  height: 60px;
  background: #000;
  color: #fff;
  line-height: 60px;
  text-align: center;
  font-family: "Fractul Regular","Fractul","Noto Sans JP",sans-serif; /* 細身 */
  font-size: 20px;
  letter-spacing: .06em;
  box-sizing: border-box;
}

/* タイトル */
.c1-title {
  margin: 20px 0 28px;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
}
.c1-title-en {
  font-family: "Fractul SemiBold","Fractul",sans-serif;
  font-weight: 600;
  display: inline-block;
}
.c1-title-ja {
  font-family: "Noto Sans JP",sans-serif;
  font-weight: 700;
  display: inline-block;
  margin-left: .1em;
  font-size: 32px;                /* 日本語だけ少し小さく */
  line-height: 1.2;
}

/* 本文 */
.c1-text {
  font: 400 16px/1.9 "Noto Sans JP",sans-serif;
  margin: 10px 0 40px;
}

/* ブランド画像 */
#contents1 .brand-logos img {
  max-width: 88%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* SP */
@media (max-width: 768px) {
  .c1 { width: 92%; padding: 54px 18px 28px; }
  .c1-badge { width: 180px; height: 48px; line-height: 48px; font-size: 16px; }
  .c1-title { font-size: 28px; margin: 16px 0 24px; }
  .c1-title-ja { font-size: 26px; }
  .c1-text { font-size: 16px; margin-bottom: 32px; }
  #contents1 .brand-logos img { max-width: 90%; }
}

/* ------------------------------
   CONTENTS 2：SEOUL トレンドランウェイ
------------------------------ */
.c2 {
  width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #000;
  position: relative;
  text-align: center;
  padding: 72px 36px 36px;
}

/* 左上バッジ（CONTENTS 2） */
.c2-badge {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 240px;
  height: 60px;
  background: #000;
  color: #fff;
  line-height: 60px;
  text-align: center;
  font-family: "Fractul Regular","Fractul","Noto Sans JP",sans-serif;
  font-size: 20px;
  letter-spacing: .06em;
  box-sizing: border-box;
}

/* タイトル */
.c2-title {
  margin: 20px 0 28px;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
}
.c2-title-en {
  font-family: "Fractul SemiBold","Fractul",sans-serif;
  font-weight: 600;
  display: inline-block;
}
.c2-title-ja {
  font-family: "Noto Sans JP",sans-serif;
  font-weight: 700;
  display: inline-block;
  margin-left: .1em;
  font-size: 32px;                /* 日本語だけ少し小さく */
  line-height: 1.2;
}

/* 本文 */
.c2-text {
  font: 400 16px/1.9 "Noto Sans JP",sans-serif;
  margin: 10px 0 40px;
}

/* ブランド画像 */
#contents2 .brand-logos img {
  max-width: 88%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* SP */
@media (max-width: 768px) {
  .c2 { width: 92%; padding: 54px 18px 28px; }
  .c2-badge { width: 180px; height: 48px; line-height: 48px; font-size: 16px; }
  .c2-title { font-size: 28px; margin: 16px 0 24px; }
  .c2-title-ja { font-size: 26px; }
  .c2-text { font-size: 14px; margin-bottom: 32px; }
  #contents2 .brand-logos img { max-width: 90%; }
}

/* ------------------------------
   CONTENTS 3：フィナーレ（反転）
------------------------------ */
.c3 {
  width: 800px;
  margin: 0 auto;
  background: #000;              /* 反転：黒背景 */
  color: #fff;                   /* 白文字 */
  border: 1px solid #fff;        /* 白1px枠 */
  position: relative;
  text-align: center;
  padding: 72px 36px 36px;
}

/* 左上バッジ（白地＋黒文字＋黒枠） */
.c3-badge {
  position: absolute;
  top: 0;                        /* ずれ調整済み */
  left: 0;
  width: 240px;
  height: 60px;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  line-height: 60px;
  text-align: center;
  font-family: "Fractul Regular","Fractul","Noto Sans JP",sans-serif;
  font-size: 20px;
  letter-spacing: .06em;
  box-sizing: border-box;
}

/* タイトル */
.c3-title {
  margin: 20px 0 28px;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  color:#fff;
}
.c3-title-en {
  font-family: "Fractul SemiBold","Fractul",sans-serif;
  font-weight: 600;
  display: inline-block;
}
.c3-title-ja {
  font-family: "Noto Sans JP",sans-serif;
  font-weight: 700;
  display: inline-block;
  margin-left: .1em;
  font-size: 32px;               /* 日本語だけ少し小さく */
  line-height: 1.2;
}

/* 本文 */
.c3-text {
  font: 400 16px/1.9 "Noto Sans JP",sans-serif;
  margin: 10px 0 40px;
  color: #fff;
}

/* SP */
@media (max-width: 768px) {
  .c3 { width: 92%; padding: 54px 18px 28px; }
  .c3-badge { width: 180px; height: 48px; line-height: 48px; font-size: 16px; }
  .c3-title { font-size: 28px; margin: 16px 0 24px; }
  .c3-title-ja { font-size: 26px; }
  .c3-text { font-size: 14px; margin-bottom: 32px; }
}

/* ================= 渋谷音楽祭 ================= */
.section--music2025 {
  background: url('/assets/images/2025aw/ongakusai_bg.png') no-repeat center center / cover;
  padding: 120px 20px 120px !important; /* ← 上下余白をしっかり確保 */
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}

/* タイトル */
.music__title {
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 0.4em;
  margin-bottom: 60px; /* ← 背景とタイトルの余白多め */
}

/* 本文 */
.music__text {
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 16px;
  line-height: 2.2;
  max-width: 720px;
  margin: 0 auto 48px; /* ← 本文とリンクの間を広く */
}

/* リンク（公式サイト） */
.music__link {
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 20px;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-top: 20px;
  transition: opacity .3s;
}
.music__link:hover {
  opacity: 0.8;
}

/* SP */
@media (max-width: 768px) {
  .section--music2025 {
    padding: 100px 16px 120px !important;
  }
  .music__title {
    font-size: 32px;
    margin-bottom: 40px;
    letter-spacing: 0.3em;
  }
  .music__text {
    font-size: 15px;
    margin-bottom: 60px;
  }
  .music__link {
    font-size: 20px;
  }
}

/* =======================================
   HYPER GROUND セクション（最終版）
   ======================================= */

.section--hyper2025 {
  background: #1c1513;
  padding: 120px 20px !important;
  color: #fff;
  text-align: center;
}

.hyper__inner {
  max-width: 800px;
  margin: 0 auto;
}

/* タイトル（画像） */
.hyper__title-img img {
  max-width: 360px;
  width: 100%;
  margin: 0 auto 48px;
  display: block;
}

/* リード文 */
.hyper__lead {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 2;
  margin-bottom: 60px;
}

/* 出店ブロック */
.hyper__editions {
  display: grid;
  gap: 24px;
}

/* 各カード */
.hyper__card {
  background: #202020;
  border: 1px solid #202020;
  border-radius: 0; /* 角丸なし */
  padding: 24px;
  text-align: center;
}

/* エディション名 */
.hyper__edition {
  font-family: "Fractul SemiBold", "Fractul", sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  font-weight: 400; /* 太字なし */
}

/* 日付 */
.hyper__date {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 4px;
}

/* 会場 */
.hyper__place {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.9;
}

/* =======================================
   SP対応
   ======================================= */
@media (max-width: 768px) {
  .hyper__title-img img {
    max-width: 320px;
    margin-bottom: 32px;
  }

  .hyper__lead {
    font-size: 14px;
    margin-bottom: 40px;
  }

  .hyper__edition {
    font-size: 16px;
  }

  .hyper__date,
  .hyper__place {
    font-size: 14px;
  }
}

/* ===== セクション間の余白調整 ===== */

/* SHIBUYA RUNWAYとCONTENTS1の間 */
.section--runway {
  padding-bottom: 60px !important; /* ← 元が120pxくらいなら60px程度に圧縮 */
}

/* CONTENTS 1 の上余白を少し詰める */
.c1 {
  margin-top: 0px !important; /* ← 以前80px → 40px程度へ */
}

/* CONTENTS 2 の上余白も詰める */
#contents2 .c2 {
  margin-top: 0px !important;
}

/* CONTENTS 3 の上余白も詰める */
#contents3 .c3 {
  margin-top: 0px !important;
}

/* 各CONTENTSセクションの上下paddingを詰める */
.section--contents {
  padding: 40px 0 !important; /* ← 例: 元が 80px の場合、半分くらいに */
}

/* CONTENTS 2 のブロック間マージン調整 */
#contents2 .c2 {
  margin-top: 16px !important; /* ← 24px よりさらに詰めた版 */
}

/* CONTENTS 3 のブロック間マージン調整 */
#contents3 .c3 {
  margin-top: 16px !important;
}

/* CONTENTS3 と渋谷音楽祭の間を広く */
#contents3 {
  margin-bottom: 60px; /* ← お好みで。100〜140pxが自然 */
}

/* ===== 共通：スクロール時フェードインアニメ ===== */

/* 初期状態（非表示） */
.fadein {
  opacity: 0 !important;
  transform: translateY(40px) !important;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 表示状態（画面内に入ったら） */
.fadein.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* 子要素に遅延（ステップ） */
.fadein.show [data-stagger] { 
  opacity: 0; transform: translateY(20px);
  animation: rise .6s ease-out forwards;
}
.fadein.show [data-stagger="1"] { animation-delay: .05s; }
.fadein.show [data-stagger="2"] { animation-delay: .25s; }
.fadein.show [data-stagger="3"] { animation-delay: .50s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== CONTENTS 共通 hover ===== */
.c1, .c2, .c3 {
  transition: transform .35s ease, box-shadow .35s ease;
  will-change: transform, box-shadow;
}

/* 外枠を描くライン（上下左右） */
.c1::before, .c1::after,
.c2::before, .c2::after,
.c3::before, .c3::after {
  content:"";
  position:absolute; left:0; top:0;
  width:100%; height:100%;
  pointer-events:none;
  box-sizing: border-box;
}

/* 横線アニメ */
.c1::before, .c2::before, .c3::before {
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s ease;
}

/* 縦線アニメ（少し遅らせる） */
.c1::after, .c2::after, .c3::after {
  border-left: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: scaleY(0);
  transform-origin: center top;
  transition: transform .45s ease .08s;
}

/* 通常の枠色（c1/c2=黒、c3=白） */
.c1, .c2 { color:#000; } 
.c3 { color:#000; }

/* hover時の持ち上がり＆シャドウ */
.c1:hover, .c2:hover, .c3:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0,0,0,.14), 0 8px 12px rgba(0,0,0,.10);
}

/* hover時：ラインが走る */
.c1:hover::before, .c2:hover::before, .c3:hover::before { transform: scaleX(1); }
.c1:hover::after,  .c2:hover::after,  .c3:hover::after  { transform: scaleY(1); }

/* バッジは軽く浮かせる */
.c1-badge, .c2-badge, .c3-badge { transition: transform .35s ease; }
.c1:hover .c1-badge,
.c2:hover .c2-badge,
.c3:hover .c3-badge { transform: translateY(-2px); }

/* アニメ苦手設定に配慮 */
@media (prefers-reduced-motion: reduce) {
  .c1, .c2, .c3,
  .c1::before, .c1::after,
  .c2::before, .c2::after,
  .c3::before, .c3::after {
    transition: none !important;
  }
}



/* ===== HYPER GROUND カード hover ===== */
.hyper__card {
  position: relative;
  overflow: hidden; /* シーンのはみ出し防止 */
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  will-change: transform, box-shadow, border-color;
}

/* 流れる光（右→左） */
.hyper__card::after {
  content:"";
  position:absolute; top:0; bottom:0; left:-40%;
  width:40%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.12) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  opacity: 0;
  transition: opacity .25s ease;
}

/* hover時の動き */
.hyper__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0,0,0,.22), 0 8px 12px rgba(0,0,0,.18);
  border-color: #5a463f; /* 少しだけ明るく */
}

/* 光を流すアニメ */
.hyper__card:hover::after {
  opacity: 1;
  animation: hyper-sheen 900ms cubic-bezier(.22,.61,.36,1) forwards;
}

@keyframes hyper-sheen {
  0%   { left: -40%; }
  100% { left: 120%; }
}

/* タイトルだけ軽く持ち上げる */
.hyper__card .hyper__edition {
  transition: transform .35s ease, text-shadow .35s ease;
}
.hyper__card:hover .hyper__edition {
  transform: translateY(-1px);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}

/* モーション削減配慮 */
@media (prefers-reduced-motion: reduce) {
  .hyper__card, .hyper__card::after, .hyper__card .hyper__edition {
    transition: none !important;
    animation: none !important;
  }
}
/* hover時：枠線を消す（透過） */
.hyper__card:hover {
  border-color: transparent !important;
  /* 既存の浮き・影などは残す */
}

.sp-br {
  display: none;
}
@media (max-width: 768px) {
  .sp-br {
    display: block;
  }
}

@media (max-width: 768px) {
  .runway__inner {
    padding: 0 0px; /* ← 14px などから 10px に詰める */
    width:100%;
  }
}

@media (max-width: 768px) {
    .runway__meta-head, .runway__meta-box {
        width: 100%;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .runway__meta-row {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
  .runway__meta-box dt {
    width: 30px; /* ← 元が80〜100pxくらいなら少し詰める */
    white-space: nowrap; /* ← 折り返し防止（必要に応じて） */
  }

  .runway__meta-box dd {
    width: calc(100% - 30px); /* ← 残りを自動調整 */
  }
}

@media (max-width: 768px) {
  .c1:hover,
  .c2:hover,
  .c3:hover {
    transform: none !important;
    box-shadow: none !important;
    /* ほかにhover用に入れていたプロパティがあればすべてリセット */
  }
}

@media (max-width: 768px) {
    .c1-title {
        font-size: 22px;
        margin: 16px 0 24px;
    }
}

@media (max-width: 768px) {
    .c1-text {
        font-size: 14px;
        margin-bottom: 32px;
    }
}
@media (max-width: 768px) {
    .c1-title-ja {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .c2-title {
        font-size: 22px;
        margin: 16px 0 24px;
    }
}

@media (max-width: 768px) {
    .c2-text {
        font-size: 14px;
        margin-bottom: 32px;
    }
}
@media (max-width: 768px) {
    .c2-title-ja {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .c3-title {
        font-size: 22px;
        margin: 16px 0 24px;
    }
}

@media (max-width: 768px) {
    .c3-text {
        font-size: 14px;
        margin-bottom: 32px;
    }
}
@media (max-width: 768px) {
    .c3-title-ja {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .music__text {
        font-size: 14px;
        margin-bottom: 30px;
        line-height: 1.8;
    }
}

@media (max-width: 768px) {
    .music__link {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
  .hyper__title-img img {
    max-width: 260px; /* ← 好みで 240〜280px 程度に調整 */
    margin-bottom: 32px;
  }
}

@media (max-width: 768px) {
  .section--music2025 {
    background: url('/assets/images/2025aw/ongakusai_bg_sp.png') no-repeat center center / cover;
  }
}

/* ===== SHINSEGAE HYPER GROUND 紹介（白背景） ===== */
.section--hyper-intro {
  background: #fff;
  color: #000;
  text-align: center;
  padding: 0px 20px 120px !important; /* 上少し広めに */
}

.hyperintro {
  max-width: 800px;
  margin: 0 auto;
}

.hyperintro-logo img {
  max-width: 360px; /* ← ここを 360px に変更 */
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 24px;
}

.hyperintro-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 2;
  letter-spacing: .02em;
  margin: 0;
}

/* SP 調整 */
@media (max-width: 768px) {
  .section--hyper-intro { padding: 0px 16px 48px; }
  .hyperintro-logo img { max-width: 280px; margin-bottom: 20px; } /* ← SPも少し大きめに */
  .hyperintro-text { font-size: 14px; line-height: 2; }
}

/* ===== 音楽祭キービジュアル ===== */
.music__kv {
  text-align: center;
  margin: 60px auto 60px; /* ← 本文との距離やリンクとの距離を自然に */
}

.music__kv img {
  max-width: 800px;
  width: 100%;
  height: auto;
  display: inline-block;
}

/* SP対応 */
@media (max-width: 768px) {
  .music__kv {
    margin: 40px auto 48px;
  }
  .music__kv img {
    max-width: 100%;
    width: 100%;
  }
}

.main-visual__logo,
.main-visual__video,
.main-visual__slider {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

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

/* 初期状態：ロゴだけ表示 */
.main-visual__logo.active {
  opacity: 1;
  z-index: 3;
}

/* 2段階目：動画表示 */
.main-visual__video.active {
  opacity: 1;
  z-index: 2;
}

.main-visual__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 最終段階：スライダー表示 */
.main-visual__slider.active {
  opacity: 1;
  z-index: 1;
}

/* メインKV：動画フルブリード */
.main-visual.is-video-only {
  position: relative;
  width: 100%;
  height: 100vh;           /* 画面いっぱい */
  overflow: hidden;
}

.main-kv-video {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* 余白なくトリミング */
  display: block;
}

/* スマホは少し浅めに（必要に応じて調整可） */
@media (max-width: 768px) {
  .main-visual.is-video-only {
    height: 64vh;
  }
}

/* メインKV：動画全体を表示（contain） */
.main-visual.is-video-only {
  position: relative;
  width: 100%;
  height: 100vh;           /* 画面いっぱいに表示 */
  background: #000;        /* レターボックスの帯色 */
  overflow: hidden;
}

/* 画面中央にフィット。トリミングなし */
.main-kv-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;     /* ← ここがポイント（cover→contain） */
  display: block;
}

/* スマホ：高さを少し浅めにしたい場合はここで調整（任意） */
@media (max-width: 768px) {
  .main-visual.is-video-only {
    height: 80vh;          /* 64vhだと小さければ80vhなどに */
  }
  .main-kv-video {
    width: 100vw;
    height: 80vh;          /* 親に合わせる */
  }
}

/* iOS Safari向けの保険（挙動が不安定な端末での潰れ防止） */
@supports (-webkit-touch-callout: none) {
  .main-kv-video {
    max-width: 100vw;
    max-height: 100vh;
  }
}

/* メインKV：動画を全画面フィット（トリミングあり） */
.main-visual.is-video-only {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.main-kv-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover; /* ← contain → cover に変更 */
  object-position: center;
  display: block;
}

/* スマホ用調整 */
@media (max-width: 768px) {
  .main-visual.is-video-only {
    height: 100vh; /* 必要に応じて 90vh や 80vh に調整可能 */
  }
  .main-kv-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* メインKV：幅100%・上寄せ・トリミングなし */
.section.full-size { padding: 0 !important; }

.main-visual.is-video-only {
  position: relative;
  width: 100%;
  height: auto;       /* ← 高さは中身（動画）に合わせる */
  margin: 0;
  background: transparent;
}

.main-kv-video {
  display: block;     /* ← 上の隙間防止（inline要素の隙間対策） */
  width: 100%;        /* ← ウィンドウ（親幅）に合わせて横いっぱい */
  height: auto;       /* ← 縦は比率維持で自動 */
  object-fit: contain;/* ← 念のため。height:auto なので実質トリミングなし */
  object-position: top center; /* ← 上にピタッ */
  margin: 0;
}

/* スマホでも同様の挙動でOK（特別な上書き不要） */
@media (max-width: 768px) {
  .main-visual.is-video-only { height: auto; }
  .main-kv-video { width: 100%; height: auto; }
}

/* ページ全体の余白/はみ出し対策 */
html, body { margin: 0; }

/* スマホ用：動画の上下余白対策 */
@media (max-width: 768px) {
  .main-visual.is-video-only {
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .main-kv-video {
    display: block;
    width: 100%;
    height: auto !important;       /* ← 高さを自動で再計算 */
    object-fit: contain !important;/* ← 切れずに全体表示 */
    object-position: top center;   /* ← 上にぴったり */
    margin: 0 !important;
    padding: 0 !important;
  }

  html, body {
    margin: 0;
    padding: 0;
  }
}

/* スマホ用：動画の上下余白対策 */
@media (max-width: 768px) {
  .main-visual.is-video-only {
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .main-kv-video {
    display: block;
    width: 100%;
    height: auto !important;       /* ← 高さを自動で再計算 */
    object-fit: contain !important;/* ← 切れずに全体表示 */
    object-position: top center;   /* ← 上にぴったり */
    margin: 0 !important;
    padding: 0 !important;
  }

  html, body {
    margin: 0;
    padding: 0;
  }
}
/* ================================
   スマホ余白ゼロ化・強制パッチ（最後に貼る）
   ================================ */
@media (max-width: 768px) {
  /* セクションの共通余白を完全に無効化 */
  .section.full-size {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    min-height: 0 !important;
  }

  /* メインビジュアルのラッパーを上詰め＆高さ自動 */
  .main-visual,
  .main-visual.is-video-only {
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: transparent !important;
  }

  /* video自体の挙動：横100%・上ピタ・トリミングなし・行間ギャップ解消 */
  #mainKV.main-kv-video,
  .main-kv-video {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;     /* 切らずに全体表示 */
    object-position: top center !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: top !important;     /* インライン由来の隙間対策 */
    line-height: 0 !important;          /* 念のため */
  }

  /* Swiper系の高さ/余白が残っている場合の保険（使っていなくても無害） */
  .main-visual .swiper,
  .main-visual .swiper-wrapper,
  .main-visual .swiper-slide {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }

  /* ページ全体起因の余白を潰す */
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important; /* videoまわりのベースライン隙間の保険 */
  }

  /* 直後セクションとの間に勝手な余白が出る場合の保険 */
  .section.full-size + .section {
    margin-top: 0 !important;
  }
}


