/* ベーカリー むぎのわ — オンラインストア共通スタイル */
:root {
  --brown: #5a3e2b;
  --brown-dark: #3f2c1e;
  --cream: #fdf9f2;
  --accent: #c96f2f;          /* 購入CTA専用 */
  --text: #3c332b;
  --text-muted: #857868;
  --bg: #ffffff;
  --surface: #f7f0e4;
  --border: #eadfce;
  --ok: #4a7c46;
  --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px; --s12: 48px; --s16: 64px; --s20: 80px;
  --maxw: 1120px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px; line-height: 1.9; letter-spacing: .03em; color: var(--text); background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* お知らせバー（送料無料ライン） */
.notice-bar { background: var(--brown); color: #fff; text-align: center; font-size: .82rem; padding: 8px var(--s4); }
.notice-bar b { color: #ffd9a8; }

/* header */
.header { position: sticky; top: 0; z-index: 100; background: rgba(253,249,242,.97); border-bottom: 1px solid var(--border); }
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: var(--s3) var(--s4); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.brand { font-weight: 900; font-size: 1.2rem; text-decoration: none; color: var(--brown); letter-spacing: .08em; }
.brand small { display: block; font-size: .6rem; font-weight: 500; color: var(--text-muted); letter-spacing: .22em; }
.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: 8px; cursor: pointer; }
.nav-toggle span { height: 2px; background: var(--brown); border-radius: 2px; }
.gnav { display: none; }
.gnav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); 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: .95rem; font-weight: 500; display: block; padding: var(--s3) var(--s4); border-radius: 8px; }
.gnav a:hover, .gnav a[aria-current="page"] { background: var(--surface); color: var(--brown); }
.cart-link { position: relative; text-decoration: none; font-size: 1.3rem; 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(--accent); color: #fff; font-size: .65rem; font-weight: 700; border-radius: 999px; min-width: 17px; height: 17px; display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .gnav { display: block; position: static; border: none; padding: 0; }
  .gnav ul { display: flex; gap: var(--s2); }
  .gnav a { padding: var(--s2) var(--s3); }
}

/* page hero */
.page-hero { background: var(--surface); padding: var(--s12) var(--s4); border-bottom: 1px solid var(--border); }
.page-hero-inner { max-width: var(--maxw); margin: 0 auto; }
.page-hero .en { font-size: .78rem; letter-spacing: .26em; color: var(--accent); text-transform: uppercase; font-weight: 700; }
.page-hero h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 900; margin-top: var(--s2); }
.breadcrumb { max-width: var(--maxw); margin: 0 auto; padding: var(--s3) var(--s4); font-size: .8rem; color: var(--text-muted); }
.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(--s16) var(--s4); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.sec-label { color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 900; line-height: 1.5; margin-top: var(--s2); }
.sec-lead { margin-top: var(--s4); color: var(--text-muted); max-width: 40em; }
.alt-bg { background: var(--bg); }

/* buttons */
.btn-buy { background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: var(--s4) var(--s8); border-radius: 999px; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer; font-size: 1.02rem; font-family: inherit; }
.btn-buy:hover { opacity: .9; }
.btn-outline { border: 2px solid var(--brown); color: var(--brown); text-decoration: none; font-weight: 700; padding: calc(var(--s4) - 2px) var(--s8); border-radius: 999px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.btn-outline:hover { background: var(--brown); color: #fff; }

/* 商品グリッド：モバイル2カラム */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); margin-top: var(--s8); }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: var(--s6); } }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: box-shadow .2s; }
.product-card:hover { box-shadow: 0 6px 18px rgb(90 62 43 / .14); }
.product-card img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.product-card .body { padding: var(--s4); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card h3 { font-size: .92rem; font-weight: 700; line-height: 1.5; }
.product-card .price { font-size: 1.05rem; font-weight: 900; color: var(--brown); margin-top: auto; }
.product-card .price small { font-size: .7em; font-weight: 500; color: var(--text-muted); }
.product-card .badge { display: inline-block; align-self: flex-start; background: var(--surface); color: var(--accent); font-size: .7rem; font-weight: 700; border-radius: 4px; padding: 1px 8px; }
.product-card .soldout { color: #b3261e; font-size: .8rem; font-weight: 700; }
.product-card.is-soldout img { opacity: .55; }

/* tables */
.table-wrap { overflow-x: auto; margin-top: var(--s6); border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.data-table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.data-table th { text-align: left; padding: var(--s4); width: 10em; color: var(--text-muted); font-weight: 500; vertical-align: top; border-bottom: 1px solid var(--border); white-space: nowrap; }
.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(--brown-dark); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: var(--s3); opacity: .85; }
.cta-band .btn-buy { margin-top: var(--s6); }

/* footer */
footer { background: var(--brown-dark); color: #d9cbb8; padding: var(--s12) var(--s4) var(--s8); font-size: .88rem; }
.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: #fff; font-size: 1.05rem; }
.footer-brand p { margin-top: var(--s3); font-size: .82rem; }
.footer-nav h4 { color: #fff; font-size: .85rem; margin-bottom: var(--s3); }
.footer-nav ul { list-style: none; display: grid; gap: var(--s2); }
.footer-nav a { color: #d9cbb8; text-decoration: none; padding: var(--s2) 0; display: inline-block; font-size: .85rem; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { max-width: var(--maxw); margin: var(--s8) auto 0; border-top: 1px solid #5a4634; padding-top: var(--s6); display: grid; gap: var(--s2); }
.sample-note { font-size: .74rem; color: #a89579; }
