/* =========================================================
   通銅電子工業（架空の企業）コンセプトサイト
   テーマ：技術力 / 正確な仕事 / 活気のある職場
   色は「紙・墨・銅」。銅は社名の仕事そのもの（銅めっき）から取った。
   ========================================================= */
:root {
  --paper: #f3f0ea;
  --paper-2: #e8e3da;
  --white: #fbfaf7;
  --ink: #121417;
  --ink-2: #2a2e33;
  --mute: #646970;
  --line: rgba(18, 20, 23, .14);
  --dark: #0f1114;
  --dark-2: #181b1f;
  --on-dark: #e8e4dc;
  --on-dark-mute: #9aa0a7;
  --cu: #c8632a;
  --cu-hi: #ee8447;
  --cu-deep: #8a3d17;
  --ok: #8ef0c0;

  --f-jp: "Noto Sans JP", system-ui, sans-serif;
  --f-head: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --f-num: "Barlow Condensed", "Noto Sans JP", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --hd-h: 72px;
  --ease: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hd-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-jp);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-head); line-height: 1.35; letter-spacing: .02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--f-mono); letter-spacing: .04em; }
.num { font-family: var(--f-num); font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cu-hi); outline-offset: 3px; }
svg.ic, .btn svg, .maplink svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .9em 1.5em; font-weight: 700; font-size: 15px; line-height: 1.3;
  text-decoration: none; border: 1.5px solid transparent; border-radius: 2px;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-cu { background: var(--cu); color: #fff; }
.btn-cu:hover { background: var(--cu-hi); }
.btn-line { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-line:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--cu-deep); }

