/* 焙煎所 アオシグレ（デモ）コーヒー豆のネットショップ：商品・カート・送料と合計の目安 */
/* 共通部品（TENKA LAB バー・ヘッダー・フッター・ボタン・シート・実際のお仕事では）は、これまでの LP のデモと同じクラス名と作り */
:root {
  --c-base: #F7F6F2;
  --c-surface: #FFFFFF;
  --c-soft: #EDE4D3;
  --c-main: #3A2520;
  --c-accent: #8FC27A;
  --c-accent-hover: #A8D394;
  --c-text: #231916;
  --c-sub: #66574F;
  --c-line: #D9CFC0;
  --c-few: #F5DFA8;
  --c-out: #E4DDD5;

  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  --font-head: var(--font-body);

  --pad-x: 16px;
  --gap-sec: 48px;
  --pad-card: 16px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-base);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  /* 日本語の文を語のまとまりで折り返す（対応しない端末はふつうの折り返し） */
  word-break: auto-phrase;
}
body.is-sheet { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd, dt, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--c-main); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.inline-link { padding: 15px 0; font-weight: 700; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-main); outline-offset: 2px; }
[hidden] { display: none !important; }
.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;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad-x); }
.nw { white-space: nowrap; }
svg { flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[tabindex="-1"]:focus { outline: none; }
[tabindex="-1"]:focus-visible { outline: 3px solid var(--c-main); }
.sec__title, .hero h1, .lab-title { scroll-margin-top: 24px; }
p, li, dd { text-wrap: pretty; }

/* ---------- TENKA LAB バー（作品例・デモ 共通） ---------- */
.tl-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 40px; padding: 8px 16px; background: #1B2A41; color: #FFFFFF;
  font-family: var(--font-body); font-size: 13px; line-height: 1.5; letter-spacing: .04em;
}
.tl-bar__text { margin: 0; }
.tl-bar strong { font-weight: 700; }
.tl-bar__back {
  flex: none; position: relative; color: #FFFFFF; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}
.tl-bar__back:hover { color: #FFFFFF; text-decoration-thickness: 2px; }
.tl-bar__back::before { content: ""; position: absolute; inset: -15px -8px; }
.tl-bar__back::after { content: "→"; margin-left: 4px; }
.tl-bar__back:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
@media (min-width: 768px) { .tl-bar { padding: 8px 32px; } }

/* ---------- ボタン ---------- */
/* 行動ボタン：若葉の面に墨の文字と深煎りの枠（若葉と濾紙の差が小さいため枠を付ける） */
.btn-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px; border: 2px solid var(--c-main); border-radius: 28px;
  background: var(--c-accent); color: var(--c-text); font-size: 16px; font-weight: 700; line-height: 1.3;
  text-decoration: none; text-align: center;
}
.btn-main:hover, .btn-main:active { background: var(--c-accent-hover); color: var(--c-text); }
.btn-sub {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border: 2px solid var(--c-main); border-radius: 24px;
  background: #FFFFFF; color: var(--c-main); font-size: 16px; font-weight: 700; line-height: 1.3;
  text-decoration: none; text-align: center;
}
.btn-sub:hover { background: var(--c-soft); }
.btn-sub svg { width: 20px; height: 20px; }
.btn-text {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; min-width: 64px; padding: 0 4px;
  border: 0; background: none; color: var(--c-main); font-size: 15px; font-weight: 700;
  text-decoration: underline; text-underline-offset: 4px;
}
.btn-text:hover { text-decoration-thickness: 2px; }

/* ---------- ヘッダー（メニューなし。貼り付けない） ---------- */
.hd { background: #FFFFFF; border-bottom: 1px solid var(--c-line); position: relative; z-index: 20; }
.hd__in { display: flex; align-items: center; min-height: 56px; }
.hd__logo {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; min-width: 0;
  color: var(--c-main); text-decoration: none;
}
.hd__mark { width: 28px; height: 28px; }
.hd__name { font-family: var(--font-head); font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: .06em; white-space: nowrap; }
.hd__demo {
  display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px;
  background: var(--c-text); color: #FFFFFF; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap;
}

/* ---------- ブロック ---------- */
.sec { padding: var(--gap-sec) 0; }
.sec--band { background: var(--c-soft); }
.sec--line { border-top: 1px solid var(--c-line); }
.sec__en { color: var(--c-sub); font-size: 13px; font-weight: 700; letter-spacing: .16em; line-height: 1.4; }
.sec__title { margin-top: 8px; font-family: var(--font-head); color: var(--c-main); font-size: 22px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; }
.sec__lead { margin-top: 8px; color: var(--c-sub); font-size: 15px; line-height: 1.8; max-width: 40em; }
.sec__title + :not(.sec__lead), .sec__lead + * { margin-top: 24px; }
/* カートの数の行は見出しのすぐ下に付ける（上の 24px／32px より後ろに書いて勝たせる） */
.sec__title + .cart__count { margin-top: 4px; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: .04em; }
.note { margin-top: 16px; color: var(--c-sub); font-size: 14px; line-height: 1.7; max-width: 40em; }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--pad-card); }

