/* KEGAKI(見本・木と鉄の家具の工房)v1.0 2026-10-29
   色は工房と材料の写真から取り、変数も物の名前にした(4-06)。
   使う手法は 4 つまで: 地の色の面(01)・余白と罫(18)・色の板のずらし(02=最初の画面の手の写真 1 か所だけ)・差し金の L(見出しの目印)。影は使わない。 */
:root {
  --doma: #E4E2DD;        /* 土間(工房のコンクリートの床) */
  --doma-l: #C7C4BD;      /* 土間の上の罫 */
  --zumen: #F7F7F4;       /* 図面の紙 */
  --zumen-l: #D8D7D1;     /* 図面の上の罫 */
  --kurokawa: #2E3338;    /* 黒皮(鉄の黒い肌) */
  --kurokawa-d: #23272B;  /* 黒皮の影の側 */
  --nara: #DAA973;        /* ナラ */
  --nara-ji: #D3AE82;     /* ナラの地(写真のナラを少し落ち着かせた) */
  --hagane: #5B5955;      /* 鋼の灰(削った鉄) */
  --enpitsu: #4A4D52;     /* 鉛筆の線 */
  --sekihitsu: #E6E8E9;   /* 石筆(鉄に引く白い線)。クリームに寄せない(07 の癖 10) */
  --sekihitsu-s: #B4B8BC; /* 黒皮の上の小さな字 */
  --yaki-ao: #2F5D9E;     /* 焼き戻しの青(300℃) */
  --yaki-wara: #D4B26A;   /* 焼き戻しの麦わら(220℃) */
  /* 書体(01 の組み直し): 本文は端末のゴシック。顔・区切りは製作台帳の刷りの字、数字は図面の字、品番だけ刻印 */
  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", YuGothic, "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
  --face: "Shippori Antique B1", var(--jp);
  --sec: "Shippori Antique", var(--jp);
  --num: "Barlow", var(--jp);
  --stamp: "Big Shoulders Stencil Display", "Barlow", var(--jp);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --hd-h: 60px;
}
*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--hd-h) + 12px); }
html, body { overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--zumen); color: var(--kurokawa); font: 400 16px/1.85 var(--jp); line-break: strict; overflow-wrap: break-word; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; }
legend { padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button, a, label, input, select, textarea { touch-action: manipulation; }
input, select, textarea { font: inherit; font-size: 16px; color: inherit; }
.mono { font-family: var(--num); }
.w { max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .w { padding-inline: 32px; } }
@media (min-width: 1024px) { .w { padding-inline: 40px; } }

/* ---------- 見本の帯・頭 ---------- */
.pv { background: var(--kurokawa-d); color: var(--sekihitsu-s); font-size: 12.5px; line-height: 1.5; padding: 7px 16px; text-align: center; }
.hd { position: sticky; top: 0; z-index: 50; height: var(--hd-h); display: flex; align-items: center; gap: 20px; padding-inline: 16px; background: var(--zumen); border-bottom: 1px solid var(--zumen-l); }
@media (min-width: 1024px) { .hd { padding-inline: max(40px, calc((100vw - 1240px) / 2 + 40px)); } }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; }
.logo b { font: 600 18px/1 var(--num); letter-spacing: .22em; white-space: nowrap; }
.logo small { font: 500 12.5px/1 var(--jp); letter-spacing: .06em; color: var(--enpitsu); } /* [rw1120] 小さい和文は 0.06em まで */
.logo-mk { width: 28px; height: 14px; fill: none; stroke: var(--kurokawa); stroke-width: 1.6; overflow: visible; }
.logo-mk path { stroke: var(--yaki-ao); }
.nav { display: none; gap: 4px; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 14px; font-weight: 500; color: var(--enpitsu); }
.nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 9px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--kurokawa); } .nav a:hover::after { transform: scaleX(1); } }
@media (min-width: 1200px) { .nav { display: flex; } }
.hd .hd-cta { display: none; }
@media (min-width: 768px) { .hd .hd-cta { display: inline-flex; } }
.mn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 4px 0 10px; font-size: 14px; font-weight: 500; white-space: nowrap; user-select: none; -webkit-user-select: none; }
.mn i { position: relative; width: 22px; height: 12px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transition: transform .35s var(--ease); }
.mn[aria-expanded="true"] i { transform: scaleY(.25); }
@media (min-width: 1200px) { .mn { display: none; } }
.drawer { position: fixed; z-index: 49; top: var(--hd-h); left: 0; right: 0; background: var(--zumen); border-bottom: 1px solid var(--zumen-l); padding: 8px 16px 18px; }
.drawer nav { display: grid; }
.drawer a { display: flex; align-items: center; min-height: 50px; border-bottom: 1px solid var(--zumen-l); font-size: 16px; font-weight: 500; }
.drawer a:last-child { border-bottom: 0; color: var(--yaki-ao); }

