/* ============================================================
   米直販サイト「回覧板」 — design tokens & base
   ============================================================ */

:root {
  color-scheme: only light;
  /* お米の白 / 紙 */
  --rice:  #F1F5F5;   /* お米の白（涼やかな生成り） */
  --paper: #FFFFFF;   /* 紙 */
  --ink:   #25323B;   /* 藍墨の文字 */
  --ink-soft: #56646E;
  --ink-faint: #93A1A8;
  --line: #DCE7E8;    /* hairlines */

  /* 空・水・田んぼ・稲穂 */
  --sky:       #5BA0D8;  /* 空のブルー */
  --sky-deep:  #357BB5;
  --water:     #7BA7BC;  /* 水のブルー */
  --water-deep:#4E84A0;
  --green:     #6E8A4A;  /* 田んぼのグリーン */
  --green-deep:#4E6A33;
  --gold:      #D8AE4A;  /* 稲穂（挿し色・イラスト用） */
  --gold-deep: #A8801F;
  --brown:     #8A6B4A;  /* 土 */
  --line-green:#06C755;  /* LINE */

  /* the active accent (swapped by tweak) — 空のブルーを基本に */
  --accent: var(--sky);
  --accent-deep: var(--sky-deep);

  /* radii / shadow */
  --r-sm: 12px;
  --r:    16px;
  --r-lg: 22px;
  --shadow-card: 0 1px 2px rgba(37,50,59,.05), 0 8px 22px -12px rgba(37,50,59,.20);
  --shadow-pop:  0 12px 34px -10px rgba(37,50,59,.30);
  --shadow-nav:  0 -1px 0 var(--line), 0 -10px 30px -18px rgba(37,50,59,.16);

  /* fonts */
  --mincho: "Shippori Mincho B1", serif;
  --gothic: "Zen Kaku Gothic New", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--gothic);
  color: var(--ink);
  color-scheme: only light;
  forced-color-adjust: none;
  background-color: #cfdde0;
}

/* the room the phone sits in */
body {
  background:
    radial-gradient(1100px 700px at 50% -10%, #eaf2f4 0%, #dde8ea 45%, #cfdde0 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* ---- app shell (本番：全画面・上下余白なし) ---- */
#stage  { width: 100%; }
#scaler { width: 100%; }

/* アプリ画面：高さは画面いっぱい（確定値）。中の絶対配置が潰れないよう height を明示。
   PCは中央に幅440で配置（上下の余白・角丸・影なし）。 */
.phone {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--rice);
  position: relative;
  overflow: hidden;
}
@media (min-width: 600px) {
  .phone { max-width: 440px; }
}

/* paper grain overlay */
.phone[data-grain="on"]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

/* status bar */
.statusbar {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px 0 30px;
  font-family: var(--gothic);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  position: relative;
  z-index: 6;
}
.statusbar .sb-icons { display: flex; gap: 7px; align-items: center; }

/* scroll viewport */
.viewport {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 86px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.viewport::-webkit-scrollbar { display: none; }

/* tab pages: fade — base state is VISIBLE; animation only engages once JS confirms
   the timeline is live (body.anim-ready), so content never gets stuck hidden. */
.page { opacity: 1; padding-bottom: 80px; } /* LINE追従ボタンに隠れないよう下部に余白 */
.anim-ready .page { animation: pageIn .42s cubic-bezier(.22,.61,.36,1) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* stagger helper for home blocks */
.stagger > * { opacity: 1; }
.anim-ready .stagger > * { animation: blockIn .55s cubic-bezier(.22,.61,.36,1) both; }
.anim-ready .stagger > *:nth-child(1) { animation-delay: .04s; }
.anim-ready .stagger > *:nth-child(2) { animation-delay: .12s; }
.anim-ready .stagger > *:nth-child(3) { animation-delay: .20s; }
.anim-ready .stagger > *:nth-child(4) { animation-delay: .28s; }
.anim-ready .stagger > *:nth-child(5) { animation-delay: .36s; }
.anim-ready .stagger > *:nth-child(6) { animation-delay: .44s; }
@keyframes blockIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .page, .stagger > * { animation: none !important; }
}

/* ---- bottom nav ---- */
.bottomnav {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 86px;
  padding-bottom: 14px;
  background: rgba(255,253,248,.86);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: var(--shadow-nav);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 40;
}
.navbtn {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-top: 12px;
  position: relative;
  color: var(--ink-faint);
  font-family: var(--gothic);
  transition: color .2s ease, transform .12s ease;
}
.navbtn .nav-ico { width: 26px; height: 26px; display: block; transition: transform .25s cubic-bezier(.22,1.4,.5,1); }
.navbtn .nav-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.navbtn[data-active="true"] { color: var(--accent-deep); }
.navbtn[data-active="true"] .nav-ico { transform: translateY(-2px) scale(1.06); }
.navbtn:active { transform: scale(.94); }
.navbtn .nav-indicator {
  position: absolute;
  top: 5px;
  width: 26px; height: 3px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(.3);
  transition: opacity .22s ease, transform .22s cubic-bezier(.22,1.2,.5,1);
}
.navbtn[data-active="true"] .nav-indicator { opacity: 1; transform: scaleX(1); }
.navbtn .nav-badge {
  position: absolute;
  top: 6px;
  left: calc(50% + 9px);
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--accent-deep) 45%, transparent);
  animation: badgePop .35s cubic-bezier(.22,1.4,.5,1) both;
}
@keyframes badgePop { from { transform: scale(0); } to { transform: scale(1); } }

