/* SIMIUS UV FACE POWDER — SP product-01 section (webdesign comp)
   Figma: sp_product-01 (nodeId=9:849) in powder-_-lp
   Updated 2026-10-13 : Figma consolidated the 3-layered photo into one PNG,
   switched layout from absolute → flex column with gap=26. */

.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;                     /* FB 10/30: Figma 9:849 最新版 (32 → 30) */
  width: 400px;
  padding: 0 17px 40px;          /* Figma 9:849: pt-0 / px-17 / pb-40 */
  background: #ffffff;
  box-sizing: border-box;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: #514d75;
}

.product img {
  display: block;
  user-select: none;
  pointer-events: none;
}

/* ---------- product-visual : single PNG, 346x309 ----------
   Figma spec `w-340 pr-40 justify-center` puts the 346-wide child centered in
   the 300-wide content box (padding-right 40 reduces the right side). That
   makes the image center-left biased: in sp-stage coords it sits at x=7..353
   (center ~180), 20px LEFT of sp-stage center. We replicate that bias by
   breaking out of .product's center-alignment and giving a negative left
   margin so the frame starts at .product content x=-10. */
.product__visual {
  width: 339px;                   /* FB 10/30: Figma 更新 346→339 */
  height: 302px;                  /* FB 10/30: 309→302 */
  align-self: flex-start;
  margin-left: -10px;
}
.product__visual__frame {
  position: relative;
  width: 339px;
  height: 302px;
  overflow: hidden;
}
.product__visual__frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- product-info : title + spec (Figma 更新: gap-3 を内部に) ---------- */
.product__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;                       /* FB 10/30: Figma 更新 gap-3 */
  width: 205px;
  color: #514d75;
  word-break: break-word;
}

.product__title {
  margin: 0;
  font-weight: 300;
  font-size: 24px;
  line-height: normal;             /* FB 10/30: Figma: leading-normal span inside */
  letter-spacing: -0.07em;         /* -1.68px / 24 */
  min-width: 100%;
  text-align: center;
  white-space: nowrap;
}
.product__title .en { letter-spacing: -0.07em; }
.product__title .jp { letter-spacing: -0.06em; }   /* -1.44px / 24 */

.product__spec {
  margin: 0;
  font-weight: 100;
  font-size: 16px;
  line-height: 1.125;
  height: 18px;
  width: 127px;
  white-space: pre;                /* preserve the double spaces between SPF50+, PA+++, 9g */
  text-align: center;
}

/* ---------- product-price : flex row with 本店 (big) + 定期 (small)
   Figma 59:277: h-42 items-end gap-10。h-42 で中身が上に overflow することで
   情報ブロックとの見た目の間隔が狭くなる (24 - overflow) 仕掛け。 */
.product__prices {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;                     /* Figma 59:277: gap-10 */
  height: 52px;                  /* FB 10/30: Figma 更新 h-42 → h-52 */
  color: #727191;                /* FB 10/30: Figma 典拠色 #727191 */
  word-break: break-word;
  font-family: 'Zen Old Mincho', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
}

/* --- 公式通販価格 (4,400円⁽税込⁾)
   Figma 226:398 : label を縦積みで値の上に配置（label → value の column）。 --- */
.product__price--regular {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}
.product__price--regular .label {
  margin: 0 0 2px;                  /* FB 11/02: 3px → 2px */
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;                 /* Medium */
  font-size: 12px;
  line-height: 1;                   /* FB 11/02: normal → 1 で margin を効かせる */
  letter-spacing: -0.04em;          /* -0.48px / 12 */
  color: #727191;              /* FB 10/30: 金額と同色 (Figma: #727191) */
  white-space: nowrap;
}

.product__price--regular .value {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  font-weight: 600;                /* FB 10/30: Zen Old Mincho Bold → SemiBold */
  line-height: 1;
  font-family: 'Zen Old Mincho', serif;
}
.product__price--regular .num {
  margin: 0;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.04em;        /* -1.6px / 40 */
  white-space: nowrap;
}

/* .unit : 円 is the only in-flow element (so unit width = 円 width).
   The 税込 label floats above 円 via absolute positioning so it does not
   stretch the unit horizontally and sits exactly over 円. */
.product__price--regular .unit {
  position: relative;
  display: inline-block;
}
.product__price--regular .unit .yen {
  display: block;
  margin: 0;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
}
.product__price--regular .unit .tax {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  margin: 0 0 1px;
  font-size: 6px;                      /* Figma spec : 円 (20px) より横幅が広がらない大きさ */
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: #514d75;
}

/* --- 定期 price (3,520円⁽税込⁾) --- */
.product__price--subscription {
  display: flex;
  align-items: last baseline;
  gap: 4px;
}
.product__price--subscription .label {
  display: flex;
  flex-direction: column;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 100;
  font-size: 9px;
  line-height: 1.15;
  white-space: nowrap;
}
.product__price--subscription .label p { margin: 0; }

.product__price--subscription .value {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  font-weight: 600;                /* FB 10/30: Zen Old Mincho Bold → SemiBold */
  line-height: 1;
  font-family: 'Zen Old Mincho', serif;
}
.product__price--subscription .num {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.05em;        /* -1.2px / 24 */
  white-space: nowrap;
}
.product__price--subscription .unit {
  position: relative;
  display: inline-block;
}
.product__price--subscription .unit .yen {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.product__price--subscription .unit .tax {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  margin: 0 0 1px;
  font-size: 5px;                      /* Figma spec 4px だと潰れるので最低限の 5px に */
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: #514d75;
}

/* ---------- "ご購入はこちら" primary button (full width in parent, w/ padding 17 on each side)
             Figma: w-full h-55 rounded-16, pl-106 pr-18, text w-236 gap-78 ---------- */
.product__cta {
  display: flex;
  align-items: center;
  width: 360px;                        /* FB 10/30: Figma 207:187 準拠 (100% だと 366 になる) */
  height: 55px;
  padding: 15px 18px 15px 106px;
  background: #727191;                 /* FB 1027 Figma 207:224 default: 中くらいの紫 */
  border-radius: 16px;
  box-sizing: border-box;
  text-decoration: none;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 100;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 4px 0 #514d75, 0 8px 10px rgba(60, 55, 100, 0.25);  /* FB 1027: 通常時も hover と同じ 4px の濃い段差 (Figma の mix-blend-multiply Vector 相当) */
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.product__cta:hover {
  background: #c7c4d5;                 /* FB 1027 Figma 207:224 hover: 明るいラベンダー */
  transform: translateY(-1px);
}
.product__cta:active,
.product__cta.is-pressed {
  background: #4a4668;                 /* FB 1019 BUTTON-1 active/pressed: 最も暗い紫 */
  box-shadow: 0 3px 8px rgba(60, 55, 100, 0.3);
  transform: translateY(1px);
}
.product__cta__inner {
  display: flex;
  align-items: center;
  gap: 78px;
  width: 236px;
  height: 25px;
}
.product__cta__label {
  margin: 0;
  white-space: nowrap;
}
.product__cta__arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