/* ---------- ボタン(直角・乗せると焼き戻しの青・矢印が伸びる) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 0 22px; font: 600 15px/1.3 var(--jp); letter-spacing: .04em; border: 1px solid transparent; border-radius: 0; cursor: pointer; user-select: none; -webkit-user-select: none; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn--main { background: var(--kurokawa); color: var(--zumen); }
.btn--line { background: transparent; border-color: currentColor; }
.btn--s { min-height: 44px; padding: 0 16px; font-size: 14px; gap: 10px; }
.ar { position: relative; display: inline-block; flex: 0 0 auto; width: 20px; height: 10px; transition: width .4s var(--ease); }
.ar::before { content: ""; position: absolute; left: 0; right: 1px; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; }
.ar::after { content: ""; position: absolute; right: 1px; top: 50%; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .ar { width: 32px; }
  .btn--main:hover { background: var(--yaki-ao); }
  .btn--line:hover { background: rgba(46, 51, 56, .07); }
}
.ib { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid currentColor; transition: background-color .3s var(--ease), color .3s var(--ease); }
.ib svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (hover: hover) and (pointer: fine) { .ib:hover { background: var(--kurokawa); color: var(--zumen); } }
.ib:active { transform: scale(.96); }
.ph-note { font-size: 12px; line-height: 1.5; color: var(--enpitsu); }

/* ---------- 01 最初の画面 ---------- */
.hero { position: relative; display: grid; background: var(--zumen); }
.hero-txt { position: relative; z-index: 2; padding: calc(24vw + 26px) 16px 34px; display: flex; flex-direction: column; }
.kicker { font-size: 14px; font-weight: 500; line-height: 1.6; color: var(--enpitsu); letter-spacing: .03em; }
.kicker .kk { font-size: 12.5px; }
.hero-line { display: block; width: 100%; max-width: 560px; height: 22px; margin: 16px 0 14px; overflow: visible; }
.hero-line path, .so-line path { fill: none; vector-effect: non-scaling-stroke; }
.hl-main { stroke: var(--enpitsu); stroke-width: 1.5; }
.hl-tick { stroke: var(--enpitsu); stroke-width: 1.5; }
.hero-h { font-family: var(--face); font-weight: 400; font-size: min(52px, calc((100vw - 32px) / 6.6)); line-height: 1.24; letter-spacing: .03em; font-feature-settings: "palt" 1; color: var(--kurokawa); }
.hero-h .ln, .so-h .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-h .ln > span, .so-h .ln > span { display: inline-block; white-space: nowrap; }
.lead { margin-top: 20px; font-size: 15.5px; line-height: 1.95; max-width: 31em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-log { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font: 500 13px/1.5 var(--num); color: var(--enpitsu); }
.hero-log .dot { width: 8px; height: 8px; background: var(--yaki-ao); }
.hero-art { position: relative; order: -1; height: max(250px, 72vw); }
.hero-wide { position: absolute; inset: 0; overflow: hidden; background: var(--kurokawa); }
.hw { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hw.is-on { opacity: 1; }
.hw img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-hand { position: absolute; z-index: 3; left: 16px; bottom: -24vw; width: 40vw; max-width: 300px; display: flex; flex-direction: column; }
.hh-box { position: relative; aspect-ratio: 1; isolation: isolate; }
.hh-box::before { content: ""; position: absolute; inset: 0; background: var(--yaki-ao); transform: translate(10px, 10px); z-index: -1; }
.hh { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.hh.is-on { opacity: 1; }
.hero-hand figcaption { position: absolute; left: calc(100% + 22px); bottom: 0; width: max-content; max-width: calc(100vw - 40vw - 70px); display: flex; flex-direction: column; font-size: 13px; line-height: 1.5; color: var(--enpitsu); }
.hero-hand figcaption b { font: 500 12px/1.6 var(--num); color: var(--yaki-ao); letter-spacing: .06em; }
.hero-hand figcaption span { word-break: keep-all; overflow-wrap: anywhere; } /* [samplefix1104] 1 字だけの行を作らない。折り返すのは「、」の後ろ */
.hero-ctl { position: absolute; z-index: 4; right: 12px; bottom: 12px; display: flex; gap: 4px; }
.hc { min-width: 44px; height: 44px; padding: 0 10px; background: rgba(35, 39, 43, .74); color: var(--sekihitsu); font-size: 14px; font-weight: 600; user-select: none; -webkit-user-select: none; transition: background-color .3s var(--ease), color .3s var(--ease); }
.hc.is-on { background: var(--sekihitsu); color: var(--kurokawa); }
.hc svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; vertical-align: middle; }
.hc-pause.is-paused svg { fill: currentColor; stroke: none; }
.hero-art .ph-note { position: absolute; z-index: 4; right: 12px; top: 10px; padding: 2px 8px; background: rgba(35, 39, 43, .66); color: var(--sekihitsu); }
@media (min-width: 600px) {
  .hero-art { height: 62vw; max-height: 560px; }
  .hero-hand { width: 30vw; bottom: -14vw; }
  .hero-txt { padding-top: calc(14vw + 34px); }
  .hero-hand figcaption { max-width: 260px; }
  .hero-h { font-size: min(68px, calc((100vw - 64px) / 6.6)); }
}
@media (min-width: 1024px) {
  .hero { --edge: max(40px, calc((100vw - 1240px) / 2 + 40px)); --tw: clamp(400px, 42vw, 740px); grid-template-columns: calc(var(--edge) + var(--tw) + 72px) minmax(0, 1fr); height: clamp(600px, calc(92svh - var(--hd-h) - 32px), 860px); }
  .hero-txt { padding: 40px 72px 40px var(--edge); justify-content: center; }
  .hero-h { font-size: min(84px, calc(var(--tw) / 6.6)); }
  .hero-art { order: 0; height: auto; max-height: none; }
  .hero-hand { left: -7%; bottom: 8%; width: clamp(200px, 30%, 300px); }
  .hero-hand figcaption { position: static; margin-top: 18px; max-width: none; background: var(--zumen); padding: 6px 10px 8px; align-self: flex-start; }
  .hero-ctl { right: 20px; bottom: 20px; }
  .hero-art .ph-note { right: 20px; top: 16px; }
  html.js:not(.nomotion) .hw.is-on img { animation: kgZoom 22s linear both; }
}
@keyframes kgZoom { from { transform: scale(1); } to { transform: scale(1.06); } }
/* 開いた時に 1 回だけ: 一本の線が引かれる → 一言が下から(B4・transform だけ) */
html.js:not(.nomotion) .hl-main { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js:not(.nomotion) .hl-tick { opacity: 0; }
html.js:not(.nomotion) .hero-h .ln > span { transform: translateY(108%); }
html.js:not(.nomotion) .hero .lead, html.js:not(.nomotion) .hero .cta, html.js:not(.nomotion) .hero-log { opacity: 0; transform: translateY(10px); }
html.js.is-loaded:not(.nomotion) .hl-main { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease) .1s; }
html.js.is-loaded:not(.nomotion) .hl-tick { opacity: 1; transition: opacity .3s ease .85s; }
html.js.is-loaded:not(.nomotion) .hero-h .ln > span { transform: none; transition: transform 1s var(--ease) .55s; }
html.js.is-loaded:not(.nomotion) .hero-h .ln:nth-child(2) > span { transition-delay: .68s; }
html.js.is-loaded:not(.nomotion) .hero .lead, html.js.is-loaded:not(.nomotion) .hero .cta, html.js.is-loaded:not(.nomotion) .hero-log { opacity: 1; transform: none; transition: opacity .8s var(--ease) 1s, transform .8s var(--ease) 1s; }

/* ---------- 区切りの共通 ---------- */
.sec { position: relative; padding: 34px 0 38px; }
@media (min-width: 1024px) { .sec { padding: 50px 0 54px; } }
.sec--doma { background: var(--doma); }
.sec--zumen { background: var(--zumen); }
.sec--nara { background: var(--nara-ji); }
.sec--iron { background: var(--kurokawa); color: var(--sekihitsu); isolation: isolate; }
/* 黒皮の地の質感 = 本物の鋼の写真 1 枚を薄く重ねる(7-05・数式のノイズは使わない) */
.sec--iron::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(ph/m-steel.webp) center / cover no-repeat; mix-blend-mode: soft-light; opacity: .55; pointer-events: none; }
/* 見出し: 差し金の L を角に置く(目印)。読む人の問い+答えの見出し */
.hhd { position: relative; padding: 15px 0 0 22px; }
.sq { position: absolute; left: 0; top: 0; width: 72px; height: 48px; overflow: visible; fill: none; }
.sq-l { stroke: var(--enpitsu); stroke-width: 1.5; }
.sq-t { stroke: var(--enpitsu); stroke-width: 1; }
.sec--iron .sq-l, .sec--iron .sq-t { stroke: var(--sekihitsu); }
.q { font-size: 14px; font-weight: 600; line-height: 1.5; letter-spacing: .05em; color: var(--enpitsu); margin-bottom: 6px; }
.sec--iron .q { color: var(--sekihitsu-s); }
.sec--nara .q { color: var(--kurokawa); }
.hhd h2 { font-family: var(--sec); font-weight: 400; font-size: clamp(24px, 2.1vw, 30px); line-height: 1.32; letter-spacing: .05em; font-feature-settings: "palt" 1; word-break: keep-all; overflow-wrap: break-word; }
html.js:not(.nomotion) .sq-l { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease); }
html.js:not(.nomotion) .sq-t { opacity: 0; transition: opacity .4s ease .55s; }
html.js:not(.nomotion) .hhd.is-in .sq-l { stroke-dashoffset: 0; }
html.js:not(.nomotion) .hhd.is-in .sq-t { opacity: 1; }
/* 出方: 下から少し(読む物)/幕が開く(写真)。どちらも 1 回だけ */
html.js:not(.nomotion) [data-rv] { opacity: 0; transform: translateY(14px); transition: opacity .85s var(--ease), transform .85s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
html.js:not(.nomotion) [data-rv].is-in { opacity: 1; transform: none; }
/* 幕は中の写真に掛ける(入れ物に掛けると、見えたかどうかの見張りが反応しない) */
html.js:not(.nomotion) [data-wipe] img { clip-path: inset(0 100% 0 0); transition: clip-path 1.15s var(--ease); }
html.js:not(.nomotion) [data-wipe].is-in img { clip-path: inset(0 0 0 0); }

/* ---------- 02 二人の手 ---------- */
.hands-in { display: grid; gap: 26px; }
.hands-lead { margin-top: 18px; font-size: 15.5px; max-width: 30em; }
.hands-two { display: grid; gap: 0; margin-top: 22px; }
.hands-two > div { padding: 14px 0 16px; border-top: 2px solid var(--kurokawa); border-bottom: 1px solid var(--doma-l); }
.hands-two > div + div { border-top-width: 1px; border-top-color: transparent; }
.hands-two dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.hands-two dt b { font-size: 18px; font-weight: 600; }
.hands-two dt span { font-size: 13px; color: var(--enpitsu); }
.hands-two dd { margin-top: 6px; font-size: 15px; line-height: 1.85; }
.hands-ph img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hands-ph figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 10px; font-size: 13.5px; }
.hands-ph figcaption span { font-size: 12px; color: var(--enpitsu); }
@media (min-width: 768px) { .hands-two { grid-template-columns: 1fr 1fr; gap: 24px; } .hands-two > div + div { border-top: 2px solid var(--kurokawa); } }
@media (min-width: 1024px) { .hands-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; } .hands-ph { margin-top: 8px; } }

