/* ひなた窯(制作見本)
   地は灰釉の薄い色、行動の色は呉須(藍)1色、強調は赤絵の朱。見出しは手書きに近い教科書体。 */

:root {
  --ground: #ecede7;
  --board: #e2e4db;
  --paper: #f8f7f2;
  --ink: #22262a;
  --sub: #555c60;
  --line: #c6c9bf;
  --gosu: #1e3d6f;
  --gosu-deep: #142b50;
  --shu: #a83218;
  --shu-soft: #f6e3dc;
  --moss: #2f6b4f;
  --clay: #cdb89a;
  --head: "Klee One", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.8; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gosu); text-underline-offset: 0.2em; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--gosu); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 帯と頭 ---------- */

.sample-band { background: var(--ink); color: #fff; font-size: 13px; line-height: 1.6; text-align: center; padding: 6px 16px; }
.news-band { background: var(--gosu); color: #fff; font-size: 14px; line-height: 1.6; text-align: center; padding: 9px 16px; }

.site-head { background: var(--ground); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.head-in { display: flex; align-items: center; gap: 12px 28px; min-height: 68px; }
.logo { display: inline-flex; align-items: baseline; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.logo-mark { align-self: center; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 40% 36%, #efeae0 0 42%, var(--gosu) 44% 100%); flex: none; }
.logo-name { font-family: var(--head); font-weight: 600; font-size: 26px; line-height: 1.2; letter-spacing: 0.04em; }
.logo-sub { font-size: 13px; color: var(--sub); }
.nav { display: flex; gap: 4px 22px; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.cart-open {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 2px solid var(--ink); border-radius: 999px; background: none; font-size: 15px; font-weight: 700;
}
.cart-open:hover { background: var(--ink); color: #fff; }
.cart-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--gosu); color: #fff; font-size: 14px; }

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border: 2px solid var(--gosu); border-radius: 4px; font-size: 16px; font-weight: 700; text-decoration: none; line-height: 1.4;
}
.btn-main { background: var(--gosu); color: #fff; }
.btn-main:hover:not(:disabled) { background: var(--gosu-deep); border-color: var(--gosu-deep); }
.btn-main:disabled { background: #9aa0a6; border-color: #9aa0a6; color: #fff; }
.btn-line { background: none; color: var(--gosu); }
.btn-line:hover { background: #fff; }
.btn-wide { width: 100%; }

/* ---------- 冒頭 ---------- */

.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-photo { position: relative; min-height: 440px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo-note { position: absolute; left: 12px; bottom: 10px; background: rgba(34, 38, 42, 0.78); color: #fff; font-size: 12px; line-height: 1.5; padding: 2px 8px; }
.hero-text { padding: 56px clamp(24px, 5vw, 72px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; }
.hero-text h1 { font-family: var(--head); font-weight: 600; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.4; letter-spacing: 0.05em; }
.hero-text p { max-width: 26em; }
.hero-fact { font-size: 14px; color: var(--sub); }

/* ---------- 節 ---------- */

.block { padding: 72px 0; }
.block.wrap { padding-left: 24px; padding-right: 24px; }
.block-head { margin-bottom: 28px; }
h2 { font-family: var(--head); font-weight: 600; font-size: 30px; line-height: 1.4; letter-spacing: 0.04em; }
.block-head p { margin-top: 6px; color: var(--sub); max-width: 40em; }
h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }

/* 商品の札 */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
.grid-small { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-link { display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; }
.card-pic { position: relative; display: block; background: var(--board); aspect-ratio: 1 / 1; margin-bottom: 10px; overflow: hidden; }
.card-link:hover .card-pic { background: #d8dbd0; }
.pic { display: block; width: 100%; height: 100%; }
.pic svg { display: block; width: 100%; height: 100%; }
.card-name { font-family: var(--head); font-weight: 600; font-size: 20px; line-height: 1.5; }
.card-link:hover .card-name { text-decoration: underline; text-decoration-thickness: 2px; }
.card-price { font-size: 17px; font-weight: 700; }
.card-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--sub); line-height: 1.6; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(34, 38, 42, 0.35); flex: none; }
.dot + span { margin-left: 2px; }

.flag { display: inline-block; padding: 2px 10px; font-size: 13px; font-weight: 700; line-height: 1.6; }
.flag-new { background: var(--moss); color: #fff; }
.flag-out { background: var(--ink); color: #fff; }
.card-pic .flag { position: absolute; left: 0; top: 12px; }

/* 釉薬 */
.glaze-block { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.glazes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.glaze-pic { display: block; width: 132px; height: 132px; margin: -8px 0 4px -14px; }
.glaze-pic svg { display: block; width: 100%; height: 100%; }
.glaze-name { font-family: var(--head); font-weight: 600; font-size: 22px; line-height: 1.4; }
.glaze-name span { margin-left: 8px; font-family: var(--body); font-size: 13px; font-weight: 400; color: var(--sub); }
.glaze-note { font-size: 15px; margin-top: 4px; }

/* 使い始めに */
.care-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.care-text > p { margin-top: 10px; max-width: 34em; }
.steps { margin-top: 22px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 50%; font-family: var(--head); font-weight: 600; font-size: 20px; line-height: 1; }
.steps strong { font-size: 17px; }
.steps span { grid-column: 2; font-size: 15px; color: var(--sub); }
figure figcaption { font-size: 12px; color: var(--sub); margin-top: 4px; }
.care-photo img, .about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* 窯のこと */
.about-block { background: var(--ink); color: #fff; }
.about-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.about-block p { margin-top: 12px; max-width: 32em; }
.about-block figcaption { color: #c9cdd0; }

/* ご案内 */
.guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.guide > div { border-top: 2px solid var(--ink); padding-top: 14px; }
.guide p { font-size: 15px; max-width: 34em; }
.fee { border-collapse: collapse; margin-bottom: 8px; }
.fee th, .fee td { padding: 4px 0; font-size: 15px; text-align: left; font-weight: 400; }
.fee td { padding-left: 28px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 商品ページ ---------- */

.product-page { padding-top: 18px; padding-bottom: 72px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--sub); margin-bottom: 18px; }
.crumbs a { color: var(--sub); }
.missing { padding: 40px 0; }

.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.stage { background: var(--board); aspect-ratio: 1 / 1; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.thumb { display: block; width: 100%; padding: 0 0 6px; border: 0; border-bottom: 4px solid transparent; background: none; }
.thumb .pic { background: var(--board); aspect-ratio: 1 / 1; height: auto; }
.thumb-label { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--sub); }
.thumb[aria-pressed="true"] { border-bottom-color: var(--gosu); }
.thumb[aria-pressed="true"] .thumb-label { color: var(--ink); font-weight: 700; }
.thumb:hover .pic { background: #d8dbd0; }
.gallery-note { margin-top: 10px; font-size: 13px; color: var(--sub); line-height: 1.7; }

.buy { position: sticky; top: 92px; }
.badges:empty { display: none; }
.badges { margin-bottom: 8px; }
.buy h1 { font-family: var(--head); font-weight: 600; font-size: 32px; line-height: 1.4; letter-spacing: 0.04em; }
.lead { color: var(--sub); margin-top: 2px; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.price { font-size: 32px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.tax { font-size: 14px; color: var(--sub); }
.stock { margin-left: auto; font-size: 15px; font-weight: 700; padding: 2px 12px; border: 2px solid currentColor; }
.stock-ok { color: var(--moss); }
.stock-low { color: var(--shu); background: var(--shu-soft); }
.stock-out { color: #fff; background: var(--ink); border-color: var(--ink); }

.choice { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.choice legend { padding: 0; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.chosen { margin-left: 12px; font-weight: 400; color: var(--sub); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 14px 4px 6px;
  border: 2px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 15px; font-weight: 500;
}
.swatch-chip { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(34, 38, 42, 0.4); flex: none; }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 700; }
.swatch:hover { border-color: var(--ink); }
.swatch.is-out .swatch-name { text-decoration: line-through; color: var(--sub); }
.swatch.is-out .swatch-chip { opacity: 0.45; }
.swatch-out, .size.is-out .size-price { font-size: 12px; font-weight: 700; color: var(--shu); }
.choice-note { margin-top: 8px; font-size: 14px; color: var(--sub); }

.sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; }
.size {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-height: 76px; padding: 8px 12px;
  border: 2px solid var(--line); border-radius: 4px; background: var(--paper); text-align: left; line-height: 1.5;
}
.size-label { font-size: 17px; font-weight: 700; }
.size-use { font-size: 13px; color: var(--sub); }
.size-price { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.size[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.size:hover { border-color: var(--ink); }
.size.is-out .size-label { text-decoration: line-through; color: var(--sub); }

.qty-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 20px; }
.qty-label { font-size: 15px; font-weight: 700; }
.qty { display: inline-grid; grid-template-columns: 48px 52px 48px; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); }
.qty button { height: 48px; border: 0; background: none; font-size: 22px; line-height: 1; }
.qty button:hover:not(:disabled) { background: var(--board); }
.qty button:disabled { color: #a7abae; }
.qty output { display: grid; place-items: center; font-size: 18px; font-weight: 700; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.qty-note { font-size: 14px; color: var(--sub); }
.btn-cart { margin-top: 16px; min-height: 60px; font-size: 18px; }
.add-message:empty { display: none; }
.add-message { margin-top: 8px; padding: 8px 12px; background: var(--shu-soft); color: var(--shu); font-size: 14px; font-weight: 700; }
.soldout-note { margin-top: 10px; font-size: 14px; }
.assure { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.7; color: var(--sub); }
.assure li { padding-left: 1.1em; text-indent: -1.1em; }
.assure li::before { content: "・"; }
.assure li + li { margin-top: 4px; }
.assure li:first-child { color: var(--ink); font-weight: 500; }

.detail { margin-top: 72px; max-width: 760px; display: grid; gap: 52px; }
.detail h2 { font-size: 26px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.detail p + p { margin-top: 10px; }
.spec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.spec-figure { background: var(--paper); border: 1px solid var(--line); aspect-ratio: 1 / 1; }
.spec-figure svg text { font-family: var(--body); }
.spec-table { border-collapse: collapse; width: 100%; }
.spec-table th, .spec-table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; vertical-align: top; }
.spec-table th { width: 6em; font-weight: 700; }
.fine { margin-top: 10px; font-size: 13px; color: var(--sub); }

.uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.use { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; background: var(--paper); border-left: 6px solid var(--sub); }
.use-sign { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 3px solid currentColor; font-size: 26px; font-weight: 700; line-height: 1; }
.use-body { display: flex; flex-direction: column; line-height: 1.6; }
.use-body strong { font-size: 16px; }
.use-state { font-size: 14px; font-weight: 700; }
.use-note { font-size: 13px; color: var(--sub); }
.use-ok { border-left-color: var(--moss); }
.use-ok .use-sign, .use-ok .use-state { color: var(--moss); }
.use-care { border-left-color: #8a5a00; }
.use-care .use-sign, .use-care .use-state { color: #8a5a00; }
.use-ng { border-left-color: var(--shu); }
.use-ng .use-sign, .use-ng .use-state { color: var(--shu); }

.notes li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.notes strong { display: block; font-size: 16px; }

.related { margin-top: 72px; }
.related h2 { margin-bottom: 20px; }
.grid-small .card-name { font-size: 17px; }
.grid-small .card-price { font-size: 15px; }

/* スマートフォンで下に固定するボタン */
.buybar { display: none; }

/* ---------- お知らせの小窓 ---------- */

.toast {
  position: fixed; right: 20px; top: 20px; z-index: 40; width: min(380px, calc(100vw - 32px));
  padding: 16px 18px; background: #fff; border: 2px solid var(--ink); box-shadow: 6px 6px 0 rgba(34, 38, 42, 0.18);
}
.toast-title { font-family: var(--head); font-weight: 600; font-size: 20px; line-height: 1.4; }
.toast-text { margin-top: 4px; font-size: 14px; line-height: 1.7; }
.toast-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.toast .btn { min-height: 46px; padding: 0 8px; font-size: 15px; }

/* ---------- カート ---------- */

.cart {
  margin: 0 0 0 auto; width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  padding: 0 20px 24px; border: 0; border-left: 2px solid var(--ink); background: var(--paper); color: var(--ink); overflow-y: auto;
}
.cart::backdrop { background: rgba(34, 38, 42, 0.5); }
.cart-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 0 10px; background: var(--paper); border-bottom: 2px solid var(--ink); z-index: 1; }
.cart-head h2 { font-size: 24px; }
.cart-close { min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 999px; background: none; font-size: 14px; font-weight: 700; }
.cart-close:hover { background: var(--ink); color: #fff; }
.cart-empty { padding: 28px 0; color: var(--sub); }
.cart-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { display: block; width: 76px; height: 76px; background: var(--board); }
.cart-name { font-family: var(--head); font-weight: 600; font-size: 17px; line-height: 1.4; }
.cart-detail { font-size: 13px; color: var(--sub); line-height: 1.6; }
.cart-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; }
.qty-small { grid-template-columns: 44px 40px 44px; }
.qty-small button { height: 44px; font-size: 20px; }
.qty-small output { font-size: 16px; }
.cart-remove { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--sub); font-size: 14px; text-decoration: underline; }
.cart-remove:hover { color: var(--shu); }
.cart-amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-sum { padding-top: 16px; }
.cart-region { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 700; }
.cart-region select { min-height: 48px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; font-size: 16px; font-weight: 400; }
.cart-totals { margin-top: 14px; }
.cart-totals div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.cart-totals dd { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.cart-total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 10px !important; }
.cart-total dd { font-size: 24px; line-height: 1.3; }
.cart-note { margin: 10px 0 14px; padding: 8px 12px; background: var(--board); font-size: 14px; font-weight: 500; }
.cart-stop { margin-top: 12px; padding: 10px 12px; border: 2px dashed var(--ink); font-size: 14px; line-height: 1.7; }

/* ---------- 特商法 ---------- */

.law { padding-top: 18px; padding-bottom: 72px; max-width: 800px; }
.law h1 { font-family: var(--head); font-weight: 600; font-size: 28px; line-height: 1.5; }
.law-note { margin-top: 10px; padding: 10px 14px; background: var(--paper); border-left: 6px solid var(--gosu); font-size: 15px; }
.law-list { margin-top: 24px; border-top: 2px solid var(--ink); }
.law-list div { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.law-list dt { font-weight: 700; font-size: 15px; }
.law-list dd { font-size: 15px; }

/* ---------- 足 ---------- */

.site-foot { background: var(--paper); border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; line-height: 1.8; color: var(--sub); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 48px; }
.foot-name { font-family: var(--head); font-weight: 600; font-size: 22px; color: var(--ink); }
.foot-head { font-weight: 700; color: var(--ink); }
.site-foot p + p { margin-top: 6px; }

/* ---------- せまい画面 ---------- */

@media (max-width: 900px) {
  .logo-sub { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { min-height: 0; aspect-ratio: 3 / 2; }
  .hero-text { padding: 32px 20px 40px; }
  .product { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .buy { position: static; }
  .care-block, .about-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .glazes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .wrap, .block.wrap { padding-left: 16px; padding-right: 16px; }
  .site-head { position: static; }
  .head-in { flex-wrap: wrap; min-height: 0; padding-top: 8px; padding-bottom: 0; gap: 0 12px; }
  .logo-name { font-size: 23px; }
  .nav { order: 3; flex-basis: 100%; gap: 0 18px; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
  .nav a { white-space: nowrap; font-size: 14px; }
  .sample-band { font-size: 12px; }
  .news-band { font-size: 13px; text-align: left; }
  .block { padding: 48px 0; }
  h2 { font-size: 26px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .card-name { font-size: 17px; }
  .card-price { font-size: 16px; }
  .card-colors { font-size: 12px; }
  .card-pic .flag { font-size: 12px; padding: 2px 8px; top: 8px; }
  .glaze-pic { width: 104px; height: 104px; margin-left: -10px; }
  .glaze-name { font-size: 20px; }
  .guide { grid-template-columns: minmax(0, 1fr); }

  .product-page { padding-bottom: 120px; }
  .gallery { margin: 0 -16px; }
  .thumbs { padding: 0 16px; }
  .gallery-note { padding: 0 16px; }
  .buy h1 { font-size: 26px; }
  .price { font-size: 30px; }
  .spec { grid-template-columns: minmax(0, 1fr); }
  .uses { grid-template-columns: minmax(0, 1fr); }
  .detail { margin-top: 48px; gap: 40px; }
  .detail h2 { font-size: 23px; }
  .law-list div { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .toast { right: 16px; top: 12px; }

  .buybar {
    display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 2px solid var(--ink);
    transform: translateY(110%); transition: transform 0.2s ease;
  }
  .buybar.is-shown { transform: none; }
  .buybar-info { display: flex; flex-direction: column; min-width: 0; margin-right: auto; font-size: 13px; line-height: 1.4; color: var(--sub); }
  .buybar-info span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar-info strong { font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
  .buybar .btn { min-height: 48px; padding: 0 18px; flex: none; }
}

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