/* ============================================================
   STOA — デジタル商品ストア
   デザイントークン → ベース → 共通パーツ → 各ページ → 管理画面
   ============================================================ */

:root {
  --paper: #faf8f5;
  --surface: #ffffff;
  --surface-2: #f4f1ec;
  --ink: #15141a;
  --ink-2: #453f4d;
  --muted: #7b7469;
  --line: #e7e2d9;
  --accent: #4f46e5;
  --accent-ink: #ffffff;
  --accent-soft: #eef0ff;
  --accent-2: #8b5cf6;
  --ok: #15803d;
  --ok-soft: #eaf7ee;
  --warn: #b45309;
  --warn-soft: #fdf5e3;
  --danger: #b91c1c;
  --danger-soft: #fdecec;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow: 0 1px 2px rgba(20, 18, 14, .04), 0 8px 24px -12px rgba(20, 18, 14, .16);
  --shadow-lg: 0 2px 4px rgba(20, 18, 14, .04), 0 24px 56px -24px rgba(20, 18, 14, .28);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
  --wrap: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d0d12;
    --surface: #16161e;
    --surface-2: #1d1d27;
    --ink: #f1eeea;
    --ink-2: #cdc8c2;
    --muted: #948d84;
    --line: #2a2a35;
    --accent: #7c74ff;
    --accent-soft: #1e1c33;
    --ok-soft: #14251a;
    --warn-soft: #2a2113;
    --danger-soft: #2c1618;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .7);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .5), 0 24px 56px -24px rgba(0, 0, 0, .9);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 15.5px;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.4; letter-spacing: .002em; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .84em; }
.center { text-align: center; }
.pad-xl { padding: 96px 0; }
.big { font-size: 68px; margin: 0; }
.mt { margin-top: 16px; }

/* ---------------------------- ヘッダー ---------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--accent) 60%, transparent);
}
.brand-text { letter-spacing: .16em; font-size: 15px; }
.head-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.head-nav a { text-decoration: none; color: var(--ink-2); transition: color .15s; }
.head-nav a:hover { color: var(--accent); }
.cart-link { position: relative; display: inline-flex; padding: 6px; }
.cart-badge {
  position: absolute; top: -2px; right: -4px; min-width: 17px; height: 17px;
  border-radius: 9px; background: var(--accent); color: #fff;
  font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px;
}

/* ---------------------------- ボタン ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 14.5px;
  text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .18s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink); border-color: transparent;
  box-shadow: 0 4px 14px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-ghost { background: transparent; }
.btn-block { width: 100%; margin-bottom: 10px; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: var(--r-sm); }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); background: var(--danger-soft); }
.linkbtn { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }

/* ----------------------------- ヒーロー ----------------------------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; }
.hero-inner { position: relative; z-index: 2; max-width: 800px; }
.eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 18px;
}
.hero-title { font-size: clamp(32px, 5.4vw, 56px); line-height: 1.32; margin: 0 0 22px; letter-spacing: -.01em; }
.hero-body { font-size: 16.5px; color: var(--ink-2); max-width: 620px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-points { list-style: none; display: flex; gap: 34px; flex-wrap: wrap; padding: 0; margin: 0; font-size: 13.5px; color: var(--muted); }
.hero-points li { display: flex; align-items: baseline; gap: 9px; }
.hero-points span { font-weight: 700; color: var(--accent); font-size: 11px; letter-spacing: .1em; }
.hero-glow {
  position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px; z-index: 1;
  background: radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 62%);
  filter: blur(20px); pointer-events: none;
}

/* ----------------------------- セクション ----------------------------- */
.section { padding: 46px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: 21px; margin: 0; }
.link-more { font-size: 13.5px; color: var(--accent); text-decoration: none; font-weight: 600; }
.page-head { padding: 46px 0 8px; }
.page-head h1 { font-size: 30px; margin-bottom: .2em; }
.page-head p { color: var(--muted); font-size: 14px; }
.empty { padding: 56px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-lg); }

/* ----------------------------- 商品カード ----------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .16s, box-shadow .22s, border-color .16s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.card-art { position: relative; aspect-ratio: 40 / 26; background: var(--surface-2); }
.art { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-title { font-size: 16px; margin: 0; }
.card-sub { font-size: 13px; color: var(--muted); margin: 0; flex: 1; }
.card-price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.card-price strong, .detail-price strong { font-size: 20px; letter-spacing: -.01em; }
.card-price s, .detail-price s { color: var(--muted); font-size: 13px; }
.tax { font-size: 11px; color: var(--muted); }

.chip {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  width: fit-content;
}
.chip-badge { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94); color: #15141a; }
.chip-sold { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.7); color: #fff; }

/* ----------------------------- 特徴・FAQ ----------------------------- */
.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.feature h3 { font-size: 16px; }
.feature p { font-size: 14px; color: var(--ink-2); margin: 0; }

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 18px 4px; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; color: var(--accent); font-weight: 400; }
.faq-item[open] summary::after { content: "－"; }
.faq-body { padding: 0 4px 20px; color: var(--ink-2); font-size: 14px; }

