/* 基本設定 */
body {
  margin: 0;
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

/* ヘッダー（常に上部に固定され、スクロールしてもついてくる） */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  z-index: 1000;
  /* スクロール時に見やすくするため、少し背景を暗くグラデーション */
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}

.logo {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
}

/* パソコン版ナビゲーション */
.pc-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.pc-nav a {
  color: #ffffff; /* 白に固定 */
  text-decoration: none; /* 下線なし */
  font-weight: bold;
  transition: opacity 0.3s;
}

.pc-nav a:hover {
  opacity: 0.7;
}

/* ヒーローセクション */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* 画面いっぱいの高さ */
  background-color: #0b0c10; /* ダークで知的な背景色 */
  overflow: hidden;
}

/* 幾何学アニメーション背景 */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

/* スライドショー */
.swiper {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
  opacity: 0.6; /* 背景のアニメーションと馴染ませるために少し透過 */
}

.swiper-slide {
  /* スライド自体の背景を、ヒーローセクションと同じダークカラーで塗りつぶす */
  background-color: #0b0c10; 
}
.swiper-slide img {
  width: 100%;
  height: 100%;
  /* 画像の全体が切れないように表示（余白ができる場合は中央配置） */
  object-fit: contain; 
}

/* キャッチコピー */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-text h1 {
  font-size: 3vw;
  line-height: 1.5;
  margin: 0;
}

/* ===== スマホ向けレスポンシブデザイン ===== */
.hamburger { display: none; }
.mobile-nav { display: none; }

@media (max-width: 768px) {
  .pc-nav { display: none; } /* PC用メニューを隠す */
  header { padding: 15px 20px; }
  .hero-text h1 { font-size: 6vw; }

  /* ハンバーガーボタン */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
  }
  .hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #fff;
    transition: 0.3s;
  }

  /* ハンバーガーメニュー展開時の中身 */
  .mobile-nav {
    display: block;
    position: fixed;
    top: -100%; /* 初期状態は画面外上部 */
    left: 0;
    width: 100%;
    height: auto;
    background-color: rgba(11, 12, 16, 0.95);
    padding: 80px 0 30px;
    transition: 0.4s ease-in-out;
    z-index: 1050;
  }
  .mobile-nav.active {
    top: 0; /* アクティブ時にスッと降りてくる */
  }
  
  /* 項目ごとに縦に並べる */
  .mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  /* メニュー内のリンク文字を白に固定 */
  .mobile-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    display: block;
    width: 100%;
    text-align: center;
  }
}
body { margin: 0; padding: 0; overflow-x: hidden; background-color: #000; }

/* ヒーローセクション（スライドショー） */
.hero {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 100; background-color: #0b0c10;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.hero.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* ============================
   背景画像（上部軸・回転・全画面）
============================ */
/* 回転の軸となる透明な点（最初は画面の上部中央） */
.bg-pivot {
    position: fixed;
    top: 0; left: 50%; /* 画面の一番上、中央 */
    width: 0; height: 0;
    z-index: 1;
    transition: top 1s ease, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 画像本体（軸を中心に超巨大に配置） */
.bg-image {
    position: absolute;
    top: -100vmax; left: -100vmax;
    width: 200vmax; height: 200vmax;
    object-fit: cover;
    transition: all 1s ease;
}

/* ★最後のスクロール：全画面表示になる時のクラス */
.bg-pivot.is-final {
    top: 50%; /* 軸を画面の中央に下ろす */
}
.bg-pivot.is-final .bg-image {
    /* 画像のサイズを画面ピッタリに縮める */
    top: -50vh; left: -50vw;
    width: 100vw; height: 100vh;
}

/* ============================
   コンテンツパネル（0.5秒遅延で飛び出す）
============================ */
.content-wrapper {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 10; display: flex; justify-content: center; align-items: center;
    pointer-events: none;
}

.content-panel {
    position: absolute; width: 80%; max-width: 600px;
    margin-top: 15vh; /* 軸が上にあるので、パネルは少し下に配置 */
    opacity: 0;
    transform: translateY(100px); /* 下に隠しておく */
    /* 消える時はスッと消える */
    transition: opacity 0.4s ease, transform 0.4s ease; 
    pointer-events: auto;
}

/* ★パネルが表示される時のクラス（0.5秒待ってから動く！） */
.content-panel.is-active {
    opacity: 1;
    transform: translateY(0);
    /* ここがポイント：背景の回転(1秒)に合わせて、0.5秒遅れてからアニメーション開始 */
    transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

/* パネルのデザイン */
.panel-box {
    padding: 30px; background: rgba(10, 15, 25, 0.85);
    border: 1px solid rgba(135, 206, 250, 0.4); border-radius: 15px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px);
    color: #fff; text-align: center;
}
.panel-box h2 { color: #87cefa; margin-top: 0; font-size: 32px; }
.panel-box ul { list-style: none; padding: 0; display: inline-block; text-align: left;}
.panel-box li { margin-bottom: 10px; }
.panel-box span { color: #aaaaaa; margin-right: 10px; }
.btn-link { display: inline-block; margin: 10px; padding: 10px 20px; background: #0056b3; color: white; text-decoration: none; border-radius: 20px; }

.scroll-spacer { height: 500vh; }