/* =============================================================
   MOTO KOHEI — Shop / Editions（EC）
   style.css の後に読み込む。トークン（--ink 等）は style.css を参照。
   対象：ショップ系ページ（shop / products / product / cart / checkout /
   payment / order-complete / faq / guide / shop-about / 特商法 / 規約）
   ＋ 全ページ共通のヘッダー・カートボタン、カートドロワー、フッター。
   JS は js/shop.js、商品データは data/shop.json。
   ============================================================= */

/* ---- header cart button ---- */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  color: var(--ink-soft);
  transition: color .3s var(--ease), opacity .3s var(--ease);
}
.cart-btn[hidden] { display: none; }
.cart-btn:hover { color: var(--ink); }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.cart-btn .cart-count {
  position: absolute;
  top: 3px; right: 1px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
  letter-spacing: 0;
  transform: scale(0);
  transition: transform .35s var(--ease);
}
.cart-btn.has-items .cart-count { transform: scale(1); }
body.nav-open .cart-btn { opacity: 0; pointer-events: none; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 34px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), opacity .4s var(--ease);
}
html[data-lang="ja"] .btn { letter-spacing: .14em; font-size: 12.5px; }
.btn .arw { transition: transform .45s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn--solid { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.btn--solid:not(:disabled):hover { background: #ffffff; border-color: #ffffff; }
.btn--line { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn--line:hover { border-color: var(--ink); }
.btn--block { display: flex; width: 100%; }
.btn--grow { flex: 1 1 auto; }
.btn:disabled, .btn.is-disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }
.btn:focus-visible { outline: 2px solid var(--ink-soft); outline-offset: 3px; }

/* ---- shop page frame + sub navigation ---- */
.shop-top { padding-top: clamp(104px, 11vw, 140px); position: relative; z-index: 2; }
.shop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.shop-nav::-webkit-scrollbar { display: none; }
.shop-nav-brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
  margin-right: clamp(4px, 1.4vw, 18px);
}
.shop-nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.shop-nav a:hover { color: var(--ink); }
.shop-nav a.is-current { color: var(--ink); border-color: var(--ink-dim); }

.crumbs {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--ink-faint);
}
.crumbs a { color: var(--ink-dim); transition: color .3s var(--ease); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { margin: 0 .7em; opacity: .6; }

.shop-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin: clamp(40px, 6vw, 80px) 0 clamp(30px, 4vw, 52px);
}
.shop-lead {
  margin-top: 18px;
  max-width: 56ch;
  font-size: 14px;
  line-height: 2;
  color: var(--ink-dim);
}
.shop-count { text-align: right; }
.shop-count strong {
  display: block;
  font-family: var(--display); font-weight: 200;
  font-size: clamp(30px, 5vw, 52px); line-height: 1; color: var(--ink);
}
.shop-count span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--ink-faint);
}

/* ---- shop top hero ---- */
.shop-hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 110px) clamp(24px, 4vw, 60px);
}
.shop-hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(54px, 9vw, 128px);
  line-height: .95;
  color: var(--ink);
  letter-spacing: -.01em;
}
.shop-hero-title em { font-style: italic; color: var(--ink-soft); }
.shop-hero-sub {
  margin-top: clamp(20px, 3vw, 32px);
  font-family: var(--mincho);
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 2;
  letter-spacing: .08em;
  color: var(--ink-soft);
}
html[data-lang="en"] .shop-hero-sub { font-family: var(--serif); font-style: italic; letter-spacing: .01em; line-height: 1.6; }
.shop-hero-text {
  margin-top: 18px;
  max-width: 44ch;
  font-size: 14px;
  line-height: 2.05;
  color: var(--ink-dim);
}
.shop-hero-cta { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 14px; }
.shop-hero-fig { position: relative; margin: 0; overflow: hidden; background: var(--bg-3); }
.shop-hero-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: brightness(.94); }
.shop-hero-fig::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.shop-hero-fig figcaption {
  position: absolute; left: 18px; bottom: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.78);
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

/* ---- three pillars / guide tiles ---- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.pillars--4 { grid-template-columns: repeat(4, 1fr); }
.pillar { display: block; background: var(--bg); padding: clamp(28px, 3.4vw, 46px); }
.section--alt .pillar { background: var(--bg-2); }
.pillar .pillar-n {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .3em; color: var(--ink-faint);
}
.pillar h3 {
  margin-top: 18px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px); color: var(--ink); line-height: 1.25;
}
.pillar p { margin-top: 14px; font-size: 13.5px; line-height: 2; color: var(--ink-dim); }
a.pillar { transition: background .45s var(--ease); }
a.pillar:hover { background: var(--bg-3); }
a.pillar .pillar-go {
  display: inline-block; margin-top: 18px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft);
}

.shop-band {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.shop-band .lead {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(24px, 3.4vw, 40px); line-height: 1.4; color: var(--ink);
}
.shop-band .sub { margin-top: 18px; font-size: 13.5px; color: var(--ink-dim); line-height: 2; }
.shop-band .btn { margin-top: clamp(26px, 3.4vw, 40px); }

/* ---- product cards ---- */
.ed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 30px);
}
.ed-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ed-card { display: block; }
.ed-frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% 30%, #1a1a1a, #0f0f0f);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: box-shadow .6s var(--ease);
}
.ed-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: clamp(12px, 1.6vw, 22px);
  transition: transform 1.2s var(--ease);
}
@media (hover: hover) {   /* タッチ端末では、押した後に拡大したまま残るので付けない */
  .ed-card:hover .ed-frame { box-shadow: inset 0 0 0 1px var(--line-strong); }
  .ed-card:hover .ed-frame img { transform: scale(1.04); }
}
.ed-card:focus-visible { outline: none; }
.ed-card:focus-visible .ed-frame { box-shadow: inset 0 0 0 1.5px var(--ink); }
/* 作品の状態の札（左上。お手続き中など）。明るい壁の写真の上でも読めるように、濃いガラス＋明るい文字（2026-11-11） */
.ed-status {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); background: rgba(12,12,12,.74);
  border: 1px solid var(--line); border-radius: 100px; padding: 7px 12px 7px 11px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
