/* INHABIT Vol.01 オンライン販売ページ モック v1
 * 土台: NOX_Brand_System/tokens.css(コピー)+ 現行サイト assets/style.css のヘッダー/フッター/ボタン/フィールド。
 * 展示色(許される逸脱: 地の色・アクセント): 紫紺 #2E1A30 / ライム #A0C223
 * 動かさないもの: ロゴ(左=中身の左端 / 上=20px / 40x40)、コンテナ幅と余白、ink と罫線、ピル型ボタン
 */

/* ---- tokens.css 由来 ---- */
:root {
  --bg: #FAFAF6;
  --ink: #111114;
  --muted: #6b6f7a;
  --muted2: #9a9ea0;
  --line: rgba(17,17,20,.12);
  --line2: rgba(17,17,20,.08);
  --line3: rgba(17,17,20,.16);
  --lime-mid: #9AD400;
  --lime-dark: #7BC400;
  --maxw: 1180px;
  --gut: clamp(22px, 5vw, 72px);
  --sans: -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;
  --gothic: "Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;

  /* 展示(INHABIT Vol.01)の色 */
  --moon: #2E1A30;
  --moon-lime: #A0C223;
}
@media (max-width: 768px) { :root { --gut: 18px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lock { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.lab { font-family: var(--gothic); font-size: 11px; letter-spacing: .2em; color: var(--muted2); text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--moon); outline-offset: 2px; }

/* ---- header(現行サイトと同じ。透明で上に載る) ---- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 6; }
.site-header .bar { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 20px var(--gut); display: flex; align-items: center; justify-content: space-between; }
.site-header .logo { height: 40px; color: var(--ink); display: block; }
.site-header .logo svg { width: 40px; height: 40px; display: block; }
.site-header nav { display: flex; gap: 18px; align-items: center; }
.site-header nav a { font-family: var(--gothic); font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--ink); text-transform: uppercase; transition: color .2s; }
.site-header nav a:hover { color: var(--lime-dark); }
.langsw { display: inline-flex; align-items: center; border: 0.5px solid var(--line3); border-radius: 999px; overflow: hidden; font-family: var(--gothic); line-height: 1; background: transparent; padding: 0; cursor: pointer; color: inherit; }
.langsw .seg { font-size: 11px; font-weight: 600; letter-spacing: .08em; padding: 5px 11px; color: var(--muted); }
.langsw .seg.on { background: var(--ink); color: var(--bg); }
.nav-toggle { display: none; width: 34px; height: 34px; border: none; background: transparent; cursor: pointer; padding: 0; align-items: center; justify-content: center; z-index: 7; }
.nav-toggle i, .nav-toggle i::before, .nav-toggle i::after { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle i { position: relative; }
.nav-toggle i::before { content: ""; position: absolute; top: -7px; }
.nav-toggle i::after { content: ""; position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] i { background: transparent; }
.nav-toggle[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] i::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 16px; background: var(--bg); border-bottom: 0.5px solid var(--line); padding: 20px 18px; }
  .site-header nav.open { display: flex; }
  .site-header nav a { font-size: 14px; letter-spacing: .12em; }
}

/* ---- buttons(ピル型・高さ37px・12px) ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 37px; padding: 0 22px; border-radius: 999px; font-family: var(--gothic); font-size: 12px; font-weight: 500; letter-spacing: .02em; border: 0.5px solid rgba(17,17,20,.4); background: transparent; color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (hover: hover) { .btn.solid:hover { background: transparent; color: var(--ink); } }
.btn.buy { background: var(--moon-lime); border-color: var(--moon-lime); color: var(--ink); font-weight: 600; }
@media (hover: hover) { .btn.buy:hover { background: var(--moon); border-color: var(--moon); color: var(--moon-lime); } }

/* ---- hero(紫紺のパネル。全幅に抜かず、余白の内側に置く) ---- */
.hero { padding-top: 84px; }
.hero-panel { background: var(--moon); color: var(--bg); padding: clamp(26px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px clamp(24px, 5vw, 64px); align-items: center; }
.hero-text { min-width: 0; }
.hero .house { font-family: var(--gothic); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--moon-lime); margin: 0 0 14px; }
.hero .house b { font-weight: 700; }
.hero h1 { font-size: clamp(30px, 5.4vw, 52px); font-weight: 500; letter-spacing: -.01em; line-height: 1.06; margin: 0; overflow-wrap: anywhere; }
.hero .by { font-family: var(--gothic); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--moon-lime); margin: 18px 0 0; }
.hero .by .x { color: var(--bg); margin: 0 .35em; }
.hero .desc { font-size: 14px; line-height: 1.9; color: rgba(250,250,246,.8); max-width: 520px; margin: 18px 0 0; }
.hero-emblem { width: clamp(220px, 28vw, 340px); height: auto; aspect-ratio: 1; }
@media (max-width: 720px) {
  .hero-panel { grid-template-columns: 1fr; }
  .hero-emblem { order: -1; width: 180px; }
}

/* ---- sections ---- */
.sec { padding-top: 54px; padding-bottom: 54px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.sec-h h2 { font-size: 22px; font-weight: 500; margin: 0; }

/* ---- filter ---- */
.filters { display: grid; gap: 14px; margin: 0 0 28px; padding-top: 22px; border-top: 0.5px solid var(--line); }
.fgroup { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.fgroup .lab { margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { height: 37px; padding: 0 16px; border-radius: 999px; border: 0.5px solid var(--line3); background: transparent; font-family: var(--gothic); font-size: 12px; font-weight: 500; letter-spacing: .06em; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.pill:hover { border-color: var(--moon); }
.pill[aria-pressed="true"] { background: var(--moon); border-color: var(--moon); color: var(--moon-lime); }
@media (max-width: 520px) { .fgroup { grid-template-columns: 1fr; } .pill { padding: 0 14px; } }

/* ---- works grid: スマホ2列 / 720〜 3列 / 1024〜 4列 ---- */
.works { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
@media (min-width: 720px) { .works { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; } }
@media (min-width: 1024px) { .works { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.works > li { min-width: 0; }
.card { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.ph { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--moon); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .ph img { transform: scale(1.03); }
.ph-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--gothic); font-size: 12px; letter-spacing: .3em; color: var(--moon-lime); border: 0.5px solid rgba(160,194,35,.35); margin: 10px; }
.card.is-off .ph img { filter: grayscale(.85); opacity: .55; }
.sold-badge { position: absolute; top: 0; left: 0; background: var(--ink); color: var(--moon-lime); font-family: var(--gothic); font-size: 11px; font-weight: 700; letter-spacing: .2em; padding: 6px 10px 6px 12px; }
.meta { display: flex; flex-direction: column; gap: 3px; padding-top: 12px; min-width: 0; }
.meta .artist { color: var(--muted); }
.meta .type { color: var(--muted2); letter-spacing: .14em; font-size: 10px; }
.meta .title { font-size: 14px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.meta .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; margin-top: 6px; }
.price { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.price small, .m-price small { font-size: 10px; font-weight: 400; color: var(--muted); margin-left: 5px; letter-spacing: .06em; }
.status { font-family: var(--gothic); font-size: 11px; letter-spacing: .08em; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.status.on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--moon-lime); }
.status.off { color: var(--ink); font-weight: 700; letter-spacing: .14em; }
.card.is-off .price { color: var(--muted); }
.similar-link { display: inline-block; margin-top: 6px; font-family: var(--gothic); font-size: 11px; line-height: 1.5; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.similar-link:hover { color: var(--moon); }
.empty { padding: 40px 0; color: var(--muted); font-size: 14px; }

/* ---- detail dialog ---- */
dialog.detail { padding: 0; border: 0; background: var(--bg); color: var(--ink); width: min(1000px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; overflow: hidden; position: fixed; }
dialog.detail::backdrop { background: rgba(46,26,48,.78); }
.m-scroll { overflow: auto; max-height: calc(100dvh - 24px); overscroll-behavior: contain; display: grid; grid-template-columns: minmax(0, 1fr); }
.m-close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 37px; height: 37px; border-radius: 999px; border: 0.5px solid var(--line3); background: rgba(250,250,246,.94); cursor: pointer; font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.m-close:hover { background: var(--ink); color: var(--bg); }
.m-photo { position: relative; aspect-ratio: 3 / 4; background: var(--moon); }
.m-photo img { width: 100%; height: 100%; object-fit: cover; }
.m-photo .ph-empty { font-size: 14px; }
.m-info { padding: 22px 20px 28px; min-width: 0; }
.m-info h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 500; letter-spacing: -.01em; line-height: 1.25; margin: 6px 0 0; overflow-wrap: anywhere; }
.m-sub { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.spec { margin: 20px 0 0; border-top: 0.5px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 0.5px solid var(--line2); font-size: 13px; }
.spec dt { font-family: var(--gothic); font-size: 11px; letter-spacing: .14em; color: var(--muted2); padding-top: 2px; }
.spec dd { margin: 0; overflow-wrap: anywhere; }
.m-price { font-size: 24px; font-weight: 500; margin: 22px 0 0; font-variant-numeric: tabular-nums; }
.m-note { font-size: 13px; color: var(--ink); margin: 8px 0 0; padding: 8px 12px; border: 0.5px solid var(--line3); }
.cta { margin-top: 20px; }
.cta .btn { width: 100%; }
.cta .ship { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 12px 0 0; }
.cta .tlink { margin: 8px 0 0; font-size: 13px; }
.cta .tlink a { text-decoration: underline; text-underline-offset: 3px; }
.cta .tlink.small { font-size: 12px; }
.cta .tlink a:hover { color: var(--moon); }
.sold-line { font-family: var(--gothic); font-weight: 700; letter-spacing: .24em; font-size: 14px; margin: 0; padding: 10px 0; border-top: 0.5px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.sold-line .sub { font-weight: 400; letter-spacing: .06em; font-size: 12px; color: var(--muted); }
.cta .similar-btn { margin-top: 14px; }
.cta .sold-line + .ship { margin-top: 6px; font-size: 13px; color: #26272c; }
@media (min-width: 760px) {
  .m-scroll { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: linear-gradient(to right, var(--moon) 50%, var(--bg) 50%); }
  .m-info { padding: 40px 36px 36px; align-self: start; }
  .m-photo { position: sticky; top: 0; align-self: start; }
}
@media (min-width: 760px) and (max-height: 760px) {
  .m-photo { aspect-ratio: auto; height: calc(100dvh - 24px); }
}

/* ---- ご購入について ---- */
.buyinfo { border-top: 0.5px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; border: 0.5px solid var(--line3); background: #fff; padding: 18px 18px 20px; font-size: 14px; line-height: 1.7; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--gothic); font-size: 11px; letter-spacing: .2em; color: var(--moon); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--moon-lime); width: 34px; }
.buyinfo .lines { margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.9; color: #26272c; }
.buyinfo .lines li + li { margin-top: 2px; }
.buyinfo .lines a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* ---- 振込フォーム ---- */
.tform-sec { border-top: 0.5px solid var(--line); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.tab { height: 37px; padding: 0 18px; border-radius: 999px; border: 0.5px solid var(--line3); background: transparent; font-family: var(--gothic); font-size: 12px; font-weight: 500; letter-spacing: .04em; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tab:hover { border-color: var(--moon); }
.tab[aria-selected="true"] { background: var(--moon); border-color: var(--moon); color: var(--moon-lime); }
@media (max-width: 520px) { .tab { flex: 1 1 100%; } }
.tform { max-width: 680px; }
.tform .intro { font-size: 14px; line-height: 1.9; color: #26272c; margin: 0 0 24px; }
.f { margin-bottom: 16px; }
.f label, .f .lbl { display: block; margin-bottom: 6px; font-family: var(--gothic); font-size: 12px; letter-spacing: .06em; font-weight: 500; }
.req { display: inline-block; margin-left: 8px; font-size: 10px; letter-spacing: .1em; color: var(--moon); border: 0.5px solid var(--moon); padding: 0 6px; line-height: 16px; vertical-align: 1px; }
.opt { display: inline-block; margin-left: 8px; font-size: 10px; letter-spacing: .1em; color: var(--muted2); }
.field { width: 100%; font-family: var(--sans); font-size: 16px; padding: 11px 13px; border: 0.5px solid var(--line3); border-radius: 0; background: #fff; color: var(--ink); appearance: none; -webkit-appearance: none; }
select.field { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
textarea.field { min-height: 110px; resize: vertical; }
.field:focus-visible { border-color: var(--moon); outline: none; box-shadow: 0 0 0 1px var(--moon); }
.f.zip { max-width: 220px; }
.privacy { font-size: 12px; color: var(--muted); margin: 18px 0 20px; }
.tform-status { font-size: 13px; margin: 14px 0 0; color: var(--moon); }

/* ---- note + footer ---- */
.note { border-top: 0.5px solid var(--line); padding-top: 22px; padding-bottom: 36px; font-size: 11px; line-height: 1.8; color: var(--muted); }
.note p { margin: 0; }
.site-footer { border-top: 0.5px solid var(--line); }
.site-footer .in { max-width: var(--maxw); margin: 0 auto; padding: 26px var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.site-footer .logo { height: 20px; color: var(--ink); display: block; }
.site-footer .logo svg { height: 20px; width: auto; display: block; }
.site-footer .legal { font-family: var(--gothic); font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; margin-left: auto; }
.site-footer .legal:hover { color: var(--ink); }
.site-footer .meta { font-family: var(--gothic); font-size: 12px; color: var(--muted2); letter-spacing: .03em; flex-direction: row; padding: 0; display: inline-flex; gap: 4px; }
.site-footer .sico { color: inherit; display: inline-flex; margin: 0 2px; opacity: .78; transition: opacity .2s; }
.site-footer .sico:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ph img, .card:hover .ph img { transition: none; transform: none; }
}

/* ---- 未決定マーカー(オーナー未決定の値を黄色で示す) ---- */
mark.tbd { background: #fff3a8; color: inherit; padding: 0 .25em; box-shadow: 0 0 0 1px rgba(160,130,0,.25); }

/* ---- ご購入について(送料区分 2 つ) ---- */
.buy-groups { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 28px 20px; }
.buy-group h3 { font-size: 14px; font-weight: 500; margin: 0 0 12px; }
.buy-group .steps { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.buy-group .steps li { padding: 16px 16px 18px; }
.step-sub { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--muted); }
@media (max-width: 860px) { .buy-groups { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .buy-group .steps { grid-template-columns: 1fr; } }

/* スマホ 2 列: 長い作品名を収める */
@media (max-width: 520px) { .meta .title { font-size: 13px; } }

/* ---- 特定商取引法ページ ---- */
.legal-page { padding-top: 100px; padding-bottom: 64px; }
.legal-page .back { display: inline-block; font-family: var(--gothic); font-size: 12px; letter-spacing: .06em; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.legal-page .back:hover { color: var(--ink); }
.legal-page h1 { font-size: clamp(26px, 4.4vw, 40px); font-weight: 500; letter-spacing: -.01em; line-height: 1.25; margin: 22px 0 6px; }
.legal-page .lab { margin: 0 0 30px; }
.tk { margin: 0; border-top: 0.5px solid var(--line); max-width: 900px; }
.tk > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 28px; padding: 18px 0; border-bottom: 0.5px solid var(--line2); font-size: 14px; line-height: 1.9; }
.tk dt { font-family: var(--gothic); font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--ink); }
.tk dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.tk ul { list-style: none; margin: 0; padding: 0; }
.tk li { position: relative; padding-left: 1em; }
.tk li + li { margin-top: 4px; }
.tk li::before { content: "・"; position: absolute; left: 0; }
.legal-page .back-bottom { margin-top: 36px; }
@media (max-width: 640px) { .tk > div { grid-template-columns: 1fr; gap: 2px; padding: 16px 0; } }

/* ================= 写真ギャラリー(詳細) ================= */
.m-photo.gal { overflow: hidden; }
.gal-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track:focus-visible { outline: 2px solid var(--moon-lime); outline-offset: -4px; }
.gal-slide { flex: 0 0 100%; width: 100%; height: 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; background: var(--moon); }
.gal-slide img { width: 100%; height: 100%; object-fit: contain; }
.m-photo.gal > .ph-empty { position: absolute; inset: 0; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 37px; height: 37px; border-radius: 999px; border: 0.5px solid rgba(250,250,246,.5); background: rgba(46,26,48,.72); color: var(--bg); font-size: 22px; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; padding: 0 0 3px; }
.gal-nav.prev { left: 10px; } .gal-nav.next { right: 10px; }
.gal-nav:hover:not(:disabled) { background: var(--moon-lime); color: var(--ink); border-color: var(--moon-lime); }
.gal-nav:disabled { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .gal-nav { display: flex; } }
.gal-dots { position: absolute; left: 0; right: 0; bottom: 6px; z-index: 2; display: flex; justify-content: center; gap: 0; pointer-events: none; }
.gal-dot { pointer-events: auto; width: 26px; height: 26px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.gal-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: rgba(250,250,246,.55); box-shadow: 0 0 0 1px rgba(46,26,48,.5); transition: background .2s, transform .2s; }
.gal-dot.on::after { background: var(--moon-lime); transform: scale(1.25); }
.ph img.wide { object-fit: contain; }

/* ================= 申込フォーム: 要約カード / 入力エラー / 送信プレビュー ================= */
.hp { display: none !important; }
.summary { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: start; border: 0.5px solid var(--line3); background: #fff; padding: 14px; margin: 0 0 22px; }
.summary.is-blank { display: block; background: transparent; border-style: dashed; padding: 14px 16px; }
.sum-empty { margin: 0; font-size: 13px; color: var(--muted); }
.sum-ph { position: relative; aspect-ratio: 3 / 4; background: var(--moon); overflow: hidden; }
.sum-ph img { width: 100%; height: 100%; object-fit: contain; }
.sum-ph .ph-empty { font-size: 10px; margin: 5px; letter-spacing: .2em; }
.sum-dl { margin: 0; min-width: 0; }
.sum-dl > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; padding: 5px 0; border-bottom: 0.5px solid var(--line2); font-size: 13px; line-height: 1.6; }
.sum-dl > div:last-child { border-bottom: 0; }
.sum-dl dt { font-family: var(--gothic); font-size: 11px; letter-spacing: .1em; color: var(--muted2); padding-top: 2px; }
.sum-dl dd { margin: 0; overflow-wrap: anywhere; }
.field.invalid { border-color: #b3261e; box-shadow: 0 0 0 1px #b3261e; }
.ferr { margin: 6px 0 0; font-size: 12px; color: #b3261e; }
.tform-status.err { color: #b3261e; }
.tform-status.preview { border: 0.5px solid var(--moon); background: #fff; padding: 16px 18px; color: var(--ink); }
.pv-head { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--moon); }
.pv { margin: 0; }
.pv dt { font-family: var(--gothic); font-size: 11px; letter-spacing: .14em; color: var(--muted2); margin-top: 10px; }
.pv dd { margin: 2px 0 0; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.pv pre { margin: 0; white-space: pre-wrap; font-family: var(--sans); font-size: 13px; line-height: 1.8; background: var(--bg); padding: 10px 12px; border: 0.5px solid var(--line2); }
@media (max-width: 520px) { .summary { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; } .sum-dl > div { grid-template-columns: 62px minmax(0, 1fr); gap: 8px; } }

/* ================= 写真の編集モード(?edit=1 のときだけ現れる) ================= */
.edit-bar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 8px var(--gut); background: var(--moon-lime); color: var(--ink); font-family: var(--gothic); font-size: 12px; line-height: 1.5; }
.edit-bar b { font-size: 13px; letter-spacing: .08em; }
.edit-bar span { flex: 1 1 260px; min-width: 0; }
.edit-bar a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.edit-mode .site-header { top: var(--editbar, 52px); }
.edit-toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 100; max-width: min(560px, calc(100vw - 24px)); padding: 10px 18px; background: var(--ink); color: var(--bg); font-size: 13px; line-height: 1.6; border-left: 4px solid var(--moon-lime); box-shadow: 0 6px 24px rgba(0,0,0,.28); }
.edit-toast.error { border-left-color: #e5484d; background: #3a0f12; }
.edit-toast.busy { border-left-color: #fff3a8; }
dialog.detail { z-index: 40; }
.eslots { margin-top: 10px; padding: 8px; border: 1px dashed var(--moon); background: rgba(160,194,35,.08); }
.eslots.big { margin: 0 0 20px; padding: 12px; }
.eid { margin: 0 0 6px; font-family: var(--gothic); font-size: 10px; line-height: 1.4; color: var(--moon); overflow-wrap: anywhere; }
.eid b { background: var(--moon); color: var(--moon-lime); padding: 0 5px; margin-right: 4px; font-weight: 600; }
.eslots.big .eid { font-size: 12px; margin-bottom: 10px; }
.eslot-row { display: flex; gap: 6px; align-items: flex-start; }
.eslot-col { flex: 1 1 0; min-width: 0; width: 0; }
.eslot { position: relative; display: block; width: 100%; height: 0; padding-bottom: 133.333%; background: var(--moon); cursor: pointer; overflow: hidden; color: var(--moon-lime); border: 1px solid transparent; } /* 3:4 を padding で作る(aspect-ratio は内容物で崩れたため) */
.eslot.vacant { background: rgba(46,26,48,.06); border: 1px dashed var(--moon); color: var(--moon); }
.eslot.drop { border-color: var(--moon-lime); outline: 2px solid var(--moon-lime); outline-offset: -2px; background-color: rgba(160,194,35,.25); }
.eslot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eslot .enum { position: absolute; top: 2px; left: 2px; min-width: 16px; height: 16px; padding: 0 4px; background: var(--ink); color: var(--moon-lime); font: 600 10px/16px var(--gothic); text-align: center; z-index: 1; }
.eplus { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-75%); text-align: center; font-size: 20px; line-height: 1; }
.ehint { position: absolute; left: 0; right: 0; top: calc(50% + 12px); font-family: var(--gothic); font-size: 9px; line-height: 1.3; letter-spacing: .04em; text-align: center; padding: 0 2px; }
.eslots.big .ehint { font-size: 11px; }
.eslots.big .eplus { font-size: 26px; }
.ebtns { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.ebtns button { flex: 1 1 0; min-width: 0; height: 24px; padding: 0; border: 0.5px solid var(--line3); background: #fff; font-family: var(--gothic); font-size: 11px; cursor: pointer; }
.ebtns button.rm { flex: 1 1 100%; color: #b3261e; }
.ebtns button:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.ebtns button.rm:hover:not(:disabled) { background: #b3261e; border-color: #b3261e; }
.ebtns button:disabled { opacity: .35; cursor: default; }
.eslots.big .ebtns button { height: 30px; font-size: 12px; }

/* ================= 作品の詳細テキスト(subtitle / tagline / 素材 / 作品について) ================= */
.m-tag { margin: 8px 0 0; font-family: var(--gothic); font-size: 10px; line-height: 1.8; letter-spacing: .2em; text-transform: uppercase; color: var(--muted2); overflow-wrap: anywhere; }
.spec .mat { display: block; }
.spec .mat.en { color: var(--muted); font-size: 12px; margin-top: 2px; }
.m-note .en { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.about { margin-top: 30px; padding-top: 24px; border-top: 0.5px solid var(--line); }
.about-h { margin: 0 0 14px; font-family: var(--gothic); font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--moon); }
.about-h.en { text-transform: uppercase; }
.about-h.sep { margin-top: 30px; padding-top: 22px; border-top: 0.5px solid var(--line2); }
.about-body > p, .about-body > blockquote { margin: 0 0 1.1em; font-size: 14px; line-height: 2; color: #26272c; overflow-wrap: anywhere; }
.about-body[lang="en"] > p, .about-body[lang="en"] > blockquote { font-size: 13.5px; line-height: 1.85; color: #3a3c42; }
.about-body strong { font-weight: 700; color: var(--ink); }
.about-body .b-lead { font-size: 16px; line-height: 1.8; }
.about-body .b-strong { margin-top: 1.4em; }
.about-body .b-def { padding-left: 14px; border-left: 2px solid var(--moon-lime); margin-bottom: .7em; }
.about-body .b-def strong { margin-right: .7em; }
.about-body .b-quote { padding: 2px 0 2px 14px; border-left: 2px solid var(--moon); background: transparent; }
.about-body .b-quote > strong { display: block; font-family: var(--gothic); letter-spacing: .04em; }
.about-body .b-quote > p { margin: 4px 0 0; }
.about-toggle { display: none; margin-top: 4px; height: 37px; padding: 0 22px; border-radius: 999px; border: 0.5px solid rgba(17,17,20,.4); background: transparent; font-family: var(--gothic); font-size: 12px; cursor: pointer; }
@media (max-width: 759px) {
  .about:not(.open) .more { display: none; }
  .about-toggle { display: inline-flex; align-items: center; }
}

/* ================= JP / EN ================= */
html[data-lang="ja"] [data-only="en"], html[data-lang="en"] [data-only="ja"] { display: none; }
.langsw:focus-visible { outline: 2px solid var(--moon); outline-offset: 2px; }
.prevail { margin: 0 0 26px; font-size: 13px; color: var(--muted); }
.m-jpy { margin: 4px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.cta .ship.intl-note { margin-top: 4px; }
/* EN: 海外注文を先頭に(タブ・購入ガイド) */
html[data-lang="en"] #tab-intl { order: -1; }
.buy-group.intl { grid-column: 1 / -1; }
html[data-lang="en"] .buy-group.intl { order: -1; }
.buy-group.intl .steps { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.field.addr { min-height: 84px; resize: vertical; }

/* ================= 商談中(hold) ================= */
.sold-badge.hold { background: rgba(250,250,246,.94); color: var(--moon); border: 0.5px solid var(--moon); padding: 5px 9px 5px 11px; }
.status.hold { color: var(--moon); font-weight: 600; }
.status.hold::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--moon); box-sizing: border-box; }
/* 編集モード: 状態のプルダウン */
.estatus { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-family: var(--gothic); font-size: 11px; color: var(--moon); }
.estatus .field { flex: 1 1 auto; min-width: 0; padding: 4px 28px 4px 8px; font-size: 13px; height: 30px; }
.estatus span { flex: 0 0 auto; white-space: nowrap; }

/* ================= 価格の内訳 / 要確認(tbd) ================= */
.m-note .tax { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.spec mark.tbd { display: inline-block; }

/* 在庫(ZINE) */
.m-stock { margin: 6px 0 0; font-family: var(--gothic); font-size: 12px; letter-spacing: .04em; color: var(--muted); }

/* ================= 非表示(hidden)。編集モードだけで見える ================= */
.card.is-hidden .ph, .card.is-hidden .meta { opacity: .42; }
.sold-badge.hidden-badge { background: var(--muted); color: #fff; opacity: 1; }
.card.is-hidden .sold-badge { opacity: 1; }

/* 編集モードの帯: 非表示の作品を表示する切り替え */
.edit-hidden-toggle { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.edit-hidden-toggle[hidden] { display: none; }
.edit-hidden-toggle input { width: 16px; height: 16px; accent-color: var(--moon); cursor: pointer; }

/* ================= 詳細画面(スマホ幅)の直し 2026-10-05 =================
   指摘: スマホで写真が画面の大半を占め、iPhone では写真が貼り付いたまま下の情報が隠れた。
   1) 写真の高さを画面の半分弱までに抑える
   2) 写真の横スクロール枠を「絶対配置」から通常の流れに戻す(iPhone で入れ子のスクロール枠が親のスクロールに付いて来ない現象の回避)
   3) 並び順を 作家・作品名 → 価格 → 購入ボタン → 仕様 → 作品について にして、開いた時点で買うための情報が見えるようにする */
.m-scroll { position: relative; }
.gal-track { -webkit-overflow-scrolling: auto; }
@media (max-width: 759px) {
  .m-photo { aspect-ratio: auto; height: min(calc(100vw - 24px), 50vh); height: min(calc(100vw - 24px), 50dvh); }
  .m-photo.gal > .gal-track { position: relative; inset: auto; width: 100%; height: 100%; }
  .m-info { display: flex; flex-direction: column; padding-top: 16px; }
  .m-info > * { order: 4; }
  .m-info > .lab, .m-info > h2, .m-info > .m-sub, .m-info > .m-tag { order: 1; }
  .m-info > .m-price, .m-info > .m-jpy, .m-info > .m-stock, .m-info > .m-note { order: 2; }
  .m-info > .cta { order: 3; }
  .m-info > .spec { order: 4; margin-top: 28px; }
  .m-info > .about { order: 5; }
  .m-info > .m-price { margin-top: 14px; }
  .m-info > .cta { margin-top: 16px; }
}
/* 画面の背が低いスマホ(インスタ内ブラウザなど)では写真をさらに抑え、購入ボタンまで見えるようにする */
@media (max-width: 759px) and (max-height: 620px) {
  .m-photo { height: min(calc(100vw - 24px), 42vh); height: min(calc(100vw - 24px), 42dvh); }
}

/* ================= 写真の拡大表示 2026-10-05 ================= */
.m-photo.gal .gal-slide img { cursor: zoom-in; }
.gal-zoom { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 40px; height: 40px; padding: 0; border-radius: 999px; border: 0.5px solid rgba(250,250,246,.55); background: rgba(46,26,48,.72); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gal-zoom svg { width: 19px; height: 19px; }
.gal-zoom:hover { background: var(--moon-lime); color: var(--ink); border-color: var(--moon-lime); }
.gal-zoom:focus-visible { outline: 2px solid var(--moon-lime); outline-offset: 2px; }
.zoomer { position: fixed; inset: 0; z-index: 60; background: rgba(12,9,14,.97); touch-action: none; overscroll-behavior: contain; }
.z-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; cursor: zoom-in; }
.z-img { max-width: 100%; max-height: 100%; width: auto; height: auto; transform-origin: center center; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; will-change: transform; }
.z-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(250,250,246,.94); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.z-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 999px; border: 0.5px solid rgba(250,250,246,.5); background: rgba(46,26,48,.72); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.z-nav.prev { left: 10px; } .z-nav.next { right: 10px; }
.z-count { position: absolute; left: 0; right: 0; top: max(24px, env(safe-area-inset-top)); margin: 0; text-align: center; color: rgba(255,255,255,.8); font-family: var(--gothic); font-size: 12px; letter-spacing: .2em; pointer-events: none; }
.z-hint { position: absolute; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom)); margin: 0; text-align: center; color: rgba(255,255,255,.72); font-size: 12px; pointer-events: none; }
.z-hint .mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .z-hint .touch { display: none; } .z-hint .mouse { display: inline; } }
/* 枚数表示と操作の案内は、明るい写真の上でも読めるよう暗い下地に乗せる */
.z-count, .z-hint { display: flex; justify-content: center; }
.z-count::before { content: none; }
.z-hint span, .z-count { text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.z-hint span { background: rgba(12,9,14,.62); padding: 6px 12px; border-radius: 999px; }
.z-count { left: 50%; right: auto; transform: translateX(-50%); background: rgba(12,9,14,.62); padding: 6px 12px; border-radius: 999px; color: #fff; }

/* 拡大表示の閉じるボタン(スマホ): iPhone では画面上端が時刻の帯の裏に入り、右上の × が押せなかった(2026-10-05)。
   下側に大きな「閉じる」を置き、右上の × と枚数表示も上端から離す */
.z-done { display: none; }
@media (hover: none), (pointer: coarse) {
  .z-close { top: calc(env(safe-area-inset-top) + 64px); }
  .z-count { top: calc(env(safe-area-inset-top) + 72px); }
  .z-done { display: flex; position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 96px); z-index: 2; height: 48px; padding: 0 26px; align-items: center; gap: 6px; border: 0; border-radius: 999px; background: rgba(250,250,246,.95); color: var(--ink); font-family: var(--gothic); font-size: 15px; font-weight: 600; letter-spacing: .08em; cursor: pointer; box-shadow: 0 4px 18px rgba(0,0,0,.35); }
  .z-hint { bottom: calc(env(safe-area-inset-bottom) + 156px); }
}
/* iPhone の隠れる帯(上 50px = 時刻・ダイナミックアイランド、下 100px = Safari のバー)に、固定のボタンを置かない(2026-10-05)。
   作品ページ(詳細)は上を 56px 空けて開き、右上の × が帯に入らないようにする。拡大表示の「閉じる」は下から 116px */
@media (max-width: 759px) {
  dialog.detail { margin: 56px auto 12px; max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); }
  .m-scroll { max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); }
  .m-photo { height: min(calc(100vw - 24px), 44vh); height: min(calc(100vw - 24px), 44dvh); }
}
@media (max-width: 759px) and (max-height: 620px) {
  .m-photo { height: min(calc(100vw - 24px), 38vh); height: min(calc(100vw - 24px), 38dvh); }
}
@media (hover: none), (pointer: coarse) {
  .z-done { bottom: calc(env(safe-area-inset-bottom) + 116px); }
  .z-hint { bottom: calc(env(safe-area-inset-bottom) + 176px); }
}
@media (max-width: 759px) and (max-height: 620px) {
  .m-photo { height: min(calc(100vw - 24px), 33vh); height: min(calc(100vw - 24px), 33dvh); }
}
