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

body {
  font-family: 'Noto Serif JP', serif;
  color: #333;
  line-height: 2.0;
  overflow-x: hidden;
  background: #000;
}

.scroll-indicator {
  display: none; /* 初期状態は非表示 */
  position: fixed;
  bottom: 20px;
  right: 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  animation: fadeIn 2s ease-in-out infinite alternate;
}

.scroll-indicator .scroll-text {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 8px;
  text-transform: uppercase;
  animation: blink 1.5s step-start infinite;
}

.scroll-indicator .scroll-icon {
  font-size: 2rem;
  color: #fff;
  animation: bounce 1.5s ease-in-out infinite;
}

@keyframes blink {
  50% {
      opacity: 0.5;
  }
}

@keyframes bounce {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(10px);
  }
}

@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

/* ナビゲーションヘッダー */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.0rem;
  background: rgba(45, 48, 58, 0);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.5);
  z-index: 1000;
  color: #ffffff;
  transition: background-color 0.5s ease, color 0.5s ease, border-bottom-color 0.5s ease;
}

.nav-header .logotype {
  font-family: 'Noto Serif JP', serif;
  font-size: 2.0em;
  color: inherit;
}

.logotype-image {
  height: 30px; /* Adjust the height as needed */
  width: auto; /* Maintain aspect ratio */
  display: block;
}

.nav-header nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* 言語トグル（JP/EN） */
.lang-toggle {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  letter-spacing: .05em;
  margin-right: 1.5rem;
  color: inherit;
  display: flex;
  gap: .25rem;
  align-items: center;
  z-index: 998;          /* ハンバーガーより上にしたい場合はこれを大きく */
}

.lang-toggle a {
  text-decoration: none;
  color: inherit;
  opacity: 0.85;
  transition: opacity .3s;
}

.lang-toggle a:hover,
.lang-toggle a:focus {
  opacity: 1;
}

@media (max-width: 768px) {
  /* モバイル時はメニュー内に入れたいなら .menu__box に複製する方法も可 */
  .lang-toggle {
    position: relative;
    font-size: 0.9rem;
    margin-right: 1.0rem;
  }
}

/* ハンバーガーメニューのチェックボックスを非表示にする */
#menu__toggle {
  opacity: 0;
  position: absolute;
}

.menu__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1001;
  margin-left: auto;
}

.menu__btn span {
  position: relative;
  display: block;
  width: 100%;
  height: 6px;
  background-color: var(--menu-btn-color, #ffffff);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border-radius: 3px;
}

.menu__btn span::before,
.menu__btn span::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 6px;
  background-color: var(--menu-btn-color, #ffffff);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border-radius: 3px;
}

.menu__btn span::before {
  top: -13px;
}

.menu__btn span::after {
  top: 13px;
}

/* メニューがチェックされたときのスタイル変更（バツアイコンに変形） */
#menu__toggle:checked + .menu__btn > span {
  transform: rotate(45deg);
  background-color: #ffffff !important;
}

#menu__toggle:checked + .menu__btn > span::before {
  transform: rotate(-90deg);
  top: 0;
}

#menu__toggle:checked + .menu__btn > span::after {
  transform: rotate(-90deg);
  top: 0;
}

.menu__box {
  display: flex;
  flex-direction: column;
  list-style-type: none;
  position: fixed;
  visibility: hidden;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 1.4em 0;
  text-align: center;
  background-color: rgba(45, 48, 58, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 999;
  transition: visibility 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}

#menu__toggle:checked ~ .menu__box {
  visibility: visible;
  opacity: 1;
}

.menu__item {
  display: block;
  padding: 12px 24px;
  color: #ffffff;
  font-family: 'Noto Serif JP', serif;
  font-size: 3.0em;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.menu__item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ヒーローヘッダー */
.hero-header {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100vh + 30px); /* はみ出る分を高さに追加 */
  margin-bottom: -30px; /* 下に30px分はみ出る */
  z-index: 0;
}

.image-slider {
  position: fixed;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.image-slider picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  object-fit: contain; /* 画像を縦横比を保持しながら表示 */
  object-position: center; /* 左右方向の中央に揃える */
}

.image-slider picture.active {
  opacity: 1;
}

.image-slider img,
.image-slider source {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-header .hero-content {
  position: fixed;
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Adjust for centering */
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-title {
  font-size: 2.0rem; /* 文字サイズ */
  color: white;
  opacity: 0; /* 初期状態は透明 */
  transform: translateY(20px); /* 少し下から始まる */
  animation: fadeInUp 2s ease-out forwards; /* アニメーションを適用 */
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px); /* 少し下に移動 */
  }
  100% {
    opacity: 1;
    transform: translateY(0); /* 元の位置に戻る */
  }
}

/* セクションのスタイル */
.scroll-section {
  position: relative;
  top: 0;
  width: 100%;
  min-height: calc(100vh + 50px);
  display: flex;
  justify-content: center;
  z-index: 0;
  background: transparent;
  padding: 20px 20px 100px;
  box-sizing: border-box;
  border-radius: 0px 0px 0 0;
  margin-bottom: -30px;
}

