@charset "utf-8";

body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
}
h1 {
  font-size: 48px;
  text-align: center;
  margin-top: 50px;
}
h2 {
  margin-top: 30px;
  font-size: 18px;
  color: #333;
}
h4 {
  font-size: 20px;
  text-align: center;
}

@keyframes zoomUp {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}
  .swiper-slide-active .swiper-img,
  .swiper-slide-duplicate-active .swiper-img,
  .swiper-slide-prev .swiper-img {
  animation: zoomUp 12s linear 0s normal both;
}
.swiper-slide img {
  height: auto;
  width: 100%;
}
.swiper {
  width: 600px; /* お好みの幅に設定 */
  margin: 0 auto; /* 中央に配置するならこれも */
}
.size-explanation {
  margin-top: 30px;
}
.size-explanation p {
  margin: 0;
}
/* 横並びラジオグループ */
.radio-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* inputを非表示 */
.radio-group input[type="radio"] {
  display: none;
}

/* ラベルの見た目 */
.radio-group label {
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* ホバー効果 */
.radio-group label:hover {
  background-color: #e6f2ff;
  border-color: #69b2f8;
}

/* ✅ 選択後の色変化（クリック後） */
.radio-group input[type="radio"]:checked + label {
  background-color: #cbe8ff;
  border-color: #3498db;
  font-weight: bold;
}
.color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content; /* ← 横幅を内容に合わせる */
  padding: 0;
  margin: 0;
}

.img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}
.img-wrapper img {
  display: block;        /* 不要なら削除OKだが、意図的な中央寄せなら有効 */
  width: 60px;           /* 画像サイズ */
  height: auto;
  border-radius: 6px;
  margin: 0 auto;        /* 中央配置（親がblockのとき有効） */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0); /* 初期は透明 */
  transition: background-color 0.3s ease;
  pointer-events: none; /* クリック可能なのは下のラジオ */
}


/* モーダル表示エリア */
#price-modal {
  width:600px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f8fdb6;
  border: 4px solid red;
  border-radius: 10px;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
  z-index: 9999;
  max-height: 70vh;
  overflow-y: auto;
}

#close-button {
  display: block;
  width: 100%;
  padding: 10px 0;
  background-color: #0288d1;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  text-align: center;
  margin-top: 20px;
}

/* 非表示時 */
.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

/* 表示時 */
#price-modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.final-price {
  font-size: 36px;
  font-weight: bold;
  color: #e95050;
  margin-bottom: 8px;
}

.selection-summary p {
  margin: 4px 0;
  font-size: 16px;
  color: #555;
}
.img-wrapper {
  display: flex;
  flex-direction: column; /* 子要素を縦方向に並べる */
  align-items: center; /* 中央寄せ（任意） */
}
.item-name {
  margin-top: 8px; /* 画像と商品名の間に余白を追加 */
  font-size: 14px;
  color: #333;
}
.color-option.selected .img-wrapper {
  box-shadow: 8px 8px 12px rgba(0, 0, 0, 0.4);
  transform: scale(1.03);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.color-option {
  width: 80px;       /* ← 横幅を調整（元が120pxなら2/3） */
  font-size: 13px;   /* 商品名の文字も少し控えめに */
}

.item-name {
  margin-top: 6px;
  font-size: 13px;
}

.overlay {
  border-radius: 6px;
}
.img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}
.color-option.selected .img-wrapper {
  box-shadow: 8px 8px 12px rgba(0, 0, 0, 0.4); /* 右下に影を落とす */
  transform: scale(1.03);                      /* 少し拡大して浮き上がるように */
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
