/* ============================================================
   暖プレステージテクノロジー 26AW
   参照Figma: 26暖PT_top_PC_メンズ (83:3443) / 26暖PT_top_SP_メンズ (65:1535)
   ベースは templates.css（design-system foundations.css と同期）
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --color-neutral-white: #FFFFFF;
  --color-neutral-black: #000000;
  --color-neutral-off-black: #333333;
  --color-neutral-solid-gray-100: #E6E6E6;
  --color-neutral-solid-gray-200: #CCCCCC;

  /* 案件カラー（Figma実測） */
  --color-dan-red: #DF3013;
  --color-dan-green: #1E8000;
  --color-dan-green-light: #C5DDBD;
  --color-dan-anchor-bg: #FFD5BD;
  --color-dan-cream: #FFF1E0;

  --font-size-body: 16px;
  --font-size-product: 14px;
  --font-size-price: 16px;
  --font-weight-400: 400;
  --font-weight-700: 700;

  --space-8: 8px;
  --space-16: 16px;

  --layout-container: 1200px;

  --font-mincho: "Shippori Mincho", serif;
  --font-mincho-b1: "Shippori Mincho B1", serif;
}

@media (max-width: 767px) {
  :root {
    --font-size-body: 14px;
    --font-size-product: 13px;
  }
}

/* ---------- リセット・ページ全体 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--color-neutral-off-black);
  background: var(--color-neutral-white);
  line-height: 1.6;
}

ul { list-style: none; }

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- PC / SP 出し分け ---------- */
.sp { display: none; }

/* 改行制御 */
.sp-br { display: none; }
.pc-br { display: block; }

/* ---------- header / footer ---------- */
.site-header,
.site-footer {
  width: 100%;
  overflow: hidden;
}
.site-header img,
.site-footer img {
  width: 1920px;
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* ---------- KV（Figma: 1920x500 / SP 384x500） ---------- */
.kv {
  width: 100%;
  overflow: hidden;
}
.kv img {
  width: 1920px;
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================================
   intro（Figma: Frame 164 83:3510）
   ============================================================ */
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding: 100px 0;
  background: url(/ec/img/usr/pg/campaign/pt-warm/bg_intro.jpg) center / cover no-repeat; /* Figma: opacity50%を画像に焼き込み済み */
}

.intro__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 70px;
  width: 100%;
}

/* ---------- tab（Figma: tab 814 / tab_btn 397x80） ---------- */
.tab-nav {
  display: flex;
  justify-content: space-between;
  width: 814px;
}

.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 397px;
  height: 80px;
  background: var(--color-neutral-white);
  border: 2px solid var(--color-dan-red);
  color: var(--color-dan-red);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}
.tab-btn.-selected {
  background: var(--color-dan-red);
  color: var(--color-neutral-white);
}
.tab-btn:hover { opacity: 0.8; }

/* ---------- お悩み（Figma: 480幅 / 枠4px） ---------- */
.worry {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 480px;
  padding: 28px 0 33px;
  background: var(--color-neutral-white);
  border: 4px solid var(--color-dan-green-light);
}

.worry__ttl {
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
  text-align: center;
}
.worry__em {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 800;
  color: var(--color-dan-green);
  vertical-align: baseline;
}

.worry__line { /* 波線: Figma 268x5（SVGはストローク分はみ出し含む272x9） */
  width: 272px;
  margin-top: 2px;
}

.worry__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 227px;
  margin-top: 22px;
}

.worry__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mincho);
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
}
.worry__item::before { /* チェックアイコン 23x21 */
  content: "";
  flex: none;
  width: 23.6px;
  height: 22px;
  margin: 0 -0.3px;
  background: url(/ec/img/usr/pg/campaign/pt-warm/icon_check.svg) center / contain no-repeat;
}

