/* mishimaxxx.com — Figma「TOP_PC」(1280px) をもとにしたスタイル
   寸法は 1280px 幅のデザインに合わせています。コンテンツ幅は 1000px（左右 140px）。 */
:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #6f6f6f;
  --placeholder: #d9d9d9;
  --line: #000000;
  --soldout: #000000;
  --error: #b00020;

  --font-en: "Stack Sans Headline", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --font-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;

  --content: 1000px;          /* セクションの幅 */
  --edge: 24px;               /* ヘッダー・導入文の左右余白 */
  --edge-footer: 33px;        /* フッターの左右余白 */
  --gutter: max(var(--edge), calc((100% - var(--content)) / 2));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .6; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
.ja { font-family: var(--font-ja); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- ヘッダー（高さ80） */
/* 画面上部に固定。下にスクロールすると隠れ、上に戻ると現れる（site.js の initHeaderScroll） */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  padding: 16px var(--edge) 0;
  background: var(--bg);
  transition: transform .4s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.logo {
  font-weight: 200;
  font-size: 40px;
  line-height: 40px;
  margin-top: 1px;
  white-space: nowrap;
}
.header-right { display: flex; align-items: center; gap: 26px; }
.nav { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 18px; line-height: 23px; white-space: nowrap; }
.nav a[aria-current="page"] { border-bottom: 1px solid currentColor; }
.nav-sep { width: 1px; height: 23px; background: var(--fg); }
/* 言語：JP / EN（英語版は準備中なので EN は薄く表示のみ） */
.lang { display: flex; gap: 4px; margin: 0; font-size: 18px; line-height: 23px; white-space: nowrap; }
.lang-off { opacity: .1; }
.sp-lang, .menu-btn, .sp-menu { display: none; }

/* ---------------------------------------------------------------- トップ：導入文とメインビジュアル */
/* 導入文：3つの段落を横に並べる（10px、間隔40） */
.intro {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin: 20px 0 0;
  padding: 0 var(--edge);
  font-size: 10px;
  line-height: 12px;
  letter-spacing: .03em;
}
.intro p { margin: 0; }
.intro p:nth-child(1) { width: 134px; }
.intro p:nth-child(2) { width: 307px; }
.intro p:nth-child(3) { width: 243px; }
.hero {
  position: relative;
  margin: 72px 0 0;
  aspect-ratio: 1280 / 620;
  max-width: 100%;
  background: var(--placeholder);
  overflow: hidden;
}
.hero img, .ph img, .gallery img { color: transparent; }
/* メインビジュアル：4枚をゆっくり切り替え */
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hero img.is-active { opacity: 1; }

/* ---------------------------------------------------------------- セクション共通 */
.section { padding: 0 var(--gutter); margin-top: 157px; }
.hero + .section { margin-top: 134px; }
.section:not(.collection) + .section { margin-top: 160px; }
.section-title {
  margin: 0;
  font-weight: 300;
  font-size: 26px;
  line-height: 30px;
  text-transform: uppercase;
}
.section-lead { margin: 13px 0 0; font-size: 14px; line-height: 16px; }
.section-title + .product-grid { margin-top: 28px; }
.section-lead + .collection-track { margin-top: 45px; }

/* COLLECTION OF WORKS / ARTWORK / ITEMS：画面の左右端まで使う横スクロール
   左は画面の端まで流れ、スクロールしきったときに最後のカードの右端が本文の右端（1140px）にそろう */
.section.rail { padding-left: 0; padding-right: 0; }
.section.rail > .section-title, .section.rail > .section-lead { padding: 0 var(--gutter); }
.rail-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
  padding: 0 var(--gutter);
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { flex: 0 0 auto; scroll-snap-align: start; }
.collection-track { gap: 40px; }
.product-grid.rail-track { display: flex; gap: 50px; padding: 0 var(--gutter); }
.product-grid.rail-track > li { flex-basis: 300px; max-width: calc(100vw - 2 * var(--edge)); }
.work { flex: 0 0 480px; max-width: calc(100vw - 2 * var(--edge)); scroll-snap-align: start; }
.work .ph { aspect-ratio: 480 / 320; background: var(--placeholder); overflow: hidden; max-width: 100%; }
.work .ph img { width: 100%; height: 100%; object-fit: cover; }
.work h3 { margin: 13px 0 0; font-weight: 300; font-size: 24px; line-height: 34px; }

/* ARTWORK / ITEMS / STORE の作品カード（300×320、間隔50） */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  gap: 48px 50px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.card { display: block; }
.card .ph { position: relative; aspect-ratio: 300 / 320; background: var(--placeholder); overflow: hidden; max-width: 100%; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity 1s ease; }
.card:hover { opacity: 1; }
.card:hover .ph img { transform: scale(1.03); }
.card .name { margin: 16px 0 0; font-weight: 300; font-size: 24px; line-height: 24px; }
.card .price { margin: 8px 0 0; font-weight: 200; font-size: 14px; line-height: 18px; font-variant-numeric: tabular-nums; }
.card .state { margin-left: 12px; font-weight: 300; letter-spacing: .06em; }
.card.is-soldout .ph { opacity: .55; }
.grid-empty { color: var(--muted); }
.skeleton { background: var(--placeholder); aspect-ratio: 300 / 320; }

/* ---------------------------------------------------------------- 下層ページ共通（Figma：タイトルは y164、32px） */
.page { padding: 0 var(--gutter); margin-top: 84px; min-height: 40vh; }
.page-title { margin: 0; font-weight: 300; font-size: 32px; line-height: 32px; text-transform: uppercase; }
.back { display: inline-block; font-size: 14px; }
.backlink { display: flex; width: fit-content; align-items: center; gap: 6px; margin-top: 51px; font-size: 18px; line-height: 18px; }
.backlink img { transform: rotate(180deg); }
.site-footer { margin-top: 140px; }
.p-top .site-footer { margin-top: 230px; }

/* 共通のボタン・メッセージ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; padding: 0 24px;
  font: inherit; font-size: 16px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--fg); background: var(--fg); color: var(--bg); cursor: pointer;
}
.btn:hover { opacity: .8; }
.btn.ghost { background: transparent; color: var(--fg); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 13px;
  height: 48px; padding: 0 24px; border: 1px solid var(--fg); border-radius: 24px;
  background: var(--bg); color: var(--fg); font: inherit; cursor: pointer; white-space: nowrap;
}
.pill:hover { opacity: .6; }
.pill:disabled { opacity: .35; cursor: not-allowed; }
.pill.dark { background: var(--fg); color: var(--bg); }
.msg { font-family: var(--font-ja); font-size: 13px; margin: 0; }
.msg.error { color: var(--error); }
/* 数量（「数量 4 ∨」86×32、下線） */
.qty { position: relative; display: block; width: 86px; height: 32px; border-bottom: 1px solid var(--fg); }
.qty span { position: absolute; left: 0; top: 10px; font-family: var(--font-ja); font-size: 12px; line-height: 12px; letter-spacing: .03em; pointer-events: none; }
.qty select {
  -webkit-appearance: none; appearance: none;
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  padding: 0 0 0 37px; border: 0; border-radius: 0; cursor: pointer;
  background: transparent url(/assets/icons/select.svg) no-repeat 63px 7px / 18px 18px;
  color: var(--fg); font-family: var(--font-en); font-weight: 400; font-size: 16px; line-height: 16px; letter-spacing: .03em;
}
.qty select:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }
/* サイズなどの選択肢（数量と同じ見た目で少し広め） */
.qty.opt { width: 120px; }
.qty.opt select { padding: 0 26px 0 48px; background-position: right 4px top 7px; text-overflow: ellipsis; }
.buy-opts { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; }
.buy-err { margin-top: -40px; }
.cart-line .variant { margin: 8px 0 0; font-family: var(--font-ja); font-size: 14px; line-height: 16px; }

