/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: "Segoe UI Semilight", "Inter", "Noto Sans JP", "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: #fff;
}

/* ヒーローセクション（背景写真＋中央テキスト） */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background: url('../images/etra.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2rem;
  letter-spacing: 1px;
}

/* ページ下部のナビゲーション（PC表示） */
.bottom-nav {
  position: absolute;
  bottom: 30px;
  left: auto;
  width: 100%;
  z-index: 2;
  transition: right 0.4s ease;
}

.bottom-nav ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
}

.bottom-nav a {
  text-decoration: none;
  color: #fff;
  font-size: 0.95rem;
  transition: opacity 0.3s;
}

.bottom-nav a:hover {
  opacity: 0.7;
}

/* ハンバーガーメニュー（スマホ用） */
.menu-toggle {
  display: none; /* PCでは非表示 */
}


/* ===== フッター ===== */
footer {
  background: #000;
  text-align: center;
  padding: 15px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== ABOUTページ専用 左寄せレイアウト ===== */
.about-hero {
  justify-content: flex-start; /* 縦方向は上に寄せる */
  align-items: flex-start;     /* 横方向は左に寄せる */
  text-align: left;
  padding: 100px 80px; /* 上下左右の余白を確保 */
  height: auto; /* 高さを可変にして文章に合わせる */
  min-height: 100vh;
}

.about-hero .hero-content.left-layout {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.about-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.about-info h2 {
  font-size: 1.2rem;
  margin-top: 30px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 5px;
}

.about-info p {
  line-height: 1.8;
}

.about-info a {
  color: #fff;
  text-decoration: underline;
}

.about-info a:hover {
  opacity: 0.8;
}

/* ===== ABOUTページ専用：下ナビ重なり防止 ===== */
.about-hero .bottom-nav {
  position: static;        /* ← 絶対配置を解除 */
  margin-top: 60px;        /* コンテンツとの間に余白を取る */
  text-align: center;
}

.about-hero .bottom-nav ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding: 0;
}

.about-hero .bottom-nav a {
  text-decoration: none;
  color: #fff;
  font-size: 0.95rem;
  transition: opacity 0.3s;
}

.about-hero .bottom-nav a:hover {
  opacity: 0.7;
}

/* ===== CONTACTページ 左寄せレイアウト ===== */
.contact-hero {
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  padding: 100px 80px;
  height: auto;
  min-height: 100vh;
}

.contact-hero .hero-content.left-layout {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.contact-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contact-hero .contact-message {
  font-size: 1rem;
  margin-bottom: 25px;
}

.contact-hero .contact-info {
  margin-bottom: 25px;
  line-height: 1.8;
}

.contact-hero .contact-info a {
  color: #fff;
  text-decoration: underline;
}

.contact-hero .contact-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 20px;
  line-height: 1.7;
}

/* ===== 下ナビ重なり防止 ===== */
.contact-hero .bottom-nav {
  position: static;
  margin-top: 60px;
  text-align: center;
}

.contact-hero .bottom-nav ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding: 0;
}

.contact-hero .bottom-nav a {
  text-decoration: none;
  color: #fff;
  font-size: 0.95rem;
  transition: opacity 0.3s;
}

.contact-hero .bottom-nav a:hover {
  opacity: 0.7;
}

/* ===== NEWSページ 左寄せレイアウト ===== */
.news-hero {
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  padding: 100px 80px;
  height: auto;
  min-height: 100vh;
}

.news-hero .hero-content.left-layout {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.news-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.news-hero .news-content {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

/* ===== 下ナビ重なり防止 ===== */
.news-hero .bottom-nav {
  position: static;
  margin-top: 60px;
  text-align: center;
}

.news-hero .bottom-nav ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding: 0;
}

.news-hero .bottom-nav a {
  text-decoration: none;
  color: #fff;
  font-size: 0.95rem;
  transition: opacity 0.3s;
}

.news-hero .bottom-nav a:hover {
  opacity: 0.7;
}

/* ===== Instagram ドロップダウン機能 ===== */
.instagram-dropdown {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.instagram-dropdown .insta-submenu {
  display: none;
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  padding: 10px 15px;
  border-radius: 8px;
  list-style: none;
  text-align: center;
  z-index: 2000;
  min-width: 180px;
  opacity: 0;
  transition: opacity 0.3s ease, top 0.3s ease;
}

/* ホバーで表示 */
.instagram-dropdown:hover .insta-submenu {
  display: block;
  opacity: 1;
  bottom: 100%;
}

.insta-submenu li {
  margin: 8px 0;
}

.insta-submenu a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.3s ease;
}

.insta-submenu a:hover {
  opacity: 0.7;
}

/* ===== ホームページ専用：背景とテキストのフェードイン ===== */
.fade-bg-home {
  opacity: 0;
  transition: opacity 2s ease;
}

.fade-bg-home.fade-in {
  opacity: 1;
}

/* etra文字のフェードイン */
.fade-text-home {
  opacity: 0;
  transition: opacity 1.8s ease;
  transform: translateY(10px);
}

.fade-text-home.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== スマホ表示 ===== */
@media (max-width: 768px) {
  /* 左寄せページの共通修正 */
  .about-hero,
  .contact-hero,
  .news-hero {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
  }

  .about-hero .hero-content,
  .contact-hero .hero-content,
  .news-hero .hero-content {
    max-width: 90%;
  }

  /* メニューボタン */
  .menu-toggle {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 2000;
  }

  /* サイドメニュー */
  .bottom-nav {
    position: fixed;
    top: 0;
    right: -250px; /* 初期は隠す */
    left: auto;
    width: 250px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    z-index: 1500;
  }

  .bottom-nav ul {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center; /* ✅ テキストを中央寄せ */
  }

  /* 開いた状態 */
  .bottom-nav.active {
    right: 0; /* スライドイン */
  }

  /* 下部ナビはスマホ時に固定表示ではなくサイド表示へ */
  .bottom-nav ul a {
    font-size: 1.1rem;
  }

  /* ヒーローテキスト調整 */
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .instagram-dropdown {
    position: relative;
    display: block; /* ← 横並びを解除（これが重要！） */
  }

  .instagram-dropdown .insta-submenu {
    position: static;
    transform: none;
    background: none;
    padding: 0;
    opacity: 1;
    display: none; /* 初期は非表示 */
  }

  .instagram-dropdown.open .insta-submenu {
    display: block;
  }
  /* オーバーレイ背景（スマホ時のみ） */
  .overlay-bg {
    display: none; /* 初期は非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1400; /* サイドメニューの下に配置 */
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  /* 表示状態 */
  .overlay-bg.active {
    display: block;
    opacity: 1;
  }
}


