/* しのぎ精工（金属切削加工の町工場）デモ
   図面の作法をそのまま使う: 寸法線の見出し・表題欄の表・細い銀の罫線・数字は等幅
   地は 黒 #121212 と 明るい灰 #EEF0F2 を交互に。差し色は切削油の橙だけ */

:root {
  --ink: #121212;
  --ink-2: #1b1c1e;
  --steel: #B8BEC5;
  --steel-d: #6E757D;
  --oil: #E07A1F;
  --oil-d: #C9690F;
  --paper: #EEF0F2;
  --paper-2: #E2E5E9;
  --on-dark: #F2F3F5;
  --sub-dark: #A9AFB6;
  --sub-light: #474C52;
  --rule-dark: rgba(184, 190, 197, .34);
  --rule-light: rgba(18, 18, 18, .22);
  --jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--jp);
  font-size: clamp(15px, .9rem + .2vw, 17px);
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "palt" 0;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--oil); outline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.4; margin: 0; font-feature-settings: "palt"; letter-spacing: .02em; word-break: auto-phrase; text-wrap: balance; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
.mono, .n { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.wrap { width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 地の切り替え */
.dark { background: var(--ink); color: var(--on-dark); }
.light { background: var(--paper); color: var(--ink); }
.sec { padding-block: clamp(64px, 9vw, 120px); position: relative; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 12px 26px;
  font-weight: 700; font-size: 15px; letter-spacing: .04em; line-height: 1.3;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--oil { background: var(--oil); color: var(--ink); }
.btn--oil:hover { background: #F08A2C; }
.btn--ink { background: var(--ink); color: var(--on-dark); }
.btn--ink:hover { background: #2a2b2e; }
.btn--line { border-color: currentColor; color: inherit; background: transparent; }
.btn--line:hover { background: rgba(127, 127, 127, .12); }
.go { display: inline-flex; align-items: center; gap: .7em; font-weight: 700; text-decoration: none; padding: 10px 0; border-bottom: 1px solid currentColor; }
.go::after { content: "→"; font-family: var(--mono); transition: transform .25s var(--ease); }
.go:hover::after { transform: translateX(4px); }
.more { margin-top: clamp(28px, 4vw, 44px); }

/* ---------- ロゴ ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo__mk { width: 38px; height: 38px; flex: none; }
.logo__tx { display: flex; flex-direction: column; line-height: 1.1; }
.logo__co { font-size: 11px; letter-spacing: .2em; color: var(--sub-light); margin-bottom: 3px; }
.logo__jp { font-weight: 700; font-size: 23px; letter-spacing: .14em; font-feature-settings: "palt"; }
.logo__en { font-family: var(--mono); font-size: 9.5px; letter-spacing: .34em; margin-top: 5px; color: var(--steel-d); }
.demo { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; padding: 1px 6px; border: 1px solid var(--rule-light); color: var(--sub-light); line-height: 1.5; align-self: center; }

/* ---------- ヘッダー ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule-light); }
.hd__in { display: flex; align-items: center; gap: 14px; min-height: 76px; }
.hd__id { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.hd__call { text-align: right; line-height: 1.25; }
.hd__nums { display: flex; gap: 18px; justify-content: flex-end; }
.hd__nums a, .hd__nums span.fx { text-decoration: none; white-space: nowrap; }
.hd__nums .k { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--sub-light); margin-right: 6px; }
.hd__nums .n { font-size: 20px; letter-spacing: .02em; }
.hd__time { font-size: 12px; color: var(--sub-light); margin-top: 4px; }
.hd__cta { margin-left: 10px; min-height: 48px; padding: 10px 18px; font-size: 14px; }
.gnav { border-top: 1px solid var(--rule-light); }
.gnav ul { display: flex; }
.gnav li { flex: 1; border-left: 1px solid var(--rule-light); }
.gnav li:last-child { border-right: 1px solid var(--rule-light); }
.gnav a { display: block; text-align: center; padding: 12px 8px; font-size: 14.5px; font-weight: 700; text-decoration: none; letter-spacing: .06em; position: relative; }
.gnav a::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 3px; background: var(--oil); transform: scaleX(0); transition: transform .3s var(--ease); }
.gnav a:hover::after, .gnav a[aria-current="page"]::after { transform: scaleX(1); }
.gnav a[aria-current="page"] { color: var(--ink); }

.menu { display: none; }
.hd__sp { display: none; }

@media (max-width: 1080px) {
  .hd__cta { display: none; }
}
@media (max-width: 900px) {
  .hd__call, .gnav { display: none; }
  .hd__in { min-height: 62px; }
  .logo__mk { width: 32px; height: 32px; }
  .logo__jp { font-size: 20px; }
  .menu { display: block; }
  .menu > summary {
    list-style: none; cursor: pointer; display: grid; place-items: center;
    width: 64px; height: 44px; border: 1px solid var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: .14em; font-weight: 500;
  }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu[open] > summary { background: var(--ink); color: var(--paper); }
  .menu__panel {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); color: var(--on-dark); padding: 12px var(--gut) 28px;
    border-top: 3px solid var(--oil); max-height: calc(100svh - 100px); overflow: auto;
  }
  .menu__panel ul a { display: flex; justify-content: space-between; padding: 15px 2px; border-bottom: 1px solid var(--rule-dark); text-decoration: none; font-weight: 700; }
  .menu__panel ul a::after { content: "→"; font-family: var(--mono); color: var(--steel); }
  .menu__panel ul a[aria-current="page"] { color: var(--oil); }
  .menu__call { margin-top: 20px; display: grid; gap: 10px; }
  .menu__call a, .menu__call p { font-family: var(--mono); font-size: 18px; text-decoration: none; }
  .menu__call small { display: block; font-family: var(--jp); font-size: 12px; color: var(--sub-dark); }
  .menu__call .btn { font-family: var(--jp); font-size: 15px; margin-top: 8px; }
  .hd__sp { display: flex; gap: 0; border-top: 1px solid var(--rule-light); }
  .hd__sp > a, .hd__sp > span { flex: 1; text-align: center; padding: 7px 4px; font-size: 13px; text-decoration: none; white-space: nowrap; }
  .hd__sp > span { border-left: 1px solid var(--rule-light); }
  .hd__sp .k { font-family: var(--mono); font-size: 10px; color: var(--sub-light); margin-right: 5px; }
  .hd__sp .n { font-size: 14px; }
}

/* ---------- 寸法線の見出し ---------- */
.dh { display: inline-flex; flex-direction: column; font-size: clamp(26px, 1.2rem + 1.6vw, 40px); letter-spacing: .06em; max-width: 100%; }
.dh__t { display: block; padding-inline: 2px; }
.dh__line { position: relative; display: block; height: 22px; margin-top: 10px; }
/* 寸法補助線（両端の縦の短い線） */
.dh__line::before, .dh__line::after { content: ""; position: absolute; top: 0; width: 1px; height: 22px; background: currentColor; opacity: .55; }
.dh__line::before { left: 0; }
.dh__line::after { right: 0; }
/* 寸法線本体＋両端の矢印 */
.dh__bar { position: absolute; left: 1px; right: 1px; top: 11px; height: 1px; background: var(--oil); transform-origin: 50% 50%; }
.dh__bar::before, .dh__bar::after { content: ""; position: absolute; top: -4px; border: 4.5px solid transparent; }
.dh__bar::before { left: 0; border-left: 0; border-right: 9px solid var(--oil); }
.dh__bar::after { right: 0; border-right: 0; border-left: 9px solid var(--oil); }
.dh__n { position: absolute; left: 50%; top: -2px; transform: translateX(-50%); font-family: var(--mono); font-style: normal; font-size: 11px; line-height: 1; padding: 0 6px; letter-spacing: .04em; }
.dark .dh__n { background: var(--ink); color: var(--steel); }
.light .dh__n { background: var(--paper); color: var(--sub-light); }
.dh__n:empty { display: none; }
.lead { margin-top: 22px; max-width: 40em; }
.dark .lead, .dark .note { color: var(--sub-dark); }
.light .note { color: var(--sub-light); }
.note { font-size: .88em; margin-top: 14px; }

/* ---------- トップ: 最初の画面 ---------- */
.hero { background: var(--ink); color: var(--on-dark); position: relative; }
.hero__frame { position: relative; display: grid; grid-template-columns: 6fr 4fr; min-height: min(calc(100svh - 124px), 760px); }
.hero__ph { position: relative; overflow: hidden; min-height: 460px; }
.hero__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,18,18,0) 40%, rgba(18,18,18,.86) 92%); }
.hero__copy { position: absolute; left: clamp(20px, 4vw, 56px); right: clamp(20px, 3vw, 40px); bottom: clamp(28px, 4vw, 52px); z-index: 2; }
.hero__h { font-size: clamp(32px, 1rem + 3.4vw, 64px); line-height: 1.3; letter-spacing: .04em; }
.hero__h span { display: block; }
.hero__sub { margin-top: 18px; color: var(--steel); font-size: clamp(13.5px, .8rem + .2vw, 15px); max-width: 30em; line-height: 1.8; }
.hero__spec { padding: clamp(28px, 3.4vw, 52px) clamp(20px, 3vw, 48px); display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--rule-dark); position: relative; }
/* 図面の枠の区分記号（A〜D・1〜4）。図面の作法をなぞる飾り */
.zone { position: absolute; font-family: var(--mono); font-size: 10px; color: var(--steel-d); line-height: 1; pointer-events: none; }
.zone--top { top: 10px; left: 0; right: 0; display: flex; justify-content: space-around; }
.zone--side { top: 0; bottom: 0; right: 10px; display: flex; flex-direction: column; justify-content: space-around; }
.spec { width: 100%; border-collapse: collapse; border: 1px solid var(--steel); }
.spec th, .spec td { border: 1px solid var(--rule-dark); padding: 14px 14px; text-align: left; vertical-align: top; font-size: 14px; line-height: 1.7; }
.spec th { width: 6.6em; font-weight: 700; color: var(--steel); background: var(--ink-2); white-space: nowrap; font-size: 13px; letter-spacing: .04em; }
.spec td .n { font-size: 1.02em; color: var(--on-dark); }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }
.spec td em { font-style: normal; font-family: var(--mono); font-weight: 500; font-size: 1.35em; color: var(--oil); letter-spacing: 0; }
.hero__btn { margin-top: 24px; align-self: flex-start; }

