:root {
  --ink: #231815; --muted: #6d6866; --line: #e6e3df; --bg: #fff; --soft: #f7f6f4; --sub: #4a4543;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif; --latin: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --pink: #e4569a; --blue: #2ab4e6; --green: #6fb945; --orange: #f2a33a;
  --danger: #c0392b; --radius: 2px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* header / footer */
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; min-height: 88px; padding-top: 12px; padding-bottom: 12px; }
.site-header .logo { display: flex; align-items: center; }
.site-header .logo svg { height: 30px; width: auto; display: block; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 8px 32px; flex: 1; justify-content: flex-end; font-size: 14px; letter-spacing: .08em; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover, .site-header .member a:hover { color: var(--muted); }
.site-header .member { font-size: 12px; display: flex; gap: 16px; align-items: center; color: var(--muted); letter-spacing: .04em; }
.site-header .member a { text-decoration: none; }
.site-header .site-menu { display: flex; flex: 1; align-items: center; gap: 12px 32px; flex-wrap: wrap; }
.menu-toggle { display: none; }
@media (max-width: 720px) {
  .site-header .container { flex-wrap: wrap; min-height: 64px; gap: 0; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; margin-left: auto; width: 44px; height: 44px; padding: 0 10px; border: 0; background: none; cursor: pointer; }
  .menu-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .site-header .site-menu { display: none; flex: 0 0 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; }
  .site-header .site-menu.is-open { display: flex; }
  .site-header nav { flex-direction: column; gap: 0; font-size: 15px; }
  .site-header nav a, .site-header .member a, .site-header .member .linkbtn { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-header .member { flex-direction: column; align-items: stretch; gap: 0; font-size: 13px; }
  .site-header .member form { display: block; }
  .site-header .member .linkbtn { width: 100%; text-align: left; }
}
.site-footer { margin-top: 112px; background: var(--ink); color: #f4f2ee; font-size: 12px; letter-spacing: .06em; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 24px 32px; justify-content: space-between; align-items: flex-end; padding-top: 56px; padding-bottom: 56px; }
.site-footer .wordmark { font-family: var(--latin); font-size: 20px; font-weight: 300; }
.site-footer .wordmark b { font-weight: 700; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: #f4f2ee; text-decoration: none; }
.site-footer .copy { color: #b9b3ae; }
.dots { display: inline-grid; grid-template-columns: 6px 6px; gap: 3px; vertical-align: middle; margin: 0 8px; }
.dots i { width: 6px; height: 6px; display: block; }

main { padding: 24px 0 0; }
h1 { font-size: 28px; font-weight: 500; margin: 0 0 24px; letter-spacing: .06em; }
h2 { font-size: 20px; font-weight: 500; letter-spacing: .08em; margin: 56px 0 24px; padding-top: 28px; border-top: 1px solid var(--line); }
h2 .en, .eyebrow { font-family: var(--latin); font-size: 12px; font-weight: 400; letter-spacing: .24em; color: var(--muted); }
h2 .en { margin-left: 12px; }
h3 { font-size: 16px; font-weight: 500; margin: 24px 0 8px; letter-spacing: .06em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* grids / cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 48px 32px; }
.card { text-decoration: none; display: block; }
.card .thumb { aspect-ratio: 1; background: var(--soft); overflow: hidden; border-radius: var(--radius); }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.card:hover .thumb img { transform: scale(1.03); }
.card .meta { padding: 14px 0 0; font-size: 15px; line-height: 1.6; }
.card .meta strong { font-weight: 400; }
.card .meta strong { display: block; }
.badge { display: inline-block; font-size: 11px; padding: 0 8px; border: 1px solid var(--ink); margin-right: 4px; white-space: nowrap; letter-spacing: .06em; background: #fff; }
.badge.current { background: var(--ink); color: #fff; }
.badge.upcoming { background: #fff; }
.badge.sold { border-color: #b9b3ae; color: var(--muted); }
.badge.sale { background: #fff; }
.badge.down { border-color: var(--danger); color: var(--danger); }

.hero { padding: 48px 0 24px; }
.hero p { font-size: 15px; color: var(--muted); max-width: 640px; }

.exh-list { display: grid; gap: 16px; }
.exh { display: grid; grid-template-columns: 120px 1fr; gap: 24px; text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--line); }
.exh strong { font-weight: 500; font-size: 16px; }
.exh img { width: 120px; height: 120px; object-fit: cover; border-radius: 4px; background: var(--soft); }
.exh .noimg { width: 120px; height: 120px; background: var(--soft); border-radius: 4px; }

/* artwork page */
.artwork-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .artwork-layout { grid-template-columns: 1fr; } }
.artwork-main img { border-radius: var(--radius); background: var(--soft); }
dl.spec { display: grid; grid-template-columns: 7em 1fr; gap: 4px 12px; font-size: 14px; margin: 16px 0; }
dl.spec dt { color: var(--muted); }
dl.spec dd { margin: 0; }
.item-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.item-picker button { border: 1px solid var(--line); background: #fff; padding: 8px 12px; border-radius: var(--radius); cursor: pointer; font-size: 13px; text-align: left; }
.item-picker button.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.item-picker button small { display: block; color: var(--muted); }
.preview-views { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.preview-views figure { margin: 0; }
.preview-views canvas { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.preview-views figcaption { font-size: 12px; color: var(--muted); text-align: center; }
.sliders { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; font-size: 13px; margin: 12px 0; }
.price { font-size: 24px; font-weight: 600; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 16px 0; }

/* forms */
form .field { margin-bottom: 16px; }
label { font-size: 14px; }
.field > label { display: block; font-weight: 600; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], input[type=tel], select, textarea {
  width: 100%; padding: 9px 10px; border: 1px solid #cfcac4; border-radius: var(--radius); font: inherit; font-size: 15px; background: #fff;
}
textarea { min-height: 120px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.btn { display: inline-block; background: var(--ink); color: #fff; border: 0; padding: 12px 28px; border-radius: var(--radius); font: inherit; font-size: 14px; letter-spacing: .12em; cursor: pointer; text-decoration: none; }
.btn:hover { opacity: .85; }
.btn.light { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.btn.small { padding: 5px 12px; font-size: 13px; }
.btn.danger { background: var(--danger); }
.btn.block { width: 100%; text-align: center; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.checks { display: grid; gap: 8px; }
.checks label { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.checks label.disabled { color: #aaa; background: var(--soft); }
.checks label .reason { font-size: 12px; color: var(--danger); display: block; }

.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; }
.alert.ok { background: #eef8e8; border: 1px solid #c6e4b3; }
.alert.err { background: #fdecea; border: 1px solid #f2b8b1; }
.alert.warn { background: #fff6e5; border: 1px solid #f4d29c; }
.alert ul { margin: 0; padding-left: 18px; }

/* tables */
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
table.list th { font-size: 12px; color: var(--muted); font-weight: 600; }
table.list td.num, table.list th.num { text-align: right; white-space: nowrap; }
table.list img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; }
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; padding: 4px 6px; font-size: 13px; }

.admin-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; padding: 10px 0; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.admin-nav a { text-decoration: none; }
.admin-nav a.on { font-weight: 700; text-decoration: underline; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stats div { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stats strong { font-size: 24px; display: block; }
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 24px 0; font-size: 14px; }
.pagination li > * { display: block; padding: 4px 10px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; }
.pagination li.active > * { background: var(--ink); color: #fff; }
.pagination li.disabled > * { color: #bbb; }
.narrow { max-width: 520px; }
.contact .req { margin-left: 6px; font-size: 11px; font-weight: 400; color: #b3261e; }
.contact select, .contact textarea, .contact input[type=text], .contact input[type=email], .contact input[type=url] { width: 100%; box-sizing: border-box; }
.contact textarea { resize: vertical; min-height: 160px; font: inherit; }
.contact .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.grecaptcha-badge { visibility: hidden; }
.legal { max-width: 760px; }
.legal h2 { margin: 40px 0 12px; font-size: 17px; border: 0; padding: 0; }
.legal p, .legal li { font-size: 14px; line-height: 1.9; }
.legal ul { padding-left: 1.4em; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 14px; line-height: 1.8; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 16px 0; border-bottom: 1px solid var(--line); }
.legal th { width: 200px; padding-right: 24px; font-weight: 500; color: var(--sub); }
@media (max-width: 640px) { .legal th, .legal td { display: block; width: auto; padding: 0; border: 0; } .legal th { padding-top: 16px; } .legal td { padding-bottom: 16px; border-bottom: 1px solid var(--line); } }
.legal h3 { margin: 24px 0 6px; font-size: 15px; font-weight: 500; }
.legal ol { padding-left: 1.6em; }
.legal ol ul { margin: 4px 0; }

/* dashboard panel (artist + admin) */
.panel { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
.panel-nav { position: sticky; top: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #fff; }
.panel-who { display: grid; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); line-height: 1.4; }
.panel-nav nav { display: grid; gap: 2px; }
.panel-nav nav a { text-decoration: none; padding: 7px 10px; border-radius: 4px; font-size: 14px; }
.panel-nav nav a:hover { background: var(--soft); }
.panel-nav nav a.on { background: var(--ink); color: #fff; }
.panel-main { min-width: 0; }
.panel-main h1 { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.panel-main h2:first-of-type { margin-top: 24px; }
@media (max-width: 860px) {
  .panel { grid-template-columns: 1fr; gap: 16px; }
  .panel-nav { position: static; padding: 10px; }
  .panel-who { display: none; }
  .panel-nav nav { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 4px; }
  .panel-nav nav a { white-space: nowrap; }
  table.list { display: block; overflow-x: auto; }
}
.impersonate-bar { background: #fff3df; border-bottom: 1px solid #f4d29c; font-size: 13px; padding: 8px 0; }
.stats div small { display: block; color: var(--muted); font-size: 12px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.toolbar select, .toolbar input { width: auto; padding: 6px 8px; font-size: 14px; }
.neg { color: var(--danger); }

/* ===== public pages (gallery design) ===== */
.textlink { font-size: 13px; letter-spacing: .08em; text-decoration: none; border-bottom: 1px solid var(--ink); }
.sec-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; justify-content: space-between; margin: 96px 0 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.sec-head h2 { margin: 0; padding: 0; border: 0; }
.exh-strip { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; text-decoration: none; margin-bottom: 24px; }
.exh-strip .date { font-family: var(--latin); color: var(--muted); }
.home-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; padding: 24px 0 24px; }
.home-hero .copy { display: grid; gap: 28px; }
.home-hero h1 { font-size: 44px; line-height: 1.5; letter-spacing: .04em; margin: 0; }
.home-hero p { margin: 0; font-size: 15px; color: var(--sub); max-width: 30em; }
.home-hero .actions { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 640px) { .home-hero h1 { font-size: 32px; } }
.slides { margin: 0; display: grid; gap: 14px; }
.slides .frame { position: relative; aspect-ratio: 4 / 5; background: var(--soft); overflow: hidden; }
.slides .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.slides .frame img.on { opacity: 1; }
.slides .bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.slides figcaption { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.slides .dots-nav { display: flex; gap: 4px; }
.slides .dots-nav button { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.slides .dots-nav button span { display: block; width: 28px; height: 2px; background: #cfcac5; }
.slides .dots-nav button[aria-pressed="true"] span { background: var(--ink); }
.band { background: var(--soft); margin-top: 96px; }
.band .container { padding-top: 96px; padding-bottom: 96px; }
.band .sec-head { margin-top: 0; border-top: 0; padding-top: 0; }
.looks { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 0 0 64px; }
.looks:last-child { margin-bottom: 0; }
.looks figure { margin: 0; }
.looks img { display: block; width: 100%; aspect-ratio: 1122 / 1402; object-fit: cover; }
.looks figcaption { margin-top: 12px; font-size: 13px; color: var(--muted, #666); }
@media (max-width: 640px) { .looks { gap: 12px; margin-bottom: 40px; } }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px; }
.items .item { display: grid; gap: 14px; }
.items .item .ph { aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.items .item .ph img { width: 82%; height: 82%; object-fit: contain; }
.items .item .row2 { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.items .item .row2 span:last-child { font-family: var(--latin); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.steps li { display: grid; gap: 10px; border-top: 1px solid var(--ink); padding-top: 20px; }
.steps .no { font-family: var(--latin); font-size: 13px; letter-spacing: .2em; color: var(--muted); }
.steps .t { font-size: 18px; font-weight: 500; }
.steps .d { font-size: 14px; color: var(--sub); }
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; margin-top: 112px; }
.feature .ph { display: flex; justify-content: center; align-items: center; }
.feature .ph img { display: block; width: auto; height: auto; max-width: min(100%, 560px); max-height: 480px; } /* whole photo, no cropping */
@media (max-width: 720px) { .feature .ph img { max-height: 400px; } }
.feature .body { display: grid; gap: 20px; justify-items: start; }
.feature h2 { margin: 0; padding: 0; border: 0; font-size: 28px; letter-spacing: .1em; }
.feature p { margin: 0; font-size: 14px; color: var(--sub); }
.fa-hero { display: grid; gap: 24px; justify-items: start; padding: 64px 0 16px; }
.fa-hero h1 { margin: 0; font-size: 36px; letter-spacing: .12em; line-height: 1.5; }
.fa-hero p { margin: 0; font-size: 15px; line-height: 2; color: var(--sub); max-width: 40em; }
.fa-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.fa-grid li { display: grid; gap: 10px; align-content: start; border-top: 1px solid var(--ink); padding-top: 20px; }
.fa-grid .t { font-size: 17px; font-weight: 500; }
.fa-grid .d { font-size: 14px; line-height: 1.9; color: var(--sub); }
.fa-rev { margin: 0 0 20px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.fa-rev div { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.fa-rev dt { font-size: 14px; color: var(--muted); }
.fa-rev dd { margin: 0; font-size: 15px; line-height: 1.8; }
.fa-rev strong { font-family: var(--latin); font-size: 18px; font-weight: 600; }
@media (max-width: 640px) { .fa-hero h1 { font-size: 26px; } .fa-rev div { grid-template-columns: 1fr; gap: 6px; } }
.cta { text-align: center; display: grid; justify-items: center; gap: 20px; margin-top: 112px; padding-top: 96px; border-top: 1px solid var(--line); }
.cta h2 { margin: 0; padding: 0; border: 0; font-size: 24px; }
.cta p { margin: 0; font-size: 14px; color: var(--sub); max-width: 34em; }

.artist-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 64px; align-items: end; padding: 32px 0 24px; }
.artist-hero .names { display: grid; gap: 16px; }
.artist-hero h1 { font-size: 44px; letter-spacing: .14em; line-height: 1.4; margin: 0; }
.artist-hero .en { font-family: var(--latin); font-size: 14px; letter-spacing: .16em; color: var(--muted); }
.artist-hero .links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.artist-hero .ph { display: flex; justify-content: flex-end; align-items: flex-end; }
.artist-hero .ph img { display: block; width: auto; height: auto; max-width: min(100%, 560px); max-height: 480px; } /* whole photo, no cropping */
@media (max-width: 720px) { .artist-hero .ph { justify-content: flex-start; } .artist-hero .ph img { max-height: 400px; } }
.profile { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 64px; margin-top: 64px; }
.profile > div { border-top: 1px solid var(--ink); padding-top: 24px; display: grid; gap: 32px; align-content: start; }
.profile h2 { margin: 0 0 14px; padding: 0; border: 0; font-size: 16px; letter-spacing: .12em; }
.profile .bio { margin: 0; font-size: 14px; color: var(--sub); line-height: 2; }
.career { display: grid; gap: 8px; font-size: 13px; margin: 0; padding: 0; list-style: none; }
.career li { display: grid; grid-template-columns: 4em 1fr; gap: 20px; }
.career li .y { font-family: var(--latin); color: var(--muted); }
.career li.more { display: none; }
.career.open li.more { display: grid; }
.morebtn { margin-top: 12px; min-height: 44px; padding: 0; background: none; border: 0; border-bottom: 1px solid var(--ink); font: inherit; font-size: 13px; letter-spacing: .08em; color: var(--ink); cursor: pointer; }

/* artwork detail */
.crumbs { font-size: 12px; color: var(--muted); letter-spacing: .06em; margin: 0 0 24px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.work-layout { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.work-visual { flex: 999 1 520px; min-width: 0; display: grid; gap: 16px; }
.work-order { flex: 1 1 400px; min-width: 0; display: grid; gap: 32px; }
.work-visual .preview-views { grid-template-columns: 1fr; }
.work-visual .preview-views figure:not(:first-child) { display: none; }
.work-visual .preview-views canvas { border: 0; border-radius: 0; background: var(--soft); }
.work-visual .preview-views figcaption { display: none; }
.work-original { position: relative; background: var(--soft); aspect-ratio: 1; overflow: hidden; }
.work-original img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.work-title { display: grid; gap: 6px; }
.work-title .artist { font-size: 13px; letter-spacing: .1em; color: var(--muted); text-decoration: none; }
.work-title h1 { margin: 0; font-family: var(--latin), var(--sans); font-size: 30px; letter-spacing: .04em; }
.work-title .year { font-size: 16px; font-weight: 400; color: var(--muted); }
.field-group { display: grid; gap: 12px; }
.field-group .label { font-size: 13px; letter-spacing: .1em; }
.type-tabs { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border: 1px solid var(--ink); }
.type-tabs button { min-height: 48px; padding: 0 4px; border: 0; border-left: 1px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-size: 13px; letter-spacing: .04em; cursor: pointer; }
.type-tabs button:first-child { border-left: 0; }
.type-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.work-order .item-picker { display: grid; gap: 10px; margin: 0 0 32px; }
.work-order .item-picker button { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 20px; border: 1px solid #d6d2ce; border-radius: 0; background: #fff; font: inherit; font-size: 14px; }
.work-order .item-picker button[hidden] { display: none; }
.work-order .item-picker button small { display: inline; font-family: var(--latin); font-size: 14px; color: var(--ink); }
.work-order .item-picker button.on { border-color: var(--ink); box-shadow: none; background: var(--soft); }
.work-order .sliders { grid-template-columns: 4em 1fr; gap: 10px 12px; margin: 0; }
.work-order .sliders input { accent-color: var(--ink); }
.order-box { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 32px; display: grid; gap: 12px; }
.order-box .price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.order-box .price { font-family: var(--latin); font-size: 28px; font-weight: 400; }
.order-box .ship { margin: 0; text-align: right; }
.order-box .qty { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.order-box .qty select { width: auto; min-width: 80px; }
.order-box .btn { min-height: 56px; font-size: 15px; letter-spacing: .16em; }
[hidden] { display: none !important; }
.work-about { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; margin-top: 96px; padding-top: 32px; border-top: 1px solid var(--line); }
.work-about h2 { margin: 0 0 16px; padding: 0; border: 0; font-size: 18px; }
.work-about p { font-size: 14px; color: var(--sub); }
/* Phone: keep the preview pinned at the top while scrolling to the options/sliders; sizes in 2 columns.
   display:contents lifts the preview out of .work-visual so it can stay stuck over the whole .work-layout. */
@media (max-width: 720px) {
  .work-layout { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; }
  .work-visual, .work-visual [data-item-area], #roomView { display: contents; }
  .work-order { margin-top: 24px; }
  .work-visual #views, .work-visual #roomStage { position: sticky; top: 0; z-index: 5; background: #fff; box-shadow: 0 4px 8px -6px rgba(0, 0, 0, .3); }
  .work-visual .preview-views canvas { display: block; width: auto; max-width: 100%; max-height: 45vh; margin: 0 auto; }
  .room-toggle { margin-top: 12px; }
  .work-visual .hint, .work-original, .share-row { margin-top: 12px; }
  .work-order .item-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-order .item-picker button { flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; min-height: 60px; padding: 8px 12px; font-size: 13px; text-align: left; }
  .work-order .item-picker button small { font-size: 13px; }
}
.work-thumb { margin: 0; max-width: 240px; display: grid; gap: 8px; }
.work-thumb img { background: var(--soft); }
.work-thumb figcaption { font-size: 12px; color: var(--muted); }

/* matte print: wall-size preview on a photo background */
.room { position: relative; width: 100%; aspect-ratio: 1.784; overflow: hidden; background: var(--soft); }
.room-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room-print { position: absolute; box-sizing: border-box; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); display: flex; align-items: center; justify-content: center; transition: all .3s ease; }
.room-print.is-lean { transform-origin: 50% 100%; transform: perspective(900px) rotateX(9deg); box-shadow: 6px -5px 12px rgba(0, 0, 0, .16); }
.room-print.is-lean::after { content: ""; position: absolute; left: 1%; right: 1%; bottom: -2px; height: 3px; background: rgba(0, 0, 0, .35); filter: blur(1.5px); border-radius: 50%; }
.room-toggle button[hidden] { display: none; }
.room-print img { max-width: 90%; max-height: 90%; object-fit: contain; }
.paper-link { margin-top: 12px; margin-left: 16px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; vertical-align: middle; }
.modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; padding: 32px; border: 0; box-shadow: 0 10px 40px rgba(0, 0, 0, .2); color: var(--ink); }
.modal::backdrop { background: rgba(0, 0, 0, .45); }
.modal-img { display: block; width: calc(100% + 64px); margin: -32px -32px 24px; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 80%; }
.modal h3 { margin: 0 0 16px; font-size: 18px; }
.modal p { font-size: 14px; line-height: 1.9; }
.modal dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 20px 0; font-size: 14px; line-height: 1.7; }
.modal dt { color: var(--muted); }
.modal dd { margin: 0; }
.modal form { margin-top: 24px; text-align: right; }
.room-toggle { display: inline-flex; vertical-align: middle; gap: 0; margin-top: 12px; border: 1px solid var(--ink); width: max-content; }
.room-toggle button { min-height: 44px; padding: 0 20px; border: 0; background: #fff; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.room-toggle button + button { border-left: 1px solid var(--ink); }
.room-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.orient-toggle { display: inline-flex; border: 1px solid var(--ink); width: max-content; }
.orient-toggle button { min-height: 44px; min-width: 72px; padding: 0 20px; border: 0; background: #fff; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.orient-toggle button + button { border-left: 1px solid var(--ink); }
.orient-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.type-tabs button { font-size: 12px; letter-spacing: 0; padding: 0 2px; line-height: 1.3; word-break: keep-all; }

/* Artwork list: filter by item */
.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 20px; }
.filter-chips .label { font-size: 12px; color: var(--muted); letter-spacing: .06em; margin-right: 4px; width: 100%; }
.filter-chips .chip { font-size: 13px; padding: 4px 12px; border: 1px solid #d9d5d1; color: var(--ink); text-decoration: none; background: #fff; white-space: nowrap; }
.filter-chips .chip:hover { border-color: var(--ink); }
.filter-chips .chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-select { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -8px 0 20px; }
.filter-select label { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.filter-select select { width: auto; min-width: 220px; padding: 6px 10px; font: inherit; font-size: 13px; border: 1px solid #d9d5d1; border-radius: 0; background: #fff; color: var(--ink); }
@media (max-width: 720px) { .filter-select select { width: 100%; min-width: 0; } .filter-select label { width: 100%; } }
.filter-note { margin: -16px 0 24px; }

/* Preview: rotate the artwork 90° */
.sliders .label-cell { font-size: 13px; }
.rotate-btn { font: inherit; font-size: 13px; padding: 4px 12px; border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.rotate-btn:hover { background: var(--ink); color: #fff; }

/* SNS share */
.share-row { margin-top: 16px; }
.share-toggle { font: inherit; font-size: 13px; padding: 4px 16px; border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; min-height: 36px; }
.share-toggle:hover, .share-toggle[aria-expanded="true"] { background: var(--ink); color: #fff; }
.share-panel { margin-top: 10px; padding: 14px 16px; border: 1px solid var(--ink); background: #fff; }
.share-panel[hidden] { display: none; }
.share-panel .share-save { margin-bottom: 10px; }
.share-panel .share-note { margin: 10px 0 0; font-size: 12px; }
.share-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; }
.share-btn:hover { background: var(--ink); color: #fff; }
.share-btn[hidden] { display: none; }
.exhibition-share { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.exhibition-share .label { font-size: 13px; color: var(--muted); margin-right: 4px; }
