/* 全体の設定 */
html {
    height: 100%;
}

body {
    height: 100vh;
    margin: 0;
    padding: 0;
}

#bg-video{
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -100;
  background: url('poster.jpg') no-repeat;
  background-size: cover;
}

#bg-image {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  z-index: -100;
  background: url("../img/back.gif") no-repeat center center;
  background-size: cover;
  background-color: #FFE100; /* 背景色を指定 */
}

/* セクションのデフォルトスタイル */
section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;  /* ここを100%からautoに変更 */
  margin-bottom: 0px; /* セクション間に余白を追加 */
}

/* 初期状態は非表示 */
.fade-in {
  opacity: 0;
  transform: translateY(20px); /* 少し下からスタート */
  transition: opacity 1s ease, transform 1s ease;
}

/* ビューに入った時に表示される状態 */
.fade-in.visible {
  opacity: 1;
  transform: translateY(0); /* 元の位置に戻る */
}

/* ホバー時に拡大する共通の効果 */
.hover-effect {
  transition: transform 0.3s ease; /* 変形をスムーズにするためのトランジション */
}

.hover-effect:hover {
  transform: scale(1.08); /* 1.倍に拡大 */
}

/* 通常時のドロップシャドウ効果 */
.drop-shadow-effect {
  filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.7));
}

/* Shine効果 */
.shine-effect {
  position: relative;
  display: inline-block; /* 画像を囲むdivに適用 */
  width: 100%; /* ボタンの幅に合わせる */
  height: auto; /* 高さを自動調整 */
  overflow: hidden;
}

.shine-effect img {
  display: block; /* 画像の余白を取り除く */
  width: 100%; /* 親要素に合わせて幅を100%に */
  height: auto; /* 高さは自動で調整 */
  object-fit: contain; /* 画像の縦横比を維持して親要素内に収める */
}

.shine-effect .shine {
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  transform: skewX(45deg);
/*  transition: left 0.5s ease-in-out;*/
  animation: shineMove 4.0s linear infinite; /* シャインのアニメーション */
}

@keyframes shineMove {
  from {
    left: -150%;
  }
  to {
    left: 1500%;
  }
}

/*
.shine-effect:hover .shine {
  left: 100%;
}
*/

* {
  box-sizing: border-box;
}
body {
  font-family:'Avenir','Helvetica, Neue','Helvetica','Arial';
}

.wrapper {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: 100%;
  width: 100%;
  gap: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 左右のコンテンツ */
.left-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  min-width: 150px;
}

.left-content img {
  max-width: 350px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.right-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px 20px 0px;
  min-width: 150px;
}

.right-content img {
  max-width: 300px;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 1% auto; /* 上下に余白を追加 */
}

/* ヘッダーセクション */
.header-section {
  position: fixed;           /* ← これで固定 */
  top: 0;                    /* 上端に固定 */
  left: 0;
  width: 100%;
  height: auto;
  text-align: center;
  margin-bottom: 0px;
  background-color: rgba(0, 0, 0, 1);
  z-index: 1000;             /* 重なり順を前にする */
  box-shadow: 0 1.5vh 0px rgba(237, 119, 0, 1); /* 影（任意） */
}

/*
.header-section {
  width: 100%;
  height: auto;
  text-align: center;
  margin-bottom: 0px;  他のセクションとの間隔を調整 
  background-color: rgba(255, 255, 255, 1);
}
*/

.header-section img {
  width: 42vh;
  height: auto;
  margin: 0px auto; /* 他のセクションとの間隔を調整 */
  padding: 1rem;
  object-fit: contain;
}

/* フッターセクション */
.footer-section {
  position: fixed;           /* ← これで固定 */
  bottom: 0;                    /* 上端に固定 */
  left: 0;
  width: 100%;
  height: 1.5vh;
  text-align: center;
  margin-bottom: 0px;
  background-color: rgba(237, 119, 0, 1);
  z-index: 1000;             /* 重なり順を前にする */
}

/*
.footer-section {
  width: 100%;
  height: auto;
  text-align: center;
  margin-bottom: 0px;  他のセクションとの間隔を調整 
  background-color: rgba(0, 0, 0, 1);
  padding: 7% 5%;
}
*/

