/* 全体リセット */
body, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Noto Sans, sans-serif;
}

body {
  opacity: 0;
  transition: opacity 0.55s ease-in-out;
}

body.loaded {
  visibility: visible;
}

/* 背景グラデーション */
body {
  /* 1つ目の背景：縦方向に透明から不透明へフェード */
  /* 2つ目の背景：横方向のグラデーション */
  background-image:   
    linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%),
    linear-gradient(90deg, #feecf8 0%, #fff9e7 50%, #fce9f2 100%);
  /* ブレンドモードで上のレイヤーが下のグラデーションをマスクする */
  background-blend-mode: normal; /* 場合によっては multiply や overlay などを試してみてください */
  /* 背景レイヤーの重なり順は宣言順（上に書いたものが前面） */
  background-repeat: no-repeat;
  background-size: cover;
}

/* セクション間の境界にぼかし効果を追加する例 */
/* 下側にぼかしを入れてセクション1とセクション2を自然に馴染ませる */
.hero-section::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 80px;
  /* セクション1 の背景色からセクション2 の背景色へ移行するグラデーション */
  background: linear-gradient(to bottom, transparent, #fdefef);
  filter: blur(17px);
  pointer-events: none; /* クリック等の干渉を防ぐ */
}

.thin {
  font-weight: normal;
  font-size: 1.0rem !important;
  margin-top: -10px;
  color: #0400005a !important;
  line-height: 0.7 !important;
}

h2 span.thin{
  display: block;
  margin-top: 0.45em !important;
}


/* ヘッダー全体 */
.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important; /* 画面幅いっぱいに設定 */
  height: auto !important;
  background:  rgb(249, 243, 247) !important;
  backdrop-filter: blur(10px); /* 背景をぼかして透明感を出す */
  color: black !important; /* 文字色を黒に変更 */
  display: flex !important;
  flex-direction: column; /* ヘッダー内の要素を縦に並べる */
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 20px !important; /* 左右に余白を確保 */
  z-index: 1000 !important;
  box-sizing: border-box !important; /* パディングを含めた計算 */ 
  border-bottom: 1px solid #ddd !important; /* 下に境界線を追加 */
}
/* ヘッダー内のコンテナ */
.header .container {
  width: 100% !important; /* コンテナをヘッダー全体に広げる */
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

/* ロゴとサブタイトルをまとめる */
.logo-container {
  display: flex;
  flex-direction: column; /* タイトルとサブタイトルを縦に並べる */
  align-items: left; /* 中央揃え */
  justify-content: center; /* 必要に応じて垂直方向の中央揃えも追加 */
  margin: 0; /* 余白をリセット */
  margin-top: -24px; /* タイトルとの間を詰める */
  padding: 0; /* パディングをリセット */
  position: relative; /* z-indexを有効にするために設定 */
}

/* ロゴ部分 */
.logo {
  font-size: 1.75rem !important;
  font-weight: bold !important;
  letter-spacing: -0.06em;
  color: rgb(1, 1, 1) !important; /* ロゴの文字色を黒に変更 */
  text-decoration: none !important;
  text-transform: uppercase !important; /* すべて大文字に */
  border-bottom: none; /* 下線を黒に変更 */
  margin-top: 5px !important;
  margin-bottom: -1px !important;
  z-index: 2; /* サブタイトルよりも前面に表示 */
  position: relative; /* z-indexを適用するために設定 */
}

/* サブタイトルのスタイル */
.subtitle {
  font-size: 2.5rem; /* 小さめの文字サイズ */
  font-family: 'Great Vibes', cursive; /* フォントを指定 */
  font-style: italic; /* 必要ならイタリック */
  color: rgba(227, 225, 225, 0.931); /* グレーで控えめな色 */
  margin-top: -40px; /* タイトルとの間を詰める */
  margin-bottom: -10px; /* 他の要素との余白 */
  text-align: center; /* 中央揃え */
  z-index: 0; /* タイトルよりも後ろに表示 */
  position: relative; /* z-indexを適用するために設定 */
}

.subtitle2 {
  font-size: 0.9rem; /* 小さめの文字サイズ */
  font-family: 'Great Vibes', cursive; /* フォントを指定 */
  color: rgba(136, 132, 132, 0.931); /* グレーで控えめな色 */
  margin-top: -33px; /* タイトルとの間を詰める */
  margin-bottom: -10px; /* 他の要素との余白 */
  text-align: left; /* 中央揃え */
  z-index: 1; /* タイトルよりも後ろに表示 */
  position: relative; /* z-indexを適用するために設定 */
}

/* 特別なボタンのスタイル */
.special-button {
  margin-right: auto; /* ナビゲーションメニューの左側に配置 */
  margin-left: 20px; /* ボタンを右側へ移動する */
  padding: 10px 20px;
  background-color: #d5e8fe7c; /* 淡い青色 */
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  border: none;
  border-radius: 15px; /* 角を丸く */
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ホバー時の効果 */
.special-button:hover {
  background-color:#fcd2eb7e; /* 背景色を変更 */
  color: #000; /* 文字色を黒に変更 */
}

/* ハンバーガーメニュー */
.hamburger-menu {
  display: none !important; /* デフォルトで非表示（PC表示時） */
  flex-direction: column !important;
  gap: 5px !important;
  cursor: pointer !important;
  position: fixed !important;
  top: 15px !important; /* ヘッダー内の適切な位置 */
  right: 15px !important; /* 右端から15pxの余白を確保 */
  z-index: 1001 !important; /* 他の要素より前に表示 */
  box-sizing: border-box !important; /* パディングを含めた幅の計算 */
}

.hamburger-menu span {
  display: block !important;
  width: 25px !important; /* ハンバーガー線の幅 */
  height: 3px !important; /* ハンバーガー線の高さ */
  background-color: black !important;
}

/* ナビゲーションメニュー */
.nav-links {
  display: flex !important; /* PC表示時は横並びで表示 */
  flex-direction: row !important; /* 横並び */
  position: static !important; /* デフォルト位置 */
  background-color: transparent !important; /* 背景色を消去 */
  padding: 0 !important;
  width: auto !important;
  z-index: 1000 !important;
}

.nav-links ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important; /* 横並び */
  gap: 20px !important;
}

.nav-links li {
  margin: 0 !important;
}

.nav-links a {
  text-decoration: none !important;
  color: black !important; /* 文字を黒に変更 */
  font-size: 1.0rem !important;
  font-weight: normal !important;
  background-color: transparent !important;
  text-align: left !important;
  border-radius: 8px; /* 少し丸みを追加 */
  transition: background-color 0.3s ease, color 0.3s ease; /* 背景色と文字色のスムーズな変化 */
}

.nav-links a:hover {
  color: #555 !important; /* ホバー時の文字色を変更 */
  background-color: white; /* ホバー時の背景を白に変更 */
}


/* ヒーローセクション */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* 画面全体の高さ */
  display: flex;
  align-items: center; /* 垂直中央揃え */
  justify-content: center; /* 水平中央揃え */
  color: white;
  overflow: hidden;
}