/* ---- floating cart button ---- */
.cart-fab {
  position: absolute;
  right: 18px;
  bottom: 166px;
  z-index: 45;
  appearance: none;
  border: 0;
  cursor: pointer;
  height: 54px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  font-family: var(--gothic);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent-deep) 75%, transparent);
  animation: fabIn .4s cubic-bezier(.22,1.3,.5,1) both;
  transition: transform .12s ease;
}
.cart-fab:active { transform: scale(.95); }
.cart-fab-label { letter-spacing: .04em; }
.cart-fab-badge {
  position: absolute;
  top: -5px; left: 34px;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--paper);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  display: grid; place-items: center;
  border: 2px solid color-mix(in srgb, var(--accent-deep) 50%, var(--paper));
  box-shadow: 0 2px 6px rgba(44,40,32,.2);
}
@keyframes fabIn {
  from { opacity: 0; transform: translateY(20px) scale(.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- LINE friend-add button (all pages, bottom-right) ---- */
.line-fab {
  position: absolute;
  right: 18px;
  bottom: 100px;
  z-index: 44;
  height: 50px;
  padding: 0 18px 0 15px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--line-green);
  color: #fff;
  font-family: var(--gothic);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  box-shadow: 0 10px 24px -8px rgba(6,199,85,.55);
  animation: fabIn .4s cubic-bezier(.22,1.3,.5,1) both;
  transition: transform .12s ease;
}
.line-fab:active { transform: scale(.95); }

/* ---- cart sheet (slides up over the app) ---- */
.cart-sheet {
  position: absolute;
  top: 46px; left: 0; right: 0; bottom: 0;
  z-index: 65;
  background: var(--rice);
  animation: sheetUp .36s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cart-sheet-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  padding-top: 8px;
}
.cart-sheet-scroll::-webkit-scrollbar { display: none; }
.cart-sheet-close {
  position: absolute;
  top: 14px; right: 16px;
  z-index: 6;
  appearance: none; border: 1px solid var(--line); cursor: pointer;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,253,248,.92);
  backdrop-filter: blur(8px);
  color: var(--ink);
  display: grid; place-items: center;
  box-shadow: var(--shadow-card);
  transition: transform .12s ease;
}
.cart-sheet-close:active { transform: scale(.9); }

/* ---- toast ---- */
.toastwrap {
  position: absolute;
  left: 0; right: 0; bottom: 104px;
  display: flex;
  justify-content: center;
  z-index: 60;
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: var(--shadow-pop);
  animation: toastIn .32s cubic-bezier(.22,1.3,.5,1) both;
}
.toast[data-kind="error"] { background: #8a3b2e; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   shared content primitives
   ============================================================ */
.section { padding: 0 22px; }
.eyebrow {
  font-family: var(--gothic);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1.5px;
  background: var(--accent);
  display: inline-block;
}
.h-mincho {
  font-family: var(--mincho);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: .01em;
}
.body-text {
  font-size: 15px;
  line-height: 2;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

/* press feedback for primary buttons */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--gothic);
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
a.btn { text-decoration: none; }
.btn:active { transform: translateY(2px) scale(.99); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--accent-deep) 65%, transparent);
}
.btn-line {
  background: var(--line-green);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(6,199,85,.55);
}
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.btn-block { width: 100%; }

