@charset "utf-8";

:root {
  --w: 100%;
}

@media (max-width: 575px) {
  .frame {
    width: 105vw !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }
}


/* フレーム＆スロット ------------------------ */
.frame {
  position: relative;
  width: var(--w);
  aspect-ratio: 1/1;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.frame img.base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

/* スロットは位置計算が終わるまで非表示 → .ready で表示 */
.slot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  opacity: 0;
}
.frame.ready .slot {
  opacity: 1;
}

.guide {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px dashed #999;
  background: rgba(0,0,0,0.02);
  transition: transform .1s, border-color .1s;
  opacity: .95;
}

@media (max-width: 575px) {
  .guide {
    width: 36px;
    height: 36px;
  }
}


.slot.over .guide {
  transform: scale(1.2);
  border-color: #333;
  background: rgba(0,0,0,0.05);
}

.slot img {
  display: block;
  user-select: none;
  pointer-events: none;
  transform-origin: center center;
}

/* 石パレット ------------------------ */
.palette {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.stone {
  width: 78px;
  height: 78px;
  display: block;
  border-radius: 12px;
  cursor: grab;
  user-select: none;
  background: #fff;
  border: 1px solid #eee;
  padding: 6px;
}

/* エラーメッセージ ------------------------ */
.error-msg {
  margin-top: 10px;
  color: #ff4f1b;
}

/* 隠しセレクト（内部用） ------------------------ */
.hiddenSelect {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

/* 金性ラジオボタン ------------------------ */

/* ボタン全体を中央寄せ */
.metalRadios {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 10px 0;
}

/* ラベルをボタン化（重複定義を統合） */
.metalRadios label {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid #ccc;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  color: #444;
  margin: 0 6px;
}

/* ラジオ本体は非表示 */
.metalRadios input[type="radio"] {
  display: none;
}

/* 選択時の色・枠線 */
.metalRadios input[type="radio"]:checked + label,
.metalRadios label:has(input[type="radio"]:checked) {
  background-color: #bea175;  /* 選択時の色 */
  border-color: #bea175;
  color: #fff;
}

/* 価格ボックス ------------------------ */
.pricebox {
  margin-top: 10px;
  border-radius: 12px;
  padding: 10px;
}

.pricebox .price-top {
  display: flex;
  justify-content: center;   
  align-items: baseline;
  gap: 12px;
}

.pricebox .total {
  font-size: 22px;
  font-weight: 700;
}

.pricebox .detail {
  margin-top: 8px;
  font-size: 13px;
  color: #555;
}

.pricebox .detail ul {
  margin: 6px 0 0 1em;
  padding: 0;
}

.pricebox .detail li {
  margin: 2px 0;
  list-style: disc;
}

/* 共通非表示クラス ------------------------ */
.hidden {
  display: none;
}

/* ギャラリー ------------------------ */
.tb-gallery {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 20px auto 56px;
  max-width: 1000px;
}

/* 画像：基本はPC〜タブレット用 */
.tb-gallery a {
  flex: 0 0 auto;
}

.tb-gallery img {
  width: 22vw;          /* 画面幅の約22% → 4枚で88%くらい */
  max-width: 220px;     
  min-width: 160px;    
  height: auto;
  border-radius: 4px;
  cursor: pointer;
  display: block;
}

@media only screen and (max-width: 1199px) {
  .tb-gallery {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
}

@media only screen and (max-width: 767px) {
  .tb-gallery {
    gap: 10px;
  }

  .tb-gallery img {
    width: 60vw;        /* 70vw → 60vw に抑える */
    max-width: 200px;   /* PCより大きくならない */
    min-width: 140px;
  }
}

/* ライン ------------------------ */
.line {
  content: "";
  display: block;
  width: 40%;      
  height: 2px;   
  background-color: #ebcda0;  
  margin: 20px auto 40px;         

}
@media only screen and (max-width: 575px) {
.line {
  content: "";
  display: block;
  width: 50%;      
  height: 2px;   
  background-color: #ebcda0;  
  margin: 20px auto 40px;      
}
}

/* 商品仕様 ------------------------ */
.product-spec dl {
  margin: 0;
  padding: 0;
}

.product-spec dl > div {
  display: flex;
  gap: 0.5em; 
  padding: 6px 0;
}

.product-spec dt {
  font-weight: 600;
  color: #333;
  white-space: nowrap; 
}

.product-spec dd {
  margin: 0;
  flex: 1;
  color: #555;
  line-height: 1.6;
}