/* コンテンツラッパー */
.content-wrapper {
  width: 90%;
  max-width: 1500px;
  padding-top: 100px;
}

.content-wrapper {
    text-align: left; /* 左寄せを強制 */ 
}

.section-title {
  font-size: calc(2rem + 0.5vw); /* 画面幅に応じて文字サイズが変化 */
  font-weight: bold;
  display: block;
  position: relative; /* サブタイトルを配置するため */
  display: inline-block;
}

.section-one .section-title {
  color: #fff; /* サブタイトルの色を白に */
}

.divider {
  margin-top: 0rem; /* タイトルとの余白 */
  margin-bottom: 1rem; /* タイトルとの余白 */
  border-top: 1px solid #000; /* 区切り線 */
  width: 100%; /* 横幅いっぱい */
}

.section-one .divider,
.section-two .divider {
  border-top: 1px solid #fff; /* 区切り線 */
}

/* 本文エリア */
.section-body {
  display: flex;
  flex-wrap: wrap; /* コンテンツが画面幅に合わせて折り返される */
  gap: 5rem;
  text-align: left; /* 左寄せ */
}

/* 説明文 */
.section-description {
  flex: 1;
  font-size: calc(1.0rem + 0.2vw); /* 画面幅に応じて文字サイズが変化 */
  line-height: 2.5;
  color: #666666;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform; /* Chrome向けの最適化 */
}

.section-description.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-description .highlight {
  display: block; /* インライン要素のためにブロック要素に設定 */
  text-align: center; /* 中央寄せ */
  color: #fff; /* 文字色（濃い黒）を指定 */
  margin-bottom: 20px; /* 適度な余白を追加 */
  font-size: calc(1.2rem + 0.5vw);
  line-height: 2.5; /* 行間を調整 */
}

.section-one .section-description {
  color: #fff; /* 本文の色を白に */
}


/* セクション1、セクション2の新しいレイアウト */
.section-one .section-body,
.section-two .section-body {
  display: flex;
  flex-direction: column; /* 縦に並べる */
  gap: 2rem; /* 各ペアの間に余白を追加 */
}

.section-one .content-pair,
.section-two .content-pair {
  display: flex;
  flex-direction: row; /* 説明文と画像を横に並べる */
  align-items: flex-start; /* 上揃え */
  overflow: visible;
  margin-bottom: 3.0em;
}

.section-one .content-pair .section-description,
.section-one .content-pair .section-slider,
.section-two .content-pair .section-description,
.section-two .content-pair .section-slider {
  flex: 1; /* 幅を均等に配分 */
}

.section-one .content-pair .section-description,
.section-two .content-pair .section-description {
  margin-right: 1rem; /* 説明文と画像の間に余白を追加 */
}

.section-one .section-description,
.section-two .section-description {
  color: #fff; /* 説明文の文字色を白に */
}

.section-one .content-pair .section-image img
.section-two .content-pair .section-image img {
  width: 100%; /* 横幅を親要素に合わせる */
  height: auto; /* アスペクト比を保持 */
  border-radius: 0px; /* 画像の角を丸める */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 画像に影を追加 */
  cursor: pointer; /* クリック可能なことを示す */
  transition: transform 0.3s ease, opacity 0.3s ease; /* ホバー時のアニメーション */
}

.section-one .content-pair .section-image img:hover,
.section-two .content-pair .section-image img:hover {
  transform: scale(1.05); /* ホバー時に少し拡大 */
  opacity: 0.8; /* 少し透明に */
}


/* 画像エリア */
.section-images {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 横2列 */
  grid-template-rows: repeat(2, 1fr); /* 縦2行 */
  gap: 1rem; /* 画像間の余白 */
}

.section-images img,
.section-slider .slider-images img {
  width: 100%; /* 画像をグリッド内で均等に配置 */
  height: auto;
  object-fit: cover; /* 画像のアスペクト比を保持 */
  border-radius: 0px; /* 角を丸める */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 画像の影 */
  transition: transform 0.3s ease, opacity 0.3s ease; /* アニメーションを追加 */
}

.section-images img:hover,
.section-slider .slider-images img:hover {
  transform: scale(1.05); /* 画像を少し拡大 */
  opacity: 0.8; /* 少し透明に */
}

.section-slider {
  position: relative;
  width: 100%;
  max-width: 600px; /* 画像の最大幅と合わせる */
  margin: 0 auto; /* 中央揃え */
}

.slider-images {
  width: 100%;
  position: relative; /* ボタンを画像内で絶対配置するため */
}

.slider-images img {
  width: 100%;
  height: auto;
  border-radius: 0px; /* 角を丸める */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 画像に影を追加 */
  transition: opacity 0.3s ease;
}

/* 左右ボタン */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  font-size: 1.0rem; /* ボタンサイズ */
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  z-index: 2; /* ボタンを画像の上に表示 */
  color: #000;
}

.slider-btn i {
  display: inline-block;
  line-height: 1; /* 縦位置を正確に設定 */
  vertical-align: middle; /* 垂直中央揃え */
}

