/* 焼き物を魅せます！ 公開用Webページ  TATSUYA STYLE
   見た目はパンフレット「朱と生成り」（営業パンフレット\最終案\…\build.py の CSS_LOOK）にそろえる。
   スマホ（幅390px）が主役。PC では幅 1080px に収める。 */
:root {
  --paper: #F2ECDD;        /* 地の色（和紙の生成り） */
  --paper-deep: #E8DFCB;   /* 地の濃いところ */
  --card: #FCFAF4;         /* 札・カードの白 */
  --ink: #24201D;          /* 墨（本文） */
  --sub: #4E4038;          /* 墨茶（番号・小見出し・図の線） */
  --accent: #B5352A;       /* 朱（差し色：落款・矢印・二重罫の片方） */
  --gold: #9C7A45;         /* 金茶（細い線だけ） */
  --line: rgba(36,32,29,.28);
  --line-strong: rgba(36,32,29,.62);
  --line-acc: rgba(181,53,42,.75);
  --dark-bg: #1E1B1A;
  --on-dark: #F3EDE0;
  --shadow: 0 2px 9px rgba(70,50,30,.16);
  --font-head: 'Shippori Mincho B1', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
  --font-body: 'Zen Old Mincho', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
  --font-en: 'Cormorant Garamond', 'Times New Roman', serif;
  --washi: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='a'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .42  0 0 0 0 .34  0 0 0 0 .22  0 0 0 .32 -.13'/></filter><filter id='b'><feTurbulence type='fractalNoise' baseFrequency='.018 .42' numOctaves='2' seed='8' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .46  0 0 0 0 .32  0 0 0 .55 -.34'/></filter><rect width='100%' height='100%' filter='url(%23a)'/><rect width='100%' height='100%' filter='url(%23b)'/></svg>");
  /* 食卓シミュレーション（sim.css）と viewer の古い名前を、この色に読み替える */
  --gosu: var(--accent); --aka: var(--accent); --kin: var(--gold); --sumi: var(--ink); --sen: rgba(36,32,29,.3);
  --bg: var(--paper); --bg2: var(--paper-deep); --bg3: rgba(36,32,29,.16); --mute: #5A4C43; --r: 3px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--font-body); font-weight: 500;
  font-size: 16px; line-height: 1.9; letter-spacing: .03em; font-feature-settings: "palt" 1;
  background-color: var(--paper); background-image: var(--washi); background-size: 260px 260px;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
/* 左の余白に、朱と墨の細い二本線（パンフの全ページと同じ） */
body::before { content: ''; position: fixed; left: 7px; top: 0; bottom: 0; width: 4px; z-index: 30; pointer-events: none;
  border-left: 1px solid var(--line-acc); border-right: .6px solid rgba(36,32,29,.45); }
body.noscroll { overflow: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; }
.acc { color: var(--accent); }
.en { font-family: var(--font-en); font-weight: 600; letter-spacing: .28em; color: var(--sub); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px 0 24px; }
.note { font-size: 14px; color: var(--sub); line-height: 1.8; }
.howto { font-size: 15px; color: var(--sub); margin: 6px 0 14px; }

/* ---------------------------------------------------------------- 上の帯 */
.hd { position: sticky; top: 0; z-index: 40; background: rgba(242,236,221,.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-strong); }
.hd::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; border-top: 1px solid var(--line-acc); }
.hd-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 14px; padding-top: 8px; padding-bottom: 6px; }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.logo-img { height: 17px; width: auto; display: block; align-self: center; }   /* 屋号は名刺のロゴ */
.logo-jp { font-family: var(--font-head); font-weight: 700; letter-spacing: .16em; font-size: 14px; }
.gnav { display: flex; gap: 2px; margin: 0 -8px; }
.gnav a { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-decoration: none; color: var(--ink);
  padding: 9px 8px; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; white-space: nowrap; }
.gnav a[aria-current] { border-bottom-color: var(--accent); }
.gnav a:hover { color: var(--accent); }
.gnav a.cta { color: var(--accent); }
@media (max-width: 759px) {
  .gnav { width: calc(100% + 8px); justify-content: space-between; margin: 0 -4px; }
  .gnav a { font-size: 14px; letter-spacing: 0; padding: 9px 4px; }
}

