/* 共通スタイル */
body {
  font-family: 'Arial', sans-serif;
  background-color: #000;
  color: #fff;
  margin: 0;
  padding: 0;
  text-align: center;
  overflow-x: hidden;
}

/* スクロール時のふわっと浮き上がるアニメーション */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* コンテナの最大幅を調整（PCで3つ並ぶように） */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

/* ヒーローセクション */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 100vh;
}

/* 宝箱の画像を端末最大幅で中央配置 */
.hero .treasure-img {
  width: 100vw;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* スマホ対応（縦長になりすぎるのを防ぐ） */
@media screen and (max-width: 768px) {
  .hero .treasure-img {
    height: 50vh;
  }
}

/* ヒーローセクションの見出し */
.hero h2 {
  font-size: 48px;
  margin-bottom: 30px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h3 {
  font-size: 30px;
  margin-top: 50px;
  font-weight: bold;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ボタンのスタイル */
.cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(90deg, #FFD700, #FFF4B0);
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  margin-top: 50px;
  margin-bottom: 80px;
  animation: gradientShift 3s infinite alternate;
}

.cta-button:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease-in-out;
}

/* 特徴セクション */
.features {
  background: #111;
  padding: 100px 0;
  background-image: url('images/texture-2870745_1920.jpg');
  background-size: cover;
  background-position: center;
}

/* 特徴リストを3つ横並びに */
.feature-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

/* 各特徴のスタイル（アニメーション適用） */
.feature {
  width: 25%;
  background: rgba(34, 34, 34, 0.9);
  padding: 40px;
  border-radius: 10px;
  text-align: left;
  transform: translateX(-50px);
  opacity: 0;
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

/* スクロール時に発動 */
.feature.active {
  transform: translateX(0);
  opacity: 1;
}

/* ホバー時のアニメーション */
.feature:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.6);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* ストーリーセクション */
.stories {
  background: #111;
  padding: 100px 0;
}

/* ストーリーセクションのタイトル */
.stories h2 {
  font-size: 36px;
  color: #FFD700;
  margin-bottom: 50px;
  opacity: 1 !important; /* 強制的に表示 */
  display: block; /* 確実に表示 */
}

.stories h2 {
  font-size: 36px;
  color: #FFD700;
  margin-bottom: 50px;
}

/* ストーリーリストを3つ横並びに */
.story-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

/* 各ストーリーのスタイル（アニメーション適用） */
.story {
  width: 25%;
  background: rgba(34, 34, 34, 0.9);
  padding: 40px;
  border-radius: 10px;
  text-align: left;
  transform: translateY(50px);
  opacity: 0;
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

/* スクロール時に発動 */
.story.active {
  transform: translateY(0);
  opacity: 1;
}

/* ホバー時のアニメーション */
.story:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.6);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* アニメーション */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0% {
    background: linear-gradient(90deg, #FFD700, #FFF4B0);
  }
  100% {
    background: linear-gradient(90deg, #FFF4B0, #FFD700);
  }
}

/* レスポンシブ対応（タブレット：2つ並び） */
@media screen and (max-width: 1024px) {
  .feature, .story {
    width: 50%;
  }
}

/* レスポンシブ対応（スマホ：1つずつ縦並び） */
@media screen and (max-width: 768px) {
  .feature, .story {
    width: 100%;
  }
}