/* ---------- 03 いま作業台の上(台帳) ---------- */
.bench-top { display: grid; gap: 16px; margin-bottom: 26px; }
.bench-note { font-size: 15px; line-height: 1.9; color: var(--sekihitsu-s); max-width: 30em; }
.upd { display: flex; align-items: center; gap: 10px; margin-top: 10px; font: 500 13px/1.5 var(--num); color: var(--sekihitsu); }
.upd::before { content: ""; width: 8px; height: 8px; background: var(--yaki-wara); }
@media (min-width: 1024px) { .bench-top { grid-template-columns: 1fr minmax(0, 420px); align-items: end; gap: 40px; } }
.ledger { display: grid; gap: 22px; }
@media (min-width: 1024px) { .ledger { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: start; } }
.lg-list { border-top: 2px solid var(--sekihitsu); }
.lg-row { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; width: 100%; padding: 16px 4px 16px 0; text-align: left; border-bottom: 1px solid rgba(230, 232, 233, .2); transition: background-color .3s var(--ease); min-height: 44px; }
.lg-no { grid-row: span 2; font: 700 32px/1 var(--stamp); letter-spacing: .02em; color: var(--sekihitsu-s); padding-top: 3px; transition: color .3s var(--ease); }
.lg-no small { display: block; font-size: 12px; letter-spacing: .06em; margin-bottom: 6px; }
.lg-nm { font-size: 16.5px; font-weight: 600; line-height: 1.45; }
.lg-nm span { display: block; font-size: 13px; font-weight: 400; color: var(--sekihitsu-s); }
.lg-mini { grid-column: 2; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--sekihitsu-s); }
.lg-mini i { display: flex; gap: 3px; }
.lg-mini i b { width: 14px; height: 3px; background: rgba(230, 232, 233, .22); }
.lg-mini i b.done { background: var(--sekihitsu); }
.lg-mini i b.now { background: var(--yaki-wara); }
.lg-row[aria-pressed="true"] .lg-no { color: var(--yaki-wara); }
.lg-row[aria-pressed="true"] { background: rgba(230, 232, 233, .05); }
@media (hover: hover) and (pointer: fine) { .lg-row:hover { background: rgba(230, 232, 233, .07); } }
.lg-detail { display: grid; gap: 18px; }
.lgd-ph { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--kurokawa-d); }
.lgd-ph img { width: 100%; height: 100%; object-fit: cover; }
html.js:not(.nomotion) .lgd-ph.is-new img { animation: kgWipe 1s var(--ease) both; }
@keyframes kgWipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.lgd-ph figcaption { position: absolute; left: 0; bottom: 0; padding: 6px 12px; background: var(--kurokawa-d); font: 500 12.5px/1.5 var(--num); color: var(--sekihitsu); }
.lgd-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13.5px; color: var(--sekihitsu-s); }
.lgd-meta b { font-weight: 500; color: var(--sekihitsu); font-family: var(--num); font-size: 13px; }
.lgd-prog { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); padding-top: 14px; }
.lgd-prog::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1.5px; background: rgba(230, 232, 233, .25); }
.lgd-prog .fill { position: absolute; left: 0; top: 3px; height: 3.5px; background: var(--sekihitsu); width: var(--p, 0%); transition: width 1s var(--ease); }
.lgd-prog span { position: relative; font-size: 12px; line-height: 1.4; color: var(--sekihitsu-s); padding-top: 4px; }
.lgd-prog span::before { content: ""; position: absolute; left: 0; top: -15px; width: 1.5px; height: 12px; background: rgba(230, 232, 233, .5); }
.lgd-prog span.done { color: var(--sekihitsu); }
.lgd-prog span.now { color: var(--yaki-wara); font-weight: 600; }
.lgd-prog span.now::before { background: var(--yaki-wara); width: 3px; height: 16px; top: -17px; }
.lgd-wait { font-size: 13.5px; color: var(--yaki-wara); }
.lgd-log { border-top: 1px solid rgba(230, 232, 233, .2); }
.lgd-log li { display: grid; grid-template-columns: 5.6em 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(230, 232, 233, .12); font-size: 14.5px; line-height: 1.75; }
.lgd-log time { font: 500 12.5px/1.9 var(--num); color: var(--sekihitsu-s); }
.lgd-log li:first-child time { color: var(--yaki-wara); }
@media (min-width: 768px) { .lgd-log li { grid-template-columns: 7.4em 1fr; } }

