body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: white;
  background-color: #b9ced6; /* 初期背景色（水色） */
  transition: background-color 0.4s ease;
}

.container {
  text-align: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

.color-bar-wrapper {
  position: relative;
  width: 300px;
  margin: 0 auto 30px;
}

.color-bar-img {
  width: 100%;
  display: block;
}

.color-buttons-on-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 8px;
}

.color-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  opacity: 0.6;
  cursor: pointer;
  transition: 0.3s;
}

.color-btn:hover {
  opacity: 1;
}

.color-btn.selected {
  opacity: 1;
  border-color: white;
}

.headline {
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.title {
  font-size: 5rem;
  font-weight: bold;
  opacity: 0.2;
}

/* 上のヘッドホン画像 */
.headphone {
  width: 500px; /* 好きなサイズに変更してください */
  max-width: 90%;
  margin: 20px 0;
  /* ↓ transform を追加 */
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* 下のヘッドホン画像 */
.feature-headphone {
  width: 200px; /* 好きなサイズに変更してください */
  max-width: 90%;
  /* marginは親要素のgapで調整されるため、削除または0にしてもOK */
  margin: 0; 
  /* ↓ transform を追加 */
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* 下部セクション */
.features-section {
  text-align: center;
  padding: 60px 20px;
  color: white;
}

/* 上下共通のレイアウトコンテナ */
.features-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 40px auto 0;
  gap: 20px;
}

/* 左右のアイコンコンテナ */
.feature-side-icons {
  display: flex;
  flex-direction: column;
  gap: 70px;
  align-items: center;
  flex-basis: 100px;
  text-align: center;
}

.feature-icon img {
  width: 30px;
  height: auto;
}

.icon-text {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 5px;
}

.is-changing {
  transform: scale(0.8); /* 少し縮める */
  opacity: 0; /* 透明にする */
}

/* ================================================== */
/* スマホ用のスタイル（下セクションの空白を削ってヘッドホン拡大）*/
/* ================================================== */
@media (max-width: 768px) {

  /* タイトルを小さくする */
  .title {
    font-size: 3rem;
  }

  /* 上のヘッドホン画像は元のサイズを維持 */
  .headphone {
    width: 300px;
  }

  /* 下のヘッドホン画像を大きくする */
  .feature-headphone {
    width: 150px; 
  }

  /* 上のアイコンコンテナのスタイル */
  .container .features-container {
    gap: 15px; /* 上は元の隙間を維持 */
  }

  /* ★下のアイコンコンテナのスタイル */
  .features-section .features-container {
    gap: 0; /* 下はスペースを完全になくす */
  }

  /* 上下共通のコンテナ設定 */
  .features-container {
    flex-direction: row; 
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
  }

  /* 上下共通のアイコン群のスタイル */
  .feature-side-icons {
    flex-basis: 90px;
    gap: 20px;
  }

  /* 上下共通のアイコンテキストのスタイル */
  .icon-text {
    font-size: 0.8rem;
  }
}

/* 購入セクションのスタイル */
.purchase-section {
  display: flex;
  flex-direction: column;
  max-width: 2500px;
  margin: 0 auto;
  padding: 80px 20px;
  /* align-items: flex-end; を削除 */
  margin-top: 200px;
}

/* 画像コンテナ（変更なし） */
.product-image-container {
  width: 100%;
}

/* 5色ヘッドホンの画像（変更なし） */
.product-image-all {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  transform: scale(1.5);
}

/* 価格と購入ボタンのグループ */
.actions-container {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  margin-top: 20px;
  
  margin-left: auto;  /* ★左の余白を自動で最大にする（→右に寄る） */
  margin-right: 200px; /* ★右端からの距離を調整 */
}

/* ... 以下、価格と購入ボタンのスタイルは変更なし ... */

/* 価格画像のサイズと重ねる設定 */
.price-image {
  height: 60px;
  margin-right: -140px;
  
}

/* 購入ボタン画像のサイズと微調整 */
.purchase-button {
  height: 50px;
  transition: transform 0.2s ease;
  margin-top: 0px;
  display: block; /* aタグの中で余白ができないようにする */
}

.purchase-button:hover {
  transform: scale(1.05);
}

.purchase-link {
  position: relative; /* z-indexを有効にするため */
  z-index: 2;         /* ★重なり順を手前にする */
  padding-left: 20px; /* ★クリック範囲を左に広げる */
  bottom: 5px; /* ★これを追加。数値を大きくすると、さらに上に移動します */
}