/* ---------------------------------------------------------------- 下の帯 */
.ft { margin-top: 56px; border-top: 1px solid var(--line-strong); position: relative; padding: 26px 0 34px; }
.ft::before { content: ''; position: absolute; left: 0; right: 0; top: 3px; border-top: 1px solid var(--line-acc); }
.ft p { margin: 0 0 10px; }
.ft-note { font-size: 14px; color: var(--sub); line-height: 1.8; }
.ft-go a { font-family: var(--font-head); font-weight: 700; color: var(--accent); text-decoration: none; font-size: 16px; display: inline-flex; min-height: 44px; align-items: center; gap: 6px; }
.ft-logo { height: 19px; width: auto; display: block; }

/* ---------------------------------------------------------------- パンフの部品 */
.runhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-family: var(--font-head); font-weight: 700;
  font-size: 13px; letter-spacing: .2em; padding: 18px 0 6px; border-bottom: 1px solid var(--line-strong); position: relative; margin-bottom: 18px; }
.runhead::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; border-top: 1px solid var(--line-acc); }
.headline { font-family: var(--font-head); font-weight: 800; font-size: 26px; line-height: 1.5; letter-spacing: .08em; margin: 0 0 12px; }
.lead { font-size: 16px; line-height: 1.95; letter-spacing: .04em; margin: 0 0 8px; }
/* 章の番号＝朱の落款（角印） */
.seal { flex: none; width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; color: #FFF8EE; background: var(--accent);
  font-family: var(--font-head); font-weight: 700; font-size: 28px; line-height: 1; font-variant-numeric: lining-nums;
  border-radius: 5px 3px 6px 4px; box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 4px rgba(255,248,238,.85), 0 1px 3px rgba(70,30,20,.2); }
.frame { border: 1px solid var(--line-strong); position: relative; background: rgba(252,250,244,.35); }
.frame::before { content: ''; position: absolute; inset: 4px; border: .7px solid var(--line-acc); opacity: .6; pointer-events: none; }
.frame.dash { border-style: dashed; }
.frame.dash::before { display: none; }

.band { margin-bottom: 8px; }
.band-main { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
.band .headline { margin: 0; font-size: 22px; letter-spacing: .05em; }
.band .lead { grid-column: 1 / -1; margin-top: 14px; }
.band .lead br { display: none; }
/* 8つの流れ（どこにいるか） */
.steps { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin: 18px 0 6px; }
.steps a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--sub); padding: 6px 0 4px; min-height: 44px;
  border-top: 2px solid var(--line); font-size: 12px; line-height: 1.3; text-align: center; }
.steps a b { font-family: var(--font-head); font-size: 16px; color: var(--sub); }
.steps a span { display: none; }
.steps a[aria-current] { border-top-color: var(--accent); }
.steps a[aria-current] b { color: var(--accent); }
.steps a:hover b { color: var(--accent); }

/* 製品ページ */
.crumbs { font-size: 14px; color: var(--sub); padding: 16px 0 0; }
.crumbs a { color: var(--sub); }
.ptitle { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 16px 0 12px; }
.ptitle h1, .ptitle h2 { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: .1em; margin: 0; line-height: 1.4; }
.chpage .ptitle h2 { font-size: 20px; }
.ptitle .cat { font-size: 13px; color: var(--sub); border: 1px solid var(--line-strong); padding: 0 10px; letter-spacing: .1em; }
.subhead { font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: .1em; color: var(--sub); margin: 4px 0 12px; }
.nowshow { font-size: 15px; margin: 10px 0 0; color: var(--sub); }
.nowshow b { color: var(--ink); font-family: var(--font-head); }