/* ---------- 04 一台ができるまで(1 画面 1 工程) ---------- */
.pr { display: grid; gap: 22px; margin-top: 26px; }
.pr-txt { display: flex; flex-direction: column; }
.pr-no { display: flex; align-items: baseline; gap: 8px; font-family: var(--num); }
.pr-no b { font-weight: 400; font-size: 42px; line-height: 1; letter-spacing: -.03em; color: var(--yaki-ao); }
.pr-no span { font-size: 15px; color: var(--enpitsu); }
.pr-t { margin-top: 14px; font-family: var(--sec); font-weight: 400; font-size: clamp(24px, 2.1vw, 30px); line-height: 1.3; letter-spacing: .05em; font-feature-settings: "palt" 1; }
.pr-s { margin-top: 14px; font-size: 15.5px; line-height: 1.95; max-width: 28em; min-height: 5.8em; }
.pr-days { display: inline-flex; align-self: flex-start; align-items: stretch; margin-top: 18px; border: 1px solid var(--kurokawa); font-size: 13px; }
.pr-days span { padding: 6px 10px; border-right: 1px solid var(--kurokawa); }
.pr-days b { padding: 6px 12px; font: 500 14px/1.5 var(--num); }
.pr-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.tl { display: inline-flex; align-items: center; min-height: 44px; margin-left: 10px; font-size: 14px; font-weight: 500; color: var(--yaki-ao); border-bottom: 1px solid currentColor; line-height: 1.3; }
.pr-ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--doma); }
.pr-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pr-ph img.is-new { z-index: 1; }
html.js:not(.nomotion) .pr-ph img.is-new { animation: kgWipe .95s var(--ease) both; }
.pr-ph figcaption { position: absolute; z-index: 2; left: 0; bottom: 0; padding: 5px 10px; background: var(--zumen); font-size: 12px; color: var(--enpitsu); }
.pr-bar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.pr-bar button { position: relative; min-height: 48px; padding: 12px 0 4px; text-align: left; font-size: 12.5px; line-height: 1.35; color: var(--enpitsu); }
.pr-bar button::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--zumen-l); }
.pr-bar button::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--kurokawa); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.pr-bar button.done::after { transform: scaleX(1); }
.pr-bar button[aria-selected="true"] { color: var(--kurokawa); font-weight: 600; }
.pr-bar button[aria-selected="true"]::after { transform: scaleX(1); background: var(--yaki-ao); height: 4px; }
.pr-bar button b { display: block; font: 500 12px/1.4 var(--num); }
.pr-bar button span { display: none; }
@media (min-width: 600px) { .pr-bar button span { display: block; } }
@media (min-width: 1024px) {
  .pr { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto; gap: 26px 48px; }
  .pr-txt { justify-content: center; }
  .pr-bar { grid-column: 1 / -1; }
}

/* ---------- 05 作例 ---------- */
.works-top { display: grid; gap: 18px; margin-bottom: 24px; }
@media (min-width: 1024px) { .works-top { grid-template-columns: 1fr auto; align-items: end; } }
.lens { display: flex; flex-wrap: wrap; gap: 6px; }
.lens button { min-height: 44px; padding: 0 16px; border: 1px solid var(--doma-l); font-size: 14px; font-weight: 500; background: var(--zumen); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.lens button[aria-pressed="true"] { background: var(--kurokawa); border-color: var(--kurokawa); color: var(--zumen); }
@media (hover: hover) and (pointer: fine) { .lens button:hover { border-color: var(--kurokawa); } }
.wk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; align-items: start; }
@media (min-width: 1024px) { .wk { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 18px; } }
.wk li.is-big { grid-column: 1 / -1; }
.wk li.is-wide { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .wk:not(.is-filtered) li.is-big { grid-column: span 2; grid-row: span 2; align-self: stretch; }
  .wk:not(.is-filtered) li.is-big .wk-b { height: 100%; display: flex; flex-direction: column; }
  .wk:not(.is-filtered) li.is-big .wk-ph { flex: 1; aspect-ratio: auto; min-height: 300px; }
}
.wk.is-filtered li.is-big, .wk.is-filtered li.is-wide { grid-column: auto; }
.wk li[hidden] { display: none; }
.wk-b { display: block; width: 100%; text-align: left; }
.wk-ph { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--doma-l); }
.wk li.is-wide .wk-ph { aspect-ratio: 16 / 7; }
@media (min-width: 1024px) { .wk li.is-wide .wk-ph { aspect-ratio: 16 / 5; } }
.wk.is-filtered li.is-wide .wk-ph { aspect-ratio: 4 / 3; }
.wk-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.wk-dim { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 18px; color: var(--zumen); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.wk-dim::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transform: scaleX(0); transition: transform .7s var(--ease); }
.wk-dim i { position: absolute; top: 0; bottom: 0; width: 1.5px; background: currentColor; }
.wk-dim i:first-child { left: 0; } .wk-dim i:last-child { right: 0; }
.wk-dim b { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); padding: 1px 6px; background: var(--kurokawa); font: 500 12px/1.4 var(--num); }
@media (hover: hover) and (pointer: fine) {
  .wk-b:hover .wk-ph img { transform: scale(1.035); }
  .wk-b:hover .wk-dim { opacity: 1; }
  .wk-b:hover .wk-dim::before { transform: scaleX(1); }
}
.wk-cap { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin-top: 10px; }
.wk-cap b { font-size: 15.5px; font-weight: 600; line-height: 1.45; }
.wk-cap .no { font: 500 12px/1.9 var(--num); color: var(--enpitsu); }
.wk-cap .sz { grid-column: 1 / -1; font: 400 12.5px/1.6 var(--num); color: var(--enpitsu); }
.wk-cap .mt { grid-column: 1 / -1; font-size: 13px; color: var(--kurokawa); }
@media (min-width: 1024px) { .wk li.is-big .wk-cap b { font-size: 19px; } }
.wk-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }
.wk-more [hidden] { display: none; }
/* 作例を大きく見る */
.wdlg { width: min(1100px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 0; background: var(--zumen); color: var(--kurokawa); overflow: auto; }
.wdlg::backdrop { background: rgba(35, 39, 43, .72); }
.wd-in { position: relative; display: grid; }
.wd-x { position: absolute; z-index: 2; right: 10px; top: 10px; background: var(--zumen); }
.wd-ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wd-txt { padding: 20px 18px 24px; display: flex; flex-direction: column; gap: 12px; }
.wd-no { font: 500 12.5px/1.5 var(--num); color: var(--enpitsu); }
.wd-txt h3 { font-size: 20px; font-weight: 700; line-height: 1.4; }
.wd-s { font-size: 15px; }
.wd-spec { border-top: 2px solid var(--kurokawa); }
.wd-spec div { display: grid; grid-template-columns: 5em 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--zumen-l); font-size: 14px; }
.wd-spec dt { color: var(--enpitsu); font-size: 13px; }
.wd-spec dd { font-family: var(--num); font-size: 13px; }
.wd-spec dd.jp { font-family: var(--jp); font-size: 14px; }
.wd-txt .btn { align-self: flex-start; margin-top: 6px; }
@media (min-width: 860px) { .wd-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .wd-ph img { height: 100%; } .wd-txt { padding: 56px 28px 28px; } }

