/* SUNGSIN DOOR — 성신금속 좋은문 */
:root {
  --cobalt: #20409A;
  --cobalt-deep: #162E72;
  --cobalt-soft: #E8EDF8;
  --ink: #15203B;
  --steel: #566175;
  --line: #CDD4DF;
  --paper: #F3F5F8;
  --grid: #E2E7EE;
  --red: #D8392E;
  --red-text: #B8302A;
  --white: #FFFFFF;
  --f-ko: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-num: "Barlow Condensed", "IBM Plex Sans KR", sans-serif;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 32px);
  --head: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.75 var(--f-ko);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cobalt); color: #fff; padding: .6rem 1rem; }
.skip:focus { top: 12px; }
.num { font-family: var(--f-num); font-weight: 600; letter-spacing: .01em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.grid-paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* brochure heading device: cobalt tab with a slanted cut */
.tab-h {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: .42em 2.1em .42em .7em;
  background: var(--cobalt);
  color: #fff;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, calc(100% - 1.15em) 100%, 0 100%);
}
.section-lead { max-width: 40em; margin: 0 0 2.75rem; color: var(--steel); font-size: 1.075rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.25rem;
  border: 2px solid transparent; border-radius: 2px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-deep); }
.btn-line { border-color: var(--cobalt); color: var(--cobalt); background: transparent; }
.btn-line:hover { background: var(--cobalt-soft); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--cobalt-soft); }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.top-in { max-width: 1320px; margin-inline: auto; padding-inline: var(--gut); height: var(--head); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: baseline; gap: .55rem; text-decoration: none; flex: none; }
.brand-en { font: italic 800 1.65rem/1 var(--f-num); color: var(--cobalt); letter-spacing: .01em; }
.brand-ko { font-size: .85rem; font-weight: 600; color: var(--steel); }
.nav { display: flex; gap: .15rem; margin-left: auto; }
.nav a { padding: .45rem .65rem; font-size: .95rem; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--cobalt); }
.nav a.nav-blog { color: var(--cobalt); font-weight: 600; }
.nav a[aria-current="true"] { color: var(--cobalt); border-bottom-color: var(--cobalt); }
.top-call {
  display: inline-flex; align-items: center; gap: .4rem; flex: none;
  padding: .45rem .9rem; background: var(--cobalt); color: #fff; text-decoration: none;
  font: 600 1.15rem/1 var(--f-num); letter-spacing: .02em;
}
.top-call svg { width: 16px; height: 16px; fill: currentColor; }
.top-call:hover { background: var(--cobalt-deep); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 11px 9px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 1240px) {
  .menu-btn { display: flex; }
  .top-call { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--head);
    flex-direction: column; gap: 0; margin: 0;
    background: #fff; border-bottom: 2px solid var(--cobalt);
    padding: .5rem var(--gut) 1rem;
    display: none;
    max-height: calc(100vh - var(--head));
    max-height: calc(100dvh - var(--head));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .top-call { display: none; }
  .menu-btn { margin-left: auto; }
  .brand-en { font-size: 1.45rem; }
}