/* 背景動画 */
/* 修正：z-index を -1 から 0 に変更 */
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 動画を画面に合わせて拡大・縮小 */
  z-index: 0;
}

#unmute-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  cursor: pointer;
  border-radius: 5px;
  display: none; /* 最初は非表示 */
}

/* メッセージ部分 */
.message {
  position: relative;
  z-index: 1;
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8); /* 背景との区別を付ける影 */
  text-align: center;
  animation: fadeIn 1.5s ease-in-out; /* フェードインアニメーション */
  transition: opacity 0.5s ease-in-out;
}
/* フェードアウト用のクラス */
.fade-out {
  opacity: 0;
}

/* フェードイン用のクラス（フェードアウトから戻す際に利用） */
.fade-in {
  opacity: 1;
}


/* ヘッダー背景を白に変更 */
.header {
  background-color: white; /* ヘッダー背景色を白に */
  color: black; /* 文字色を黒に */
  border-bottom: 1px solid #ddd; /* 境界線を追加 */
}


.footer {
  background-color: #f5f5f5; /* 柔らかいグレー */
  color: #333;
  padding: 20px 0;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  /* 基本は baseline で揃え、必要に応じて個別マージンも設定 */
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
}


.footer-info {
  flex: 1;
  text-align: left;
  margin-top: 0;
  min-width: 250px;
}

.footer-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.footer-info p {
  font-size: 0.9rem;
  margin: 5px 0;
}