/* 売約済み（一覧だけ）：左上の三角に SOLD。作品は隠さない。赤は画廊の売約の赤丸と同じ色 */
.ed-sold {
  --t: 74px;
  position: absolute; top: 0; left: 0; z-index: 2;
  width: var(--t); height: var(--t);
  background: #b8433a;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}
.ed-sold span {
  position: absolute; top: calc(var(--t) * .31 - .5em); left: calc(var(--t) * -.24);
  width: calc(var(--t) * 1.1);
  font-family: var(--mono); font-size: 11px; font-weight: 600; line-height: 1;
  letter-spacing: .16em; padding-left: .16em; text-align: center;
  color: #fff; transform: rotate(-45deg);
}
@media (max-width: 600px) {
  .ed-sold { --t: 60px; }
  .ed-sold span { font-size: 10px; }
}
.ed-card.is-sold .ed-price { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; color: var(--ink-faint); }
.ed-cap {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: 16px;
}
.ed-title { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink); }
.ed-no { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--ink-faint); white-space: nowrap; }
.ed-meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: 6px;
}
.ed-kind { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.ed-price { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); letter-spacing: .02em; white-space: nowrap; }
.shop-none { grid-column: 1 / -1; color: var(--ink-dim); font-size: 14px; }

/* list toolbar */
.shop-tools {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-dim); border: 1px solid var(--line); border-radius: 100px; padding: 9px 16px;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip.is-on { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.sort {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint);
}
.sort select, .field select, .cform select {
  appearance: none; -webkit-appearance: none;
  font-family: var(--sans); font-size: 13.5px; color: var(--ink);
  background: rgba(255,255,255,.02) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%239c988f' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
  border: 1px solid var(--line); border-radius: 2px;
  padding: 10px 36px 10px 14px;
}
.sort select option, .field select option, .cform select option { background: #141414; color: var(--ink); }

/* ---- product detail ---- */
.pd {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 48px);
}
.pd-gallery { position: sticky; top: 96px; }
.pd-main {
  position: relative;
  aspect-ratio: 1 / 1;
  background: radial-gradient(120% 120% at 50% 30%, #1a1a1a, #0e0e0e);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  overflow: hidden;
}
.pd-main img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: clamp(14px, 2.4vw, 36px);
  transition: opacity .35s var(--ease);
}
.pd-main img.is-swap { opacity: 0; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.pd-thumb {
  flex: 0 0 auto; width: 68px; height: 68px; overflow: hidden; border-radius: 2px;
  opacity: .45; box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: opacity .3s var(--ease), box-shadow .3s var(--ease);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { opacity: .8; }
.pd-thumb.is-active { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--ink); }
.pd-imgnote { margin-top: 12px; font-size: 11.5px; color: var(--ink-faint); line-height: 1.8; }

.pd-info .u-label { display: block; }
.pd-title {
  margin-top: 14px;
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--ink);
}
.pd-kind { margin-top: 16px; font-size: 13px; letter-spacing: .04em; color: var(--ink-soft); }
.pd-notorig { margin-top: 6px; font-size: 12px; color: var(--ink-faint); line-height: 1.8; }
.pd-price {
  margin-top: clamp(20px, 2.6vw, 30px);
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--display); font-weight: 300; font-size: clamp(26px, 2.8vw, 34px);
  letter-spacing: .02em; color: var(--ink);
}
.pd-price small { font-family: var(--sans); font-size: 11.5px; color: var(--ink-faint); letter-spacing: .06em; }
.pd-desc {
  margin-top: 18px; padding-bottom: clamp(22px, 3vw, 32px);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mincho); font-size: 14.5px; line-height: 2.1; letter-spacing: .04em; color: var(--ink-dim);
}
html[data-lang="en"] .pd-desc { font-family: var(--serif); font-size: 17px; line-height: 1.7; letter-spacing: 0; }