.slider-btn.prev-btn {
  left: 10px; /* 左ボタンの位置 */
}

.slider-btn.next-btn {
  right: 10px; /* 右ボタンの位置 */
}

/* ホバー時の拡大 */
.slider-btn:hover {
  transform: translateY(-50%) scale(1.2); /* 垂直中央位置は維持しつつ拡大 */
}

/* 地図のスタイル */
.location-map iframe {
  width: 100%; /* 横幅を全体に広げる */
  max-width: 900px; /* 最大幅を設定 */
  height: 450px; /* 固定高さ */
  border-radius: 10px; /* 角を丸める */
  margin: 0 auto; /* 中央揃え */
  display: block; /* ブロック要素化 */
}

/* 詳細テキストのスタイル */
.location-details {
  text-align: center; /* テキストを中央揃え */
  font-size: 1rem; /* 文字サイズ */
  line-height: 1.8; /* 行間を調整 */
  margin-top: 1.5rem; /* マップとの余白 */
}


.section-one {
  background-color: #000;
  color: #fff;
}

.section-two {
  background-color: #414141;
  color: #fff;
}

.section-three {
  background-color: #dee4da;
  color: #333;
  border-radius: 0px 0px 0px 0px;
  z-index: 1;
}

.section-four {
  background-color: #fff;
  color: #333;
  border-radius: 0px 0px 0px 0px;
  z-index: 0;
}

.scroll-content {
  padding: 2rem;
  width: 80%;
  text-align: center;
}

.red {
  color: #f06c64;
}

/* アンカー要素のスタイル */
#home-anchor,
#section1-anchor,
#section2-anchor,
#section3-anchor,
#section4-anchor {
  scroll-margin-top: 0px; /* ヘッダーの高さに合わせて調整 */
}

/* スマホ画面向けのスタイル調整 */
@media (max-width: 768px) {
  .nav-header {
    padding: 1.0rem; /* パディングを1.0remに変更 */
  }

  .logotype-image {
    height: 20px; /* ロゴ画像を小さく */
  }

  .menu__btn {
    width: 35px; /* ハンバーガーアイコンのサイズを小さく */
    height: 35px;
  }

  .menu__btn span,
  .menu__btn span::before,
  .menu__btn span::after {
    height: 4px; /* ハンバーガーアイコンのラインを細く */
  }

  .menu__btn span::before {
    top: -12px; /* ハンバーガーアイコンのラインの間隔の広さ */
  }

  .menu__btn span::after {
    top: 12px; /* ハンバーガーアイコンのラインの間隔の広さ */
  }

  .menu__item {
    font-size: 2.0em;
  }

  .image-slider picture {
    height: 100%; /* コンテナの高さを画面全体に合わせる */
    width: 100%; /* コンテナの幅を画面全体に合わせる */
    overflow: hidden; /* はみ出す部分を隠す */
  }

  .image-slider picture img {
    height: 100%; /* 高さを画面に合わせる */
    width: auto; /* 縦横比を維持しながら幅を調整 */
    position: absolute; /* 中央揃えを有効にする */
    top: 0; /* 縦方向で中央揃え */
    left: 50%; /* 横方向の中央基準 */
    transform: translateX(-50%); /* 横方向に中央揃え */
    object-fit: cover; /* コンテナを覆うように設定 */
    object-position: center; /* 画像の中央を基準に配置 */
  }

  .hero-title {
    font-size: 1.0rem; /* 文字サイズ */
  }
    
  .scroll-section {
    padding-top: 50px;
  }

  .content-wrapper {
    padding-top: 0px;
    width: 95%;
  }
  
  .section-body {
    display: flex;
    flex-direction: column; /* 子要素を縦並びに */
    gap: 1.5rem;
  }

  .section-title {
    display: block;
    font-size: calc(1.5rem + 0.5vw);
    margin-left: 0px;
  }

  .section-one .divider,
  .section-two .divider {
    border-top: 1px solid #fff; /* 区切り線 */
  }

  .section-description .highlight {
    font-size: calc(1.0rem + 0.5vw);
  }
  
  .section-description {
    font-size: calc(0.8rem + 0.5vw); /* 画面幅に応じて文字サイズが変化 */
  }

  .section-images {
    margin-top: 0; /* デフォルトの余白をリセット */
    gap: 0.5em; /* 画像間の余白 */
  }

  .section-one .content-pair,
  .section-two .content-pair {
    flex-direction: column; /* 説明文の下に画像を配置 */
  }

  .section-one .content-pair .section-description,
  .section-two .content-pair .section-description {
    margin-right: 0; /* 余白をリセット */
    margin-bottom: 1rem; /* 説明文と画像の間に余白を追加 */
  }
  
  .location-map iframe {
    height: 300px; /* 高さを縮小 */
  }
  
  .location-details {
      font-size: 0.9rem; /* 文字サイズを小さく */
  }
  /* アンカー要素のスタイル */
  #home-anchor,
  #section1-anchor,
  #section2-anchor,
  #section3-anchor,
  #section4-anchor {
    scroll-margin-top: 20px; /* ヘッダーの高さに合わせて調整 */
  }
}