.footer-nav {
  flex: 1;
  /* ここで padding-top を設定することで、
     ナビゲーション内の文字の開始位置だけを下にずらす */
  padding-top: 75px;  /* 例：34px（必要に応じて調整） */
  text-align: left;
  width: 60%; 
  margin-left: 30%; /* 50% の余白を左側に挿入 */
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.footer-nav ul li {
  margin-bottom: 5px;
}

.footer-nav ul li a {
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
}

.footer-nav ul li a:hover {
  text-decoration: underline;
}

.footer-social {
  margin-top: 150px;
  display: flex;
  gap: 5px;
  margin-left: -50px;
}

.footer-social a img {
  width: 27px;
  height: 27px;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 0.8rem;
  border-top: 1px solid #ddd;
  padding-top: 10px;
}


/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .hamburger-menu {
      display: flex !important; /* モバイル表示時に表示 */
  }

  .nav-links {
      display: none !important; /* デフォルトで非表示 */
      flex-direction: column !important; /* 縦並び */
      position: fixed !important; /* スクロールに追従する */
      top: 60px !important;
      right: 0 !important;
      width: 300px !important;
      background-color: white !important; /* 背景を白に変更 */
      padding: 20px !important;
      border-radius: 5px !important;
      z-index: 1000 !important;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
  }

  .nav-links.active {
      display: flex !important; /* ハンバーガーメニューがクリックされたとき表示 */
  }

  .nav-links ul {
      flex-direction: column !important;
      gap: 10px !important;
  }

  .nav-links li {
      margin-bottom: 15px !important;
  }
}




/* 写真スライドショー */
.photo-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 200px; /* スライドショーの高さ */
  background-color: #f8f9fa;
}

.slider-container {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  overflow: hidden; /* はみ出る部分を隠す */
}

.slider-track {
  display: flex;
  width: 200%; /* 画像セットを2回繰り返し */
  animation: scrollPhotos 60s linear infinite; /* 無限スクロール */
}

.slider-track img {
  width: 250px; /* 各画像の幅 */
  height: 200px; /* 各画像の高さ */
  object-fit: cover;
}

/* 無限ループのアニメーション */
@keyframes scrollPhotos {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%); /* 全体の半分まで移動（途切れをなくす） */
  }
}





@media screen and (max-width: 768px) {

   /* ヒーローセクション */
  .hero {
    width: 100%;
    height: 600px; /* 画面全体の高さ */
}

  /* 背景動画 */
  .background-video {
    width: 100%;
    height: 600px;
  }

  .info-block {
    flex-direction: column; /* 縦並び */
    text-align: center; /* テキストを中央揃え */
  }

  .circle-image {
    width: 200px; /* 円形の画像を小さくする */
    height: 200px;
  }

  .text-container {
    text-align: center;
  }

  .info-text h2 {
    font-size: 1.8rem;
  }

  .info-text p {
    font-size: 1rem;
  }

  .learn-more {
    margin: 20px auto 0; /* 中央揃え */
  }

  .footer-container {
    text-align: left;
    margin-left: 45px;
  }

  .footer-info, .footer-nav, .footer-social {
    margin-bottom: 20px;
  }

  .footer-nav {
    padding-top: 60px;  /* 例：34px（必要に応じて調整） */
    width: 60%; 
    margin-left: 5%; /* 50% の余白を左側に挿入 */
  }

  .footer-nav ul li {
    margin-bottom: 0;
  }

  .footer-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .footer-info p {
    font-size: 0.8rem;
    margin: 5px 0;
  }

  .footer-nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 0.8rem;
  }

  .footer-social {
    margin-top: 130px;
    display: flex;
    gap: 5px;
    margin-left: -130px;
  }

  
}
/* レスポンシブ対応 */
@media screen and (max-width: 430px) {

  .header {
    padding: 0 10px !important; /* 左右に余白を確保 */
    }

  .hamburger-menu {
      display: flex !important; /* モバイル表示時に表示 */
  }

  .nav-links {
      display: none !important; /* デフォルトで非表示 */
      flex-direction: column !important; /* 縦並び */
      position: fixed !important; /* スクロールに追従する */
      top: 25px !important;
      right: 0 !important;
      width: 110px !important;
      height: 80px;
      background-color: white !important; /* 背景を白に変更 */
      padding: 7px !important;
      border-radius: 3px !important;
      z-index: 1000 !important;
      box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3) !important;
  }

  .nav-links.active {
      display: flex !important; /* ハンバーガーメニューがクリックされたとき表示 */
  }

  .nav-links ul {
      flex-direction: column !important;
      gap: 6px !important;
      margin: 0 !important;
      padding: 0 !important;
  }

  .nav-links li {
      margin-bottom: 8px !important;
      margin-bottom: 4px !important; /* 調整したい間隔に合わせて変更 */
      line-height: 1 !important; /* liにも適用してみる */
  }

  .nav-links a {
    font-size: 0.55rem !important;
    border-radius: 5px; /* 少し丸みを追加 */
    line-height: 1 !important; /* 行間を小さくする */
  }

  .nav-links ul li a {
    line-height: 1 !important;
  }




  /* サブタイトルのスタイル */