.opt-group { border: 0; margin-top: clamp(22px, 3vw, 30px); min-width: 0; }
.opt-group legend {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 12px;
}
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opts--col { grid-template-columns: 1fr; }
.opt { position: relative; cursor: pointer; display: block; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-in {
  display: flex; flex-direction: column; gap: 3px;
  padding: 13px 14px;
  border: 1px solid var(--line); border-radius: 2px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.opt--wide .opt-in { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.opt:hover .opt-in { border-color: var(--line-strong); }
.opt input:checked + .opt-in { border-color: var(--ink); background: rgba(255,255,255,.04); }
.opt input:focus-visible + .opt-in { outline: 2px solid var(--ink-soft); outline-offset: 2px; }
.opt-main { font-family: var(--sans); font-size: 14px; color: var(--ink); }
.opt-sub { font-size: 11px; color: var(--ink-faint); letter-spacing: .02em; }
.opt-price { font-size: 12.5px; color: var(--ink-soft); letter-spacing: .02em; }
.opt-note { margin-top: 10px; font-size: 12px; color: var(--ink-faint); line-height: 1.8; }

.pd-buy { display: flex; gap: 12px; margin-top: clamp(26px, 3.4vw, 36px); }
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 100px;
  height: 52px; padding: 0 6px; flex: 0 0 auto;
}
.qty button {
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 17px; color: var(--ink-soft);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.qty button:hover:not(:disabled) { background: rgba(255,255,255,.07); color: var(--ink); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty-n { min-width: 26px; text-align: center; font-family: var(--sans); font-size: 14px; color: var(--ink); }
.qty--sm { height: 36px; padding: 0 3px; }
.qty--sm button { width: 28px; height: 28px; font-size: 15px; }
.qty--sm .qty-n { min-width: 22px; font-size: 13px; }
.pd-status { min-height: 1.2em; margin-top: 12px; font-size: 12.5px; color: var(--ink-soft); }

.pd-assure { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.pd-assure li {
  position: relative; padding-left: 20px;
  font-size: 12.5px; color: var(--ink-dim); line-height: 1.7;
}
.pd-assure li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 8px; height: 4px;
  border: solid var(--ink-dim); border-width: 0 0 1.2px 1.2px;
  transform: rotate(-45deg);
}

.pd-acc { margin-top: clamp(26px, 3.4vw, 36px); border-top: 1px solid var(--line-soft); }
.pd-acc details, .faq details { border-bottom: 1px solid var(--line-soft); }
.pd-acc summary, .faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
  font-family: var(--sans); font-size: 14px; color: var(--ink-soft); letter-spacing: .03em;
  transition: color .3s var(--ease);
}
.pd-acc summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.pd-acc summary::after, .faq summary::after {
  content: "+"; flex: 0 0 auto; font-family: var(--display); font-weight: 200; font-size: 22px; line-height: 1;
  color: var(--ink-dim); transition: transform .4s var(--ease);
}
.pd-acc details[open] summary::after, .faq details[open] summary::after { transform: rotate(45deg); }
.pd-acc summary:hover, .faq summary:hover { color: var(--ink); }
.pd-acc details > p, .pd-acc details > dl { padding-bottom: 20px; }
.pd-acc p { font-size: 13px; line-height: 2; color: var(--ink-dim); }
.pd-acc a, .faq a, .guide a, .about-text a { color: var(--ink-soft); border-bottom: 1px solid var(--line-strong); }
.pd-acc a:hover, .faq a:hover, .guide a:hover, .about-text a:hover { color: var(--ink); }
.pd-spec div { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 7px 0; }
.pd-spec dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); padding-top: 2px; }
.pd-spec dd { font-size: 13px; line-height: 1.85; color: var(--ink-dim); }
.pd-original { margin-top: 26px; font-size: 13px; color: var(--ink-dim); line-height: 1.9; }
.pd-original a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.pd-missing { grid-column: 1 / -1; padding-block: clamp(60px, 10vw, 140px); text-align: center; }
/* product page (2026-11): size first, payment line, consult button, venue (QR) note, sold box */
.pd-dims { margin-top: 18px; font-size: 14px; color: var(--ink); letter-spacing: .03em; }
.pd-dims + .pd-kind { margin-top: 6px; }
.pd-pay { margin-top: 12px; font-size: 12.5px; color: var(--ink-dim); line-height: 1.8; }
.pd-consult { margin-top: 10px; }
.pd-venue { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 2px; font-size: 13px; line-height: 1.8; color: var(--ink-soft); }
.pd-assure a, .pd-notify a { color: var(--ink-soft); border-bottom: 1px solid var(--line-strong); }
.pd-soldbox { margin-top: clamp(22px, 3vw, 30px); padding: clamp(18px, 2.4vw, 24px); border: 1px solid var(--line); border-radius: 2px; background: rgba(255,255,255,.02); }
.pd-soldlead { font-size: 14px; color: var(--ink); }
.pd-soldsub { margin-top: 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); }
.pd-sib { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.pd-sibcard { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pd-sibcard img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-3); border-radius: 1px; }
.pd-sibname { font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-sibprice { font-size: 12px; color: var(--ink-dim); }
.pd-soldacts { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.pd-notify { margin-top: 14px; font-size: 12.5px; color: var(--ink-dim); }
/* shop top: commission band */
.cm-steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; padding: 0; list-style: none; font-size: 13px; color: var(--ink-soft); }
.cm-steps li { display: flex; align-items: baseline; gap: 8px; }
.cm-n { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-dim); }
.cm-more { margin-top: 18px; font-size: 12.5px; }
.cm-more a { color: var(--ink-dim); border-bottom: 1px solid var(--line-strong); }

.pd-missing .btn { margin-top: 28px; }