/* ---------- 06 木と鉄を選ぶ(ナラの地) ---------- */
.mat-in { display: grid; gap: 26px; }
.mat-ph { margin-top: 22px; }
.mat-ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
.mat-ph figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.7; }
.mat-ph figcaption span { display: block; font-size: 12px; }
.mat-pick { display: grid; gap: 22px; align-content: start; }
.mp legend { font-size: 14px; font-weight: 600; letter-spacing: .05em; margin-bottom: 8px; }
.mp-list { display: grid; border-top: 2px solid var(--kurokawa); }
.mp-o { display: grid; grid-template-columns: 34px 1fr; gap: 2px 14px; align-items: center; width: 100%; min-height: 56px; padding: 10px 10px 10px 8px; text-align: left; border-bottom: 1px solid rgba(46, 51, 56, .28); transition: background-color .3s var(--ease); }
.mp-o .chip { grid-row: span 2; width: 34px; height: 34px; border: 1px solid rgba(46, 51, 56, .45); background-size: 260px; background-position: center; }
.mp-o b { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.mp-o span { font-size: 13px; line-height: 1.6; }
.mp-o[aria-checked="true"] { background: var(--zumen); }
.mp-o[aria-checked="true"] b::after { content: "選んでいます"; margin-left: 10px; font-size: 12px; font-weight: 600; color: var(--yaki-ao); letter-spacing: .04em; }
@media (hover: hover) and (pointer: fine) { .mp-o:hover { background: rgba(247, 247, 244, .45); } }
.mat-draw { background: var(--zumen); padding: 14px 16px 16px; border: 1px solid rgba(46, 51, 56, .28); }
.md { display: block; width: 100%; height: auto; }
.md-top { stroke: var(--kurokawa); stroke-width: 1.5; transition: fill .5s var(--ease); }
.md-leg { fill: none; stroke-width: 9; stroke-linecap: square; transition: stroke .5s var(--ease); }
.md-dim { fill: none; stroke: var(--enpitsu); stroke-width: 1.2; }
.md-lb { font: 500 14px var(--num); fill: var(--kurokawa); }
.md-s { margin-top: 8px; font-size: 14px; line-height: 1.7; }
.mat-heat { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.75; }
.heat { display: inline-flex; gap: 3px; padding-top: 6px; }
.heat i { width: 14px; height: 10px; background: var(--yaki-wara); border: 1px solid rgba(46, 51, 56, .4); }
.heat i + i { background: var(--yaki-ao); }
@media (min-width: 1024px) {
  .mat-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
  .mat-pick { grid-template-columns: 1fr 1fr; gap: 26px 28px; padding-top: 12px; }
  .mat-draw, .mat-heat { grid-column: 1 / -1; }
}

/* ---------- 07 納めた記録(罫だけの表) ---------- */
.rec-top { display: grid; gap: 16px; margin-bottom: 22px; }
.rec-ctl { display: grid; gap: 12px; }
.rec-note { font-size: 15px; max-width: 30em; }
@media (min-width: 1024px) { .rec-top { grid-template-columns: 1fr minmax(0, 440px); align-items: end; gap: 40px; } }
.sw { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 14.5px; font-weight: 500; user-select: none; -webkit-user-select: none; }
.sw input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 40px; height: 22px; margin: 0; border: 1.5px solid var(--kurokawa); position: relative; cursor: pointer; transition: background-color .3s var(--ease); }
.sw input::after { content: ""; position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; background: var(--kurokawa); transition: transform .35s var(--ease), background-color .3s var(--ease); }
.sw input:checked { background: var(--yaki-ao); border-color: var(--yaki-ao); }
.sw input:checked::after { transform: translateX(18px); background: var(--zumen); }
.sw input:focus-visible { outline: 2px solid var(--yaki-ao); outline-offset: 3px; }
.rec-tb { border-top: 2px solid var(--kurokawa); }
.rec-r { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "no y" "nm nm" "mt mt" "fx fx"; gap: 2px 14px; padding: 14px 0; border-bottom: 1px solid var(--zumen-l); font-size: 14.5px; }
.rec-r[hidden] { display: none; }
.rec-r > * { min-width: 0; }
.rec-r .c-no { grid-area: no; font: 500 13px/1.7 var(--num); }
.rec-r .c-y { grid-area: y; font: 400 13px/1.7 var(--num); color: var(--enpitsu); }
.rec-r .c-nm { grid-area: nm; font-weight: 600; }
.rec-r .c-mt { grid-area: mt; font-size: 13px; color: var(--enpitsu); }
.rec-r .c-fx { grid-area: fx; margin-top: 6px; }
.rec-r .c-fx li { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 14px; line-height: 1.7; padding: 2px 0; }
.rec-r .c-fx time { font: 500 12.5px/1.95 var(--num); color: var(--yaki-ao); }
.rec-r .c-fx time::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--yaki-ao); vertical-align: 1px; }
.rec-r .c-fx .none { color: var(--enpitsu); font-size: 13px; }
.rec-h { display: none; }
@media (min-width: 900px) {
  .rec-r, .rec-h { grid-template-columns: 104px 84px minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 2fr); grid-template-areas: "no y nm mt fx"; align-items: baseline; gap: 0 18px; }
  .rec-h { display: grid; padding: 8px 0; border-bottom: 1px solid var(--kurokawa); font-size: 12.5px; color: var(--enpitsu); }
  .rec-h span:nth-child(1) { grid-area: no; } .rec-h span:nth-child(2) { grid-area: y; } .rec-h span:nth-child(3) { grid-area: nm; } .rec-h span:nth-child(4) { grid-area: mt; } .rec-h span:nth-child(5) { grid-area: fx; }
  .rec-r .c-fx { margin-top: 0; }
}
.rec-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 22px; }
.rec-more [hidden] { display: none; }

