.form-container {
  max-width: 95%;
  width: 880px;
  margin: 40px auto;
  font-family: sans-serif;
}
.form-title {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  font-family: sans-serif;
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc;
  max-width: 880px;
  margin: 0 auto;
}
.product-box {
  border: 2px solid #F5C242;
  border-radius: 6px;
  padding: 16px;
  position: relative;
}
.selected-product-display {
  max-width: 880px;
  width: 95%;
  margin: 0 auto;
  font-family: sans-serif;
}
.product-details__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.selected-product {
  background-color: #F5C242;
  border: none;
  border-radius: 14px;
  padding: 4px 16px;
  font-weight: bold;
  font-size: 14px;
  cursor: default;
  min-width: 104px;
}
.product-name {
  font-size: 18px;
  font-weight: bold;
  padding-bottom: 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid #ccc
}
.offer-name {
  font-size: 22px;
  font-weight: bold;
  line-height: 1.25;
}
.price-shipping {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 25px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
#taxLabel {
  font-size: 24px;
  letter-spacing: 0em;
}
#shippingFee {
  letter-spacing: 0em;
}
.shipping {
  white-space: nowrap;
}
.delivery-return {
  font-size: 14px;
  margin-bottom: 12px;
  color: #555;
}
.quantity-selector {
  text-align: right;
  font-weight: bold;
  width: 120px;
}
.quantity-selector select {
  padding: 4px;
  font-size: 14px;
}
.policy-links {
  text-align: center;
  font-size: 13px;
  color: #007aff;
}
.policy-links a {
  text-decoration: none;
  color: #007aff;
  margin: 0 2px;
}

:root {
  --accent: #F5C242;
  --border: #E5E7EB;
  --ring: 0 0 0 3px rgba(245, 194, 66, .3);
  --radius: 12px;
  --card-pad-x: 16px;
  --card-pad-y: 14px;
  --bullet-size: 28px;
  --select-right-block: 48px;
}

/* 見出しまわり（任意） */
.selected-product-display h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 16px 0 8px 10px;
  position: relative;
}
.selected-product-display h2:before {
  content: "";
  height: 1.25em;
  width: 3px;
  display: block;
  position: absolute;
  background-color: var(--accent);
  left: -8px;
}

/* 縦積みレイアウト */
#selectedProductContent {
  display: grid;
}

/* ===========================
   カード本体
   =========================== */
.choice-card {
  height: 52px;
  margin-bottom: 8px;
}
.choice-card.is-selected {
  height: auto;
}

.choice-card_radio {
  position: relative;
  min-height: 52px;
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--card-pad-y) var(--card-pad-x);
  padding-left: calc(var(--card-pad-x) + var(--bullet-size) + 12px); /* 左の丸分の余白 */
}

/* 入荷待ち */
.choice-card.disable {
  pointer-events: none;
}
.choice-card.disable .choice-card_radio {
  background-color: #bbb;
  color: #fff;
  border: 2px solid var(--border);
}
.choice-card.disable .choice-card_radio::before {
  background: #bbb;
  border: 2px solid var(--border);
}

.choice-card option[disabled] {
  color: #fff;
  background-color: #bbb;
}

.choice-card_radio label {
  font-size: 16px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: 55px;
  padding-right: 8px;
  cursor: pointer;
  box-sizing: border-box;
  line-height: 1;
}
.choice-card_radio::before {
  content: "";
  position: absolute;
  left: var(--card-pad-x);
  top: 10px;
  width: var(--bullet-size);
  height: var(--bullet-size);
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-sizing: border-box;
}
.choice-card_radio.disable::before {
  content: "";
  position: absolute;
  left: var(--card-pad-x);
  top: 10px;
  width: var(--bullet-size);
  height: var(--bullet-size);
  border-radius: 50%;
  background: #bbb;
  border: 2px solid #fff;
  box-sizing: border-box;
}

.is-selected .choice-card_radio {
  border-color: var(--accent);
  background: var(--accent);
}
.is-selected .choice-card_radio::before {
  background: #fff;
  border-color: #fff;
}
.is-selected .choice-card_radio::after {
  content: "";
  position: absolute;
  left: calc(var(--card-pad-x) + 9px);
  top: 15px;
  width: 10px; height: 16px;
  border: solid var(--accent);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.choice-card_radio > input[type="radio"] {
  position: absolute;
  left: var(--card-pad-x);
  top: var(--card-pad-y);
  width: var(--bullet-size);
  height: var(--bullet-size);
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.choice-card_radio::before,
.choice-card_radio::after { pointer-events: none; }

/* ===========================
   セレクト（選択中カードのみ表示）
   =========================== */
.choice-card select {
  height: 0;
  width: 90%;
  margin-top: 0;
  font-size: 14px;
  line-height: 1.3;
  padding: 0;
  border: 0;
  background:
    /* 上矢印 */
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='18' height='10' viewBox='0 0 24 14'>\
<path d='M3 11L12 2l9 9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 18px top 20% / 14px 10px,
    /* 下矢印 */
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='18' height='10' viewBox='0 0 24 14'>\
<path d='M3 3l9 9 9-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 18px bottom 20% / 14px 10px,
    /* 右側の黄色帯 */
    linear-gradient(to right, transparent calc(100% - var(--select-right-block)), var(--accent) 0);
  appearance: none; /* ネイティブ矢印を消す */
  transition: height 0.5s;
  opacity: 0;
}
.choice-card.is-selected select {
  display: block;
  height: 40px;
  margin-top: 6px;
  font-size: 14px;
  padding: 4px 56px 4px 14px;
  border: 2px solid var(--accent);
  opacity: 1;
  border-radius: 8px;
  margin-bottom: 16px;
}
.choice-card select:hover,
.choice-card select:focus {
  outline: none;
  box-shadow: var(--ring);
}
.choice-card:hover {
  border-color: #d9dde3;
}
.teiki_text1, .teiki_btn_text, .teiki_text2 {
  font-size: 14px;
  display: inline-block;
}
.teiki_text1, .teiki_btn_text {
  margin-bottom: 10px;
}
.teiki_text2 {
  margin-top: 10px;
}
@media screen and (max-width: 768px) {
  .product-details__head {
    display: block;
  }
  .selected-product {
    display: inline-block;
    transform: translateX(-50%);
    left: 50%;
    position: relative;
    margin-bottom: 16px;
    padding: 10px 26px;
    border-radius: 20px;
  }
  .price-shipping {
    display: block;
    font-size: 14px;
  }
  .quantity-selector {
    width: 100%;
  }
  .product-box {
    padding: 10px;
  }
}