:root {
  --red: #e60012;
  --red-dark: #b8000e;
  --red-soft: #fff1f1;
  --cream: #fffaf0;
  --ink: #1f1f1f;
  --muted: #666;
  --line: #e9e4dc;
  --bg: #ffffff;
  --ok: #0a7f3f;
  --warn-bg: #fff4d6;
  --warn-ink: #7a5200;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 14px rgba(0, 0, 0, .05);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --round: "M PLUS Rounded 1c", var(--font);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  word-break: auto-phrase;   /* 日本語を文節で改行（対応していないブラウザは通常の改行） */
  line-break: strict;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); }
a:hover { color: var(--red); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(230, 0, 18, .35); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.sp { display: none; }
.small { font-size: 13px; color: var(--muted); }
.nw { white-space: nowrap; }   /* 電話番号・番地などを途中で改行しない */
.center { text-align: center; }

/* 名店街の帯（ロゴは名店街logo_RGB.ai から書き出したSVG） */
.mall-bar { background: #fff; border-bottom: 1px solid var(--line); }
.mall-inner { display: flex; align-items: center; gap: 10px; height: 44px; }
.mall-inner img { height: 30px; width: auto; display: block; }
.mall-inner span { font-size: 12px; color: var(--muted); }
.mall-inner b { color: var(--ink); font-weight: 700; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 112px; height: auto; }
.brand-sub { font-family: var(--round); font-weight: 700; font-size: 13px; line-height: 1.3; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.brand-sub b { display: block; color: var(--ink); font-size: 14px; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px;
}
.cart-btn:hover { background: var(--red-dark); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.member-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.member-btn:hover { border-color: #cfc8bd; color: var(--ink); }
.member-btn svg { width: 18px; height: 18px; }
.cart-btn svg { width: 20px; height: 20px; }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: #fff; color: var(--red); font-size: 12px; font-weight: 800; line-height: 20px; text-align: center;
}
.test-banner { background: var(--warn-bg); color: var(--warn-ink); text-align: center; font-size: 13px; padding: 6px 16px; font-weight: 700; }

main.wrap { padding-top: 32px; padding-bottom: 80px; min-height: 60vh; }

/* お知らせ */
.notice { background: var(--cream); border: 1px solid #f1e3c4; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.notice-stop { background: var(--red-soft); border-color: #f5c2c5; color: var(--red-dark); font-weight: 700; }

/* ヒーロー */
.hero { border-radius: var(--radius); overflow: hidden; background: var(--red-soft); margin-bottom: 20px; }
.hero-img { width: 100%; aspect-ratio: 900 / 129; object-fit: cover; object-position: right center; }
.hero-text { padding: 20px 24px 22px; }
.hero h1 { font-family: var(--round); font-weight: 800; font-size: 22px; line-height: 1.45; margin: 0 0 6px; color: var(--red-dark); }
.hero p { margin: 0; font-size: 14px; color: #4a4a4a; }

.perks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.perks li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; text-align: center; }
.perks b { color: var(--red-dark); }

/* カテゴリ */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 商品一覧 */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
/* 商品一覧の写真枠：同じ幅のカードでは必ず同じ高さ（4:3）。写真は枠の中に絶対配置して、元画像の大きさ（正方形など）で枠が伸びないようにする。
   写真は枠に収めて中央に置く（縦横比そのまま・切り取らない）。読み込み前後で枠の高さは変わらない */
.card-img { position: relative; display: block; flex: none; background: #fff; aspect-ratio: 4 / 3; border-bottom: 1px solid #f3efe9; overflow: hidden; }
.card-img img { position: absolute; top: 8px; left: 8px; width: calc(100% - 16px); height: calc(100% - 16px); max-width: none; object-fit: contain; object-position: center; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; flex: 1; }
.card-name { font-size: 14px; font-weight: 700; line-height: 1.5; margin: 0; flex: 1; }
.card-name a { color: var(--ink); text-decoration: none; }
.card-name a:hover { color: var(--red); }
.price { font-family: var(--round); font-weight: 800; font-size: 20px; margin: 0; color: var(--ink); }
.price span { font-family: var(--font); font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 2px; }
.price-lg { font-size: 30px; }
.low { display: inline-block; margin-left: 8px; font-style: normal; font-family: var(--font); font-size: 11px; font-weight: 700; color: #b45309; background: #fdf3e2; border-radius: 999px; padding: 1px 8px; vertical-align: 3px; }
.loading, .empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 8px 18px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: #cfc8bd; color: var(--ink); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn:disabled, .btn.is-disabled { background: #eee; border-color: #eee; color: #999; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 16px; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; padding: 4px; }
.link-back { font-size: 14px; }

/* 数量 */
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.stepper button { width: 40px; border: 0; background: #faf8f5; font-size: 18px; cursor: pointer; }
.stepper button:hover { background: var(--red-soft); color: var(--red); }
.stepper input { width: 52px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-sm button { width: 32px; font-size: 16px; }
.stepper-sm input { width: 40px; font-size: 14px; }

/* 商品詳細 */
.crumb { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 40px; }
/* 商品の写真：公式サイトの商品ページと同じ（大きな1枚＋小さな写真で切り替え） */
.pd-gallery { display: grid; gap: 12px; align-content: start; }
.pd-main { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pd-thumbs button { padding: 0; border: 1px solid var(--line); background: #fff; border-radius: 10px; aspect-ratio: 1; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; outline-offset: 2px; }
.pd-thumbs button[aria-pressed="true"] { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.pd-cat { display: inline-flex; align-items: center; padding: 4px 14px; margin-bottom: 10px; border-radius: 999px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-decoration: none; }
.pd-cat:hover { background: var(--red-dark); color: #fff; }
.detail h1 { font-family: var(--round); font-weight: 800; font-size: 24px; line-height: 1.45; margin: 0 0 8px; }
.desc { white-space: normal; color: #3d3d3d; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0; }
.buy-row .btn { flex: 1; min-width: 180px; min-height: 48px; }
.qty-label { font-size: 13px; color: var(--muted); }
.soldout { display: inline-block; background: #eee; color: #666; font-weight: 700; padding: 6px 14px; border-radius: 8px; }
.detail-notes { font-size: 13px; color: var(--muted); padding-left: 1.2em; margin: 20px 0 0; }
.detail-notes li + li { margin-top: 4px; }

/* 商品ページ下部の紹介（文章だけ。写真は上の写真の切り替えに並ぶ） */
.sections { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); display: grid; gap: 28px; max-width: 760px; }
.sec h2 { font-family: var(--round); font-weight: 800; font-size: 18px; line-height: 1.5; margin: 0 0 8px; color: var(--red-dark); }
.sec p { margin: 0; color: #3d3d3d; }
/* ごあいさつ（全商品のページの最後） */
.greeting { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); max-width: 760px; }
.greeting h2 { font-family: var(--round); font-weight: 800; font-size: 18px; line-height: 1.5; margin: 0 0 8px; color: var(--red-dark); }
.greeting p { margin: 0 0 12px; color: #3d3d3d; }
.greeting img { width: 100%; max-width: 446px; height: auto; margin-top: 16px; border-radius: 10px; }

/* カート・手続き */
.page-title { font-family: var(--round); font-weight: 800; font-size: 24px; line-height: 1.45; margin: 0 0 20px; }
.page-narrow { max-width: 640px; margin: 0 auto; }
.lead { margin: -8px 0 20px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; background: #fcfbf9; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-title { font-size: 15px; margin: 0; }
.lines { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 76px; height: 76px; object-fit: contain; border: 1px solid #f0ebe4; border-radius: 10px; background: #fff; padding: 4px; }
.line-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.line-price { font-size: 13px; color: var(--muted); }
.line-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.line-sub { font-weight: 800; font-family: var(--round); white-space: nowrap; }
.line.is-soldout { opacity: .7; }
.tag { display: inline-block; margin-left: 8px; font-size: 11px; background: #eee; color: #555; border-radius: 6px; padding: 0 6px; }
.free-meter { font-size: 13px; }
.free-meter b { color: var(--red-dark); }
.bar { height: 8px; background: #efe9e1; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.bar span { display: block; height: 100%; background: var(--red); border-radius: 999px; }
.summary { margin: 0; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.summary dt { color: #444; }
.summary dd { margin: 0; text-align: right; }
.summary small { display: block; font-size: 11px; color: var(--muted); }
.summary .free { color: var(--ok); }
.sum-total { border-bottom: 0 !important; padding-top: 10px !important; }
.sum-total dt { font-weight: 700; color: var(--ink); }
.sum-total dd { font-family: var(--round); font-weight: 800; font-size: 24px; color: var(--red-dark); }
.mini-lines { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.mini-lines li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.mini-lines b { white-space: nowrap; }
.alert { background: var(--red-soft); border: 1px solid #f5c2c5; color: var(--red-dark); border-radius: 10px; padding: 12px 16px; font-size: 14px; margin: 0 0 16px; }

.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 20px; font-size: 12px; counter-reset: s; }
.steps li { flex: 1; text-align: center; padding: 6px 4px; background: #f5f2ee; color: var(--muted); border-radius: 8px; counter-increment: s; }
.steps li::before { content: counter(s) ". "; }
.steps li.on { background: var(--red); color: #fff; font-weight: 700; }

/* フォーム */
.form fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.form legend { font-weight: 800; font-size: 16px; margin-bottom: 12px; padding: 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.req, .opt { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 0 6px; margin-left: 6px; vertical-align: 1px; }
.req { background: var(--red); color: #fff; }
.opt { background: #eee; color: #666; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d9d2c7; border-radius: 10px; background: #fff; font-size: 16px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--red); background: #fffafa; }
.hint { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.err { font-size: 13px; color: var(--red-dark); margin: 4px 0 0; font-weight: 700; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.w-zip input { max-width: 200px; }
.w-pref select { max-width: 240px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; accent-color: var(--red); flex: none; }
.ship-choice { display: grid; gap: 10px; margin-bottom: 12px; }
.ship-choice .check { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.ship-choice .check:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.ship-note { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 10px 14px; font-size: 13px; margin: 0 0 12px; }
.agree { background: #fcfbf9; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.actions { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 16px; }
.actions .btn-primary { flex: 1; max-width: 360px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 確認画面 */
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; }
.box h2 { font-size: 16px; margin: 0 0 12px; }
.kv { margin: 0; }
.kv div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { font-weight: 400; color: #444; }
.tbl-lines th { font-size: 12px; color: var(--muted); }
.tbl-lines td:nth-child(n+2), .tbl-lines th:nth-child(n+2) { text-align: right; white-space: nowrap; }

/* 完了 */
.done { text-align: left; }
.order-no { background: var(--red-soft); border-radius: var(--radius); padding: 16px; text-align: center; margin: 12px 0 18px; font-size: 13px; color: var(--muted); }
.order-no b { display: block; font-family: var(--round); font-size: 26px; color: var(--red-dark); letter-spacing: .04em; }

/* ガイド */
.guide { margin-top: 56px; padding: 32px; background: #fcfbf9; border: 1px solid var(--line); border-radius: var(--radius); }
.guide h2 { font-family: var(--round); font-weight: 800; font-size: 20px; margin: 0 0 20px; }
.guide h3 { font-size: 15px; margin: 0 0 10px; color: var(--red-dark); }
.guide p { margin: 0 0 8px; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.guide .tbl { margin-bottom: 10px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.guide-grid > div > :last-child { margin-bottom: 0; }
.guide .tbl th { font-size: 13px; }
.guide .tbl td { text-align: right; white-space: nowrap; }

/* フッター */
.site-footer { border-top: 1px solid var(--line); background: #faf8f5; padding: 32px 0 40px; font-size: 13px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 16px; }
.foot-links a { color: var(--ink); }
.site-footer p { margin: 0 0 6px; }

/* トースト */
#toast {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; max-width: calc(100% - 32px); width: max-content;
  background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 14px; box-shadow: var(--shadow);
  transition: transform .25s ease, opacity .25s ease, visibility .25s; z-index: 50;
  opacity: 0; visibility: hidden;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
#toast span { opacity: .8; font-size: 13px; }
#toast a { color: #fff; font-weight: 700; }

/* 静的ページ（特商法・プライバシー） */
.doc { max-width: 760px; margin: 0 auto; }
.doc h1 { font-family: var(--round); font-weight: 800; font-size: 24px; line-height: 1.45; margin: 0 0 24px; }
.doc h2 { font-size: 17px; margin: 40px 0 12px; border-left: 4px solid var(--red); padding-left: 10px; }
.doc p, .doc li { line-height: 1.85; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 1.4em; }
.doc .tbl th, .doc .tbl td { padding: 12px 14px; }
.doc .tbl th { width: 30%; background: #faf8f5; font-weight: 700; }
.doc .tbl td p { margin: 0 0 8px; }
.doc .tbl td p:last-child { margin-bottom: 0; }
.doc .link-back { display: inline-block; margin-top: 32px; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .sp { display: inline; }
  .header-inner { height: 56px; }
  .brand img { width: 92px; }
  .brand-sub { font-size: 11px; padding-left: 8px; }
  .brand-sub b { font-size: 12px; }
  .cart-btn { padding: 8px 12px; }
  .cart-btn .cart-label { display: none; }
  .member-btn { flex-direction: column; gap: 0; padding: 2px 6px; border: 0; background: none; font-size: 10px; line-height: 1.2; }
  .member-btn svg { width: 22px; height: 22px; }
  .hero-img { aspect-ratio: 16 / 5; }
  .hero h1 { font-size: 18px; }
  .perks { grid-template-columns: 1fr; gap: 6px; }
  .perks li { text-align: left; padding: 8px 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px 10px 12px; }
  .card-name { font-size: 13px; }
  .price { font-size: 18px; }
  .card .btn { min-height: 38px; font-size: 13px; padding: 6px 8px; }
  .detail { grid-template-columns: minmax(0, 1fr); gap: 30px; }   /* 商品画像と商品名の間＝30px（どの商品も同じ） */
  .detail h1 { font-size: 20px; }
  .sections { gap: 22px; margin-top: 36px; padding-top: 28px; }
  .greeting { margin-top: 36px; padding-top: 28px; }
  .pd-thumbs { gap: 8px; }
  .mall-inner { height: 38px; }
  .mall-inner img { height: 26px; }
  .mall-inner span { font-size: 11px; }
  .price-lg { font-size: 26px; }
  .row2 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kv div { grid-template-columns: 1fr; gap: 2px; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps { font-size: 10px; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .btn-primary { max-width: none; }
  .line { grid-template-columns: 64px minmax(0, 1fr); }
  .line img { width: 64px; height: 64px; }
  .line-sub { grid-column: 2; }
  .tbl-lines th:nth-child(2), .tbl-lines td:nth-child(2) { display: none; }
}

/* 会員（ログイン・会員登録・マイページ） */
.login-hint, .member-note { background: var(--cream); border: 1px solid #f1e3c4; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 0 0 16px; }
.member-box { background: var(--cream); border: 1px solid #f1e3c4; border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; }
.member-box p { margin: 6px 0 10px; font-size: 14px; }
.auth .box { margin-top: 12px; }
.auth .field input { width: 100%; }
.auth-links { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 6px; }
.auth-links .small { margin-left: 6px; }
.member-points { padding-left: 1.2em; color: var(--muted); }
.w-code { max-width: 10em; letter-spacing: .3em; font-size: 20px; }
.mypage .box h2 { font-size: 17px; }
.hist { border-top: 1px solid var(--line); padding: 12px 0; }
.hist:first-of-type { border-top: 0; padding-top: 0; }
.hist header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.hist p { margin: 4px 0 0; }
.hist ul { list-style: none; padding: 0; margin: 8px 0; font-size: 14px; }
.hist li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.hist footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hist-status { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 10px; background: #f1f1f1; color: #555; }
.hist-status.st-new, .hist-status.st-preparing { background: var(--red-soft); color: var(--red-dark); }
.hist-status.st-shipped { background: #e8f6ed; color: var(--ok); }
.mypage-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* 上部バナー（年末年始・臨時休業・発送停止など。管理画面の「お知らせ」で期間を指定） */
.banner { padding: 10px 0; font-size: 14px; line-height: 1.6; text-align: center; border-bottom: 1px solid; }
.banner .wrap { word-break: auto-phrase; }
.banner a { font-weight: 700; }
.banner-info { background: var(--cream); border-color: #f1e3c4; color: #5b4300; }
.banner-alert { background: var(--red-soft); border-color: #f5c2c5; color: var(--red-dark); font-weight: 700; }

/* Shop News */
.news { margin: 56px 0 0; }
.news-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.news-en { font-family: var(--round); font-weight: 800; font-size: 22px; letter-spacing: .02em; }
.news-jp { font-size: 13px; color: var(--muted); font-weight: 700; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 12px 4px; color: var(--ink); text-decoration: none; }
.news-list a:hover span { color: var(--red); text-decoration: underline; }
.news-list time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.news-list .pin, .news-item .pin { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--red); border-radius: 4px; padding: 1px 6px; margin-right: 6px; vertical-align: 2px; }
.news-more { text-align: right; margin: 8px 0 0; font-size: 14px; }
.news-item time { color: var(--muted); font-size: 14px; }
.news-item .page-title { margin-top: 2px; }
.news-body { line-height: 1.9; margin-bottom: 20px; overflow-wrap: anywhere; }

/* 発送は日本国内のみ（4言語） */
.ship-only-jp { list-style: none; margin: 12px 0 0; padding: 10px 14px; border: 1px dashed #d9cdb8; border-radius: 10px; background: #fffdf8; font-size: 13px; line-height: 1.7; color: #4a4a4a; }
.ship-only-jp li { overflow-wrap: anywhere; }
.ship-only-jp :lang(ko) { font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif; }
.ship-only-jp :lang(zh-Hans) { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif; }

/* スマートフォン：お知らせは日付の下にタイトル（後ろに置いて、上の共通の指定より優先させる） */
@media (max-width: 640px) {
  .news-list a { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 2px; }
  .news-list time { font-size: 12px; }
  .news-en { font-size: 19px; }
  .banner { font-size: 13px; padding: 8px 0; }
}

/* ===== 余白の見直し（2026-10-23）：スマートフォン ===== */
@media (max-width: 900px) {
  .two-col { gap: 28px; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  main.wrap { padding-top: 24px; padding-bottom: 64px; }
  .hero { margin-bottom: 16px; }
  .hero-text { padding: 16px 18px 18px; }
  .perks { margin-bottom: 24px; }
  .chips { margin-bottom: 16px; }
  .page-title { font-size: 22px; margin-bottom: 16px; }
  .side { padding: 18px 16px; }
  .box { padding: 18px 16px; margin-bottom: 16px; }
  .guide { margin-top: 48px; padding: 24px 18px; }
  .guide h2 { margin-bottom: 16px; }
  .news { margin-top: 48px; }
  .site-footer { padding: 28px 0 36px; }
  .doc h1 { font-size: 22px; margin-bottom: 20px; }
  .doc h2 { margin-top: 32px; }
  /* 表は見出しと内容を縦に並べて、内容の幅を広く取る */
  .doc .tbl, .doc .tbl tbody, .doc .tbl tr, .doc .tbl th, .doc .tbl td { display: block; width: 100%; }
  .doc .tbl tr { border-bottom: 1px solid var(--line); }
  .doc .tbl th, .doc .tbl td { border-bottom: 0; }
  .doc .tbl th { padding: 10px 12px 6px; }
  .doc .tbl td { padding: 4px 12px 12px; }
}

/* メールアドレスの代わりの封筒アイコン（押すと宛先入りのメールを作る） */
.mail-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  color: var(--red-dark); text-decoration: none; vertical-align: middle;
}
.mail-icon:hover { background: var(--red-soft); border-color: #f5c2c5; color: var(--red); }
.mail-icon svg { width: 20px; height: 20px; }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.contact-line .mail-icon { margin-left: 4px; }
.contact-list { list-style: none; padding: 0 !important; margin: 0 0 12px; display: grid; gap: 12px; }
.contact-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fcfbf9; }
.contact-list .contact-name { display: block; font-weight: 700; }
.contact-list .contact-tel { display: block; margin-top: 2px; font-size: 14px; color: #444; }

/* カートの有効期限（残り時間） */
.cart-timer {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  margin: 0 0 8px; padding: 12px 16px; border-radius: 10px; background: var(--cream); border: 1px solid #f1e3c4; color: #5b4300; font-size: 14px;
}
.cart-timer b { font-family: var(--round); font-size: 18px; font-variant-numeric: tabular-nums; color: var(--ink); }
.cart-timer small { font-size: 12px; color: var(--muted); }
.cart-timer.is-soon { background: var(--red-soft); border-color: #f5c2c5; color: var(--red-dark); }
.cart-timer.is-soon b { color: var(--red-dark); }
.cart-timer-note { margin: 0 0 20px; }
.cart-expired p { margin: 0 0 8px; }
.cart-expired ul { margin: 0 0 12px; padding-left: 1.2em; color: var(--ink); }
.cart-expired-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 !important; }
.side .alert { margin: 0; }

/* スマートフォンのヘッダー：ロゴ・「オンラインショップ」・ログイン・カートが重ならないように */
@media (max-width: 640px) {
  .header-inner { gap: 8px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-sub { white-space: nowrap; }
  .header-actions { gap: 4px; flex: none; }
  .member-btn { padding: 2px 4px; }
  .cart-btn { padding: 8px 11px; }
}
@media (max-width: 400px) {
  .brand img { width: 80px; }
  .brand-sub b { font-size: 11px; }
}
@media (max-width: 359px) {
  .brand-sub { display: none; }   /* 幅の狭い端末はロゴだけ（上の名店街の帯に「出店ショップ」が出ている） */
}
.guide { scroll-margin-top: 84px; }   /* 「ご利用ガイド」へ移動したとき、上の固定ヘッダーに見出しが隠れないように */

/* ===== ショップ内検索（2026-11-18） ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.search { margin: 0 0 16px; }
.search-box {
  display: flex; align-items: center; gap: 4px; max-width: 620px; height: 50px; padding: 0 5px 0 14px;
  background: #fff; border: 2px solid #ddd5c9; border-radius: 999px;
}
.search-box:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(230, 0, 18, .12); }
.search-icon { flex: none; display: flex; color: #8a837a; }
.search-icon svg { width: 20px; height: 20px; }
.search-box input {
  flex: 1; min-width: 0; height: 100%; padding: 0 4px; border: 0; outline: 0; background: transparent;
  font-size: 16px;   /* 16px 未満だと iPhone で入力時に画面が拡大される */
  -webkit-appearance: none; appearance: none;
}
.search-box input:focus-visible { outline: none; }
.search-box input::placeholder { color: #9a948b; }
.search-box input::-webkit-search-cancel-button,
.search-box input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-clear { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #f3efe9; color: #555; cursor: pointer; }
.search-clear[hidden] { display: none; }
.search-clear:hover { background: #ebe5dc; }
.search-clear svg { width: 15px; height: 15px; }
.search-submit {
  flex: none; height: 38px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
}
.search-submit:hover { background: var(--red-dark); }
.search-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 0 0 12px; font-size: 14px; }
.search-summary p { margin: 0; overflow-wrap: anywhere; }
.search-summary .search-count { font-family: var(--round); font-size: 18px; color: var(--red-dark); }
.chip-n { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.chip.on .chip-n { color: rgba(255, 255, 255, .8); }
.search-empty { text-align: center; padding: 28px 0 12px; word-break: keep-all; overflow-wrap: anywhere; }
.search-empty p { margin: 0 0 10px; }
.search-empty .btn { margin-top: 6px; }
@media (max-width: 640px) {
  .search { margin-bottom: 14px; }
  .search-box { height: 48px; padding-left: 12px; }
  .search-submit { padding: 0 14px; }
}