.subtitle {
  font-size: 1.20rem; /* 小さめの文字サイズ */
  margin-top: -22px; /* タイトルとの間を詰める */
  margin-bottom: -6px; /* 他の要素との余白 */
}

.subtitle2 {
  font-size: 0.5rem; /* 小さめの文字サイズ */
  margin-top: -34px; /* タイトルとの間を詰める */
  margin-bottom: -3px; /* 他の要素との余白 */
}

.logo-container {
  margin-top: -40px; /* タイトルとの間を詰める */
  padding: 0; /* パディングをリセット */
}

.logo {
  font-size: 0.95rem !important;
}

.special-button {
  margin-left: 12px; /* ボタンを右側へ移動する */
  padding: 6px 7px;
  font-size: 0.55rem;
  border-radius: 7px; /* 角を丸く */
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ハンバーガーメニュー */
.hamburger-menu {
  top: 8px !important; /* ヘッダー内の適切な位置 */
  right: 12px !important; /* 右端から15pxの余白を確保 */
}

.hamburger-menu span {
  display: block !important;
  width: 22px !important; /* ハンバーガー線の幅 */
  height: 2.5px !important; /* ハンバーガー線の高さ */
  background-color: black !important;
}

.thin {
  font-weight: normal !important;
  font-size: 0.55rem !important;
  margin-top: -5px;
}

h2 span.thin{
  display: block !important;
  margin-top: 0.45em !important;
}



/* 写真スライドショー */
.photo-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 110px; /* スライドショーの高さ */
  background-color: #f8f9fa;
}

.slider-container {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  overflow: hidden; /* はみ出る部分を隠す */
}

.slider-track {
  display: flex;
  width: 200%; /* 画像セットを2回繰り返し */
  animation: scrollPhotos 60s linear infinite; /* 無限スクロール */
}

.slider-track img {
  width: 135px; /* 各画像の幅 */
  height: 135px; /* 各画像の高さ */
  object-fit: cover;
}

/* 無限ループのアニメーション */
@keyframes scrollPhotos {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%); /* 全体の半分まで移動（途切れをなくす） */
  }
}

     /* ヒーローセクション */
     .hero {
      width: 100%;
      height: 330px; /* 画面全体の高さ */
  }
  
    /* 背景動画 */
    .background-video {
      width: 100%;
      height: 330px;
    }
  
    .info-block {
      flex-direction: column; /* 縦並び */
      text-align: center; /* テキストを中央揃え */
    }
  
    .circle-image {
      width: 110px; /* 円形の画像を小さくする */
      height: 110px;
    }
  
    .text-container {
      text-align: center;
    }
  
    .info-text h2 {
      font-size: 1.0rem;
    }
  
    .info-text p {
      font-size: 0.6rem;
    }
  
    .learn-more {
      margin: 12px auto 0; /* 中央揃え */
    }
  
    .footer-container {
      text-align: left;
      margin-left: 25px;
    }
  
    .footer-info, .footer-nav, .footer-social {
      margin-bottom: 12px;
    }
  
    .footer-nav {
      padding-top: 35px;  /* 例：34px（必要に応じて調整） */
      width: 60%; 
      margin-left: 3%; /* 50% の余白を左側に挿入 */
    }

    .footer-nav ul {
      line-height: 0.95;
    }
  
    .footer-nav ul li {
      margin-bottom: 0;
    }
  
    .footer-info h3 {
      font-size: 0.7rem;
      margin-bottom: 6px;
    }
  
    .footer-info p {
      font-size: 0.45rem;
      margin: 3px 0;
    }
  
    .footer-nav ul li a {
      text-decoration: none;
      color: #333;
      font-size: 0.45rem;
      line-height: 1.1;  /* 行間を狭く */
      margin-bottom: 0;  /* 下の余白をなくす */
    }

    
  
    .footer-social {
      margin-top: 80px;
      display: flex;
      gap: 3px;
      margin-left: -120px;
    }

    .footer-social a img {
      width: 16px;
      height: 16px;
    }

    .footer-bottom {
      margin-top: 10px;
      font-size: 0.5rem;
      padding-top: 7px;
    }

}
