/* ========= Import ========= */
@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400&family=Noto+Sans+JP:wght@400;700&display=swap");

/* ========= Tokens ========= */
:root {
  --stage-w: 720;  /* 論理幅 (px) */
  --stage-h: 1280; /* 論理高 (px) */
  --cta-h: 60px;
  --frame-w: clamp(320px, 92vw, 420px);
  --ar: 9 / 16;

  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.1);
  --bg-page: #fff;
  --panel: #fff;
  --ink: #333333;
  --line: #ececf1;
  --accent: #133C8C;
  --accent-2: #E3CB17;
}

/* ====== Reset / Base ====== */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  background: #fff;
  overflow-x: clip; /* 右側の余白を根こそぎカット */
}
body {
  font-family: 'Noto Sans JP', system-ui, -apple-system, "Segoe UI", Roboto,
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo",
    sans-serif;
  color: var(--ink);
}

/* ====== 画面フィット (中央ステージ＋左右カラム) ======
   720x1280 を高さ100svh基準で縮尺。
   中央幅 = min(100svw, 100svh * 720/1280)
*/
.fit {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns:
    1fr
    minmax(0, min(100svw, calc(100svh * (var(--stage-w) / var(--stage-h)))))
    1fr;
  align-items: start;
  justify-items: center;
  overflow: hidden;
  width: 100svw; /* レイアウト計算をビュー幅に固定 */
    background-color: var(--bg-page);     /* 読み込み前の保険 */
    background-size: cover;        /* 余白全体を埋める */
    background-position: center;   /* 中央寄せ */
    background-repeat: no-repeat;
}

/* ====== ステージ（中央カラム） ====== */
.stage {
  grid-column: 2;
  height: 100svh;
  width: min(100svw, calc(100svh * (var(--stage-w) / var(--stage-h))));
  aspect-ratio: var(--stage-w) / var(--stage-h);
  max-width: 100svw;
  position: relative; /* CTAのabsolute配置用 */
}


/* ====== ステージ内スクロール（等倍のまま） ====== */
.stack {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y mandatory;
  scroll-padding-bottom: 0;
  padding-bottom: 0;
  scrollbar-width: none;
  overscroll-behavior-y: auto; /* 縦は親へチェーン */
}
.stack::-webkit-scrollbar {
  display: none;
}

/* ====== 縦セクション（1画面ずつ） ====== */
.vblock {
  height: 100svh;
  scroll-snap-align: start;
  display: grid;
  place-items: center;
}

/* 画像は“全体表示” */
.vblock > picture,
.vblock > img {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}
.vblock > picture > img,
.vblock > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ========== 縦：動画単体の額縁 ========== */
.v-media {
  width: var(--frame-w);
  aspect-ratio: var(--ar);
  display: block;
  position: relative;
}

/* ===== 1枚目（MV）＆ 5枚目（ラスト）だけフルスクリーン ===== */
.vblock[data-section="1"] .v-media,
.vblock[data-section="5"] .v-media {
  width: 100%;
  height: 100%;
  max-width: none;
}

/* 中の画像・動画もステージいっぱいに広げる */
.vblock[data-section="1"] .v-media > video,
.vblock[data-section="1"] .v-media > img,
.vblock[data-section="5"] .v-media > video,
.vblock[data-section="5"] .v-media > img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain; /* 全体を見せたいので contain のまま */
}


.v-media > video,
.v-media > img {
  /* メタデータ前でも高さを確保 → スマホで“消える”現象を防止 */
  width: 100%;
  height: 100%;
  max-width: var(--frame-w);
  object-fit: contain;
  background: #ffffff; /* ちらつき時の下地 */
}

/* ====== 横スワイプ ====== */
.h-wrap {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  position: relative;

  /* 縦ジェスチャ開始の“逃げ場”を確保（視覚はズレない） */
  padding-block: 1px;
  margin-block: -1px;
}
.vblock:has(.h-wrap) {
  place-items: stretch center;
}

