/* ひとしな — 暮らしの道具を一点ずつ選ぶセレクトショップ
   デザイントークン：生成り × チャコール × 真鍮 */
:root {
  --kinari: #F3EEE4;        /* 地 */
  --kinari-deep: #E8E0D1;   /* 沈んだ面・区切り */
  --paper: #FBF8F2;         /* 浮いた面 */
  --charcoal: #2B2926;      /* 文字・主ボタン */
  --sumi: #5A544C;          /* 副文字（地に対して 6.4:1） */
  --brass: #B08A45;         /* 真鍮：線・装飾だけ */
  --brass-ink: #7A5A22;     /* 真鍮色の文字（5.5:1） */
  --brass-pale: #EADBB8;
  --alert: #9E3A2C;
  --line: rgba(43, 41, 38, .14);
  --line-strong: rgba(43, 41, 38, .28);
  --glass: rgba(251, 248, 242, .72);
  --glass-edge: rgba(255, 255, 255, .7);

  --ff-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --ff-num: "Manrope", "Zen Kaku Gothic New", system-ui, sans-serif;

  --r-photo: 4px;
  --r-part: 12px;
  --r-sheet: 28px;
  --r-pill: 999px;
  --shadow-glass: 0 10px 30px rgba(43, 41, 38, .14), 0 1px 0 rgba(255, 255, 255, .6) inset;

  --gutter: 20px;
  --nav-h: 52px;
  --tab-h: 64px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  --ease: cubic-bezier(.32, .72, 0, 1);
  --t-push: 420ms;
  --t-sheet: 460ms;
  --t-press: 120ms;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--kinari);
  color: var(--charcoal);
  font-family: var(--ff-ja);
  font-size: 15px;
  line-height: 1.7;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.num { font-family: var(--ff-num); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.nw { white-space: nowrap; }
.kw { word-break: keep-all; overflow-wrap: anywhere; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 端末の枠（広い画面では中央の列） ---------- */
.device {
  position: relative;
  height: 100vh;
  height: 100dvh;
  max-width: 430px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--kinari);
  isolation: isolate;
}
@media (min-width: 600px) {
  body {
    background:
      radial-gradient(1200px 600px at 50% -10%, #3a3733 0%, transparent 70%),
      repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px),
      #23211F;
  }
  .device { box-shadow: 0 0 0 1px rgba(176, 138, 69, .35), 0 30px 80px rgba(0, 0, 0, .45); }
}
.stack { position: absolute; inset: 0; }

.boot-fallback {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; padding: 32px;
  text-align: center; color: var(--sumi); opacity: 0; animation: boot-show .3s 3s forwards;
}
.boot-fallback__title { font-size: 28px; font-weight: 700; color: var(--charcoal); margin: 0; }
@keyframes boot-show { to { opacity: 1; } }
.noscript { position: fixed; inset: auto 16px 16px; padding: 16px; background: var(--charcoal); color: #fff; border-radius: 12px; }

/* ---------- 画面（スクリーン） ---------- */
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--kinari);
  will-change: transform;
}
.screen.is-under::after {
  content: ""; position: absolute; inset: 0; background: rgba(43, 41, 38, .12); pointer-events: none;
}
.scroller {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-top: calc(var(--nav-h) + var(--safe-t));
  padding-bottom: calc(var(--tab-h) + 40px + var(--safe-b));
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }
.screen--push .scroller { padding-bottom: calc(110px + var(--safe-b)); }

/* 押し出し遷移 */
.anim-push-in { animation: push-in var(--t-push) var(--ease) both; }
.anim-push-out { animation: push-out var(--t-push) var(--ease) both; }
.anim-pop-in { animation: pop-in var(--t-push) var(--ease) both; }
.anim-pop-out { animation: pop-out var(--t-push) var(--ease) both; z-index: 2; }
.anim-fade-in { animation: fade-in 220ms ease-out both; }
@keyframes push-in { from { transform: translateX(100%); box-shadow: -20px 0 40px rgba(43,41,38,0); } to { transform: none; box-shadow: -20px 0 40px rgba(43,41,38,.12); } }
@keyframes push-out { to { transform: translateX(-28%); } }
@keyframes pop-in { from { transform: translateX(-28%); } to { transform: none; } }
@keyframes pop-out { from { transform: translateX(var(--from, 0px)); } to { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- ナビゲーションバー（大きなタイトルが縮む） ---------- */
.navbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  height: calc(var(--nav-h) + var(--safe-t));
  padding: var(--safe-t) 8px 0;
  display: grid; grid-template-columns: 96px minmax(0, 1fr) 96px; align-items: center;
  pointer-events: none;
}
.navbar::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(243, 238, 228, .82);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .2s;
}
.navbar.is-scrolled::before { opacity: 1; }
.navbar > * { position: relative; pointer-events: auto; }
.navbar__title {
  font-size: 17px; font-weight: 700; letter-spacing: .02em; text-align: center;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
  white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.navbar.is-scrolled .navbar__title, .navbar--always .navbar__title { opacity: 1; transform: none; }
.navbar__side { display: flex; align-items: center; gap: 4px; }
.navbar__side--r { justify-content: flex-end; }

/* 丸いガラスのボタン（機能層） */
.glass-btn {
  position: relative;
  min-width: 44px; height: 44px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border: 0; border-radius: var(--r-pill);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: 0 0 0 .5px rgba(43,41,38,.12), 0 4px 14px rgba(43,41,38,.08), inset 0 1px 0 var(--glass-edge);
  color: var(--charcoal); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: transform var(--t-press) var(--ease);
}
.glass-btn--icon { width: 44px; padding: 0; }
.glass-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.glass-btn.is-on svg { fill: var(--charcoal); }
.press:active, .glass-btn:active, .tab:active, .chip:active, .btn:active { transform: scale(.96); }

.large-title {
  padding: 2px var(--gutter) 10px;
  transform-origin: left center;
}
.large-title__eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--brass-ink); }
.large-title h1 {
  margin: 0; font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: .01em;
  font-feature-settings: "palt"; word-break: keep-all;
}