/* ---------------------------------------------------------------- hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.14; letter-spacing: -0.035em; font-weight: 700; margin-bottom: 1.4rem; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--steel); max-width: 29em; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-proof { margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .98rem; color: var(--steel); max-width: 29em; }
.hero-proof strong { color: var(--cobalt); font-weight: 700; }

/* door stage — all geometry in % of the scene (see main.js for the physics) */
.stage { margin: 0; }
.stage-box { position: relative; aspect-ratio: 1.16; user-select: none; -webkit-user-select: none; }
.scene { position: absolute; left: 0; top: 0; right: 58px; bottom: 62px; }
.wall { position: absolute; inset: 0; background: #E6EAF0; border: 1px solid #BEC6D2; }
.floor { position: absolute; left: -12px; right: -12px; bottom: -1px; height: 2px; background: var(--ink); }
.opening { position: absolute; left: 50%; right: 3%; top: 14%; bottom: 0; overflow: hidden; background: #C9D1DC; box-shadow: inset 0 0 0 3px #A3ADBB; }
.opening img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.railbox {
  position: absolute; left: 0; right: 0; top: 0; height: 14%;
  background: linear-gradient(#F7F8FA, #D4DAE2 88%, #BCC4CF);
  border: 1px solid #A9B2BF; z-index: 2;
}
.rail-cut { position: absolute; left: 0; right: 0; top: 30%; bottom: 16%; background: #273047; overflow: hidden; }
.rail-bar { position: absolute; left: 0; right: 0; top: 60%; height: 3px; background: #B9C1CD; }
.spring-box { position: absolute; right: 0; top: 0; bottom: 0; width: 7%; background: radial-gradient(circle at 45% 50%, #9aa3b0 0 18%, #171b24 20%); }
.spring-tape { position: absolute; right: 7%; top: 44%; height: 2px; width: calc(5.3% + var(--open) * 45.9%); background: repeating-linear-gradient(90deg, #E3E7EE 0 7px, #8C96A6 7px 9px); }
.rail-cut::before, .rail-cut::after { /* hanger carriages, moving with the door */
  content: ""; position: absolute; top: 12%; bottom: 8%; width: 5%;
  background: linear-gradient(#D7E5EE, #A9C0CF); border: 1px solid #6D8496;
  left: calc(52.1% - var(--open) * 45.9%);
}
.rail-cut::after { left: calc(82.7% - var(--open) * 45.9%); }
.door {
  position: absolute; left: 46%; width: 51%; top: 14%; bottom: 0; z-index: 3;
  transform: translateX(calc(var(--open) * -90%));
  background: linear-gradient(90deg, #E9ECEF, #F8F9FA 38%, #EDF0F2 70%, #E2E6EA);
  border: 1px solid #A5AEBB; border-bottom: 0;
  box-shadow: -8px 0 16px rgba(21, 32, 59, .16);
  touch-action: pan-y; cursor: grab;
}
.stage-box.is-drag .door { cursor: grabbing; }
.door-glass { position: absolute; left: 56%; top: 15%; width: 10%; height: 33%; background: linear-gradient(160deg, rgba(222, 236, 246, .95), rgba(150, 182, 208, .8)); border: 3px solid #A4ADBA; }
.door-mark { position: absolute; left: 9%; bottom: 5%; font: italic 700 .72rem/1 var(--f-num); letter-spacing: .06em; color: #9AA3B0; }
.door-handle { position: absolute; right: 4%; top: 42%; height: 24%; width: 44px; padding: 0; border: 0; background: none; cursor: grab; touch-action: none; }
.door-handle span { position: absolute; left: 50%; top: 0; bottom: 0; width: 11px; transform: translateX(-50%); border-radius: 6px; background: linear-gradient(90deg, #7F8997, #F4F6F8 45%, #97A1AE); box-shadow: 2px 3px 4px rgba(21, 32, 59, .28); }
.door-handle:focus-visible { outline-offset: 2px; }

.dim { position: absolute; color: var(--red-text); pointer-events: none; }
.dim em { font: 600 .82rem/1 var(--f-num); font-style: normal; letter-spacing: .03em; background: var(--paper); padding: 2px 3px; }
.dim-line { position: absolute; background: var(--red); }
.dim-h, .dim-dh { top: 0; bottom: 62px; width: 1px; }
.dim-h { right: 12px; }
.dim-dh { right: 36px; top: calc((100% - 62px) * .14); }
.dim-h .dim-line, .dim-dh .dim-line { left: 0; top: 0; bottom: 0; width: 1px; }
.dim-h::before, .dim-h::after, .dim-dh::before, .dim-dh::after { content: ""; position: absolute; left: -6px; width: 13px; height: 1px; background: var(--red); }
.dim-h::before, .dim-dh::before { top: 0; }
.dim-h::after, .dim-dh::after { bottom: 0; }
.dim-h em, .dim-dh em { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap; }
.dim-open { opacity: 0; transition: opacity .2s; }
.stage-box.is-open .dim-open { opacity: 1; }
.dim-open { bottom: 22px; height: 1px; right: calc(58px + (100% - 58px) * .03); width: calc((100% - 58px) * .459 * var(--open)); }
.dim-open .dim-line { left: 0; right: 0; top: 0; height: 1px; }
.dim-open::before, .dim-open::after { content: ""; position: absolute; top: -6px; width: 1px; height: 13px; background: var(--red); }
.dim-open::before { left: 0; }
.dim-open::after { right: 0; }
.dim-open em { position: absolute; right: 0; top: 8px; white-space: nowrap; }
.stage-hint { margin-top: .9rem; font-size: .92rem; color: var(--steel); line-height: 1.6; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 620px; }
}
@media (max-width: 480px) {
  .scene { right: 46px; bottom: 54px; }
  .dim-h, .dim-dh { bottom: 54px; }
  .dim-h { right: 6px; }
  .dim-dh { right: 26px; top: calc((100% - 54px) * .14); }
  .dim-open { bottom: 18px; right: calc(46px + (100% - 46px) * .03); width: calc((100% - 46px) * .459 * var(--open)); }
  .door-mark { display: none; }
}

/* ---------------------------------------------------------------- about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); margin-top: 1.5rem; }
.about-copy .lead { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 600; line-height: 1.5; margin-bottom: 1.25rem; letter-spacing: -.02em; }
.about-copy p { max-width: 38em; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 4.6rem 1fr; gap: .5rem; padding: 0 0 1.6rem 1.25rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .55rem; width: 12px; height: 12px; background: var(--cobalt); }
.timeline b { font: 700 1.7rem/1.1 var(--f-num); color: var(--cobalt); }
.timeline li:nth-child(2) b { font-family: var(--f-ko); font-size: 1.1rem; padding-top: .3rem; }
.timeline strong { display: block; font-size: 1.05rem; line-height: 1.45; }
.timeline p { margin: .3rem 0 0; font-size: .95rem; color: var(--steel); }
.facts { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.facts li { padding: .8rem 1rem .85rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--steel); line-height: 1.55; }
.facts b { display: block; font-size: 1.02rem; color: var(--cobalt); margin-bottom: .1rem; }

.process { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.process h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.process-note { color: var(--steel); max-width: 40em; margin: .6rem 0 2.25rem; }
.rail-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; }
.rail-steps::before { /* aluminum rail */
  content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 10px;
  background: linear-gradient(#F4F6F9, #BEC6D1); border: 1px solid #A3ACB9;
}
.rail-steps li { position: relative; padding-right: 1rem; }
.rail-steps .stop {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1rem;
  background: var(--cobalt); color: #fff; font: 700 1.3rem/1 var(--f-num);
}
.rail-steps strong { display: block; font-size: 1.15rem; }
.rail-steps small { display: block; color: var(--steel); font-size: .9rem; line-height: 1.5; margin-top: .2rem; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .rail-steps { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .custom { grid-template-columns: minmax(0, 1fr); }
  .rail-steps::before { left: 17px; right: auto; top: 0; bottom: 0; width: 10px; height: auto; background: linear-gradient(90deg, #F4F6F9, #BEC6D1); }
  .rail-steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 1rem; align-items: center; }
  .rail-steps .stop { grid-row: span 2; margin: 0; }
  .rail-steps small { margin: 0; }
}

/* ---------------------------------------------------------------- benefits */
.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); }
.benefit-list li { padding: 1.75rem 1.4rem 1.6rem; border-left: 1px solid var(--line); }
.benefit-list li:first-child { border-left: 0; }
.benefit-list svg { width: 46px; height: 46px; fill: none; stroke: var(--cobalt); stroke-width: 2; stroke-linecap: square; margin-bottom: 1.1rem; }
.benefit-list h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.benefit-list p { margin: 0; font-size: .95rem; color: var(--steel); line-height: 1.65; }
@media (max-width: 1000px) {
  .benefit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-list li { border-left: 0; border-top: 1px solid var(--line); }
  .benefit-list li:nth-child(even) { border-left: 1px solid var(--line); }
  .benefit-list li:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 560px) {
  .benefit-list { grid-template-columns: minmax(0, 1fr); }
  .benefit-list li, .benefit-list li:nth-child(even) { border-left: 0; }
  .benefit-list li:nth-child(2) { border-top: 1px solid var(--line); }
  .benefit-list li { display: grid; grid-template-columns: 46px 1fr; column-gap: 1rem; padding: 1.25rem; }
  .benefit-list svg { grid-row: span 2; margin: 0; }
}

/* ---------------------------------------------------------------- products */
.tabs { display: flex; gap: .25rem; border-bottom: 3px solid var(--cobalt); overflow-x: auto; scrollbar-width: thin; }
.tab {
  flex: none; padding: .75rem 1.9rem .7rem 1.1rem; border: 0; background: var(--paper);
  font-size: 1.05rem; font-weight: 600; color: var(--steel);
  clip-path: polygon(0 0, calc(100% - .9rem) 0, 100% 100%, 0 100%);
}
.tab:hover { color: var(--cobalt); background: var(--cobalt-soft); }
.tab[aria-selected="true"] { background: var(--cobalt); color: #fff; }
.tab:focus-visible { outline-offset: -4px; outline-color: var(--red); }
.panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.75rem, 4vw, 3.5rem); padding-top: 2.25rem; }
.g-main { display: block; width: 100%; aspect-ratio: 4 / 5; max-height: 660px; padding: 0; border: 0; background: #E4E9EF; overflow: hidden; cursor: zoom-in; }
.g-main img { width: 100%; height: 100%; object-fit: cover; }
.g-thumbs { list-style: none; margin: calc(.6rem - 6px) -6px -6px; padding: 6px; display: flex; gap: .45rem; overflow-x: auto; }
.g-thumb { display: block; width: 66px; height: 82px; padding: 0; border: 2px solid transparent; background: #E4E9EF; opacity: .75; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb[aria-pressed="true"] { border-color: var(--cobalt); opacity: 1; }
.g-thumb:hover { opacity: 1; }
.spec h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: .75rem; }
.spec > p { color: var(--steel); }
.spec h4 { font-size: 1rem; margin: 1.75rem 0 .7rem; }
.sec-block h4 { margin-top: 1.5rem; }
.section-svg { width: 100%; max-width: 440px; overflow: visible; }
.section-svg text { font: 600 11px var(--f-num); fill: var(--ink); }
.section-svg .dimtx { fill: var(--red-text); }
.section-svg .dimln { stroke: var(--red); stroke-width: 1; fill: none; }
.sec-note { font-size: .88rem; color: var(--steel); margin: .5rem 0 0; }
.rails { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.rails li { display: grid; gap: .3rem; padding: .7rem .8rem .6rem; background: #fff; border: 1px solid var(--line); }
.rails img { width: 100%; }
.rails span { font-size: .9rem; font-weight: 600; }
.spec-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
@media (max-width: 900px) {
  .panel { grid-template-columns: minmax(0, 1fr); }
  .g-main { aspect-ratio: 4 / 4.4; }
}

/* ---------------------------------------------------------------- actuators */
.actuators { background: var(--paper); }
.mech { margin: 0 0 clamp(3rem, 6vw, 4.5rem); }
.mech-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); padding: 0 clamp(1rem, 3vw, 2.5rem); }
.mech-pic { position: relative; min-width: 760px; margin: 4rem 0 4.2rem; }
.mech-pic img { width: 100%; }
.pin { position: absolute; left: var(--x); width: 0; border-left: 1px solid var(--red); }
.pin::after { content: ""; position: absolute; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fff; }
.pin[data-side="up"] { top: -2.4rem; height: calc(var(--y) + 2.4rem); }
.pin[data-side="up"]::after { bottom: -5px; }
.pin[data-side="down"] { top: var(--y); height: calc(100% - var(--y) + 2.4rem); }
.pin[data-side="down"]::after { top: -5px; }
.pin b {
  position: absolute; left: 0; white-space: nowrap;
  padding: .15rem .5rem; background: #fff; border: 1px solid var(--red);
  font-size: .86rem; font-weight: 600; line-height: 1.4;
  transform: translate(-50%, -100%);
}
.pin[data-side="up"] b { top: 0; }
.pin[data-side="down"] b { bottom: 0; transform: translate(-50%, 100%); }
.pin[data-align="start"] b { transform: translate(-12%, -100%); }
.pin[data-side="down"][data-align="end"] b { transform: translate(-88%, 100%); }
.mech figcaption { margin-top: .75rem; font-size: .9rem; color: var(--steel); }

.act-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.act { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--cobalt); padding: 1.25rem 1.25rem 1.1rem; }
.act-heavy { border-top-color: var(--ink); }
.act img { width: 100%; margin-bottom: 1rem; }
.act h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.act h3 small { font-size: .85rem; font-weight: 500; color: var(--steel); margin-left: .2rem; }
.act p { font-size: .95rem; margin: .9rem 0 0; }
.act p strong { display: block; font-size: .82rem; color: var(--steel); font-weight: 600; }
.act-use { color: var(--cobalt); font-weight: 600; }
.weight .w-label { display: block; font-size: .82rem; color: var(--steel); font-weight: 600; }
.weight .w-label b { font-size: 1.5rem; color: var(--ink); margin: 0 .1rem 0 .3rem; }
.w-track { position: relative; display: block; height: 10px; margin: .45rem 0 .3rem; background: #E3E7EE; }
.w-fill { position: absolute; top: 0; bottom: 0; left: calc(var(--from) / 160 * 100%); width: calc((var(--to) - var(--from)) / 160 * 100%); background: var(--cobalt); }
.act-heavy .w-fill { background: var(--ink); }
.w-scale { display: grid; grid-template-columns: 1fr 1fr 1fr; font: 500 .8rem/1 var(--f-num); color: var(--steel); }
.w-scale i { font-style: normal; }
.w-scale i:nth-child(2) { text-align: center; }
.w-scale i:nth-child(3) { text-align: right; }

.act-common { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.act-common h3 { font-size: 1.2rem; margin-bottom: .9rem; }
.spec-row { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.spec-row div { padding: .85rem 1rem .85rem 0; border-bottom: 1px solid var(--line); }
.spec-row dt { font-size: .82rem; color: var(--steel); font-weight: 600; }
.spec-row dd { margin: .15rem 0 0; font-weight: 600; line-height: 1.45; }
.spec-row .num { font-size: 1.3rem; }
.check-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
.check-list li { position: relative; padding: .75rem 0 .75rem 1.7rem; border-bottom: 1px solid var(--line); font-size: .98rem; }
.check-list li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: .8rem; height: .45rem; border-left: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: rotate(-45deg); }
@media (max-width: 900px) {
  .act-list { grid-template-columns: minmax(0, 1fr); }
  .spec-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- parts */
.parts-h { font-size: 1.3rem; margin: 3rem 0 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--ink); }
.section-lead + .parts-h { margin-top: 0; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .9rem; }
.tiles figure { margin: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; background: #fff; border: 1px solid var(--line); }
.tiles figure img { width: 100%; height: 190px; object-fit: contain; padding: 1.1rem; }
.tiles figcaption { padding: .6rem .8rem .75rem; font-size: .95rem; font-weight: 600; border-top: 1px solid var(--line); }
.tiles-wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.handles { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .45fr); gap: .9rem; }
.handle-set { background: #fff; border: 1px solid var(--line); padding: 1.25rem 1.25rem 1rem; }
.handle-set h4 { font-size: 1.05rem; margin-bottom: 1rem; }
.handle-set h4 small { display: block; font-size: .82rem; font-weight: 500; color: var(--steel); }
.lineup { list-style: none; margin: 0; padding: 0 0 0 .5rem; display: flex; align-items: flex-end; gap: 1.6rem; min-height: 290px; --hu: 220px; }
.lineup li { position: relative; display: flex; flex-direction: column; align-items: center; }
.lineup img { height: calc(var(--len) / 600 * var(--hu)); width: auto; max-width: none; }
.lineup b { margin-top: .6rem; font: 600 .95rem/1.2 var(--f-num); white-space: nowrap; }
.h-dim { position: absolute; left: -.7rem; bottom: 1.75rem; height: calc(var(--len) / 600 * var(--hu)); border-left: 1px solid var(--red); }
.h-dim::before, .h-dim::after { content: ""; position: absolute; left: -4px; width: 8px; height: 1px; background: var(--red); }
.h-dim::before { top: 0; }
.h-dim::after { bottom: 0; }
.h-dim em { position: absolute; left: -.35rem; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); font: 600 .78rem/1 var(--f-num); font-style: normal; color: var(--red-text); background: #fff; padding: 0 2px; }
.lineup-section { align-self: center; }
.lineup-section img { height: auto; width: 120px; }
.handle-flush img { max-height: 240px; width: auto; margin: 0 auto; }
.note { margin: 1rem 0 0; font-size: .92rem; color: var(--red-text); font-weight: 600; }
@media (max-width: 1000px) {
  .handles { grid-template-columns: 1fr 1fr; }
  .handle-set:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .handles { grid-template-columns: minmax(0, 1fr); }
  .lineup { --hu: 160px; gap: 1.1rem; overflow-x: auto; min-height: 220px; padding-left: 1.2rem; }
  .lineup b { font-size: .85rem; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles figure img { height: 150px; }
}

/* ---------------------------------------------------------------- install */
.seq { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.seq .zoom { display: block; width: 100%; padding: .75rem; background: #fff; border: 1px solid var(--line); cursor: zoom-in; }
.seq .zoom:hover { border-color: var(--cobalt); }
.seq .zoom img { width: 100%; aspect-ratio: 920 / 1353; object-fit: contain; }
.seq h3 { font-size: 1.1rem; margin-top: .7rem; }
@media (max-width: 900px) { .seq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- made to order */
.custom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem clamp(2rem, 4vw, 3.5rem); margin-top: clamp(3rem, 6vw, 4.5rem); }
.custom h3 { font-size: 1.2rem; padding-bottom: .6rem; border-bottom: 2px solid var(--ink); }
.custom-list { list-style: none; margin: 0; padding: 0; }
.custom-list li { padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--steel); line-height: 1.6; }
.custom-list b { display: block; font-size: 1rem; color: var(--ink); }

/* ---------------------------------------------------------------- cases (blog) */
.case-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.case a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: border-color .15s; }
.case a:hover { border-color: var(--cobalt); }
.case img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #E4E9EF; }
.case-body { flex: 1; display: flex; flex-direction: column; gap: .3rem; padding: .9rem 1rem 1rem; }
.case-body strong { font-size: 1.05rem; line-height: 1.4; }
.case-detail { flex: 1; font-size: .92rem; color: var(--steel); line-height: 1.55; }
.case-meta { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-top: .35rem; font-size: .84rem; }
.case-type { color: var(--cobalt); font-weight: 600; }
.case-meta time { font: 600 .95rem/1 var(--f-num); color: var(--steel); }
.cases-more { margin: 1.75rem 0 0; }

/* ---------------------------------------------------------------- faq */
.faq-list { max-width: 880px; display: grid; gap: .5rem; }
.qa { background: #fff; border: 1px solid var(--line); }
.qa[open] { border-color: var(--cobalt); }
.qa summary { position: relative; padding: 1rem 3.2rem 1rem 1.15rem; font-weight: 600; font-size: 1.02rem; line-height: 1.5; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after { content: ""; position: absolute; right: 1.2rem; top: 50%; width: 14px; height: 2px; background: var(--cobalt); transition: transform .2s; }
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(0deg); }
.qa summary:focus-visible { outline-offset: -3px; }
.qa p { margin: 0; padding: 0 1.15rem 1.15rem; color: var(--steel); max-width: 44em; }

/* ---------------------------------------------------------------- records */
.records { background: var(--paper); }
.rec-head { font-size: clamp(1.45rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.4; letter-spacing: -.03em; margin: .5rem 0 .75rem; max-width: 24em; }
.rec-head strong { color: var(--cobalt); }
.rec-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; padding: 1.25rem; background: #fff; border: 1px solid var(--line); margin-bottom: 2rem; }
.rec-search { display: flex; align-items: center; gap: .75rem; }
.rec-search label { font-weight: 600; flex: none; }
.rec-search input { flex: 1; min-width: 0; width: 100%; min-height: 46px; padding: .5rem .8rem; border: 2px solid var(--line); border-radius: 2px; background: #fff; }
.rec-search input:focus { border-color: var(--cobalt); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { min-height: 38px; padding: .3rem .85rem; border: 1px solid var(--line); background: #fff; font-size: .92rem; font-weight: 500; border-radius: 2px; }
.chip small { font: 600 .85rem/1 var(--f-num); color: var(--steel); margin-left: .15rem; }
.chip:hover { border-color: var(--cobalt); }
.chip[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.chip[aria-pressed="true"] small { color: #C9D4F0; }
.rec-status { margin: 0; font-size: .9rem; color: var(--steel); }
.rec-group { padding: 1.25rem 0 1.9rem; border-top: 2px solid var(--ink); }
.rec-group h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .75rem; margin-bottom: 1rem; font-size: 1.25rem; }
.rg-type { font-size: .92rem; font-weight: 600; color: var(--steel); }
.rec-group[data-type="partner"] .rg-type { color: var(--red-text); }
.rg-count { margin-left: auto; font-size: .95rem; color: var(--steel); }
.rg-count b { font: 700 1.5rem/1 var(--f-num); color: var(--cobalt); margin-right: .1rem; }
.rec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.rec-list li { padding: .28rem .65rem; background: #fff; border: 1px solid var(--line); font-size: .95rem; line-height: 1.5; }
.rec-list mark { background: #FFE38A; color: inherit; padding: 0 1px; }
.rec-empty { padding: 2rem 0; font-size: 1.05rem; }
@media (max-width: 760px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; padding: 6px; margin: -6px; }
  .chip { flex: none; }
}

/* ---------------------------------------------------------------- contact */
.contact { background: var(--cobalt); color: #fff; }
.contact :focus-visible { outline-color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.35; letter-spacing: -.03em; margin-bottom: 2rem; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .35); }
.contact-list li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.contact-list span { color: rgba(255, 255, 255, .72); font-size: .92rem; }
.contact-list a, .contact-list b { font-weight: 600; text-decoration: none; font-size: 1.08rem; }
.contact-list a[href^="tel"] { font: 600 1.45rem/1.2 var(--f-num); letter-spacing: .02em; }
.contact-list a:hover { text-decoration: underline; }
.contact-note { margin: 1rem 0 0; font-size: .93rem; color: rgba(255, 255, 255, .82); max-width: 36em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.quote { margin-top: 2.25rem; padding: clamp(1.25rem, 3vw, 2rem); background: #fff; color: var(--ink); display: grid; gap: 1rem; }
.quote :focus-visible { outline-color: var(--cobalt); }
.quote h3 { font-size: 1.25rem; }
.quote-help { margin: -.5rem 0 0; font-size: .9rem; color: var(--steel); }
.quote label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 600; }
.quote input, .quote select, .quote textarea { width: 100%; min-height: 46px; padding: .55rem .75rem; border: 1px solid #B8C1CE; border-radius: 2px; background: #fff; font-weight: 400; font-size: 1rem; }
.quote textarea { resize: vertical; }
.quote input:focus, .quote select:focus, .quote textarea:focus { border-color: var(--cobalt); outline: 2px solid var(--cobalt); outline-offset: 0; }
.quote [aria-invalid="true"] { border-color: var(--red); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.f-error { margin: 0; color: var(--red-text); font-weight: 600; font-size: .95rem; }
.f-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.map-frame { aspect-ratio: 1 / .95; background: #DDE3EC; border: 4px solid #fff; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .f-row { grid-template-columns: minmax(0, 1fr); }
  .contact-list li { grid-template-columns: 4.2rem 1fr; }
}

/* ---------------------------------------------------------------- footer */
.foot { background: var(--ink); color: rgba(255, 255, 255, .78); padding-block: 2.75rem 3rem; font-size: .9rem; }
.foot-brand { color: #fff; font-weight: 600; margin-bottom: 1rem; }
.foot-brand .brand-en { color: #fff; font-size: 1.35rem; margin-right: .35rem; }
.foot-info { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; margin: 0 0 1.25rem; }
.foot-info div { display: flex; gap: .45rem; }
.foot-info dt { color: rgba(255, 255, 255, .5); }
.foot-info dd { margin: 0; }
.foot-info a { color: inherit; }
.foot-copy { margin: 0; color: rgba(255, 255, 255, .5); font-size: .85rem; }

/* ---------------------------------------------------------------- mobile call bar */
.mobile-cta { display: none; }
@media (max-width: 900px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; box-shadow: 0 -2px 10px rgba(21, 32, 59, .15); }
  .mobile-cta a { display: grid; place-items: center; min-height: 54px; font-weight: 700; text-decoration: none; background: #fff; color: var(--cobalt); }
  .mobile-cta a + a { background: var(--cobalt); color: #fff; }
  body { padding-bottom: 54px; }
}

/* ---------------------------------------------------------------- lightbox */
.lightbox { padding: 0; border: 0; max-width: min(1100px, 94vw); max-height: 94vh; background: #fff; overflow: auto; }
.lightbox::backdrop { background: rgba(12, 20, 42, .82); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; }
.lightbox p { margin: 0; padding: .7rem 1rem .9rem; font-weight: 600; font-size: .95rem; }
.lightbox form { position: sticky; top: 0; height: 0; z-index: 2; }
.lb-close { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border: 0; background: var(--ink); color: #fff; font-size: 1.6rem; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