/* ----------------------------- 商品詳細 ----------------------------- */
.breadcrumb { font-size: 12.5px; color: var(--muted); padding-top: 22px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 366px; gap: 44px; align-items: start; padding: 26px 22px 60px; }
.detail-art { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 40/26; background: var(--surface-2); }
.detail-title { font-size: 25px; margin: 12px 0 6px; }
.detail-sub { color: var(--muted); font-size: 14px; }
.detail-price { display: flex; align-items: baseline; gap: 9px; margin: 18px 0; }
.detail-price strong { font-size: 30px; }
.stock-note { color: var(--warn); font-size: 13px; font-weight: 600; }
.buybox { position: sticky; top: 86px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow); }
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 13.5px; }
.qty-row input { width: 74px; }
.buy-hint { font-size: 12.5px; color: var(--muted); text-align: center; margin: 4px 0 18px; }
.buy-meta { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--line); font-size: 13px; }
.buy-meta li { display: flex; justify-content: space-between; padding: 5px 0; }
.buy-meta span { color: var(--muted); }

.prose { margin-top: 40px; max-width: 68ch; }
.prose h2 { font-size: 19px; margin-top: 1.8em; }
.prose h3 { font-size: 16px; margin-top: 1.8em; padding-left: 12px; border-left: 3px solid var(--accent); }
.prose p, .prose li { color: var(--ink-2); font-size: 15px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }

/* ----------------------------- フォーム ----------------------------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow); }
.panel h1 { font-size: 22px; }
.panel h2 { font-size: 16px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field > span em { color: var(--accent); font-style: normal; font-size: 11px; margin-left: 5px; }
.field small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 14.5px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 12px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
textarea { resize: vertical; line-height: 1.7; }
input[type="checkbox"] { width: auto; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); margin: 14px 0 18px; line-height: 1.7; }
.check input { margin-top: 4px; }
.form-error { color: var(--danger); font-size: 13px; margin-top: 10px; }

/* ----------------------------- カート ----------------------------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 34px; align-items: start; padding-bottom: 70px; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-row {
  display: grid; grid-template-columns: 78px minmax(0,1fr) auto; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px;
}
.cart-row .thumb { width: 78px; height: 56px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.cart-row h3 { font-size: 15px; margin: 0 0 2px; }
.cart-row .meta { font-size: 12px; color: var(--muted); }
.cart-row .right { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.cart-row input { width: 62px; }
.cart-row .remove { background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); margin-top: 6px; }
.total-row strong { font-size: 22px; }
.pay-note { font-size: 12px; color: var(--muted); text-align: center; margin: 6px 0 0; }

/* ----------------------------- 通知 ----------------------------- */
.notice { border-radius: var(--r); padding: 14px 16px; font-size: 14px; margin-bottom: 20px; border: 1px solid; line-height: 1.75; }
.notice ul { margin: 8px 0 0; padding-left: 1.2em; }
.notice-info { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 28%, transparent); }
.notice-ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 28%, transparent); }
.notice-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.notice-error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }

/* ------------------------- デモ決済 / 受け取り ------------------------- */
.demo-pay { padding: 60px 22px; }
.demo-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--warn); background: var(--warn-soft); padding: 4px 10px; border-radius: 999px; }
.fake-card { background: var(--surface-2); border-radius: var(--r-lg); padding: 18px; margin: 18px 0; }
.sum-list { list-style: none; padding: 0; margin: 18px 0; font-size: 14px; }
.sum-list li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sum-total { border-bottom: 0 !important; font-weight: 700; font-size: 16px; padding-top: 14px !important; }