/* sticky buy bar (mobile only) */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 75;
  display: none;
  align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  background: rgba(13,13,13,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft);
  transform: translateY(110%);
  transition: transform .5s var(--ease);
}
.sticky-buy.is-shown { transform: none; }
.sb-info { display: flex; flex-direction: column; min-width: 0; }
.sb-name { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-price { font-size: 13px; color: var(--ink-soft); }
.sticky-buy .btn { min-height: 46px; padding: 0 22px; flex: 0 0 auto; }
.nm-no { font-family: var(--mono); font-style: normal; font-size: .68em; letter-spacing: .14em; color: var(--ink-faint); margin-left: .3em; }

/* ---- cart lines / summary (drawer, cart, checkout, complete) ---- */
.cart-lines { display: flex; flex-direction: column; }
.cart-line {
  display: grid; grid-template-columns: 84px 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line-soft);
}
.cart-line:first-child { padding-top: 4px; }
.cart-line.is-ng { opacity: .6; }
.cl-thumb { display: block; aspect-ratio: 1; background: var(--bg-3); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-soft); }
.cl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cl-body { min-width: 0; position: relative; }
.cl-name { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink); line-height: 1.3; padding-right: 52px; }
.cl-name a:hover { opacity: .75; }
.cl-spec { margin-top: 4px; font-size: 12px; color: var(--ink-faint); line-height: 1.7; }
.cl-spec .sep { margin: 0 .3em; opacity: .5; }
.cl-ng { margin-top: 6px; font-size: 12px; color: #cf9a9a; }
.cl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.cl-qty { font-size: 12.5px; color: var(--ink-dim); }
.cl-price { font-size: 14.5px; color: var(--ink); letter-spacing: .02em; }
.cl-remove {
  position: absolute; top: 2px; right: 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.cl-remove:hover { color: var(--ink); border-color: var(--ink-dim); }
.cart-line.is-ng .cl-remove { position: static; margin-top: 8px; }
.cart-line > .cl-body:only-child { grid-column: 1 / -1; }   /* 画像のない行（取り扱い終了など）は全幅で */

.sum { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 22px; }
.sum div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.sum dt { font-size: 13px; color: var(--ink-dim); }
.sum dt small { font-size: 11px; color: var(--ink-faint); }
.sum dd { font-size: 14px; color: var(--ink-soft); letter-spacing: .02em; }
.sum .sum-total { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.sum .sum-total dt { color: var(--ink); font-size: 14px; }
.sum .sum-total dd { font-family: var(--display); font-weight: 300; font-size: 26px; color: var(--ink); }

.freeship { margin-bottom: 18px; }
.freeship p { font-size: 12.5px; color: var(--ink-dim); }
.freeship p b { color: var(--ink); font-weight: 400; }
.freeship-bar { display: block; height: 2px; margin-top: 10px; background: var(--line); border-radius: 2px; overflow: hidden; }
.freeship-bar span { display: block; height: 100%; background: var(--ink-soft); transition: width .6s var(--ease); }
.freeship.is-free p { color: var(--ink-soft); }

.cart-empty { padding: clamp(40px, 6vw, 80px) 0; text-align: center; }
.cart-empty p { font-size: 14px; color: var(--ink-dim); margin-bottom: 26px; }

/* ---- cart drawer ---- */
.drawer { position: fixed; inset: 0; z-index: 95; visibility: hidden; transition: visibility 0s linear .6s; }
.drawer.is-open { visibility: visible; transition: none; }
.drawer-scrim {
  position: absolute; inset: 0; background: rgba(0,0,0,.6);
  opacity: 0; transition: opacity .5s var(--ease);
}
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  display: flex; flex-direction: column;
  background: #121212;
  border-left: 1px solid var(--line-soft);
  transform: translateX(100%);
  transition: transform .6s var(--ease);
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px; border-bottom: 1px solid var(--line-soft);
}
.drawer-title { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--ink); }
.drawer-n { font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: .1em; color: var(--ink-faint); vertical-align: middle; margin-left: 6px; }
.drawer-x { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink-dim); transition: background .3s var(--ease), color .3s var(--ease); }
.drawer-x:hover { background: rgba(255,255,255,.06); color: var(--ink); }
.drawer-x svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.3; fill: none; }
.drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 18px 26px; overscroll-behavior: contain; }
.drawer-foot { padding: 20px 26px max(22px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 10px; }
.drawer-foot:empty { display: none; }
.drawer-foot .sum { margin-bottom: 12px; }
@media (prefers-reduced-motion: reduce) {
  .drawer-panel, .drawer-scrim { transition: none; }
}

/* ---- checkout steps & layout ---- */
.steps {
  display: flex; margin: clamp(30px, 4vw, 48px) 0 clamp(30px, 4vw, 50px);
  counter-reset: step;
}
.steps li {
  flex: 1 1 0;
  padding-top: 18px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.steps li::before { content: "0" counter(step) "\00a0\00a0"; }
.steps li.is-done { color: var(--ink-dim); border-top-color: var(--ink-dim); }
.steps li.is-current { color: var(--ink); border-top: 2px solid var(--ink); padding-top: 17px; }
.steps li + li { margin-left: 6px; }

.co {
  display: grid; grid-template-columns: 1fr minmax(300px, 380px);
  gap: clamp(30px, 5vw, 72px); align-items: start;
}
.co-side { position: sticky; top: 96px; }
.co-box { border: 1px solid var(--line-soft); padding: clamp(22px, 2.6vw, 32px); background: rgba(255,255,255,.012); display: flex; flex-direction: column; gap: 10px; }
.co-box .sum { margin-bottom: 14px; }
.co-box .cart-line { grid-template-columns: 56px 1fr; gap: 12px; padding: 12px 0; }
.co-box .cl-name { font-size: 15px; padding-right: 0; }
.co-sec + .co-sec { margin-top: clamp(36px, 5vw, 56px); }
.co-h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); color: var(--ink);
  padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.co-edit { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); border-bottom: 1px solid var(--line-strong); }