/* KVセクション */
.kv-section {
  width: 100%;
  height: auto;
  text-align: center;
  margin-bottom: 0px; /* 他のセクションとの間隔を調整 */
/*
  background: url('../img/gold_back.png');
  background-size: 100% auto;  幅を100%に合わせる 
  background-position: center;  画像の中央を基準に配置 
  background-repeat: repeat;  繰り返しを防ぐ 
*/
}

.kv-section img {
  width: 100%;
  height: auto;
  margin: 0px; /* 他のセクションとの間隔を調整 */
  object-fit: contain;
}

.kvsection-top-img {
  width: 100%;
  height: auto;
  display: block;
  padding: 15vh 5% 3vh;
  object-fit: contain; /* 画像の比率を保ちながら幅に合わせる */
}

.kvsection-top-img2 {
  padding: 0vh 5% 0%;
}

/* センターのコンテンツ */
.center-content {
  display: flex;
  flex-direction: column;
  max-width: 850px;
  min-width: 300px;
  width: 150%;
  height: 100vh;
  min-height: 100%;
  overflow-y: auto;
  background-color: rgba(255, 255, 255, 1);
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.center-content img {
  height: auto;
  display: block;
}

/* セクションのスタイル */
.content-section {
  background-color: #FFFFFF;
  text-align: left;
  box-sizing: border-box;
}

/* セクション1の背景色 */
#section1 {
  width: 100%;
  background-color: #FFFFFF; /* 背景色を指定 */
  padding: 5% 0%;
}

/* セクション2の背景色 */
#section2 {
  width: 100%;
  background-color: #E50012; /* 背景色を指定 */
  padding: 5% 5%;
}

/* セクション3の背景色 */
#section3 {
  width: 100%;
  background-color: #FFFFFF; /* 背景色を指定 */
  padding: 0% 0% 1%;
}

/* セクション4の背景色 */
#section4 {
  width: 100%;
  height: auto;
  text-align: center;
  margin-bottom: 0px; /* 他のセクションとの間隔を調整 */
  background: url('../img/gold_back.png');
  background-size: 100% auto; /* 幅を100%に合わせる */
  background-position: center; /* 画像の中央を基準に配置 */
  background-repeat: repeat; /* 繰り返しを防ぐ */
  padding: 0% 0% 1%;
}

/* セクション5の背景色 */
#section5 {
  width: 100%;
  height: auto;
  text-align: center;
  margin-bottom: 0px; /* 他のセクションとの間隔を調整 */
  background: url('../img/gold_back.png');
  background-size: 100% auto; /* 幅を100%に合わせる */
  background-position: center; /* 画像の中央を基準に配置 */
  background-repeat: repeat; /* 繰り返しを防ぐ */
  padding: 0% 0% 1%;
}

/* セクション6の背景色 */
#section6 {
  width: 100%;
  background-color: #FFFFFF; /* 背景色を指定 */
  padding: 8% 0% 3%;
}

/* セクションのタイトル画像 */
.section-title-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 5% auto; /* 下部に余白を追加 */
  object-fit: contain; /* 画像の比率を保ちながら幅に合わせる */
}

/* セクションのコンテンツ画像 */
.section-content-img {
  width: 90%;
  height: auto;
  display: block;
  margin: 0% auto; /* 上下に余白を追加 */
  object-fit: contain; /* 画像の比率を保ちながら幅に合わせる */
}

/* セクションのコンテンツ画像下マージン5% */
.section-content-img-mb5 {
    position: relative;

  width: 90%;
  height: auto;
  display: block;
  margin: 0% auto 5%; /* 上下に余白を追加 */
  object-fit: contain; /* 画像の比率を保ちながら幅に合わせる */
}

/* セクションのコンテンツ画像w100-tb0 */
.section-content-img-w100 {
  width: 100%;
  height: auto;
  display: block;
  margin: 0% auto; /* 上下に余白を追加 */
  object-fit: contain; /* 画像の比率を保ちながら幅に合わせる */
}

/* セクションのコンテンツ画像w80-tb0 */
.section-content-img-w80 {
  width: 80%;
  height: auto;
  display: block;
  margin: 0% auto; /* 上下に余白を追加 */
  object-fit: contain; /* 画像の比率を保ちながら幅に合わせる */
}

