/* =============================================================
   K-Beauty Store Seoulé — ATELIER SEOUL Design Tokens & Components
   全ページ共通: index.html / concern.html / brands.html
   ============================================================= */

:root {
  /* color */
  --color-bg: #FAF8F5;
  --color-surface: #FFFFFF;
  --color-surface-2: #F3EFE9;      /* 商品画像台紙 */
  --color-text: #211D1A;
  --color-text-sub: #6B625B;
  --color-accent: #A63955;          /* プラムローズ */
  --color-accent-soft: #F6E7EB;
  --color-sale: #B3123F;            /* セール価格専用 */
  --color-badge-authentic: #175B4E; /* 正規品バッジ */
  --color-badge-sale: #211D1A;
  --color-badge-new: #A63955;
  --color-border: #E8E1D8;
  --color-gold-line: #B79A63;       /* 飾り罫のみ(背景・ボーダー用) */
  --color-gold-text: #8A6E39;       /* 文字用の金。罫線色は白地コントラスト3:1未満で文字に使えない */
  --color-on-dark: #FFFFFF;

  /* typography */
  --font-heading: "Shippori Mincho", serif;
  --font-latin: "Cormorant Garamond", serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;
  --font-number: "Inter", sans-serif;
  --fs-display: clamp(1.75rem, 5vw, 2.5rem);
  --fs-h1: clamp(1.5rem, 4vw, 2rem);
  --fs-h2: clamp(1.25rem, 3vw, 1.625rem);
  --fs-h3: 1.0625rem;
  --fs-body: 0.9375rem;
  --fs-caption: 0.75rem;
  --fs-price: 1.125rem;
  --lh-heading: 1.4;
  --lh-body: 1.8;
  --ls-latin: 0.08em;

  /* shape */
  --radius-card: 8px;
  --radius-button: 4px;
  --radius-badge: 2px;
  --shadow-card: 0 1px 3px rgba(33,29,26,.06);
  --shadow-card-hover: 0 4px 12px rgba(33,29,26,.10);
  --border-default: 1px solid var(--color-border);

  /* spacing (4px基準) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px;
  --space-4: 16px;
  /* 欠番だった 5・7 を追加。スケールは 4px × n。
     未定義の変数を1つ混ぜると **ショートハンド全体が無効**になり、
     padding が丸ごと 0 になる（実際に商品ページの成分カードで
     文字が枠に張り付いていた原因）。飛ばさずに揃えておく。 */
  --space-5: 20px;
  --space-7: 28px; --space-6: 24px; --space-8: 32px;
  --space-12: 48px; --space-16: 64px;

  /* layout */
  --container: 1080px;
  --header-h-sp: 56px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: "palt";
  overflow-x: hidden;
}
/* ★hidden属性は必ず効かせる★
   ブラウザ既定の [hidden]{display:none} は詳細度が最弱なので、
   .ship-box__row{display:flex} のようなクラス指定に負けて無効化される。
   JSが hidden=true にしているのに要素が残り、
   「アイコンだけあって文章が無い行」や「空のカートに“レジへ進む”が出る」
   といった不具合になっていた。共通CSSで一度だけ担保する。 */
[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: var(--lh-heading); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: var(--color-accent-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--space-4); }
@media (min-width: 769px) { .container { padding-inline: var(--space-6); } }

.section { padding-block: 40px; }
@media (min-width: 769px) { .section { padding-block: var(--space-16); } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* =============================================================
   1. 告知バー
   ============================================================= */
.announce-bar {
  background: var(--color-text);
  color: var(--color-on-dark);
  text-align: center;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  padding: 7px 10px;
  /* SPはnowrapにしない: 320px級の端末で文末が黙って切れていた。2行に折り返して見せる */
}
.announce-bar .sep { margin-inline: 0.6em; opacity: 0.45; }
@media (min-width: 769px) { .announce-bar { font-size: 0.75rem; padding: 8px 16px; white-space: nowrap; overflow: hidden; } }

/* =============================================================
   2. ヘッダー本体 (sticky)
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 245, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: var(--border-default);
}

/* --- SP: 左ハンバーガー / 中央ロゴ / 右 検索+カート --- */
.header-bar {
  display: grid;
  grid-template-columns: 88px 1fr 88px;
  align-items: center;
  height: var(--header-h-sp);
  padding-inline: var(--space-2);
  max-width: var(--container);
  margin-inline: auto;
}
.header-bar__left { display: flex; justify-content: flex-start; }
.header-bar__right { display: flex; justify-content: flex-end; gap: var(--space-2); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-button);
  color: var(--color-text);
  transition: background-color .2s ease;
}
.icon-btn:hover { background: var(--color-accent-soft); }
.icon-btn svg { width: 21px; height: 21px; }

