/* Googleフォント */
@import url('https://fonts.googleapis.com/css2?family=BIZ+UDPGothic&display=swap');

/* 全体のリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* ナビゲーションバー */
/* ヘッダーの設定 */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  z-index: 1000;
}

/* ロゴのスタイル */
.logo {
  display: flex;
  align-items: center; /* 🔹 ロゴとテキストを中央揃え */
}

.logo a {
  display: flex; /* 🔹 リンク内の要素を横並びにする */
  align-items: center; /* 🔹 ロゴ画像とテキストを中央揃え */
  text-decoration: none; /* 🔹 下線をなくす */
  color: inherit; /* 🔹 テキストの色を親要素から継承 */
  gap: 5px; /* 🔹 ロゴとテキストの間隔 */
}

/* ロゴ画像のサイズ調整 */
.logo img {
  height: 25px; /* 🔹 ロゴのサイズ */
  width: auto;
}

/* テキストのスタイル */
.logo span {
  font-size: 1.2em; /* 🔹 テキストの大きさ */
  font-weight: 600; /* 🔹 太字にする */
}

/* スマホ対応 */
@media (max-width: 768px) {
  .logo img {
      height: 25px; /* 🔹 モバイル用のサイズ調整 */
  }
}

.logo a {
  text-decoration: none; /* 下線をなくす */
  color: inherit; /* 親要素の色を継承（デフォルトの色） */
  font-weight: inherit; /* フォントの太さも継承 */
}

.logo a:link,
.logo a:visited,
.logo a:hover,
.logo a:focus,
.logo a:active {
    text-decoration: none; /* 全ての状態で下線なし */
    color: inherit; /* どの状態でも色を変更しない */
    font-weight: inherit; /* フォントの太さも変えない */
    outline: none; /* クリック後の枠線を消す */
}

/* ナビゲーションメニュー */
nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: #ffaaaa;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    font-size: 1.3rem;
    cursor: pointer;
    margin-left: 20px;
}

/* ヒーローセクション */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.0)), url('https://source.unsplash.com/1600x900/?nature,landscape') no-repeat center center/cover;
    color: #ffaaaa;
    text-align: center;
    padding: 20px;
}

.hero-text h1 {
    font-size: 2.5em;
    font-weight: 600;
}

.hero-text p {
    font-size: 1.1em;
    margin: 10px 0;
}

.btn {
    display: inline-block;
    background: #ffaaaa;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background: #ffaaaa;
}

/* コンテンツセクション */
.content {
    text-align: center;
    padding: 80px 20px;
    background: #f7f7f7;
}

.content h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.content p {
    font-size: 0.9em;
    max-width: 800px;
    margin: 0 auto;
    letter-spacing: 0.05em;
    -webkit-text-size-adjust: none; /* iOSの自動リンク防止 */
    -webkit-user-select: none; /* iOSでの選択不可 */
    user-select: none; /* テキスト選択を防ぐ（必要なら削除） */
    text-decoration: none; /* 万が一リンク化されても下線を消す */
    pointer-events: none; /* iOSのChromeでクリックを無効化 */
}

/* フッター */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 61px;
        right: 0;
        width: 200px;
        background: rgba(0, 0, 0, 0.5);
        padding: 10px;
        text-align: right;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .nav-active {
        display: flex;
    }
}

/* ヒーローテキスト */
.hero-text {
  position: relative; /* 🔹 スクロールアイコンの基準点 */
  display: flex;
  flex-direction: column;
  align-items: center; /* 🔹 中央揃え */
}

/* スクロール示唆アイコン */
.scroll-down {
  display: block;
  width: 15px;
  height: 25px;
  border: 2px solid #ffaaaa;
  border-radius: 50px;
  margin-top: 40px; /* 🔹 `p` の下から40pxの間隔を固定 */
  position: relative; /* 🔹 `p` の下に正しく配置 */
  animation: bounce 1.5s infinite ease-in-out;
}

/* ドットの動き */
.scroll-down::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: #ffaaaa;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  animation: move-down 1.5s infinite ease-in-out;
}

/* 縦方向のバウンドアニメーション */
@keyframes bounce {
  0%, 100% {
      transform: translateX(-50%) translateY(0);
  }
  50% {
      transform: translateX(-50%) translateY(10px);
  }
}

/* ドットが下に落ちるアニメーション */
@keyframes move-down {
  0% {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
  }
  100% {
      opacity: 0;
      transform: translateX(-50%) translateY(20px);
  }
}