/* ---------------------------------------------------------------- STORE 一覧（タブ・ページ送り） */
.tabs { display: flex; gap: 23px; margin-top: 75px; border-bottom: 1px solid var(--placeholder); }
.tabs button {
  width: 132px; padding: 0 0 16px; margin: 0;
  font: inherit; font-size: 22px; line-height: 22px; color: var(--placeholder);
  background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
}
.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--fg); }
.tabs button:hover { color: var(--fg); }
.store-grid { margin-top: 80px; row-gap: 105px; }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 100px; }
.pager button { width: 32px; height: 32px; padding: 0; border: 0; background: var(--bg); font: inherit; font-size: 16px; line-height: 16px; color: var(--placeholder); cursor: pointer; }
.pager button[aria-current="page"] { color: var(--fg); }
.pager .pager-next img { display: block; }
.pager .pager-prev img { display: block; transform: rotate(180deg); }
.p-store .site-footer { margin-top: 94px; }

/* ---------------------------------------------------------------- STORE 詳細 */
.product { display: grid; grid-template-columns: 500px minmax(0, 1fr); gap: 40px; margin-top: 32px; }
.gallery { position: relative; }
.gallery .main { display: block; width: 100%; aspect-ratio: 500 / 533; max-width: 100%; object-fit: cover; background: var(--placeholder); }
.gallery .main-btn { position: relative; display: block; width: 100%; aspect-ratio: 500 / 533; padding: 0; border: 0; overflow: hidden; background: var(--placeholder); cursor: zoom-in; }

