/* 山本商店オンラインストア（ご提案デモ）— 共通スタイル
   小江戸・藍染めの紺 × 生成り × 朱（CTA専用） */
:root {
  --ai: #1b2433;             /* 藍墨（ヘッダー・フッター） */
  --ai-deep: #131a26;
  --ai-text: #3c5170;        /* 飾り英字・見出し添え */
  --kinari: #f7f3ea;
  --kinari-2: #eee7d8;
  --shu: #a8432f;            /* 購入CTA専用（朱） */
  --text: #38322b;
  --text-muted: #85796a;
  --border: #dcd2bd;
  --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px; --s12: 48px; --s16: 64px; --s24: 96px;
  --maxw: 1080px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 16px; line-height: 2; letter-spacing: .05em;
  color: var(--text); background: var(--kinari);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.sans { font-family: "Noto Sans JP", sans-serif; }

/* お知らせバー */
.notice-bar { background: var(--ai); color: var(--kinari); text-align: center; font-size: .8rem; padding: 8px var(--s4); font-family: "Noto Sans JP", sans-serif; }
.notice-bar b { color: #e3b587; }

/* header */
.header { position: sticky; top: 0; z-index: 100; background: rgba(247,243,234,.95); backdrop-filter: blur(4px); border-bottom: 1px solid var(--border); }
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: var(--s4); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.brand { font-weight: 600; font-size: 1.4rem; text-decoration: none; color: var(--ai); letter-spacing: .26em; }
.brand small { display: block; font-size: .58rem; font-weight: 400; color: var(--text-muted); letter-spacing: .3em; font-family: "Noto Sans JP", sans-serif; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: none; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; }
.nav-toggle span { height: 1px; background: var(--ai); }
.gnav { display: none; }
.gnav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--kinari); border-bottom: 1px solid var(--border); padding: var(--s4); }
.gnav ul { list-style: none; display: grid; gap: 2px; }
.gnav a { text-decoration: none; font-size: .92rem; display: block; padding: var(--s3) var(--s4); letter-spacing: .14em; }
.gnav a:hover, .gnav a[aria-current="page"] { color: var(--shu); }
.cart-link { position: relative; text-decoration: none; font-size: 1.2rem; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.cart-link .count { position: absolute; top: 2px; right: 0; background: var(--shu); color: #fff; font-size: .62rem; font-weight: 700; border-radius: 999px; min-width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; font-family: "Noto Sans JP", sans-serif; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .gnav { display: block; position: static; border: none; padding: 0; }
  .gnav ul { display: flex; gap: var(--s6); }
  .gnav a { padding: var(--s2) 0; }
}

/* page hero */
.page-hero { padding: var(--s16) var(--s4) var(--s8); }
.page-hero-inner { max-width: var(--maxw); margin: 0 auto; }
.page-hero .en { font-size: .72rem; letter-spacing: .4em; color: var(--ai-text); text-transform: uppercase; font-family: "Noto Sans JP", sans-serif; }
.page-hero h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 600; margin-top: var(--s3); letter-spacing: .2em; }
.breadcrumb { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s4) var(--s3); font-size: .76rem; color: var(--text-muted); font-family: "Noto Sans JP", sans-serif; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); }
.breadcrumb li + li::before { content: "／"; margin-right: var(--s2); }
.breadcrumb a { color: var(--text-muted); }

