:root {
  --green-900: #1f4a1b;
  --green-700: #2a5a24;
  --green-500: #3f7d2c;
  --cream: #fbf8ef;
  --paper: #fffdf8;
  --line: #e4dfd0;
  --ink: #2a2b22;
  --muted: #65665a;
  --red: #a93226;
  --amber: #8a5a00;
  --serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Yu Gothic", "YuGothic", "Hiragino Sans", "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: var(--green-700); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.4; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #d39b1f; outline-offset: 2px; }
main:focus { outline: none; }
small { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: #fff; padding: 8px 12px; z-index: 30; }
.skip:focus { top: 8px; }

.band { background: var(--green-700); color: #fff; text-align: center; font-family: var(--serif); letter-spacing: .12em; padding: 6px 12px; font-size: 14px; }
.demo-note { background: #f4eccf; color: #5a4a12; text-align: center; font-size: 12.5px; padding: 3px 12px; }

/* ヘッダー */
#header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-in { max-width: 1240px; margin: auto; padding: 10px 24px; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo-mark { width: 46px; height: 36px; }
.logo span { display: flex; flex-direction: column; line-height: 1.15; }
.logo b { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .06em; }
.logo i { font-style: normal; font-size: 10.5px; letter-spacing: .22em; text-align: center; }
#header nav { display: flex; gap: 40px; margin: 0 auto; font-family: var(--serif); letter-spacing: .08em; }
#header nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
#header nav a:hover, #header nav a[aria-current] { border-color: var(--green-500); }
.tools { display: flex; gap: 8px; border-left: 1px solid var(--line); padding-left: 16px; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--ink); border-radius: 8px; }
.icon-btn:hover { background: #f1eddf; }
.icon-btn svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.icon-btn em { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; border-radius: 10px; background: var(--green-700); color: #fff; font-size: 11.5px; font-style: normal; display: grid; place-items: center; padding: 0 4px; }
.searchbar { max-width: 640px; margin: 0 auto; padding: 0 24px 12px; display: flex; gap: 8px; }
.searchbar[hidden] { display: none; }
.searchbar input { flex: 1; min-width: 0; }

/* ボタン */
.btn-primary, .btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 26px; border-radius: 10px; text-decoration: none; cursor: pointer; font-family: var(--serif); letter-spacing: .06em; }
.btn-primary { background: linear-gradient(180deg, #2f6628, var(--green-900)); color: #fff; border: 0; }
.btn-primary:hover { background: var(--green-900); }
.btn-primary svg, .btn-cart svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn-primary[disabled], .btn-primary.disabled { background: #a8a99b; cursor: not-allowed; }
.btn-outline { background: #fff; color: var(--green-900); border: 1px solid var(--green-700); }
.btn-outline:hover { background: #f1f5ea; }
.wide { width: 100%; }
.link { background: none; border: 0; padding: 4px; color: var(--green-700); text-decoration: underline; cursor: pointer; }

/* ヒーロー */
.hero { position: relative; min-height: 350px; display: flex; align-items: center; overflow: hidden; background: var(--cream); }
.hero img { position: absolute; right: 0; top: 0; height: 100%; width: 72%; object-fit: cover; object-position: left center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--cream) 28%, rgba(251, 248, 239, .8) 36%, rgba(251, 248, 239, 0) 46%); }
.hero-text { position: relative; z-index: 1; padding: 32px 24px 32px max(24px, 6vw); }
.hero h1 { font-size: clamp(32px, 4.2vw, 52px); margin: 0 0 14px; color: var(--green-900); letter-spacing: .06em; }
.hero p { font-family: var(--serif); font-size: 18px; margin: 0 0 22px; letter-spacing: .06em; }

.features { list-style: none; margin: 0; padding: 18px 16px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 0; background: var(--paper); }
.features li { display: flex; align-items: center; gap: 14px; padding: 2px 44px; font-family: var(--serif); letter-spacing: .08em; font-size: 16px; }
.features li + li { border-left: 1px solid var(--line); }
.features svg { width: 42px; height: 42px; fill: none; stroke: var(--green-700); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* セクション */
.section { max-width: 1240px; margin: auto; padding: 32px 24px 8px; }
.page { padding-bottom: 48px; min-height: 50vh; }
.narrow { max-width: 680px; }
.title { display: flex; align-items: center; justify-content: center; gap: 28px; font-size: 28px; margin: 0 0 22px; letter-spacing: .1em; text-align: center; }
.title::before, .title::after { content: ""; width: 64px; height: 1px; background: #9a9b8a; flex: none; }
.sub { font-size: 18px; margin: 22px 0 10px; }
.center { text-align: center; }
.fine { font-size: 12.5px; color: var(--muted); text-align: right; padding: 6px 24px; margin: 0 auto; max-width: 1240px; }
.fine.left { text-align: left; padding: 8px 0 0; }
.hint { color: var(--muted); font-size: 13.5px; }
.empty { text-align: center; color: var(--muted); padding: 32px 0; }
.error { color: var(--red); font-size: 13.5px; margin: 4px 0 0; }
.error:empty { display: none; }
.few { color: var(--red); font-weight: 600; }

/* 商品カード */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 4px rgba(60, 50, 20, .06); }
.card-img { position: relative; display: block; aspect-ratio: 2.1 / 1; background: #efe9d8; overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sold { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(30, 30, 20, .5); color: #fff; font-family: var(--serif); font-size: 20px; letter-spacing: .2em; }
.card-body { padding: 10px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 4px 0 0; font-size: 18px; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.lead { font-size: 13px; color: var(--muted); margin: 2px 0 4px; }
.meta { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.price { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0; }
.price small { font-size: 11px; margin-left: 5px; font-family: var(--sans); font-weight: 400; }
.price.big { font-size: 32px; margin: 8px 0 14px; }
.btn-cart { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 12px; border: 0; border-radius: 20px; background: var(--green-900); color: #fff; font-size: 13px; cursor: pointer; }
.btn-cart:hover { background: var(--green-700); }
.btn-cart[disabled] { background: #a8a99b; cursor: not-allowed; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; min-height: 22px; }
.badge { font-size: 11.5px; padding: 1px 8px; border-radius: 3px; border: 1px solid; background: #fff; }
.badge.org { color: var(--green-700); }
.badge.spot { color: var(--amber); }
.badge.b { color: var(--red); }
.badge.set { color: var(--green-900); background: #eef4e4; }

/* バナー */
.banners { max-width: 1240px; margin: auto; padding: 32px 24px 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.banner { display: flex; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; min-height: 150px; }
.banner:hover { box-shadow: 0 2px 10px rgba(60, 50, 20, .12); }
.banner img { width: 48%; object-fit: cover; }
.banner div { padding: 14px 18px; }
.banner h2 { font-size: 20px; margin: 0 0 6px; }
.banner p { font-size: 13.5px; margin: 0; }

/* タブ・詳細 */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.tabs a { padding: 8px 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; text-decoration: none; color: var(--ink); font-size: 14px; }
.tabs a.on { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.crumb { font-size: 13px; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.detail-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; background: #efe9d8; }
.detail h1 { font-size: 28px; margin: 6px 0; }
.notice { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; margin: 0 0 14px; font-size: 14px; }
.notice p { margin: 2px 0 0; }
.set-list { margin: 4px 0 0; padding-left: 18px; }
.buy { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.spec { width: 100%; margin-top: 28px; border-collapse: collapse; background: #fff; font-size: 14px; }
.spec th, .spec td { border: 1px solid var(--line); padding: 9px 14px; text-align: left; vertical-align: top; }
.spec th { width: 150px; background: #f5f1e4; font-weight: 500; }

/* カート */
.steps { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 24px; font-size: 13px; color: var(--muted); }
.steps li { padding: 3px 12px; border-radius: 14px; }
.steps li + li::before { content: "›"; margin-right: 12px; color: #aaa; }
.steps li.on { background: #eef4e4; color: var(--green-900); font-weight: 600; }
.two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 28px; align-items: start; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-list li { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.cart-list img { width: 92px; height: 62px; object-fit: cover; border-radius: 4px; background: #efe9d8; }
.cart-main { flex: 1; min-width: 150px; display: flex; flex-direction: column; }
.cart-main a { color: inherit; text-decoration: none; }
.cart-main small { font-size: 12px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; }
.stepper button { width: 40px; height: 40px; background: #f5f1e4; border: 0; cursor: pointer; font-size: 17px; }
.stepper output { min-width: 34px; text-align: center; }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; position: sticky; top: 88px; }
.summary h2 { font-size: 17px; margin: 12px 0 8px; }
.summary h2:first-child { margin-top: 0; }
.ship { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; font-size: 14px; }
.ship-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tag { font-size: 12px; padding: 0 8px; border-radius: 3px; background: #eef4e4; color: var(--green-900); white-space: nowrap; }
.tag.st-取消 { background: #f4dfdb; color: var(--red); }
.tag.st-発送済 { background: var(--green-700); color: #fff; }
.tag.st-準備中 { background: #f4eccf; color: #5a4a12; }
.ship-items { list-style: none; margin: 6px 0; padding: 0; }
.ship-items li { display: flex; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); padding: 4px 0; }
.ship-items small { margin-left: 8px; font-size: 12px; }
.ship-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 0; font-size: 13px; }
.totals { margin: 12px 0; }
.totals div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.totals dt, .totals dd { margin: 0; }
.totals .sum { border-top: 1px solid var(--ink); margin-top: 6px; padding-top: 8px; font-weight: 600; }
.totals .sum dd { font-family: var(--serif); font-size: 24px; }
.totals .sum small { font-size: 11.5px; margin-left: 6px; font-weight: 400; }
.totals .tax { font-size: 12px; color: var(--muted); }
.pay-method { font-size: 13.5px; }

/* フォーム */
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 500; }
.field.inline { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; }
.field.inline label { margin: 0; font-size: 13px; }
.field small { display: block; font-size: 12px; margin-top: 2px; }
.req { font-size: 11px; color: var(--red); margin-left: 8px; }
input, select { background: #fff; border: 1px solid #b9b5a4; border-radius: 6px; padding: 10px 12px; min-height: 44px; }
.field input, .field select { width: 100%; }
.field.inline select { width: auto; }
input[aria-invalid="true"] { border-color: var(--red); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }

/* 決済・結果 */
.pay-box { background: #fff; border: 2px dashed #b9a85a; border-radius: 10px; padding: 24px; }
.pay-brand { text-align: center; font-weight: 700; letter-spacing: .1em; margin: 0 0 6px; }
.pay-amount { text-align: center; font-family: var(--serif); font-size: 36px; margin: 10px 0 0; }
.pay-box .fine { text-align: center; padding: 4px 0 0; }
.pay-actions { display: grid; gap: 10px; margin-top: 16px; }
.spinner { width: 42px; height: 42px; margin: 30px auto 10px; border-radius: 50%; border: 4px solid #d8dfc8; border-top-color: var(--green-700); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.result { text-align: center; border-radius: 8px; padding: 18px; margin-bottom: 20px; }
.result h1 { margin: 0 0 4px; font-size: 24px; }
.result p { margin: 4px 0; }
.result.ok { background: #eef4e4; }
.result.ng { background: #f8e7e3; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; }
.box p { margin: 2px 0; }
.order-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; margin-bottom: 8px; }
.order-head small, .order-head strong { display: block; }
.track { font-size: 13px; margin: 4px 0 0; }
.demo-ops { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.demo-ops small { width: 100%; font-size: 11.5px; }
.demo-ops .btn-outline { min-height: 40px; padding: 6px 14px; font-size: 13px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 3px 0; }
.plain.small { font-size: 12.5px; color: var(--muted); }
.order-list { list-style: none; padding: 0; margin: 0; }
.order-list a { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 10px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; color: inherit; text-decoration: none; }
.order-list a:hover { border-color: var(--green-500); }
.news { list-style: none; padding: 0; }
.news li { display: flex; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news time { color: var(--muted); flex: none; }
.prose .wide-img { width: 100%; border-radius: 8px; margin-bottom: 16px; }

/* フッター */
#footer { margin-top: 40px; background: var(--green-900); color: #eef2e4; }
.footer-in { max-width: 1240px; margin: auto; padding: 22px 24px; font-size: 13px; }
.footer-in nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-in a, .footer-in .link { color: #eef2e4; }
.footer-demo { margin-top: 10px; }
.footer-in p { margin: 10px 0 0; opacity: .85; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: calc(100% - 32px); background: #22301c; color: #fff; padding: 10px 18px; border-radius: 8px; opacity: 0; pointer-events: none; transition: .2s; z-index: 40; font-size: 14px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* スマートフォン */
@media (max-width: 860px) {
  .header-in { flex-wrap: wrap; gap: 4px 8px; padding: 8px 16px; justify-content: space-between; }
  .logo b { font-size: 18px; }
  .tools { border: 0; padding: 0; gap: 0; }
  #header nav { order: 3; width: 100%; margin: 0; gap: 20px; overflow-x: auto; scrollbar-width: none; font-size: 14px; justify-content: space-between; }
  .hero { min-height: 0; display: block; }
  .hero img { position: static; width: 100%; height: 210px; }
  .hero::after { display: none; }
  .hero-text { padding: 20px 16px 24px; }
  .features { flex-direction: column; align-items: flex-start; padding: 12px 16px; }
  .features li { padding: 2px 0; font-size: 15px; }
  .features li + li { border: 0; }
  .features svg { width: 34px; height: 34px; }
  .section, .banners { padding-left: 16px; padding-right: 16px; }
  .title { font-size: 23px; gap: 14px; }
  .title::before, .title::after { width: 28px; }
  .grid { grid-template-columns: 1fr; }
  .banners { grid-template-columns: 1fr; }
  .detail-grid, .two { grid-template-columns: 1fr; gap: 18px; }
  .summary { position: static; }
  .spec th { width: 100px; padding: 8px; }
  .fine { padding-left: 16px; padding-right: 16px; }
  .order-list a { grid-template-columns: 1fr 1fr; }
  .news li { flex-direction: column; gap: 0; }
}