/* ロゴ */
.site-logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1; justify-self: center; }
.site-logo__main { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.site-logo__en {
  font-family: var(--font-latin); font-weight: 600;
  font-size: 1.4375rem; letter-spacing: 0.05em; color: var(--color-text);
}
.site-logo__ko { font-size: 0.6875rem; color: var(--color-accent); letter-spacing: 0.1em; }
.site-logo__sub {
  font-family: var(--font-number); font-size: 0.5rem; font-weight: 500;
  letter-spacing: 0.34em; color: var(--color-text-sub);
  margin-top: 2px; text-indent: 0.34em; white-space: nowrap;
}

/* --- PC ヘッダー --- */
.header-top { display: none; }
.global-nav { display: none; }

@media (min-width: 769px) {
  .header-bar { display: none; }

  .header-top {
    display: flex; align-items: center; gap: var(--space-8);
    max-width: var(--container); margin-inline: auto;
    padding: var(--space-3) var(--space-6);
  }
  .header-top .site-logo { align-items: flex-start; }
  .site-logo__en { font-size: 1.75rem; }

  .header-search { flex: 1; max-width: 460px; margin-inline: auto; position: relative; }
  .header-search input {
    width: 100%; height: 42px;
    padding: 0 44px 0 var(--space-4);
    border: var(--border-default); border-radius: var(--radius-button);
    background: var(--color-surface);
    font-family: var(--font-body); font-size: 0.8125rem; color: var(--color-text);
  }
  .header-search input::placeholder { color: var(--color-text-sub); }
  .header-search input:focus { outline: none; border-color: var(--color-accent); }
  .header-search input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
  .header-search button {
    position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 38px; display: grid; place-items: center; color: var(--color-text-sub);
  }
  .header-search button svg { width: 19px; height: 19px; }

  .header-links { display: flex; align-items: center; gap: var(--space-4); }
  .header-links__guide { font-size: 0.8125rem; color: var(--color-text-sub); transition: color .2s; }
  .header-links__guide:hover { color: var(--color-accent); }

  .global-nav { display: block; border-top: 1px solid var(--color-border); }
  /* 項目の合計が容器を数px超えるとflexの圧縮で全項目が文字折り返しになり
     「ランキン/グ」のような壊れた見た目になる。折り返しは禁止し、
     入り切らない幅では横スクロールに逃がす */
  .global-nav ul {
    display: flex; justify-content: center; gap: clamp(12px, 2.5vw, 36px);
    max-width: var(--container); margin-inline: auto; padding-inline: var(--space-6);
    overflow-x: auto; scrollbar-width: none;
  }
  .global-nav ul::-webkit-scrollbar { display: none; }
  .global-nav a { white-space: nowrap; }
  .global-nav a {
    display: inline-block; padding: 12px 2px;
    font-size: 0.875rem; letter-spacing: 0.06em;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
  }
  .global-nav a:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }
  .global-nav a.is-sale { color: var(--color-accent); font-weight: 700; }
  .global-nav .nav-caret { font-size: 0.625rem; color: var(--color-text-sub); margin-left: 2px; }
}

/* =============================================================
   3. USPバー (ヘッダー直下)
   ============================================================= */
.usp-bar { background: var(--color-surface); border-bottom: var(--border-default); }
.usp-bar__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--color-border);
  max-width: var(--container); margin-inline: auto;
  border-inline: var(--border-default);
}
.usp-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--color-surface);
  padding: 10px 12px;
  font-size: 0.6875rem; letter-spacing: 0.02em; line-height: 1.35;
  color: var(--color-text);
}
.usp-item svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--color-badge-authentic); }
@media (min-width: 769px) {
  .usp-bar__inner { grid-template-columns: repeat(4, 1fr); }
  .usp-item { justify-content: center; font-size: 0.75rem; padding: 12px 8px; }
}

/* =============================================================
   4. SPドロワー
   ============================================================= */
/* 閉じている間は visibility ごと隠す(aria-hidden なのに Tab で入れてしまうため)。
   開閉は .drawer.is-open で切り替わる */