/* ---------- ファーストビュー ---------- */
.hero { padding: 24px 0 48px; }
.hero__art { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; margin: 0 auto 24px; }
.hero__tag {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; margin-bottom: 12px;
  border: 1px solid var(--c-sub); border-radius: 14px; background: #FFFFFF; color: var(--c-text);
  font-size: 13px; font-weight: 700; line-height: 1.4;
}
.hero__kind { margin-bottom: 8px; color: var(--c-sub); font-size: 14px; font-weight: 700; line-height: 1.4; }
.h1 { font-family: var(--font-head); color: var(--c-main); font-size: 30px; font-weight: 700; line-height: 1.3; letter-spacing: .04em; }
.hero__lead { margin-top: 12px; font-size: 16px; line-height: 1.8; max-width: 40em; }
.hero__intro { margin-top: 8px; font-size: 15px; line-height: 1.8; max-width: 40em; }
.hero__note { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; color: var(--c-text); font-size: 15px; font-weight: 700; line-height: 1.7; }
.hero__note svg { margin-top: .25em; width: 16px; height: 16px; color: var(--c-main); }
.hero__act { margin-top: 24px; }
.hero__btn { width: 100%; }

/* ---------- 商品 ---------- */
/* 絞り込み（本物の radio を label で包む。枠は box-shadow で描く） */
.filter { min-width: 0; padding: 0; border: 0; }
.filter__label { display: block; padding: 0; margin-bottom: 8px; color: var(--c-text); font-size: 15px; font-weight: 700; line-height: 1.4; }
.filter__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.filter__opt { position: relative; display: inline-flex; cursor: pointer; }
.filter__face {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 48px; padding: 0 16px;
  border-radius: 24px; background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--c-sub); color: var(--c-text);
  font-size: 15px; font-weight: 700; line-height: 1.3;
}
.filter__opt:hover .filter__input:not(:checked) + .filter__face { background: var(--c-soft); }
.filter__input:checked + .filter__face { background: var(--c-main); box-shadow: inset 0 0 0 2px var(--c-main); color: #FFFFFF; }
.filter__input:focus-visible + .filter__face { outline: 3px solid var(--c-main); outline-offset: 3px; }
.filter__count { margin-top: 16px; color: var(--c-text); font-size: 15px; font-weight: 700; line-height: 1.6; }

.goods { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.item {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 12px; padding: 16px;
}
.item__top { display: flex; align-items: flex-start; gap: 12px; flex: 1 1 auto; }
.item__art { width: 56px; height: 56px; }
.item__art--light { color: #B07A4C; }
.item__art--mid { color: #7A4A33; }
.item__art--dark { color: #3E2620; }
.item__info { flex: 1 1 auto; min-width: 0; }
.item__name { color: var(--c-text); font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: .02em; }
.item__vol { margin-top: 2px; color: var(--c-sub); font-size: 14px; line-height: 1.6; }
.item__desc { margin-top: 2px; color: var(--c-sub); font-size: 14px; line-height: 1.6; }
.item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 8px; }
.item__price { color: var(--c-text); font-size: 20px; font-weight: 700; line-height: 1.2; }
.item__yen { font-size: 15px; }
.item__tax { color: var(--c-sub); font-size: 12px; font-weight: 400; }
.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 12px;
  color: var(--c-text); font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap;
}
.stock--ok { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--c-sub); }
.stock--few { background: var(--c-few); box-shadow: inset 0 0 0 1px var(--c-main); }
.stock--out { background: var(--c-out); }
.item__grind { margin-top: 16px; }
.item__grind label, .item__qty label, .cart__label {
  display: block; margin-bottom: 4px; color: var(--c-text); font-size: 14px; font-weight: 700; line-height: 1.4;
}
.item__buy { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px; align-items: end; margin-top: 12px; }
.item__buy--out { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
.item__qty { min-width: 0; }
.item__add.btn-main { min-height: 48px; padding: 0 16px; border-radius: 24px; }
.item__add--out {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 0 16px;
  border: 1.5px solid var(--c-sub); border-radius: 24px; background: var(--c-out); color: var(--c-text);
  font-size: 16px; font-weight: 700; line-height: 1.3; cursor: default;
}
.item__incart { margin-top: 8px; color: var(--c-sub); font-size: 14px; line-height: 1.6; }
.item__msg { margin-top: 8px; color: var(--c-text); font-size: 14px; font-weight: 700; line-height: 1.6; }
.item__msg:empty { display: none; }
.item__open {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px; margin-left: 4px; border: 0; background: none;
  color: var(--c-main); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; vertical-align: middle;
}
.item__open:hover { text-decoration-thickness: 2px; }

.sel-wrap { position: relative; }
.sel {
  display: block; width: 100%; min-height: 48px; padding: 0 44px 0 12px; margin: 0;
  border: 0; border-radius: 8px; background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--c-sub);
  color: var(--c-text); font: inherit; font-size: 16px; font-weight: 400; line-height: 1.3;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.item__qty .sel { padding-right: 36px; }
.item__qty .sel__icon { right: 8px; }
.sel:hover { box-shadow: inset 0 0 0 2px var(--c-main); }
.sel__icon { position: absolute; right: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--c-main); pointer-events: none; }

/* ---------- カート ---------- */
.cart { min-width: 0; }
.cart__count { margin-top: 4px; color: var(--c-sub); font-size: 14px; line-height: 1.6; }
.cart__empty { margin-top: 16px; color: var(--c-text); font-size: 15px; line-height: 1.7; }
.cart__list { margin-top: 12px; border-top: 1px solid var(--c-line); }
.cart__line { padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.cart__name { color: var(--c-text); font-size: 15px; font-weight: 700; line-height: 1.5; }
.cart__unit { color: var(--c-sub); font-size: 13px; line-height: 1.5; }
.cart__ctrl { display: flex; align-items: center; gap: 0; margin-top: 8px; }
.cart__step {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 2px solid var(--c-main); border-radius: 22px; background: #FFFFFF; color: var(--c-main);
}
.cart__step svg { width: 20px; height: 20px; }
.cart__step:hover { background: var(--c-soft); }
.cart__step[aria-disabled="true"], .cart__step[aria-disabled="true"]:hover { border: 1.5px solid var(--c-sub); background: #FFFFFF; color: var(--c-sub); cursor: default; }
.cart__qty { display: inline-block; width: 48px; color: var(--c-text); font-size: 16px; font-weight: 700; line-height: 1.2; text-align: center; }
.cart__sum { flex: 1 1 auto; min-width: 0; margin-left: 8px; color: var(--c-text); font-size: 16px; font-weight: 700; line-height: 1.2; text-align: right; }
.cart__del {
  flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 12px; margin-left: 8px;
  border: 2px solid var(--c-main); border-radius: 22px; background: #FFFFFF; color: var(--c-main); font-size: 15px; font-weight: 700; line-height: 1.3;
}
.cart__del:hover { background: var(--c-soft); }
.cart__cap { margin-top: 8px; color: var(--c-sub); font-size: 13px; line-height: 1.5; }
.cart__area { margin-top: 16px; }
.cart__hint { margin-top: 4px; color: var(--c-sub); font-size: 13px; line-height: 1.5; }
.opt__check { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 12px; color: var(--c-text); font-size: 15px; line-height: 1.5; cursor: pointer; }
.opt__input {
  flex: none; width: 24px; height: 24px; margin: 0; border: 1.5px solid var(--c-sub); border-radius: 4px; background: #FFFFFF;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.opt__input:checked { border-color: var(--c-main); background: var(--c-main); }
.opt__input:focus-visible { outline: 3px solid var(--c-main); outline-offset: 2px; }
.opt__mark { position: absolute; left: 3px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: #FFFFFF; pointer-events: none; visibility: hidden; }
.opt__input:checked + .opt__mark { visibility: visible; }
.cart__rows { margin-top: 16px; border-top: 1px solid var(--c-line); }
.cart__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--c-line); color: var(--c-text); font-size: 15px; line-height: 1.6; }
.cart__row dt { font-weight: 400; }
.cart__val { font-weight: 700; text-align: right; }
.cart__sub { grid-column: 1 / -1; color: var(--c-sub); font-size: 13px; line-height: 1.5; }
.cart__none { color: var(--c-sub); font-size: 14px; font-weight: 400; }
.cart__free { font-weight: 700; }
.cart__total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 12px; margin-top: -1px; padding-top: 12px; border-top: 2px solid var(--c-main); }
.cart__total-label { color: var(--c-text); font-size: 15px; font-weight: 700; line-height: 1.4; }
.cart__total-num { color: var(--c-main); font-size: 26px; font-weight: 700; line-height: 1.2; }
.cart__total-yen { font-size: 18px; }
.cart__total-none { color: var(--c-text); font-size: 15px; font-weight: 700; line-height: 1.5; }
.cart__partial { flex: 1 0 100%; color: var(--c-sub); font-size: 13px; line-height: 1.5; text-align: right; }
.meter { position: relative; height: 12px; margin-top: 16px; border: 1px solid var(--c-sub); border-radius: 6px; background: var(--c-soft); overflow: hidden; }
.meter__fill { display: block; height: 100%; background: var(--c-main); }
.meter__text { margin-top: 8px; color: var(--c-text); font-size: 15px; font-weight: 700; line-height: 1.6; }
.cart__note { margin-top: 12px; color: var(--c-sub); font-size: 14px; line-height: 1.7; }
.cart__links { margin-top: 4px; }
.cart__link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 2px; font-size: 15px; }
.cart__before { margin-top: 8px; width: 100%; }

/* シート（〜1023px。dialog） */
.sheet {
  width: 100%; max-width: 100%; max-height: 88vh; margin: auto 0 0; padding: 0;
  border: 0; border-radius: 16px 16px 0 0; background: #FFFFFF; color: var(--c-text); overflow: auto;
  overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(35, 25, 22, .5); }
.sheet__bar {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 16px; background: #FFFFFF; border-bottom: 1px solid var(--c-line);
}
.sheet__bar .sec__title { margin-top: 0; }
.cart-sheet__head { min-width: 0; }
.sheet__body { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
.sheet__body .cart__count { margin-top: 0; }
.sheet[open] { animation: sheet-in .2s ease-out; }
@keyframes sheet-in { from { transform: translateY(16px); opacity: .6; } to { transform: none; opacity: 1; } }
/* showModal の無いブラウザで open を付けた時 */
.sheet.is-fallback { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; box-shadow: 0 0 0 100vmax rgba(35, 25, 22, .5); }

/* 画面の下の帯（〜1023px） */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center; align-items: center;
  min-height: calc(72px + env(safe-area-inset-bottom));
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #FFFFFF; border-top: 1px solid var(--c-line);
}
.cartbar__btn.btn-main { width: 100%; min-height: 48px; padding: 0 12px; border-radius: 24px; }

/* ---------- 送料とお届け ---------- */
.ship-table { width: 100%; max-width: 560px; margin-top: 24px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--c-line); border-radius: 12px; background: #FFFFFF; overflow: hidden; font-size: 14px; line-height: 1.5; }
.ship-table caption { padding-bottom: 8px; color: var(--c-text); font-size: 15px; font-weight: 700; text-align: left; }
.ship-table th, .ship-table td { padding: 10px 16px; border-bottom: 1px solid var(--c-line); color: var(--c-text); vertical-align: middle; }
.ship-table tbody tr:last-child td { border-bottom: 0; }
.ship-table thead th { background: var(--c-soft); font-size: 13px; font-weight: 700; text-align: right; }
.ship-table thead th:first-child { text-align: left; }
.ship-table tbody th { font-weight: 700; text-align: left; }
.ship-table tbody td { font-weight: 700; text-align: right; }
.ship-table__ex td { font-size: 14px; font-weight: 400 !important; line-height: 1.7; text-align: left !important; }
.ship-table--current th { box-shadow: inset 4px 0 0 var(--c-main); }
.ship-rules { margin-top: 16px; max-width: 40em; }
.ship-rules li { position: relative; padding-left: 18px; color: var(--c-text); font-size: 15px; line-height: 1.7; }
.ship-rules li + li { margin-top: 4px; }
.ship-rules li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--c-main); }

