:root {
  --ink: #161616;
  --paper: #fff;
  --soft: #f4f3ef;
  --line: #e4e2dc;
  --muted: #77736b;
  --accent: #d9480f;
  --font: "Jost", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --max: 1160px;
  --pad: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.8; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- お知らせ帯・ヘッダー ---------- */
.notice { padding: 7px var(--pad); font-size: .78rem; letter-spacing: .06em; text-align: center; color: var(--paper); background: var(--ink); }

.header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 14px var(--pad); background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.logo { display: flex; align-items: baseline; gap: 12px; margin-right: auto; font-size: 1.5rem; font-weight: 600; letter-spacing: .22em; line-height: 1.2; }
.logo small { font-size: .72rem; font-weight: 400; letter-spacing: .08em; color: var(--muted); }
.nav { display: flex; gap: 26px; font-size: .88rem; }
.nav a { padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav a:hover { border-color: var(--ink); }

.cart-button { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px; font-size: .88rem; background: none; border: 1px solid var(--ink); border-radius: 999px; transition: background .2s, color .2s; }
.cart-button:hover { color: var(--paper); background: var(--ink); }
.cart-count { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; font-size: .8rem; font-weight: 600; color: var(--paper); background: var(--accent); border-radius: 999px; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* ---------- ファーストビュー ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.1fr; align-items: stretch; background: var(--soft); }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding: clamp(40px, 7vw, 90px) var(--pad) clamp(40px, 7vw, 90px) max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); }
.hero-label { font-size: .78rem; font-weight: 500; letter-spacing: .2em; color: var(--accent); }
.hero h1 { font-size: clamp(1.8rem, 4.2vw, 3.1rem); font-weight: 700; line-height: 1.45; letter-spacing: .04em; }
.hero-text > p:not(.hero-label) { max-width: 26em; color: var(--muted); }
.hero-art { display: flex; align-items: flex-end; background: #efe9dc; }
.hero-art svg { display: block; width: 100%; height: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 34px; font-size: .95rem; font-weight: 700; letter-spacing: .08em; border: 1px solid var(--ink); border-radius: 0; transition: background .2s, color .2s, border-color .2s; }
.btn-dark { color: var(--paper); background: var(--ink); }
.btn-dark:hover { color: var(--ink); background: transparent; }
.btn-accent { width: 100%; color: var(--paper); background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: #b83a08; border-color: #b83a08; }

/* ---------- 商品一覧 ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 84px) var(--pad); }
.section h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 700; letter-spacing: .08em; }
.shop-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.shop-count { font-size: .88rem; color: var(--muted); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 22px 0 30px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 6px 18px; font-size: .88rem; background: none; border: 1px solid var(--line); border-radius: 999px; transition: background .2s, color .2s, border-color .2s; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.sort { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--muted); }
.sort select { padding: 7px 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 0; }

.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 22px; }
.product { position: relative; display: flex; flex-direction: column; animation: rise .4s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.product-art { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; overflow: hidden; }
.product-art svg { display: block; width: 100%; height: 100%; transition: transform .5s ease; }
.product-art:hover svg { transform: scale(1.07); }
.badge { position: absolute; top: 10px; left: 10px; padding: 2px 10px; font-size: .72rem; font-weight: 600; letter-spacing: .1em; color: var(--paper); background: var(--ink); }
.badge.few { background: var(--accent); }
.product-name { margin-top: 12px; font-size: .95rem; font-weight: 700; line-height: 1.5; }
.product-name button { padding: 0; text-align: left; background: none; border: 0; font-weight: inherit; }
.product-name button:hover { text-decoration: underline; }
.product-maker { font-size: .78rem; color: var(--muted); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.price { font-size: 1.1rem; font-weight: 600; }
.price small { margin-left: 3px; font-size: .68rem; font-weight: 400; color: var(--muted); }
.add { padding: 6px 14px; font-size: .8rem; font-weight: 700; background: none; border: 1px solid var(--ink); transition: background .2s, color .2s; }
.add:hover { color: var(--paper); background: var(--ink); }

/* ---------- ご利用ガイド ---------- */
.guide { border-top: 1px solid var(--line); }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.guide article { padding: 24px; background: var(--soft); }
.guide h3 { margin-bottom: 6px; font-size: 1rem; }
.guide p { font-size: .9rem; color: var(--muted); }

.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 28px var(--pad); font-size: .8rem; color: #bdb9b0; background: var(--ink); }
.footer .logo { margin: 0; color: var(--paper); font-size: 1.2rem; }

/* ---------- 商品詳細 ---------- */
.close { position: relative; width: 40px; height: 40px; background: none; border: 0; }
.close::before, .close::after { content: ""; position: absolute; top: 19px; left: 9px; width: 22px; height: 1.5px; background: var(--ink); transform: rotate(45deg); }
.close::after { transform: rotate(-45deg); }

.detail { width: min(880px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: 0; color: var(--ink); border: 0; overflow: auto; }
.detail[open] { display: grid; grid-template-columns: 1fr 1fr; animation: rise .3s ease; }
.detail::backdrop { background: rgba(22, 22, 22, .55); }
.detail > .close { position: absolute; top: 8px; right: 8px; z-index: 1; }
.detail-art svg { display: block; width: 100%; height: 100%; min-height: 280px; }
.detail-body { display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 4vw, 44px); }
.detail-cat { font-size: .76rem; letter-spacing: .16em; color: var(--muted); }
.detail-body h2 { font-size: 1.4rem; line-height: 1.5; }
.detail-price { font-size: 1.5rem; font-weight: 600; }
.detail-price small { margin-left: 4px; font-size: .75rem; font-weight: 400; color: var(--muted); }
.detail-text { font-size: .92rem; }
.detail-spec { margin: 6px 0; font-size: .84rem; border-top: 1px solid var(--line); }
.detail-spec div { display: flex; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.detail-spec dt { flex: 0 0 5em; color: var(--muted); }
.detail-buy { display: flex; gap: 12px; margin-top: auto; padding-top: 10px; }
.detail-buy .btn { flex: 1; padding-inline: 16px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--ink); }
.qty button { width: 40px; height: 100%; min-height: 36px; font-size: 1rem; background: none; border: 0; }
.qty button:hover { background: var(--soft); }
.qty output { min-width: 2em; text-align: center; font-weight: 600; }

/* ---------- カート ---------- */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(22, 22, 22, .5); }
.cart { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; display: flex; flex-direction: column; width: min(420px, 100%); background: var(--paper); visibility: hidden; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility .35s; }
.cart.open { visibility: visible; transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 14px 24px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 1.1rem; letter-spacing: .1em; }

.ship { padding: 14px 24px; font-size: .82rem; background: var(--soft); }
.ship b { color: var(--accent); }
.ship-bar { height: 4px; margin-top: 8px; background: var(--line); }
.ship-bar i { display: block; width: 0; height: 100%; background: var(--accent); transition: width .4s ease; }

.cart-items { flex: 1; padding: 0 24px; overflow-y: auto; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 4px 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item svg { grid-row: span 2; display: block; width: 72px; height: 72px; }
.cart-item h3 { font-size: .9rem; line-height: 1.5; }
.cart-item .line { font-weight: 600; white-space: nowrap; }
.cart-item .qty button { width: 30px; min-height: 28px; }
.remove { justify-self: end; padding: 0; font-size: .78rem; color: var(--muted); text-decoration: underline; background: none; border: 0; }
.cart-empty { flex: 1; padding: 48px 24px; text-align: center; color: var(--muted); }

.cart-foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); }
.cart-foot dl { margin-bottom: 16px; font-size: .9rem; }
.cart-foot dl div { display: flex; justify-content: space-between; padding: 3px 0; }
.cart-foot .total { margin-top: 8px; padding-top: 10px; font-size: 1.15rem; font-weight: 700; border-top: 1px solid var(--line); }
.cart-note { margin-top: 12px; font-size: .82rem; text-align: center; color: var(--accent); }

.toast { position: fixed; left: 50%; bottom: 70px; z-index: 120; padding: 10px 24px; font-size: .88rem; color: var(--paper); background: var(--ink); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .25s, transform .25s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero-text { padding: 40px var(--pad); }
  .nav { display: none; }
  .logo small { display: none; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .product-foot { flex-direction: column; align-items: stretch; }
  .add { padding: 9px 14px; }
  .guide-grid { grid-template-columns: 1fr; }
  .detail[open] { grid-template-columns: 1fr; }
  .detail-art svg { min-height: 0; aspect-ratio: 4 / 3; }
  .toast { bottom: 96px; }
}

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