@media (max-width: 900px) {
  .hero__frame { grid-template-columns: 1fr; min-height: 0; }
  .hero__ph { min-height: 0; aspect-ratio: 4 / 3.3; }
  .hero__spec { border-left: 0; border-top: 1px solid var(--rule-dark); }
  .zone--side { display: none; }
}
@media (max-width: 560px) {
  .hero__ph { aspect-ratio: 4 / 4.6; }
  .hero__ph img { object-position: 52% 30%; }
  .spec th, .spec td { padding: 11px 10px; font-size: 13px; }
  .spec th { width: 5.4em; font-size: 12px; }
  .hero__btn { align-self: stretch; }
}

/* 読み込み時の動き（最初の画面。IntersectionObserver を待たない） */
html.anim .hero__ph img { animation: settle 1.6s var(--ease) both; }
html.anim .hero__h span { animation: up .9s var(--ease) both; }
html.anim .hero__h span:nth-child(2) { animation-delay: .12s; }
html.anim .hero__sub { animation: fade .9s .35s both; }
html.anim .spec tr { animation: row .6s var(--ease) both; }
html.anim .spec tr:nth-child(1) { animation-delay: .35s; }
html.anim .spec tr:nth-child(2) { animation-delay: .45s; }
html.anim .spec tr:nth-child(3) { animation-delay: .55s; }
html.anim .spec tr:nth-child(4) { animation-delay: .65s; }
html.anim .hero__btn { animation: fade .7s .8s both; }
@keyframes settle { from { transform: scale(1.07); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes up { from { transform: translateY(22px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes row { from { transform: translateX(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- スクロールで出る動き ---------- */
html.anim .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.anim .rv.in { opacity: 1; transform: none; }
html.anim .dh__bar { transform: scaleX(0); transition: transform .9s var(--ease); }
html.anim .dh__n { opacity: 0; transition: opacity .4s .7s; }
html.anim .dh.in .dh__bar { transform: scaleX(1); }
html.anim .dh.in .dh__n { opacity: 1; }

/* ---------- トップ: できる加工 ---------- */
.kinds { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule-light); }
.kind { padding: 28px 24px 30px; border-left: 1px solid var(--rule-light); }
.kind:first-child { border-left: 0; padding-left: 0; }
.kind svg { width: 100%; max-width: 168px; height: auto; color: var(--ink); display: block; margin-bottom: 18px; }
.kind h3 { font-size: 19px; letter-spacing: .04em; }
.kind p { font-size: 14.5px; margin-top: 8px; color: var(--sub-light); line-height: 1.75; }
.kinds + .lead { margin-top: 28px; }
.ln { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.ln--c { fill: none; stroke: var(--oil); stroke-width: 1.2; stroke-dasharray: 10 3 2 3; }
.ln--f { fill: var(--paper-2); stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
@media (max-width: 980px) {
  .kinds { grid-template-columns: 1fr 1fr; }
  .kind:nth-child(3) { border-left: 0; padding-left: 0; }
  .kind:nth-child(n+3) { border-top: 1px solid var(--rule-light); }
}
@media (max-width: 560px) {
  .kinds { grid-template-columns: 1fr; }
  .kind { display: grid; grid-template-columns: 104px 1fr; gap: 4px 18px; align-items: start; border-left: 0; padding: 22px 0; }
  .kind + .kind { border-top: 1px solid var(--rule-light); }
  .kind svg { grid-row: span 2; margin: 4px 0 0; }
  .kind p { margin-top: 0; }
}

/* ---------- G-2 試作から量産まで ---------- */
.flow { margin-top: clamp(40px, 5vw, 64px); position: relative; }
.flow__track { position: relative; height: 2px; background: var(--rule-dark); margin: 0 0 28px; overflow: hidden; }
.flow__run { position: absolute; inset: 0; }
.flow__run i { position: absolute; left: 0; top: -3px; width: 8px; height: 8px; background: var(--oil); border-radius: 50%; }
html.anim .flow__run { transform: translateX(-2%); }
html.anim .flow.in .flow__run { animation: run 2.6s .3s var(--ease) forwards; }
@keyframes run { to { transform: translateX(calc(100% - 8px)); } }
.flow__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: st; }
.st { position: relative; padding: 0 18px 0 0; }
.st + .st { padding-left: 18px; border-left: 1px solid var(--rule-dark); }
.st__no { font-family: var(--mono); font-size: 30px; line-height: 1; color: var(--oil); display: block; letter-spacing: 0; }
.st h3 { font-size: 19px; margin-top: 14px; }
.st__k { display: block; font-size: 13.5px; color: var(--steel); margin-top: 4px; font-weight: 400; }
.st p { font-size: 14px; color: var(--sub-dark); margin-top: 10px; line-height: 1.7; }
.st--hot h3 { color: var(--on-dark); }
/* 3 から 4 の下をくぐって 3 に戻る矢印 */
.loop { grid-column: 3 / 5; grid-row: 2; margin-top: 26px; position: relative; padding: 0 0 0 0; }
.loop__u { position: relative; height: 36px; border: 1px dashed var(--steel); border-top: 0; margin: 0 22% 0 12%; }
.loop__u::before { content: ""; position: absolute; left: -6px; top: -12px; border: 6px solid transparent; border-bottom: 10px solid var(--steel); border-top: 0; }
.loop p { font-size: 14px; color: var(--on-dark); margin: 12px 0 0 12%; }
html.anim .loop { opacity: 0; transition: opacity .8s 1.6s; }
html.anim .flow.in .loop { opacity: 1; }
html.anim .st { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.anim .flow.in .st { opacity: 1; transform: none; }
html.anim .flow.in .st:nth-child(2) { transition-delay: .25s; }
html.anim .flow.in .st:nth-child(3) { transition-delay: .5s; }
html.anim .flow.in .st:nth-child(4) { transition-delay: .75s; }
html.anim .flow.in .st:nth-child(5) { transition-delay: 1s; }
.flow + .lead { margin-top: 40px; }
@media (max-width: 900px) {
  .flow__track { display: none; }
  .flow__steps { grid-template-columns: 1fr; }
  .st, .st + .st { padding: 18px 0 18px 64px; border-left: 0; border-top: 1px solid var(--rule-dark); }
  .st__no { position: absolute; left: 0; top: 20px; font-size: 26px; }
  .st h3 { margin-top: 0; }
  .loop { grid-column: auto; grid-row: auto; order: 0; margin: 0; padding: 4px 0 16px 64px; border-top: 0; }
  .loop__u { height: auto; border: 0; margin: 0; }
  .loop__u::before { display: none; }
  .loop p { margin: 0; padding: 10px 14px; border: 1px dashed var(--steel); }
  .loop p::before { content: "↑ "; font-family: var(--mono); color: var(--steel); }
  .flow__steps .st:nth-child(4) { order: 1; }
  .flow__steps .st:nth-child(5) { order: 2; }
}

/* ---------- 2列の組み（写真と文） ---------- */
.duo { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.duo--rev > :first-child { order: 2; }
.duo__ph { position: relative; }
.duo__ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.duo__ph--frame::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--steel-d); z-index: 0; }
.duo__ph--frame img { position: relative; z-index: 1; }
.duo__tx .dh { margin-bottom: 22px; }
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  .duo--rev > :first-child { order: 0; }
  .duo__ph--frame::before { inset: 10px -10px -10px 10px; }
}

/* 設備の3行 */
.mini { width: 100%; border-collapse: collapse; margin-top: 24px; }
.mini th, .mini td { border-top: 1px solid var(--rule-light); padding: 12px 4px; text-align: left; font-size: 15px; }
.mini tr:last-child th, .mini tr:last-child td { border-bottom: 1px solid var(--rule-light); }
.mini td { text-align: right; white-space: nowrap; }
.mini th { font-weight: 700; }

/* ---------- トップ: 加工の例（一覧） ---------- */
.parts { margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--steel); }
.part { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: clamp(20px, 4vw, 56px); padding: 26px 0; border-bottom: 1px solid var(--rule-dark); align-items: center; }
.part img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.part h3 { font-size: clamp(20px, 1rem + .8vw, 26px); }
.part dl { display: grid; grid-template-columns: 4.5em 1fr; gap: 8px 16px; margin-top: 16px; font-size: 15px; }
.part dt { color: var(--sub-dark); font-size: 13px; padding-top: 2px; }
.part dd .n { font-size: 1.25em; color: var(--oil); }
@media (max-width: 640px) {
  .part { grid-template-columns: 112px 1fr; gap: 16px; padding: 18px 0; align-items: start; }
  .part h3 { font-size: 17px; }
  .part dl { grid-template-columns: 1fr; gap: 0; margin-top: 8px; font-size: 13.5px; }
  .part dt { font-size: 11.5px; margin-top: 6px; padding-top: 0; }
}

/* ---------- トップ: 工場のこと ---------- */
.talk { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.talk__tx .dh { margin-bottom: 26px; }
.talk__q { border-left: 3px solid var(--oil); padding-left: clamp(16px, 2vw, 26px); font-size: clamp(15.5px, .9rem + .3vw, 18px); line-height: 1.95; }
.talk__ph { margin-right: calc(50% - 50vw + var(--gut) * 0); }
.talk__ph img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 1300px) { .talk__ph { margin-right: calc((100vw - var(--wrap)) / -2); } }
@media (max-width: 860px) { .talk { grid-template-columns: 1fr; } .talk__ph { margin-right: calc(var(--gut) * -1); } }

/* ---------- 橙の帯 ---------- */
.band { background: var(--oil); color: var(--ink); padding-block: clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(18,18,18,.09) 0 1px, transparent 1px 24px); pointer-events: none; }
.band__in { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: end; }
.band__h { font-size: clamp(28px, 1.1rem + 2.6vw, 52px); letter-spacing: .04em; line-height: 1.3; }
.band__p { margin-top: 16px; max-width: 34em; font-size: 15.5px; }
.band__call { display: grid; gap: 14px; justify-items: start; }
.band__nums { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--mono); font-size: clamp(18px, 1rem + .6vw, 24px); font-weight: 500; }
.band__nums a { text-decoration: none; }
.band__nums .k { font-size: .62em; letter-spacing: .1em; margin-right: 6px; }
@media (max-width: 860px) { .band__in { grid-template-columns: 1fr; align-items: start; } }

/* ---------- フッター ---------- */
.ft { background: var(--ink); color: var(--on-dark); padding: 56px 0 28px; border-top: 1px solid var(--rule-dark); }
.ft__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px 56px; }
.ft .logo__co { color: var(--sub-dark); }
.ft .logo__en { color: var(--sub-dark); }
.ft__ad { margin-top: 20px; font-size: 14px; color: var(--sub-dark); line-height: 1.9; }
.ft__ad .n { color: var(--on-dark); }
.ft__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-content: start; }
.ft__nav a { display: block; padding: 9px 0; border-bottom: 1px solid var(--rule-dark); font-size: 14px; text-decoration: none; }
.ft__nav a:hover { color: var(--oil); }
.ft__c { grid-column: 1 / -1; font-family: var(--mono); font-size: 11px; color: var(--steel-d); letter-spacing: .08em; margin-top: 18px; }
@media (max-width: 760px) { .ft__in { grid-template-columns: 1fr; } }

/* ---------- 下層: ページの頭 ---------- */
.ph { background: var(--ink); color: var(--on-dark); }
.ph__in { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(36px, 5vw, 56px); }
.crumb { font-size: 12.5px; color: var(--sub-dark); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 32px); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--oil); }
.ph .dh { font-size: clamp(30px, 1.2rem + 2.4vw, 50px); }
.ph__lead { margin-top: 20px; color: var(--steel); max-width: 38em; }
.ph__img img { width: 100%; height: clamp(200px, 32vw, 420px); object-fit: cover; }
.ph__img--hero img { object-position: 50% 42%; }
.ph--split .ph__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(20px, 3vw, 36px); padding-bottom: clamp(36px, 5vw, 56px); }
.ph--split .ph__in { padding-bottom: 0; }
.ph--split .ph__shot { justify-self: end; width: min(100%, 360px); border: 1px solid var(--steel-d); padding: 8px; }
.ph--split .ph__shot img { width: 100%; aspect-ratio: 410 / 558; object-fit: cover; }
@media (max-width: 760px) {
  .ph--split .ph__grid { grid-template-columns: 1fr; }
  .ph--split .ph__shot { justify-self: start; width: 100%; }
  .ph--split .ph__shot img { aspect-ratio: 4 / 3; object-position: 50% 55%; }
}