/* ---------- ご注文の前に ---------- */
.before { max-width: 720px; }
.before p { font-size: 16px; line-height: 1.8; }
.before p + p { margin-top: 12px; }

/* ---------- 実際のお仕事では（TENKA LAB の層） ---------- */
.sec--lab { border-top: 1px dashed var(--c-sub); }
.lab-tag {
  display: inline-flex; align-items: center; gap: .3em; height: 24px; padding: 0 8px; border-radius: 4px;
  background: var(--c-text); color: #FFFFFF; font-size: 12px; font-weight: 700; line-height: 1;
}
.lab-title { margin-top: 12px; font-size: 22px; font-weight: 700; line-height: 1.5; color: var(--c-main); letter-spacing: .04em; }
.lab-lead { margin-top: 12px; max-width: 40em; }
.work-3 { display: grid; gap: 16px; margin-top: 24px; }
.work-3 > li { background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 12px; padding: 24px; }
.work-3 > li > svg { color: var(--c-main); }
.work-3 h3 { margin-top: 8px; font-size: 17px; }
.work-3 ul, .work-check ul { margin-top: 8px; }
.work-3 ul li, .work-check li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.7; }
.work-3 ul li + li, .work-check li + li { margin-top: 4px; }
.work-3 ul li::before, .work-check li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-main); }
.work-check { margin-top: 16px; padding: 16px; background: #FFFFFF; border: 1px dashed var(--c-sub); border-radius: 12px; }
.work-check h3 { font-size: 16px; }
.work-check__note { margin-top: 12px; color: var(--c-sub); font-size: 14px; line-height: 1.7; }
.lab-more { margin-top: 16px; }
.lab-more .btn-text { font-size: 14px; padding: 0; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--c-main); color: var(--c-base); font-size: 15px; line-height: 1.8;
  padding: 48px 16px; text-align: center;
}
.site-footer p + p { margin-top: 16px; }
.site-footer :focus-visible { outline-color: #FFFFFF; }
.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; max-width: 100%; min-height: 52px;
  margin: 0 auto; border: 2px solid #FFFFFF; border-radius: 26px; background: var(--c-accent); color: var(--c-text);
  font-size: 16px; font-weight: 700; text-decoration: none;
}
.btn:hover, .btn:active { background: var(--c-accent-hover); }
.copy { font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet[open] { animation: none; }
}