/* ---------- 08 頼み方と値段の目安 ---------- */
.order-one { margin-top: 18px; font-size: 16px; line-height: 1.9; max-width: 36em; }
.order-one b { font: 400 28px/1 var(--num); letter-spacing: -.02em; margin: 0 2px; color: var(--yaki-ao); }
.flow { position: relative; display: grid; gap: 0; margin-top: 26px; }
.flow::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 1.5px; background: var(--enpitsu); transform-origin: top; }
.flow li { position: relative; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 16px; padding: 8px 0; }
.flow .fi { grid-row: span 2; width: 48px; height: 48px; padding: 8px; border: 1.5px solid var(--kurokawa); background: var(--doma); fill: none; stroke: var(--kurokawa); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.flow b { font-size: 16px; font-weight: 600; line-height: 1.5; padding-top: 2px; }
.flow span { font-size: 13.5px; line-height: 1.7; color: var(--enpitsu); }
.flow li:nth-child(4) .fi { border-color: var(--yaki-ao); stroke: var(--yaki-ao); }
.flow li:nth-child(4) b { color: var(--yaki-ao); }
html.js:not(.nomotion) .flow::before { transform: scaleY(0); transition: transform 1.4s var(--ease); }
html.js:not(.nomotion) .flow.is-in::before { transform: none; }
html.js:not(.nomotion) .flow li { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 140ms + 150ms); }
html.js:not(.nomotion) .flow.is-in li { opacity: 1; transform: none; }
@media (min-width: 1024px) {
  .flow { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 16px; }
  .flow::before { left: 32px; right: 32px; top: 32px; bottom: auto; width: auto; height: 1.5px; transform-origin: left; }
  html.js:not(.nomotion) .flow::before { transform: scaleX(0); }
  .flow li { grid-template-columns: 1fr; padding: 0; }
  .flow .fi { width: 64px; height: 64px; padding: 12px; margin-bottom: 14px; grid-row: auto; }
}
.est { display: grid; gap: 0; margin-top: 34px; border-top: 2px solid var(--kurokawa); background: var(--zumen); }
.est-in { display: grid; gap: 18px; padding: 18px 16px 20px; border-bottom: 1px solid var(--zumen-l); }
.est-kind, .est-wood { display: flex; flex-wrap: wrap; gap: 6px; }
.est-kind button, .est-wood button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--zumen-l); font-size: 14px; font-weight: 500; background: var(--zumen); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.est-wood button i { width: 14px; height: 14px; border: 1px solid rgba(46, 51, 56, .4); }
.est-kind button[aria-checked="true"], .est-wood button[aria-checked="true"] { background: var(--kurokawa); color: var(--zumen); border-color: var(--kurokawa); }
.est-w { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; }
.est-w output { font: 500 15px/1 var(--num); min-width: 6.2em; text-align: right; }
.est-w input { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; touch-action: pan-y; }
.est-w input::-webkit-slider-runnable-track { height: 2px; background: var(--kurokawa); }
.est-w input::-moz-range-track { height: 2px; background: var(--kurokawa); }
.est-w input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 30px; margin-top: -14px; background: var(--yaki-ao); border: 0; border-radius: 0; }
.est-w input::-moz-range-thumb { width: 22px; height: 30px; background: var(--yaki-ao); border: 0; border-radius: 0; }
.est-w input:focus-visible { outline: 2px solid var(--yaki-ao); outline-offset: 2px; }
.est-out { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; padding: 16px 16px 20px; align-items: end; }
.ed { grid-column: 1 / -1; display: block; width: 100%; height: auto; }
.ed .es-top { fill: var(--nara); stroke: var(--kurokawa); stroke-width: 1.5; }
.ed .es-leg { fill: none; stroke: var(--kurokawa); stroke-width: 6; stroke-linecap: square; }
.ed .es-ln { fill: none; stroke: var(--kurokawa); stroke-width: 1.5; }
.ed .es-gr { stroke: var(--zumen-l); stroke-width: 1.5; }
.ed-dim, .ed-tk { fill: none; stroke: var(--yaki-ao); stroke-width: 1.5; }
.ed .es-lb { font: 500 14px var(--num); fill: var(--yaki-ao); }
.est-price, .est-week { display: flex; flex-direction: column; }
.est-price span, .est-week span { font-size: 13px; color: var(--enpitsu); }
.est-price b { font: 400 clamp(30px, 4.2vw, 48px)/1.1 var(--num); letter-spacing: -.03em; }
.est-week b { font: 400 clamp(26px, 3.4vw, 38px)/1.1 var(--num); letter-spacing: -.03em; }
.est-price small, .est-week small { font-size: 13px; }
.est-week { flex-direction: column; }
.est-note { grid-column: 1 / -1; margin-top: 8px; font-size: 13px; color: var(--enpitsu); }
@media (min-width: 1024px) {
  .est { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .est-in { padding: 26px 28px 28px; border-bottom: 0; border-right: 1px solid var(--zumen-l); align-content: start; }
  .est-out { padding: 22px 28px 26px; }
}

/* ---------- 09 最初の線を引く(黒皮) ---------- */
.soudan { padding-bottom: 46px; }
@media (min-width: 1024px) { .soudan { padding: 62px 0 66px; } }
.soudan-in { display: grid; gap: 30px; }
.so-h { font-family: var(--sec); font-weight: 400; font-size: clamp(26px, 2.64vw, 38px); line-height: 1.4; letter-spacing: .05em; font-feature-settings: "palt" 1; }
.so-line { display: block; width: 100%; max-width: 560px; height: 22px; margin: 22px 0 24px; overflow: visible; }
.sl-main, .sl-tick { stroke: var(--yaki-wara); stroke-width: 1.5; }
html.js:not(.nomotion) .sl-main { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease) .5s; }
html.js:not(.nomotion) .sl-tick { opacity: 0; transition: opacity .3s ease 1.5s; }
html.js:not(.nomotion) .so-head.is-in .sl-main { stroke-dashoffset: 0; }
html.js:not(.nomotion) .so-head.is-in .sl-tick { opacity: 1; }
html.js:not(.nomotion) .so-h .ln > span { transform: translateY(108%); transition: transform 1s var(--ease); }
html.js:not(.nomotion) .so-h .ln:nth-child(2) > span { transition-delay: .12s; }
html.js:not(.nomotion) .so-head.is-in .so-h .ln > span { transform: none; }
.so-info { border-top: 1px solid rgba(230, 232, 233, .3); }
.so-info div { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(230, 232, 233, .16); font-size: 14.5px; }
.so-info dt { font-size: 13px; color: var(--sekihitsu-s); }
.so-form { display: grid; gap: 14px; align-content: start; }
.so-sample { justify-self: start; padding: 3px 10px; border: 1px solid var(--yaki-wara); color: var(--yaki-wara); font-size: 13px; font-weight: 600; }
.so-how legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.so-how { display: flex; flex-wrap: wrap; gap: 6px; }
.so-how legend { width: 100%; }
.so-how label { position: relative; cursor: pointer; }
.so-how input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.so-how span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid rgba(230, 232, 233, .45); font-size: 14px; font-weight: 500; transition: background-color .3s var(--ease), color .3s var(--ease); user-select: none; -webkit-user-select: none; }
.so-how input:checked + span { background: var(--sekihitsu); color: var(--kurokawa); border-color: var(--sekihitsu); }
.so-how input:focus-visible + span { outline: 2px solid var(--yaki-wara); outline-offset: 2px; }
.fl { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.fl input, .fl select, .fl textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid transparent; border-radius: 0; background: var(--zumen); color: var(--kurokawa); font-size: 16px; line-height: 1.5; }
.fl textarea { resize: vertical; }
.fl input:focus, .fl select:focus, .fl textarea:focus { outline: 2px solid var(--yaki-wara); outline-offset: 1px; }
.fl input[aria-invalid="true"] { border-color: var(--yaki-wara); }
.sec--iron .btn--main { background: var(--sekihitsu); color: var(--kurokawa); }
@media (hover: hover) and (pointer: fine) { .sec--iron .btn--main:hover { background: var(--yaki-wara); } }
.so-form .btn { justify-self: start; margin-top: 4px; }
.so-msg { font-size: 14.5px; line-height: 1.8; color: var(--yaki-wara); border-left: 3px solid var(--yaki-wara); padding-left: 12px; }
@media (min-width: 768px) { .so-form { grid-template-columns: 1fr 1fr; gap: 16px 16px; } .so-form .so-sample, .so-form .so-how, .so-form .fl--wide, .so-form .btn, .so-form .so-msg { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .soudan-in { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; } }

/* ---------- 足 ---------- */
.ft { background: var(--doma); padding: 30px 0 34px; border-top: 1px solid var(--doma-l); }
.ft-in { display: grid; gap: 16px; }
.ft-nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.ft-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px 0 0; font-size: 14px; color: var(--enpitsu); }
.ft-note { font-size: 12.5px; line-height: 1.8; color: var(--enpitsu); max-width: 52em; }
@media (min-width: 1024px) { .ft-in { grid-template-columns: auto 1fr; align-items: center; gap: 12px 40px; } .ft-note { grid-column: 1 / -1; } }