/* ---------- 加工の内容 ---------- */
.proc + .proc { margin-top: clamp(64px, 8vw, 104px); }
.proc h2 { font-size: clamp(24px, 1.1rem + 1.2vw, 34px); }
.proc__k { font-family: var(--mono); font-size: 12px; color: var(--oil); letter-spacing: .08em; display: block; margin-bottom: 10px; }
.proc p { margin-top: 18px; }
.proc .n { font-size: 1.05em; }
.proc--draw { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.proc--draw svg { width: 100%; max-width: 440px; color: var(--ink); }
@media (max-width: 860px) { .proc--draw { grid-template-columns: 1fr; } }

/* G-3 加工できる大きさ */
.size { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: clamp(32px, 4vw, 48px); border: 1px solid var(--ink); background: #fff; }
.size figure { margin: 0; padding: clamp(16px, 2.4vw, 28px); }
.size figure + figure { border-left: 1px solid var(--rule-light); }
.size svg { width: 100%; height: auto; display: block; color: var(--ink); overflow: visible; }
.size figcaption { text-align: center; font-weight: 700; font-size: 16px; margin-top: 6px; letter-spacing: .06em; }
.size__tol { grid-column: 1 / -1; border-top: 1px solid var(--ink); padding: 14px 18px; text-align: center; font-size: 15px; background: var(--paper); }
.size__tol .n { font-size: 1.3em; color: var(--oil-d); margin-inline: .3em; }
.dimt { font-family: var(--mono); font-size: 15px; fill: currentColor; font-weight: 500; }
.dimt--j { font-family: var(--jp); font-weight: 700; }
.dim { stroke: var(--oil-d); stroke-width: 1.2; fill: none; }
.dim-h { fill: var(--oil-d); }
.ext { stroke: currentColor; stroke-width: .8; opacity: .55; }
html.anim .size .dg { opacity: 0; transition: opacity .7s var(--ease); }
html.anim .size.in .dg { opacity: 1; }
html.anim .size.in .dg:nth-of-type(2) { transition-delay: .3s; }
html.anim .size.in .dg:nth-of-type(3) { transition-delay: .6s; }
@media (max-width: 640px) {
  .size { grid-template-columns: 1fr; }
  .size figure + figure { border-left: 0; border-top: 1px solid var(--rule-light); }
}

/* 材料の表 */
.tbl { width: 100%; border-collapse: collapse; margin-top: clamp(28px, 4vw, 40px); }
.tbl th, .tbl td { padding: 14px 16px; border-top: 1px solid var(--rule-light); text-align: left; vertical-align: top; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 1px solid var(--rule-light); }
.tbl thead th { border-top: 2px solid var(--ink); font-size: 13px; color: var(--sub-light); font-weight: 700; padding-block: 10px; }
.tbl tbody th { width: 9em; font-weight: 700; }
.tbl td .n { font-size: 1.02em; }
.dark .tbl th, .dark .tbl td { border-color: var(--rule-dark); }
.dark .tbl thead th { border-top-color: var(--steel); color: var(--sub-dark); }

/* ---------- 設備 ---------- */
.eq { width: 100%; border-collapse: collapse; margin-top: clamp(28px, 4vw, 44px); border: 1px solid var(--ink); background: #fff; }
.eq thead th { background: var(--ink); color: var(--on-dark); font-size: 13px; letter-spacing: .06em; padding: 12px 18px; text-align: left; font-weight: 700; }
.eq tbody th, .eq tbody td { padding: 16px 18px; border-top: 1px solid var(--rule-light); text-align: left; vertical-align: middle; font-size: 15.5px; }
.eq tbody th { font-weight: 700; }
.eq tbody tr:hover { background: #F7F8F9; }
.eq td + td, .eq th + th { border-left: 1px solid var(--rule-light); }
.eq .cnt { white-space: nowrap; width: 11em; }
.eq .cnt .n { font-size: 1.1em; margin-left: 10px; }
.sq { display: inline-flex; gap: 4px; vertical-align: -1px; }
.sq i { width: 11px; height: 11px; background: var(--oil); display: block; }
html.anim .eq.in .sq i { animation: pop .4s var(--ease) both; }
html.anim .eq .sq i { opacity: 0; }
html.anim .eq.in .sq i { opacity: 1; }
.sq i:nth-child(2) { animation-delay: .08s; } .sq i:nth-child(3) { animation-delay: .16s; } .sq i:nth-child(4) { animation-delay: .24s; }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
.eq .sz .n { font-size: 1.02em; }
.eq .tools { font-size: 14.5px; }
@media (max-width: 720px) {
  .eq thead { display: none; }
  .eq, .eq tbody, .eq tr, .eq th, .eq td { display: block; width: 100%; }
  .eq tbody tr { padding: 14px 16px; border-top: 1px solid var(--rule-light); }
  .eq tbody tr:first-child { border-top: 0; }
  .eq tbody th, .eq tbody td { border: 0 !important; padding: 2px 0; }
  .eq .cnt { width: auto; }
  .eq td[data-k]::before { content: attr(data-k); display: inline-block; min-width: 9.5em; font-size: 12px; color: var(--sub-light); }
}

.shots { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.shots figure { margin: 0; }
.shots figure:first-child { grid-row: span 2; }
.shots img { width: 100%; height: 100%; object-fit: cover; }
.shots figure:first-child img { aspect-ratio: auto; min-height: 100%; }
.shots figure:not(:first-child) img { aspect-ratio: 16 / 9; }
.shots figure { display: flex; flex-direction: column; }
.shots figure:first-child { min-height: 0; }
.shots figure:first-child .shots__im { flex: 1; min-height: 280px; position: relative; }
.shots figure:first-child .shots__im img { position: absolute; inset: 0; }
.shots figcaption { font-size: 14px; color: var(--sub-dark); padding-top: 10px; }
.shots figcaption b { color: var(--on-dark); margin-right: .6em; }
@media (max-width: 760px) {
  .shots { grid-template-columns: 1fr; }
  .shots figure:first-child { grid-row: auto; }
  .shots figure:first-child .shots__im { flex: none; min-height: 0; position: static; }
  .shots figure:first-child .shots__im img { position: static; aspect-ratio: 4 / 3; }
}

.kv { width: 100%; border-collapse: collapse; margin-top: clamp(24px, 3vw, 36px); }
.kv th, .kv td { padding: 15px 4px; border-top: 1px solid var(--rule-light); text-align: left; vertical-align: top; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 1px solid var(--rule-light); }
.kv th { width: 9em; font-weight: 700; color: var(--sub-light); font-size: 14.5px; }
.dark .kv th, .dark .kv td { border-color: var(--rule-dark); }
.dark .kv th { color: var(--sub-dark); }
@media (max-width: 560px) { .kv th { width: 6.5em; } }

/* ---------- 加工の例（札） ---------- */
.tags { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); margin-top: clamp(32px, 4vw, 48px); }
.tag { background: #fff; border: 1px solid var(--ink); position: relative; }
.tag__hd { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--ink); }
.tag__hd::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--ink); background: var(--paper); flex: none; }
.tag__hd h2 { font-size: clamp(19px, 1rem + .5vw, 23px); }
.tag img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tag dl { display: grid; grid-template-columns: 4em 1fr; border-top: 1px solid var(--ink); }
.tag dt, .tag dd { padding: 11px 14px; border-bottom: 1px solid var(--rule-light); font-size: 14.5px; }
.tag dt { font-size: 12.5px; color: var(--sub-light); border-right: 1px solid var(--rule-light); font-weight: 700; padding-top: 13px; }
.tag dd .n { font-size: 1.05em; }
.tag dd.big .n { font-size: 1.3em; color: var(--oil-d); }
.tag__say { padding: 16px 18px 20px; font-size: 15px; line-height: 1.8; }
.tag__say::before { content: "ひとこと"; display: block; font-size: 11.5px; color: var(--sub-light); font-weight: 700; letter-spacing: .1em; margin-bottom: 4px; }
@media (max-width: 760px) { .tags { grid-template-columns: 1fr; } }

/* ---------- 会社案内 ---------- */
.greet { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.greet__ph img { width: 100%; aspect-ratio: 688 / 600; object-fit: cover; }
.greet__tx .dh { margin-bottom: 24px; }
.greet__nm { margin-top: 28px; font-weight: 700; letter-spacing: .1em; }
.greet__nm small { font-size: 13px; color: var(--sub-dark); margin-right: 1em; font-weight: 400; letter-spacing: .06em; }
@media (max-width: 860px) { .greet { grid-template-columns: 1fr; } .greet__ph { max-width: 420px; } }

.hist { margin-top: clamp(28px, 4vw, 44px); position: relative; }
.hist::before { content: ""; position: absolute; left: 6.6em; top: 8px; bottom: 8px; width: 1px; background: var(--steel); }
.hist li { display: grid; grid-template-columns: 6.6em 1fr; gap: 0 28px; padding: 12px 0; position: relative; }
.hist li::before { content: ""; position: absolute; left: calc(6.6em - 4px); top: 22px; width: 9px; height: 9px; background: var(--oil); }
.hist .n { font-size: 15px; color: var(--sub-light); padding-top: 2px; }
.hist p { padding-left: 4px; }
@media (max-width: 560px) {
  .hist::before { left: 4px; }
  .hist li { grid-template-columns: 1fr; padding-left: 26px; }
  .hist li::before { left: 0; top: 19px; }
}

/* G-5 地図 */
.map { margin-top: clamp(28px, 4vw, 44px); background: #fff; border: 1px solid var(--ink); }
.map svg { width: 100%; height: auto; display: block; }
.map .rd { stroke: #C9CED4; fill: none; stroke-linecap: round; }
.map .rd2 { stroke: #fff; fill: none; stroke-linecap: round; }
.map .rt { stroke: var(--oil); fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.map .lb { font-family: var(--jp); font-size: 17px; font-weight: 700; fill: var(--ink); }
.map .lb--s { font-size: 14px; font-weight: 400; fill: var(--sub-light); }
.map .lb--o { fill: var(--oil-d); font-size: 16px; }
html.anim .map .seg { opacity: 0; transition: opacity .6s; }
html.anim .map.in .seg { opacity: 1; }
html.anim .map.in .seg:nth-of-type(2) { transition-delay: .5s; }
html.anim .map.in .seg:nth-of-type(3) { transition-delay: 1s; }
html.anim .map .pin { opacity: 0; transform: translateY(-10px); transition: opacity .5s .9s, transform .5s .9s var(--ease); }
html.anim .map.in .pin { opacity: 1; transform: none; }
.map .map--sp { display: none; }
@media (max-width: 640px) { .map .map--pc { display: none; } .map .map--sp { display: block; } }

.recruit { border: 1px solid var(--rule-dark); padding: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: auto 1fr; gap: 12px 36px; align-items: center; }
.recruit h2 { font-size: clamp(20px, 1rem + .8vw, 26px); }
@media (max-width: 760px) { .recruit { grid-template-columns: 1fr; } }

/* ---------- お見積り ---------- */
/* G-4 お見積りの流れ（日数の帯） */
.est { margin-top: clamp(32px, 4vw, 48px); border-top: 2px solid var(--ink); }
.est li { display: grid; grid-template-columns: 2.6em minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule-light); }
.est__no { font-family: var(--mono); font-size: 22px; color: var(--oil-d); }
.est h3 { font-size: 17px; }
.est h3 small { display: block; font-weight: 400; font-size: 13.5px; color: var(--sub-light); margin-top: 2px; }
.est__bar { position: relative; height: 34px; background: repeating-linear-gradient(90deg, var(--rule-light) 0 1px, transparent 1px 33.333%); border-left: 1px solid var(--rule-light); border-right: 1px solid var(--rule-light); }
.est__bar span { position: absolute; top: 4px; bottom: 4px; background: var(--ink); color: var(--on-dark); font-size: 13px; font-weight: 700; display: flex; align-items: center; padding: 0 10px; white-space: nowrap; transform-origin: 0 50%; }
.est__bar span.dash { background: transparent; color: var(--ink); border: 1px dashed var(--ink); }
.est__bar span.oil { background: var(--oil); color: var(--ink); }
html.anim .est__bar span { transform: scaleX(0); transition: transform .7s var(--ease); }
html.anim .est.in .est__bar span { transform: none; }
html.anim .est.in li:nth-child(2) .est__bar span { transition-delay: .2s; }
html.anim .est.in li:nth-child(3) .est__bar span { transition-delay: .4s; }
html.anim .est.in li:nth-child(4) .est__bar span { transition-delay: .6s; }
.est + .note { margin-top: 16px; }
@media (max-width: 640px) {
  .est li { grid-template-columns: 2em 1fr; }
  .est__bar { grid-column: 2; }
}

.send { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.send li { padding: 22px 22px 24px 0; }
.send li + li { padding-left: 22px; border-left: 1px solid var(--rule-light); }
.send svg { width: 46px; height: 46px; color: var(--ink); margin-bottom: 12px; }
.send b { display: block; font-size: 18px; }
.send span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--sub-light); }
.send + .note { margin-top: 18px; max-width: 46em; }
@media (max-width: 760px) {
  .send { grid-template-columns: 1fr; }
  .send li, .send li + li { padding: 18px 0; border-left: 0; }
  .send li + li { border-top: 1px solid var(--rule-light); }
}

.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(28px, 4vw, 40px); }
.way { border: 1px solid var(--rule-dark); padding: 24px 22px 26px; display: flex; flex-direction: column; }
.way h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.way h3 svg { width: 26px; height: 26px; color: var(--oil); flex: none; }
.way p { margin-top: 12px; font-size: 14.5px; color: var(--sub-dark); }
.way p.big { font-family: var(--mono); font-size: 19px; color: var(--on-dark); font-weight: 500; }
.way p.big a { text-decoration: none; }
.way p.big small { font-family: var(--jp); font-size: 13px; color: var(--sub-dark); }
.way__go { margin-top: auto; padding-top: 16px; }
.line { margin-top: 28px; padding: 20px 22px; border-top: 1px dashed var(--steel-d); border-bottom: 1px dashed var(--steel-d); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.line p { color: var(--steel); font-size: 15px; max-width: 40em; }
.line .btn { min-height: 46px; color: var(--on-dark); }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } }

/* フォーム */
.form { margin-top: clamp(28px, 4vw, 40px); max-width: 860px; border-top: 2px solid var(--ink); }
.fr { display: grid; grid-template-columns: 15em 1fr; gap: 10px 28px; padding: 18px 0; border-bottom: 1px solid var(--rule-light); align-items: start; }
.fr > label, .fr > .fr__k { font-weight: 700; font-size: 15px; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.req, .opt { font-size: 11px; padding: 1px 7px; line-height: 1.6; font-weight: 700; letter-spacing: .06em; }
.req { background: var(--oil); color: var(--ink); }
.opt { border: 1px solid var(--rule-light); color: var(--sub-light); }
.fr input[type="text"], .fr input[type="tel"], .fr input[type="email"], .fr textarea, .fr select {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #9BA1A8; border-radius: 0; background: #fff; color: var(--ink);
}
.fr textarea { min-height: 150px; resize: vertical; }
.fr input:focus, .fr textarea:focus { outline: 2px solid var(--oil); outline-offset: 0; border-color: var(--ink); }
.fr__help { font-size: 13px; color: var(--sub-light); margin-top: 6px; }
.file { display: block; border: 1px dashed var(--ink); background: #fff; padding: 20px; text-align: center; cursor: pointer; position: relative; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file b { display: block; font-size: 15px; }
.file span { font-size: 13px; color: var(--sub-light); display: block; margin-top: 4px; }
.file svg { width: 34px; height: 34px; margin: 0 auto 8px; color: var(--ink); }
.file:focus-within { outline: 2px solid var(--oil); outline-offset: 2px; }
.file.has b { color: var(--oil-d); }
.radios { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #9BA1A8; background: #fff; padding: 9px 14px; font-size: 15px; cursor: pointer; }
.radios input { accent-color: var(--oil); width: 18px; height: 18px; margin: 0; }
.agree { padding: 22px 0 6px; }
.agree label { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; cursor: pointer; }
.agree input { width: 22px; height: 22px; accent-color: var(--oil); margin: 0; }
.agree a { font-weight: 400; font-size: 14px; margin-left: 4px; }
.submit { margin-top: 22px; }
.submit .btn { min-width: 300px; min-height: 58px; font-size: 16px; }
.submit p { font-size: 13px; color: var(--sub-light); margin-top: 14px; max-width: 40em; }
@media (max-width: 720px) {
  .fr { grid-template-columns: 1fr; gap: 8px; }
  .fr > label, .fr > .fr__k { padding-top: 0; }
  .submit .btn { width: 100%; min-width: 0; }
}

.faq { margin-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--steel); }
.faq div { padding: 22px 0; border-bottom: 1px solid var(--rule-dark); display: grid; grid-template-columns: 2.2em 1fr; gap: 8px 6px; }
.faq dt, .faq dd { display: contents; }
.faq .q, .faq .a { font-family: var(--mono); font-size: 17px; font-weight: 500; line-height: 1.6; }
.faq .q { color: var(--oil); }
.faq .a { color: var(--steel-d); }
.faq dt span:last-child { font-weight: 700; font-size: 17px; }
.faq dd span:last-child { color: var(--sub-dark); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* 寸法線は線だけにする（数字は見る人に意味がないので出さない） */
.dh__n { display: none; }