.co-edit:hover { color: var(--ink); }
.co-terms div { display: grid; grid-template-columns: 132px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.co-terms dt { font-size: 12.5px; color: var(--ink-faint); }
.co-terms dd { font-size: 13.5px; color: var(--ink-soft); line-height: 1.9; }
.co-confirm { margin-top: 20px; padding: 16px 18px; border-left: 2px solid var(--ink-dim); background: rgba(255,255,255,.025); font-size: 13px; line-height: 1.9; color: var(--ink-soft); }
.co-confirm b { color: var(--ink); font-weight: 500; }
.co-fine { margin-top: 14px; font-size: 12px; line-height: 1.9; color: var(--ink-faint); }
.co-fine a { color: var(--ink-dim); border-bottom: 1px solid var(--line-strong); }
.co-agree { margin: 4px 0 6px; }
.co-status { min-height: 1em; font-size: 12.5px; line-height: 1.7; color: var(--ink-dim); }
.co-status.is-error { color: #cf9a9a; }
.co-err { font-size: 12.5px; color: #cf9a9a; }
.co-secure { display: flex; gap: 10px; font-size: 11.5px; line-height: 1.8; color: var(--ink-faint); margin-top: 4px; }
.co-secure svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; stroke: var(--ink-dim); stroke-width: 1.3; fill: none; }
.co-giftline { margin-top: 12px; font-size: 12.5px; color: var(--ink-dim); }
.pay-marks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pay-marks li {
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 3px; padding: 4px 7px;
}
.co-notice {
  margin-bottom: clamp(22px, 3vw, 32px);
  padding: 14px 18px;
  font-size: 13px; line-height: 1.85;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}
.co-notice[hidden] { display: none; }

.gift-opt {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 22px; padding: 18px; border: 1px solid var(--line-soft); cursor: pointer;
}
.gift-opt input { margin-top: 4px; accent-color: #f2f0ea; width: 16px; height: 16px; flex: 0 0 auto; }
.gift-opt span { font-size: 12.5px; line-height: 1.9; color: var(--ink-dim); }
.gift-opt b { display: block; font-weight: 400; font-size: 14px; color: var(--ink); }

/* ---- payment form (preview) ---- */
.pay-form fieldset { border: 0; min-width: 0; }
.pay-form fieldset + fieldset { margin-top: clamp(30px, 4vw, 44px); }
.pay-form legend {
  width: 100%;
  font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); color: var(--ink);
  padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line);
}
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field > span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.field > span i { font-style: normal; color: #cf9a9a; margin-left: 4px; }
.field input {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 2px;
  padding: 13px 15px; width: 100%;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus { outline: none; border-color: var(--line-strong); background-color: rgba(255,255,255,.04); }
.field input.is-bad, .field select.is-bad { border-color: rgba(207,154,154,.7); }
.field select { padding: 13px 36px 13px 15px; font-size: 15px; }
.ship-method {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; border: 1px solid var(--ink-dim); border-radius: 2px;
  font-size: 14px; color: var(--ink);
}
.ship-method small { font-size: 12px; color: var(--ink-faint); }
.pm-list { display: flex; flex-direction: column; gap: 8px; }
.pm-panel {
  margin-top: 4px; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 2px;
  font-size: 12.5px; line-height: 1.9; color: var(--ink-dim);
}
.pm-panel[hidden] { display: none; }
.pm-mock { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pm-mock span {
  height: 46px; border: 1px solid var(--line); border-radius: 2px;
  display: flex; align-items: center; padding: 0 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-faint);
  background: rgba(255,255,255,.015);
}
.pm-mock span.full { grid-column: 1 / -1; }
.pay-submit { margin-top: clamp(30px, 4vw, 44px); display: flex; flex-direction: column; gap: 12px; }
.pay-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-dim); }
.pay-total b { font-family: var(--display); font-weight: 300; font-size: 26px; color: var(--ink); }

/* ---- order complete ---- */
.done { max-width: 760px; margin-inline: auto; text-align: center; }
.done-mark {
  width: 64px; height: 64px; margin: 0 auto 28px; border-radius: 50%;
  border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center;
}
.done-mark svg { width: 26px; height: 26px; stroke: var(--ink); stroke-width: 1.3; fill: none; }
.done h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 5vw, 58px); line-height: 1.15; color: var(--ink); }
.done .done-sub { margin-top: 18px; font-size: 14px; line-height: 2; color: var(--ink-dim); }
.done-no { margin-top: 26px; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--ink-faint); }
.done-no b { color: var(--ink); font-weight: 400; letter-spacing: .14em; }
.done-order { margin-top: clamp(36px, 5vw, 56px); text-align: left; border-top: 1px solid var(--line); padding-top: 18px; }
.done-order:empty { display: none; }
.done .co-notice { margin-top: 24px; text-align: left; }
.timeline {
  margin-top: clamp(40px, 6vw, 70px); text-align: left;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
}
.timeline li { background: var(--bg); padding: 22px 18px; }
.timeline .tl-n { font-family: var(--mono); font-size: 10px; letter-spacing: .26em; color: var(--ink-faint); }
.timeline h3 { margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--ink); }
.timeline p { margin-top: 8px; font-size: 12px; line-height: 1.85; color: var(--ink-dim); }
.done-actions { margin-top: clamp(36px, 5vw, 56px); display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---- FAQ / guide / about ---- */
.faq { max-width: 860px; }
.faq-group { scroll-margin-top: 100px; }
.faq-group + .faq-group { margin-top: clamp(40px, 6vw, 72px); }
.faq-group > h2 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.faq summary { font-size: 15px; color: var(--ink); padding: 22px 0; line-height: 1.6; }
.faq details > div { padding: 0 0 24px; font-size: 13.5px; line-height: 2.05; color: var(--ink-dim); max-width: 70ch; }
.faq details > div p + p { margin-top: 10px; }
.faq-index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(36px, 5vw, 56px); }