/* qty stepper */
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}
.stepper button {
  appearance: none; border: 0; background: none; cursor: pointer;
  width: 38px; height: 38px;
  font-size: 20px; color: var(--ink);
  display: grid; place-items: center;
  transition: background .15s ease;
}
.stepper button:active { background: var(--rice); }
.stepper .qty { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* inputs */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}
.field label .req { color: #b5573f; margin-left: 4px; font-size: 12px; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--gothic);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field input.invalid, .field textarea.invalid {
  border-color: #c2614b;
  box-shadow: 0 0 0 3px rgba(194,97,75,.13);
}
.field .err {
  color: #b5573f;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  animation: blockIn .25s ease both;
}

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}
.pill-sell { background: rgba(108,123,69,.14); color: var(--green-deep); }
.pill-soldout { background: rgba(138,107,74,.16); color: var(--brown); }
.pill-reserve { background: rgba(210,166,56,.18); color: var(--gold-deep); }

/* ============================================================
   hero / field art
   ============================================================ */
.hero-art {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.hero-photo-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(241,245,245,0) 38%, rgba(241,245,245,.35) 62%, rgba(241,245,245,.95) 100%);
}
.hero-sun {
  position: absolute;
  top: 30px; right: 46px;
  width: 78px; height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff5d8 0%, #fbe6a6 55%, rgba(251,230,166,0) 72%);
  filter: blur(.3px);
}
.hero-hills, .hero-paddy { position: absolute; left: 0; right: 0; width: 100%; }
.hero-hills { bottom: 0; height: 120px; }
.hero-paddy { bottom: 0; height: 90px; }
.hero-ears, .hero-lines { position: absolute; inset: 0; }

.rice-ear {
  position: absolute;
  bottom: -8px;
  transform-origin: bottom center;
  animation: sway 5.5s ease-in-out infinite alternate;
}
.rice-ear.is-bottom { bottom: -22px; }
@keyframes sway {
  from { rotate: -3.5deg; }
  to   { rotate: 3.5deg; }
}
@media (prefers-reduced-motion: reduce) { .rice-ear { animation: none; } }

.hero-type { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.hero-type-sub {
  font-family: var(--mincho);
  font-size: 14px;
  letter-spacing: .3em;
  color: var(--sky-deep);
  margin-bottom: 6px;
}
.hero-type-big {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: 88px;
  letter-spacing: .12em;
  color: var(--ink);
  line-height: 1;
  padding-left: .12em;
}

/* ============================================================
   home
   ============================================================ */
.home-hero-cap {
  position: absolute;
  left: 22px; bottom: 18px; right: 22px;
}
.home-social {
  position: absolute;
  top: 12px; right: 14px;
  z-index: 6;
  display: flex;
  gap: 8px;
}
.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(37,50,59,.16);
  transition: transform .12s ease;
}
.social-btn:active { transform: scale(.92); }
.social-note {
  font-family: var(--gothic);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .01em;
}
.home-brand { display: flex; align-items: center; gap: 9px; }
.home-brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--rice);
  border-radius: 9px;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 17px;
}
.home-brand-name {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .08em;
  color: var(--ink);
  text-shadow: 0 1px 8px rgba(255,255,255,.75);
}
.home-hero-cap h1 { text-shadow: 0 1px 14px rgba(255,255,255,.7); }

.maker-card { overflow: hidden; }
.maker-portrait {
  position: relative;
  height: 168px;
  background:
    radial-gradient(120px 90px at 50% 130%, rgba(108,123,69,.3), transparent),
    linear-gradient(180deg, #eef0e2 0%, #e3e6d2 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.maker-portrait .rice-ear { bottom: -30px; }
.portrait-note {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.4;
  background: rgba(255,253,248,.7);
  padding: 5px 9px;
  border-radius: 9px;
}
.maker-portrait-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 62%;
}
.maker-portrait-cap {
  position: absolute; bottom: 12px; left: 14px;
  font-size: 11.5px; font-weight: 700; color: #fff;
  background: rgba(37,50,59,.42);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 4px 10px; border-radius: 8px; letter-spacing: .04em;
}

.bridge {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.bridge-photo {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
  border: 2px solid var(--paper);
  box-shadow: 0 4px 14px -4px rgba(44,40,32,.35);
}
.bridge-loc {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: .04em;
  margin-top: 3px;
}
.bridge-avatar {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 24px;
}

.news-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
}
.news-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.news-text { font-size: 13.5px; color: var(--ink-soft); flex: 1; line-height: 1.5; }
.news-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  padding: 3px 8px;
  border-radius: 7px;
  flex-shrink: 0;
}