/* セクション1のボタン画像 */
.button-wrapper {
  display: flex;
  justify-content: space-between;  /* ボタン間のスペースを均等に */
  width: 90%;  /* 幅を90%に設定 */
  margin: 0px auto;  /* 上下に余白を追加し、中央に配置 */
  padding: 5% 0%;
}

.section-btn {
  width: 100%;  /* 各ボタンの幅を調整 */
  height: auto;
  object-fit: contain;
}

.section-btn-w90 {
  width: 90%;  /* 各ボタンの幅を調整 */
  height: auto;
  margin: 0px auto;  /* 上下に余白を追加し、中央に配置 */
  object-fit: contain;
}

.section-onbtn-w80 {
  position: absolute;
  width: 87%;  /* 各ボタンの幅を調整 */
  bottom: -2%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: auto;
  object-fit: contain;
}

.onobject01 {
  position: absolute;
  width: 29%;  /* 各ボタンの幅を調整 */
  top: -2.6%;
  left: -3.9%;
  height: auto;
  object-fit: contain;
}

/* ナビゲーションボタン */
.nav-btn {
  width: 50px;
  height: auto;
  margin: 0px 0;
  cursor: pointer;
}

/* ハンバーガーメニューのスタイル */
.hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 35px;
  height: 35px;
  cursor: pointer;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1001;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 7px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.hamburger-menu .bar {
  height: 2px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  margin: 1.5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger-menu.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ハンバーガーメニューリンク部分 */
.menu-links {
  display: none;
  position: absolute;
  top: 40px;
  right: 8px;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 8px 10px 0px;
  text-align: left;
  z-index: 1000;
}

/* ハンバーガーメニューリンク部分 */
.menu-links a {
  display: block;
  padding: 0px 0; /* 上下のパディングを少なくして間隔を詰める */
/*
  text-decoration: none;
  color: #333;
  font-size: 16px;
  border-bottom: 1px solid #ddd;
*/
  width: 200px;   /* 白地部分の幅を200pxに設定 */
  height: auto;   /* 高さは自動調整 */
  margin: 15px 0; /* リンク間のスペース */
  text-align: center; /* 画像をセンタリング */
  background-color: rgba(255, 255, 255, 0);
  box-sizing: border-box; /* 幅や高さにパディングを含める */
}

/* 各リンクの画像 */
.menu-links a img {
  width: 100%; /* 画像の幅をリンクの幅に合わせる */
  height: auto; /* 縦横比を保って高さを調整 */
  transition: opacity 0.3s ease; /* ホバー時の透明度変更にスムーズな遷移を追加 */
}

/* メニューが開いている状態で画像を表示 */
.hamburger-menu.active + .menu-links {
  display: block;
}

/* ホバー時に少し透明になる */
.menu-links a:hover img {
  opacity: 0.7; /* 透明度を少し下げる（0.7は70%の透明度） */
}

/* ハンバーガーメニューが開いている状態で画像を表示 */
.hamburger-menu.active + .menu-links {
  display: block;
}

/* PC表示時 */
@media (min-width: 769px) {
  .right-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .right-content a {
    margin: 10px 0;
    text-decoration: none;
    font-size: 20px;
    color: #333;
  }

  .hamburger-menu {
    display: none;
  }
}

/* モバイル表示時 */
@media (max-width: 768px) {
  body {
    height: auto;
    min-height: 100vh;
  }

  #bg-video {
    display: none;
  }

  /* <section>タグの影響を排除 */
  section {
    display: block;  /* flex を解除 */
    margin-bottom: 0;  /* 不要なマージンを削除 */
    height: auto;
  }

  .wrapper {
    flex-direction: column;
    padding: 0;
  }

  .left-content,
  .right-content {
    display: none;
  }

  .center-content {
    width: 100%;
    max-width: none;
    height: 100%; /* 高さが必要な分だけ */
    padding: 0; /* 余白があれば削除 */
    margin: 0; /* 余白を削除 */
    display: flex;
    flex-direction: column;
  }

  .hamburger-menu {
    display: flex;
    position: fixed;
  }

  .menu-links {
    display: none; /* 初期状態では非表示 */
    position: fixed;
  }

}
