@charset "utf-8";
/* ============================================================
   style.css
   ============================================================ */

/* ===== CSS変数 ===== */
:root {
  --color-bg: #1a0b08;
  --color-gold: #e2b34d;
  --gradient-gold: linear-gradient(135deg, #d69f3d 0%, #f1c564 50%, #d8a03c 100%);
  --color-dot: #aaa595;
  --color-dot-active: #231815;
}

/* ===== ベース ===== */
html,
body {
  height: 100%;
  background: var(--color-bg);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== LAYOUT =====
   左右 fluid、中央はデザイン比率で可変（最大750px／スマホは100%）
===== */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ===== 左右サイドバー共通 ===== */
.sidebar-left,
.sidebar-right {
  position: sticky;
  top: 0;
  flex: 1 1 0;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-slot {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-left .img-slot span {
  width: 94%;
  display: block;
  min-width: 192px;
}

.sidebar-right .img-slot span {
  width: 79%;
  display: block;
  min-width: 176px;
}

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


/* ===== CENTER — デザイン比率（1920px幅で750px）で可変、最大750px ===== */
.main {
  flex: 0 0 auto;
  width: calc(750 / 1920 * 100%);
  max-width: 750px;
  min-width: 0;
}

/* セクション背景 */
.bg {
  background-size: contain;
  background-repeat: no-repeat;
}

.sec01 {
  background-image: url(../images/sec01-bg.webp);
}

.sec02 {
  background-image: url(../images/sec02-bg.webp);
  margin-top: -2px;
}

.sec03 {
  background-image: url(../images/sec03-bg.webp);
  margin-top: -2px;
}

.img-box {
  position: relative;
  width: 100%;
  height: auto;
}

a {
  display: block;
}

header {
  position: relative;
}

.sec-title {
  margin: 10% 0;
}

.nav-style {
  width: 77.7%;
  margin: 0 auto 5%;
}

.nav-style:first-child {
  margin: 0 auto 2%;
}

.link-card {
  margin: 10% auto;
  width: 73.3%;
}

/* 最後の .link-card だけ下余白なし（後ろに .link-card が続かないもの） */
.link-card:not(:has(~ .link-card)) {
  margin-bottom: 0;
}


/* ===== スライダー ===== */
.slider-content {
  margin-bottom: 10%;
}

.slider-title {
  width: 80%;
  margin: 0 auto;
}

/* 中のサイズを .slider の幅基準（cqw）で指定するため */
.slider {
  container-type: inline-size;
}

.slider img {
  width: 100%;
  height: auto;
}

/* ページネーション（ドット）— 750px時に 直径28px／間隔20px／上余白35px */
.slider .splide__pagination {
  gap: calc(20 / 750 * 100cqw);
  margin-top: calc(35 / 750 * 100cqw);
}

.slider .splide__pagination__page {
  display: block;
  width: calc(28 / 750 * 100cqw);
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-dot);
  cursor: pointer;
  transition: background-color 0.3s;
}

.slider .splide__pagination__page.is-active {
  background: var(--color-dot-active);
}

.slider .splide__pagination__page:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}


/* ===== スクロールアニメーション ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

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

/* アニメーション前の初期状態（非表示） */
[data-anim] {
  opacity: 0;
}

/* 発火したら対応アニメーションを実行 */
[data-anim="fade-in"].animated {
  animation: fadeIn 0.7s ease forwards;
}

[data-anim="fade-up"].animated {
  animation: fadeUp 0.7s ease forwards;
}


/* ===== トップへ戻るボタン ===== */
.btn-top {
  width: 20%;
  max-width: 80px;
  min-width: 50px;
  position: fixed;
  bottom: 3%;
  right: 2%;
  z-index: 100;
  transition: opacity 0.4s ease;
}


/* ===== スマホ用ハンバーガー ===== */
.hamburger {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 310;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--gradient-gold);
  border: none;
  border-radius: 0;
  cursor: pointer;
}

/* 3本とも中心に重ねてから、上下にずらす */
.hamburger span {
  position: absolute;
  top: 50%;
  left: 25%;
  width: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--color-bg);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger span:nth-child(1) {
  transform: translateY(-7px);
}

.hamburger span:nth-child(3) {
  transform: translateY(7px);
}

/* 開いた状態：中心に戻して回転 → × */
.hamburger.open span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

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

.hamburger.open span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* ===== OVERLAY ===== */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 200;
}

.overlay.visible {
  display: block;
}

/* ===== MOBILE (≤750px) ===== */
@media (max-width: 750px) {
  .hamburger {
    display: block;
  }

  .sidebar-left {
    display: none;
  }

  /* 右サイドバー → 右からスライドしてくるメニューに */
  .sidebar-right {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-bg);
    z-index: 210;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.28s;
  }

  .sidebar-right.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
  }

  /* ナビ画像をスマホ画面いっぱい寄りに（横90%まで／縦はボタンと重ならない範囲で） */
  .sidebar-right .img-slot {
    max-width: none;
    aspect-ratio: auto;
    height: 100%;
  }

  .sidebar-right .img-slot span {
    width: 90%;
    min-width: 0;
  }

  .sidebar-right .img-slot img {
    width: auto;
    max-width: 100%;
    max-height: calc(100dvh - 120px);
    margin: 0 auto;
  }

  /* メニューを開いている間は背景をスクロールさせない */
  html.is-menu-open {
    overflow: hidden;
  }

  .main {
    width: 100%;
    overflow-x: hidden;
  }

  .btn-top {
    opacity: 0;
    pointer-events: none;
  }

  .btn-top.is-show {
    opacity: 1;
    pointer-events: auto;
  }
}