.home-foot {
  margin-top: 40px;
  padding: 30px 22px 36px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(108,123,69,.06));
}
.foot-mark {
  width: 38px; height: 38px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--mincho);
  font-weight: 700;
  color: var(--ink-soft);
}
.foot-links { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.foot-links button {
  appearance: none; border: 0; background: none; cursor: pointer;
  font-family: var(--gothic);
  font-size: 12.5px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px;
}
.foot-dot { color: var(--ink-faint); }
.foot-note { font-size: 11.5px; color: var(--ink-faint); margin-top: 12px; letter-spacing: .08em; }

/* ============================================================
   tab heads / おこめ
   ============================================================ */
.tab-head { padding: 24px 22px 18px; }

/* variety grouping */
.variety-group { }
.variety-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.variety-mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--rice);
  border-radius: 8px;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 14px;
}

/* 玄米 / 精米 selector */
.milling-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.mill-opt {
  appearance: none;
  cursor: pointer;
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  transition: border-color .18s ease, background .18s ease;
}
.mill-opt .mill-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.mill-opt .mill-sub { font-size: 11.5px; color: var(--ink-faint); }
.mill-opt[data-on="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--paper));
}
.mill-opt[data-on="true"] .mill-sub { color: var(--accent-deep); font-weight: 700; }

.product-card { overflow: hidden; }
.product-art {
  position: relative;
  height: 156px;
  overflow: hidden;
}
.product-art .rice-ear { bottom: -34px; }
.product-weight {
  position: absolute;
  right: 16px; bottom: 12px;
  font-family: var(--mincho);
  font-weight: 800;
  font-size: 34px;
  color: rgba(44,40,32,.30);
  letter-spacing: .02em;
}
.product-meta {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}
.meta-row + .meta-row { border-top: 1px dashed var(--line); }
.meta-k {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-faint);
  width: 42px;
  flex-shrink: 0;
}
.meta-v { font-size: 13px; color: var(--ink); }

.product-buy {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price { display: flex; align-items: baseline; gap: 2px; color: var(--ink); }
.price-yen { font-size: 16px; font-weight: 700; }
.price-num { font-family: var(--mincho); font-weight: 800; font-size: 30px; letter-spacing: .01em; }
.price-tax { font-size: 11px; color: var(--ink-faint); margin-left: 4px; font-weight: 600; }
.product-add { padding: 13px 22px; font-size: 14px; white-space: nowrap; }

.okome-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.7;
  padding: 6px 16px;
}

/* ============================================================
   cart / checkout
   ============================================================ */
.cart-empty {
  text-align: center;
  padding: 60px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cart-empty-mark {
  width: 86px; height: 86px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px dashed var(--line);
  display: grid; place-items: center;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.stepbar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
}
.stepbar-item { display: flex; align-items: center; gap: 6px; }
.stepbar-item:not(:last-child)::after {
  content: "";
  width: 14px; height: 1.5px;
  background: var(--line);
  margin: 0 2px;
}
.stepbar-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--ink-faint);
  transition: all .25s ease;
}
.stepbar-label { font-size: 11.5px; font-weight: 700; color: var(--ink-faint); }
.stepbar-item[data-state="now"] .stepbar-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepbar-item[data-state="now"] .stepbar-label { color: var(--accent-deep); }
.stepbar-item[data-state="done"] .stepbar-dot { background: var(--green); border-color: var(--green); color: #fff; }

.cart-line { display: flex; gap: 14px; padding: 14px; align-items: stretch; }
.cart-thumb {
  width: 70px; height: 70px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.cart-thumb .rice-ear { bottom: -18px; }
.cart-line-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.cart-line-price { font-family: var(--mincho); font-weight: 800; font-size: 19px; }
.cart-remove {
  appearance: none; border: 0; background: none; cursor: pointer;
  font-size: 12px; color: var(--ink-faint);
  text-decoration: underline; text-underline-offset: 2px;
  padding: 6px 0 0;
}

.summary {
  margin-top: 18px;
  background: var(--rice);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
}
.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 4px 0;
}
.sum-total { color: var(--ink); }
.sum-total span:last-child { font-family: var(--mincho); font-weight: 800; font-size: 22px; }
.sum-total span:first-child { font-weight: 700; align-self: center; }

.step-actions { display: flex; gap: 10px; margin-top: 18px; }

.confirm-h { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--accent-deep); margin-bottom: 12px; }
.confirm-line {
  display: flex; justify-content: space-between;
  font-size: 14px; color: var(--ink-soft);
  padding: 7px 0;
}
.confirm-line + .confirm-line { border-top: 1px dashed var(--line); }
.confirm-addr { font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); }
.confirm-note { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13px; }

