/* 江戸名代亜門ホームページ（unagi-amon.com）に合わせる：しっぽり明朝・墨色・生成りの和紙色・黒の帯 */
@import url("https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;600;800&family=Lora:wght@400;600&display=swap");

:root {
  --bg: #f2efe9;          /* 和紙（HP の背景） */
  --band: #ece6de;        /* ヘッダー・表見出し */
  --surface: #ffffff;
  --ink: #333333;         /* HP の本文色 */
  --muted: #666666;
  --line: #d9d1c5;
  --accent: #1a1a1a;      /* 墨（ボタン・強調） */
  --accent-ink: #ffffff;
  --error: #a3271c;
  --error-bg: #f9e9e6;
  --radius: 4px;
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  --latin: "Lora", "Shippori Mincho", serif;
  font-family: var(--gothic);
  color: var(--ink);
  line-height: 1.8;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ヘッダー：HP と同じ生成りの帯に明朝のロゴ */
.site-header { background: var(--band); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.brand { font-family: var(--mincho); font-weight: 600; font-size: 20px; text-decoration: none; letter-spacing: .12em; color: #000; line-height: 1.3; }
.brand small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: .08em; }
.cart-link { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--accent); border-radius: 999px; font-family: var(--mincho); font-size: 14px; letter-spacing: .08em; background: var(--surface); white-space: nowrap; }
.cart-count { background: var(--accent); color: var(--accent-ink); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-family: var(--gothic); font-size: 12px; padding: 0 6px; letter-spacing: 0; }

h1, h2, .section-title, .price, .line-total, .subtotal strong { font-family: var(--mincho); }
h1 { font-size: 26px; font-weight: 600; letter-spacing: .1em; margin: 36px 0 8px; }
.lead { color: var(--muted); margin: 0 0 28px; font-size: 14px; }

/* トップの注意書き：区分ごとの最低ご注文金額 */
.area-notice { background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0 20px; }
.area-notice h2 { font-size: 17px; font-weight: 600; letter-spacing: .06em; margin: 0 0 10px; }
.area-mins { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.area-mins { align-items: start; }
.area-mins li { padding: 6px 0; border-bottom: 1px dotted var(--line); font-size: 14px; min-width: 0; }
.area-mins-row { display: flex; justify-content: space-between; gap: 12px; }
.area-detail summary { cursor: pointer; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; width: fit-content; margin-top: 2px; }
.area-detail summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.area-detail[open] summary { margin-bottom: 4px; }
.area-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; padding: 8px 10px; background: var(--bg); border-radius: var(--radius); font-size: 12.5px; line-height: 1.7; }
.area-detail dt { font-weight: 700; white-space: nowrap; }
.area-detail dd { margin: 0; min-width: 0; }
.area-mins strong { font-family: var(--mincho); font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.warn-link { display: inline-block; margin-left: .5em; font-weight: 700; }
#min-warn-submit .notice { margin: 0 0 12px; }
.same-as { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 14px; font-size: 14px; cursor: pointer; }
.same-as input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.area-notice-foot { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* 商品一覧：写真は横長（3:2）のまま全体を見せる */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-bottom: 56px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card img { aspect-ratio: 3 / 2; object-fit: contain; width: 100%; height: auto; background: #f7f4ef; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h2 { font-size: 18px; font-weight: 600; letter-spacing: .06em; margin: 0; }
.card p { margin: 0; font-size: 13px; color: var(--muted); flex: 1; }
.price { font-weight: 600; font-size: 22px; letter-spacing: .02em; }
.price small { font-family: var(--gothic); font-weight: 400; font-size: 12px; color: var(--muted); }
.buy { display: grid; gap: 10px; }
.buy .buy-qty select { flex: 1; }
.buy .btn { width: 100%; white-space: nowrap; }
.buy-qty { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.buy-qty select { font: inherit; font-size: 16px; color: var(--ink); padding: 8px 28px 8px 10px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

.btn { appearance: none; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-family: var(--mincho); font-weight: 600; font-size: 15px; letter-spacing: .1em; border-radius: var(--radius); padding: 10px 16px; cursor: pointer; min-height: 44px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.btn:hover { background: #444; border-color: #444; }
.btn:disabled { opacity: .5; cursor: wait; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.block { width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* カート */
.cart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; min-width: 0; }
.line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line:last-of-type { border-bottom: 0; }
.line img { width: 96px; aspect-ratio: 3 / 2; height: auto; object-fit: contain; background: #f7f4ef; border-radius: 2px; }
.line-name { font-family: var(--mincho); font-weight: 600; font-size: 16px; }
.line-unit { font-size: 12px; color: var(--muted); }
.line-actions { display: flex; align-items: center; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.line-total { font-weight: 600; font-size: 17px; text-align: right; white-space: nowrap; }
.remove { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 4px; }
.subtotal { display: flex; justify-content: flex-end; gap: 16px; align-items: baseline; font-size: 15px; padding-top: 12px; }
.subtotal strong { font-size: 24px; font-weight: 600; }
.subtotal.grand { border-top: 1px solid var(--line); margin-top: 6px; }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }

.divider { text-align: center; font-family: var(--mincho); font-weight: 600; letter-spacing: .1em; margin: 32px 0 16px; }
.section-title { font-size: 18px; font-weight: 600; letter-spacing: .08em; margin: 0 0 4px; border-left: 3px solid var(--accent); padding-left: 10px; }
.hint { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }
.field { display: grid; gap: 4px; margin-top: 14px; min-width: 0; }
.field label { font-size: 14px; font-weight: 700; }
.req { color: var(--error); font-size: 11px; margin-left: 6px; font-weight: 400; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; width: 100%; color: var(--ink); min-height: 44px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { color: var(--error); font-size: 13px; }
[aria-invalid="true"] { border-color: var(--error) !important; background: var(--error-bg) !important; }
.alert { background: var(--error-bg); color: var(--error); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.notice { font-size: 13px; color: var(--muted); background: var(--bg); border-radius: var(--radius); padding: 10px 12px; margin-top: 12px; }
.notice.warn { background: var(--error-bg); color: var(--error); }
.checkout-bar { margin: 24px 0 56px; }
.checkout-bar .btn { font-size: 17px; min-height: 52px; }
.pay-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }

/* 配達区分の表（市区まで最初から見せる） */
.area-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; background: #fff; }
.area-table th, .area-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.area-table thead th { background: var(--band); font-weight: 700; white-space: nowrap; }
.area-table tbody th { text-align: center; width: 2.6em; font-family: var(--latin); font-size: 16px; background: var(--band); }
.area-table .area-min, .area-table .area-fee { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* 都県ごとに1行：左に都県名の札、右に市区 */
.area-pref-row { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 3px 0; }
.area-pref-row + .area-pref-row { border-top: 1px dashed var(--line); }
.area-pref { font-weight: 700; color: #000; background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: 0 6px; text-align: center; white-space: nowrap; font-size: 12px; }

/* フッター（HP と同じ黒の帯） */
.site-footer { background: #000; color: #e9e4dc; padding: 28px 0 calc(36px + env(safe-area-inset-bottom, 0px)); font-size: 13px; }
.footer-inner { display: grid; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; border-bottom: 1px solid #777; padding: 6px 0; }
.footer-inner > div { font-family: var(--mincho); letter-spacing: .12em; }

/* 特商法・プライバシーポリシー */
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 48px; }
.doc h2 { font-size: 18px; font-weight: 600; letter-spacing: .06em; margin: 28px 0 8px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { font-size: 14px; }
.doc dl { display: grid; grid-template-columns: 13em minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.doc dt, .doc dd { margin: 0; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.doc dt { background: var(--bg); font-weight: 700; }
.doc .todo { background: #fff3c4; padding: 0 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* スマホ */
@media (max-width: 600px) {
  .site-header .wrap { min-height: 60px; }
  .brand { font-size: 17px; letter-spacing: .08em; }
  .brand small { font-size: 10px; }
  h1 { font-size: 21px; margin-top: 24px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .two { grid-template-columns: 1fr; }
  .line { grid-template-columns: 84px minmax(0, 1fr); }
  .line img { width: 84px; }
  .line-total { grid-column: 2; text-align: left; }
  .panel, .doc { padding: 14px; }
  .area-table thead { display: none; }
  .area-table, .area-table tbody, .area-table tr, .area-table td { display: block; }
  .area-table tr { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); border: 1px solid var(--line); margin-bottom: 8px; }
  .area-table th, .area-table td { border: 0; }
  .area-table tbody th { grid-row: span 3; display: grid; place-items: center; }
  .area-table .area-min::before { content: "ご注文金額 "; color: var(--muted); }
  .area-table .area-fee { white-space: normal; padding-top: 0; }
  .area-table .area-fee::before { content: "送料 "; color: var(--muted); }
  .area-table .area-min { padding-bottom: 2px; }
  .doc dl { grid-template-columns: 1fr; }
  .doc dt { border-bottom: 0; padding-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