/* 枠を描く色を強制する表示（ハイコントラスト）では box-shadow が消えるので、本物の枠を出す */
@media (forced-colors: active) {
  .filter__face, .sel, .stock--ok, .stock--few { border: 2px solid CanvasText; }
  .opt__input { forced-color-adjust: none; border-color: CanvasText; background: Canvas; }
  .opt__input:checked { background: Highlight; }
  /* レ点は強制の色に置き換えさせず、Highlight の面の上で HighlightText にする */
  .opt__mark { forced-color-adjust: none; color: HighlightText; }
}

/* ---------- 〜1023px：帯の分の余白 ---------- */
@media (max-width: 1023px) {
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* ---------- 768px 以上 ---------- */
@media (min-width: 768px) {
  :root { --pad-x: 32px; --gap-sec: 80px; --pad-card: 24px; }
  .hd__in { min-height: 64px; }
  .hd__name { font-size: 18px; }
  .hero { padding: 64px 0 80px; }
  .hero__in { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: center; }
  .hero__art { grid-column: 2; grid-row: 1; height: 160px; aspect-ratio: auto; margin: 0; }
  .hero__text { grid-column: 1; grid-row: 1; min-width: 0; }
  .hero__kind { font-size: 15px; }
  .h1 { font-size: 34px; }
  .hero__lead { font-size: 17px; }
  .hero__btn { width: auto; min-width: 240px; }
  .sec__title { font-size: 26px; }
  .sec__lead { font-size: 16px; }
  .sec__title + :not(.sec__lead), .sec__lead + * { margin-top: 32px; }
  .sec__title + .cart__count { margin-top: 4px; }
  .sheet__bar .sec__title { font-size: 22px; }
  h3 { font-size: 22px; }
  .goods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart__total-num { font-size: 28px; }
  .ship-table { font-size: 15px; }
  .sheet { width: calc(100% - 64px); max-width: 560px; max-height: 85vh; margin: auto; border-radius: 16px; }
  .sheet.is-fallback { left: 50%; right: auto; top: 50%; bottom: auto; transform: translate(-50%, -50%); }
  .sheet__bar { padding: 8px 24px; }
  .sheet__body { padding: 20px 24px 24px; }
  .cartbar__btn.btn-main { max-width: 480px; }
  .work-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-3 > li { padding: 20px; }
  .btn { width: 280px; }
}

/* ---------- 1024px 以上：商品（左）とカート（右・貼り付く） ---------- */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .cartbar { display: none; }
  .hd__in { min-height: 72px; }
  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .hero__art { height: 200px; }
  .h1 { font-size: 40px; }
  .store__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-top: var(--gap-sec); padding-bottom: var(--gap-sec); }
  .store__grid > .sec { padding: 0; }
  .store__cart { position: sticky; top: 24px; background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 12px; padding: 24px; }
  .store__cart.is-static { position: static; }
  .work-3 > li { padding: 24px; }
}
@media (min-width: 1280px) {
  .store__grid { grid-template-columns: minmax(0, 1fr) 360px; }
}