.pay-card {
  padding: 26px 22px;
  text-align: center;
  background:
    radial-gradient(200px 120px at 50% 0%, rgba(210,166,56,.1), transparent),
    var(--paper);
}
.pay-total-label { font-size: 12px; font-weight: 700; color: var(--ink-faint); letter-spacing: .1em; }
.pay-total { font-family: var(--mincho); font-weight: 800; font-size: 42px; color: var(--ink); margin: 4px 0 14px; }
.pay-note { font-size: 13px; line-height: 1.8; color: var(--ink-soft); }
.pay-badge {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
  font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
  background: var(--rice);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
}
.pay-btn { min-height: 56px; display: flex; align-items: center; justify-content: center; }
.pay-connect { font-size: 11px; color: var(--ink-faint); text-align: center; margin-top: 12px; line-height: 1.6; }
.pay-spin {
  width: 22px; height: 22px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.done-wrap { display: flex; flex-direction: column; padding-top: 16px; }
.done-seal {
  width: 76px; height: 76px;
  margin: 12px auto 4px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -10px rgba(76,86,48,.6);
  animation: sealPop .5s cubic-bezier(.22,1.4,.5,1) both;
}
@keyframes sealPop { from { transform: scale(0) rotate(-20deg); } to { transform: scale(1) rotate(0); } }
.done-recap { padding: 14px 18px; margin-top: 20px; }
.done-line-block { margin-top: 22px; }
.done-line-lead { font-size: 13.5px; color: var(--ink-soft); text-align: center; margin: 0 0 14px; }

/* ============================================================
   回覧板 (board)
   ============================================================ */
.voice-card { padding: 18px; position: relative; }
.voice-quote { color: var(--water); opacity: .95; margin-bottom: 2px; }
.voice-body {
  font-family: var(--mincho);
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ink);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.voice-who { display: flex; align-items: center; gap: 11px; }
.voice-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brown), #6f5337);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}
.voice-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.voice-area { font-size: 11.5px; color: var(--ink-faint); margin-top: 1px; }

.line-card {
  padding: 26px 22px;
  text-align: center;
  background:
    radial-gradient(220px 130px at 50% 0%, rgba(6,199,85,.08), transparent),
    var(--paper);
}
.line-badge {
  width: 56px; height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--line-green);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 22px -8px rgba(6,199,85,.5);
}

.faq-item { border-top: 1px solid var(--line); }
.faq-item:first-child { border-top: 0; }
.faq-q {
  appearance: none; border: 0; background: none; cursor: pointer; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
  font-family: var(--gothic);
  font-size: 14px; font-weight: 700; color: var(--ink);
  text-align: left;
}
.faq-chev { color: var(--ink-faint); transition: color .2s ease; flex-shrink: 0; }
.faq-item[data-open="true"] .faq-chev { color: var(--accent-deep); }
.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s cubic-bezier(.4,0,.2,1);
}
.faq-item[data-open="true"] .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a {
  overflow: hidden;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.faq-item[data-open="true"] .faq-a { padding: 0 18px 18px; }

/* ============================================================
   legal overlay
   ============================================================ */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 70;
  background: var(--rice);
  display: flex;
  flex-direction: column;
  animation: overlayIn .32s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes overlayIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.overlay-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,253,248,.9);
  backdrop-filter: blur(10px);
}
.overlay-back {
  appearance: none; border: 1px solid var(--line); background: var(--paper); cursor: pointer;
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; color: var(--ink);
}
.overlay-title { font-family: var(--mincho); font-weight: 700; font-size: 16px; }
.overlay-body { flex: 1; overflow-y: auto; padding: 22px; scrollbar-width: none; }
.overlay-body::-webkit-scrollbar { display: none; }
.legal-row { padding: 14px 0; border-top: 1px solid var(--line); }
.legal-row:first-child { border-top: 0; }
.legal-k { font-size: 12px; font-weight: 700; color: var(--ink-faint); margin-bottom: 4px; }
.legal-v { font-size: 13.5px; line-height: 1.8; color: var(--ink); }