.guide { max-width: 900px; }
.guide-sec { padding-block: clamp(36px, 5vw, 60px); border-top: 1px solid var(--line-soft); scroll-margin-top: 100px; }
.guide-sec:first-child { border-top: 0; padding-top: 0; }
.guide-sec h2 {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 36px); color: var(--ink); margin-bottom: 18px;
}
.guide-sec h2 .gn { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--ink-faint); }
.guide-sec p, .guide-sec li { font-size: 14px; line-height: 2.05; color: var(--ink-dim); }
.guide-sec p + p { margin-top: 12px; }
.guide-sec ul.dots { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; padding-left: 1.2em; list-style: disc; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 10px; background: var(--line-soft); border: 1px solid var(--line-soft); counter-reset: flow; }
.flow li { list-style: none; background: var(--bg); padding: 22px 18px; counter-increment: flow; }
.flow li::before { content: "0" counter(flow); display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .26em; color: var(--ink-faint); margin-bottom: 10px; }
.flow b { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.flow span { display: block; font-size: 12.5px; line-height: 1.85; color: var(--ink-dim); }
.flow span span { display: inline; font-size: inherit; line-height: inherit; }   /* 文中の数字（data-shop-val など）は改行しない */
.price-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13.5px; }
.price-table th, .price-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line-soft); color: var(--ink-dim); font-weight: 300; }
.price-table th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 400; }
.price-table td:not(:first-child), .price-table th:not(:first-child) { text-align: right; }
.price-table td strong { color: var(--ink); font-weight: 400; }
.table-scroll { overflow-x: auto; }

.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 2vw, 24px); counter-reset: proc; }
.process li { list-style: none; counter-increment: proc; border-top: 1px solid var(--line); padding-top: 18px; }
.process li::before { content: "0" counter(proc); font-family: var(--mono); font-size: 10.5px; letter-spacing: .26em; color: var(--ink-faint); }
.process h3 { margin-top: 12px; font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--ink); }
.process p { margin-top: 8px; font-size: 12.5px; line-height: 1.95; color: var(--ink-dim); }
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.about-split figure { margin: 0; position: relative; overflow: hidden; background: var(--bg-3); }
.about-split figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.2) brightness(.92); }
.about-split figure::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.about-text p { font-size: 14.5px; line-height: 2.1; color: var(--ink-dim); }
.about-text p + p { margin-top: 16px; }
.about-quote { font-family: var(--mincho); font-size: clamp(20px, 2.4vw, 28px); line-height: 1.9; letter-spacing: .08em; color: var(--ink); margin-bottom: 26px; }
html[data-lang="en"] .about-quote { font-family: var(--serif); font-style: italic; letter-spacing: 0; line-height: 1.5; }