/* ---------- スマホの下の相談の札 ---------- */
.fab { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateY(160%); transition: transform .5s var(--ease); }
.fab.is-on { transform: none; }
@media (min-width: 768px) { .fab { display: none; } }

/* ---------- 動きを減らす設定・撮影 ---------- */
html.nomotion *, html.nomotion *::before, html.nomotion *::after { animation: none !important; transition: none !important; }

/* ---------- 1.0b: 目盛りの名前はスマホで短く・作例の名前は言葉のまとまりで ---------- */
.lgd-prog span em { font-style: normal; display: none; }
.lgd-prog span i { font-style: normal; }
@media (min-width: 1024px) { .lgd-prog span em { display: inline; } .lgd-prog span i { display: none; } }
.wk-cap b { word-break: keep-all; overflow-wrap: break-word; }
.wk-cap .yr { font: 400 12.5px/1.6 var(--num); color: var(--enpitsu); white-space: nowrap; margin-left: 4px; }
/* 1.0c: タブレット(768〜1023)も 2 列にして、写真が画面いっぱいに伸びないように */
@media (min-width: 768px) and (max-width: 1023px) {
  .hands-in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; align-items: start; }
  .hands-two { grid-template-columns: 1fr; gap: 0; }
  .hands-two > div + div { border-top: 1px solid transparent; }
  .bench-top { grid-template-columns: 1fr minmax(0, 320px); align-items: end; gap: 28px; }
  .ledger { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; }
  .mat-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; }
  .rec-top { grid-template-columns: 1fr minmax(0, 340px); align-items: end; gap: 28px; }
  .pr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 28px; }
  .pr-bar { grid-column: 1 / -1; }
}
/* 1.1: 強い区切りに差し色を少し足す(進んだ所=麦わら・出口の札=麦わら)。強い色は入口の手の写真の青の板と、出口の札の 2 か所 */
.lgd-prog .fill { background: var(--yaki-wara); }
.so-form .btn--main { background: var(--yaki-wara); color: var(--kurokawa); }
@media (hover: hover) and (pointer: fine) { .so-form .btn--main:hover { background: var(--sekihitsu); } }
/* 1.1b: 開いた時の順を早める(線 0〜0.75 秒 → 一言 0.3〜1.2 秒 → 本文 0.7 秒から) */
html.js.is-loaded:not(.nomotion) .hl-main { transition: stroke-dashoffset .75s var(--ease) 0s; }
html.js.is-loaded:not(.nomotion) .hl-tick { transition: opacity .25s ease .6s; }
html.js.is-loaded:not(.nomotion) .hero-h .ln > span { transition: transform .85s var(--ease) .3s; }
html.js.is-loaded:not(.nomotion) .hero-h .ln:nth-child(2) > span { transition-delay: .4s; }
html.js.is-loaded:not(.nomotion) .hero .lead, html.js.is-loaded:not(.nomotion) .hero .cta, html.js.is-loaded:not(.nomotion) .hero-log { transition: opacity .7s var(--ease) .7s, transform .7s var(--ease) .7s; }