/* ---------- キャッチ（Figma: Union 720x146 + テキスト） ---------- */
.catch {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.catch__ttl img { /* SVGは影のはみ出し分を含むため負マージンで実寸720x146に合わせる */
  width: 798.761px;
  margin: -39.4px -39.4px;
}

.catch__txt {
  margin-top: 18px;
  font-family: var(--font-mincho);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
}
.catch__em {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 36px;
  font-weight: 900;
  vertical-align: baseline;
}
.catch__tight {
  letter-spacing: -0.3em;
  font-weight: bold;
} /* Figma: 」の詰め -10.8px */

/* ---------- 代表的な機能（Figma: 2列 342px / gap 32x16） ---------- */
.function {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.function__ttl {
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
  color: var(--color-dan-red);
  text-align: center;
}

.function__list {
  display: grid;
  grid-template-columns: repeat(2, 342px);
  gap: 16px 32px;
}

.function__list.-clm3 { grid-template-columns: repeat(3, 342px); } /* レディース: 3列 */

.function__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 円ベース + アイコン重ね（レディース: 抗ピリング。Figma: 90px円 / アイコン41px left25 top19） */
.function__mark {
  position: relative;
  flex: none;
  width: 90px;
  height: 90px;
}
.function__mark .function__icon { display: block; }
.function__mark-icon {
  position: absolute;
  left: 25px;
  top: 19px;
  width: 41px;
}

.function__icon { /* 表示90px（SVGは影込み114px） */
  flex: none;
  width: 114px;
  margin: -12px;
}

.function__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.function__head {
  font-family: var(--font-mincho);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.function__desc {
  font-family: var(--font-mincho);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

/* ============================================================
   anchor（Figma: Frame 153 83:3638）
   ============================================================ */
.anchor {
  padding: 30px 0;
  background: var(--color-dan-anchor-bg);
}

.anchor__list {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.anchor__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px 13px 24px;
  background: var(--color-neutral-white);
  border: 1px solid var(--color-dan-red);
  border-radius: 30px;
  color: var(--color-dan-red);
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
}
.anchor__btn:hover { opacity: 0.8; }

/* ============================================================
   products（Figma: Frame 163 83:3644）
   ============================================================ */
.products {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
  padding: 120px 0 200px;
  background: var(--color-dan-cream);
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  width: var(--layout-container);
  max-width: 100%;
}

/* ---------- 特集見出し（Figma: Frame 164 instance 1200幅） ---------- */
.feature-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 28px 0 24px;
  background: url(/ec/img/usr/pg/campaign/pt-warm/bg_heading.jpg) center / cover no-repeat;
  color: #fff !important;
  text-align: center;
}

.feature-head__lead {
  font-family: var(--font-mincho-b1);
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
}

.feature-head__ttl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mincho-b1);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.feature-head__mark { /* 「暖」66px +「＋」36px（left 55.29 / top 16 で重ね） */
  position: relative;
  flex: none;
  width: 91.29px;
  height: 66px;
}
.feature-head__dan {
  width: 66px;
  height: 66px;
}
.feature-head__plus {
  position: absolute;
  left: 55.29px;
  top: 16px;
  width: 36px;
  height: 36px;
}

.feature-head__main {
  padding-bottom: 10px;
  font-size: 60px;
  color: #fff !important;
}
/* 字詰め時は末尾文字の詰め分を margin-right で戻し、sub との間隔を保つ */
.feature-head__main.-tight { /* Figma: ストレッチ -9.6px */
  letter-spacing: -0.16em;
  margin-right: 0.16em;
}
.feature-head__main.-condensed { /* Figma: ウォッシャブル・抗ピル -3.2〜-6px */
  letter-spacing: -0.08em;
  margin-right: 0.08em;
}

.feature-head__sub {
  margin-left: -4px; /* Figma: main→sub の gap 6px */
  padding-bottom: 10px;
  font-size: 30px;
  letter-spacing: -0.1em;
  color: #fff !important;
}

.feature-head__func {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-head__label {
  padding: 10px 6px 12px;
  border-top: 1px solid var(--color-neutral-white);
  border-bottom: 1px solid var(--color-neutral-white);
  font-size: 11px;
  font-weight: 600;
  line-height: normal;
}

.feature-head__icons {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.feature-head__icons img { width: 44px; }
.feature-head__icons img.-wide { width: 54px; } /* ウォッシャブル */
.feature-head__icons img.-narrow { width: 41px; } /* 防シワ */

/* ---------- カテゴリ見出し（Figma: 線 + 28px） ---------- */
.category-ttl {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
  font-family: var(--font-mincho-b1);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-dan-red);
  white-space: nowrap;
}
.category-ttl::before,
.category-ttl::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-dan-red);
}

/* ---------- 商品スライダー（Figma: リスト1080 / 送りボタン44px 左右） ---------- */
.item-slider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.item-slider__track {
  display: flex;
  align-items: flex-start;
  gap: 20px; /* Figma実測 */
  width: 1080px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.item-slider__track::-webkit-scrollbar { display: none; }
.item-slider__track > .spec-item { flex: none; }
/* 点数が少ないときは中央寄せ（overflow時も左端が切れない auto マージン方式） */
.item-slider__track > .spec-item:first-child { margin-left: auto; }
.item-slider__track > .spec-item:last-child { margin-right: auto; }

.item-slider__btn {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.item-slider__btn img {
  width: 100%;
  height: 100%;
}
.item-slider__btn.-prev img { transform: scaleX(-1); }
.item-slider__btn:hover { opacity: 0.8; }
.item-slider__btn:disabled { opacity: 0.3; cursor: default; } /* 端まで来たとき（JSで付与） */
.item-slider.-static .item-slider__btn { visibility: hidden; } /* スクロール不要時（JSで付与） */

/* ---------- spec/item（design-system css/spec.css ベース / Figma: PC w200 gap10） ---------- */
.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
}
.spec-item > a { width: 100%; }

.spec-item__image {
  width: 100%;
  aspect-ratio: 452 / 764;
  background: var(--color-neutral-solid-gray-100);
  overflow: hidden;
}
.spec-item__image img {
  width: 100%;
  height: 100%;
}

.spec-item__name {
  width: 100%;
  padding-top: 10px;
  font-size: var(--font-size-product);
  font-weight: var(--font-weight-400);
  text-align: center;
  word-break: break-word;
}

.spec-item__price {
  width: 100%;
  padding-top: 10px;
  font-size: var(--font-size-price);
  font-weight: var(--font-weight-700);
  text-align: center;
}

/* ---------- さらに＋ウォッシャブル（Figma: Frame 165 83:3722） ---------- */
.washable {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  color: var(--color-dan-red);
}

.washable__ttl {
  font-family: var(--font-mincho-b1);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.washable__body {
  display: flex;
  align-items: center;
  gap: 24px;
}

.washable__icon {
  flex: none;
  width: 54px;
}

.washable__txt {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

/* ============================================================
   SP（〜767px）
   ============================================================ */
@media (max-width: 767px) {

  /* PC / SP 出し分け */
  .pc { display: none; }
  .sp { display: block; }

  .sp-br { display: block; }
  .pc-br { display: none; }

  /* header / footer / KV（SPは幅いっぱい） */
  .site-header img,
  .site-footer img,
  .kv img {
    width: 100%;
    left: 0;
    transform: none;
  }

  /* intro（Figma: intro 88:2224） */
  .intro {
    gap: 48px;
    padding: 40px 0 64px;
  }
  .intro__body { gap: 48px; }

  /* tab（Figma: 166x56 / gap12） */
  .tab-nav {
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 0 20px;
  }
  .tab-btn {
    max-width: 235px;
    height: 56px;
    font-size: 18px;
  }

  /* お悩み（Figma: 344幅） */
  .worry {
    max-width: calc(100% - 40px);
    padding: 24px 0 28px;
  }
  .worry__ttl { font-size: 18px; }
  .worry__line {
    width: 244.8px;
    margin-top: 1px;
  }
  .worry__list {
    gap: 12px;
    margin-top: 18px;
  }
  .worry__item { font-size: 14px; }

  /* キャッチ（Figma: Union 320x65 / gap16） */
  .catch__ttl img {
    width: 355px;
    margin: -17.5px;
  }
  .catch__txt {
    margin-top: 16px;
    font-size: 17px;
  }
  .catch__em { font-size: 22px; }

  /* 代表的な機能（Figma: 1列 344幅 / アイコン64px） */
  .function { gap: 20px; }
  .function__ttl { font-size: 18px; }
  .function__list,
  .function__list.-clm3 {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 344px;
    max-width: calc(100% - 40px);
  }
  .function__icon {
    width: 81px;
    margin: -8.5px;
  }
  .function__mark { /* Figma: 64px円 / アイコン29px left17.78 top13.51 */
    width: 64px;
    height: 64px;
  }
  .function__mark-icon {
    left: 17.78px;
    top: 13.51px;
    width: 29.156px;
  }
  .function__body { gap: 4px; }
  .function__head { font-size: 15px; }
  .function__desc { font-size: 12px; }

  /* anchor（Figma: 88:2329 wrap / gap8） */
  .anchor { padding: 24px 20px; }
  .anchor__list {
    flex-wrap: wrap;
    gap: 8px;
  }
  .anchor__btn {
    gap: 6px;
    padding: 9px 12px 9px 16px;
    font-size: 14px;
  }

  /* products（Figma: 88:2342 pt64 / gap64） */
  .products {
    gap: 64px;
    padding: 64px 0;
  }
  .feature { gap: 32px; }

  /* 特集見出し（Figma: 見出し_sp 344幅） */
  .feature-head {
    gap: 12px;
    max-width: calc(100% - 40px);
    padding: 20px 16px;
  }
  .feature-head__lead {
    font-size: 13px;
    line-height: 1.6;
  }
  .feature-head__ttl {
    gap: 6px;
    color: #fff;
  }
  .feature-head__mark {
    width: 56.6px;
    height: 40.92px;
  }
  .feature-head__dan {
    width: 40.92px;
    height: 40.92px;
  }
  .feature-head__plus {
    left: 34.28px;
    top: 9.92px;
    width: 22.32px;
    height: 22.32px;
  }
  .feature-head__main {
    padding-bottom: 4px;
    font-size: 26px;
    letter-spacing: 0.04em;
  }
  .feature-head__main.-tight {
    letter-spacing: 0.04em;
    margin-right: 0;
  }
  .feature-head__main.-tight-sp { /* Figma: ストレッチ・撥水 -2.6px */
    letter-spacing: -0.1em;
    margin-right: 0.1em;
  }
  .feature-head__main.-condensed { /* Figma: -4.42px */
    letter-spacing: -0.17em;
    margin-right: 0.17em;
  }
  .feature-head__sub {
    margin-left: -2px; /* Figma: gap 4px */
    padding-bottom: 4px;
    font-size: 14px;
  }

  /* SPで main / sub を縦積み（Figma: ウォッシャブル・抗ピル ／ ニット） */
  .feature-head__ttl.-stack-sp {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    gap: 4px 6px;
  }
  .feature-head__ttl.-stack-sp .feature-head__mark { grid-row: 1 / 3; }
  .feature-head__ttl.-stack-sp .feature-head__main { padding-bottom: 0; }
  .feature-head__ttl.-stack-sp .feature-head__sub {
    justify-self: center;
    margin-left: 0;
    padding-bottom: 4px;
  }
  .feature-head__func {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .feature-head__icons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .feature-head__icons img { width: 30.8px; }
  .feature-head__icons img.-wide { width: 37.8px; }
  .feature-head__icons img.-narrow { width: 28.7px; }

  /* カテゴリ見出し（Figma: 344幅 / 21px / gap16） */
  .category-ttl {
    gap: 16px;
    width: 344px;
    max-width: calc(100% - 40px);
    font-size: 21px;
  }

  /* 商品スライダー（Figma: SP gap16 pl20 横スクロール。送りボタンなし） */
  .item-slider__track {
    width: 100%;
    gap: var(--space-16);
    padding-left: 20px;
  }
  .item-slider__track > .spec-item:first-child { margin-left: 0; }
  .item-slider__track > .spec-item:last-child { margin-right: 20px; } /* 右端の余白 */
  .item-slider__btn { display: none; }

  /* spec/item（Figma: SP w152 / padding-top 8px） */
  .spec-item { width: 152px; }
  .spec-item__name,
  .spec-item__price { padding-top: var(--space-8); }

  /* さらに＋ウォッシャブル（Figma: 88:2892 344幅） */
  .washable {
    gap: 12px;
    width: 344px;
    max-width: calc(100% - 40px);
  }
  .washable__ttl { font-size: 19px; }
  .washable__body {
    gap: 12px;
    width: 100%;
  }
  .washable__icon { width: 43.2px; }
  .washable__txt { font-size: 12px; }
}