/* legal table (特商法) */
.legal-table { margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.legal-table > div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.legal-table dt { font-size: 13px; color: var(--ink-soft); line-height: 1.9; }
.legal-table dd { font-size: 13.5px; line-height: 1.95; color: var(--ink-dim); }
.legal-table dd p + p { margin-top: 8px; }
.todo { color: #e4c9a8; background: rgba(217,180,138,.1); padding: 0 .3em; border-radius: 2px; }

/* footer: 4 columns (brand / pages / shop / connect) + base links */
.footer-grid--4 { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.footer-meta a + a { margin-left: .9em; }

/* lightbox → edition link (works pages) */
.lb-shop {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px; align-self: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft); border-bottom: 1px solid var(--line-strong); padding-bottom: 3px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.lb-shop:hover { color: var(--ink); border-color: var(--ink); }
.lb-shop[hidden] { display: none; }

/* contact topic select */
.cform select { font-size: 15px; padding: 13px 38px 13px 15px; width: 100%; background-position: right 12px center; }
.cform select:focus { outline: none; border-color: var(--line-strong); }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .ed-grid { grid-template-columns: repeat(3, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .pillars--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .pd { grid-template-columns: 1fr; }
  .pd-gallery { position: static; }
  .co { grid-template-columns: 1fr; }
  .co-side { position: static; }
  .shop-hero { grid-template-columns: 1fr; }
  .shop-hero-fig { max-width: 560px; }
  .about-split { grid-template-columns: 1fr; }
  .about-split figure { max-width: 480px; }
  .footer-grid--4 { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid--4 .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .ed-grid, .ed-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 32px 14px; }
  .ed-title { font-size: 16px; }
  .ed-meta { flex-direction: column; gap: 2px; }
  .pillars, .pillars--4 { grid-template-columns: 1fr; }
  .timeline, .flow { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .shop-head { grid-template-columns: 1fr; }
  .shop-count { text-align: left; }
  .sticky-buy { display: flex; }
  body[data-shop-page="product"] .site-footer { padding-bottom: 110px; }
  .co-terms div { grid-template-columns: 1fr; gap: 4px; }
  .legal-table > div { grid-template-columns: 1fr; gap: 6px; }
  .fields { grid-template-columns: 1fr; }
  .steps li { font-size: 9px; letter-spacing: .1em; }
  .steps li::before { display: block; margin-bottom: 4px; }
  .footer-grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .opts { gap: 6px; }
  .opt-in { padding: 11px 10px; }
  .pd-buy { flex-direction: column; }
  .pd-buy .qty { align-self: flex-start; }
  .cart-line { grid-template-columns: 68px 1fr; gap: 12px; }
  .cl-name { font-size: 16px; }
  .drawer-head, .drawer-body, .drawer-foot { padding-left: 18px; padding-right: 18px; }
  .timeline, .flow, .process { grid-template-columns: 1fr; }
  .shop-tools { flex-direction: column; align-items: flex-start; }
  .shop-tools > *, .sort select { max-width: 100%; min-width: 0; }   /* 幅 320px の画面でも、絞り込みと並べ替えが横にはみ出さない */
}

/* shop section rhythm (tighter than the gallery sections) */
.shop-sec { position: relative; z-index: 2; padding-block: clamp(56px, 8vw, 120px); }
.shop-sec--alt { background: var(--bg-2); }
.shop-sec .sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.shop-more { margin-top: clamp(36px, 5vw, 60px); text-align: center; }
.page-h {
  margin-top: clamp(36px, 5vw, 64px);
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5.4vw, 64px); line-height: 1.05; color: var(--ink);
}
.page-h em { font-style: italic; color: var(--ink-soft); }
.page-sub { margin-top: 14px; font-size: 13.5px; line-height: 2; color: var(--ink-dim); max-width: 60ch; }
.cform-field[hidden] { display: none; }

/* ---- header fit: 7 nav items + lang + cart ----
   1121–1320px: 余白を詰める / ≤1120px: ハンバーガーメニュー（style.css の ≤760px と同じ挙動） */
@media (min-width: 1121px) and (max-width: 1320px) {
  .nav { gap: 18px; }
  .nav a { letter-spacing: .15em; }
  .header-right { gap: 16px; }
  .brand { letter-spacing: .26em; }
}
@media (max-width: 1120px) {
  .nav { position: fixed; inset: 0; z-index: 81;
    flex-direction: column; justify-content: center; gap: 30px;
    background: rgba(11,11,11,.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s var(--ease);
  }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  .nav a { font-size: 15px; letter-spacing: .28em; color: var(--ink-soft); }
  .nav a::after { display: none; }
  .nav-toggle { display: block; }
}
/* backdrop-filter on the scrolled header would trap the fixed overlay menu inside the header box */
body.nav-open .site-header, body.nav-closing .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; }
/* featured grid: 4 → 2 columns (never 3, so 4 items never leave an orphan) */
@media (max-width: 1100px) and (min-width: 761px) {
  .ed-grid--even { grid-template-columns: repeat(2, 1fr); }
}
/* phones: brand + language + cart + menu must fit in one row */
@media (max-width: 480px) {
  .brand { letter-spacing: .24em; font-size: 14px; gap: 8px; }
  .brand .brand-sub { display: none; }
  .header-right { gap: 6px; }
  .lang-toggle { gap: 4px; }
}
/* shop pages: quicker reveals; product detail shows immediately */
.shop-sec .reveal { transition-duration: .9s; }
.pd .reveal { opacity: 1; transform: none; transition: none; }
.pay-lock { border: 0; min-width: 0; margin: 0; padding: 0; }
.pay-lock:disabled { opacity: .55; }
.co-notice a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }

/* ---- size on the wall (product page) ---- */
/* お部屋に飾ったイメージ（実寸比）。壁の色は data-wall で切り替え */
.size-viz { margin: 16px 0 0; padding: 12px 12px 12px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.015);
  --sv-wall: #ebe8e2; --sv-floor: #cfc9bf; --sv-sofa: #5d5852; --sv-seat: #524d48; }
.size-viz[data-wall="grey"] { --sv-wall: #9c988f; --sv-floor: #7b766e; --sv-sofa: #3f3b37; --sv-seat: #36322f; }
.size-viz[data-wall="dark"] { --sv-wall: #2a2826; --sv-floor: #1c1b1a; --sv-sofa: #4d4843; --sv-seat: #433f3b; }
.sv-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 10px; }
.sv-title { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
html[data-lang="ja"] .sv-title { font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: none; }
.sv-walls { display: inline-flex; gap: 6px; }
.sv-wallbtn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; font-size: 11px; color: var(--ink-dim);
  border: 1px solid var(--line-soft); border-radius: 100px; transition: color .3s var(--ease), border-color .3s var(--ease); }
.sv-wallbtn[aria-pressed="true"] { color: var(--ink); border-color: var(--line-strong); }
.sv-chip { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.sv-wallbtn--white .sv-chip { background: #ebe8e2; } .sv-wallbtn--grey .sv-chip { background: #9c988f; } .sv-wallbtn--dark .sv-chip { background: #2a2826; }
.size-viz svg { display: block; width: 100%; height: auto; }
.size-viz .sv-wall { fill: var(--sv-wall); transition: fill .5s var(--ease); }
.size-viz .sv-floor { fill: var(--sv-floor); transition: fill .5s var(--ease); }
.size-viz .sv-sofa { fill: var(--sv-sofa); transition: fill .5s var(--ease); }
.size-viz .sv-seat { fill: var(--sv-seat); }
.size-viz .sv-shadow { fill: rgba(0,0,0,.28); }
.size-viz .sv-frame { fill: #151312; transition: opacity .45s var(--ease); }
.size-viz .sv-mat { fill: #f8f7f3; }
.size-viz rect[data-sv-shadow], .size-viz rect[data-sv-frame], .size-viz rect[data-sv-mat], .size-viz image { transition: x .45s var(--ease), y .45s var(--ease), width .45s var(--ease), height .45s var(--ease), opacity .45s var(--ease); }
.size-viz figcaption { margin-top: 8px; font-size: 11.5px; line-height: 1.7; color: var(--ink-dim); text-align: center; }

/* 商品画像は「同じ明るい壁に掛けた」4:5 の写真に統一（2026-10-14）。枠いっぱいに表示する */
.ed-frame img { object-fit: cover; padding: 0; }
.pd-main { aspect-ratio: 4 / 5; }
.pd-main img { object-fit: cover; padding: 0; }

/* ---- legibility: notices that matter legally use the brighter ink ---- */
.pd-notorig, .pd-imgnote, .co-fine, .co-secure, .opt-note, .legal-note { color: var(--ink-dim); }
.qty--sm button { width: 32px; height: 32px; }

/* ---- pre-launch pop-up heading ---- */
.co-pre-h { font-family: var(--serif); font-size: 19px; color: var(--ink); line-height: 1.4; }
.btn[hidden], .co-secure[hidden], .pay-marks[hidden] { display: none; }

/* ---- pre-launch pop-up (payment.html の「注文を確定する」で開く) ---- */
.pre-modal { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pre-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.66); opacity: 0; transition: opacity .4s var(--ease); }
.pre-panel {
  position: relative; width: min(520px, 100%); max-height: calc(100svh - 32px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
  padding: clamp(26px, 4vw, 38px); background: #141414; border: 1px solid var(--line);
  opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.pre-modal.is-open .pre-scrim { opacity: 1; }
.pre-modal.is-open .pre-panel { opacity: 1; transform: none; }
.pre-x { position: absolute; top: 10px; right: 10px; }
.pre-panel .u-label { margin-bottom: 2px; }
.pre-panel .co-pre-h { font-size: clamp(22px, 2.6vw, 26px); padding-right: 36px; }
.pre-lead { font-size: 13px; line-height: 1.95; color: var(--ink-soft); }
.pre-order { position: relative; margin: 4px 0 6px; padding: 14px 16px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.03); }
.pre-text { white-space: pre-line; font-size: 12.5px; line-height: 1.9; color: var(--ink); padding-right: 4px; }
.pre-copy {
  margin-top: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
}
.pre-copy:hover { color: var(--ink); }
.pre-fine { margin-top: 2px; font-size: 11.5px; line-height: 1.8; color: var(--ink-dim); }
.pre-panel .btn { letter-spacing: .08em; }
@media (prefers-reduced-motion: reduce) { .pre-scrim, .pre-panel { transition: none; } }

/* ---- 自分の壁で見る（AR）：商品ページのボタンと、3D を表示するパネル（js/shop.js openAR） ---- */
.arv-cta { margin: 20px 0 6px; }
.arv-open { gap: 10px; }
.arv-open svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }
.arv-note { margin-top: 8px; font-size: 11.5px; line-height: 1.8; color: var(--ink-dim); }
.arv .pre-panel { width: min(560px, 100%); }
.arv-spec { font-size: 12.5px; letter-spacing: .02em; color: var(--ink-soft); }
.arv-stage {
  position: relative; width: 100%; height: min(56svh, 460px);
  display: grid; place-items: center;
  background: radial-gradient(90% 80% at 50% 40%, #efece6, #dcd8d0);   /* 明るい壁の色。黒い額やマットの白が見分けやすい */
}
.arv-stage model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; --poster-color: transparent; }
.arv-stage model-viewer:focus-visible { outline: 1.5px solid #1b1a18; outline-offset: -4px; }
.arv-msg { position: relative; z-index: 1; font-size: 12px; letter-spacing: .04em; color: #4e4a44; }
.arv-desk { font-size: 12px; line-height: 1.8; color: var(--ink-soft); text-align: center; }
.arv .arv-note { margin-top: 0; }

/* ---- 作品カード：指やマウスを動かすと、少し傾いて絵肌の部分画像へ寄っていく（js/card-depth.js） ---- */
.ed-card[data-detail] .ed-frame { touch-action: pan-y; }   /* 縦のスクロールはブラウザに任せ、横になぞる動きだけを使う */
.ed-frame .ed-detail {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; pointer-events: none; z-index: 1;
}
.ed-card.is-depth .ed-frame img { transition: none; will-change: transform, opacity; }
.ed-card.is-depth .ed-frame { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .ed-card:hover .ed-frame img { transform: none; }   /* 寄せずに「部分」の画像の入れ替えだけ（js/card-depth.js） */
  .ed-frame .ed-detail { transition: opacity .35s linear; }
  .ed-card.is-depth .ed-frame .ed-detail { transition: opacity .35s linear; }
}

/* iPhone は文字が 16px 未満の入力欄を押すと画面を拡大したままにするので、タッチ端末の入力欄だけ 16px にする
   （作品一覧の並べ替えは、16px にすると幅 360px の画面で横にはみ出すので、元のまま） */
@media (pointer: coarse) {
  .field input, .field select, .cform input, .cform select, .cform textarea { font-size: 16px; }
}

/* series (2026-11-10): shop top "By Series" tiles + one-line note under the filter chips */
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 30px);
}
.series-card { display: block; }
.series-img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0f0f0f;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.series-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .9;
  transition: transform 1.4s var(--ease), opacity .6s var(--ease);
}
@media (hover: hover) {
  .series-card:hover .series-img img { transform: scale(1.04); opacity: 1; }
}
.series-card:focus-visible { outline: none; }
.series-card:focus-visible .series-img { box-shadow: inset 0 0 0 1.5px var(--ink); }
.series-name { display: block; margin-top: 16px; font-family: var(--serif); font-size: 21px; color: var(--ink); }
.series-note { display: block; margin-top: 8px; font-family: var(--mincho); font-size: 13px; line-height: 1.9; letter-spacing: .04em; color: var(--ink-dim); }
.series-count { display: block; margin-top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--ink-faint); }
.shop-series-note {
  margin: calc(clamp(28px, 4vw, 48px) * -0.5) 0 clamp(28px, 4vw, 44px);
  font-family: var(--mincho); font-size: 14px; line-height: 1.9; letter-spacing: .05em; color: var(--ink-dim);
}
.shop-series-note[hidden] { display: none; }
@media (max-width: 760px) {
  .series-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 14px; }
  .series-name { font-size: 18px; }
  .series-note { font-size: 12px; }
}
.co-hint { margin-top: 8px; font-size: 12px; color: var(--ink-dim); text-align: center; }
.co-hint[hidden] { display: none; }
.u-cm { text-transform: none; }   /* 単位 cm は小文字のまま（見出し風の大文字の行の中でも） */