/* ============================================================
   おこめ手帖 (recipes + practical info)
   ============================================================ */
.recipe-group-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.recipe-group-sub { font-size: 12px; color: var(--ink-faint); }

.recipe-item { border-top: 1px solid var(--line); }
.recipe-item:first-child { border-top: 0; }
.recipe-head {
  appearance: none; border: 0; background: none; cursor: pointer; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px;
  text-align: left;
}
.recipe-title { font-family: var(--gothic); font-size: 14.5px; font-weight: 700; color: var(--ink); }
.recipe-head-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.recipe-time {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 700; color: var(--green-deep);
  background: color-mix(in srgb, var(--green) 13%, transparent);
  padding: 3px 9px; border-radius: 999px;
  white-space: nowrap;
}
.recipe-item[data-open="true"] .faq-chev { color: var(--accent-deep); }
.recipe-body { overflow: hidden; }
.recipe-item[data-open="true"] .recipe-body { padding: 0 18px 18px; }
.recipe-items {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 2px 0 12px;
}
.recipe-chip {
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
  background: var(--rice);
  border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 999px;
}
.recipe-steps {
  margin: 0; padding: 0; list-style: none;
  counter-reset: step;
}
.recipe-steps li {
  position: relative;
  padding: 7px 0 7px 30px;
  font-size: 13.5px; line-height: 1.7; color: var(--ink-soft);
  counter-increment: step;
}
.recipe-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 7px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.recipe-steps li + li { border-top: 1px dashed var(--line); }

/* レシピ行（タップで右スライド詳細へ） */
.recipe-row {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
  background: var(--paper); border: none; cursor: pointer; text-align: left;
  transition: background .15s ease;
}
.recipe-row + .recipe-row { border-top: 1px solid var(--line); }
.recipe-row:active { background: #f1f0ea; }
.recipe-row .faq-chev { color: var(--ink-faint); }
/* レシピ詳細ページ内 */
.recipe-detail-time {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 700; color: var(--accent-deep);
  margin-bottom: 16px;
}
.recipe-detail-label {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--ink-faint); margin-bottom: 10px;
}
/* FAQ回答ページ */
.faq-overlay-q {
  font-family: var(--mincho); font-weight: 700; font-size: 18px;
  line-height: 1.6; margin: 0 0 14px; color: var(--ink);
}
.faq-overlay-a {
  font-size: 14.5px; line-height: 1.95; color: var(--ink-soft); margin: 0;
}

/* practical info cards */
.info-card { display: flex; gap: 14px; padding: 16px 18px; align-items: flex-start; }
.info-ico {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, var(--paper));
  color: var(--accent-deep);
  display: grid; place-items: center;
}
.info-title { font-size: 15px; font-weight: 700; color: var(--ink); margin: 2px 0 0; }
.info-body { margin-top: 8px; }
.info-list { margin: 0; padding-left: 0; list-style: none; }
.info-list li {
  position: relative;
  padding: 5px 0 5px 16px;
  font-size: 13px; line-height: 1.75; color: var(--ink-soft);
}
.info-list li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}
.info-list b { color: var(--ink); font-weight: 700; }

.usage-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.usage-row {
  display: flex; justify-content: space-between;
  padding: 9px 13px;
  font-size: 13px; color: var(--ink);
}
.usage-row span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.usage-row + .usage-row { border-top: 1px solid var(--line); }
.usage-row:nth-child(even) { background: var(--rice); }
.usage-note {
  font-size: 13px; line-height: 1.7; color: var(--ink-soft);
  margin: 12px 0 0;
}
.usage-note b { color: var(--green-deep); font-size: 14px; }