#viewer {
  position: relative; width: 100%; height: min(64vh, 600px); min-height: 330px; overflow: hidden;
  background: radial-gradient(ellipse 78% 72% at 50% 44%, #FBF8F0 0%, #F3EDDF 55%, #E4D9C2 100%);
  border: 1px solid var(--line-strong); user-select: none; -webkit-user-select: none;
}
#viewer::after { content: ''; position: absolute; inset: 4px; border: .7px solid var(--line-acc); opacity: .55; pointer-events: none; z-index: 1; }
#viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: none; }
#viewer.grab canvas { cursor: grabbing; }
.loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(242,236,221,.88); z-index: 5; transition: opacity .4s; color: var(--sub); font-size: 15px; text-align: center; padding: 20px; }
.loading.done { opacity: 0; pointer-events: none; }
.loading p { margin: 0; }
.loading .small { font-size: 13px; }
.loading.err .spin { display: none; }
.spin { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(36,32,29,.2); border-top-color: var(--accent); animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; pointer-events: none;
  background: rgba(36,32,29,.74); color: #F3EDE0; font-size: 13px; padding: 5px 14px; border-radius: 14px; width: max-content; text-align: center; line-height: 1.5;
  transition: opacity .6s; max-width: calc(100% - 24px); }
.hint.off { opacity: 0; }
.hint .h-touch { display: none; }
@media (max-width: 760px), (hover: none) { .hint .h-pc { display: none; } .hint .h-touch { display: inline; } }
.swapnote { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 4; display: none; align-items: center; gap: 8px;
  background: rgba(252,250,244,.95); border: 1px solid var(--line); padding: 5px 14px 5px 8px; border-radius: 999px; font-size: 14px; color: var(--sub); }
.swapnote .spin { width: 18px; height: 18px; }
#viewer.swapping .swapnote { display: flex; }
.cutnote { position: absolute; right: 12px; top: 12px; z-index: 3; display: none; align-items: center; gap: 8px; font-size: 13px;
  background: rgba(252,250,244,.92); padding: 3px 10px; color: var(--sub); border: 1px solid var(--line); }