.drawer { position: fixed; inset: 0; z-index: 200; pointer-events: none; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__overlay {
  position: absolute; inset: 0;
  background: rgba(33, 29, 26, 0.45);
  opacity: 0; transition: opacity .3s ease;
}
.drawer__panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(84vw, 340px);
  background: var(--color-surface);
  transform: translateX(-102%);
  transition: transform .32s cubic-bezier(.22,.8,.36,1);
  overflow-y: auto;
  display: flex; flex-direction: column;
  box-shadow: 4px 0 24px rgba(33,29,26,.12);
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  border-bottom: var(--border-default);
}
.drawer__search { padding: var(--space-4); border-bottom: var(--border-default); position: relative; }
.drawer__search input {
  width: 100%; height: 42px;
  padding: 0 42px 0 var(--space-3);
  border: var(--border-default); border-radius: var(--radius-button);
  background: var(--color-bg); font-family: var(--font-body);
  font-size: 0.8125rem;
}
.drawer__search input:focus { outline: none; border-color: var(--color-accent); }
.drawer__search input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.drawer__search button {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; display: grid; place-items: center; color: var(--color-text-sub);
}
.drawer__search button svg { width: 18px; height: 18px; }

.drawer__group { padding: var(--space-4); border-bottom: var(--border-default); }
.drawer__label {
  font-size: 0.6875rem; letter-spacing: 0.12em; color: var(--color-text-sub);
  margin-bottom: var(--space-2);
}
.drawer__label .ko { color: var(--color-accent); margin-left: 6px; letter-spacing: 0.06em; }
.drawer__group li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 2px; font-size: 0.875rem;
  border-radius: var(--radius-button);
}
.drawer__group li a:active { background: var(--color-accent-soft); }
.drawer__group li a .arrow { color: var(--color-border); font-family: var(--font-number); }
.drawer__group li a:active .arrow { color: var(--color-accent); }
.drawer__group--links li a { font-weight: 500; }
.drawer__group .is-sale { color: var(--color-accent); font-weight: 700; }
.drawer__more {
  display: inline-block; margin-top: var(--space-2);
  font-size: 0.8125rem; color: var(--color-accent);
}
/* ドロワー先頭の「すべての商品を見る」。
   全商品への導線が検索アイコンしか無かったため、目立つ1行として置く */
.drawer__all {
  display: flex; align-items: center; justify-content: space-between;
  margin: var(--space-3) var(--space-4) 0;
  padding: 12px var(--space-4);
  background: var(--color-accent-soft);
  border-radius: var(--radius-button);
  font-size: 0.875rem; font-weight: 700; color: var(--color-accent);
}
.drawer__all .arrow { font-family: var(--font-number); }
.drawer__foot {
  margin-top: auto; padding: var(--space-4);
  background: var(--color-surface-2);
  font-size: 0.6875rem; color: var(--color-text-sub); line-height: 1.7;
}
.drawer__foot strong { color: var(--color-badge-authentic); font-weight: 700; }

/* =============================================================
   5. セクション見出し (h2 + 金の飾り罫 + ハングル小書き)
   ============================================================= */
.section-head { text-align: center; margin-bottom: var(--space-6); }
@media (min-width: 769px) { .section-head { margin-bottom: var(--space-8); } }
.section-head__en {
  display: block;
  font-family: var(--font-latin); font-style: italic; font-weight: 500;
  font-size: 0.8125rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-text-sub); margin-bottom: 6px; text-indent: 0.22em;
}
.section-head h2 {
  font-size: var(--fs-h2); font-weight: 600; letter-spacing: 0.04em;
  display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.section-head .ko {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 500;
  color: var(--color-accent); letter-spacing: 0.08em;
}
.section-head__rule {
  display: block; width: 44px; height: 1px;
  background: var(--color-gold-line);
  margin: 12px auto 0;
}
.section-head__lead {
  font-size: 0.8125rem; color: var(--color-text-sub);
  margin-top: var(--space-3); line-height: 1.9;
}

/* 左寄せバリアント(カテゴリヘッダー等) */
.section-head--left { text-align: left; }
.section-head--left h2 { justify-content: flex-start; }
.section-head--left .section-head__rule { margin-left: 0; }

/* =============================================================
   6. ボタン
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 var(--space-8);
  border-radius: var(--radius-button);
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.08em;
  transition: opacity .2s ease, background-color .2s ease, transform .2s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--color-text); color: var(--color-on-dark); }
.btn--primary:hover { opacity: 0.85; }
.btn--ghost { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-text); }
.btn--ghost:hover { background: var(--color-accent-soft); }
.btn--small { min-height: 40px; padding: 0 var(--space-6); font-size: 0.8125rem; }
.btn .btn-arrow { font-family: var(--font-number); font-weight: 400; }

/* =============================================================
   7. バッジ
   ============================================================= */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius-badge);
  font-family: var(--font-number); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.04em; line-height: 1.2;
  color: var(--color-on-dark);
  box-shadow: 0 1px 5px rgba(33, 29, 26, .22); /* 画像の上でも縁が立つように */
}
/* %OFFは白地+セール色文字: 派手な商品画像の上で最も読みやすい組み合わせ
   文字組み: 数字を大きく、%OFFは右横・ベースライン揃えで小さく */
