/* =========================================
   Base / Reset
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif; /* 全体のフォント設定を追加（必要に応じて） */
  /* プルダウン更新や、端に達した時のバウンス効果を無効化 */
}


/* =========================================
   Header / Navbar
   ========================================= */
.navbar {
  position: fixed; /* 画面に固定 */
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  z-index: 1000; /* 重なり順を一番上に */

  /* ガラスモーフィズム効果 */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.navbar a.logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 3px;
  position: relative; /* z-indexを有効にするために追加 */
  z-index: 1100; /* メニュー(1050)より上に設定 */
  
  /* 追加・修正：リンクの装飾を消す */
  text-decoration: none; 
  color: white;         
  display: inline-block; 
  transition: 0.3s;
}
/* ホバーした時に少し透明にするなどの演出を入れるとよりリッチです */
.navbar a.logo:hover {
  opacity: 0.7;
}

.navbar ul {
  display: flex;
  list-style: none;
}

.navbar ul li {
  margin: 0 20px;
}

.navbar a {
  text-decoration: none;
  color: white;
  font-size: 0.9rem;
  transition: 0.3s;
  opacity: 0.8;
}

.navbar a:hover {
  opacity: 1;
  letter-spacing: 1px; /* ホバーで少し広がるリッチな演出 */
}

/* PC用 Contactボタン（必要に応じて表示切り替え） */
.contact-btn {
  border: 1px solid white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: 0.3s;
  display: none; /* シンプルにするため一旦非表示、または位置調整 */
}

.contact-btn:hover {
  background: white;
  color: black;
}


/* =========================================
   Hamburger Menu
   ========================================= */

/* チェックボックスを隠す */
.menu-toggle {
  display: none;
}

/* 3本線アイコンのスタイル */
.menu-icon {
  cursor: pointer;
  width: 30px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1100; /* メニューより上に */
  margin-left: auto; /* 右側に寄せる */
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease;
}

/* メニュー本体（初期状態は隠す） */
.nav-menu {
  position: fixed;
  top: 0;
  right: -100%; /* 右側に隠しておく */
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 1);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050; /* navbar(1000)より上で、ロゴ(1100)より下 */
  transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1); /* スムーズな加速 */
}

.nav-menu ul {
  display: flex;
  flex-direction: column; /* 縦並び */
  text-align: center;
  list-style: none;
}

.nav-menu ul li {
  margin: 25px 0;
}

.nav-menu a {
  font-size: 1.5rem;
  letter-spacing: 4px;
  text-decoration: none;
  color: white;
}

/* 下線アニメーション */
.nav-menu ul li a {
  position: relative;
  padding-bottom: 5px;
}

.nav-menu ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: white;
  transition: 0.3s;
  transform: translateX(-50%);
}

.nav-menu ul li a:hover::after {
  width: 100%;
}

/* メニュー内のContactボタン専用スタイル */
.menu-contact-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 40px;
  border: 1px solid white;
  border-radius: 30px;
  font-size: 1.1rem !important;
  transition: 0.3s;
}

.menu-contact-btn:hover {
  background: white;
  color: black !important;
}


/* =========================================
   Menu Interaction (Check/Open Logic)
   ========================================= */

/* メニューが開いている時、親のbodyとスクロールコンテナのスクロールを止める */
body:has(#menu-toggle:checked),
body:has(#menu-toggle:checked) .scroll-container {
  overflow: hidden;
}

/* チェックが入った時（アイコンがクリックされた時） */
#menu-toggle:checked ~ .nav-menu {
  right: 0; /* メニューをスライドイン */
}

/* 3本線を「×」に変形 */
#menu-toggle:checked ~ .menu-icon span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

#menu-toggle:checked ~ .menu-icon span:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked ~ .menu-icon span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* =========================================
   Responsive Adjustments
   ========================================= */
@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }
  .nav-menu {
    max-width: 100%; /* スマホでは全画面 */
  }
}


/* =========================================
   Scroll Sections & Panels
   ========================================= */

/* スクロールの親要素 */
.scroll-container {
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden; /* コンテナ内の横スクロールを禁止 */
  scroll-snap-type: y mandatory; /* 縦方向に強制スナップ */
  scroll-behavior: smooth;
  
  /* ここに追加：スクロールの端でのバウンスやリロードを禁止 */
  overscroll-behavior-y: none; 
  /* iOS Safari向けの古い記述（必要に応じて） */
  -webkit-overflow-scrolling: touch;
}

/* 各セクションの設定 */
.panel {
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start; /* セクションの先頭で止まる */
  position: relative;
}

/* コンテンツの装飾 */
.content {
  text-align: center;
  color: white;
  font-family: "Helvetica Neue", Arial, sans-serif;
  animation: fadeInUp 1.2s ease forwards;
}

.content h1 {
  font-size: 5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
    .content h1 {
        /* ここでサイズを上書きします。*/
        font-size: 3rem; 
        letter-spacing: 0.1em;
    }
}

/* フェードインアニメーション */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* セクションごとの背景色 */
.one {
  background: linear-gradient(45deg, #000 0%, #000 100%);
}

.two {
  background: linear-gradient(45deg, #FFF 0%, #000 100%);
}

.three {
  background: linear-gradient(45deg, #1e3c72 0%, #2a5298 100%);
}