/* 写真を重ねてクロスフェード（作品ページの写真・作品カード） */
.fade-stack { position: relative; isolation: isolate; }
.fade-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.fade-stack img.is-on { opacity: 1; }
.fade-stack img.no-fade { transition: none; }
.card .fade-stack img.no-fade { transition: transform .5s ease; }
.gallery .zoom { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; }
.info { display: flex; flex-direction: column; padding-top: 48px; min-width: 0; }
.info h1 { margin: 0; font-weight: 300; font-size: 32px; line-height: 26px; }
.info .price { margin: 24px 0 0; font-weight: 200; font-size: 24px; line-height: 24px; font-variant-numeric: tabular-nums; }
.tax { margin: 8px 0 0; font-family: var(--font-ja); font-size: 12px; line-height: 16px; letter-spacing: .03em; }
.info .tax { margin-top: 4px; }
.info .edition { margin: 24px 0 0; font-size: 21px; line-height: 26px; }
.info .desc { margin: 56px 0 0; max-width: 455px; font-family: var(--font-ja); font-weight: 400; font-size: 16px; line-height: 31px; letter-spacing: .03em; white-space: pre-wrap; }
.buy { display: grid; gap: 56px; justify-items: start; margin-top: 56px; }
.buy .pill { width: 233px; font-size: 20px; line-height: 20px; }
/* カート追加後：黒地に白文字の Purchase → */
.buy .purchase { justify-content: flex-start; gap: 29px; padding: 0 0 0 72px; }
.buy .purchase:hover { opacity: .8; }
.soldout-label { margin: 0; font-size: 20px; letter-spacing: .08em; }
.specs { margin-top: 93px; font-family: var(--font-ja); font-weight: 400; font-size: 14px; line-height: 27px; letter-spacing: .03em; white-space: pre-wrap; }
.p-product .site-footer { margin-top: 138px; }