/* ---------- タブバー（Liquid Glass 風の浮いたカプセル） ---------- */
.tabbar {
  position: absolute; z-index: 30;
  left: 12px; right: 12px; bottom: calc(10px + var(--safe-b));
  height: var(--tab-h);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px;
  border-radius: var(--r-pill);
  background: rgba(251, 248, 242, .78);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  box-shadow: var(--shadow-glass), 0 0 0 .5px rgba(43,41,38,.14);
  transition: transform .35s var(--ease), opacity .25s;
}
.tabbar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.tab {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border-radius: var(--r-pill);
  text-decoration: none; color: var(--sumi);
  font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.2;
  transition: background .25s, color .25s, transform var(--t-press) var(--ease);
  min-height: 44px;
}
.tab__icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab.is-active { color: var(--charcoal); background: rgba(43, 41, 38, .08); }
.tab.is-active .tab__icon { stroke-width: 2.1; }
.tab__badge {
  position: absolute; top: 3px; left: calc(50% + 6px);
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--charcoal); color: #fff;
  font: 700 12px/19px var(--ff-num); text-align: center;
}
.tab__badge.bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); } }

/* ---------- 共通部品 ---------- */
.section { padding: 0 var(--gutter); margin-top: 34px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section__title { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.35; font-feature-settings: "palt"; word-break: keep-all; }
.section__more { min-height: 44px; display: inline-flex; align-items: center; color: var(--brass-ink); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.eyebrow { font-family: var(--ff-num); font-weight: 700; font-size: 12px; letter-spacing: .14em; color: var(--brass-ink); text-transform: uppercase; }
.muted { color: var(--sumi); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px;
  border: 0; border-radius: var(--r-pill);
  background: var(--charcoal); color: #FBF8F2;
  font-size: 16px; font-weight: 700; letter-spacing: .04em; text-decoration: none;
  transition: transform var(--t-press) var(--ease), background .2s, opacity .2s;
}
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--charcoal); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--brass { background: var(--brass-ink); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { background: #CFC6B6; color: #3F3B36; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 16px;
  border: 0; border-radius: var(--r-pill);
  background: var(--paper); color: var(--charcoal);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background .2s, color .2s, transform var(--t-press) var(--ease);
}
.chip[aria-pressed="true"], .chip.is-on { background: var(--charcoal); color: #FBF8F2; box-shadow: none; }
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.price { font-family: var(--ff-num); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: .01em; }
.price small { font-family: var(--ff-ja); font-size: .72em; font-weight: 500; margin-left: 2px; color: var(--sumi); }
.no { font-family: var(--ff-num); font-weight: 700; font-size: 12px; letter-spacing: .12em; color: var(--brass-ink); }

.photo { position: relative; background: #EFE9DD; border-radius: var(--r-photo); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* 在庫の残り（一点ものの“残数の点”） */
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--sumi); white-space: nowrap; }
.stock__dots { display: inline-flex; gap: 3px; }
.stock__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.stock__dots i.off { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.stock--low { color: var(--brass-ink); }
.stock--out { color: var(--alert); }

.heart { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: rgba(251, 248, 242, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform var(--t-press) var(--ease); }
.heart svg { width: 22px; height: 22px; fill: none; stroke: var(--charcoal); stroke-width: 1.8; stroke-linejoin: round; }
.heart.is-on svg { fill: var(--charcoal); }
.heart.pop svg { animation: heart-pop .5s var(--ease); }
@keyframes heart-pop { 35% { transform: scale(1.32); } }

.skeleton { background: linear-gradient(100deg, #EAE3D6 30%, #F3EEE4 50%, #EAE3D6 70%); background-size: 300% 100%; animation: shimmer 1.2s linear infinite; border-radius: var(--r-photo); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- ホーム ---------- */
.today {
  position: relative; display: block; margin: 6px var(--gutter) 0;
  border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--charcoal);
  aspect-ratio: 4 / 5; background: #EDE6D9;
  box-shadow: 0 18px 40px rgba(43, 41, 38, .12);
  transition: transform .25s var(--ease);
}
.today:active { transform: scale(.98); }
.today img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.today__text {
  position: absolute; left: 0; right: 0; top: 0; padding: 22px 22px 60px;
  background: linear-gradient(180deg, rgba(243, 238, 228, .92) 0%, rgba(243, 238, 228, .7) 60%, rgba(243, 238, 228, 0) 100%);
}
.today__label { margin: 0 0 6px; font-family: var(--ff-num); font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--brass-ink); }
.today__title { margin: 0; font-size: 30px; line-height: 1.3; font-weight: 700; font-feature-settings: "palt"; word-break: keep-all; }
.today__sub { margin: 8px 0 0; font-size: 15px; color: #3F3B36; word-break: keep-all; }
.today__cta {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 10px 10px 18px; border-radius: var(--r-pill);
  background: rgba(43, 41, 38, .78); color: #FBF8F2;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 15px; font-weight: 700;
}
.today__cta span.go { width: 34px; height: 34px; border-radius: 50%; background: #FBF8F2; display: grid; place-items: center; }
.today__cta svg { width: 18px; height: 18px; fill: none; stroke: var(--charcoal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px var(--gutter) 6px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-card { flex: 0 0 62%; scroll-snap-align: start; text-decoration: none; color: inherit; position: relative; }
.rail-card .photo { aspect-ratio: 1; }
.rail-card__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; gap: 8px; }
.rail-card__name { margin: 2px 0 0; font-size: 16px; font-weight: 700; line-height: 1.45; word-break: keep-all; }
.rail-card__lead { margin: 2px 0 0; font-size: 14px; color: var(--sumi); word-break: keep-all; }

.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 0 calc(var(--gutter) - 6px); }
.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 2px 10px; border-radius: 16px; text-decoration: none; color: var(--charcoal); font-size: 14px; font-weight: 700; transition: background .2s, transform var(--t-press) var(--ease); }
.cat:active { background: var(--kinari-deep); transform: scale(.95); }
.cat__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.cat__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--charcoal); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cat__icon svg .b { stroke: var(--brass); }

.low-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.low-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.low-row .photo { width: 64px; height: 64px; }
.low-row__name { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.45; word-break: keep-all; }
.meter { position: relative; height: 4px; border-radius: 2px; background: var(--kinari-deep); margin-top: 8px; overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; background: var(--brass); border-radius: 2px; transform-origin: left; animation: meter-in .9s var(--ease) both; }
@keyframes meter-in { from { transform: scaleX(0); } }
.low-row__left { text-align: right; }
.low-row__lot { margin: 4px 0 0; font-size: 12px; color: var(--sumi); line-height: 1.3; }
.low-row__count { display: block; font-family: var(--ff-num); font-weight: 800; font-size: 24px; line-height: 1; color: var(--charcoal); }
.low-row__unit { font-size: 12px; font-weight: 700; color: var(--sumi); }

.journal { margin: 40px var(--gutter) 0; padding: 26px 22px 24px; background: var(--charcoal); color: #EFE9DD; border-radius: 22px; position: relative; overflow: hidden; }
.journal__img { margin: -26px -22px 22px; height: 180px; position: relative; }
.journal__img img { width: 100%; height: 100%; object-fit: cover; }
.journal__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,41,38,0) 40%, #2B2926 100%); }
.journal .eyebrow { color: #D8BC80; }
.journal h2 { margin: 6px 0 12px; font-size: 24px; line-height: 1.4; font-feature-settings: "palt"; word-break: keep-all; color: #FBF8F2; }
.journal p { margin: 0 0 12px; font-size: 15px; line-height: 1.85; }
.journal__by { margin-top: 16px !important; font-size: 14px !important; color: #D8BC80; text-align: right; }

.home-foot { margin: 36px var(--gutter) 0; padding: 18px 0 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--sumi); }

/* ---------- 商品一覧 ---------- */
.searchbar { padding: 0 var(--gutter) 8px; }
.search {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px;
  border-radius: 12px; background: var(--kinari-deep); color: var(--sumi);
}
.search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; color: var(--charcoal); }
.search input::placeholder { color: #6A645B; }
.search__clear { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--sumi); display: grid; place-items: center; }

.toolbar {
  position: sticky; top: 0; z-index: 4;
  display: flex; align-items: center; gap: 8px;
  padding: 8px var(--gutter);
  background: rgba(243, 238, 228, .9);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.toolbar__count { margin-right: auto; font-size: 14px; font-weight: 700; color: var(--sumi); white-space: nowrap; }
.toolbar__count b { font-family: var(--ff-num); font-size: 20px; color: var(--charcoal); margin-right: 2px; }
.toolbar .chip { min-height: 44px; padding: 0 14px; }
.toolbar .chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.active-filters { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--gutter) 8px; scrollbar-width: none; }
.active-filters::-webkit-scrollbar { display: none; }
.active-filters .chip { min-height: 36px; padding: 0 12px; font-size: 14px; background: var(--brass-pale); box-shadow: none; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 14px; padding: 10px var(--gutter) 0; }
.card { position: relative; text-decoration: none; color: inherit; display: block; min-width: 0; }
.card .photo { aspect-ratio: 1; }
.card__top { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.card__name { margin: 3px 0 2px; font-size: 15px; font-weight: 700; line-height: 1.45; word-break: keep-all; }
.card__maker { margin: 0; font-size: 13px; color: var(--sumi); line-height: 1.5; word-break: keep-all; }
.card__price { margin: 6px 0 0; font-size: 17px; }
.card.is-out .photo img { filter: grayscale(.4); opacity: .7; }
.card__badge { position: absolute; left: 8px; top: 8px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--charcoal); color: #FBF8F2; font-size: 12px; font-weight: 700; }

.card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: end; padding: 16px; margin: 0 calc(var(--gutter) * -1); background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card--wide .card__name { font-size: 19px; }
.card--wide .card__lead { margin: 4px 0 0; font-size: 14px; color: var(--sumi); line-height: 1.6; word-break: keep-all; }
.card--wide .card__top { margin-top: 0; }

.ptr { height: 0; overflow: hidden; display: grid; place-items: end center; color: var(--sumi); font-size: 13px; font-weight: 700; }
.ptr__spin { width: 22px; height: 22px; margin-bottom: 10px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--charcoal); }
.ptr.is-loading .ptr__spin { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 40px 32px 20px; }
.empty svg { width: 132px; height: 132px; fill: none; stroke: var(--charcoal); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.empty svg .b { stroke: var(--brass); }
.empty h2 { margin: 6px 0 0; font-size: 20px; line-height: 1.45; font-feature-settings: "palt"; word-break: keep-all; }
.empty p { margin: 0 0 8px; color: var(--sumi); word-break: keep-all; }

/* ---------- 商品詳細 ---------- */
.screen--item .scroller { padding-top: 0; }
.gallery { position: relative; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1 / 1.08; background: #EFE9DD; }
.gallery__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; position: relative; overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide--detail img { transform: scale(2.1); }
.slide__tag { position: absolute; left: 14px; bottom: 34px; padding: 4px 12px; border-radius: var(--r-pill); background: rgba(43, 41, 38, .78); color: #FBF8F2; font-size: 13px; font-weight: 700; }
.slide--dims { display: grid; place-items: center; background: var(--paper); }
.dims { width: 82%; height: auto; }
.dims .o { fill: #EFE9DD; stroke: var(--charcoal); stroke-width: 1.6; }
.dims .d { stroke: var(--brass-ink); stroke-width: 1.2; fill: none; }
.dims text { font-family: var(--ff-num); font-weight: 700; font-size: 15px; fill: var(--charcoal); }
.dims .cap { font-family: var(--ff-ja); font-weight: 500; font-size: 13px; fill: #4A453F; }
.gallery__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gallery__dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(43, 41, 38, .28); transition: width .3s var(--ease), background .3s; }
.gallery__dots i.on { width: 18px; background: var(--charcoal); }
.gallery__count { position: absolute; right: 14px; bottom: 30px; padding: 2px 10px; border-radius: var(--r-pill); background: rgba(251,248,242,.88); font: 700 13px/22px var(--ff-num); color: var(--charcoal); }

.item-head { padding: 22px var(--gutter) 0; }
.item-head__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.item-head h1 { margin: 6px 0 4px; font-size: 26px; line-height: 1.35; font-weight: 700; font-feature-settings: "palt"; word-break: keep-all; }
.item-head__lead { margin: 0; font-size: 16px; color: #3F3B36; word-break: keep-all; }
.item-head__price { margin: 14px 0 0; font-size: 28px; }
.maker-line { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--sumi); }
.maker-line svg { width: 18px; height: 18px; fill: none; stroke: var(--brass-ink); stroke-width: 1.8; }

.opt { padding: 0 var(--gutter); margin-top: 26px; }
.opt__label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--sumi); }
.opt__label b { color: var(--charcoal); font-size: 15px; }
.swatches { display: flex; gap: 14px; }
.swatch { width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0; position: relative; background: transparent; transition: transform var(--t-press) var(--ease); }
.swatch i { position: absolute; inset: 5px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(43,41,38,.2); }
.swatch[aria-checked="true"]::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--charcoal); }
.swatch.is-out i::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1.5px; background: var(--alert); transform: rotate(45deg); }
.seg { display: flex; padding: 3px; border-radius: 12px; background: var(--kinari-deep); }
.seg button { flex: 1; min-height: 44px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; font-size: 15px; color: var(--charcoal); position: relative; transition: background .25s var(--ease), box-shadow .25s; }
.seg button[aria-checked="true"] { background: var(--paper); box-shadow: 0 2px 8px rgba(43,41,38,.12); }
.seg button.is-out { color: var(--sumi); text-decoration: line-through; text-decoration-color: var(--alert); }
.seg button small { display: block; font-size: 12px; font-weight: 500; color: var(--sumi); line-height: 1.2; text-decoration: none; }

.stockline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px var(--gutter) 0; padding: 14px 16px; border-radius: var(--r-part); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.stockline__text { font-size: 15px; font-weight: 700; }
.stockline__text small { display: block; font-size: 13px; font-weight: 500; color: var(--sumi); }
.qty { display: inline-flex; align-items: center; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--paper); }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; }
.qty button:disabled { opacity: .35; }
.qty svg { width: 18px; height: 18px; fill: none; stroke: var(--charcoal); stroke-width: 2; stroke-linecap: round; }
.qty output { min-width: 28px; text-align: center; font: 700 17px var(--ff-num); }

.acc { margin: 30px var(--gutter) 0; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 56px; font-size: 16px; font-weight: 700; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { width: 18px; height: 18px; fill: none; stroke: var(--sumi); stroke-width: 2; stroke-linecap: round; transition: transform .3s var(--ease); }
.acc details[open] summary svg { transform: rotate(180deg); }
.acc .acc__body { padding: 0 0 18px; font-size: 15px; color: #3F3B36; }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th { text-align: left; font-weight: 700; color: var(--sumi); padding: 8px 12px 8px 0; width: 30%; vertical-align: top; white-space: nowrap; }
.spec td { padding: 8px 0; }
.spec tr + tr th, .spec tr + tr td { border-top: 1px dashed var(--line); }

.maker-card { margin: 30px var(--gutter) 0; display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.maker-card__mark { width: 56px; height: 56px; border-radius: 50%; background: var(--charcoal); display: grid; place-items: center; }
.maker-card__mark svg { width: 28px; height: 28px; fill: none; stroke: #D8BC80; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.maker-card h3 { margin: 0; font-size: 16px; }
.maker-card p { margin: 0; font-size: 14px; color: var(--sumi); }

.buybar {
  position: absolute; z-index: 20; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b));
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px;
  border-radius: var(--r-pill);
  background: rgba(251, 248, 242, .8);
  -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7);
  box-shadow: var(--shadow-glass), 0 0 0 .5px rgba(43,41,38,.14);
}
.buybar__price { margin-right: auto; line-height: 1.2; }
.buybar__price .price { font-size: 20px; display: block; }
.buybar__price small { font-size: 12px; color: var(--sumi); font-weight: 500; }
.buybar .btn { min-height: 50px; padding: 0 20px; }

.item-nav { position: absolute; z-index: 10; top: calc(8px + var(--safe-t)); left: 10px; right: 10px; display: flex; justify-content: space-between; pointer-events: none; }
.item-nav > * { pointer-events: auto; }
.item-nav .r { display: flex; gap: 8px; }

/* ---------- カート ---------- */
.free-ship { margin: 4px var(--gutter) 18px; padding: 14px 16px; border-radius: var(--r-part); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.free-ship p { margin: 0; font-size: 14px; font-weight: 700; }
.free-ship .meter { height: 6px; margin-top: 10px; }
.cart-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-row { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--kinari); }
.cart-row__del { position: absolute; top: 0; right: 0; bottom: 0; width: 96px; border: 0; background: var(--alert); color: #fff; font-weight: 700; font-size: 15px; display: grid; place-items: center; }
.cart-row__del svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; display: block; margin: 0 auto 2px; }
.cart-row__body { position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 14px var(--gutter); background: var(--kinari); touch-action: pan-y; transition: transform .3s var(--ease); }
.cart-row__body.dragging { transition: none; }
.cart-row .photo { width: 84px; height: 84px; }
.cart-row__name { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.45; text-decoration: none; color: inherit; display: block; word-break: keep-all; }
.cart-row__var { margin: 2px 0 0; font-size: 13px; color: var(--sumi); }
.cart-row__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.cart-row__foot .price { font-size: 17px; }
.cart-row .qty button { width: 40px; height: 40px; }
.cart-row.removing { animation: row-out .32s var(--ease) forwards; }
@keyframes row-out { to { height: 0; opacity: 0; } }
.swipe-hint { margin: 10px var(--gutter) 0; font-size: 13px; color: var(--sumi); display: flex; align-items: center; gap: 6px; }
.swipe-hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.totals { margin: 22px var(--gutter) 0; }
.totals dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 0; font-size: 15px; }
.totals dd { padding-left: 12px; }
.totals dt { color: var(--sumi); }
.totals dd { margin: 0; text-align: right; font-family: var(--ff-num); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.totals .sum { padding-top: 12px; border-top: 1px solid var(--line); font-size: 17px; color: var(--charcoal); font-weight: 700; }
.totals dd.sum { font-size: 24px; }

.cta-bar { position: absolute; z-index: 20; left: 12px; right: 12px; bottom: calc(var(--tab-h) + 18px + var(--safe-b)); }
.screen--push .cta-bar { bottom: calc(10px + var(--safe-b)); }
.cta-bar .btn { width: 100%; min-height: 54px; box-shadow: 0 10px 26px rgba(43,41,38,.25); justify-content: space-between; padding: 0 10px 0 24px; }
.cta-bar .btn .pill { padding: 6px 14px; border-radius: var(--r-pill); background: rgba(251,248,242,.16); font-family: var(--ff-num); font-weight: 800; }
.screen--cart .scroller { padding-bottom: calc(var(--tab-h) + 120px + var(--safe-b)); }

/* ---------- 購入手続き ---------- */
.steps { display: flex; gap: 6px; padding: 0 var(--gutter); margin: 2px 0 6px; }
.steps span { flex: 1; height: 3px; border-radius: 2px; background: var(--kinari-deep); }
.steps span.on { background: var(--brass); }
.form-sec { margin: 24px var(--gutter) 0; }
.form-sec__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.form-sec__head .n { font-family: var(--ff-num); font-weight: 800; font-size: 13px; color: var(--brass-ink); letter-spacing: .1em; }
.form-sec__head h2 { margin: 0; font-size: 19px; font-feature-settings: "palt"; }
.group { background: var(--paper); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.field { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 8px; min-height: 52px; padding: 4px 16px; position: relative; }
.field + .field { border-top: 1px solid var(--line); }
.field label { font-size: 14px; font-weight: 700; color: var(--sumi); }
.field label .opt-tag { font-size: 12px; font-weight: 500; }
.field input, .field select { width: 100%; min-width: 0; min-height: 44px; border: 0; background: transparent; outline: none; font-size: 16px; color: var(--charcoal); padding: 0; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sumi) 50%), linear-gradient(135deg, var(--sumi) 50%, transparent 50%); background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input::placeholder { color: #77706A; }
.field.is-err { background: #F7E9E4; }
.field.is-err label { color: var(--alert); }
.field__err { grid-column: 1 / -1; margin: -4px 0 6px; font-size: 13px; font-weight: 700; color: var(--alert); }
.field__hint { grid-column: 2; margin: -6px 0 6px; font-size: 13px; color: var(--brass-ink); font-weight: 700; }
.field.ok::after { content: ""; position: absolute; right: 16px; top: 22px; width: 10px; height: 5px; border-left: 2px solid #4D6B47; border-bottom: 2px solid #4D6B47; transform: rotate(-45deg); }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.dates { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; scroll-snap-type: x proximity; }
.dates::-webkit-scrollbar { display: none; }
.date {
  flex: 0 0 64px; height: 78px; border: 0; border-radius: 14px; scroll-snap-align: start;
  display: grid; place-content: center; gap: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background .2s, color .2s, transform var(--t-press) var(--ease);
}
.date .m { font-size: 12px; font-weight: 700; color: var(--sumi); }
.date .d { font: 800 22px/1.15 var(--ff-num); }
.date .w { font-size: 13px; font-weight: 700; color: var(--sumi); }
.date.sat .w { color: #2F5476; } .date.sun .w { color: var(--alert); }
.date[aria-checked="true"] { background: var(--charcoal); color: #FBF8F2; box-shadow: none; }
.date[aria-checked="true"] .m, .date[aria-checked="true"] .w { color: #E6DCC6; }
.date--any { flex-basis: 84px; }
.date--any .d { font-family: var(--ff-ja); font-size: 15px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.slots .chip { justify-content: center; padding: 0 6px; min-height: 44px; font-size: 14px; }

.pay { list-style: none; margin: 0; padding: 0; }
.pay label { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; min-height: 58px; padding: 8px 16px; cursor: pointer; }
.pay li + li label { border-top: 1px solid var(--line); }
.pay input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: box-shadow .2s; }
.pay input:checked { box-shadow: inset 0 0 0 7px var(--charcoal); }
.pay .t { font-weight: 700; font-size: 15px; line-height: 1.4; }
.pay .t small { display: block; font-weight: 500; font-size: 13px; color: var(--sumi); }
.pay .fee { font-size: 13px; font-weight: 700; color: var(--sumi); white-space: nowrap; }

.mini-items { list-style: none; margin: 0; padding: 4px 16px; }
.mini-items li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; }
.mini-items li + li { border-top: 1px solid var(--line); }
.mini-items .photo { width: 48px; height: 48px; }
.mini-items .n { font-size: 14px; font-weight: 700; line-height: 1.45; word-break: keep-all; }
.mini-items .v { font-size: 13px; color: var(--sumi); }
.note { margin: 14px var(--gutter) 0; font-size: 13px; color: var(--sumi); line-height: 1.7; }

.processing { position: absolute; inset: 0; z-index: 60; display: grid; place-content: center; justify-items: center; gap: 16px; background: rgba(243, 238, 228, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-weight: 700; animation: fade-in .2s both; }
.processing .ptr__spin { width: 34px; height: 34px; border-width: 3px; animation: spin .7s linear infinite; margin: 0; }

/* ---------- 完了 ---------- */
.done { padding: 30px var(--gutter) 0; text-align: center; }
.done__mark { width: 96px; height: 96px; margin: 10px auto 18px; }
.done__mark circle { fill: none; stroke: var(--brass); stroke-width: 2; stroke-dasharray: 290; stroke-dashoffset: 290; animation: draw .8s var(--ease) forwards; }
.done__mark path { fill: none; stroke: var(--charcoal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s .55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h1 { margin: 0; font-size: 26px; line-height: 1.4; font-feature-settings: "palt"; word-break: keep-all; }
.done__lead { margin: 10px 0 0; color: var(--sumi); word-break: keep-all; }
.receipt { margin: 26px var(--gutter) 0; padding: 20px 18px; background: var(--paper); border-radius: 4px; box-shadow: 0 1px 0 var(--line), 0 14px 30px rgba(43,41,38,.08); position: relative; text-align: left; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: radial-gradient(circle at 6px 0, var(--paper) 6px, transparent 6.5px) 0 0 / 12px 8px repeat-x; }
.receipt dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 15px; }
.receipt dt { color: var(--sumi); font-weight: 700; font-size: 14px; }
.receipt dd { margin: 0; text-align: right; font-weight: 700; }
.demo-note { margin: 24px var(--gutter) 0; padding: 14px 16px; border-radius: var(--r-part); background: var(--brass-pale); font-size: 14px; color: #3F3B36; }
.done__actions { display: grid; gap: 10px; margin: 24px var(--gutter) 0; }

/* ---------- マイページ ---------- */
.profile { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 6px var(--gutter) 0; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--charcoal); color: #D8BC80; display: grid; place-items: center; font-size: 26px; font-weight: 700; box-shadow: 0 0 0 3px var(--kinari), 0 0 0 4.5px var(--brass); }
.profile h2 { margin: 0; font-size: 20px; }
.profile p { margin: 0; font-size: 14px; color: var(--sumi); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px var(--gutter) 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.stats a, .stats div { text-decoration: none; color: inherit; display: block; min-height: 44px; }
.stats a + a, .stats div + a, .stats a + div { border-left: 1px solid var(--line); }
.stats b { display: block; font: 800 24px/1.2 var(--ff-num); }
.stats span { font-size: 13px; font-weight: 700; color: var(--sumi); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.tl { position: relative; padding: 0 0 22px 30px; }
.tl::before { content: ""; position: absolute; left: 2px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--kinari); box-shadow: inset 0 0 0 2px var(--brass); }
.tl.is-new::before { background: var(--brass); }
.tl__date { font: 700 13px/1.5 var(--ff-num); color: var(--sumi); letter-spacing: .04em; }
.tl__card { display: block; margin-top: 6px; padding: 12px 14px; border-radius: var(--r-part); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: inherit; }
.tl__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tl__status { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: var(--r-pill); background: var(--kinari-deep); white-space: nowrap; }
.tl__status.prep { background: var(--brass-pale); color: #5A4318; }
.tl__thumbs { display: flex; gap: 6px; margin-top: 10px; }
.tl__thumbs .photo { width: 44px; height: 44px; }
.tl__no { font: 700 13px var(--ff-num); color: var(--sumi); letter-spacing: .04em; }

.list-group { margin: 0; padding: 0; list-style: none; background: var(--paper); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.list-group > li + li { border-top: 1px solid var(--line); }
.cell { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 8px 16px; width: 100%; border: 0; background: transparent; text-align: left; text-decoration: none; color: var(--charcoal); font-size: 16px; }
.cell__icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--charcoal); flex: none; }
.cell__icon svg { width: 18px; height: 18px; fill: none; stroke: #EADBB8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cell__main { flex: 1; min-width: 0; line-height: 1.45; }
.cell__main small { display: block; font-size: 13px; color: var(--sumi); }
.cell__chev { width: 14px; height: 14px; fill: none; stroke: var(--sumi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cell--danger { color: var(--alert); font-weight: 700; }
.cell--danger .cell__icon { background: var(--alert); }
.cell--danger .cell__icon svg { stroke: #fff; }
.switch { position: relative; width: 52px; height: 32px; flex: none; border: 0; padding: 0; border-radius: var(--r-pill); background: #CFC6B6; transition: background .25s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .3s var(--ease); }
.switch[aria-checked="true"] { background: var(--charcoal); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.addr { padding: 14px 16px; font-size: 15px; line-height: 1.7; }
.addr b { font-size: 16px; }

/* ---------- アプリについて ---------- */
.about-hero { display: grid; justify-items: center; gap: 10px; padding: 16px var(--gutter) 0; text-align: center; }
.about-hero img { width: 108px; height: 108px; border-radius: 24px; box-shadow: 0 14px 30px rgba(43,41,38,.25); }
.about-hero h1 { margin: 6px 0 0; font-size: 26px; }
.about-hero p { margin: 0; color: var(--sumi); font-size: 14px; }
.about-body { margin: 24px var(--gutter) 0; font-size: 15px; }
.about-body p { margin: 0 0 12px; }
.disclaimer { padding: 16px; border-radius: var(--r-part); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tech-tags span { padding: 6px 12px; border-radius: var(--r-pill); background: var(--kinari-deep); font-size: 14px; font-weight: 700; }

/* ---------- シート（ハーフシート） ---------- */
.sheet-layer { position: absolute; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(43, 41, 38, .32); animation: fade-in .3s both; }
.sheet {
  position: absolute; left: 8px; right: 8px; bottom: calc(8px + var(--safe-b));
  max-height: calc(100% - 60px - var(--safe-t));
  display: flex; flex-direction: column;
  border-radius: var(--r-sheet);
  background: rgba(251, 248, 242, .94);
  -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: 0 20px 60px rgba(43,41,38,.3), 0 0 0 .5px rgba(43,41,38,.15);
  animation: sheet-in var(--t-sheet) var(--ease) both;
  touch-action: none;
}
.sheet.closing { animation: sheet-out .3s var(--ease) both; }
.sheet-backdrop.closing { animation: fade-in .3s reverse both; }
@keyframes sheet-in { from { transform: translateY(105%); } }
@keyframes sheet-out { to { transform: translateY(110%); } }
.sheet__grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(43,41,38,.25); margin: 8px auto 0; flex: none; }
.sheet__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 4px 8px 6px; flex: none; }
.sheet__head h2 { margin: 0; font-size: 17px; text-align: center; }
.sheet__head .l { justify-self: start; } .sheet__head .r { justify-self: end; }
.text-btn { min-height: 44px; padding: 0 12px; border: 0; background: transparent; font-size: 16px; font-weight: 700; color: var(--brass-ink); border-radius: 10px; }
.sheet__body { overflow-y: auto; padding: 4px 20px 20px; overscroll-behavior: contain; touch-action: pan-y; }
.sheet__foot { padding: 10px 16px 16px; flex: none; }
.sheet h3 { margin: 18px 0 10px; font-size: 14px; color: var(--sumi); }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin-top: 10px; font-weight: 700; }
.sort-list { list-style: none; margin: 0; padding: 0; }
.sort-list button { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; border: 0; background: transparent; font-size: 16px; text-align: left; }
.sort-list li + li button { border-top: 1px solid var(--line); }
.sort-list svg { width: 20px; height: 20px; fill: none; stroke: var(--charcoal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.confirm-text { margin: 4px 0 0; color: #3F3B36; }

/* ---------- トースト ---------- */
.toast {
  position: absolute; z-index: 70; left: 50%; top: calc(10px + var(--safe-t));
  display: flex; align-items: center; gap: 12px; max-width: calc(100% - 24px); width: max-content;
  padding: 10px 10px 10px 18px; border-radius: var(--r-pill);
  background: var(--charcoal); color: #FBF8F2; font-size: 15px; font-weight: 700;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  transform: translate(-50%, -150%); opacity: 0; transition: transform .45s var(--ease), opacity .3s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast:empty { display: none; }
.toast img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; }
.toast button { min-height: 36px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: #FBF8F2; color: var(--charcoal); font-weight: 800; font-size: 14px; }
.toast .t { line-height: 1.4; word-break: keep-all; }

/* ---------- スプラッシュ・オンボーディング ---------- */
.splash { position: absolute; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 16px; background: var(--charcoal); color: #FBF8F2; transition: opacity .35s; }
.splash img { width: 104px; height: 104px; border-radius: 24px; animation: splash-in .6s var(--ease) both; }
.splash p { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: .3em; padding-left: .3em; animation: fade-in .5s .15s both; }
.splash.out { opacity: 0; pointer-events: none; }
@keyframes splash-in { from { transform: scale(.86); opacity: 0; } }
.onb { position: absolute; inset: 0; z-index: 80; background: var(--kinari); display: flex; flex-direction: column; }
.onb__track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.onb__track::-webkit-scrollbar { display: none; }
.onb__slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; flex-direction: column; }
.onb__img { flex: 1; min-height: 0; position: relative; }
.onb__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.onb__text { padding: 26px 28px 8px; }
.onb__text h2 { margin: 0 0 10px; font-size: 28px; line-height: 1.35; font-feature-settings: "palt"; word-break: keep-all; }
.onb__text p { margin: 0; color: #3F3B36; word-break: keep-all; }
.onb__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px calc(18px + var(--safe-b)); }
.onb__dots { display: flex; gap: 6px; }
.onb__dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-strong); transition: width .3s var(--ease); }
.onb__dots i.on { width: 18px; background: var(--charcoal); }
.onb__skip { position: absolute; z-index: 2; top: calc(10px + var(--safe-t)); right: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .skeleton { animation: none; }
}
.addr p { margin: 0; }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.toast button { white-space: nowrap; flex: none; }
.field[data-f="pref"].ok::after { display: none; }
.receipt dd, .addr p { word-break: keep-all; overflow-wrap: anywhere; }