.badge--off {
  background: #fff; color: var(--color-sale);
  border: 1px solid rgba(179, 18, 63, .28);
  font-variant-numeric: tabular-nums;
  align-items: baseline;
}
.badge--off b { font-size: 0.875rem; font-weight: 700; }
.badge--off i { font-style: normal; font-size: 0.5625rem; font-weight: 700; margin-left: 1px; letter-spacing: .02em; }
.badge--new { background: var(--color-badge-new); letter-spacing: .08em; }
/* 在庫なし: 売り込みの色(プラム/セール色)を使わず、事実として静かに伝える */
.badge--soldout {
  background: rgba(33, 29, 26, .78); color: #fff;
  font-family: var(--font-body); letter-spacing: .06em;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.badge--rank { background: var(--color-badge-sale); font-family: var(--font-body); }

/* ---- 順位メダル(カード左上) : 1〜3位は金銀銅で強調、4位以下は控えめな円 ---- */
.badge-medal {
  /* 数字と「位」はベースライン揃えの横組み(大きい数字の右横・少し下に単位) */
  display: inline-grid; grid-auto-flow: column;
  align-items: baseline; align-content: center; justify-content: center;
  column-gap: 1px;
  width: 40px; height: 40px; border-radius: 50%;
  color: #fff;
  border: 2px solid #fff; /* 白の外周リング: どんな画像の上でも輪郭が立つ */
  font-family: var(--font-number); font-weight: 700; line-height: 1;
  box-shadow: 0 2px 8px rgba(33, 29, 26, .3), inset 0 0 0 1px rgba(255, 255, 255, .4);
  text-shadow: 0 1px 2px rgba(33, 29, 26, .3);
}
.badge-medal b { font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.badge-medal i { font-style: normal; font-size: 0.5625rem; font-weight: 600; letter-spacing: 0; }
.badge-medal--1 { background: linear-gradient(160deg, #D9B65C, #A47C20 72%); }
.badge-medal--2 { background: linear-gradient(160deg, #BCC2CC, #79818C 72%); }
.badge-medal--3 { background: linear-gradient(160deg, #C9915F, #8F5427 72%); }
.badge-medal--n {
  width: 30px; height: 30px;
  background: rgba(33, 29, 26, .82);
  box-shadow: 0 1px 5px rgba(33, 29, 26, .25);
  text-shadow: none;
}
.badge-medal--n b { font-size: 0.8125rem; }
.badge-medal--n i { font-size: 0.4375rem; margin-top: 1px; }
.badge--authentic { background: var(--color-badge-authentic); font-family: var(--font-body); font-weight: 500; }
.badge--soon {
  background: var(--color-surface); color: var(--color-text-sub);
  border: var(--border-default); font-family: var(--font-body); font-weight: 500;
}

/* =============================================================
   8. 商品カード
   ============================================================= */
.product-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--color-surface);
  border: var(--border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .25s ease;
}
.product-card:hover { box-shadow: var(--shadow-card-hover); }

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--color-surface-2);
  overflow: hidden;
}
.product-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.04); }

/* ---- 在庫なしの商品カード ----
   消さずに残す(何を扱っている店かは伝わるし、再入荷の期待も持てる)。
   ただし写真を淡くして価格も控えめにし、買える商品と一目で区別できるようにする */
.product-card--soldout .product-card__media img { opacity: .42; filter: grayscale(38%); }
.product-card--soldout:hover .product-card__media img { transform: none; }
.product-card--soldout .price-sale { color: var(--color-text-sub); }
.product-card--soldout .product-card__name a { color: var(--color-text-sub); }
.product-card__badges {
  position: absolute; top: 8px; left: 8px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  z-index: 1;
}

.product-card__body {
  display: flex; flex-direction: column; flex: 1;
  padding: var(--space-3);
  gap: 4px;
}
.product-card__brand {
  font-family: var(--font-latin); font-weight: 600;
  font-size: 0.6875rem; letter-spacing: var(--ls-latin);
  text-transform: uppercase; color: var(--color-text-sub);
}
.product-card__name { font-family: var(--font-body); font-weight: 500; font-size: 0.8125rem; line-height: 1.5; }
.product-card__name a { color: inherit; }
/* カード全体をリンク化 (stretched link) */
.product-card__name a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.product-card__name .clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.5em);
}
.product-card__sub { font-size: 0.6875rem; color: var(--color-text-sub); line-height: 1.4; }

.product-card__price {
  margin-top: auto; padding-top: 4px;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px;
  font-family: var(--font-number); font-feature-settings: "tnum";
}
.price-sale { font-size: var(--fs-price); font-weight: 700; color: var(--color-sale); letter-spacing: 0; }
.price-sale .tax { font-size: 0.625rem; font-weight: 400; color: var(--color-text-sub); font-family: var(--font-body); }
.price-regular { font-size: 0.8125rem; color: var(--color-text-sub); font-weight: 400; }
.price-off { font-size: 0.6875rem; font-weight: 600; color: var(--color-sale); }

.product-card__tag {
  position: relative; z-index: 1;
  align-self: flex-start;
  margin-top: 6px;
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--color-accent-soft);
  background: var(--color-accent-soft);
  border-radius: var(--radius-badge);
  font-size: 0.6875rem; color: var(--color-accent);
  transition: background-color .2s ease;
}
.product-card__tag:hover { background: var(--color-surface); border-color: var(--color-accent); }

