/* 商品ページ共通の見た目（/item/*.html すべてで使う）。
   白地・細い罫線・明朝とセリフ体・金の差し色。商品ごとに変わるものはここに書かない */

:root {
  --bg: #ffffff;
  --surface: #faf8f4;
  --line: #ece7df;
  --line-strong: #d6cdbf;
  --ink: #1d1b18;
  /* 文字色は白地とのコントラスト比 4.5 以上（読みやすさ優先） */
  --ink-soft: #514b43;
  --ink-faint: #776f64;
  --gold: #8c6b35;
  --serif-en: 'Cormorant Garamond', 'Shippori Mincho', serif;
  --serif-jp: 'Shippori Mincho', 'Zen Old Mincho', serif;
  /* 本文・ボタンなどは端末のゴシック体（ウェブフォントを読まず軽くする。明朝と英字だけウェブフォント） */
  --sans: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic Medium', 'Yu Gothic', YuGothic, Meiryo, sans-serif;
  /* 端末に入っているフォント（読み込みが無く、表示のずれが起きない） */
  --serif-en-local: 'Times New Roman', Times, 'Noto Serif', serif;
  --sans-local: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', YuGothic, Meiryo, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.8;
  font-variant-numeric: lining-nums;
  overflow-x: clip;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }

/* ---- ヘッダー・フッター（サイト共通） ---- */
.notice-bar {
  margin: 0;
  background: var(--ink);
  color: #efe8dc;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  padding: 7px 16px;
  position: relative;
}
.notice-text { margin: 0; }
/* 会員の名前・マイページ・新規会員登録（帯に重ねて出すので、出ても周りは動かない） */
.member-links {
  position: absolute;
  top: 0;
  bottom: 0;
  right: var(--gutter);
  margin: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  letter-spacing: 0.06em;
}
.member-links[hidden], .member-links [hidden] { display: none; }
.member-links a { color: inherit; text-decoration: none; }
.member-links a:hover { text-decoration: underline; }
.member-links .sep { margin: 0 0.6em; opacity: 0.5; }
.member-name { display: inline-block; max-width: 12em; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.site-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--line);
  /* 上に貼り付く（黒い帯は貼り付かない）。下へ読み進める間は隠れ、上に戻すと出る */
  position: sticky;
  top: 0;
  z-index: 15;
  background: var(--bg);
  transition: transform .3s ease;
}
.site-head.is-hidden { transform: translateY(-100%); }
.head-nav { display: flex; align-items: center; gap: 22px; font-size: 12px; letter-spacing: 0.12em; color: var(--ink-soft); }
.head-nav a { text-decoration: none; }
.head-nav > a:hover, .nav-drop-btn:hover, .nav-drop:focus-within .nav-drop-btn { color: var(--ink); }
/* 幅の狭い PC ではロゴにくっつくので、COLUMN・CONTACT を隠す（三本線のメニューから行ける） */
@media (max-width: 1060px) { .head-nav > a { display: none; } }

/* PC：CATEGORY・GUIDE にマウスを乗せる（キーボード・タップでは選ぶ）と、ヘッダーの下に画面幅のパネルが出る */
.nav-drop-btn {
  background: none;
  border: 0;
  padding: 6px 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-drop-btn::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .25s;
}
.nav-drop:hover .nav-drop-btn::after, .nav-drop:focus-within .nav-drop-btn::after { transform: translateY(1px) rotate(-135deg); }
.nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 50px -30px rgba(29, 27, 24, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  /* 閉じるのは少し待つ（ボタンからパネルへマウスを動かす途中で閉じないように） */
  transition: opacity .25s ease .12s, transform .25s ease .12s, visibility 0s linear .37s;
}
.nav-drop:hover .nav-panel, .nav-drop:focus-within .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s ease .06s, transform .25s ease .06s, visibility 0s linear .06s;
}
.nav-panel-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px var(--gutter) 40px;
  display: flex;
  gap: clamp(32px, 5vw, 72px);
}
.nav-col { flex: 1; min-width: 0; }
.nav-col-wide { flex: 1.4; }
.nav-label { margin: 0 0 14px; font-family: var(--serif-en); font-size: 12px; letter-spacing: 0.28em; color: var(--gold); }
.nav-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px 28px; letter-spacing: 0.06em; }
.nav-links-3 { grid-template-columns: repeat(3, auto); justify-content: start; }
.nav-links a { display: inline-block; padding: 6px 0; font-size: 13px; color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 calc(100% - 4px) / 0 1px no-repeat; transition: background-size .3s, color .2s; }
.nav-links a:hover { color: var(--gold); background-size: 100% 1px; }
.nav-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nav-chips a { display: block; padding: 5px 12px; border: 1px solid var(--line); font-size: 12px; letter-spacing: 0.04em; color: var(--ink); transition: border-color .2s, color .2s; }
.nav-chips a:hover { border-color: var(--gold); color: var(--gold); }
.head-nav .menu-btn { margin-left: -4px; }
.brand { text-align: center; text-decoration: none; }
/* ロゴ（static/images/logo_black_bts.webp、420×115。上下に余白あり）。高さで大きさを決める */
.brand-logo { display: block; height: 40px; width: auto; margin: 0 auto; }
.head-icons { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
/* PC の検索：細い下線だけ。入力中は少し伸びて線が濃くなる */
.head-search {
  display: flex;
  align-items: center;
  width: 170px;
  border-bottom: 1px solid var(--line-strong);
  transition: width .35s cubic-bezier(.2, .7, .2, 1), border-color .25s;
}
.head-search:focus-within { width: 240px; border-color: var(--ink); }
.head-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: 6px 0;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  outline: none;
}
.head-search input::placeholder, .sheet-search input::placeholder { color: var(--ink-faint); letter-spacing: 0.08em; }
.head-search input::-webkit-search-cancel-button { display: none; }
.head-search button { background: none; border: 0; padding: 4px 0 4px 8px; cursor: pointer; color: var(--ink); }
.head-search svg { width: 17px; height: 17px; display: block; }
.search-btn { display: none; }
/* スマホの検索（上から出る） */
.search-sheet {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 18px 16px 26px;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(29, 27, 24, 0.12);
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), overlay .35s allow-discrete, display .35s allow-discrete;
}
.search-sheet:not([open]) { display: none; }
.search-sheet[open] { transform: translateY(0); }
@starting-style { .search-sheet[open] { transform: translateY(-100%); } }
.search-sheet::backdrop { background: rgba(29, 27, 24, 0); transition: background .35s; }
.search-sheet[open]::backdrop { background: rgba(29, 27, 24, 0.38); }
@starting-style { .search-sheet[open]::backdrop { background: rgba(29, 27, 24, 0); } }
.sheet-search { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.sheet-search svg { width: 20px; height: 20px; flex-shrink: 0; }
/* 16px 未満だと iPhone が入力時に画面を拡大してしまう */
.sheet-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 8px 0; font: inherit; font-size: 16px; letter-spacing: 0.04em; color: var(--ink); outline: none; }
.sheet-search input::-webkit-search-cancel-button { display: none; }
.sheet-close { background: none; border: 0; font-size: 26px; line-height: 1; padding: 0 2px; cursor: pointer; color: var(--ink-soft); font-family: var(--serif-en); }
.search-sheet .drawer-label { margin-top: 22px; }
.icon-btn { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; display: block; }
/* カートの点数（アイコンに重ねるので、出ても周りは動かない） */
.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: -3px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--gold);
  color: #fff;
  font-family: var(--sans-local);
  font-size: 10px;
  line-height: 17px;
  text-align: center;
}
.cart-count[hidden] { display: none; }

.site-foot {
  margin-top: clamp(72px, 10vw, 140px);
  padding: 56px 20px 90px;
  background: var(--surface);
  text-align: center;
}
.foot-logo { display: block; height: 32px; width: auto; margin: 52px auto 0; }
/* SNS：線画のアイコンを丸い枠に並べる（押せる範囲は 40px 四方） */
.foot-sns { list-style: none; margin: 26px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.foot-sns a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink-soft); transition: color .2s, border-color .2s, background .2s; }
.foot-sns a:hover { color: #fff; background: var(--ink); border-color: var(--ink); }
.foot-sns svg { width: 18px; height: 18px; display: block; }
.foot-cols { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px clamp(24px, 4vw, 56px); text-align: left; }
.foot-label { margin: 0 0 14px; font-family: var(--serif-en); font-size: 13px; letter-spacing: 0.22em; color: var(--ink); }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 12.5px; letter-spacing: 0.04em; }
.foot-list-2 { grid-template-columns: 1fr 1fr; column-gap: 16px; }
/* お問い合わせの列は電話番号・メールが長いので、スマホでも1列 */
.foot-list.foot-contact { grid-template-columns: 1fr; }
.foot-list a { color: var(--ink-soft); text-decoration: none; }
.foot-list a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* 営業日カレンダー（js/item.js が今月と来月を描く）。描く前と後で高さが変わらないよう高さを決めておく */
.foot-cal { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-height: 196px; }
.cal-title { margin: 0 0 6px; font-family: var(--serif-en-local); font-size: 13px; text-align: center; color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); font-family: var(--serif-en-local); font-size: 11px; text-align: center; }
.cal-grid span { height: 24px; line-height: 24px; color: var(--ink-soft); }
.cal-grid .cal-week { color: var(--ink-faint); font-family: var(--sans); font-size: 10px; }
.cal-grid .closed { color: #a3402c; background: #f6e7e3; border-radius: 50%; }
.cal-grid .today { font-weight: 700; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); border-radius: 50%; }
.foot-cal-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.8; color: var(--ink-soft); }
/* CONTACT 欄の営業時間・販売業者は、上のリンクと間をあける */
.foot-contact + .foot-cal-note { margin-top: 28px; }
.foot-cal-note a { text-decoration: none; }
.foot-cal-note a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cal-mark { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: #f6e7e3; box-shadow: inset 0 0 0 1px #a3402c; vertical-align: -1px; }
.foot-links { margin: 40px auto 0; padding-top: 24px; max-width: 720px; border-top: 1px solid var(--line-strong); display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; font-size: 12px; letter-spacing: 0.06em; color: var(--ink-soft); }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.copy-right { margin: 22px 0 0; font-size: 11px; letter-spacing: 0.06em; color: var(--ink-faint); }
.copy-right a { text-decoration: none; }
.copy-right a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* 狭い画面では span の切れ目で改行する（「バイザシー」の途中で切らない） */
.copy-right span { display: inline-block; }

/* ---- パンくず ---- */
.crumbs {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px var(--gutter) 0;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-strong); }
.crumbs [aria-current] { color: var(--ink-soft); }