/* 進捗ドット */
.h-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 9;
}
.pdot {
  appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 38px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent), white 12%) 0%,
    color-mix(in srgb, var(--accent), white 12%) 100%
  );
  opacity: 0.28;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.pdot[aria-selected="true"] {
  opacity: 1;
  transform: translateY(-1px);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* トラック：
   - touch-action: pan-x pan-y で縦へ抜けるのを許可
   - overscroll-behavior-y: auto で親スクロールへチェーン
*/
.h-track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  height: 100%;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
}
.h-track::-webkit-scrollbar {
  display: none;
}

/* 各スライド（1ページ分） */
.h-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* スライド内のコンテンツ（画像・動画共通） */
.h-slide video,
.h-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ナビはクリックだけ通す（スクロールは阻害しない） */
.h-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  pointer-events: none;
  z-index: 8;
  bottom: -100px;
}
.h-nav button {
  pointer-events: auto;
  width: 30px;
  height: 30px;
  border: 1px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--accent-2);
  backdrop-filter: blur(1px);
  padding: 0;
  line-height: 0; 
}


.h-nav button svg {
  width: 24px;
  height: 24px;
  display: block; /* 余計な隙間防止 */
}


@media (max-width: 430px) {
.h-nav button {
  width: 24px;
  height: 24px;

}

.h-nav button svg {
  width: 14px;
  height: 14px;
}
}

/* ====== 追従CTA ====== */
.cta-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  height: var(--cta-h);
  padding: 8px 24px calc(8px + env(safe-area-inset-bottom));
  backdrop-filter: blur(3px);
  border-top: 0;
  box-shadow: none;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: center;
  max-width: 500px;
  width: 100%;
  margin: auto;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 260px;
  height: calc(var(--cta-h) - 16px - env(safe-area-inset-bottom));
  padding: 0 24px;
  border-radius:10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--accent-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
    position: relative;
  overflow: hidden; 
  isolation: isolate; 
  transition: background-color .18s ease, color .18s ease, filter .18s ease;
}


/* 光の筋 */
.cta.shine::before{
  content:"";
  position:absolute;
  top:-70%;
  left:-60%;
  width: 40%;
  height: 260%;
  transform: rotate(25deg);
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.0) 35%,
    rgba(255,255,255,0.85) 50%,
    rgba(255,255,255,0.0) 65%,
    rgba(255,255,255,0) 100%
  );
  opacity: 0;
  animation: ctaShine 1.6s ease-in-out infinite;
  pointer-events:none;
  z-index: 1;
}

/* 文字を光より上に */
.cta.shine{
  z-index: 0;
}
.cta.shine{
  /* 既存の色・影はそのままでOK */
}
.cta.shine > *{
  position: relative;
  z-index: 2;
}

/* 文字が直接入ってるだけなので、上の >* が効かない場合の保険 */
.cta.shine{
  z-index: 0;
}

/* アニメ */
@keyframes ctaShine{
  0%   { transform: translateX(-220%) rotate(25deg); opacity: 0; }
  55%  { transform: translateX(-220%) rotate(25deg); opacity: 0; }
  62%  { opacity: 0.9; }
  75%  { opacity: 0.9; }
  100% { transform: translateX(340%) rotate(25deg); opacity: 0; }
}


.btn_box{
  flex: 1;              /* ← CTAバー内でボタンが伸びる */
  display: flex;
}

.btn_box > a.cta{
  width: 100%;          /* ← 親幅いっぱい */
  min-width: 0;         /* ← min-width:260px が邪魔する時の保険 */
}

a.cta.primary.ga-link:is(:hover, :focus-visible, :active){
  background-color: var(--bg-page) !important;
  color: var(--ink) !important;
}

/* 電話 */
a.ga-tel {
    background: #c50e0e;
    padding: 7px 10px;
    border-radius: 200px;
    width: 50px;
    height: 50px;
    text-align: center;
}

a.ga-tel img {
    width: 30px;
}

@media (min-width: 769px) {
a.ga-tel {
      display: none;
}
}



/* ====== PC用：左右コンテンツ ====== */
.l-bk,
.r-bk {
  width: 100%;
  height: 100svh;
  background-color: var(--bg-page);
  overflow: auto;
  top: 0;
}
.l-bk {
  grid-column: 1;
}
.r-bk {
  grid-column: 3;
  position: relative;
}

