@charset "UTF-8";
/* =============================================================
   icd-product.css — 製品別ページ（/icd/product-<slug>.html）
   生成は scripts/build-product-pages.mjs。記事ページ（icd-content.css）の上に重ねる。
   配色は記事と同じ：深緑 #1c2d24 ／ 金 #a98f5c ／ 罫線 #ece3d0 ／ 生成り #fbfaf6
   ※ 1rem = 10px。div・span に直接置く文字は必ず font-size を書く（書かないと10px）。
   ============================================================= */

/* ── パンくず（ページの先頭） ───────────────── */
.pd-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 6px 0 18px; font-size: 1.28rem; line-height: 1.7; color: #6b7268; }
.pd-crumb a, .pd-crumb a:visited { color: #1c6b3f; text-decoration: underline !important; text-underline-offset: 3px; }
.pd-crumb a:hover { color: #a98f5c; }
.pd-crumb span[aria-current] { color: #3a463d; }
.pd-crumb__sep { color: #b9ad90; }

/* ── 先頭：写真＋製品情報 ─────────────────────
   並び：写真（左）／名前の塊 .pd-hero__id（右上）／旧名・表・購入 .pd-hero__b（右下）。
   携帯では「名前 → 写真（横幅いっぱいの台に大きく）→ 価格と購入ボタン → 別名・内容量・送料」の順に縦に積む。
   （74px の小さな写真では1画面目が仕様書に見えた。価格と購入ボタンを写真の直下へ回して、写真を大きくしても
     購入ボタンが1画面目に入るようにした。見城 2026-11-20） */
.pd-hero {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); grid-template-rows: auto 1fr;
  column-gap: 34px; align-items: start;
  background: #fbfaf6; border: 1px solid #ece3d0; border-radius: 12px; padding: 28px; margin: 0 0 30px;
}
/* 枠の地は、製品写真の地（上から下への薄いグラデーション）と同じにする。平らな灰色だと写真の縁が段差に見えた（彩点検1） */
.pd-hero__ph {
  grid-column: 1; grid-row: 1 / span 2; margin: 0; border-radius: 8px; overflow: hidden;
  background: linear-gradient(180deg, #f6f6f2 0%, #f4f5f1 25%, #f2f3f0 50%, #eeeeec 75%, #e7e7e3 100%);
}
.pd-hero__ph img { display: block; width: 100%; height: auto; aspect-ratio: 696 / 896; object-fit: cover; }
.pd-hero__id { grid-column: 2; grid-row: 1; min-width: 0; padding-top: 4px; }
.pd-hero__b { grid-column: 2; grid-row: 2; min-width: 0; }
.pd-hero__line { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 10px; font-size: 1.2rem; line-height: 1.6; letter-spacing: .14em; font-weight: 700; color: #8a6f3c; }
.pd-hero__line span + span::before { content: "／"; margin-right: 10px; color: #c9bb98; letter-spacing: 0; }
.icd-content .pd-hero h1 {
  font-family: "Shippori Mincho", "Noto Serif JP", serif; font-weight: 700;
  font-size: 2.8rem; line-height: 1.5; color: #1c2d24; margin: 0 0 6px;
  text-wrap: balance; word-break: auto-phrase;
}
.pd-hero__en { font-size: 1.36rem; line-height: 1.6; letter-spacing: .04em; color: #6b7268; margin: 0 0 12px; }
/* 旧名・別名：1つずつ折れない札にする（「Dermatology／First Package」と名前の途中で折れていた。彩点検17） */
.pd-hero__aka { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 14px; font-size: 1.36rem; line-height: 1.6; color: #3a463d; }
.pd-hero__akah {
  font-size: 1.2rem; font-weight: 700; letter-spacing: .08em; color: #6b7268;
  border: 1px solid #d9cdb0; border-radius: 3px; padding: 0 6px; background: #fff;
}
.pd-aka { display: inline-block; max-width: 100%; font-size: 1.36rem; line-height: 1.6; color: #3a463d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-aka + .pd-aka::before { content: "／"; margin-right: 8px; color: #b9ad90; }
/* 表：項目名と値を左右に置く。値は左寄せで折る（右寄せのまま折ると「45mL」「最初」だけが次の行に落ちて見えた。彩点検5） */
.pd-spec { margin: 0 0 18px; border-top: 1px solid #ece3d0; }
.pd-spec > div { display: grid; grid-template-columns: 9.6rem minmax(0, 1fr); align-items: baseline; column-gap: 14px; padding: 10px 0; border-bottom: 1px solid #ece3d0; }
.pd-spec dt { font-size: 1.3rem; line-height: 1.6; color: #6b7268; font-weight: 700; margin: 0; }
.pd-spec dd { font-size: 1.5rem; line-height: 1.6; color: #1c2d24; margin: 0; text-align: left; }
.pd-spec > div.pd-spec__pricerow { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.pd-spec dd.pd-spec__price { font-family: "Shippori Mincho", "Noto Serif JP", serif; font-size: 2.6rem; font-weight: 700; letter-spacing: .02em; line-height: 1.2; text-align: right; white-space: nowrap; }
.pd-spec--info { margin-bottom: 0; }
.pd-spec--price { border-top: 0; }
.pd-ib { display: inline-block; }
.pd-buy { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.icd-content a.pd-btn, .icd-content a.pd-btn:visited {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; box-sizing: border-box;
  font-size: 1.52rem; font-weight: 700; line-height: 1.4; color: #fff; background: #1c2d24;
  border: 1px solid #1c2d24; border-radius: 999px; padding: 12px 30px; text-decoration: none !important;
}
.icd-content a.pd-btn:hover { background: #a98f5c; border-color: #a98f5c; color: #fff; }
.icd-content a.pd-btn--sub, .icd-content a.pd-btn--sub:visited { color: #1c2d24; background: #fff; border-color: #a98f5c; }
.icd-content a.pd-btn--sub:hover { color: #fff; background: #a98f5c; }
.pd-hero__ship { font-size: 1.24rem; line-height: 1.7; color: #6b7268; margin: 0; }
/* 製品ページの体験会の箱（pd-trial）は 2026-11-20 に廃止。製品ページの出口は購入だけ。 */
/* 本文の途中の購入の枠（本文のあと、使い方の前） */
.pd-midbuy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; margin: 34px 0 30px; padding: 18px 22px; border-radius: 12px; background: #f6f1e6; border: 1px solid #e3d6b8; }
.pd-midbuy p.pd-midbuy__t { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.pd-midbuy__nm { font-family: "Shippori Mincho", "Noto Serif JP", serif; font-size: 1.68rem; font-weight: 700; line-height: 1.5; color: #1c2d24; }
.pd-midbuy__pr { font-size: 1.32rem; line-height: 1.6; color: #3a463d; }
.pd-midbuy__pr b { font-family: "Shippori Mincho", "Noto Serif JP", serif; font-size: 2rem; font-weight: 700; color: #1c2d24; margin-left: 8px; white-space: nowrap; }
.icd-content a.pd-midbuy__btn { white-space: nowrap; }

.ic-lead.pd-lead { margin-bottom: 28px; }

/* ── 本文の中の生成された節 ─────────────────── */
.ic-article .pd-howto__intro { font-weight: 700; color: #1c2d24; }
.pd-steps { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 10px; counter-reset: pd; max-width: none !important; }
.pd-steps > li {
  position: relative; counter-increment: pd; margin: 0; padding: 16px 20px 16px 66px;
  background: #fff; border: 1px solid #e8e2d4; border-radius: 8px;
}
.pd-steps > li::before {
  content: counter(pd); position: absolute; left: 18px; top: 14px;
  width: 32px; height: 32px; border-radius: 50%; background: #1c2d24; color: #fff;
  font: 700 1.5rem/32px "Shippori Mincho", "Noto Serif JP", serif; text-align: center;
}
.pd-steps__d { display: block; font-size: 1.48rem; line-height: 1.9; color: #3a463d; }

.pd-keys { margin: 4px 0 18px; }
.ic-article p.pd-keys__h, .ic-article p.pd-ing__h { font-size: 1.28rem; font-weight: 700; letter-spacing: .08em; color: #8a6f3c; margin: 0 0 8px; }
.pd-keys ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.pd-keys li { font-size: 1.36rem; line-height: 1.6; color: #1c2d24; background: #f6f2e7; border: 1px solid #e4dcc6; border-radius: 999px; padding: 6px 14px; margin: 0; }

.pd-ing { background: #fbfaf6; border: 1px solid #ece3d0; border-radius: 8px; padding: 16px 20px; margin: 0 0 12px; }
.pd-ing__h span { display: inline-block; margin-left: 10px; font-size: 1.24rem; letter-spacing: .04em; color: #fff; background: #1c2d24; border-radius: 3px; padding: 0 8px; }
.ic-article p.pd-ing__t { font-size: 1.36rem; line-height: 1.95; color: #3a463d; margin: 0; max-width: none; }
.ic-article p.pd-ing__note { font-size: 1.32rem; line-height: 1.9; color: #6b7268; margin: 12px 0 0; }

.pd-feat { position: relative; background: #f7f8f6; border-left: 4px solid #a98f5c; border-radius: 6px; padding: 18px 22px 14px; margin: 0 0 18px; }
.pd-feat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pd-feat li { position: relative; padding-left: 26px; font-size: 1.5rem; line-height: 1.9; color: #1c2d24; margin: 0; }
.pd-feat li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 7px;
  border-left: 2px solid #a98f5c; border-bottom: 2px solid #a98f5c; transform: rotate(-45deg);
}
.ic-article p.pd-feat__src { font-size: 1.2rem; line-height: 1.6; color: #6b7268; text-align: right; margin: 10px 0 0; max-width: none; }

/* ── ほかの製品 ─────────────────────────────── */
.pd-rel { margin: 50px 0 0; }
.icd-content h2.pd-rel__h { font-size: 2.08rem; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid #ece3d0; }
.pd-rel__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pd-rel__grid li { margin: 0; }
.pd-rel__grid a, .pd-rel__grid a:visited {
  display: flex; flex-direction: column; height: 100%; box-sizing: border-box; text-decoration: none !important;
  background: #fff; border: 1px solid #e8e2d4; border-radius: 8px; overflow: hidden; color: #1c2d24;
}
.pd-rel__grid a:hover { border-color: #a98f5c; }
.pd-rel__ph { display: block; background: #ececea; }
.pd-rel__ph img { display: block; width: 100%; height: auto; aspect-ratio: 696 / 896; object-fit: cover; }
.pd-rel__nm { display: block; padding: 10px 12px 2px; font-family: "Shippori Mincho", "Noto Serif JP", serif; font-size: 1.44rem; line-height: 1.55; font-weight: 700; color: #1c2d24; }
.pd-rel__pr { display: block; padding: 0 12px 12px; margin-top: auto; font-size: 1.32rem; font-weight: 700; color: #856527; }
.pd-rel__all { margin: 14px 0 0; font-size: 1.4rem; }
.icd-content .pd-rel__all a, .icd-content .pd-rel__all a:visited { color: #1c6b3f; font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }

/* 「あわせて読む」は記事末尾と同じ形。製品ページでは区切り線を上の「ほかの製品」と重ねない */
.pd-page .ic-next { margin-top: 40px; }

/* ── 狭い画面 ───────────────────────────────── */
@media screen and (max-width: 760px) {
  .pd-hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; row-gap: 14px; padding: 16px 16px 18px; border-radius: 10px; }
  .pd-hero__id { grid-column: 1; grid-row: 1; padding-top: 0; }
  /* 写真：横幅いっぱいの台に、製品を大きく中央に置く。台の地は写真の地と同じグラデーションなので、高さをそろえれば左右に継ぎ目は出ない */
  .pd-hero__ph { grid-column: 1; grid-row: 2; height: var(--pd-ph-h, 250px); display: flex; justify-content: center; border-radius: 8px; }
  .pd-hero__ph img { width: auto; height: 100%; max-width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); } /* 写真の左右の縁を台の地に溶かす */
  .pd-hero__b { grid-column: 1; grid-row: 3; display: flex; flex-direction: column; }
  .pd-spec--price { order: 1; margin: 0 0 12px; }
  .pd-buy { order: 2; }
  .pd-hero__aka { order: 4; margin-top: 14px; }
  .pd-spec--info { order: 5; margin: 0 0 10px; }
  .pd-hero__ship { order: 6; }
  .pd-hero__line { margin-bottom: 4px; font-size: 1.2rem; letter-spacing: .04em; gap: 0 10px; }
  .pd-hero__line span + span::before { content: none; }
  .pd-midbuy { grid-template-columns: minmax(0, 1fr); padding: 16px 16px; margin: 28px 0 24px; }
  .icd-content a.pd-midbuy__btn { width: 100%; }
  .icd-content .pd-hero h1 { font-size: 2.1rem; line-height: 1.45; margin-bottom: 4px; }
  .pd-hero__en { font-size: 1.24rem; margin: 0; }
  .pd-hero__aka { margin-bottom: 10px; }
  .pd-spec { margin-bottom: 14px; }
  .pd-spec > div { grid-template-columns: 7.4rem minmax(0, 1fr); column-gap: 10px; padding: 8px 0; }
  .pd-spec dd { font-size: 1.44rem; }
  .pd-spec dd.pd-spec__price { font-size: 2.4rem; }
  /* 購入ボタンを主に、「使い方」は短くして同じ行に並べる */
  .pd-buy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 10px; }
  .icd-content a.pd-btn { padding: 12px 8px; font-size: 1.44rem; white-space: nowrap; }
  .icd-content a.pd-btn--sub { padding: 12px 12px; }
  .pd-sp-hide { display: none; }
  .pd-rel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pd-steps > li { padding: 14px 14px 14px 56px; }
  .pd-steps > li::before { left: 12px; top: 13px; }
  .pd-ing { padding: 14px 15px; }
  .pd-feat { padding: 16px 16px 12px; }
  .pd-feat li { font-size: 1.44rem; }
}
@media screen and (max-width: 400px) {
  /* 狭い画面では写真の台を少し低くして、購入ボタンを1画面目に残す（名前は全幅になったので折れにくい） */
  .pd-hero { padding-left: 14px; padding-right: 14px; --pd-ph-h: 260px; }
  .icd-content .pd-hero h1 { font-size: 2.0rem; }
}
@media screen and (max-width: 370px) {
  .pd-hero { --pd-ph-h: 228px; }
}
@media screen and (max-width: 340px) {
  .pd-spec > div { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
}

/* ── 埋め込みの図（figs の svg）。7days-korea（icd-seven.css）と同じ見せ方を、製品ページ用に持つ ── */
.pd-page .ic-fig--svg {
  margin: 30px 0 34px; padding: 20px 18px 16px; overflow: visible;
  background: #f9f8f2; border: 1px solid #d3d5c4; border-radius: 4px;
}
.pd-page .ic-fig--svg .ic-svg { display: block; width: 100%; height: auto; max-width: 600px; margin: 0 auto; }
.pd-page .ic-fig--svg figcaption { max-width: 600px; margin: 0 auto; padding: 10px 0 0; font-size: 1.32rem; line-height: 1.8; color: #5a6453; }
.pd-page .ic-article p.ic-fig__ttl {
  max-width: 600px; margin: 0 auto 12px; font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 1.6rem; font-weight: 600; line-height: 1.6; letter-spacing: .06em; color: #1e2a22;
}
.pd-page .ic-fig__sub { display: block; margin-top: 4px; font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif; font-size: 1.28rem; font-weight: 400; line-height: 1.7; color: #5a6453; }
.pd-page .ic-fig__nw { white-space: nowrap; }
@media screen and (max-width: 767px) {
  /* 携帯では図を画面の端から端まで使う（SVGの字を大きく出すため） */
  .pd-page .ic-fig--svg {
    box-sizing: border-box; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
    padding: 16px 14px 14px; border-left: 0; border-right: 0; border-radius: 0;
  }
}

/* ── 使う順番（この前 → この製品 → この後）── */
.pd-order { list-style: none; margin: 18px 0 14px; padding: 0; display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 26px; max-width: none !important; position: relative; }
.pd-order__c { position: relative; margin: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 92px; padding: 14px 16px; box-sizing: border-box; background: #fff; border: 1px solid #e8e2d4; border-radius: 8px; text-align: center; }
.pd-order__c + .pd-order__c::before { content: ""; position: absolute; left: -19px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-top: 2px solid #a98f5c; border-right: 2px solid #a98f5c; transform: rotate(45deg); }
.pd-order__c.is-self { background: #1c2d24; border-color: #1c2d24; }
.pd-order__k { display: block; font-size: 1.2rem; font-weight: 700; letter-spacing: .12em; color: #8a6f3c; }
.pd-order__c.is-self .pd-order__k { color: #d9c497; }
.pd-order__v { display: block; font-family: "Shippori Mincho", "Noto Serif JP", serif; font-size: 1.5rem; font-weight: 700; line-height: 1.55; color: #1c2d24; }
.pd-order__v i { display: block; font-style: normal; font-family: inherit; font-size: 1.2rem; font-weight: 400; color: #6b7268; margin: 2px 0; }
.pd-order__c.is-self .pd-order__v { color: #fff; }
.icd-content .pd-order__v a, .icd-content .pd-order__v a:visited { color: #1c6b3f; text-decoration: underline !important; text-underline-offset: 3px; }
.icd-content .pd-order__v a:hover { color: #a98f5c; }
.pd-order__v small { font-size: 1.2rem; font-weight: 400; margin-right: 2px; }
.ic-article p.pd-order__note { font-size: 1.4rem; line-height: 1.9; color: #3a463d; margin: 0 0 18px; }
@media screen and (max-width: 600px) {
  .pd-order { grid-template-columns: 1fr; gap: 22px; }
  .pd-order__c { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; text-align: left; padding: 12px 14px; }
  .pd-order__k { flex: 0 0 5.6em; }
  .pd-order__c + .pd-order__c::before { left: 50%; top: -16px; margin: 0 0 0 -5px; transform: rotate(135deg); }
  .pd-order__v i { display: inline; margin: 0 6px; }
}

/* 語の途中で折らない（「会員価格（税／込）」「パッケー／ジ」と割れていた。390px撮影 2026-11-19） */
.pd-order__v, .pd-rel__nm, .pd-spec dd { word-break: auto-phrase; text-wrap: pretty; }

/* パンくず：携帯では固定ヘッダーの下に半分隠れていた（360px）。記事の「← コラム一覧へ戻る」と同じだけ下げる（歩・彩点検16） */
@media screen and (max-width: 992px) { .pd-crumb { margin-top: 22px; } }

/* 出典の折りたたみ（本文の <details class="pd-src">）。summary に文字の大きさが無く 10px で出ていた */
.pd-src { margin: 10px 0 18px; border: 1px solid #ece3d0; border-radius: 6px; background: #fbfaf6; }
.pd-src > summary { cursor: pointer; font-size: 1.4rem; line-height: 1.7; font-weight: 700; color: #1c2d24; padding: 12px 16px; min-height: 44px; box-sizing: border-box; }
.pd-src[open] > summary { border-bottom: 1px solid #ece3d0; }
.pd-src > ul { margin: 12px 16px 6px; }
.ic-article .pd-src li { font-size: 1.32rem; line-height: 1.85; }

/* 製品名は語の間に空白があるので、空白でだけ折る（入りきらない長い語だけはその中で折る） */
.icd-content .pd-hero h1 { word-break: keep-all; overflow-wrap: anywhere; }

/* 見城 2026-11-20：目次・#dermatology から飛んだとき見出しが固定ヘッダーに隠れないように */
main .ic-article h2[id], main .ic-article h3[id], main h2[id], main h3[id] { scroll-margin-top: 104px; }