/* 商品グリッド */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (min-width: 769px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); } }

/* =============================================================
   9. 横スクロールカルーセル
   ============================================================= */
.carousel {
  display: flex; gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px var(--space-4);
  margin-inline: -4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
.carousel::-webkit-scrollbar-track { background: transparent; }
.carousel > * {
  flex: 0 0 auto;
  width: min(46vw, 200px);
  min-width: 0;
  scroll-snap-align: start;
}
@media (min-width: 769px) {
  .carousel { gap: var(--space-4); }
  .carousel > * { width: 200px; }
}

/* =============================================================
   10. 肌悩みカード
   ============================================================= */
.concern-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (min-width: 769px) { .concern-grid { grid-template-columns: repeat(6, 1fr); gap: var(--space-4); } }

.concern-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 6px;
  background: var(--color-surface);
  border: var(--border-default);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-2);
  box-shadow: var(--shadow-card);
  transition: box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
.concern-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-accent);
  background: linear-gradient(180deg, var(--color-surface) 55%, var(--color-accent-soft) 160%);
}
.concern-card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: 50%;
}
.concern-card__icon svg { width: 24px; height: 24px; }
.concern-card__name { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 600; line-height: 1.4; }
.concern-card__copy { font-size: 0.6563rem; color: var(--color-text-sub); line-height: 1.5; }

/* =============================================================
   11. チップ (絞り込み・肌悩みタグ・回遊導線)
   ============================================================= */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip-row--scroll {
  flex-wrap: nowrap; overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.chip-row--scroll::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 14px;
  border: var(--border-default);
  border-radius: var(--radius-button);
  background: var(--color-surface);
  font-size: 0.75rem; letter-spacing: 0.02em;
  color: var(--color-text);
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
  cursor: pointer;
}
.chip:hover { border-color: var(--color-accent); color: var(--color-accent); }
.chip.is-active {
  background: var(--color-text); border-color: var(--color-text);
  color: var(--color-on-dark);
}
.chip--soft { background: var(--color-accent-soft); border-color: var(--color-accent-soft); color: var(--color-accent); }
.chip--soft:hover { background: var(--color-surface); }