/* 写真の全画面スライド */
/* 画像は画面の高さ（と幅）に合わせて拡大縮小。下に「前へ／次へ」と枚数 */
.lightbox { position: fixed; inset: 0; z-index: 100; background: #2c2c2c; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px 0; }
.lightbox[hidden] { display: none; }
.lightbox { transition: opacity .4s ease; }
.lightbox.is-hidden { opacity: 0; pointer-events: none; }
.lb-stage img { transition: opacity .5s ease; }
.lb-stage img.is-fading { opacity: 0; }
.lb-stage img.no-trans { transition: none; }
.lb-ghost { position: fixed; z-index: 1; max-width: none; max-height: none; pointer-events: none; transition: opacity .5s ease; }
.lb-stage { position: relative; margin: 0; }
.lb-stage img {
  display: block; width: auto; height: auto; color: transparent;
  max-width: calc(100vw - 280px);
  max-height: calc(100vh - 126px); max-height: calc(100dvh - 126px);
}
.lb-stage img:not([src]) { width: min(680px, calc(100vw - 280px)); aspect-ratio: 680 / 725; background: #d9d9d9; }
.lb-count { position: absolute; right: 0; top: calc(100% + 11px); font: 700 14px/16px "Helvetica Neue", Helvetica, Arial, sans-serif; color: #6f6f6f; }
.lb-count b { color: #fff; }
.lb-close { position: absolute; top: 56px; right: 84px; width: 54px; height: 54px; padding: 0; border: 0; background: none; cursor: pointer; }
.lb-nav { display: flex; gap: 9px; }
.lb-nav button { width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.lb-prev img { transform: rotate(180deg); }
.lb-nav button:disabled { opacity: .3; cursor: default; }
.lightbox button:focus-visible { outline: 1px solid #fff; outline-offset: 3px; border-radius: 50%; }
body.lb-open { overflow: hidden; }

/* ---------------------------------------------------------------- CART */
.cart-lines { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--placeholder); }
.cart-line { position: relative; display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 57px; padding: 48px 0; border-bottom: 1px solid var(--placeholder); }
.cart-line .ph { display: block; height: 200px; background: var(--placeholder); overflow: hidden; }
.cart-line .ph img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .body { padding-top: 24px; min-width: 0; }
.cart-line h2 { margin: 0; font-weight: 300; font-size: 32px; line-height: 26px; }
.cart-line .unit { margin: 20px 0 0; font-weight: 200; font-size: 24px; line-height: 24px; font-variant-numeric: tabular-nums; }
.cart-line .qty { margin-top: 16px; }
.cart-line .remove { position: absolute; right: 2px; bottom: 59px; width: 133px; padding: 0 0 0 16px; justify-content: flex-start; font-family: var(--font-ja); font-size: 16px; line-height: 20px; }
.cart-sum { display: flex; justify-content: flex-end; align-items: center; gap: 20px; padding: 46px 0 58px; border-bottom: 1px solid var(--placeholder); }
.cart-sum .label { font-family: var(--font-ja); font-size: 16px; line-height: 20px; }
.cart-sum .value { font-weight: 200; font-size: 28px; line-height: 40px; font-variant-numeric: tabular-nums; }
.cart-ship { position: relative; }
.cart-ship .note { position: absolute; right: 0; bottom: 18px; font-family: var(--font-ja); font-size: 12px; line-height: 18px; color: var(--muted); }
.cart-total { display: flex; justify-content: flex-end; align-items: center; gap: 34px; margin-top: 88px; font-weight: 200; }
.cart-total .label { font-size: 25px; line-height: 40px; }
.cart-total .value { font-size: 40px; line-height: 40px; font-variant-numeric: tabular-nums; }
.cart-go { display: flex; justify-content: flex-end; margin-top: 100px; }
.cart-go .pill { width: 233px; height: 56px; border-radius: 28px; font-family: var(--font-ja); font-weight: 500; font-size: 20px; line-height: 20px; }
.cart-empty { margin-top: 48px; }
.p-cart .site-footer { margin-top: 141px; }

/* ---------------------------------------------------------------- COLLECTION 一覧 */
.collection-grid { display: grid; grid-template-columns: repeat(2, 480px); gap: 84px 40px; margin-top: 84px; }
.collection-grid .work { max-width: none; }
.p-collection .site-footer { margin-top: 131px; }
a.work { display: block; }
a.work:hover { opacity: 1; }
a.work:hover .ph img { transform: scale(1.03); }
.work .ph img { transition: transform .5s ease; }

/* ---------------------------------------------------------------- COLLECTION 詳細 */
.c-detail .backlink { margin: 52px 0 0 var(--edge); }
.c-hero { margin-top: 52px; aspect-ratio: 1280 / 690; max-width: 100%; background: var(--placeholder); overflow: hidden; }
.c-hero img { width: 100%; height: 100%; object-fit: cover; }
.c-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; padding: 88px var(--gutter) 0; }
.c-info h1 { margin: 0; font-weight: 300; font-size: 40px; line-height: 40px; }
.c-specs { margin: 0; font-size: 18px; line-height: 30px; text-align: right; white-space: pre-line; }
.c-intro { grid-column: 1 / -1; margin: 96px 0 0; font-family: var(--font-ja); font-weight: 400; font-size: 14px; line-height: 27px; letter-spacing: .03em; white-space: pre-line; }
.c-specs:empty + .c-intro { margin-top: 116px; }
.c-body { padding: 98px var(--gutter) 0; }
.c-img { display: block; width: 100%; background: var(--placeholder); }
.c-img.empty { aspect-ratio: 1000 / 693; }
.c-img + .c-img { margin-top: 24px; }
.c-text { margin: 80px 0; font-family: var(--font-ja); font-weight: 400; font-size: 14px; line-height: 27px; letter-spacing: .03em; white-space: pre-line; }
.c-body > :first-child { margin-top: 0; }
.c-body > :last-child { margin-bottom: 0; }
/* 協力企業などのクレジット（Kendama の NIKKO COMPANY） */
.c-credit { display: grid; grid-template-columns: 331px minmax(0, 1fr); align-items: start; min-height: 340px; margin-top: 80px; padding-top: 80px; border-top: 1px solid var(--placeholder); }
.c-credit-head { display: grid; justify-items: start; padding-top: 6px; }
.c-credit h2 { margin: 0; font-weight: 300; font-size: 28px; line-height: 28px; }
.c-credit-sub { margin: 12px 0 0; font-family: var(--font-ja); font-weight: 500; font-size: 18px; line-height: 18px; }
.c-credit-link { margin-top: 56px; font-size: 12px; line-height: 12px; text-decoration: underline; text-underline-offset: 2px; }
.c-credit-text { margin: 0; font-family: var(--font-ja); font-weight: 400; font-size: 14px; line-height: 27px; letter-spacing: .03em; white-space: pre-line; }
.c-credit-head:only-child { grid-column: 1 / -1; }
.c-body > .c-credit:last-child { margin-bottom: 0; }
.p-collection-detail .site-footer { margin-top: 210px; }
.p-collection-detail:has(.c-credit) .site-footer { margin-top: 187px; }

/* ---------------------------------------------------------------- ABOUT（Figma：本文は y292、セクション間 126） */
.about-body { display: grid; gap: 126px; margin-top: 96px; }
.about-sec { display: grid; gap: 40px; justify-items: start; }
.about-label { position: relative; margin: 0; padding-bottom: 17px; font-weight: 300; font-size: 15px; line-height: 15px; }
.about-label::after { content: ""; position: absolute; left: 0; bottom: 0; width: 24px; height: 1px; background: var(--fg); }
.about-name { display: grid; gap: 12px; margin: 0; }
.about-name span:first-child { font-size: 15px; line-height: 15px; }
.about-name .ja { font-weight: 400; font-size: 28px; line-height: 28px; letter-spacing: .03em; }
.about-text { margin: 0; font-family: var(--font-ja); font-weight: 400; font-size: 14px; line-height: 27px; letter-spacing: .03em; }
.about-list { display: grid; gap: 28px; margin: 0; font-family: var(--font-ja); font-weight: 400; font-size: 14px; line-height: 16px; letter-spacing: .03em; }
.about-list div { display: grid; grid-template-columns: 80px auto; column-gap: 80px; }
.about-list dt, .about-list dd { margin: 0; }
.about-links { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; font-family: var(--font-ja); font-weight: 400; font-size: 14px; line-height: 14px; letter-spacing: .03em; }
.p-about .site-footer { margin-top: 198px; }

/* 決済ページの注文内容 */
.summary { display: grid; gap: 16px; position: sticky; top: 24px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; padding-top: 16px; border-top: 1px solid var(--fg); font-variant-numeric: tabular-nums; }
.summary dd { margin: 0; text-align: right; }
.summary .total { font-size: 20px; padding-top: 8px; }

/* 決済ページ */
.steps { display: flex; gap: 24px; list-style: none; margin: 40px 0 48px; padding: 0; font-size: 14px; color: var(--muted); }
.steps li[aria-current="step"] { color: var(--fg); border-bottom: 1px solid var(--fg); }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; align-items: start; }
.checkout-main { display: grid; gap: 56px; min-width: 0; }
.co-section h2, .co-summary h2 { margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--fg); font-weight: 300; font-size: 20px; line-height: 24px; }
.co-section h2 span, .co-summary h2 span { font-size: 14px; color: var(--muted); }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.co-grid .wide { grid-column: 1 / -1; }
.co-grid[hidden] { display: none !important; }
.f { display: grid; gap: 6px; align-content: start; min-width: 0; }
.f > span { font-size: 13px; line-height: 16px; }
.f small { margin-left: 8px; color: var(--muted); }
.f input, .f select {
  width: 100%; height: 46px; padding: 0 12px;
  font: 400 15px/1 var(--font-ja); color: var(--fg); background: var(--bg);
  border: 1px solid #bdbdbd; border-radius: 0; appearance: none; -webkit-appearance: none;
}
.f select { background-image: linear-gradient(45deg, transparent 50%, var(--fg) 50%), linear-gradient(135deg, var(--fg) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.f input:focus, .f select:focus { outline: none; border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.f.invalid input, .f.invalid select { border-color: var(--error); }
.f em { font-style: normal; font-family: var(--font-ja); font-size: 12px; color: var(--error); }
.f em:empty { display: none; }
.zip-status { align-self: end; margin: 0 0 14px; }
.hint { margin: 0; font-family: var(--font-ja); font-size: 12px; line-height: 20px; color: var(--muted); }
.co-section .hint { margin-top: 12px; }
.hint a { border-bottom: 1px solid currentColor; }
.pay-box { min-height: 60px; }
.pay-box.is-demo .demo-card { border: 1px dashed #bdbdbd; padding: 16px; display: grid; gap: 10px; color: #a0a0a0; font-family: var(--font-ja); font-size: 14px; }
.demo-row { display: flex; justify-content: space-between; gap: 12px; border: 1px solid #e3e3e3; padding: 12px; }
.demo-row.two span { flex: 1; }
.pay-box.is-demo .hint { margin-top: 12px; }
.co-summary { gap: 16px; }
.co-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.co-lines li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.co-lines .ph { aspect-ratio: 300 / 320; background: var(--placeholder); overflow: hidden; }
.co-lines .ph img { width: 100%; height: 100%; object-fit: cover; }
.co-lines .nm { font-size: 15px; line-height: 20px; }
.co-lines small { display: block; color: var(--muted); font-size: 12px; }
.co-lines .am { font-variant-numeric: tabular-nums; }
.co-summary .back { margin: 8px 0 0; font-size: 13px; }

/* ---------------------------------------------------------------- 特定商取引法・プライバシーポリシー（Figma：タイトル y164、本文 y256） */
.doc-title { font-family: var(--font-ja); font-weight: 400; font-size: 20px; line-height: 28px; text-transform: none; }
.legal-list { display: grid; gap: 28px; margin: 64px 0 0; font-family: var(--font-ja); font-weight: 400; font-size: 14px; line-height: 27px; letter-spacing: .03em; }
.legal-list div { display: grid; grid-template-columns: 195px minmax(0, 1fr); }
.legal-list dt { font-weight: 500; }
.legal-list dd { margin: 0; }
.policy { font-family: var(--font-ja); font-weight: 400; letter-spacing: .03em; }
.policy-lead { margin: 64px 0 0; font-size: 14px; line-height: 27px; }
.policy-sec { margin-top: 40px; }
.policy-sec h2 { margin: 0; font-weight: 500; font-size: 16px; line-height: 28px; }
.policy-sec .num { font-family: var(--font-en); font-weight: 500; }
.policy-body { margin-top: 12px; font-size: 12px; line-height: 24px; }
.policy-body p, .policy-body ul, .policy-body ol { margin: 0; }
.policy-body ul, .policy-body ol { padding-left: 18px; }
.policy-body a { text-decoration: underline; text-underline-offset: 2px; }
.p-doc .site-footer { margin-top: 196px; }

/* テキストページ（購入完了・404） */
.prose { max-width: 760px; font-family: var(--font-ja); font-weight: 400; font-size: 14px; line-height: 28px; }
.prose .lead { font-family: var(--font-en); font-weight: 300; font-size: 24px; line-height: 34px; margin: 0 0 16px; }
.prose h2 { font-family: var(--font-en); font-weight: 300; font-size: 20px; line-height: 26px; margin: 48px 0 12px; text-transform: uppercase; }
.prose dl { display: grid; grid-template-columns: 12em 1fr; gap: 12px 24px; margin: 0; }
.prose dt { font-weight: 500; }
.prose dd { margin: 0; }
.prose a { border-bottom: 1px solid currentColor; }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------- フッター（高さ311） */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  min-height: 311px;
  padding: 32px 45px 26px var(--edge-footer);
}
.footer-nav { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; font-size: 16px; line-height: 16px; align-content: start; }
.footer-contact { display: grid; gap: 16px; margin: 0; font-size: 14px; line-height: 16px; letter-spacing: .04em; align-content: start; }
.footer-legal { grid-column: 1 / -1; grid-row: 3; display: flex; gap: 56px; flex-wrap: wrap; font-family: var(--font-ja); font-weight: 400; font-size: 12px; line-height: 14px; }

/* ---------------------------------------------------------------- 広い画面（1281px〜）
   STORE 一覧・COLLECTION 一覧・COLLECTION 詳細は、1280px デザインと同じ比率（左右余白 140/1280）のまま画面幅に合わせて拡大
   STORE は 1600px〜4列、2000px〜5列。COLLECTION 一覧は 1600px〜3列 */
@media (min-width: 1281px) {
  .p-store, .p-collection, .p-collection-detail { --gutter: 10.9375%; }
  .p-store .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-collection .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1600px) {
  .p-store .store-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .p-collection .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 2000px) {
  .p-store .store-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- タブレット（861〜1100px）：PC デザインを縮める */
@media (max-width: 1100px) {
  .logo { font-size: 32px; line-height: 40px; }
  .header-right, .nav { gap: 18px; }
  .nav, .lang { font-size: 16px; }
  .intro { gap: 24px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-credit { grid-template-columns: 260px minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- スマホ（Figma「*_SP」375px） */
@media (max-width: 860px) {
  :root { --edge: 12px; --gutter: 12px; }

  /* ヘッダー（高さ56、上に固定）とメニュー */
  .site-header { min-height: 56px; height: 56px; padding: 8px 12px 0; }
  .logo { margin: 0; font-size: 28px; line-height: 28px; }
  .header-right { display: none; }
  .menu-btn { display: block; position: absolute; top: 4px; right: 4px; width: 48px; height: 48px; padding: 0; border: 0; background: var(--bg); cursor: pointer; }
  .menu-btn span { position: absolute; left: 9px; width: 30px; height: 1px; background: var(--fg); }
  .menu-btn span:nth-child(1) { top: 19px; }
  .menu-btn span:nth-child(2) { top: 24px; }
  .menu-btn span:nth-child(3) { top: 29px; }
  .sp-menu { display: block; position: fixed; inset: 0; z-index: 100; overflow-y: auto; padding: 0 12px 48px; background: #2c2c2c; color: #999; animation: mx-fade .35s ease both; }
  .sp-menu[hidden] { display: none; }
  .sp-menu-head { position: relative; height: 56px; padding-top: 8px; }
  .sp-menu .logo { display: block; width: fit-content; color: #999; }
  .sp-menu .menu-close { position: absolute; top: 4px; right: -8px; width: 48px; height: 48px; padding: 9px; border: 0; background: none; color: #999; cursor: pointer; }
  .sp-menu .menu-close svg { display: block; }
  .sp-menu .lang { margin-top: 4px; color: #7e7e7e; }
  .sp-menu .lang-off { opacity: .2; }
  .sp-menu-nav { margin-top: 95px; font-weight: 200; font-size: 56px; }
  .sp-menu-nav ul { list-style: none; margin: 0; padding: 0; line-height: 50px; }
  .sp-menu-rule { display: block; width: 50px; height: 2px; margin: 36px 0; background: rgba(153, 153, 153, .6); }
  .sp-menu-cart { display: block; line-height: 56px; }
  .sp-menu-contact { display: grid; gap: 12px; margin-top: 74px; padding-left: 7px; font-size: 20px; line-height: 20px; letter-spacing: .04em; }
  .sp-menu a:focus-visible, .sp-menu button:focus-visible { outline-color: #999; }
  body.menu-open { overflow: hidden; }

  /* TOP：言語・導入文・メインビジュアル */
  .sp-lang { display: flex; margin: 4px 12px 0; }
  .intro { display: block; margin-top: 24px; font-size: 12px; line-height: 16px; letter-spacing: .03em; }
  .intro p, .intro p:nth-child(n) { display: inline; width: auto; }
  .intro p:first-child { display: block; }
  .hero { margin-top: 56px; aspect-ratio: 375 / 440; }

  /* TOP のセクション（横スクロール） */
  .section, .hero + .section { margin-top: 96px; }
  .section:not(.collection) + .section { margin-top: 123px; }
  .section.collection + .section { margin-top: 124px; }
  .section-title { font-size: 20px; line-height: 20px; }
  .section-lead { margin-top: 8px; font-size: 14px; line-height: 16px; }
  .section-lead + .collection-track, .section-title + .product-grid { margin-top: 20px; }
  .collection-track, .product-grid.rail-track { gap: 20px; }
  .work { flex: 0 0 280px; }
  .work h3 { margin-top: 8px; font-size: 24px; line-height: 24px; }
  .product-grid.rail-track > li { flex-basis: 281px; }
  .card .name { margin-top: 16px; font-size: 24px; line-height: 24px; }
  .card .price { margin-top: 4px; }
  .p-top .site-footer { margin-top: 123px; }

  /* 下層ページ共通：タイトル y96、戻るリンク y160、本文 y228 */
  .page { margin-top: 40px; min-height: 0; }
  .page-title { font-size: 24px; line-height: 24px; }
  .backlink { margin-top: 40px; }

  /* STORE 一覧（2列） */
  .tabs { gap: 31px; margin-top: 40px; }
  .tabs button { width: 69px; margin-bottom: -1px; padding-bottom: 10px; font-size: 16px; line-height: 16px; }
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 11px; margin-top: 40px; }
  .store-grid .card .ph { aspect-ratio: 170 / 181; }
  .store-grid .card .name { margin-top: 4px; font-size: 16px; line-height: 16px; }
  .store-grid .card .price { margin-top: 4px; font-size: 12px; line-height: 12px; }
  .pager { margin-top: 40px; padding-left: 4px; }
  .p-store .site-footer { margin-top: 96px; }

  /* STORE 詳細 */
  .product { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 40px; }
  .gallery .main, .gallery .main-btn { aspect-ratio: 351 / 374; }
  .gallery .zoom { right: 8px; bottom: 8px; }
  .info {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-top: 0;
    grid-template-areas: "name name" "price price" "tax tax" "ed qty" "desc desc" "btn btn" "err err";
  }
  .info h1 { grid-area: name; margin-top: 16px; font-size: 26px; line-height: 26px; }
  .info .price { grid-area: price; margin-top: 18px; font-size: 22px; line-height: 22px; }
  .info .tax { grid-area: tax; margin-top: 6px; line-height: 12px; }
  .info .edition { grid-area: ed; align-self: end; margin-top: 18px; font-size: 16px; line-height: 16px; }
  .info .desc { grid-area: desc; max-width: none; margin-top: 40px; font-size: 14px; line-height: 26px; }
  .info form.buy { display: contents; }
  .info .buy-opts { grid-area: qty; align-self: end; justify-content: flex-end; gap: 12px 16px; margin-top: 2px; }
  .info .buy-err { grid-area: err; margin-top: 12px; text-align: center; }
  .info .buy-btn, .info div.buy { grid-area: btn; justify-self: center; margin-top: 40px; }
  .info div.buy { justify-items: center; text-align: center; }
  .specs { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--placeholder); font-size: 12px; line-height: 20px; }
  .p-product .site-footer { margin-top: 96px; }
  .lb-close { top: 16px; right: 16px; }
  .lightbox { padding: 72px 0 24px; }
  .lb-stage img { max-width: calc(100vw - 24px); max-height: calc(100vh - 158px); max-height: calc(100dvh - 158px); }
  .lb-stage img:not([src]) { width: calc(100vw - 24px); }

  /* CART */
  .cart-lines { margin-top: 40px; }
  .cart-line { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 16px 0; }
  .cart-line .ph { height: 102px; }
  .cart-line .body { padding: 20px 40px 0 0; }
  .cart-line h2 { font-size: 20px; line-height: 20px; }
  .cart-line .unit { margin-top: 8px; font-size: 14px; line-height: 14px; }
  .cart-line .tax { margin-top: 4px; font-size: 10px; line-height: 10px; }
  .cart-line .variant { margin-top: 6px; font-size: 12px; line-height: 14px; }
  .cart-line .qty { margin-top: 8px; }
  .cart-line .remove { right: 0; bottom: 16px; width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: 50%; }
  .cart-line .remove img { width: 24px; height: 24px; }
  .remove-label { display: none; }
  .cart-sum { flex-wrap: wrap; gap: 0 20px; min-height: 78px; padding: 16px 0; }
  .cart-sum .label { font-size: 10px; line-height: 12px; }
  .cart-sum .value { font-size: 14px; line-height: 14px; }
  .cart-ship .note { position: static; flex-basis: 100%; margin-top: 8px; font-size: 10px; line-height: 14px; text-align: right; }
  .cart-total { height: 80px; gap: 16px; margin-top: 16px; }
  .cart-total .label { font-size: 14px; line-height: 14px; }
  .cart-total .value { font-size: 24px; line-height: 24px; }
  .cart-go { justify-content: center; margin-top: 24px; }
  .p-cart .site-footer { margin-top: 96px; }

  /* COLLECTION 一覧（1列） */
  .collection-grid { grid-template-columns: minmax(0, 1fr); gap: 68px; margin-top: 40px; }
  .collection-grid .work { flex: none; }
  .p-collection .site-footer { margin-top: 124px; }

  /* COLLECTION 詳細 */
  .c-detail .backlink { margin: 20px 0 0 12px; }
  .c-hero { margin-top: 20px; aspect-ratio: 375 / 202; }
  .c-info { grid-template-columns: minmax(0, 1fr); padding: 40px 12px 0; }
  .c-info h1 { font-size: 32px; line-height: 32px; }
  .c-specs { margin-top: 24px; font-size: 14px; line-height: 24px; text-align: left; }
  .c-intro, .c-specs:empty + .c-intro { margin-top: 40px; line-height: 26px; }
  .c-body { padding: 40px 12px 0; }
  .c-img + .c-img { margin-top: 12px; }
  .c-text { margin: 40px 0; }
  .c-credit { grid-template-columns: minmax(0, 1fr); min-height: 0; margin-top: 40px; padding-top: 50px; }
  .c-credit-head { padding-top: 0; }
  .c-credit h2 { font-size: 24px; line-height: 24px; }
  .c-credit-sub { font-size: 16px; line-height: 16px; }
  .c-credit-link { margin-top: 40px; }
  .c-credit-text { margin-top: 40px; }
  .p-collection-detail .site-footer, .p-collection-detail:has(.c-credit) .site-footer { margin-top: 96px; }

  /* ABOUT・その他（スマホデザイン未作成のページは同じ余白ルールで調整） */
  .about-body { gap: 72px; margin-top: 40px; }
  .about-name .ja { font-size: 24px; line-height: 24px; }
  .about-list div { grid-template-columns: 1fr; row-gap: 6px; }
  .p-about .site-footer { margin-top: 96px; }
  .product, .checkout { grid-template-columns: minmax(0, 1fr); }
  .checkout { gap: 32px; }
  .co-grid { grid-template-columns: 1fr; }
  .zip-status { margin: -8px 0 0; }
  .summary { position: static; }
  .prose dl { grid-template-columns: 1fr; gap: 2px; }
  .prose dd { margin-bottom: 12px; }

  /* フッター（高さ411、縦に3ブロック） */
  .site-footer { display: flex; flex-direction: column; gap: 64px; min-height: 411px; margin-top: 96px; padding: 55px 16px 24px; }
  .footer-contact { gap: 16px; font-size: 14px; line-height: 16px; letter-spacing: .04em; }
  .footer-legal { flex-direction: column; gap: 16px; font-size: 10px; line-height: 14px; }

  /* 特定商取引法・プライバシーポリシー（タイトル y96、本文 y220） */
  .doc-title { font-size: 18px; line-height: 28px; }
  .legal-list { gap: 31px; margin-top: 96px; }
  .legal-list div { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .policy-lead { margin-top: 96px; }
  .policy-body { line-height: 22px; }
  .p-doc .site-footer { margin-top: 126px; }
}

/* ---------------------------------------------------------------- フェードイン
   1) ページを開いたとき：ヘッダー → 本文 → フッターの順に透明度でふわっと表示
   2) 下にスクロールしたとき：画面に入ったパーツから順にフェードイン（site.js の initReveal） */
@keyframes mx-fade { from { opacity: 0; } to { opacity: 1; } }
.site-header { animation: mx-fade 1s ease both; }
main { animation: mx-fade 1s ease .2s both; }
.site-footer { animation: mx-fade 1s ease .4s both; }
/* TOP はパーツごとに時間差をつける */
.p-top main { animation: none; }
.p-top .intro { animation: mx-fade 1.2s ease .3s both; }
.p-top .hero { animation: mx-fade 1.8s ease .6s both; }
.p-top .section { animation: mx-fade 1.2s ease 1s both; }
/* あとから読み込まれる作品カードも、左から順に表示 */
.product-grid > li:not(.skeleton), .collection-track .work, .collection-grid .work { animation: mx-fade .9s ease both; }
.product-grid > li:nth-child(3n+2), .collection-track .work:nth-child(2), .collection-grid .work:nth-child(2n) { animation-delay: .12s; }
.product-grid > li:nth-child(3n), .collection-track .work:nth-child(3) { animation-delay: .24s; }
.collection-track .work:nth-child(n+4) { animation-delay: .36s; }
/* スクロールで出てくるパーツ */
.reveal { opacity: 0; animation: none !important; transition: opacity 1.2s ease; }
.reveal.is-in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .card .ph img, .fade-stack img { transition: none; }
  *, *::before, *::after { animation: none !important; }
  .reveal { opacity: 1; transition: none; }
  .hero img, .lightbox, .lb-stage img, .site-header { transition: none; }
}