.l-bk-box {
  padding: 50px 20px;
  display: grid;
  place-content: center;
  min-height: 100%;
  justify-items: center;
}
.r-nav {
  padding: 50px 20px;
  display: grid;
  place-content: center;
  min-height: 65%;
}
.r-nav ul {
  margin: 0;
  padding: 0;
}
.r-nav ul li {
  list-style: none;
  padding-top: 1em;
  font-size: 10px;
}
.r-nav ul li a {
  font-size: 24px;
  color: var(--accent)!important;
  text-decoration: none;
}
img.l-bk-img-2,
img.r-bk-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: auto;
  padding: 0 24px;
}
img.l-bk-img-2 {
    width: 320px;
}

img.l-bk-img {
    width: 300px;
    margin-bottom: 30px;
}


/* タブレット以下は左右非表示（中央だけ） */
@media (max-width: 1024px) {
  .l-bk,
  .r-bk {
    display: none;
  }
}

/* ====== Scroll indicator (任意) ====== */
.scroll_down {
  position: absolute;
  bottom: 40%;
  right: 50%;
  animation: arrowmove 1s ease-in-out infinite;
}
.scroll_down a {
  position: absolute;
  left: -24px;
  bottom: 17px;
  color: #000;
  font-size: 14px;
  font-family: "Josefin Sans", sans-serif;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  text-decoration: none;
  text-transform: uppercase;
}
.scroll_down:before {
  content: "";
  position: absolute;
  bottom: 5px;
  right: -6px;
  width: 2px;
  height: 20px;
  background: #000;
  transform: skewX(-31deg);
}
.scroll_down:after {
  content: "";
  position: absolute;
  bottom: 5px;
  right: 0;
  width: 2px;
  height: 85px;
  background: #000;
}
@keyframes arrowmove {
  0% {
    bottom: 30%;
  }
  50% {
    bottom: 35%;
  }
  100% {
    bottom: 30%;
  }
}

/* ====== メインビジュアル：ポスター＋動画レイヤー ====== */
#fv-wrap {
  position: relative;
  overflow: hidden;
}

#fv-wrap .fv-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.28s ease;
}

/* 動画本体は裏側で再生させる（初期状態は見せない） */
#fv-wrap > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.28s ease;
}

/* 再生が始まったら動画を見せて、ポスターを消す */
#fv-wrap.is-playing > video {
  opacity: 1;
}
#fv-wrap.is-playing .fv-poster {
  opacity: 0;
}



/* iPhone: ダブルタップズーム抑制（横スワイプの矢印ボタン） */
.h-prev, .h-next, .pdot {
  touch-action: manipulation;
}

/* ===== Section 6: スケジュール画像の上にオーバーレイ ===== */
.sec6-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
}

/* 背景画像：元の contain 表示をそのまま維持 */
.sec6-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* オーバーレイ：画像の上に absolute で下部配置 */
.sec6-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0px;
    top: 160px;
    padding: 0 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
/* リンクカード */
.sec6-card {
    border-radius: 6px;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.sec6-links {
    position: relative;
    z-index: 1;
        padding: 10px 20px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}
.sec6-link {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: var(--accent);
    text-decoration: none;
    padding: 3px 0;
    line-height: 1.5;
    font-family: 'Noto Sans JP';
}


a.sec6-link:hover{
  color: #609F34;
}

/* フッターテキスト */
.sec6-note {
    margin: 0;
    text-align: center;
    font-size: 15px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.7;
    font-family: Noto Sans JP;
}

@media (max-width: 1024px) {
.sec6-bottom {
    padding: 0 20px 80px;
    top: auto;
  }

  .pc-no{
    display: block;
  }

}

@media (max-width: 768px) {
.sec6-bottom {
      bottom: 20px;
  }


}

@media (max-width: 390px) {
.sec6-bottom {
        bottom: 10px;
        gap: 20px;
    }
    .sec6-links{
          padding: 10px 10px;
    }


}

@media (max-width: 376px) {
.sec6-bottom {
      bottom: 0px;
      gap: 14px;
  }

  .sec6-link{
    font-size: 10px;
        padding: 0px;
  }
  .sec6-links{
    padding: 0;
  }
.sec6-card{
  padding: 8px 14px 10px;
}
.sec6-note{
  font-size: 12px;
}
}