/* ---------- 印刷（崩れない程度） ---------- */
@media print {
  .tl-bar__back, .hero__art, .hero__act, .btn, .lab-more, .cartbar, .sheet { display: none !important; }
  body { background: none; color: #231916; padding-bottom: 0; }
  .sec--band, .site-footer, .tl-bar { background: none !important; color: #231916 !important; }
  .item, .work-3 > li { break-inside: avoid; }
  .store__cart { position: static; }
}

/* カードの「カートを見る」は〜1023px だけ（1024px〜 はカートが右に見えている） */
@media (min-width: 1024px) {
  .item__open { display: none; }
}

/* 1024〜1279px はカードが狭い（内側 254px）ので、商品名をカードの幅いっぱいに出し、図はその下の左に置く */
@media (min-width: 1024px) and (max-width: 1279px) {
  /* 行の間は 0（元の flex の gap 12px が行にも効いて広がっていた）。行は名前・容量・説明・値段＋余りの行で、図（56px）の高さの余りは最後の行だけが受け取る */
  .item__top { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr; gap: 0 12px; align-content: start; }
  .item__info { display: contents; }
  .item__name { grid-column: 1 / -1; grid-row: 1; margin-bottom: 4px; }
  .item__art { grid-column: 1; grid-row: 2 / span 4; }
  .item__vol, .item__desc, .item__meta { grid-column: 2; min-width: 0; }
  .item__vol { margin-top: 0; }
}