.cutnote.show { display: flex; }
.cutnote i { width: 14px; height: 14px; background: #C9643F; display: inline-block; }
.dimlab { position: absolute; left: 0; top: 0; z-index: 2; display: none; pointer-events: none; white-space: nowrap;
  background: var(--gold); color: #fff; font-size: 13px; padding: 1px 9px; font-variant-numeric: tabular-nums; }

/* 操作ボタン（指で押しやすく：高さ44px） */
.tools { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 0; }
.tg { display: flex; flex-wrap: wrap; gap: 6px; }
.btn { font: inherit; font-size: 15px; line-height: 1.3; letter-spacing: .04em; min-height: 44px; border: 1px solid rgba(36,32,29,.38); background: var(--card);
  color: var(--ink); padding: 8px 12px; border-radius: 3px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: .15s; }
.btn:hover { border-color: var(--ink); }
.btn.on { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.btn svg { width: 17px; height: 17px; flex: none; }
.tg.views .btn.v { min-width: 52px; justify-content: center; }
.stage.is-full, .stage.pseudo-full { background: var(--paper); display: flex; flex-direction: column; padding: 12px; width: 100%; height: 100%; }
.stage.pseudo-full { position: fixed; inset: 0; z-index: 100; }
.stage.is-full #viewer, .stage.pseudo-full #viewer { flex: 1; height: auto; min-height: 0; }

/* 01：線 → 形だけ → 色つき */
.looks { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 4px; margin: 12px 0 2px; }
.lk { font: inherit; text-align: center; border: 1px solid rgba(36,32,29,.38); background: var(--card); color: var(--ink); cursor: pointer; padding: 8px 6px;
  min-height: 64px; border-radius: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.lk b { font-family: var(--font-head); font-size: 17px; letter-spacing: .12em; }
.lk small { font-size: 12px; line-height: 1.4; color: var(--sub); }
.lk.on { background: var(--accent); border-color: var(--accent); color: #FFF8EE; }
.lk.on small { color: #F7DED6; }
.looks .arr { align-self: center; color: var(--accent); font-style: normal; font-size: 15px; }
/* 01：写真・概略寸法・ことば */
.inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 4px 0 14px; }
.in-card { margin: 0; }
.in-card .mat { background: var(--card); box-shadow: 0 2px 7px rgba(40,25,15,.22); padding: 6px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.in-card.photo .mat { transform: rotate(-2deg); }
.in-card.size .mat { transform: rotate(1.5deg); color: var(--ink); }
.in-card .mat img { width: 100%; height: 100%; object-fit: cover; }
.in-card .sketch { width: 100%; height: 100%; }
.in-card .sketch .s-sub { stroke: var(--sub); } .in-card .sketch .s-acc { stroke: var(--accent); }
.in-card.words .mat { align-items: center; justify-content: flex-start; padding: 6px 8px; }
.in-card.words p { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 12px; line-height: 1.65; letter-spacing: .02em; }
.in-card.words p { font-size: 11px; line-height: 1.55; }
.fi-c br, .lead br { display: none; }
.runhead { font-size: 11px; letter-spacing: .1em; }
.runhead > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.in-card figcaption { font-size: 14px; margin-top: 8px; line-height: 1.4; }
.in-card figcaption .en { display: block; font-size: 11px; }
.in-arrow { grid-column: 1 / -1; margin: 2px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .1em; color: var(--sub); text-align: center; }
.in-arrow span { color: var(--accent); }
/* 05：回せます */
.turnme { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; }
.seal-round { width: 70px; height: 70px; white-space: nowrap; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none;
  color: var(--accent); border: 3px double var(--accent); background: rgba(252,250,244,.6); font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0; }
.turn-t { font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: .12em; color: var(--sub); line-height: 1.6; }

/* 03・02：見本を替えるボタン */
.vsec { margin-top: 8px; }
.vgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.vt { font: inherit; border: 1px solid var(--line); background: var(--card); border-radius: 3px; padding: 4px 2px 6px; cursor: pointer; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; transition: .15s; position: relative; }
.vt img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.vt span { font-size: 13px; line-height: 1.35; letter-spacing: 0; text-align: center; }
.vt:hover { border-color: var(--ink); }
.vt.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.vt.on span { color: var(--accent); font-weight: 700; }
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fcard { font: inherit; text-align: left; border: 1px solid var(--line-strong); background: rgba(252,250,244,.5); padding: 6px 6px 4px; cursor: pointer; color: var(--ink);
  position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fcard::before { content: ''; position: absolute; inset: 3px; border: .7px solid var(--line-acc); opacity: .45; pointer-events: none; }
.fcard .fh { font-size: 14px; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; line-height: 1.35; }
.fcard .fh b { font-family: var(--font-head); font-size: 18px; }
.fcard.pick .fh b { color: var(--accent); }
.fcard .pick { font-style: normal; font-size: 11px; color: #FFF8EE; background: var(--accent); padding: 0 5px; margin-left: auto; letter-spacing: .04em; }
.fcard img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.fcard.pick { border-color: var(--accent); }
.fcard.on { box-shadow: inset 0 0 0 2px var(--ink); background: var(--card); }
.gh { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 26px; }
.gh .frame { padding: 14px 14px 12px; }
.gh h3 { font-size: 16px; margin: 0 0 8px; font-weight: 500; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.gh h3 b { font-family: var(--font-head); font-size: 20px; }
.gh h3 small { font-size: 13px; color: var(--sub); }
.gwrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; align-items: center; }
.ovl { width: 100%; height: auto; display: block; }
.ovl .acc { stroke: var(--accent); } .ovl .ink { stroke: var(--ink); } .ovl .sub { stroke: var(--sub); } .ovl .rule { stroke: var(--line-strong); }
.ovl text { font-family: var(--font-head); font-weight: 700; font-size: 10px; }
.ovl .t-acc { fill: var(--accent); } .ovl .t-ink { fill: var(--ink); } .ovl .t-w { fill: #FFF8EE; font-size: 11px; }
.ovl .badge { fill: var(--accent); }
.hbox .ovl { max-width: 360px; margin: 0 auto; }
.legend { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 6px; line-height: 1.9; }
.legend svg { width: 30px; height: 6px; flex: none; }
.legend svg .acc { stroke: var(--accent); } .legend svg .ink { stroke: var(--ink); } .legend svg .sub { stroke: var(--sub); }
.legend b { font-family: var(--font-head); width: 1em; }

/* 製品の説明 */
h2.sec { font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: .1em; margin: 34px 0 10px; display: flex; align-items: baseline; gap: 12px; }
h2.sec .en { font-size: 12px; }
.info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 28px 0; }
.panel { border: 1px solid var(--line-strong); padding: 16px 16px 14px; background: rgba(252,250,244,.55); position: relative; min-width: 0; }
.panel::before { content: ''; position: absolute; inset: 4px; border: .7px solid var(--line-acc); opacity: .5; pointer-events: none; }
.panel h2 { font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: .1em; margin: 0 0 10px; }
dl.spec { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 15px; }
dl.spec dt { color: var(--sub); }
dl.spec dd { margin: 0; overflow-wrap: anywhere; }
dl.spec small { color: var(--sub); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: 13px; border: 1px solid var(--line); padding: 0 8px; background: var(--card); }
.basis { display: inline-block; font-size: 12px; padding: 0 7px; margin-left: 6px; border: 1px solid var(--gold); color: var(--gold); }
table.parts { width: 100%; border-collapse: collapse; font-size: 15px; }
table.parts th, table.parts td { text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--line); }
table.parts th { color: var(--sub); font-weight: 500; font-size: 13px; }
table.parts .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.swatch { display: inline-block; width: 13px; height: 13px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; border: 1px solid rgba(0,0,0,.15); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery a { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.gallery a img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery a span { display: block; font-size: 14px; padding: 5px 10px; font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; }
.gallery.one { grid-template-columns: minmax(0, 1fr); }
.gallery.one img, .gallery.zu img { aspect-ratio: auto; object-fit: contain; background: #fff; }
.downloads { display: flex; flex-wrap: wrap; gap: 8px; }
.dl { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-strong); padding: 10px 14px; text-decoration: none; color: var(--ink); background: var(--card); min-height: 54px; min-width: 0; flex: 1 1 260px; }
.dl:hover { border-color: var(--accent); }
.dl .ext { font-family: var(--font-en); font-weight: 600; font-size: 14px; color: #FFF8EE; background: var(--ink); padding: 1px 8px; letter-spacing: .12em; flex: none; }
.dl.pdf .ext { background: var(--accent); } .dl.dxf .ext { background: var(--gold); }
.dl small { display: block; color: var(--sub); font-size: 13px; line-height: 1.5; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 36px 0 8px; }
.pager a { text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: rgba(252,250,244,.6); padding: 9px 12px; font-size: 15px; display: block; min-width: 0; min-height: 54px; }
.pager a:hover { border-color: var(--ink); }
.pager a small { display: block; color: var(--sub); font-size: 13px; }
.pager .next { text-align: right; }
.pager .home { grid-column: 1 / -1; order: 3; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; letter-spacing: .1em; }
.pager span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
/* 章の送り */
.chpager { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line-strong); position: relative; }
.chpager::before { content: ''; position: absolute; left: 0; right: 0; top: 3px; border-top: 1px solid var(--line-acc); }
.chpager a { text-decoration: none; color: var(--ink); padding: 10px 12px; min-height: 64px; border: 1px solid var(--line-strong); background: var(--card); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.chpager a:hover { border-color: var(--accent); }
.chpager small { font-size: 13px; color: var(--accent); }
.chpager span { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .06em; line-height: 1.5; }
.chpager span b { color: var(--accent); margin-right: 6px; }
.chpager .next { text-align: right; align-items: flex-end; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(30,27,26,.92); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 94vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 94vw; max-height: 80vh; background: #fff; }
.lightbox figcaption { color: var(--on-dark); margin-top: 10px; font-size: 16px; font-family: var(--font-head); letter-spacing: .1em; }
.lightbox button { position: absolute; background: rgba(243,237,224,.16); color: #fff; border: 0; font-size: 28px; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; line-height: 1; }
.lb-close { top: 12px; right: 12px; } .lb-prev { left: 8px; top: 50%; } .lb-next { right: 8px; top: 50%; }

/* ---------------------------------------------------------------- 入口 */
.cover { position: relative; overflow: hidden; }
.cover-in { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 18px; position: relative; }
.cover-en { font-size: 12px; margin: 0 0 6px; }
.cover-h { font-family: var(--font-head); font-weight: 800; font-size: 44px; line-height: 1.35; letter-spacing: .18em; margin: 0 0 10px; }
.cover-lead { font-size: 17px; line-height: 2; margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--gold); display: inline-block; }
.cover-img { margin: 0 -10px -6px; position: relative; }
.cover-img::before { content: ''; position: absolute; inset: 10% -10% 0; background: radial-gradient(ellipse 55% 50% at 45% 55%, rgba(206,190,160,.5), rgba(206,190,160,0) 70%); z-index: -1; }
.cover-img img { filter: drop-shadow(0 4px 8px rgba(80,55,30,.25)); }
.flow { padding-top: 6px; }
.phase { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: .12em; margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line-strong); display: flex; align-items: baseline; gap: 12px; }
.phase .en { font-size: 12px; }
.flow-grid { display: grid; gap: 10px; }
.flow-grid.p1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flow-grid.p2 { grid-template-columns: minmax(0, 1fr); }
.flow-item { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "no h" "img img" "c c" "go go"; align-items: baseline; column-gap: 8px;
  text-decoration: none; color: var(--ink); border: 1px solid var(--line-strong); background: rgba(252,250,244,.55); padding: 10px 10px 8px; position: relative; min-width: 0; }
.flow-item::before { content: ''; position: absolute; inset: 3px; border: .7px solid var(--line-acc); opacity: .45; pointer-events: none; }
.flow-item:hover { border-color: var(--accent); }
.fi-no { grid-area: no; font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--sub); line-height: 1; }
.fi-h { grid-area: h; font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .06em; line-height: 1.4; }
.fi-img { grid-area: img; display: block; margin: 8px 0 6px; border-bottom: 1px dashed var(--line-strong); padding-bottom: 6px; }
.fi-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.fi-c { grid-area: c; font-size: 14px; line-height: 1.6; }
.fi-go { grid-area: go; font-size: 14px; color: var(--accent); margin-top: 4px; font-family: var(--font-head); font-weight: 700; }
.flow-item.wide { grid-template-columns: auto 1fr 1fr; grid-template-areas: "no h h" "img img c" "img img go"; }
.flow-item.wide .fi-img { border: 0; margin: 6px 6px 0 0; }
.flow-item.wide .fi-c { align-self: start; padding-top: 8px; }
.flow-down { color: var(--accent); font-size: 15px; margin: 14px 0 0; display: flex; align-items: center; gap: 10px; }
.flow-down .arrow { font-size: 20px; }
.flow-07 { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "no h" "c c" "go go"; column-gap: 10px; align-items: baseline; text-decoration: none; color: var(--ink); margin-top: 22px; padding: 14px 14px 12px; }
.flow-07:hover { border-color: var(--accent); }
.flow-07 .fi-c { margin-top: 6px; }
.flow-08 { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "no h" "s s" "go go"; column-gap: 10px; align-items: baseline; text-decoration: none; color: var(--ink);
  margin-top: 14px; padding: 12px 4px 12px; border-bottom: 1px solid var(--line-strong); }
.f8-steps { grid-area: s; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: 15px; }
.f8-steps i { color: var(--accent); font-style: normal; }
.more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 30px; }
.more-card { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "en go" "b go" "s go"; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line-strong); background: var(--card); padding: 12px 16px; align-items: center; }
.more-card:hover { border-color: var(--accent); }
.more-card .en { grid-area: en; font-size: 11px; }
.more-card b { grid-area: b; font-family: var(--font-head); font-size: 18px; letter-spacing: .1em; }
.more-card small { grid-area: s; font-size: 14px; color: var(--sub); }
.more-card .go { grid-area: go; color: var(--accent); font-size: 22px; }

/* ---------------------------------------------------------------- 見本の一覧 */
.listhead .headline { font-size: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 4px; }
.chip { font: inherit; font-size: 14px; min-height: 40px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); padding: 4px 12px; border-radius: 3px; cursor: pointer; }
.chip small { color: var(--sub); margin-left: 4px; }
.chip.on { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.chip.on small { color: #CDBFAE; }
.countline { font-size: 14px; color: var(--sub); margin: 6px 0 0; }
.countline b { color: var(--accent); font-size: 18px; }
.cat-section { margin: 28px 0 8px; }
.cat-section h2 { font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: .12em; margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.cat-section h2 small { font-size: 13px; color: var(--sub); font-weight: 500; letter-spacing: .04em; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); transition: .2s; min-width: 0; }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: var(--paper-deep); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .cseal { position: absolute; left: 6px; top: 6px; background: var(--accent); color: #FFF8EE; font-family: var(--font-head); font-weight: 700; font-size: 13px;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 3px 2px 4px 2px; box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 0 3px rgba(255,248,238,.8); }
.card .badgedecor { position: absolute; right: 6px; top: 6px; font-size: 12px; background: rgba(252,250,244,.92); border: 1px solid var(--line); padding: 0 6px; }
.card .body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card h3 { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .06em; margin: 0; line-height: 1.5; }
.card .dims { font-size: 13px; color: var(--sub); margin-top: auto; }

/* ---------------------------------------------------------------- 04 図面 */
.zu-main { margin-top: 4px; }
.zu-cap { font-size: 15px; color: var(--sub); margin: 14px 0 8px; }
.gallery.zu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zu-to { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: .1em; color: var(--sub); margin: 14px 0 16px; text-align: right; }
.zu-to .arrow { color: var(--accent); margin-right: 8px; }
.see3d a { font-family: var(--font-head); font-weight: 700; color: var(--accent); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; margin-top: 10px; }

/* ---------------------------------------------------------------- 08 ご相談 */
.tea { margin: 18px 0 0; position: relative; }
.tea img { width: 100%; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%); }
.tea .vtxt { position: absolute; right: 2px; top: 8%; writing-mode: vertical-rl; font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .1em; line-height: 1.9;
  background: rgba(242,236,221,.55); padding: 8px 4px; }
.contact-card { margin-top: 18px; padding: 20px 16px 22px; background: var(--card); box-shadow: var(--shadow); }
.cflow { list-style: none; margin: 0 0 18px; padding: 0 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; border-bottom: 1px solid var(--line); text-align: center; }
.cflow li { display: flex; flex-direction: column; align-items: center; position: relative; }
.cflow li + li::before { content: '→'; position: absolute; left: -8px; top: 2px; color: var(--accent); }
.cflow .num { font-family: var(--font-head); font-size: 22px; line-height: 1.2; }
.cflow .h { font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.4; letter-spacing: .04em; }
.cflow small { font-size: 13px; color: var(--sub); line-height: 1.4; margin-top: 2px; }
@media (max-width: 759px) {
  .cflow { gap: 2px; margin-left: -6px; margin-right: -6px; }
  .cflow .h { font-size: 13px; letter-spacing: -.02em; }
  .cflow small { font-size: 12px; letter-spacing: 0; }
}
.c-en { font-size: 12px; margin: 0; }
.c-brand { margin: 10px 0 6px; }
.c-logo { width: min(290px, 100%); height: auto; display: block; }
.c-dl dt.jp { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .2em; color: var(--sub); }
.c-dl .c-tel a { display: block; text-decoration: none; padding: 4px 0; font-variant-numeric: lining-nums; }   /* 電話・MAIL・WEBは同じ大きさ */
.c-addr .nw { display: inline-block; white-space: nowrap; }
.c-dl dd.c-addr { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.5; padding: 6px 0; }   /* 住所だけ少し大きく・太く */
.c-quals { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.c-qh { margin: 0; flex-basis: 100%; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .3em; color: var(--sub); }
.c-q { margin: 0; display: flex; align-items: center; gap: 10px; }
.c-q img { height: 62px; width: auto; display: block; }
.c-q figcaption { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .06em; line-height: 1.45; white-space: nowrap; }
.c-q figcaption span { display: block; font-size: 13px; letter-spacing: .3em; color: var(--sub); }
.c-name { font-family: var(--font-head); font-weight: 700; font-size: 26px; letter-spacing: .3em; margin: 0 0 8px; }
.c-dl { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 2px 8px; margin: 0 0 16px; align-items: baseline; }
.c-dl dt { font-size: 12px; }
.c-dl dd { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.c-dl a { display: inline-block; padding: 6px 0; }
.mailbtn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; background: var(--accent); color: #FFF8EE; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: .12em; border-radius: 3px; box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 4px rgba(255,248,238,.7); }
.mailbtn:hover { filter: brightness(1.06); }

/* ---------------------------------------------------------------- 06 食卓シミュレーション（sim.css の上書き） */
.simbody { background-color: var(--paper); }
.tsteps { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tsteps li { border: 1px solid var(--line-strong); background: rgba(252,250,244,.5); padding: 6px 4px; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 14px; line-height: 1.4; position: relative; }
.tsteps li b { display: block; font-size: 18px; color: var(--sub); }
.tsteps li + li::before { content: '→'; position: absolute; left: -10px; top: 40%; color: var(--accent); font-weight: 400; }
.simbody .hd { position: relative; }
.simwrap .simapp { margin-top: 10px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
@media (min-width: 861px) { .simwrap .simapp { height: calc(100vh - 24px); height: calc(100dvh - 24px); } }
.simstage { background: #EAE3D3; }
.simpanel { background: var(--card); border-left-color: var(--line); }
.sbtn { min-height: 40px; }
.sbtn.on { background: var(--ink); color: var(--on-dark); }
.sbtn:hover { background: rgba(36,32,29,.07); color: var(--ink); }
.sbtn.on:hover { background: var(--ink); color: var(--on-dark); }
.seg, .sbtn.save { background: rgba(252,250,244,.94); border-radius: 4px; }
.stab { font-family: var(--font-head); font-size: 14px; min-height: 46px; }
.stab.on { color: var(--accent); border-bottom-color: var(--accent); }
.stabs { background: var(--card); top: 0; }
.preset, .ttile, .tile, .oblist li { border-radius: 3px; background: var(--card); }
.preset b, .ttile b { font-family: var(--font-head); }
.preset:hover, .ttile:hover, .tile:hover { border-color: var(--accent); }
.ttile.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #FBF3EC; }
.oblist li.on { border-color: var(--accent); background: #FBF3EC; }
.target { background: #FBF3EC; color: var(--accent); border-radius: 3px; }
.tile .ti { background: linear-gradient(180deg, #F6F1E6, #E8DFCB); border-radius: 2px; }
.tile .k { color: var(--accent); }
.s-empty, .s-sel, .s-busy { border-radius: 4px; background: rgba(252,250,244,.96); }
.s-toast { background: var(--ink); border-radius: 3px; }
.s-hint { background: rgba(36,32,29,.74); }
.simnote { margin-top: 12px; }
.pnote { font-size: 14px; color: var(--sub); }

/* ---------------------------------------------------------------- PC */
@media (min-width: 760px) {
  .wrap { padding: 0 32px 0 40px; }
  body::before { left: 14px; }
  .hd-in { flex-wrap: nowrap; padding-top: 6px; padding-bottom: 6px; }
  .logo-img { height: 19px; }
  .headline { font-size: 34px; }
  .lead { font-size: 17px; }
  .seal { width: 76px; height: 76px; font-size: 36px; }
  .band-main { column-gap: 26px; }
  .band .headline { font-size: 32px; letter-spacing: .08em; }
  .band .lead br, .fi-c br, .lead br { display: inline; }
  .runhead { font-size: 13px; letter-spacing: .2em; }
  .steps a span { display: block; }
  .steps a { padding-top: 8px; }
  .ptitle h1, .ptitle h2 { font-size: 28px; }
  .chpage .ptitle h2 { font-size: 22px; }
  .tools { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  .info { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .gallery.zu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pager { grid-template-columns: 1fr auto 1fr; }
  .pager .home { grid-column: auto; order: 0; padding: 0 22px; }
  .vgrid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .fgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .gh { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .inputs { grid-template-columns: repeat(3, 200px) 1fr; align-items: end; }
  .in-arrow { grid-column: auto; text-align: left; padding-bottom: 30px; }
  .in-card.words p { font-size: 15px; }
  .looks { max-width: 760px; }
  .lk small { font-size: 13px; }
  .cover-in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; padding-top: 30px; }
  .cover-h { font-size: 64px; }
  .cover-txt { position: relative; z-index: 2; }
  .flow-grid.p1 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .flow-grid.p2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-07 { grid-template-columns: auto auto 1fr auto; grid-template-areas: "no h c go"; align-items: center; }
  .flow-07 .fi-c { margin: 0 0 0 12px; }
  .flow-08 { grid-template-columns: auto auto 1fr auto; grid-template-areas: "no h s go"; align-items: center; }
  .f8-steps { margin: 0 0 0 16px; }
  .more { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
  .tea .vtxt { font-size: 18px; right: 6%; }
  .contact-card { padding: 28px 30px; display: grid; grid-template-columns: minmax(0, 1fr); }
  .cflow .h { font-size: 17px; }
  .mailbtn { max-width: 360px; }
  .tsteps { max-width: 640px; }
}
@media (min-width: 1000px) {
  .cover-h { font-size: 72px; }
}