/* ---------- 1.5: 採点(60 点)の直し ---------- */
/* 見出しの強弱: 強い区切り(作業台の上)は大きく、静かな区切り(二人の手・納めた記録・木と鉄)は小さく */
.hands .hhd, .materials .hhd { padding-top: 12px; }
/* 頼み方: 見出しと一文は真ん中(説明の並びは中央の一文+線でつないだ丸 = 確かめ表 B2)。丸の間は期間の長さで変え、「つくる」だけ大きく */
@media (min-width: 1024px) {
  .order > .w > .hhd { display: flex; flex-direction: column; align-items: center; text-align: center; padding-left: 0; padding-top: 30px; }
  .order > .w > .hhd .sq { left: 50%; margin-left: -36px; }
  .order-one { margin-inline: auto; text-align: center; }
  .flow { grid-template-columns: 1fr 1fr 1.15fr 2.2fr 1fr 1fr; gap: 0 18px; margin-top: 34px; }
  .flow::before { left: 34px; right: 34px; top: 34px; }
  .flow li:nth-child(4) .fi { width: 92px; height: 92px; margin-top: -14px; padding: 18px; }
  .flow li:nth-child(4) b { font-size: 19px; }
}
.flow .fi { border-radius: 50%; }
.flow li:nth-child(4) .fi { background: var(--zumen); border-width: 2px; }
.flow .wk-n { display: inline-block; margin-left: 8px; font: 500 12.5px/1.5 var(--num); color: var(--yaki-ao); }
/* 作例: 大きさを 4 つに(大 1・縦長 1・小 3・横長 1)。同じ大きさの箱を並べない */
@media (min-width: 1024px) {
  .wk:not(.is-filtered) li.is-tall { grid-row: span 2; align-self: stretch; }
  .wk:not(.is-filtered) li.is-tall .wk-b { height: 100%; display: flex; flex-direction: column; }
  .wk:not(.is-filtered) li.is-tall .wk-ph { flex: 1; aspect-ratio: auto; min-height: 300px; }
  .wk:not(.is-filtered) li.is-wide { grid-column: span 3; }
  .wk:not(.is-filtered) li.is-wide .wk-ph { aspect-ratio: 3 / 1; }
}
/* 最初の画面に値段の目安の 1 行(見比べている人がいちばん探す物=P-08) */
.hero-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 8px; font-size: 13.5px; color: var(--kurokawa); border-bottom: 1px solid var(--doma-l); padding-bottom: 2px; min-height: 44px; align-content: center; }
.hero-price b { font: 500 15px/1.4 var(--num); }
.hero-price .ar { width: 16px; }
html.js:not(.nomotion) .hero-price { opacity: 0; transform: translateY(10px); }
html.js.is-loaded:not(.nomotion) .hero-price { opacity: 1; transform: none; transition: opacity .7s var(--ease) .8s, transform .7s var(--ease) .8s; }
/* 相談: 希望日の欄・見積は無料の一言 */
.so-free { grid-column: 1 / -1; font-size: 13.5px; color: var(--sekihitsu-s); margin-top: -4px; }
.fl input[type="date"] { color-scheme: light; }
/* 1.5b: 真ん中寄せの見出しは、角の L の代わりに寸法の線(両端の目盛り)を上に */
@media (min-width: 1024px) {
  .order > .w > .hhd { padding-top: 0; }
  .order > .w > .hhd .sq { display: none; }
  .order > .w > .hhd::before { content: ""; width: 160px; height: 14px; margin-bottom: 14px; border-left: 1.5px solid var(--enpitsu); border-right: 1.5px solid var(--enpitsu); background: linear-gradient(var(--enpitsu), var(--enpitsu)) center / 100% 1.5px no-repeat; }
}
.kicker .kk { white-space: nowrap; }

/* ---------- 1.6: 採点 2 回目(64 点)の直し ---------- */
/* 作業台の上: 左の列の下に「いま頼むと」(空きを埋め、いつ届くかに答える) */
.lg-side { display: grid; gap: 22px; align-content: start; }
.lg-next { border-top: 1px solid rgba(230, 232, 233, .3); padding-top: 16px; }
.lgn-k { font-size: 13px; font-weight: 600; letter-spacing: .05em; color: var(--sekihitsu-s); }
.lg-next dl { display: flex; flex-wrap: wrap; gap: 8px 34px; margin-top: 8px; }
.lg-next dt { font-size: 12.5px; color: var(--sekihitsu-s); }
.lg-next dd { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--yaki-wara); margin-top: 2px; }
.lgn-s { margin-top: 12px; font-size: 14px; line-height: 1.85; color: var(--sekihitsu-s); max-width: 26em; }
.tl--dark { color: var(--sekihitsu); margin-left: 0; margin-top: 6px; }
/* 作例: スマホは「大 1・縦長 1+小 2・横 1・横長 1」(2×2 の同じ大きさを作らない) */
@media (max-width: 1023px) {
  .wk:not(.is-filtered) li.is-tall { grid-row: span 2; align-self: stretch; }
  .wk:not(.is-filtered) li.is-tall .wk-b { height: 100%; display: flex; flex-direction: column; }
  .wk:not(.is-filtered) li.is-tall .wk-ph { flex: 1; aspect-ratio: auto; min-height: 220px; }
  .wk:not(.is-filtered) li.is-solo { grid-column: 1 / -1; }
  .wk:not(.is-filtered) li.is-solo .wk-ph { aspect-ratio: 16 / 9; }
}
/* 数字の途中で折らない */
.order-one b, .est-price b, .est-week b, .hero-price b, .wk-n { white-space: nowrap; }
.est-price, .est-week { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 6px; }
.est-price span, .est-week span { grid-column: 1 / -1; }
.est-go { grid-column: 1 / -1; justify-self: start; margin-top: 10px; }
/* 1.6c: スマホの値段の目安は 1 行ずつ・「〜(税込)」を割らない・値段の行の矢印は字のすぐ後ろ */
.est-price small, .est-week small { white-space: nowrap; }
@media (max-width: 599px) { .est-price { grid-column: 1 / -1; } .hero-price .ar { display: none; } }
/* 本文の頭の文は言葉のまとまりで折る(Chrome。iPhone は読まないので見出しは <wbr> で) */
.lead, .hands-lead, .order-one { word-break: auto-phrase; }

/* ---------- 1.7: 見出しの書体の組み直し(指示書 01・10/29 森さん「見出しフォントが AI 感」) ----------
   大きさの段(本文 16px・スマホ 15px): 顔 ≧ 区切り×2/区切り = 本文×1.6〜2.4 で 大(強い区切り)と小の 2 つ/小見出し = 本文×1.1〜1.3 */
.bench .hhd h2, .so-h { font-size: clamp(26px, 2.64vw, 38px); }
/* 小見出し・品名・ラベルは本文の太字(新しい書体を足さない) */
.lg-nm, .mp-o b, .flow b, .wk-cap b, .hands-two dt b { font-size: 18px; font-weight: 700; }
.flow li:nth-child(4) b { font-size: 20px; }
@media (min-width: 1024px) { .wk li.is-big .wk-cap b { font-size: 20px; } }
/* 数字は図面の字で、表と日付は桁をそろえる */
.lgd-log time, .rec-r .c-no, .rec-r .c-y, .rec-r .c-fx time, .lgd-meta b, .est-w output, .hero-log, .upd { font-variant-numeric: tabular-nums; }
@media (max-width: 599px) {
  body { font-size: 15px; }
  .lead, .hands-lead, .bench-note, .rec-note { font-size: 15px; }
  .hhd h2, .pr-t { font-size: 24px; }
  .bench .hhd h2, .so-h { font-size: 26px; }
  .lg-nm, .mp-o b, .flow b, .wk-cap b, .hands-two dt b { font-size: 16.5px; }
  .flow li:nth-child(4) b { font-size: 18px; }
}
/* 見出しの中の「、」は約物の詰めが効かない書体なので、手で後ろを詰める */
.hhd h2 .yk { margin-right: -.4em; }
/* [rw1120] 本文の約物を詰めると折り返しが変わるので、最後の行に 1〜2 字だけ残さない(対応していない端末は今までどおり) */
p, li, dd, figcaption, summary { text-wrap: pretty; }
/* [rw1120] 短い箇条は行の長さをそろえる(和文の 2 行では pretty が効かず、1 字だけの行が残ったため) */
li { text-wrap: balance; }

/* [rw1120] 字間の span(moji_kumi)に頁の「.親 span{…}」が当たって字の一部だけ大きさ・太さが変わるのを防ぐ */
span.mjk,span.mjk-y{font:inherit!important;color:inherit!important;vertical-align:baseline!important}