/* ---------- ヘッダー ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hd-h); transition: background .3s, box-shadow .3s; }
.hd.is-solid { background: rgba(251, 250, 247, .94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.hd-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.hd-logo { background: #fff; padding: 6px 10px; border-radius: 2px; line-height: 0; }
.hd-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 26px; height: 26px; flex: none; background: linear-gradient(var(--cu) 0 0) 0 5px / 100% 4px no-repeat, linear-gradient(var(--cu) 0 0) 0 17px / 100% 4px no-repeat, linear-gradient(var(--cu-hi) 0 0) 11px 5px / 4px 16px no-repeat, var(--ink); border-radius: 3px; }
.logo-txt { display: flex; flex-direction: column; line-height: 1.1; }
.logo-txt b { font-family: var(--f-head); font-weight: 900; font-size: 17px; letter-spacing: .06em; }
.logo-txt small { font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em; color: var(--mute); }
.gnav { display: flex; align-items: center; gap: 28px; }
.gnav ul { display: flex; gap: 22px; }
.gnav a:not(.btn) { text-decoration: none; font-size: 14px; font-weight: 700; color: #fff; display: flex; align-items: baseline; gap: 5px; transition: color .2s; }
.gnav a:not(.btn) .mono { font-size: 10px; color: var(--cu-hi); }
.hd.is-solid .gnav a:not(.btn) { color: var(--ink); }
.gnav a:not(.btn):hover { color: var(--cu-hi); }
.hd-cta { padding: .7em 1.2em; font-size: 14px; }
.hd-menu { display: none; }

@media (max-width: 1080px) {
  .hd-menu { display: grid; place-content: center; gap: 7px; width: 44px; height: 44px; background: var(--ink); border: 0; border-radius: 2px; cursor: pointer; }
  .hd-menu span:not(.sr) { width: 20px; height: 2px; background: #fff; transition: transform .25s; }
  .hd-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .hd-menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
  .gnav { position: fixed; inset: var(--hd-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 24px; background: var(--white); box-shadow: 0 12px 24px rgba(0,0,0,.12); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s; }
  .gnav.is-open { transform: none; opacity: 1; visibility: visible; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav a:not(.btn) { color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .hd-cta { margin-top: 16px; justify-content: center; }
}

/* ---------- ヒーロー ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; color: #fff; background: var(--dark); overflow: hidden; padding: calc(var(--hd-h) + 40px) 0 88px; }
.hero-bg { position: absolute; inset: 0; }
/* 空撮動画（生成した空撮写真に、前進と旋回のカメラの動きを付けたもの・12秒ループ）。工場は画面の右寄りなので、縦長の画面でも工場が残るよう右に寄せる */
.hero-bg video { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,11,13,.94) 0%, rgba(10,11,13,.78) 45%, rgba(10,11,13,.35) 100%), linear-gradient(0deg, rgba(10,11,13,.7), transparent 40%); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, #000 30%, transparent 85%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 48px; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--cu-hi); margin-bottom: 28px; }
.kicker .dot { width: 8px; height: 8px; background: var(--cu-hi); border-radius: 50%; box-shadow: 0 0 0 0 rgba(238,132,71,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(238,132,71,0); } 100% { box-shadow: 0 0 0 0 rgba(238,132,71,0); } }
.hero-title { font-weight: 900; font-size: clamp(44px, 8.4vw, 116px); line-height: 1.12; letter-spacing: .01em; }
.hero-title .ln { display: block; overflow: hidden; }
.hero-title .cu { color: var(--cu-hi); }
.hero-lead { margin-top: 28px; max-width: 34em; color: #d7d3cb; font-size: clamp(15px, 1.4vw, 17px); }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-spec { position: relative; width: 300px; padding: 22px 22px 14px; background: rgba(15,17,20,.72); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.12); }
.spec-hd { display: flex; justify-content: space-between; font-size: 10px; color: var(--on-dark-mute); padding-bottom: 10px; border-bottom: 1px dashed rgba(255,255,255,.2); }
.hero-spec dl { margin: 0; }
.hero-spec dl > div { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.hero-spec dl > div:last-child { border: 0; }
.hero-spec dt { font-size: 12px; color: #c9c4bb; line-height: 1.5; }
.hero-spec dt em { font-style: normal; font-size: 10px; color: var(--on-dark-mute); }
.hero-spec dd { margin: 0; display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.hero-spec dd b { font-size: 34px; line-height: 1; color: #fff; }
.hero-spec dd small { font-size: 11px; color: var(--cu-hi); }
.crop { position: absolute; width: 12px; height: 12px; border: 0 solid var(--cu-hi); }
.crop.tl { top: -6px; left: -6px; border-top-width: 1.5px; border-left-width: 1.5px; }
.crop.tr { top: -6px; right: -6px; border-top-width: 1.5px; border-right-width: 1.5px; }
.crop.bl { bottom: -6px; left: -6px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.crop.br { bottom: -6px; right: -6px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.hero-ruler { position: absolute; left: 0; right: 0; bottom: 24px; height: 18px; background:
  repeating-linear-gradient(90deg, rgba(255,255,255,.45) 0 1px, transparent 1px 100px) bottom/100% 18px no-repeat,
  repeating-linear-gradient(90deg, rgba(255,255,255,.3) 0 1px, transparent 1px 10px) bottom/100% 7px no-repeat;
  border-bottom: 1px solid rgba(255,255,255,.3); }

/* 入場アニメ */
.hero-title .ln, .kicker, .hero-lead, .hero-act, .hero-spec { animation: rise .9s var(--ease) both; }
.hero-title .ln:nth-child(2) { animation-delay: .12s; }
.hero-lead { animation-delay: .25s; }
.hero-act { animation-delay: .35s; }
.hero-spec { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-spec { width: 100%; max-width: 420px; }
}

/* ---------- 数字 ---------- */
.figures { background: var(--ink); color: var(--on-dark); }
.fig-list { display: grid; grid-template-columns: repeat(5, 1fr); }
.fig-list li { padding: 34px 20px 30px; border-left: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; }
.fig-list li:first-child { border-left: 0; padding-left: 0; }
.fig-k { font-size: 12px; color: var(--on-dark-mute); }
.fig-v { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; color: #fff; margin-top: 6px; }
.fig-u { font-size: 12px; color: var(--cu-hi); font-weight: 700; }
@media (max-width: 900px) {
  .fig-list { grid-template-columns: repeat(2, 1fr); }
  .fig-list li { padding: 22px 16px; border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .fig-list li:nth-child(odd) { padding-left: 0; }
  .fig-list li:last-child { grid-column: 1 / -1; }
}

/* ---------- セクション共通 ---------- */
.sec { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.sec-tint { background: var(--paper-2); }
.sec-dark { background: var(--dark); color: var(--on-dark); }
.sec-cu { background: var(--cu); color: #fff; }
.sec-hd { margin-bottom: clamp(40px, 6vw, 72px); max-width: 820px; }
.sec-no { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--cu); margin-bottom: 20px; }
.sec-no span { display: inline-grid; place-items: center; min-width: 38px; height: 22px; padding: 0 6px; border: 1px solid currentColor; font-size: 11px; }
.sec-no::after { content: ""; flex: 1; max-width: 160px; height: 9px; background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 8px); opacity: .55; }
.sec-dark .sec-no { color: var(--cu-hi); }
.sec-cu .sec-no { color: #fff; }
.sec-hd h2 { font-weight: 900; font-size: clamp(30px, 4.6vw, 54px); }
.sec-lead { margin-top: 22px; color: var(--mute); max-width: 40em; }
.sec-dark .sec-lead { color: var(--on-dark-mute); }
.sec-cu .sec-lead { color: rgba(255,255,255,.88); }
.sub-hd { font-size: 22px; font-weight: 900; margin: 72px 0 24px; display: flex; align-items: center; gap: 12px; }
.sub-hd::before { content: ""; width: 14px; height: 14px; background: var(--cu); }
.sec-cu .sub-hd::before { background: #fff; }
@media (max-width: 760px) { .pc { display: none; } }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* 写真の四隅にトンボ（位置合わせ記号）を付けて「精度」を表す */
.framed { position: relative; margin: 0; }
.framed::before, .framed::after { content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--cu); z-index: 1; pointer-events: none; }
.framed::before { top: -7px; left: -7px; border-top-width: 1.5px; border-left-width: 1.5px; }
.framed::after { bottom: -7px; right: -7px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* ---------- 01 強み ---------- */
.tech { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.tech-photo img { aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.tech-photo figcaption { font-size: 11px; color: var(--mute); margin-top: 12px; }
.strengths li { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.strengths li:last-child { border-bottom: 1px solid var(--line); }
.st-no { font-size: 52px; line-height: .9; color: var(--cu); }
.strengths h3 { font-size: 22px; font-weight: 900; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.strengths h3 .ic { color: var(--cu); font-size: 22px; }
.strengths h3 small { font-family: var(--f-mono); font-size: 10px; font-weight: 400; color: var(--mute); letter-spacing: .1em; }
.strengths p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.checks { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.checks li { background: var(--paper); padding: 18px 20px 18px 50px; position: relative; font-weight: 500; font-size: 15px; line-height: 1.6; }
.checks li::before { content: ""; position: absolute; left: 20px; top: 22px; width: 14px; height: 8px; border-left: 2px solid var(--cu); border-bottom: 2px solid var(--cu); transform: rotate(-45deg); }
@media (max-width: 900px) {
  .tech { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .strengths li { grid-template-columns: 56px 1fr; }
  .st-no { font-size: 42px; }
}

/* ---------- 流れる帯 ---------- */
.marquee { background: var(--cu); color: #fff; overflow: hidden; padding: 14px 0; }
.mq-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: mq 40s linear infinite; }
.mq-track span { font-family: var(--f-num); font-weight: 700; font-size: 28px; letter-spacing: .04em; white-space: nowrap; }
.mq-track i { width: 10px; height: 10px; border: 2px solid #fff; transform: rotate(45deg); flex: none; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- 02 製品 ---------- */
.prods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
.prod { background: var(--white); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.prod:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(18,20,23,.1); }
.prod figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #111; }
.prod-body { padding: 18px 18px 22px; }
.prod-id { font-size: 10px; color: var(--cu); }
.prod h3 { font-size: 19px; font-weight: 900; margin: 4px 0 12px; }
.spec { margin: 0; font-size: 13px; }
.spec > div { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--line); }
.spec dt { color: var(--mute); font-size: 12px; min-width: 5.5em; }
.spec dd { margin: 0; font-family: var(--f-mono); font-size: 12.5px; text-align: right; }
.spec dd b { color: var(--cu); font-size: 15px; }
.prod-note { font-size: 12px; color: var(--mute); margin-top: 8px; line-height: 1.7; }
.prod-cta { background: var(--ink); color: #fff; padding: 24px 22px; justify-content: flex-end; gap: 12px; }
.prod-cta .mono { font-size: 10px; color: var(--cu-hi); }
.prod-cta h3 { font-size: 20px; margin: 0; }
.prod-cta p:not(.mono) { font-size: 13px; color: var(--on-dark-mute); }
.prod-cta .btn { align-self: flex-start; background: var(--cu); margin-top: 6px; }
@media (max-width: 1080px) { .prods { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .prods { grid-template-columns: 1fr; } }

/* ---------- 03 工程（図解） ---------- */
.flow-wrap { position: relative; margin-bottom: 28px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; }
.flow { display: grid; grid-template-columns: repeat(10, minmax(84px, 1fr)); min-width: 860px; }
.flow button {
  width: 100%; height: 100%; text-align: left; cursor: pointer;
  background: transparent; color: var(--on-dark-mute); border: 0; border-top: 2px solid #2b3036;
  padding: 12px 8px 4px 0; font: 700 13px/1.4 var(--f-jp); transition: color .3s;
}
.flow button .mono { display: block; font-size: 11px; font-weight: 400; margin-bottom: 4px; }
.flow button:hover { color: #fff; }
.flow button.is-done { color: #c9c4bb; }
.flow button[aria-current="step"] { color: var(--cu-hi); }
.flow-bar { position: absolute; top: 0; left: 0; height: 2px; width: 100%; min-width: 860px; pointer-events: none; }
.flow-bar i { display: block; height: 100%; width: 0; background: var(--cu-hi); box-shadow: 0 0 12px var(--cu-hi); transition: width .9s var(--ease); }

/* 左右の図の高さが揃う比率（機械図 1000:400、断面図 420:360） */
.proc-stage { display: grid; grid-template-columns: 2.1fr 1fr; gap: 16px; align-items: start; }
.machine, .xsec { margin: 0; background: #15181c; border: 1px solid #262b31; display: flex; flex-direction: column; }
.machine svg, .xsec svg { display: block; width: 100%; height: auto; }
.panel-hd { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 10px; color: var(--on-dark-mute); border-bottom: 1px solid #262b31; }
.panel-tag { font-family: var(--f-jp); font-size: 11px; color: #c9c4bb; border: 1px solid #3a4048; padding: 0 8px; }
.xsec svg { flex: 1; }

.proc-info { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 16px; padding: 22px 24px; background: var(--dark-2); border: 1px solid #262b31; }
.pstep { display: grid; grid-template-columns: auto 1fr minmax(160px, auto); gap: 24px; align-items: center; min-height: 112px; }
.pstep-no { font-size: 84px; line-height: .85; color: var(--cu-hi); width: 1.2em; }
.pstep-en { font-size: 11px; color: var(--on-dark-mute); }
.pstep-name { font-size: 26px; font-weight: 900; color: #fff; margin: 2px 0 6px; }
.pstep-desc { font-size: 14.5px; color: #cfcac1; line-height: 1.8; }
.pstep-read { margin: 0; padding-left: 20px; border-left: 1px solid #333940; }
.pstep-read dt { font-size: 10px; color: var(--on-dark-mute); }
.pstep-read dd { margin: 4px 0 0; font-weight: 700; color: var(--ok); font-size: 16px; line-height: 1.5; }
.pstep.swap > * { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }
.proc-ctrl { display: flex; gap: 8px; }
.pc-btn { width: 48px; height: 48px; display: grid; place-items: center; background: transparent; border: 1px solid #3a4048; color: #fff; cursor: pointer; border-radius: 2px; transition: background .2s, border-color .2s; }
.pc-btn:hover { border-color: var(--cu-hi); }
.pc-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pc-play { background: var(--cu); border-color: var(--cu); }
.pc-play .ic-play { display: none; fill: currentColor; }
.pc-play.is-paused .ic-play { display: block; }
.pc-play.is-paused .ic-pause { display: none; }
.proc-note { margin-top: 14px; font-size: 12px; color: var(--on-dark-mute); }

@media (max-width: 1080px) {
  .proc-stage { grid-template-columns: 1fr; }
  .pstep { grid-template-columns: auto 1fr; }
  .pstep-read { grid-column: 2; padding: 10px 0 0; border: 0; border-top: 1px solid #333940; }
}
@media (max-width: 640px) {
  .proc-info { grid-template-columns: 1fr; padding: 18px 16px; }
  .pstep { gap: 14px; }
  .pstep-no { font-size: 56px; }
  .pstep-name { font-size: 21px; }
  .proc-ctrl { justify-content: center; }
  .m-label { display: none; }
  /* スマホでは機械図を拡大し、中央（処理中の装置）だけを見せる */
  .machine { overflow: hidden; }
  .machine svg { width: 170%; max-width: none; margin-left: -35%; }
}

/* --- 機械図：部品の見た目 --- */
.machine .tank { fill: #1c2026; stroke: #59606a; stroke-width: 2; }
.machine .glass { fill: none; stroke: #8a939d; stroke-width: 2; }
.machine .glass + text, .machine .m-label { fill: #9aa0a7; font: 500 17px var(--f-jp); }
.machine .m-tag { fill: var(--cu-hi); font: 500 16px var(--f-mono); letter-spacing: .2em; }
.machine .m-mini { fill: #9aa0a7; font: 500 11px var(--f-mono); }
.machine .heater { fill: none; stroke: #b5502a; stroke-width: 2; opacity: .7; }
.machine .housing { fill: #1b1f24; stroke: #3f464e; stroke-width: 2; }
.machine .pipe { fill: #3a4048; }
.machine .rect-box { fill: #2b3036; stroke: #4a525b; }
.machine .busbar { fill: #8a939d; }
.machine .anode { fill: #b5652f; stroke: #d98447; }
.machine .cable { fill: none; stroke: #b5502a; stroke-width: 3; }
.machine .liquid { opacity: .5; }
.machine .surface { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 1.5; }
.machine .bubbles circle, .machine .dust circle { fill: rgba(255,255,255,.75); opacity: 0; }
.machine .ion { fill: #ffb27a; opacity: 0; }
.machine .brush { fill: #2a2f35; stroke: #8a939d; stroke-width: 2; }
.machine .buff { fill: #8f7a5a; stroke: #c4ab84; stroke-width: 2; }
.machine .bristle { stroke: rgba(255,255,255,.55); stroke-width: 2; fill: none; }
.machine .spray path { stroke: #8fd3ff; stroke-width: 2; stroke-linecap: round; fill: none; stroke-dasharray: 3 6; opacity: 0; }
.machine .belt rect { fill: #4a3f33; stroke: #8f7a5a; }
.machine .belt path { stroke: #c4ab84; stroke-width: 2; stroke-dasharray: 6 8; fill: none; }
.machine .heat { fill: none; stroke: var(--cu-hi); stroke-width: 2; stroke-linecap: round; opacity: .3; }
.machine .backlight { fill: url(#g-glow); opacity: .15; transition: opacity .6s; }
.machine .squeegee, .machine .scan, .machine .loupe { opacity: 0; transition: opacity .4s; }
.machine .lamp { fill: #3a4048; transition: fill .3s; }
.machine .bd { opacity: 0; transition: opacity 1s ease; }
.machine .bd.on { opacity: 1; }
.machine .bd-el.on { opacity: .55; }

/* 流れ（パン）と昇降 */
.machine .strip { transition: transform 1.2s var(--ease); }
.machine .hang { transition: transform .7s var(--ease); }
.machine .hang.down { transform: translateY(132px); }
.process.is-travel .wheel path { animation: spin .5s linear infinite; }
.process.is-travel .lamp { fill: var(--cu-hi); }
.wheel path, .roller .bristle { transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 動いている工程だけ装置のアニメを回す */
.st.is-on .bubbles circle { animation: bubble 1.6s ease-in infinite; }
.st.is-on .bubbles circle:nth-child(2) { animation-delay: .4s; }
.st.is-on .bubbles circle:nth-child(3) { animation-delay: .8s; }
.st.is-on .bubbles circle:nth-child(4) { animation-delay: 1.1s; }
.st.is-on .bubbles circle:nth-child(5) { animation-delay: .2s; }
@keyframes bubble { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translateY(-96px); } }
.st.is-on .surface { animation: wave 1.2s ease-in-out infinite alternate; }
@keyframes wave { to { transform: translateX(-9px); } }
.st.is-on .roller .bristle { animation: spin 1s linear infinite; }
.st.is-on .roller.rev .bristle { animation-direction: reverse; }
.st.is-on .spray path { opacity: 1; animation: dash .4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.st.is-on .belt path { animation: dash .3s linear infinite; }
.st.is-on .dust circle { animation: dust 1s ease-out infinite; }
.st.is-on .dust circle:nth-child(2) { animation-delay: .3s; }
.st.is-on .dust circle:nth-child(3) { animation-delay: .6s; }
@keyframes dust { 0% { opacity: .9; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(-14px, 18px); } }
.st.is-on .dust circle:nth-child(even) { animation-name: dust-r; }
@keyframes dust-r { 0% { opacity: .9; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(14px, 18px); } }
.st.is-on .ion { animation: ion-l 1.1s ease-in infinite; }
.st.is-on .ion.r { animation-name: ion-r; }
.st.is-on .ion.d2 { animation-delay: .35s; }
.st.is-on .ion.d3 { animation-delay: .7s; }
@keyframes ion-l { 0% { opacity: 0; transform: translateX(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(40px); } }
@keyframes ion-r { 0% { opacity: 0; transform: translateX(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(-40px); } }
.st.is-on .needle { transform-box: fill-box; transform-origin: 50% 100%; animation: needle 2.4s ease-in-out infinite alternate; }
@keyframes needle { from { transform: rotate(-35deg); } to { transform: rotate(28deg); } }
.st.is-on .heat { opacity: 1; stroke-dasharray: 4 4; animation: dash .6s linear infinite; }
.st.is-on .squeegee { opacity: 1; animation: squeegee 1.6s var(--ease) infinite alternate; }
@keyframes squeegee { from { transform: translateY(226px); } to { transform: translateY(344px); } }
.st.is-on .backlight { opacity: 1; }
.st.is-on .scan { opacity: 1; animation: scan 1.4s linear infinite; }
@keyframes scan { from { transform: translateY(228px); } to { transform: translateY(346px); } }
.st.is-on .loupe { opacity: 1; animation: loupe 3s ease-in-out infinite; }
@keyframes loupe { 0% { transform: translate(-18px, 250px); } 33% { transform: translate(20px, 280px); } 66% { transform: translate(-14px, 318px); } 100% { transform: translate(-18px, 250px); } }

/* 画面外では装置のアニメを止める（見えない所でCPUを使わない） */
.process.is-offscreen .proc-stage * { animation-play-state: paused; }

/* --- 断面図 --- */
.xsec .xs { transition: opacity .9s ease; }
.xsec .x-fade { opacity: 0; }
.xsec .x-fade.on { opacity: 1; }
.xsec .x-cu1 { fill: none; stroke: #f0a98a; stroke-width: 0; transition: stroke-width 1.4s var(--ease); }
.xsec .x-cu1.on { stroke-width: 4; }
.xsec .x-cu2 { fill: none; stroke: #e8843f; stroke-width: 0; transition: stroke-width 2s var(--ease); }
.xsec .x-cu2.on { stroke-width: 22; }
.xsec .x-fill { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1.6s var(--ease); }
.xsec .x-fill.on { transform: none; }
.xsec .x-water { opacity: 0; }
.xsec .x-water.on { opacity: 1; }
.xsec .x-water.on circle { animation: water 1s ease-in infinite; }
.xsec .x-water.on circle:nth-child(2) { animation-delay: .25s; }
.xsec .x-water.on circle:nth-child(3) { animation-delay: .5s; }
.xsec .x-water.on circle:nth-child(4) { animation-delay: .75s; }
@keyframes water { from { transform: translateY(0); opacity: 1; } to { transform: translateY(200px); opacity: 0; } }
.xsec .on .x-scan { animation: xscan 1.6s linear infinite; }
@keyframes xscan { from { transform: translateX(0); } to { transform: translateX(336px); } }
.xsec .anno path { fill: none; stroke: #e8e4dc; stroke-width: 1; }
.xsec .anno text { fill: #e8e4dc; font: 500 13px var(--f-jp); }
.xsec .legend text { fill: #9aa0a7; font: 400 9.5px var(--f-jp); }

/* ---------- 04 品質 ---------- */
.qa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.qa li { position: relative; }
.qa figure { margin: 0 0 16px; overflow: hidden; }
.qa img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; transition: transform .6s var(--ease); }
.qa li:hover img { transform: scale(1.04); }
.qa-freq { display: flex; align-items: baseline; gap: 6px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 12px; }
.qa-freq b { font-size: 44px; line-height: 1; color: var(--cu); }
.qa-freq span { font-size: 13px; font-weight: 700; }
.qa h3 { font-size: 18px; font-weight: 900; margin-bottom: 6px; }
.qa p:not(.qa-freq) { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
@media (max-width: 900px) { .qa { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .qa { grid-template-columns: 1fr; } }

.qpol { margin-top: 80px; display: grid; grid-template-columns: 1fr 240px; gap: 48px; padding: clamp(24px, 4vw, 48px); background: var(--white); border: 1px solid var(--line); }
.qpol-hd { font-size: 11px; color: var(--cu); margin-bottom: 16px; }
.qpol ol { counter-reset: q; }
.qpol ol li { counter-increment: q; display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-weight: 700; font-size: clamp(15px, 1.6vw, 18px); }
.qpol ol li::before { content: counter(q, decimal-leading-zero); font-family: var(--f-num); color: var(--cu); font-size: 20px; line-height: 1.4; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li { font-size: 13px; padding: 4px 12px; border: 1px solid var(--ink); }
.qpol-env { margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.qpol-env b { color: var(--ink); }
.qpol-cert { margin: 0; }
.qpol-iso { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 24px; background: var(--ink); color: #fff; }
.qpol-iso .mono { font-size: 10px; color: var(--cu-hi); }
.qpol-iso b { font-size: 40px; line-height: 1; }
.qpol-iso span:last-child { font-size: 12px; color: var(--on-dark-mute); line-height: 1.6; }
@media (max-width: 760px) { .qpol { grid-template-columns: 1fr; } .qpol-cert { max-width: 220px; } }

/* ---------- 05 職場 ---------- */
.mosaic { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.mosaic figure { margin: 0; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mo-a { grid-row: span 2; }
.mo-a img { aspect-ratio: 4 / 3.3; }
.mo-b img, .mo-c img { aspect-ratio: 16 / 9; }
.mo-quote { grid-column: 1 / -1; font-family: var(--f-head); font-weight: 900; font-size: clamp(20px, 2.6vw, 30px); line-height: 1.6; padding: 28px 0 0; }
.mo-quote .mono { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 11px; opacity: .8; margin-bottom: 8px; }
@media (max-width: 760px) { .mosaic { grid-template-columns: 1fr; } .mo-a { grid-row: auto; } }

.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; }
.voice { background: var(--white); color: var(--ink); display: grid; grid-template-columns: 200px 1fr; }
.voice figure { margin: 0; }
.voice figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.voice-body { padding: 24px; }
.voice-dept { font-size: 11px; color: var(--cu); }
.voice h3 { font-size: 24px; font-weight: 900; }
.voice h3 small { font-size: 14px; margin-left: 4px; }
.voice-one { font-family: var(--f-head); font-weight: 900; font-size: 19px; color: var(--cu); margin: 10px 0; line-height: 1.5; }
.voice-body > p:not(.voice-dept):not(.voice-one) { font-size: 14px; color: var(--ink-2); }
details { margin-top: 14px; border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 12px 0 0; font-weight: 700; font-size: 14px; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 8px; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; background: var(--ink); color: #fff; font-family: var(--f-mono); }
details[open] summary::before { content: "−"; }
.qa-list { margin: 12px 0 0; font-size: 13.5px; }
.qa-list dt { font-weight: 700; color: var(--cu-deep); margin-top: 10px; }
.qa-list dd { margin: 2px 0 0; color: var(--ink-2); line-height: 1.8; }
@media (max-width: 1080px) { .voices { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .voice { grid-template-columns: 1fr; } .voice figure img { aspect-ratio: 4 / 3; } }

.cares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.3); border: 1px solid rgba(255,255,255,.3); }
.cares li { background: var(--cu); padding: 24px; }
.cares .ic { font-size: 30px; stroke-width: 1.4; }
.cares h4 { font-size: 18px; font-weight: 900; margin: 12px 0 6px; }
.cares p { font-size: 14px; color: rgba(255,255,255,.9); line-height: 1.8; }
@media (max-width: 900px) { .cares { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cares { grid-template-columns: 1fr; } }

.care-photo { margin: 40px 0 0; position: relative; }
.care-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.care-photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--ink); color: #fff; padding: 6px 12px; font-size: 12px; font-weight: 700; }

/* ---------- 06 会社 ---------- */
.philo { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 40px 0; }
.philo-main { font-family: var(--f-head); font-weight: 900; font-size: clamp(21px, 2.8vw, 34px); line-height: 1.6; }
.philo-main .mono { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 11px; color: var(--cu); margin-bottom: 14px; }
.philo-vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 36px; }
.philo-vals b { font-family: var(--f-head); font-size: 22px; display: block; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.philo-vals b::before { content: "■"; color: var(--cu); font-size: 12px; margin-right: 8px; vertical-align: 3px; }
.philo-vals p { font-size: 14px; color: var(--ink-2); }
@media (max-width: 760px) { .philo-vals { grid-template-columns: 1fr; gap: 20px; } }

.greet { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.greet-hd { font-size: 11px; color: var(--cu); }
.greet-body p { margin-bottom: 1em; font-size: 15px; color: var(--ink-2); max-width: 46em; }
.greet-pts { display: grid; gap: 8px; margin: 0 0 1.2em; }
.greet-pts li { display: flex; gap: 16px; padding: 12px 16px; background: var(--white); font-size: 14px; }
.greet-pts b { min-width: 9em; }
.greet-body .greet-sign { text-align: right; font-size: 13px; color: var(--mute); }
.greet-sign b { font-family: var(--f-head); font-size: 22px; color: var(--ink); margin-left: 14px; }
@media (max-width: 760px) { .greet { grid-template-columns: 1fr; gap: 16px; } .greet-pts li { flex-direction: column; gap: 2px; } }

.co-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; }
.profile table { width: 100%; border-collapse: collapse; font-size: 14px; }
.profile th, .profile td { text-align: left; vertical-align: top; padding: 14px 0; border-bottom: 1px solid var(--line); line-height: 1.75; }
.profile th { width: 8.5em; font-weight: 700; padding-right: 16px; color: var(--mute); font-size: 13px; }
.profile td small { color: var(--mute); }
.cap { margin: 0; }
.cap > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 12px; padding: 2px 0; }
.cap dd { margin: 0; font-size: 12.5px; color: var(--cu-deep); }
.tl { position: relative; border-left: 1px solid var(--line); margin-left: 6px; }
.tl li { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 8px 0 8px 22px; font-size: 14px; line-height: 1.6; }
.tl li::before { content: ""; position: absolute; left: -5px; top: 15px; width: 9px; height: 9px; background: var(--paper); border: 1.5px solid var(--mute); border-radius: 50%; }
.tl li.em::before { background: var(--cu); border-color: var(--cu); }
.tl li.em p { font-weight: 700; }
.tl time { font-family: var(--f-mono); font-size: 12.5px; color: var(--cu-deep); padding-top: 1px; }
@media (max-width: 900px) { .co-grid { grid-template-columns: 1fr; gap: 0; } }

.sites { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.sites img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.site-no { font-size: 10px; color: var(--cu); margin-top: 18px; }
.sites h4 { font-size: 20px; font-weight: 900; margin: 2px 0 6px; }
.addr { font-size: 14px; }
.tel { font-size: 12px; color: var(--mute); margin-top: 2px; }
.route { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.route li { padding-left: 14px; position: relative; line-height: 1.7; }
.route li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 1px; background: var(--cu); }
.maplink { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--cu); padding-bottom: 2px; }
.maplink:hover { color: var(--cu); }
@media (max-width: 900px) { .sites { grid-template-columns: 1fr; gap: 44px; } }

/* ---------- 07 採用 ---------- */
.recruit { overflow: hidden; }
.rc-bg { position: absolute; inset: 0; opacity: .16; }
.rc-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.recruit .wrap { position: relative; }
.rc-msg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rc-msg li { border-top: 2px solid var(--cu-hi); padding-top: 18px; }
.rc-msg .num { font-size: 56px; line-height: 1; color: var(--cu-hi); }
.rc-msg .mono { font-size: 11px; color: var(--on-dark-mute); margin: 6px 0 10px; }
.rc-msg p:last-child { color: #e0dbd2; font-size: 15px; }
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.job { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); padding: 22px; }
.job .mono { font-size: 10px; color: var(--cu-hi); }
.job h3 { font-size: 21px; font-weight: 900; color: #fff; margin: 2px 0 8px; }
.job-roles { font-size: 14px; color: #cfcac1; }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; border: 1px solid rgba(255,255,255,.14); }
.perks li { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-left: 1px solid rgba(255,255,255,.14); }
.perks li:first-child { border-left: 0; }
.perks b { font-size: 48px; line-height: 1; color: #fff; }
.perks span { font-size: 12px; line-height: 1.5; color: #cfcac1; }
.rc-sub { margin-top: 16px; font-size: 13px; color: var(--on-dark-mute); }
.recruit .btn { margin-top: 28px; }
@media (max-width: 900px) {
  .rc-msg, .jobs { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr 1fr; }
  .perks li:nth-child(3) { border-left: 0; }
  .perks li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
}

/* ---------- ニュース ---------- */
.news { padding-bottom: 80px; }
.news-in { display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
.nw-list li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.nw-list li:last-child { border-bottom: 1px solid var(--line); }
.nw-tag { font-size: 10px; height: 22px; display: grid; place-items: center; background: var(--ink); color: #fff; }
.nw-list h3 { font-size: 17px; font-weight: 700; font-family: var(--f-jp); }
.nw-list p { font-size: 14px; color: var(--mute); margin-top: 4px; }
@media (max-width: 760px) { .news-in { grid-template-columns: 1fr; gap: 0; } }

/* ---------- お問い合わせ ---------- */
.contact { background: var(--cu); color: #fff; padding: clamp(64px, 9vw, 110px) 0; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 48px 48px; }
.ct-in { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.contact .sec-no { color: #fff; }
.contact h2 { font-weight: 900; font-size: clamp(26px, 3.6vw, 42px); margin-bottom: 16px; }
.contact p { color: rgba(255,255,255,.9); }
.ct-box { background: var(--ink); padding: 32px; }
.ct-tel { display: flex; align-items: baseline; gap: 14px; text-decoration: none; color: #fff; }
.ct-tel .mono { font-size: 13px; color: var(--cu-hi); }
.ct-tel b { font-size: clamp(40px, 5vw, 60px); line-height: 1; }
.ct-tel:hover b { color: var(--cu-hi); }
.contact .ct-fax { font-size: 14px; color: var(--on-dark-mute); margin-top: 8px; }
.contact .ct-addr { font-size: 13px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #333940; color: #cfcac1; }
@media (max-width: 900px) { .ct-in { grid-template-columns: 1fr; } }

/* ---------- フッター ---------- */
.ft { background: var(--dark); color: var(--on-dark-mute); padding: 48px 0 28px; font-size: 13px; }
.ft-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid #262b31; }
.ft-logo { display: inline-flex; }
.ft-brand p { margin-top: 10px; }
.ft-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: flex-start; max-width: 560px; }
.ft-nav a { text-decoration: none; color: #cfcac1; }
.ft-nav a:hover { color: var(--cu-hi); }
.ft-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; }
.ft-note { margin-top: 20px; padding: 14px 0; background: #08090b; font-size: 12px; color: var(--on-dark-mute); }
.ft-note a { color: #cfcac1; }

/* ---------- 動きを減らす設定の利用者 ---------- */
@media (prefers-reduced-motion: reduce) {
  /* !important は意図的：個別に書いた animation / transition をすべて打ち消すため（アクセシビリティ設定を優先） */
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .mq-track { animation: none; }
}