/* sections */
section { padding: var(--s24) var(--s4); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.sec-head { margin-bottom: var(--s12); }
.sec-head .en { display: block; font-size: .72rem; letter-spacing: .4em; color: var(--ai-text); text-transform: uppercase; font-family: "Noto Sans JP", sans-serif; }
.sec-head h2 { font-size: clamp(1.3rem, 3vw, 1.65rem); font-weight: 600; letter-spacing: .2em; margin-top: var(--s3); }
.sec-lead { color: var(--text-muted); max-width: 38em; font-size: .95rem; }
.alt-bg { background: var(--kinari-2); }

/* buttons */
.btn-buy { background: var(--shu); color: #fff; text-decoration: none; padding: var(--s4) var(--s12); min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer; font-size: .98rem; font-family: "Shippori Mincho", serif; letter-spacing: .2em; }
.btn-buy:hover { opacity: .88; }
.btn-outline { border: 1px solid var(--ai); color: var(--ai); text-decoration: none; padding: var(--s4) var(--s12); min-height: 50px; display: inline-flex; align-items: center; justify-content: center; letter-spacing: .2em; font-size: .92rem; background: none; cursor: pointer; font-family: "Shippori Mincho", serif; }
.btn-outline:hover { background: var(--ai); color: var(--kinari); }

/* 商品グリッド */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6); margin-top: var(--s8); }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s8); } }
.product-card { text-decoration: none; display: flex; flex-direction: column; gap: var(--s3); }
.product-card .img-wrap { overflow: hidden; position: relative; }
.product-card img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; transition: transform .5s; }
.product-card:hover img { transform: scale(1.04); }
.product-card h3 { font-size: .95rem; font-weight: 600; letter-spacing: .1em; line-height: 1.7; }
.product-card .price { font-size: .9rem; color: var(--text-muted); font-family: "Noto Sans JP", sans-serif; }
.product-card .badge { font-size: .68rem; color: var(--ai-text); letter-spacing: .2em; font-family: "Noto Sans JP", sans-serif; }
.badge-limited { color: var(--shu) !important; }
.tag-sake { position: absolute; top: var(--s2); left: var(--s2); background: rgba(27,36,51,.85); color: var(--kinari); font-size: .64rem; letter-spacing: .12em; padding: 2px 8px; font-family: "Noto Sans JP", sans-serif; }

/* 絞り込み */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s8); font-family: "Noto Sans JP", sans-serif; }
.filter-bar button { border: 1px solid var(--border); background: #fff; color: var(--text); font-size: .82rem; letter-spacing: .1em; padding: 10px 18px; min-height: 44px; cursor: pointer; font-family: inherit; }
.filter-bar button[aria-pressed="true"] { background: var(--ai); border-color: var(--ai); color: var(--kinari); }

/* tables */
.table-wrap { overflow-x: auto; margin-top: var(--s6); border: 1px solid var(--border); background: #fff; }
.data-table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.data-table th { text-align: left; padding: var(--s4); width: 10em; color: var(--text-muted); font-weight: 400; vertical-align: top; border-bottom: 1px solid var(--border); white-space: nowrap; font-family: "Noto Sans JP", sans-serif; font-size: .84rem; }
.data-table td { padding: var(--s4); border-bottom: 1px solid var(--border); }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: none; }

/* CTA band */
.cta-band { background: var(--ai-deep); color: var(--kinari); text-align: center; }
.cta-band .en { color: #e3b587; font-size: .72rem; letter-spacing: .4em; font-family: "Noto Sans JP", sans-serif; text-transform: uppercase; }
.cta-band h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 600; letter-spacing: .22em; margin-top: var(--s3); }
.cta-band p { margin-top: var(--s4); opacity: .85; font-size: .92rem; }
.cta-band .btn-buy { margin-top: var(--s8); }

/* フォーム */
.form-grid { display: grid; gap: var(--s6); margin-top: var(--s8); max-width: 640px; font-family: "Noto Sans JP", sans-serif; }
.form-grid label { display: grid; gap: var(--s2); font-size: .88rem; letter-spacing: .08em; }
.form-grid .req { color: var(--shu); font-size: .74rem; margin-left: 6px; }
.form-grid input, .form-grid select, .form-grid textarea {
  border: 1px solid var(--border); background: #fff; padding: 12px 14px; font-size: 1rem;
  font-family: inherit; min-height: 48px; color: var(--text);
}
.form-grid textarea { min-height: 140px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 2px solid var(--ai-text); outline-offset: 1px; }

/* footer */
footer { background: var(--ai-deep); color: #a9a291; padding: var(--s12) var(--s4) var(--s8); font-size: .85rem; font-family: "Noto Sans JP", sans-serif; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: var(--s8); }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-brand b { color: var(--kinari); font-size: 1rem; letter-spacing: .2em; font-family: "Shippori Mincho", serif; }
.footer-brand p { margin-top: var(--s3); font-size: .8rem; line-height: 1.9; }
.footer-nav h4 { color: var(--kinari); font-size: .8rem; margin-bottom: var(--s3); letter-spacing: .16em; }
.footer-nav ul { list-style: none; display: grid; gap: var(--s2); }
.footer-nav a { color: #a9a291; text-decoration: none; padding: var(--s2) 0; display: inline-block; font-size: .82rem; }
.footer-nav a:hover { color: var(--kinari); }
.footer-bottom { max-width: var(--maxw); margin: var(--s8) auto 0; border-top: 1px solid #333d4d; padding-top: var(--s6); display: grid; gap: var(--s2); }
.sample-note { font-size: .72rem; color: #7d7666; }