/* ---- 上段：写真と購入欄 ---- */
.product {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
/* PC はヘッダー（高さ 77px）が常に上に貼り付くので、写真はその下に貼り付ける */
.gallery { position: sticky; top: 97px; }
/* 写真の枠は写真の縦横に合わせる（縦長の写真は縦に伸びる。img の width・height と --r（幅÷高さ）は生成時に写真ごとに入る）。
   左右に白い余白のある画像は、cover で余白を枠の外に出す（object-position も生成時に入る）。
   PC は写真の欄が画面に貼り付くので、高さが画面に収まるよう幅を狭めて中央に置く */
.gallery-main {
  position: relative;
  /* 写真が枠より細いとき（画面の高さに合わせて縮めたとき）に左右が見えるので、写真と同じ白 */
  background: var(--bg);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.gallery-main[data-swipe] { cursor: grab; }
.gallery-main.dragging { cursor: grabbing; }
.gallery-main img {
  display: block;
  /* 写真＋サムネイルが、上に貼り付くヘッダーの下で画面に収まる高さまで */
  width: min(100%, calc((100vh - 220px) * var(--r, 1)));
  height: auto;
  aspect-ratio: var(--r, 1);
  margin: 0 auto;
  object-fit: cover;
  -webkit-user-drag: none;
  transition: transform .3s ease, opacity .2s ease;
}
.gallery-main.dragging img { transition: none; }
/* 写真の左右の矢印。細い線の矢印を、枠線なしの半透明の白い丸に乗せる。PC は写真にマウスを乗せたときだけ出す */
.gallery-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 2px 10px rgba(29, 27, 24, 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .25s, background .2s;
}
.gallery-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.gallery-nav:hover { background: rgba(255, 255, 255, 0.95); }
.gallery-main:hover .gallery-nav, .gallery-nav:focus-visible { opacity: 1; }
.gallery-nav.prev { left: 16px; }
.gallery-nav.next { right: 16px; }
/* サムネイルは1段（8枚を超える分は横にスクロール） */
/* サムネイルは全部を並べる（横にスクロールさせず、幅に入るだけ並べて折り返す） */
.thumbs { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-top: 10px; }
.thumb { padding: 0; border: 1px solid transparent; background: var(--surface); cursor: pointer; aspect-ratio: 1 / 1; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .2s; }
.thumb[aria-current="true"] { border-color: var(--ink); }
.thumb[aria-current="true"] img, .thumb:hover img { opacity: 1; }

.buy { padding-top: 6px; }
.brand-line {
  margin: 0;
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
}
.title {
  margin: 10px 0 0;
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.55;
  letter-spacing: 0.06em;
}
.title-genre { display: block; font-size: 12px; letter-spacing: 0.16em; color: var(--ink-soft); margin-bottom: 2px; }
.code { margin: 6px 0 0; font-size: 11.5px; letter-spacing: 0.12em; color: var(--ink-faint); }
/* 商品名の下のレビューの星（押すと下のお客様の声へ。ページ内の移動はなめらかに） */
.rv-badge { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 12px; color: var(--ink-soft); text-decoration: none; text-underline-offset: 3px; }
.rv-badge .stars { font-size: 13px; letter-spacing: 1px; }
.rv-badge-rate { font-family: var(--serif-en-local); font-size: 14px; color: var(--ink); }
.rv-badge:hover .rv-badge-count { text-decoration: underline; }
html:has(.rv-badge) { scroll-behavior: smooth; }

.price-row {
  margin: 26px 0 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.price { font-family: var(--serif-en-local); font-weight: 400; font-size: 32px; letter-spacing: 0.04em; line-height: 1; }
.price-tax { font-size: 12px; color: var(--ink-soft); }
.price-point { width: 100%; font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.price-point b { color: var(--gold); font-weight: 500; }
/* ログイン中の会員のランク（js/item.js が入れる）。1行に収めて、書き換えで高さが変わらないように */
.price-point-rank { margin-left: 6px; font-size: 11px; letter-spacing: 0.04em; color: var(--gold); }
/* 送料（送料無料／総額3,980円以上で送料無料。ビルドのときに決まる）。ポイントの下に小さく控えめに */
.price-ship { width: 100%; margin-top: -2px; font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-faint); }

.lead { margin: 22px 0 0; font-family: var(--serif-jp); font-size: 15px; line-height: 2.1; letter-spacing: 0.04em; }

/* 特典（刻印無料など）。項目の数は商品で変わってよい */
.perks {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  border: 1px solid var(--line);
}
.perks li { padding: 13px 6px; text-align: center; font-size: 12px; letter-spacing: 0.06em; line-height: 1.5; }
.perks li + li { border-left: 1px solid var(--line); }

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  margin-top: 26px;
  padding: 19px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.24em;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.btn-primary:hover { background: #fff; color: var(--ink); }
.btn-primary .arrow { font-family: var(--serif-en); font-size: 18px; line-height: 1; }
/* 購入へ進む とお気に入り（ハート）を横に並べる */
.buy-row { display: flex; gap: 10px; margin-top: 26px; }
.buy-row .btn-primary { margin-top: 0; flex: 1; }
.wish-btn {
  flex: none;
  width: 60px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .2s;
}
.wish-btn:hover { border-color: var(--ink); }
.wish-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.3; transition: fill .2s, stroke .2s; }
.wish-btn[aria-pressed="true"] svg { fill: #b5524a; stroke: #b5524a; }
.wish-btn[hidden] { display: none; }
/* お気に入りの結果（js/item.js が数秒だけ出す） */
.wish-note {
  margin: 8px 0 0;
  min-height: 1.6em;
  font-size: 12px;
  text-align: right;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s, transform .3s;
}
.wish-note.show { opacity: 1; transform: none; }
/* 必須が抜けているときのカート（押せるが、色で知らせる） */
.btn-primary.incomplete, .btn-primary.incomplete:hover { background: var(--line-strong); border-color: var(--line-strong); color: #fff; }
.btn-primary:disabled { background: var(--line-strong); border-color: var(--line-strong); color: #fff; cursor: not-allowed; }

.ship-note { margin: 14px 0 0; font-size: 12px; color: var(--ink-soft); text-align: center; letter-spacing: 0.04em; }
.ship-note b { color: var(--ink); font-weight: 500; }
/* この商品について問い合わせる（購入ボタンの下。控えめなリンク） */
.item-ask { margin: 10px 0 0; text-align: center; }
.item-ask a { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink); text-decoration: none; text-underline-offset: 4px; }
.item-ask a:hover { text-decoration: underline; }
.item-ask svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
/* 共有（問い合わせの下）。「共有」と「URLをコピー」の2つ */
.item-share { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 34px; padding: 0 12px 0 10px; border: 1px solid var(--line); border-radius: 17px; background: #fff; color: var(--ink); font: inherit; font-size: 11.5px; letter-spacing: 0.04em; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.share-btn:hover { border-color: var(--ink); }
.share-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.share-copy-text { min-width: 7.2em; text-align: left; } /* 「コピーしました」に変わっても幅が変わらない */
.share-btn.is-copy.is-done { border-color: var(--gold); background: var(--gold); color: #fff; }

/* 色違い・地金違いなど、別の商品ページへのリンク（見出し「バリエーション」は商品情報の見出しと同じ形） */
.variants-block { margin-top: 34px; border-top: 1px solid var(--line); }
.variants-block + .details { margin-top: 26px; }
.variants { margin-top: 26px; }
.variants-block .spec-title + .variants { margin-top: 4px; }
/* 見出し（カラー・地金・タイプ）と、その横に今のページの値（「：ピンク」） */
.variants-label {
  margin: 0 0 10px;
  font-family: var(--sans-local);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.variants-current { color: var(--ink); font-weight: 500; }
/* 四角のボタン。今のページはボタンから少し離した外側に黒い太線（outline。間は白）と太字で、どれを選んでいるか一目で分かるように（中は白のまま） */
.variant-links { display: flex; flex-wrap: wrap; gap: 12px; padding: 4px; }
.variant-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans-local);
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: border-color .2s;
}
.variant-link:hover { border-color: var(--ink); }
.variant-link[aria-current="page"] { outline: 2px solid var(--ink); outline-offset: 2px; font-weight: 600; }
/* カラーは丸い色見本だけ（名前は見出しの横と title。読み上げ用に文字は残す）。
   外側の輪は枠線1本で描き、内側の余白で色と離す（影を重ねると輪がギザギザに見える） */
.variant-link.is-color { width: 40px; min-width: 0; min-height: 0; height: 40px; padding: 3px; border-radius: 50%; border-color: transparent; background: none; }
.variant-link.is-color:hover { border-color: var(--line-strong); }
.variant-link.is-color[aria-current="page"] { border-color: var(--ink); outline: none; }
.variant-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* カラーの色（カラーの名前ごとに1つ。商品ごとには作らない） */
.chip { width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.chip.pink { background: linear-gradient(135deg, #f1c9b5, #c98a6f); }
.chip.yellow { background: linear-gradient(135deg, #f3dc9c, #c39a45); }
.chip.white { background: linear-gradient(135deg, #f4f4f2, #c7c6c2); }

/* ---- 商品情報の表 ---- */
.details { margin-top: 34px; border-top: 1px solid var(--line); }
/* 商品情報は閉じない（買うかどうかを決めるのに全員が見るため） */
.spec-block { padding: 0 2px 22px; border-bottom: 1px solid var(--line); }
.spec-title { margin: 0; padding: 17px 0; font-size: 13.5px; font-weight: 500; letter-spacing: 0.08em; }
/* 上の商品情報は押すと開け閉めできる（PC は開いた状態、スマホは閉じた状態から）。右に ＋／− */
summary.spec-title { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
summary.spec-title::-webkit-details-marker { display: none; }
summary.spec-title::after { content: "＋"; font-size: 15px; font-weight: 400; color: var(--ink-soft); }
details[open] > summary.spec-title::after { content: "−"; }
details.spec-block:not([open]) { padding-bottom: 0; }
/* スマホだけの、開いた商品情報（商品説明とギフトラッピングの間） */
.spec-sp { display: none; }
@media (max-width: 860px) {
  .spec-sp { display: block; max-width: 1240px; margin: clamp(64px, 9vw, 120px) auto 0; padding: 0 var(--gutter); }
  .spec-sp .related-head { text-align: center; }
  .spec-sp .spec { margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
}
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 9px 0; border-bottom: 1px dotted var(--line); font-weight: 400; }
.spec th { width: 34%; color: var(--ink-faint); font-size: 12px; letter-spacing: 0.06em; }
.spec td { color: var(--ink); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { padding-right: 12px; }
.spec td { line-height: 1.85; }
.spec-notice { margin: 0 0 12px; padding: 12px 14px; background: #fbf3f1; border-left: 2px solid #b4553f; font-size: 12px; line-height: 1.85; color: #7a3424; }
.spec-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.85; color: var(--ink-soft); }
/* 表の中の「〇〇について」のリンク（値の下に1行ずつ） */
.spec .g-link { display: flex; width: fit-content; margin: 8px 0 4px; }

/* ---- 中段：ストーリー（文章のある商品だけ出す） ---- */
.section-en {
  margin: 0;
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
}
.story { margin: clamp(64px, 9vw, 120px) 0 0; background: var(--surface); }
.story-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.story-img { aspect-ratio: 1 / 1; overflow: hidden; }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-text { padding: clamp(32px, 6vw, 90px); }
.story-text h2 {
  margin: 14px 0 0;
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.8;
  letter-spacing: 0.08em;
}
.story-text .copy {
  margin: 22px 0 0;
  font-family: var(--serif-jp);
  font-size: 14px;
  line-height: 2.2;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* ---- 下段：ショップのお約束（全商品共通。写真つきのカード） ---- */
.promise { max-width: 1240px; margin: clamp(64px, 9vw, 120px) auto 0; padding: 0 var(--gutter); text-align: center; }
.promise .section-title { margin-top: 8px; }
.promise-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); text-align: left; }
.promise-card { background: var(--surface); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.promise-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.promise-text { padding: 18px 18px 20px; }
.promise-text h3 { margin: 0; font-family: var(--serif-jp); font-weight: 500; font-size: 15px; letter-spacing: 0.06em; line-height: 1.6; }
.promise-text p { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.9; }
.promise-text .g-link { margin: 14px 0 0; }

/* ---- サービスのカード（ストーリーの下。その商品でできるものだけ。番号は CSS で出た順に付ける） ---- */
.svc { max-width: 1240px; margin: clamp(64px, 9vw, 120px) auto 0; padding: 0 var(--gutter); text-align: center; counter-reset: svc; }
.svc .section-title { margin-top: 8px; }
.svc-grid { width: fit-content; max-width: 100%; margin: 40px auto 0; display: flex; border: 1px solid var(--line); text-align: left; }
.svc-card { flex: 0 1 420px; display: flex; flex-direction: column; counter-increment: svc; }
.svc-card + .svc-card { border-left: 1px solid var(--line); }
.svc-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.svc-text { padding: 26px 28px 28px; }
.svc-text::before { content: counter(svc, decimal-leading-zero); display: block; font-family: var(--serif-en); font-size: 28px; color: var(--gold); line-height: 1; }
.svc-text h3 { margin: 14px 0 0; font-family: var(--serif-jp); font-weight: 500; font-size: 16px; letter-spacing: 0.08em; }
.svc-free, .svc-paid { margin-left: 10px; padding: 2px 8px; border: 1px solid var(--gold); border-radius: 999px; font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.06em; color: var(--gold); vertical-align: 2px; }
.svc-paid { border-color: var(--line-strong); color: var(--ink-soft); }
.svc-text p { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.9; }
.svc-text .svc-note::before { content: "刻印できる文字数"; display: block; font-size: 11px; color: var(--ink-faint); }
.svc-text .svc-note { margin-top: 8px; padding: 8px 12px; background: var(--surface); font-size: 12px; color: var(--ink); }
.svc-items { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.svc-items li { padding: 10px 12px; background: var(--surface); font-size: 12px; line-height: 1.8; color: var(--ink-soft); }
.svc-items b { display: block; font-weight: 500; font-size: 12.5px; color: var(--ink); }
.svc-text .svc-small { margin-top: 8px; font-size: 11.5px; }
.svc-text .g-link { margin: 16px 22px 0 0; }

/* ---- ギフトラッピング（data/site.json の wrapping を写真つきで） ---- */
.wrapping { max-width: 1240px; margin: clamp(64px, 9vw, 120px) auto 0; padding: 0 var(--gutter); }
.wrapping-head { text-align: center; }
.wrapping-head .section-title { margin-top: 8px; }
.wrapping-lead { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.wrapping-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px); }
.wrap-img { aspect-ratio: 5 / 4; background: var(--surface); border-radius: 8px; overflow: hidden; }
.wrap-img img { width: 100%; height: 100%; object-fit: cover; }
.wrap-name { margin: 14px 0 0; font-size: 13.5px; font-weight: 500; letter-spacing: 0.04em; }
.wrap-price { margin: 4px 0 0; font-family: var(--serif-en-local); font-size: 15px; }
.wrap-price span { margin-left: 2px; font-family: var(--sans); font-size: 10.5px; color: var(--ink-soft); }
.wrap-text { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.85; }
.wrapping-more, .reviews-more { display: table; margin: 28px auto 0; padding: 12px 28px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s; }
.wrapping-more::after, .reviews-more::after { content: " →"; font-family: var(--serif-en); }
.wrapping-more:hover, .reviews-more:hover { border-color: var(--ink); background: var(--surface); }

/* ---- お客様の声（楽天市場店のレビュー。商品名の下の星を押すと開くポップアップ。PC は真ん中、スマホは下から） ---- */
.reviews-summary { margin-top: 24px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.rv-rate { font-family: var(--serif-en-local); font-size: 30px; line-height: 1; }
.rv-count { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.04em; }
/* 星：★5つを、点数の割合だけ金色に塗る（--rate に 0〜5） */
.stars { --rate: 0; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 2px; }
.stars::before { content: "★★★★★"; background: linear-gradient(90deg, #b8913f calc(var(--rate) / 5 * 100%), #dcd5c9 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.review-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.review { background: var(--surface); border-radius: 8px; padding: 18px 20px; }
.review-meta { display: flex; align-items: center; gap: 12px; }
.review-meta .stars { font-size: 12px; }
.review-date { font-size: 11.5px; color: var(--ink-faint); font-family: var(--serif-en-local); }
.review-title { margin: 10px 0 0; font-size: 13.5px; font-weight: 500; }
.review-text { margin: 8px 0 0; font-size: 13px; line-height: 1.95; color: var(--ink-soft); }
.rv-dialog {
  width: min(680px, calc(100vw - 32px));
  max-width: 100vw;
  max-height: min(84dvh, 820px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(29, 27, 24, 0.16);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s cubic-bezier(.2, .7, .2, 1), overlay .3s allow-discrete, display .3s allow-discrete;
}
.rv-dialog:not([open]) { display: none; }
.rv-dialog[open] { opacity: 1; transform: translateY(0); }
@starting-style { .rv-dialog[open] { opacity: 0; transform: translateY(12px); } }
.rv-dialog::backdrop { background: rgba(29, 27, 24, 0); transition: background .3s; }
.rv-dialog[open]::backdrop { background: rgba(29, 27, 24, 0.38); }
@starting-style { .rv-dialog[open]::backdrop { background: rgba(29, 27, 24, 0); } }
.rv-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--line); }
.rv-dialog-title { margin: 0; font-family: var(--serif-jp); font-size: 16px; letter-spacing: 0.08em; }
.rv-dialog-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px 32px; }
.rv-dialog-body:focus { outline: none; }
.rv-dialog-body .review-list { margin-top: 24px; }
@media (max-width: 860px) {
  .rv-dialog { width: 100vw; max-height: 88dvh; margin: auto 0 0; border-radius: 12px 12px 0 0; opacity: 1; transform: translateY(100%); }
  .rv-dialog[open] { transform: translateY(0); }
  @starting-style { .rv-dialog[open] { transform: translateY(100%); } }
  .rv-dialog-head { padding: 12px 12px 12px 18px; }
  .rv-dialog-body { padding: 4px 16px 28px; }
}

/* ---- おすすめ商品 ---- */
.related-head { text-align: center; }
.related-head .section-title { margin-top: 8px; }
.related { max-width: 1240px; margin: clamp(64px, 9vw, 120px) auto 0; padding: 0 var(--gutter); }
.section-title { margin: 0; text-align: center; font-family: var(--serif-jp); font-weight: 500; font-size: 20px; letter-spacing: 0.12em; }
.card { text-decoration: none; }
.card-price { margin: 4px 0 0; font-family: var(--serif-en-local); font-size: 15px; letter-spacing: 0.02em; }
.card-price span { margin-left: 2px; font-family: var(--sans); font-size: 10.5px; color: var(--ink-soft); }
.card-img { aspect-ratio: 1 / 1; background: var(--surface); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-name { margin: 12px 0 0; font-size: 12.5px; line-height: 1.6; letter-spacing: 0.04em; }

/* ---- 商品説明（STORY の下の画像の並び。長いときは途中まで見せて「もっと見る」） ---- */
.desc { max-width: 1240px; margin: clamp(64px, 9vw, 120px) auto 0; padding: 0 var(--gutter); scroll-margin-top: 100px; }
.desc-body { max-width: 750px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 20px; }
.desc-img { display: block; }
.desc-img img { display: block; width: 100%; height: auto; }
.desc-link { margin: 0; text-align: center; }
.desc-link a { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border: 1px solid var(--line-strong); font-size: 13px; letter-spacing: 0.06em; text-decoration: none; transition: border-color .2s, background .2s, color .2s; }
.desc-link a::after { content: "→"; font-family: var(--serif-en); }
.desc-link a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
/* 商品説明の見出し・文章・表の行（色違いの画像や商品へのリンクを横に並べる。数は --cols） */
.desc-heading { margin: 12px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0.08em; text-align: center; }
.desc-text { margin: 0; font-size: 13.5px; line-height: 2; color: var(--ink-soft); }
.desc-row { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.desc-cell a, .desc-cell.is-current { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; padding: 10px 6px; border: 1px solid var(--line); font-size: 12px; line-height: 1.6; text-align: center; text-decoration: none; transition: border-color .2s; }
.desc-cell a:hover { border-color: var(--ink); }
.desc-cell.is-current { border-color: var(--ink); border-width: 2px; font-weight: 600; }
.desc-cell img { display: block; width: 100%; height: auto; }
/* 途中まで見せる。下をぼかし、ボタンで全部開く（チェックボックスで開け閉め。JS なし）
   ボタンを押すとチェックボックスにフォーカスが移り、画面外にあるとそこまでスクロールするので、常に画面内（fixed）に置いて動かさない */
.desc-toggle { position: fixed; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.desc-body.is-collapsible { position: relative; max-height: 900px; overflow: hidden; }
.desc-body.is-collapsible::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(rgba(255, 255, 255, 0), var(--bg)); pointer-events: none; }
.desc-toggle:checked + .desc-body { max-height: none; }
.desc-toggle:checked + .desc-body::after { display: none; }
.desc-more { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; margin: 18px auto 0; padding: 12px 30px; border: 1px solid var(--line-strong); font-size: 13px; letter-spacing: 0.1em; cursor: pointer; transition: border-color .2s; }
.desc-more:hover { border-color: var(--ink); }
.desc-more::after { content: ""; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s; }
.desc-more-close { display: none; }
.desc-toggle:checked ~ .desc-more .desc-more-open { display: none; }
.desc-toggle:checked ~ .desc-more .desc-more-close { display: inline; }
.desc-toggle:checked ~ .desc-more::after { transform: translateY(2px) rotate(-135deg); }
.desc-toggle:focus-visible ~ .desc-more { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 860px) {
  .desc-body { gap: 14px; margin-left: -16px; margin-right: -16px; }
  .desc-body.is-collapsible { max-height: 640px; }
  .desc-link, .desc-heading, .desc-text, .desc-row { margin-left: 16px; margin-right: 16px; }
  .desc-link { padding: 0; }
  .desc-row { gap: 8px; }
}

/* ---- コラムの紹介（商品に合うコラム3つ） ---- */
.columns { max-width: 1240px; margin: clamp(64px, 9vw, 120px) auto 0; padding: 0 var(--gutter); }
.column-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 32px); }
.column-card { display: block; text-decoration: none; }
.column-img { aspect-ratio: 67 / 48; background: var(--surface); overflow: hidden; }
.column-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.column-card:hover .column-img img { transform: scale(1.04); }
.column-name { margin: 14px 0 0; font-family: var(--serif-jp); font-weight: 500; font-size: 15px; line-height: 1.6; letter-spacing: 0.06em; }
.column-card:hover .column-name { color: var(--gold); }
.column-desc { margin: 6px 0 0; font-size: 12px; line-height: 1.8; color: var(--ink-soft); }
.column-more { margin: 28px 0 0; text-align: center; }
.column-more .g-link { margin: 0; }
/* コラム一覧（parts/pages/column.html）：テーマごとの章の中に同じカードを並べる。カードの名前は h3 なので、ガイドの章の h3 の指定を戻す */
.g-sec h3.column-name { margin: 14px 0 0; font-size: 15px; line-height: 1.6; letter-spacing: 0.06em; }
.g-sec .column-grid { margin-top: 0; }
.g-sec.is-column { margin-top: clamp(48px, 6vw, 72px); }
/* コラムの記事（parts/pages/column-*.html 等）：冒頭の更新日、商品カード（「商品：」の枠）、末尾の関連コラム */
.g-date { margin: 14px 0 0; font-family: var(--serif-en); font-size: 13px; letter-spacing: 0.08em; color: var(--ink-faint); }
.col-products { margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 18px; }
/* 5点以上は横にスライド。PC は4枚と少し、スマホは2枚と少しを見せて、横に続くと分かるように */
.col-products.is-scroll { --cards: 4.3; --gap: 18px; display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.col-products.is-scroll > .card, .col-products.is-scroll > .pcard-box { flex: 0 0 calc((100% - var(--gap) * (var(--cards) - 1)) / var(--cards)); scroll-snap-align: start; }
@media (max-width: 860px) {
  .col-products.is-scroll { --cards: 2.3; --gap: 12px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; }
}
/* 横スライドの矢印（PC。商品ページの写真の矢印と同じ形）とマウスのドラッグ。端まで来た側の矢印は消す */
.pslider { position: relative; }
.pslider-nav { top: 30%; z-index: 1; }
.pslider:hover .pslider-nav:not(:disabled) { opacity: 1; }
.pslider-nav:disabled { opacity: 0 !important; pointer-events: none; }
.pslider-nav.prev { left: -18px; }
.pslider-nav.next { right: -18px; }
.col-products.is-scroll { cursor: grab; }
.col-products.is-scroll.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.col-products.is-scroll.dragging .card, .col-products.is-scroll.dragging .pcard-wish { pointer-events: none; }
@media (max-width: 860px), (hover: none) {
  .pslider-nav { display: none; }
  .col-products.is-scroll { cursor: auto; }
}
/* 最近見た商品（parts/footer.html の上。中身は js/item.js が並べる） */
.recent { max-width: 1240px; margin: clamp(64px, 9vw, 110px) auto 0; padding: 0 var(--gutter); }
.recent .related-head { text-align: center; }
.recent .col-products { margin-top: 28px; }
/* 商品カードの中身（templates/slots/product_cards.html。どれも商品マスタの値） */
.pcard { display: flex; flex-direction: column; }
/* お気に入りのハート：写真の右上に重ねる（ハートだけ。丸い下地や影は付けない）。外枠にリンクと並べる */
.pcard-box { position: relative; min-width: 0; display: flex; flex-direction: column; }
.pcard-box > .pcard { flex: 1; }
.pcard-wish { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.pcard-wish svg { width: 19px; height: 19px; fill: none; stroke: #a59d92; stroke-width: 1.6; transition: fill .2s, stroke .2s, transform .2s; } /* お気に入りしていないときは淡い色で、線は少し太め */
.pcard-wish:hover svg { stroke: var(--ink-soft); transform: scale(1.08); }
.pcard-wish[aria-pressed="true"] svg { fill: #b5524a; stroke: #b5524a; }
.wish-note.is-card { position: absolute; top: 40px; right: 6px; margin: 0; min-height: 0; padding: 2px 6px; background: rgba(255, 255, 255, .92); font-size: 11px; pointer-events: none; }
.pcard-tags { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; min-height: 20px; } /* 印の無い商品も同じ高さをあけ、商品名の位置をそろえる */
.pcard-tags li { padding: 2px 8px; border: 1px solid var(--gold); border-radius: 999px; font-size: 10.5px; line-height: 1.6; letter-spacing: 0.04em; color: var(--gold); }
.pcard .card-name { margin-top: 8px; font-size: 13px; }
.pcard-spec { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.7; color: var(--ink-soft); }
.pcard-spec > div { display: flex; gap: 8px; }
.pcard-spec dt { flex: none; color: var(--ink-faint); }
.pcard-spec dd { margin: 0; }
.pcard-desc { margin: 6px 0 0; font-size: 11px; line-height: 1.7; color: var(--ink-faint); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard:hover .card-name { color: var(--gold); }
/* 同じ列のカードで各段の高さをそろえる（長い所は … で略す）：印は1行、商品名は2行、価格は1行、素材・サイズは2行、説明は2行 */
.pcard-tags { flex-wrap: nowrap; overflow: hidden; }
.pcard-tags li { flex: none; white-space: nowrap; }
.pcard .card-name { line-height: 1.6; min-height: calc(1.6em * 2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .card-price { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-spec { min-height: calc(1.7em * 2 + 9px); }
.pcard-spec dd { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-desc { min-height: calc(1.7em * 2); }
.guide .columns { padding: 0; margin-top: clamp(64px, 9vw, 110px); }
@media (max-width: 860px) {
  .col-products { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
}
/* コラムの記事の写真：幅 700px 以下の写真（is-side）は PC では右に置いて文章を回り込ませ、大きい写真（is-full）は横いっぱい。スマホはどちらも横いっぱい */
.col-article .doc-fig { clear: both; }
.col-article .doc-fig.is-side { float: right; clear: right; width: min(42%, 520px); margin: 6px 0 24px 40px; }
.col-article .doc-fig img { display: block; width: 100%; max-width: none; height: auto; border-radius: 6px; }
/* コラムの真ん中の写真は 670px（一覧の画像と同じ幅）の枠に。枠を中身の幅に合わせる fit-content だと、読み込むまで幅0になって後からずれ、遅延読み込みでは読み込まれないこともある。幅の違う写真は figure の style で width を指定する */
.col-article .doc-fig:not(.is-side):not(.is-full) { width: min(100%, 670px); }
.col-article .doc-fig.is-full { max-width: 880px; margin-left: auto; margin-right: auto; } /* 大きい写真も 880px まで（横いっぱいだと大きすぎる） */
.col-article .g-sec::after { content: ""; display: block; clear: both; }
.col-article h3.g-sub, .col-article .doc-table, .col-article .doc-scroll, .col-article .doc-caption, .col-article .doc-note,
.col-article .doc-steps, .col-article .doc-figs, .col-article .col-products, .col-article .faq-group, .col-article .g-tags, .col-article .doc-video { clear: both; }
.col-article .doc-figs img { border-radius: 6px; }
@media (max-width: 860px) {
  .col-article .doc-fig.is-side { float: none; width: auto; margin: 18px 0 0; }
}
/* コラムの大きなキャッチ（写真の上の余白に明朝の大きな見出しを重ねる。スマホは写真の下）。例：イオンプレーティングの「チタンなのに、このゴールド」 */
.doc-catch { clear: both; position: relative; margin: 36px 0 0; }
.doc-catch img { display: block; width: 100%; height: auto; border-radius: 6px; }
.doc-catch figcaption { position: absolute; top: 7%; left: 6%; display: flex; flex-direction: column; gap: 14px; }
.doc-catch-en { font-family: var(--serif-en); font-size: 13px; letter-spacing: 0.32em; color: var(--gold); }
.doc-catch-title { font-family: var(--serif-jp); font-weight: 500; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.4; letter-spacing: 0.12em; color: var(--ink); }
.doc-catch-sub { font-family: var(--serif-jp); font-size: clamp(13px, 1.3vw, 16px); line-height: 2; letter-spacing: 0.08em; color: var(--ink-soft); }
/* 特長3つ（アイコン・番号・見出し・説明） */
.doc-features { clear: both; list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.doc-features li { padding: 30px 28px 32px; text-align: center; }
.doc-features li + li { border-left: 1px solid var(--line); }
.doc-features img { display: block; width: 72px; height: 72px; margin: 0 auto; }
.doc-feature-no { display: block; margin-top: 14px; font-family: var(--serif-en); font-size: 15px; letter-spacing: 0.2em; color: var(--gold); }
.doc-features h3 { margin: 6px 0 0 !important; font-family: var(--serif-jp); font-weight: 500; font-size: 17px !important; letter-spacing: 0.08em; }
.doc-features p { margin: 10px 0 0; font-size: 12.5px; line-height: 1.9; color: var(--ink-soft); }
@media (max-width: 860px) {
  .doc-catch figcaption { position: static; margin-top: 22px; align-items: center; text-align: center; }
  .doc-features { grid-template-columns: 1fr; }
  .doc-features li { display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; padding: 20px 4px; text-align: left; }
  .doc-features li + li { border-left: 0; border-top: 1px solid var(--line); }
  .doc-features img { width: 56px; height: 56px; grid-row: 1 / 4; margin: 0; }
  .doc-feature-no { margin-top: 0; }
}
/* コラム一覧のテーマの案内：番号・テーマ名・本数を横に並べ、押すとその章へ（スマホは1列。2列だとテーマ名が途中で折り返す） */
html:has(.col-themes) { scroll-behavior: smooth; }
.col-themes { margin: clamp(32px, 5vw, 52px) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.col-themes a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 10px 24px; text-align: center; text-decoration: none; transition: background .25s, color .25s; }
.col-themes a + a { border-left: 1px solid var(--line); }
.col-themes a::after { content: ""; position: absolute; left: 50%; bottom: 12px; width: 6px; height: 6px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: translateX(-50%) rotate(45deg); opacity: .6; transition: transform .25s, opacity .25s; }
.col-themes a:hover { background: var(--surface); }
.col-themes a:hover::after { opacity: 1; transform: translate(-50%, 3px) rotate(45deg); }
.col-theme-no { font-family: var(--serif-en); font-size: 22px; line-height: 1; color: var(--gold); letter-spacing: 0.04em; }
.col-theme-name { font-family: var(--serif-jp); font-weight: 500; font-size: 14px; line-height: 1.6; letter-spacing: 0.08em; }
.col-theme-count { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.06em; margin-bottom: 8px; }
@media (max-width: 860px) {
  .col-themes { grid-template-columns: 1fr; }
  .col-themes a { flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 14px; padding: 15px 36px 15px 4px; text-align: left; }
  .col-themes a + a { border-left: 0; border-top: 1px solid var(--line); }
  .col-themes a::after { left: auto; right: 14px; top: 50%; bottom: auto; transform: translateY(-70%) rotate(45deg); }
  .col-themes a:hover::after { transform: translateY(-40%) rotate(45deg); }
  .col-theme-no { font-size: 17px; }
  .col-theme-name { font-size: 14px; line-height: 1.5; }
  .col-theme-count { margin: 0 0 0 auto; }
}

/* ---- お買い物ガイド（parts/pages/guide.html） ---- */
/* 幅はガイド・コラムとも、商品ページの「ショップのお約束」と同じ 1240px */
.guide { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.g-hero { text-align: center; padding: clamp(28px, 5vw, 56px) 0 0; }
.g-eyebrow, .g-label { margin: 0; font-family: var(--serif-en); font-size: 12px; letter-spacing: 0.32em; color: var(--gold); }
.g-title { margin: 10px 0 0; font-family: var(--serif-jp); font-weight: 500; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: 0.14em; }
/* 見出しの改行：文節の切れ目で折り返し（word-break: auto-phrase）、行の長さをそろえて最後の行に1〜2文字だけ残さない（text-wrap: balance）。
   対応していないブラウザは今までどおりの折り返し */
.g-title, .g-h2, .g-sec h3.g-sub { text-wrap: balance; word-break: auto-phrase; }
/* PC だけで改行する所（<br class="pc-br">）。スマホは画面が狭いので自然な折り返しに任せる */
@media (max-width: 860px) { .pc-br { display: none; } }
.g-lead { margin: 18px 0 0; font-size: 13.5px; line-height: 2; color: var(--ink-soft); text-wrap: pretty; }
/* ひと目でわかる4つ */
.g-facts { list-style: none; margin: clamp(32px, 5vw, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.g-facts li { padding: 24px 12px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.g-facts li + li { border-left: 1px solid var(--line); }
.g-facts.is-3 { grid-template-columns: repeat(3, 1fr); }
.g-fact-num { font-family: var(--serif-en); font-size: 34px; line-height: 1; letter-spacing: 0.02em; }
.g-fact-num small { margin-left: 3px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.06em; }
.g-fact-text { font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink-soft); }
.g-fact-text small { display: block; font-size: 10.5px; color: var(--ink-faint); }
/* 目次 */
/* 目次：「目次」の見出しと番号付きの縦の一覧（ウィキ風）。小見出しは .is-sub で字下げ */
.g-toc { margin: 36px 0 0; padding: 20px 24px 16px; background: var(--surface); border-left: 2px solid var(--gold); counter-reset: toc; }
.g-toc::before { content: "目次"; display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; letter-spacing: 0.12em; }
.g-toc a { display: block; padding: 5px 0; font-size: 13.5px; line-height: 1.7; letter-spacing: 0.04em; text-decoration: none; counter-increment: toc; transition: color .2s; }
.g-toc a::before { content: counter(toc) "."; display: inline-block; min-width: 1.8em; font-family: var(--serif-en); font-size: 15px; color: var(--gold); }
.g-toc a.is-sub { padding-left: 1.8em; font-size: 13px; color: var(--ink-soft); counter-increment: none; }
.g-toc a.is-sub::before { content: "–"; min-width: 1.2em; }
.g-toc a:hover { color: var(--gold); text-decoration: underline; }
/* 各章 */
.g-sec { margin-top: clamp(64px, 9vw, 110px); scroll-margin-top: 100px; }
.g-sec [id] { scroll-margin-top: 100px; }
/* 章の中の小見出し（例：リングのサイズ直しの「大きくする場合」）。上を広くあけ、左に金色の線で、話が変わったことを分かるように（上の線はほかの線と紛れるので引かない） */
.g-sec h3.g-sub { position: relative; margin: 64px 0 18px; padding-left: 16px; font-size: 18px; line-height: 1.6; }
.g-sec h3.g-sub::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; background: var(--gold); }
.g-h2 { margin: 8px 0 28px; font-family: var(--serif-jp); font-weight: 500; font-size: clamp(20px, 2.4vw, 24px); letter-spacing: 0.12em; }
.g-sec h3 { margin: 0; font-family: var(--serif-jp); font-weight: 500; font-size: 16px; letter-spacing: 0.08em; }
.g-note { margin: 18px 0 0; font-size: 13px; line-height: 2; color: var(--ink-soft); }
.g-small { margin: 14px 0 0; font-size: 11.5px; line-height: 1.9; color: var(--ink-soft); }
.g-link { display: inline-flex; align-items: center; gap: 8px; margin: 20px 22px 0 0; font-size: 12.5px; letter-spacing: 0.06em; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.g-link::after, .g-more::after { content: "→"; font-family: var(--serif-en); transition: transform .2s; }
.g-link:hover::after, .g-more:hover::after { transform: translateX(3px); }
/* ご注文からお届けまで：番号付きの5段階を、細い線でつなぐ */
.g-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 20px; position: relative; }
.g-flow::before { content: ""; position: absolute; top: 15px; left: 0; right: 0; border-top: 1px solid var(--line-strong); }
.g-flow li { position: relative; display: flex; flex-direction: column; }
.g-step { margin: 0 0 16px; align-self: flex-start; padding-right: 10px; background: var(--bg); font-family: var(--serif-en); font-size: 26px; line-height: 1.2; color: var(--gold); }
.g-flow p:not(.g-step) { margin: 10px 0 0; font-size: 12.5px; line-height: 1.9; color: var(--ink-soft); }
.g-more { margin-top: auto; padding-top: 12px; display: inline-flex; gap: 6px; font-size: 12px; color: var(--ink); text-decoration: none; }
.g-more:hover { color: var(--gold); }
/* お支払い方法 */
.g-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.g-tags li { padding: 8px 14px; background: var(--surface); font-size: 12.5px; letter-spacing: 0.04em; }
/* 出荷・配送・送料 */
.g-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-card { padding: 26px 24px; border: 1px solid var(--line); }
.g-card h3 { margin-bottom: 14px; }
.g-card p { margin: 0; font-size: 13px; line-height: 2; }
.g-card p + p { margin-top: 10px; }
.g-card .g-small { margin-top: 12px; font-size: 11.5px; line-height: 1.9; }
.g-wide { max-width: 760px; }
.g-dl { margin: 0; font-size: 13px; line-height: 1.8; }
.g-dl dt { margin-top: 12px; font-weight: 500; }
.g-dl dt:first-child { margin-top: 0; }
.g-dl dd { margin: 2px 0 0; color: var(--ink-soft); }
.g-price dd b { color: var(--ink); font-weight: 500; font-size: 15px; }
.g-img { margin-top: 6px; max-width: 100%; }
/* 刻印・ラッピング・サイズ：カードを並べる。リンクのあるカードは押すと詳細へ */
.g-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-grid li > a, .g-grid li > div { display: block; height: 100%; padding: 24px 24px 26px; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.g-grid li > a { position: relative; padding-right: 44px; }
.g-grid li > a::after { content: "→"; position: absolute; right: 20px; top: 24px; font-family: var(--serif-en); color: var(--gold); transition: transform .2s; }
.g-grid li > a:hover { border-color: var(--ink); }
.g-grid li > a:hover::after { transform: translateX(3px); }
.g-grid p { margin: 10px 0 0; font-size: 12.5px; line-height: 1.9; color: var(--ink-soft); }
/* お問い合わせ */
.g-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-contact-item { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; background: var(--surface); text-decoration: none; font-size: 15px; letter-spacing: 0.04em; transition: background .2s; }
.g-contact-item span { font-size: 11px; letter-spacing: 0.2em; color: var(--gold); }
.g-contact-item:hover { background: var(--line); }
/* お問い合わせ（parts/pages/contact.html。送り先はショップサーブの /FORM/contact.cgi）：見出しも中身も真ん中寄せ。
   フォームは背景なし、入力欄は下線だけ（内容の欄は枠）、必須・任意は項目名の右端に小さく */
.contact-page .g-sec { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.contact-page .g-small { text-align: center; }
.c-links { margin: 22px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 32px; }
.c-links .g-link { margin: 0; }
/* 商品についてのお問い合わせ（?item=品番）：上に商品名、お名前は姓・名の2つ */
.c-item { padding: 16px 18px; border: 1px solid var(--line); text-align: center; }
.c-item[hidden] { display: none; }
.c-item span { font-size: 11px; letter-spacing: 0.2em; color: var(--gold); }
.c-item p { margin: 6px 0 0; font-family: var(--serif-jp); font-size: 15px; line-height: 1.7; }
.c-field[hidden] { display: none; }
.c-name { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-page .c-form-sec { margin-top: clamp(48px, 6vw, 72px); } /* フォームは見出し「お問い合わせ」のすぐ下（章の見出しは読み上げ用だけ） */
.c-form { margin: 8px auto 0; max-width: 600px; display: grid; gap: 28px; text-align: left; }
.c-field { display: grid; gap: 6px; }
.c-field label { display: flex; align-items: baseline; justify-content: space-between; font-size: 12.5px; letter-spacing: 0.1em; }
.c-req, .c-opt { font-size: 10.5px; letter-spacing: 0.14em; }
.c-req { color: var(--gold); }
.c-opt { color: var(--ink-faint); }
.c-form .input { padding: 10px 2px 9px; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; transition: border-color .2s; }
.c-form .input:focus { border-bottom-color: var(--ink); }
.c-form textarea.input { margin-top: 4px; padding: 12px 14px; border: 1px solid var(--line); background: var(--bg); min-height: 180px; }
.c-form textarea.input:focus { border-color: var(--ink); }
.c-form .input:user-invalid { border-color: #b5524a; }
.c-form .g-small { margin: 0; }
.c-submit { width: 100%; height: 56px; margin: 4px 0 0 !important; letter-spacing: 0.24em; }
.contact-page .g-contact { max-width: 900px; margin: 0 auto; }
.contact-page .g-contact-item { align-items: center; text-align: center; }
@media (max-width: 860px) {
  .c-form { gap: 24px; }
  .contact-page .g-hero { text-align: center; } /* ガイドはスマホで左寄せだが、お問い合わせは真ん中のまま */
}
.g-warn { margin: 14px 0 0; padding: 12px 16px; border-left: 2px solid #b4553f; background: #fbf3f1; font-size: 12px; line-height: 1.9; color: #7a3424; }
@media (max-width: 860px) {
  /* 冒頭の見出し・リード文は、中央寄せだと折り返しが読みにくいので左寄せ */
  .g-hero { text-align: left; }
  .g-facts { grid-template-columns: repeat(2, 1fr); }
  .g-facts li:nth-child(3) { border-left: 0; }
  .g-facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  /* 3つのときは2つ並べ、3つ目を横いっぱいに */
  .g-facts.is-3 { grid-template-columns: repeat(2, 1fr); }
  .g-facts.is-3 li:nth-child(3) { grid-column: 1 / -1; }
  .g-fact-num { font-size: 28px; }
  .g-toc { padding: 16px 18px 12px; }
  .g-sec, .g-sec [id] { scroll-margin-top: 20px; }
  /* 流れは縦に並べ、番号の左に線を通す */
  .g-flow { grid-template-columns: 1fr; gap: 0; }
  .g-flow::before { top: 6px; bottom: 6px; left: 15px; right: auto; border-top: 0; border-left: 1px solid var(--line-strong); }
  .g-flow li { padding: 0 0 28px 48px; }
  .g-step { position: absolute; left: 0; top: 0; margin: 0; padding: 2px 0 6px; font-size: 22px; }
  .g-flow h3 { padding-top: 4px; }
  .g-cols, .g-grid, .g-contact { grid-template-columns: 1fr; }
  .g-card, .g-grid li > a, .g-grid li > div { padding: 20px 18px; }
  .g-grid li > a { padding-right: 44px; }
}

/* ---- 案内のページ（配送・お支払い・返品交換・よくある質問・特定商取引法・個人情報。parts/pages/）。お買い物ガイドの .g- を使い、足りない形だけここに ---- */
.doc { max-width: 1240px; }
/* 表（左に項目、右に内容）。特定商取引法など */
.doc-table { margin: 0; border-top: 1px solid var(--line); }
.doc-table > div { display: grid; grid-template-columns: 200px 1fr; gap: 0 28px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.doc-table dt { font-size: 13px; font-weight: 500; letter-spacing: 0.06em; }
.doc-table dd { margin: 0; font-size: 13px; line-height: 2; color: var(--ink-soft); }
.doc-table dd a { color: var(--ink); }
/* 見出しの下に説明と見本の画像を縦に並べる表（文字刻印の書体など）。PC でも1列 */
.doc-table.is-stack > div { grid-template-columns: 1fr; gap: 4px; }
/* 見出しと説明の表（dl）も、縦横に線のある表（doc-grid）と同じ見た目に：外枠・縦の区切り・見出しの地色 */
.doc .doc-table { border: 1px solid var(--line); border-bottom: 0; }
.doc .doc-table > div { gap: 0; padding: 0; }
.doc .doc-table dt { padding: 12px 14px; background: var(--surface); border-right: 1px solid var(--line); }
.doc .doc-table dd { padding: 12px 16px; }
.doc .doc-table.is-stack dt { border-right: 0; border-bottom: 1px solid var(--line); }
.doc-table.is-stack dd img { display: block; margin-top: 12px; max-width: 100%; height: auto; }
/* 見出しと文章の並び（個人情報など） */
.doc-text h3 { margin: 32px 0 10px; }
.doc-text p, .doc-text li { font-size: 13.5px; line-height: 2.1; color: var(--ink-soft); }
.doc-text p { margin: 0; }
.doc-text ul { margin: 8px 0 0; padding-left: 1.4em; }
/* 注意書きの箱 */
.doc-note { margin: 18px 0 0; padding: 16px 20px; background: var(--surface); }
.doc-note p, .doc-note li { margin: 0; font-size: 12.5px; line-height: 1.95; color: var(--ink-soft); }
.doc-note ul { margin: 0; padding-left: 1.2em; }
.doc-note-title { font-size: 12px !important; font-weight: 500; letter-spacing: 0.12em; color: var(--ink) !important; margin-bottom: 4px !important; }
/* お支払い方法の一覧（方法ごとのカード） */
/* 区分の説明文：見出しの下に寄せ、下の枠とは間をあける */
.pay-lead { margin: -12px 0 28px; font-size: 13.5px; line-height: 2; color: var(--ink-soft); text-wrap: pretty; }
.pay-list { display: grid; gap: 16px; }
.pay-item { padding: 24px 24px 22px; border: 1px solid var(--line); scroll-margin-top: 100px; }
.pay-item h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; }
.pay-fee { font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: 0.04em; color: var(--ink-soft); }
.pay-item p { margin: 0; font-size: 13px; line-height: 2; color: var(--ink-soft); }
.pay-item p + p { margin-top: 8px; }
/* 各社のロゴの帯は高さをそろえる */
.pay-item img { display: block; margin-top: 12px; max-width: 100%; max-height: 52px; width: auto; height: auto; }
.pay-brands { margin-top: 10px !important; font-size: 12px !important; letter-spacing: 0.04em; color: var(--ink) !important; }
/* 地域ごとの到着日数 */
.region-table { margin: 0; border-top: 1px solid var(--line); font-size: 13px; }
.region-table > div { display: grid; grid-template-columns: 90px 1fr; gap: 0 18px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.region-table dt { font-weight: 500; }
.region-table dd { margin: 0; color: var(--ink-soft); line-height: 1.9; }
/* よくある質問（押すと答えが開く） */
.faq-group { margin-top: 12px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; gap: 14px; align-items: flex-start; padding: 18px 2px; cursor: pointer; font-size: 14px; line-height: 1.8; letter-spacing: 0.04em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; flex-shrink: 0; font-family: var(--serif-en); font-size: 18px; line-height: 1.4; color: var(--gold); }
.faq-item summary::after { content: "+"; margin-left: auto; padding-left: 12px; font-family: var(--serif-en); font-size: 20px; line-height: 1.2; color: var(--ink-soft); transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { display: flex; gap: 14px; padding: 0 2px 22px; }
.faq-a::before { content: "A"; flex-shrink: 0; font-family: var(--serif-en); font-size: 18px; line-height: 1.5; color: var(--ink-faint); }
.faq-a-body p, .faq-a-body li { margin: 0; font-size: 13px; line-height: 2; color: var(--ink-soft); }
.faq-a-body p + p { margin-top: 8px; }
.faq-a-body ul { margin: 4px 0 0; padding-left: 1.2em; }
.faq-a-body .g-link { margin-top: 10px; }
/* 写真の並び（ラッピング・修理・バングル）。1枚だけのときは .doc-fig */
.g-flow.is-3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 28px; }
.doc-fig { margin: 18px 0 0; }
/* 1枚の写真は真ん中に（説明文は写真の幅で折り返す）。コラムの右寄せ・横いっぱいの写真は別の指定 */
.doc-fig:not(.is-side):not(.is-full) { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
.doc-fig:not(.is-side):not(.is-full) img { display: block; }
.doc-fig img { max-width: 100%; }
.doc-fig figcaption, .doc-figs figcaption { margin-top: 10px; font-size: 12.5px; line-height: 1.9; color: var(--ink-soft); }
.doc-figs { margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
.doc-figs.is-4 { grid-template-columns: repeat(4, 1fr); }
.doc-figs.is-3 { grid-template-columns: repeat(3, 1fr); }
/* 2つを見比べる写真（手彫りとステンレスなど）。PC は2列で大きくなりすぎない幅、スマホは1列 */
.doc-figs.is-pair { max-width: 900px; margin-left: auto; margin-right: auto; }
.doc-figs figure { margin: 0; }
.doc-figs img { width: 100%; }
.doc-figs figcaption b, .doc-fig figcaption b { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 500; color: var(--ink); }
/* 縦横に見出しのある表（サイズ表・お直しの対応表） */
.doc-scroll { margin: 14px 0 0; overflow-x: auto; }
.doc-grid { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.7; }
.doc-grid th, .doc-grid td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.doc-grid thead th { background: var(--surface); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; }
.doc-grid tbody th { font-weight: 500; text-align: left; }
.doc-grid td { color: var(--ink-soft); }
/* ガイド・コラムの表は縦の線も引いて、どの列の値か追いやすくする */
.doc .doc-grid { border-top: 1px solid var(--line); }
.doc .doc-grid th, .doc .doc-grid td { border: 1px solid var(--line); }
/* 刻印例などの「コピー」ボタン（js/item.js が見出しのマスに足す）。場所を先にあけておき、出てもずれない */
.doc-grid.is-copy tbody th { position: relative; padding-right: 74px; white-space: nowrap; } /* 刻印の文字は折り返さない（入らなければ表を横にスクロール） */
.copy-btn { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); min-width: 58px; padding: 3px 8px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-size: 11px; line-height: 1.6; letter-spacing: 0.04em; cursor: pointer; transition: background .2s, color .2s; }
.copy-btn:hover { background: var(--ink); color: #fff; }
.copy-btn.is-done { border-color: var(--gold); background: var(--gold); color: #fff; }
.doc-caption { margin: 28px 0 0; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; }
/* 番号つきの手順 */
.doc-steps { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: step; }
.doc-steps li { position: relative; padding: 0 0 14px 40px; font-size: 13.5px; line-height: 2; counter-increment: step; }
.doc-steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border: 1px solid var(--gold); border-radius: 50%; font-family: var(--serif-en); font-size: 15px; line-height: 24px; text-align: center; color: var(--gold); }
.doc-steps small { display: block; font-size: 12px; line-height: 1.9; color: var(--ink-soft); }
/* 対象の商品（写真・名前・幅ごとのリンク） */
.doc-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* 写真と名前を上に、幅のボタン（商品ページへのリンク）をその下に横いっぱいに並べる */
.doc-item { display: grid; grid-template-columns: 88px 1fr; align-content: start; gap: 0 14px; padding: 16px; border: 1px solid var(--line); }
.doc-item img { width: 88px; height: 88px; }
.doc-item h3 { font-size: 15px !important; line-height: 1.6; }
.doc-item p { margin: 6px 0 0; font-size: 12px; line-height: 1.8; color: var(--ink-soft); }
/* 1列に縦に並べる形（説明が長いとき）。PC は写真の右に名前・説明・ボタンをまとめる */
.doc-items.is-rows { grid-template-columns: 1fr; }
.doc-items.is-rows .doc-item { grid-template-columns: 120px 1fr; gap: 0 24px; padding: 20px 22px; }
.doc-items.is-rows .doc-item img { width: 120px; height: 120px; grid-row: 1 / 4; }
.doc-items.is-rows .doc-chips-label, .doc-items.is-rows .doc-chips { grid-column: 2; }
.doc-chips-label { grid-column: 1 / -1; margin: 14px 0 0 !important; font-size: 11.5px !important; color: var(--ink-faint) !important; }
.doc-chips { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.doc-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--ink); font-size: 12.5px; text-decoration: none; transition: background .2s, color .2s; }
.doc-chips a::after { content: "→"; font-family: var(--serif-en); color: var(--gold); transition: transform .2s; }
.doc-chips a:hover { background: var(--ink); color: #fff; }
.doc-chips a:hover::after { transform: translateX(2px); }
/* おすすめの紹介の枠（例：測り貸出のページの「純チタンなら実物を試着できる」） */
.doc-pick { display: grid; grid-template-columns: 140px 1fr; gap: 0 24px; align-items: start; margin: 24px 0 0; padding: 24px; background: var(--surface); }
.doc-pick img { width: 140px; height: 140px; }
.doc-pick-label { margin: 0 !important; font-size: 12px !important; letter-spacing: 0.12em; color: var(--gold) !important; }
.doc-pick h3 { margin: 6px 0 10px !important; font-size: 17px !important; }
.doc-pick p { margin: 0; font-size: 13px; line-height: 2; color: var(--ink-soft); }
.doc-pick .g-link { margin-top: 12px; }
/* 選び方の一覧（リングサイズ確認サービスの3つの確かめ方）。1つずつ縦に並べ、PC は左に番号と名前、右に項目 */
.doc-methods { margin: 24px 0 0; border-top: 1px solid var(--line); }
.doc-method { display: grid; grid-template-columns: 250px 1fr; grid-template-rows: auto 1fr; gap: 0 36px; padding: 26px 4px; border-bottom: 1px solid var(--line); }
.doc-method-head { grid-column: 1; }
.doc-method-num { display: block; font-family: var(--serif-en); font-size: 22px; line-height: 1.2; color: var(--gold); }
.doc-method h3 { margin: 6px 0 0 !important; font-size: 17px !important; line-height: 1.6; }
.doc-method-head .g-small { margin: 6px 0 0; }
.doc-method-dl { grid-column: 2; grid-row: 1 / 3; margin: 0; }
.doc-method-dl > div { display: grid; grid-template-columns: 112px 1fr; gap: 0 16px; padding: 7px 0; }
.doc-method-dl > div + div { border-top: 1px dotted var(--line); }
.doc-method-dl dt { font-size: 12.5px; font-weight: 500; line-height: 1.9; }
.doc-method-dl dd { margin: 0; font-size: 13px; line-height: 1.9; color: var(--ink-soft); }
.doc-method > .g-link { grid-column: 1; grid-row: 2; align-self: start; justify-self: start; margin-top: 14px; }
/* 写真つきの行：左に写真（幅は --method-img）、その右に番号と名前、さらに右に項目 */
.doc-method.has-img { grid-template-columns: var(--method-img, 150px) 210px 1fr; }
.doc-method.has-img > img { grid-column: 1; grid-row: 1 / 3; width: 100%; height: auto; }
.doc-method.has-img .doc-method-head, .doc-method.has-img > .g-link { grid-column: 2; }
.doc-method.has-img .doc-method-dl { grid-column: 3; }
/* 動画（YouTube の縮小画像。押すと YouTube で開く。埋め込まないので軽い） */
.doc-video { position: relative; display: block; max-width: 720px; margin: 28px auto 0; text-decoration: none; } /* 動画は真ん中に */
.doc-video img { width: 100%; }
.doc-video::before { content: ""; position: absolute; left: 50%; top: calc(50% - 18px); width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 10px; background: rgba(29, 27, 24, .82); }
.doc-video::after { content: ""; position: absolute; left: 50%; top: calc(50% - 18px); margin: -11px 0 0 -6px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.doc-video span { display: block; margin-top: 10px; font-size: 12.5px; line-height: 1.8; text-align: center; }
/* 誕生石の料金表：石の写真と名前を横に並べる */
.stone-table td:first-of-type { text-align: left; }
.stone-table tbody th { text-align: center; white-space: nowrap; }
.stone-table td:last-child { white-space: nowrap; }
.stone-table td strong { color: var(--ink); font-weight: 500; }
.stone-name { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.stone-name img { flex-shrink: 0; width: 32px; height: 32px; }
/* 誕生石の意味・石言葉：石ごとのカード */
.doc-stones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.doc-stones li { display: grid; grid-template-columns: 64px 1fr; gap: 0 16px; align-items: start; padding: 18px; border: 1px solid var(--line); }
.doc-stones img { width: 64px; height: 64px; }
.doc-stones h3 { font-size: 15px !important; line-height: 1.6; }
.doc-stones p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.9; color: var(--ink-soft); }
.doc-stones .stone-word { margin-top: 2px; font-size: 12px; letter-spacing: 0.08em; color: var(--gold); }
@media (max-width: 860px) {
  .g-flow.is-3 { grid-template-columns: 1fr; }
  .doc-grid { font-size: 12.5px; }
  .doc-grid th, .doc-grid td { padding: 10px 6px; }
  /* コラムの表は、スマホでも1マスを細くしすぎない（列の多い表は .doc-scroll の中で横にスクロールする） */
  .col-article .doc-grid th, .col-article .doc-grid td { min-width: 7em; }
  /* 3列以上で文の入る表は、折り返しで縦に長くならないよう横幅を取って横にスクロールさせる（中身の短い表は is-compact で画面幅に収める） */
  .col-article .doc-grid:has(tr > :nth-child(3)):not(.is-compact) { width: 600px; max-width: none; }
  .col-article .doc-grid:has(tr > :nth-child(3)):not(.is-compact) tbody th { white-space: nowrap; }
  /* 横にスクロールできる表は、続きがある側の端に薄い影を出す（JS なし。端まで動かすと影が消える） */
  .col-article .doc-scroll {
    background:
      linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) 0 0,
      linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) 100% 0,
      radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.14), rgba(0,0,0,0)) 0 0,
      radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.14), rgba(0,0,0,0)) 100% 0;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll;
  }
  .doc-figs.is-4 { grid-template-columns: repeat(2, 1fr); }
  .doc-figs.is-3 { grid-template-columns: 1fr; }
  .doc-figs.is-pair { grid-template-columns: 1fr; }
  .doc-figs.is-3 figure { display: grid; grid-template-columns: 110px 1fr; gap: 0 14px; align-items: start; }
  .doc-figs.is-3 figcaption { margin-top: 0; }
  .doc-figs { gap: 22px 12px; }
  .doc-items { grid-template-columns: 1fr; }
  .doc-stones { grid-template-columns: 1fr; gap: 12px; }
  .doc-stones li { grid-template-columns: 52px 1fr; gap: 0 14px; padding: 16px 14px; }
  .doc-stones img { width: 52px; height: 52px; }
  .stone-name { gap: 8px; }
  .stone-name img { width: 26px; height: 26px; }
  .doc-items.is-rows .doc-item { grid-template-columns: 88px 1fr; gap: 0 14px; padding: 16px; }
  .doc-items.is-rows .doc-item img { width: 88px; height: 88px; grid-row: auto; }
  .doc-items.is-rows .doc-chips-label, .doc-items.is-rows .doc-chips { grid-column: 1 / -1; }
  /* 選び方の一覧：名前の下に「項目名｜内容」を左右に並べる */
  .doc-method { grid-template-columns: 1fr; grid-template-rows: none; padding: 22px 2px; }
  .doc-method-dl, .doc-method > .g-link { grid-column: 1; grid-row: auto; }
  .doc-method-dl { margin-top: 12px; }
  .doc-method-dl > div { grid-template-columns: 92px 1fr; gap: 0 12px; }
  /* 写真つきの行：写真の右に番号と名前、その下に項目を横いっぱいに */
  .doc-method.has-img { grid-template-columns: var(--method-img-sp, 96px) 1fr; gap: 0 14px; }
  .doc-method.has-img > img { grid-row: 1; align-self: start; }
  .doc-method.has-img .doc-method-head { grid-column: 2; align-self: center; }
  .doc-method.has-img .doc-method-dl, .doc-method.has-img > .g-link { grid-column: 1 / -1; }
  .doc-pick { grid-template-columns: 88px 1fr; gap: 0 14px; padding: 18px 16px; }
  .doc-pick img { width: 88px; height: 88px; }
  .doc-table > div { grid-template-columns: 1fr; gap: 4px; padding: 16px 2px; }
  .doc .doc-table > div { gap: 0; padding: 0; }
  .doc .doc-table dt { padding: 9px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .doc .doc-table dd { padding: 10px 12px; }
  .pay-item { padding: 20px 18px; scroll-margin-top: 20px; }
  .faq-item summary { font-size: 13.5px; }
}

/* ---- スマホの下に出る購入ボタン（上の購入ボタンが見えないときだけ） ---- */
.sticky-buy {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: none;
  align-items: center;
  gap: 14px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform .3s ease;
}
.sticky-buy.show { transform: translateY(0); }
.sticky-buy .price { font-size: 22px; }
.sticky-buy .btn-primary { margin: 0; padding: 14px 12px; flex: 1; letter-spacing: 0.16em; }

/* ---- メニュー（ヘッダーの三本線のボタンで左から出る。中身は parts/menu.html） ---- */
.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(340px, 86vw);
  max-width: 86vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  box-shadow: 24px 0 60px rgba(29, 27, 24, 0.12);
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), overlay .35s allow-discrete, display .35s allow-discrete;
}
.drawer:not([open]) { display: none; }
.drawer[open] { transform: translateX(0); }
@starting-style { .drawer[open] { transform: translateX(-100%); } }
.drawer::backdrop { background: rgba(29, 27, 24, 0); transition: background .35s; }
.drawer[open]::backdrop { background: rgba(29, 27, 24, 0.38); }
@starting-style { .drawer[open]::backdrop { background: rgba(29, 27, 24, 0); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-title { margin: 0; font-family: var(--serif-en); font-size: 14px; letter-spacing: 0.3em; }
.drawer-close { background: none; border: 0; font-size: 26px; line-height: 1; padding: 4px 6px; cursor: pointer; color: var(--ink-soft); font-family: var(--serif-en); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px 32px; }
.drawer-label { margin: 36px 0 8px; font-family: var(--serif-en); font-size: 12px; letter-spacing: 0.28em; color: var(--gold); }
.drawer-list { list-style: none; margin: 0; padding: 0; }
.drawer-list a { display: block; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; letter-spacing: 0.06em; text-decoration: none; }
.drawer-list-sub a { font-size: 12.5px; color: var(--ink-soft); padding: 9px 2px; }
.drawer-list a:hover { color: var(--gold); }
/* カテゴリ：押すと中の分類が開く（一度に開くのは1つ） */
.drawer-cats summary {
  list-style: none;
  display: flex;
  align-items: center;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.drawer-cats summary::-webkit-details-marker { display: none; }
.drawer-cats summary::after { content: "+"; margin-left: auto; font-family: var(--serif-en); font-size: 18px; line-height: 1; color: var(--ink-soft); transition: transform .25s; }
.drawer-cats details[open] summary::after { transform: rotate(45deg); }
.drawer-cats ul { list-style: none; margin: 0; padding: 4px 0 8px 12px; border-bottom: 1px solid var(--line); }
.drawer-cats ul a { padding: 7px 2px; border-bottom: 0; font-size: 12.5px; color: var(--ink-soft); }
.drawer-note { margin: 32px 0 0; font-size: 11.5px; line-height: 2.4; color: var(--ink-soft); }
.drawer-note a { color: inherit; text-decoration: none; }
.drawer-note a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.drawer-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.drawer-chips a { display: block; padding: 6px 12px; border: 1px solid var(--line); font-size: 12px; text-decoration: none; letter-spacing: 0.04em; }
.drawer-chips a:hover { border-color: var(--ink); }

/* ---- 購入パネル（「購入へ進む」で開く。PC は右から、スマホは下から） ---- */
.purchase {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(520px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  box-shadow: -24px 0 60px rgba(29, 27, 24, 0.12);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), overlay .4s allow-discrete, display .4s allow-discrete;
}
.purchase:not([open]) { display: none; }
.purchase[open] { transform: translateX(0); }
@starting-style { .purchase[open] { transform: translateX(100%); } }
.purchase::backdrop { background: rgba(29, 27, 24, 0); transition: background .4s; }
.purchase[open]::backdrop { background: rgba(29, 27, 24, 0.38); }
@starting-style { .purchase[open]::backdrop { background: rgba(29, 27, 24, 0); } }

.p-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.p-head img { width: 54px; height: 54px; object-fit: cover; background: var(--surface); }
.p-head-text { flex: 1; min-width: 0; }
.p-head-label { margin: 0; font-size: 11px; letter-spacing: 0.16em; color: var(--gold); }
.p-head-name { margin: 2px 0 0; font-family: var(--serif-jp); font-size: 14px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-close { background: none; border: 0; font-size: 26px; line-height: 1; padding: 4px 6px; cursor: pointer; color: var(--ink-soft); font-family: var(--serif-en); }

/* 選択肢の番号（01, 02…）は counter で振る */
.p-body { flex: 1; overflow-y: auto; padding: 4px 20px 24px; overscroll-behavior: contain; counter-reset: step; }
.step { padding: 22px 0 24px; border-bottom: 1px solid var(--line); counter-increment: step; }
.step:last-child { border-bottom: 0; }
.step-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.step-head::before { content: counter(step, decimal-leading-zero); font-family: var(--serif-en); font-size: 14px; color: var(--gold); letter-spacing: 0.08em; }
.step-title { font-size: 14px; font-weight: 500; letter-spacing: 0.08em; }
.step-tag { font-size: 10.5px; letter-spacing: 0.08em; padding: 1px 8px; border: 1px solid var(--gold); color: var(--gold); }
.step-tag.req { border-color: var(--ink); color: var(--ink); }
.step-tag.opt { border-color: var(--line-strong); color: var(--ink-soft); }
.step-help { margin-left: auto; font-size: 11.5px; color: var(--ink-soft); text-decoration: none; text-underline-offset: 3px; }
.step-help:hover { color: var(--ink); text-decoration: underline; }
button.step-help { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
/* 案内の画像のポップアップ（「カードを見る」等）。画面に収まる大きさで真ん中に */
.img-pop { padding: 0; border: 0; background: transparent; max-width: min(92vw, 640px); max-height: 92vh; overflow: visible; }
.img-pop::backdrop { background: rgba(29, 27, 24, .55); }
.img-pop img { display: block; width: 100%; height: auto; max-height: 92vh; object-fit: contain; background: #fff; }
/* 選択肢の写真の一覧（ラッピングの「写真で見る」）：白地に写真と名前を2列（PC は3列） */
.img-pop.is-gallery { width: min(92vw, 760px); max-width: none; }
.pop-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 16px; padding: 20px; background: #fff; max-height: 92vh; overflow-y: auto; }
.pop-gallery figure { margin: 0; }
.pop-gallery img { display: block; width: 100%; height: auto; }
.pop-gallery figcaption { margin-top: 6px; font-size: 12.5px; line-height: 1.6; text-align: center; }
@media (min-width: 861px) { .pop-gallery { grid-template-columns: repeat(3, 1fr); } }
.img-pop-close { position: absolute; top: -40px; right: 0; width: 36px; height: 36px; border: 0; background: none; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.step-note { margin: 10px 0 0; font-size: 11.5px; color: var(--ink-soft); line-height: 1.7; }


/* リングサイズは丸いボタン（ラジオ）の縦並び。名前はショップサーブのバリエーション名そのまま。在庫切れは押せず、薄く打ち消し線 */
.size-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.choice:disabled { color: var(--ink-faint); background: var(--surface); cursor: not-allowed; }
.choice:disabled span { text-decoration: line-through; }
.size-row { display: flex; align-items: center; gap: 10px; }
.size-row .choice { flex: 1; }
.restock { flex: none; padding: 9px 12px; border: 1px solid var(--gold); font-size: 12px; letter-spacing: 0.06em; color: var(--gold); text-decoration: none; white-space: nowrap; }
.restock:hover { background: var(--gold); color: #fff; }
.restock[hidden] { display: none; }

.choice-list { display: grid; gap: 8px; }
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: border-color .15s;
}
.choice::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-strong); box-shadow: inset 0 0 0 3px var(--bg); }
.choice[aria-pressed="true"] { border-color: var(--ink); }
.choice[aria-pressed="true"]::before { border-color: var(--ink); background: var(--ink); }
.choice .c-sub { display: block; font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
/* 選択肢の画像（ラッピング・メッセージカードの柄など）：丸いボタンと名前の間に。枠線なし */
.choice .c-img { flex: none; width: 96px; height: auto; }
/* 選択肢の画像の大きさ「小」（誕生石など選択肢が多いもの）：名前の頭に小さな色見本として。行の高さは文字だけの選択肢と同じ */
.choice .c-img.is-small { width: 24px; height: 24px; object-fit: cover; border-radius: 50%; }
/* 刻印の書体見本（実際のフォントで書いた「Aloha」「愛をこめて」。どれも同じ大きさの枠）：右の書体名の位置をそろえる */
.choice .c-img[src*="/kokuin/font_"] { width: 140px; height: 28px; object-fit: contain; object-position: left center; }
/* 刻印の書体は、名前を左・見本を右に（名前の幅をそろえて見本の位置もそろえる） */
.choice:has(> .c-img[src*="/kokuin/font_"]) > span { order: -1; flex: 0 0 11.5em; }
.choice:has(> .c-img[src*="/kokuin/font_"])::before { order: -2; }
/* オプション画像（メッセージカードの裏面など）：選択肢の下に。枠線なし */
.step-img { display: block; width: 160px; height: auto; margin: 14px 0 0; }
.choice .c-price { margin-left: auto; font-family: var(--serif-en); font-size: 15px; white-space: nowrap; }
.choice .c-free { margin-left: auto; font-size: 11px; color: var(--gold); letter-spacing: 0.08em; white-space: nowrap; }

.seg { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; border: 1px solid var(--line); }
.seg button { padding: 11px 2px; border: 0; background: var(--bg); font-size: 11.5px; line-height: 1.35; cursor: pointer; letter-spacing: 0.02em; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.engrave-fields { margin-top: 14px; display: grid; gap: 10px; }
.engrave-fields[hidden] { display: none; }
/* 書体を選んで記入欄が出たとき：上からすっと出る（色は付けない。カーソルは js が1つめの欄へ移す） */
.engrave-fields.is-new { animation: field-in .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes field-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .engrave-fields.is-new { animation: none; } }
/* 刻印の欄：欄の名前（【A】・【スクロール】 等。商品マスタのペア項目）は入力欄の上に小さく、欄ごとの文字数は下に */
.field-row { display: grid; gap: 4px; }
.field-label { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.04em; }
.field-note { margin: -4px 0 0; font-size: 11px; color: var(--ink-soft); }
/* スマホで書体を選んだあと（.is-typing）：書体の一覧をたたみ、「書体：○○ 書体を変える」の1行と記入欄を項目のいちばん上に。
   キーボードが出ても記入欄が隠れないように（js/item.js が切り替える。PC は一覧の下に記入欄のまま） */
.engrave-chosen { display: none; }
.step.is-typing .choice-list, .step.is-typing .seg, .step.is-typing > .step-note, .step.is-typing > .step-img { display: none; }
.step.is-typing .engrave-chosen { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 4px; font-size: 13px; }
.step.is-typing .engrave-chosen b { font-weight: 500; }
/* ペアで両方とも同じ内容（.is-same）：欄は1つだけ・欄の名前は出さず、文字数の案内は両方をまとめた1行（.same-note） */
.field-group { display: grid; gap: 4px; }
.engrave-fields.is-same .field-group:not(:first-child), .engrave-fields.is-same .field-label, .engrave-fields.is-same .field-group .field-note { display: none; }
.engrave-fields:not(.is-same) .same-note { display: none; }
.engrave-fields .separate-text { margin-top: 2px; }
.engrave-change { background: none; border: 0; padding: 0; font-family: inherit; font-size: 12px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.input { width: 100%; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--bg); font: inherit; font-size: 16px; }
.input:focus { outline: none; border-color: var(--ink); }
.input-wrap { position: relative; }
.counter { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 10.5px; color: var(--ink-faint); font-family: var(--serif-en); }
select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
textarea.input { resize: vertical; min-height: 72px; line-height: 1.7; }
select.input { cursor: pointer; }
select.input:invalid, select.input option[value=""] { color: var(--ink-soft); }

.p-foot { border-top: 1px solid var(--line); padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--bg); }
.summary { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 10px; font-size: 11.5px; color: var(--ink-soft); min-height: 18px; }
.summary span { padding: 1px 8px; background: var(--surface); }
/* 個数：左に「個数」、右に − 数 ＋。入力欄は iPhone の拡大を防ぐため16px */
.p-qty { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.qty-box { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); }
.qty-btn { width: 36px; height: 34px; padding: 0; border: 0; background: none; font-size: 16px; line-height: 1; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .qty-btn:hover:not(:disabled) { background: var(--surface); } }
.qty-btn:disabled { color: var(--line-strong); cursor: default; }
.qty-input { width: 44px; height: 34px; padding: 0; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; background: none; font: inherit; font-size: 16px; text-align: center; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.total { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 12px; }
.total-label { font-size: 12px; letter-spacing: 0.12em; color: var(--ink-soft); }
.total .price { font-size: 26px; }
.p-foot .btn-primary { margin: 0; }
.p-status { margin: 8px 0 0; font-size: 11.5px; text-align: center; color: var(--ink-soft); min-height: 1em; }

/* ---- 一覧から選ぶ（js/item.js が .picker を付けたときだけ。JS が無ければ全部並べて出す） ----
   開くと「選んだ内容の一覧」（.on-list）。行を押すとその項目だけを出し、選んだら一覧へ戻る */
.step-confirm, .p-done { display: none; }
.purchase.picker .p-body .step { display: none; border-bottom: 0; }
.purchase.picker .p-body .step.active { display: block; }
.purchase.picker .p-body .step.enter { animation: step-in .32s cubic-bezier(.2, .7, .2, 1); }
@keyframes step-in { from { opacity: 0; transform: translateX(var(--from, 24px)); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .purchase.picker .p-body .step.enter { animation: none; } }
.purchase.picker .step-head::before { display: none; }
/* 項目を選んでいる間：上に「一覧に戻る」、下に「決定して一覧に戻る」。合計とカートは一覧でだけ */
.purchase.picker:not(.on-list) .p-done { display: flex; width: 100%; }
.purchase.picker:not(.on-list) .p-cart { display: none; }
.purchase.picker:not(.on-list) .p-status:empty { display: none; }
/* セレクト項目一覧：左に項目名、右に選んだ内容と「変更」。済んでいない必須は赤字 */
.purchase.picker .step-confirm.active { display: block; }
/* 項目名は上の段に小さく、選んだ内容と「変更」は下の段に横いっぱい（長い項目名でも選んだ内容が折り返さないように） */
.confirm-list { margin: 0; border-top: 1px solid var(--line); }
.confirm-list dt, .confirm-list dd { margin: 0; font-size: 13px; }
.confirm-list dt { padding: 12px 0 2px; color: var(--ink-soft); font-size: 11.5px; letter-spacing: 0.06em; }
.confirm-list dd { display: flex; align-items: baseline; gap: 12px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.confirm-list dd span { flex: 1; }
/* 追加料金は選んだ内容と「変更」の間に右寄せで（括弧でつなげない） */
.confirm-price { font-style: normal; font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.confirm-list dd.missing span { color: #b5524a; }
.confirm-edit { background: none; border: 0; padding: 0; font-size: 11.5px; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
/* 同意を取る項目（「了承しました」系。楽天のようなチェックボックス）。セレクト項目一覧と同じ線だけの見た目。
   チェックが抜けたまま「カートに入れる」を押すと、抜けている所の文字を赤くする */
/* 同意の確認の画面（「カートに入れる」を押したときに出る）：確認の文、その下にチェックボックス1つ（行ごと押せる）、戻る・カートに入れる */
.agree-pop { width: min(92vw, 480px); padding: 26px 24px 22px; border: 0; background: var(--bg); color: var(--ink); }
.agree-pop::backdrop { background: rgba(29, 27, 24, .55); }
.agree-title { margin: 0 0 16px; font-size: 14px; font-weight: 500; letter-spacing: 0.04em; }
.agree-buttons { display: flex; gap: 10px; margin-top: 22px; }
.agree-buttons button { flex: 1; height: 48px; margin: 0; padding: 0 12px; font-size: 13px; letter-spacing: 0.12em; }
.agree-back { border: 1px solid var(--line-strong); background: var(--bg); font-family: inherit; font-size: 13px; letter-spacing: 0.1em; cursor: pointer; }
.agree-items { margin: 0; padding: 0; list-style: none; }
.agree-items li { margin-bottom: 10px; font-size: 13px; line-height: 1.75; letter-spacing: 0.02em; }
.agree-note { display: block; font-size: 11.5px; line-height: 1.7; color: var(--ink-soft); }
.agree { display: flex; align-items: center; gap: 12px; margin-top: 14px; cursor: pointer; }
.agree-text { font-size: 13px; letter-spacing: 0.06em; }
/* チェックボックス：細い線の四角。チェックすると白地のまま枠とチェックの印が金色 */
.agree input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border: 1px solid var(--line-strong); border-radius: 2px; background: #fff; display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.agree input::after { content: ""; width: 5px; height: 9px; margin-top: -2px; border: solid var(--gold); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) scale(0); transition: transform .15s; }
.agree input:checked { border-color: var(--gold); }
.agree input:checked::after { transform: rotate(45deg) scale(1); }
.agree input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.agree:hover input:not(:checked) { border-color: var(--ink-soft); }
.agree-pop.alert .agree input:not(:checked) { border-color: #b5524a; }
.agree-pop.alert .agree input:not(:checked) + .agree-text { color: #b5524a; }
@media (prefers-reduced-motion: reduce) { .agree input, .agree input::after { transition: none; } }

/* ---- スマホ ---- */
@media (max-width: 860px) {
  .notice-bar { font-size: 10.5px; letter-spacing: 0.04em; }
  /* スマホは左の文字を見えなくし（帯の高さは保つ）、会員リンクだけ右寄せで出す */
  .notice-text { visibility: hidden; }
  .member-links { right: 16px; letter-spacing: 0.04em; }
  .member-name { max-width: 8em; }
  .head-nav > a, .nav-drop { display: none; }
  .head-nav .menu-btn { display: block; }
  .head-search { display: none; }
  /* メニュー：指で押しやすいよう、1行の高さを 44px 前後に */
  .drawer-list a, .drawer-cats summary { padding: 12px 2px; }
  .drawer-list-sub a, .drawer-cats ul a { padding: 11px 2px; }
  .drawer-chips { gap: 8px; }
  .drawer-chips a { padding: 10px 14px; }
  .drawer-note { line-height: 2.6; }
  .search-btn { display: block; }
  .site-head { padding: 14px 16px; }
  .brand-logo { height: 32px; }
  .product { grid-template-columns: minmax(0, 1fr); padding-top: 12px; gap: 22px; }
  .gallery { position: static; margin: 0 -16px; }
  .gallery-main img { width: 100%; }
  .gallery-nav { opacity: 1; width: 36px; height: 36px; }
  .gallery-nav svg { width: 16px; height: 16px; }
  .gallery-nav.prev { left: 10px; }
  .gallery-nav.next { right: 10px; }
  .thumbs { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 6px; padding: 0 16px; }
  .story-inner { grid-template-columns: minmax(0, 1fr); }
  .promise-grid { grid-template-columns: 1fr 1fr; }
  .promise-text { padding: 14px 14px 16px; }
  .wrapping-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; margin-left: -16px; margin-right: -16px; padding: 0 16px; scroll-padding: 0 16px; }
  .wrapping-grid::-webkit-scrollbar { display: none; }
  .wrap-card { flex: 0 0 72%; scroll-snap-align: start; }
  .svc-grid { flex-direction: column; margin-top: 28px; }
  .svc-grid { width: auto; }
  .svc-card { flex: none; }
  .svc-card + .svc-card { border-left: 0; border-top: 1px solid var(--line); }
  .svc-text { padding: 20px 18px 22px; }
  .review { padding: 16px; }
  .foot-cols { grid-template-columns: 1fr; gap: 32px; }
  .foot-list { grid-template-columns: 1fr 1fr; column-gap: 16px; font-size: 12px; }
  /* コラムはスマホでは横長の1列（画像を左、文字を右） */
  .column-grid { grid-template-columns: 1fr; gap: 14px; }
  .column-card { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; }
  .column-name, .g-sec h3.column-name { margin-top: 0; font-size: 14px; }
  .column-desc { font-size: 11.5px; line-height: 1.7; }
  .sticky-buy { display: flex; }
  /* スマホの購入パネル：上に少し隙間を残してほぼ全画面。パネル全体を1枚でスクロールし、
     合計と「カートに入れる」は選択肢の一番下に置く（下に固定すると選択肢が見えにくいため）。閉じるボタンの見出しだけ上に残す */
  .purchase {
    display: block;
    inset: auto 0 0 0;
    width: 100vw;
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(100%);
    border-radius: 14px 14px 0 0;
  }
  .purchase[open] { transform: translateY(0); }
  @starting-style { .purchase[open] { transform: translateY(100%); } }
  .p-head { position: sticky; top: 0; z-index: 1; background: var(--bg); padding: 10px 16px; gap: 10px; }
  .p-head img { width: 40px; height: 40px; }
  .p-body { overflow: visible; padding: 0 16px 8px; }
  .step { padding: 18px 0 20px; }
  .p-foot { padding: 18px 16px calc(28px + env(safe-area-inset-bottom)); }
  /* 下のボタン（決定して一覧に戻る／合計とカート）は画面の下に付けておく */
  .purchase.picker .p-foot { position: sticky; bottom: 0; background: var(--bg); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .purchase.picker .p-done, .purchase.picker #addCart { height: 46px; padding: 0 12px; font-size: 13px; letter-spacing: 0.14em; }
  .purchase.picker .total { margin-bottom: 8px; }
  .purchase.picker .total .price { font-size: 22px; }
  .purchase.picker .p-status:empty { display: none; }
  /* 項目が短くてもボタンは画面の一番下に */
  .purchase.picker[open] { display: flex; flex-direction: column; }
  .purchase.picker .p-head, .purchase.picker .p-foot { flex-shrink: 0; }
  .purchase.picker .p-body { flex: 1 0 auto; min-height: 0; padding-bottom: 24px; }
}
@media (max-width: 360px) {
  .seg { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); }
  .seg button { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---- 会員登録の特典（parts/pages/join.html） ---- */
/* 冒頭の大きなポイントと登録ボタン（ページの最後にも同じ形 .is-end） */
.join-gift { margin: clamp(32px, 5vw, 52px) auto 0; max-width: 560px; padding: clamp(32px, 5vw, 48px) clamp(20px, 4vw, 48px); text-align: center; background: var(--surface); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.join-gift.is-end { margin-top: clamp(64px, 9vw, 110px); }
.join-gift-label { margin: 0; font-family: var(--serif-jp); font-size: 15px; letter-spacing: 0.14em; }
.join-gift-num { margin: 6px 0 0; font-family: var(--serif-en); font-weight: 500; font-size: clamp(64px, 9vw, 88px); line-height: 1.1; letter-spacing: 0.02em; color: var(--gold); }
.join-gift-num span { margin-left: 6px; font-size: 0.36em; letter-spacing: 0.1em; }
.join-gift-note { margin: 6px 0 0; font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink-soft); text-wrap: balance; word-break: auto-phrase; }
.join-btn { max-width: 360px; margin: 26px auto 0; text-decoration: none; }
.join-login { margin: 16px 0 0; font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink-soft); }
.join-login a { margin-left: 4px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* 6つの特典：金色の線のアイコン（svg）・番号・見出し・説明。PC は3列、スマホは1列でアイコンを左に */
.join-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.join-perks li { padding: 34px 28px 36px; text-align: center; border-bottom: 1px solid var(--line); }
.join-perks li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
.join-perks svg { display: block; width: 64px; height: 64px; margin: 0 auto; fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.join-perk-no { display: block; margin-top: 16px; font-family: var(--serif-en); font-size: 15px; letter-spacing: 0.2em; color: var(--gold); }
.join-perks h3 { margin: 6px 0 0 !important; font-family: var(--serif-jp); font-weight: 500; font-size: 16px !important; line-height: 1.7; letter-spacing: 0.06em; text-wrap: balance; word-break: auto-phrase; }
.join-perks p { margin: 10px 0 0; font-size: 12.5px; line-height: 1.9; color: var(--ink-soft); text-wrap: pretty; }
.join-perks p a { margin-left: 4px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* 会員ランク：上の帯と丸い印に、地金の色（シルバー・ゴールド・プラチナ）のグラデーション */
.join-ranks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.join-ranks li { --metal: linear-gradient(135deg, #e4e4e4, #a9a9a9 45%, #ececec 70%, #b5b5b5); position: relative; padding: 36px 20px 30px; text-align: center; border: 1px solid var(--line); background: var(--bg); }
.join-ranks li.is-gold { --metal: linear-gradient(135deg, #efdfb4, #b8955a 45%, #f3e6c4 70%, #c2a066); }
.join-ranks li.is-platinum { --metal: linear-gradient(135deg, #6b6b6b, #1d1b18 45%, #5c5c5c 70%, #2a2825); }
.join-ranks li::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--metal); }
.join-rank-name { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif-jp); font-weight: 500; font-size: 16px; letter-spacing: 0.12em; }
.join-rank-name::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--metal); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.join-rank-label { margin: 18px 0 0; font-size: 11.5px; letter-spacing: 0.16em; color: var(--ink-faint); }
.join-rank-rate { margin: 2px 0 0; font-family: var(--serif-en); font-weight: 500; font-size: 60px; line-height: 1.1; letter-spacing: 0.02em; }
.join-rank-rate small { font-size: 0.45em; margin: 0 2px; }
.join-rank-cond { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink-soft); }
.join .doc-note { margin-top: 24px; }
@media (max-width: 860px) {
  .join .g-hero { text-align: center; } /* 冒頭は1行なので、ガイドのような左寄せにしない */
  .join-perks { grid-template-columns: 1fr; }
  .join-perks li { display: grid; grid-template-columns: 52px 1fr; gap: 0 18px; padding: 22px 4px; text-align: left; }
  .join-perks li:not(:nth-child(3n + 1)) { border-left: 0; }
  .join-perks svg { width: 52px; height: 52px; grid-row: 1 / 4; margin: 0; }
  .join-perk-no { margin-top: 0; }
  .join-ranks { grid-template-columns: 1fr; gap: 12px; }
  .join-ranks li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 22px 20px 18px; text-align: left; }
  .join-rank-name { grid-column: 1; }
  .join-rank-label { grid-column: 1; grid-row: 2; margin: 0; }
  .join-rank-rate { grid-column: 2; grid-row: 1 / 3; margin: 0; font-size: 48px; }
  .join-rank-cond { grid-column: 1 / -1; margin-top: 10px; padding-top: 10px; }
}