.delivery { padding: 46px 22px 80px; }
.delivery h1 { font-size: 27px; }
.order-meta { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.delivery-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }
.deliv { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.deliv.is-ready { border-color: color-mix(in srgb, var(--ok) 32%, var(--line)); }
.deliv.is-pending { background: var(--surface-2); }
.deliv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.deliv-head h2 { font-size: 16px; margin: 0; }
.deliv-note { font-size: 13.5px; color: var(--ink-2); background: var(--surface-2); border-radius: var(--r-sm); padding: 11px 13px; margin: 12px 0 0; }
.codes { display: flex; flex-wrap: wrap; gap: 9px; }
.code {
  display: inline-flex; align-items: center; gap: 10px; background: var(--surface-2);
  border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 9px 13px; font-size: 14px; cursor: pointer;
}
.code span { font-size: 10.5px; color: var(--accent); font-weight: 700; }
.receipt { margin-top: 26px; }
.spinner {
  width: 30px; height: 30px; border-radius: 50%; margin: 40px auto;
  border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------- 法務表 ----------------------------- */
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 70px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 15px 12px; border-bottom: 1px solid var(--line); }
.legal-table th { width: 30%; color: var(--muted); font-weight: 600; white-space: nowrap; }

/* ----------------------------- フッター ----------------------------- */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; padding: 46px 0 26px; }
.foot-inner { display: flex; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.foot-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(150px, auto)); gap: 8px 34px; font-size: 13px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }
.foot-copy { font-size: 12px; color: var(--muted); margin-top: 34px; }

/* ============================================================
   管理画面
   ============================================================ */
body.admin { background: var(--surface-2); }
.adm-head { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30; }
.adm-head-inner { max-width: 1280px; margin-inline: auto; padding: 0 22px; height: 56px; display: flex; align-items: center; gap: 26px; }
.adm-brand { font-weight: 700; text-decoration: none; letter-spacing: .04em; font-size: 14px; }
.adm-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.adm-nav a { color: rgba(255,255,255,.68); text-decoration: none; font-size: 13.5px; padding: 6px 11px; border-radius: var(--r-sm); }
.adm-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.adm-nav a.is-active { color: #fff; background: rgba(255,255,255,.16); }
.adm-right { display: flex; align-items: center; gap: 16px; font-size: 12.5px; color: rgba(255,255,255,.68); }
.adm-right a { text-decoration: none; }
.adm-main { max-width: 1280px; margin-inline: auto; padding: 28px 22px 80px; }
.adm-title { font-size: 22px; margin: 0 0 18px; }
.adm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 20px; }
.adm-card h2 { font-size: 15px; margin-bottom: 14px; }
.adm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.adm-card-head h1, .adm-card-head h2 { margin: 0; }
.adm-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.back { display: inline-block; font-size: 13px; color: var(--muted); text-decoration: none; margin-bottom: 12px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.stat span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.stat strong { font-size: 24px; letter-spacing: -.01em; }
.stat.alert { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: var(--warn-soft); }

.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-table th, .adm-table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm-table thead th { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.adm-table tbody tr:hover { background: var(--surface-2); }
.adm-table td form { display: inline; }

.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill-active, .pill-fulfilled { background: var(--ok-soft); color: var(--ok); }
.pill-paid { background: var(--warn-soft); color: var(--warn); }
.pill-pending, .pill-draft { background: var(--accent-soft); color: var(--accent); }
.pill-refunded, .pill-canceled, .pill-archived { background: var(--danger-soft); color: var(--danger); }

.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { font-size: 13px; padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); border: 1px solid var(--line); background: var(--surface); }
.tabs a.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; margin: 0 0 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

.deliv-admin { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
.deliv-admin.is-pending { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); }
.deliv-admin-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 6px; }
.inline-form { margin-top: 12px; }

.envlist { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.envlist li { display: grid; grid-template-columns: 74px 1fr; gap: 4px 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.envlist li > span { grid-row: span 3; font-size: 11px; font-weight: 700; padding: 3px 0; border-radius: 999px; text-align: center; height: fit-content; }
.envlist li.ok > span { background: var(--ok-soft); color: var(--ok); }
.envlist li.ng > span { background: var(--warn-soft); color: var(--warn); }
.envlist small { font-size: 11.5px; color: var(--ink-2); }

.login-body { display: grid; place-items: center; min-height: 100vh; padding: 22px; }
.login-panel { width: 100%; max-width: 380px; }

/* ----------------------------- レスポンシブ ----------------------------- */
@media (max-width: 900px) {
  .detail, .checkout, .adm-cols { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .prose { margin-top: 26px; }
  .hero { padding: 56px 0 46px; }
  .foot-inner { flex-direction: column; }
}
@media (max-width: 560px) {
  .head-nav { gap: 15px; font-size: 13px; }
  .field-row { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 60px minmax(0,1fr); }
  .cart-row .right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .cart-row .thumb { width: 60px; height: 44px; }
  .legal-table th { width: 38%; }
  .adm-main { padding: 20px 14px 60px; }
}