/* =============================================================
   12. カテゴリ/ブランド タイル
   ============================================================= */
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (min-width: 769px) { .tile-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); } }
@media (min-width: 1024px) { .tile-grid--6 { grid-template-columns: repeat(6, 1fr); } .tile-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.photo-tile {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--color-surface);
  border: var(--border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .25s ease;
}
.photo-tile:hover { box-shadow: var(--shadow-card-hover); }
.photo-tile__media {
  aspect-ratio: 16 / 11;
  background: var(--color-surface-2);
  overflow: hidden;
  position: relative;
}
/* タイル画像はほぼ正方形。coverだと上下31%が切れるためcontainで全部見せる */
.photo-tile__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.photo-tile:hover .photo-tile__media img { transform: scale(1.05); }
.photo-tile__media .badge { position: absolute; top: 8px; left: 8px; }
.photo-tile__body {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 10px var(--space-3);
}
.photo-tile__label { font-size: 0.8125rem; font-weight: 500; line-height: 1.4; }
.photo-tile__label .en {
  display: block;
  font-family: var(--font-latin); font-weight: 600; font-size: 0.9375rem;
  letter-spacing: var(--ls-latin); text-transform: uppercase; line-height: 1.3;
}
.photo-tile__label .jp-sub { display: block; font-size: 0.6875rem; color: var(--color-text-sub); }
.photo-tile__arrow { color: var(--color-gold-text); font-family: var(--font-number); flex: 0 0 auto; }

/* =============================================================
   13. パンくず
   ============================================================= */
.breadcrumb { padding-block: var(--space-3); font-size: 0.6875rem; color: var(--color-text-sub); }
.breadcrumb ol { display: flex; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.breadcrumb ol::-webkit-scrollbar { display: none; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before { content: "›"; margin-inline: 8px; color: var(--color-border); }
.breadcrumb a:hover { color: var(--color-accent); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--color-text); font-weight: 500; }

/* =============================================================
   14. フッター
   ============================================================= */
.site-footer { background: var(--color-surface); border-top: var(--border-default); margin-top: var(--space-12); }
.site-footer .usp-bar { border-bottom: var(--border-default); background: var(--color-bg); }
.site-footer .usp-bar .usp-item { background: var(--color-bg); }
.site-footer .usp-bar__inner { background: var(--color-border); }

.footer-links {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-6) var(--space-4);
  padding-block: var(--space-8);
}
@media (min-width: 769px) { .footer-links { grid-template-columns: repeat(4, 1fr); } }
.footer-links h3 {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; margin-bottom: var(--space-3);
  color: var(--color-text);
}
.footer-links li { margin-bottom: 6px; }
.footer-links a { font-size: 0.75rem; color: var(--color-text-sub); transition: color .2s ease; }
.footer-links a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: var(--border-default);
  padding-block: var(--space-6);
  text-align: center;
}
.footer-bottom .site-logo { align-items: center; margin-bottom: var(--space-3); }
.footer-bottom .copyright {
  font-family: var(--font-number); font-size: 0.6875rem;
  color: var(--color-text-sub); letter-spacing: 0.05em;
}

/* =============================================================
   15. 汎用
   ============================================================= */
.section-foot { text-align: center; margin-top: var(--space-6); }
.note-shipping {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: var(--space-4);
  font-size: 0.75rem; color: var(--color-text-sub);
}
.note-shipping svg { width: 18px; height: 18px; color: var(--color-badge-authentic); flex: 0 0 auto; }
.text-accent { color: var(--color-accent); }

/* ---- cart badge (Wix Headless連携) ---- */
.icon-btn--cart { position: relative; }
.cart-badge {
  position: absolute; top: 2px; right: 0;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--color-accent); color: #fff;
  font-family: var(--font-number); font-size: 10px; font-weight: 700;
  line-height: 16px; text-align: center; border-radius: 8px;
  pointer-events: none;
}
.cart-badge[hidden] { display: none; }

/* ---------- 重量別の送料表(特商法・ご利用ガイドで共用) ----------
   入れ子の <table> にすると、囲みの表のセル指定(スマホで display:block)まで
   効いてしまうので ul で組む。行数を固定して縦に流すことで、
   HTML の並び順がそのまま「軽い順」の読み順になり、1列に畳んでも崩れない。 */
.rate-list {
  list-style: none; margin: var(--space-3) 0 0; padding: 0;
  display: grid; grid-template-rows: repeat(5, auto); grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 2px 14px; max-width: 400px;
}
.rate-list li {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 5px 0; border-bottom: 1px dotted var(--color-border);
  font-size: 0.75rem; line-height: 1.6;
}
.rate-list b { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .rate-list { grid-template-rows: none; grid-auto-flow: row; max-width: none; }
}
