.service-detail {
  --detail-line: #d6deea;
  --detail-ink: #232a39;
  --detail-blue: #2469d4;
  --detail-signal: #3a83f7;
  --detail-copy: #414f64;
  --detail-gutter: max(clamp(22px, 5.5vw, 88px), calc((100% - 1280px) / 2));
  background: #fff;
  color: var(--detail-ink);
  font-family: Pretendard, 'Malgun Gothic', sans-serif;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5.5vw, 80px);
  align-items: center;
  padding: clamp(64px, 7vw, 106px) var(--detail-gutter);
}

.service-detail [id], .purchase { scroll-margin-top: var(--nav-height); }

.detail-kicker {
  margin: 0 0 16px;
  color: var(--detail-blue);
  font-size: 14px;
  font-weight: 550;
}

.detail-copy h2 {
  margin: 0 0 clamp(20px, 2.2vw, 32px);
  font-size: clamp(32px, 3.55vw, 52px);
  font-weight: 350;
  line-height: 1.23;
  letter-spacing: -.042em;
  word-break: keep-all;
}
.detail-copy h2 strong { font-weight: 650; color: var(--detail-blue); }

.detail-copy > p:not(.detail-kicker) {
  max-width: 39ch;
  margin: 0;
  color: var(--detail-copy);
  font-size: clamp(16px, 1.28vw, 18px);
  line-height: 1.62;
  word-break: keep-all;
}

.detail-copy > p + p:not(.detail-kicker) { margin-top: 10px; }
.detail-row figure { margin: 0; min-width: 0; }
.detail-row figure img { display: block; width: 100%; height: auto; }

.case-comparison {
  padding: clamp(48px, 7vw, 98px) var(--detail-gutter) clamp(64px, 8vw, 110px);
}
.case-comparison h2 { margin-bottom: clamp(28px, 3.5vw, 52px); }
@media (min-width: 850px) and (max-height: 780px) {
  .case-comparison { padding-top: 34px; }
  .case-comparison h2 { margin-bottom: 24px; }
}
.case-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(12px, 1.8vw, 28px);
}
.case-pair figure { margin: 0; }
.case-pair figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--detail-copy);
}
.case-pair figcaption b { color: var(--detail-blue); font-weight: 650; }
@media (max-width: 375px) {
  body > header { padding-inline: 12px; }
  body > header .brand img { width: 62px; }
  body > header .room-nav { gap: 7px; }
}
.case-pair img { display: block; width: 100%; height: auto; }
.install-frame { position: relative; isolation: isolate; background: #e7e8e6; }
.case-trace { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.case-trace path { vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.case-trace-before { --outline: white; --tint: rgb(255 255 255 / .07); }
.case-trace-after { --outline: #83bcff; --tint: rgb(130 192 255 / .12); }
.case-trace .trace-edge { fill: var(--tint); stroke: var(--outline); stroke-width: 2px; filter: drop-shadow(0 1px 2px #112139b0); }
.case-trace .trace-lead { fill: none; stroke: var(--outline); stroke-width: 1.5px; filter: drop-shadow(0 1px 1px #112139b0); }
.case-trace circle { fill: #25344c; stroke: var(--outline); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.case-trace-after circle { fill: #1559b6; }
.box-label {
  position: absolute; top: 3%; right: 3%;
  padding: 9px 12px;
  background: #243144; color: #fff;
  font-size: clamp(13px, 1.1vw, 16px); font-weight: 600;
}
.case-fit {
  margin: 16px 0 0;
  color: var(--detail-copy); font-size: 15px; line-height: 1.55; word-break: keep-all;
}
.case-fit b { color: var(--detail-ink); font-weight: 600; }
@media (max-width: 700px) {
  .case-pair { grid-template-columns: 1fr; gap: 30px; }
}

.install-original {
  display: inline-block;
  color: var(--detail-blue);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.photo-spec {
  position: absolute;
  z-index: 1;
  top: 3%;
  right: 3%;
  width: max-content;
  max-width: 94%;
  background: #fff;
  color: var(--detail-ink);
  box-shadow: 0 1px 10px #0002;
  font-size: 13px;
}

.photo-spec summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  cursor: pointer;
  line-height: 1.3;
  list-style: none;
}

.photo-spec summary::-webkit-details-marker { display: none; }
.photo-spec-label { color: var(--detail-copy); font-size: 12px; line-height: 1.5; }
.photo-spec-label strong { display: block; font-size: 14px; }
.photo-spec-label strong small { margin-left: 4px; color: var(--detail-copy); font-size: 11px; font-weight: 450; }
.photo-spec summary .plan-drawing { flex-basis: 21px; }
.photo-spec strong { color: var(--detail-blue); font-weight: 650; }
.spec-symbol::after { content: '+'; font-size: 16px; }
.photo-spec[open] .spec-symbol::after { content: '−'; }

.spec-inside {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-inline: 12px;
  padding-block: 10px 12px;
  border-top: 1px solid var(--detail-line);
}

.spec-inside b, .spec-inside small { display: block; }
.spec-inside small { margin-top: 3px; color: var(--detail-copy); font-size: 11px; line-height: 1.45; }
.plan-drawing { flex: 0 0 29px; position: relative; aspect-ratio: 297 / 420; border: 1px dashed #677892; }
.plan-drawing::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 91.92%;
  height: 93.33%;
  background: #c8defb;
  border: 1px solid var(--detail-blue);
  content: '';
}

.use-row { grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); }
.use-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: stretch;
  background: white;
  color: var(--detail-ink);
}

.use-stage video, .fill-photo video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #fff;
  object-fit: contain;
}

.use-stage video { height: clamp(315px, 31vw, 445px); }
.remaining {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(12px, 2.2vw, 30px);
  align-self:center;
  border-left: 1px solid var(--detail-line);
}
.remaining small { font-size: 13px; color: var(--detail-copy); }
.remaining strong { color: var(--detail-blue); margin-top: 7px; font-weight: 650; font-size: clamp(54px, 5.7vw, 84px); font-variant-numeric: tabular-nums; line-height: 1.08; letter-spacing: -.045em; }
.remaining em { margin-left: 2px; font-size: .43em; font-style: normal; }
.remaining p { margin: 12px 0 0; color:var(--detail-copy); font-size: 14px; line-height: 1.5; word-break: keep-all; }
.remaining meter { width: 100%; height: 9px; margin-top: 8px; accent-color: var(--detail-signal); }
.remaining meter::-webkit-meter-bar { background: #dde5f1; border: 0; }
.remaining meter::-webkit-meter-optimum-value { background: var(--detail-signal); }

.clip-choice { display: flex; gap: 20px; padding-top: 5px; border-bottom: 1px solid var(--detail-line); }
.clip-choice button {
  min-height: 44px;
  padding: 7px 0;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--detail-copy);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}
.clip-choice button[aria-pressed=true] { color: var(--detail-blue); font-weight: 620; border-bottom-color: currentColor; }

.stock-sheet { padding:clamp(20px, 2.7vw, 42px) 0; border-block:1px solid #677387; }
.stock-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: clamp(20px, 2.3vw, 31px); font-weight: 550; letter-spacing: -.04em; }
.stock-title small { color: #c3cfe2; font-size: 12px; font-weight: 450; white-space: nowrap; }
.stock-sheet table { width: 100%; margin-top: 18px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.stock-sheet th, .stock-sheet td { padding: 14px 0; border-bottom: 1px solid #465165; text-align: right; font-weight: 460; }
.stock-sheet th:first-child { text-align: left; }
.stock-sheet thead th { color: #c3cfe2; font-size: 13px; }
.stock-sheet td:nth-child(2) { width: 28%; padding-inline: 8px; font-weight: 620; }
.stock-sheet meter { display: block; width: 100%; height: 9px; margin: 6px 0 0 auto; accent-color: #b3bfce; }
.stock-sheet meter::-webkit-meter-bar { background: #455268; border: 0; }
.stock-sheet meter::-webkit-meter-optimum-value { background: #b3bfce; }
.stock-sheet tbody tr:last-child td:nth-child(2) { color:#a8cbff; }
.stock-sheet tbody tr:last-child meter { accent-color:#77adff; }
.stock-sheet tbody tr:last-child meter::-webkit-meter-optimum-value { background:#77adff; }
.stock-note { margin: 17px 0 0; color: #c3cfe2; font-size: 14px; line-height: 1.6; }

#fill { grid-template-columns:minmax(0, 1.2fr) minmax(0, .8fr); }
.fill-photo video { aspect-ratio:1152/590; }
.fill-photo figcaption { margin-top: 8px; color: var(--detail-copy); font-size: 13px; }

#after {
  position:relative;
  isolation:isolate;
  min-height:0;
  padding:clamp(70px, 8vw, 124px) max(clamp(22px,5.5vw,88px),calc((100% - 1280px) / 2));
  color:#fff;
  background:radial-gradient(ellipse 62% 140% at 88% 120%,rgba(137,164,250,.40),rgba(100,135,242,.15) 48%,transparent 82%),
    linear-gradient(116deg,#2c5de3,#2856df 53%,#254bc8);
}
#after::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.55;
  mix-blend-mode:soft-light;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23888' filter='url(%23g)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
#after .purchase-wrap { gap:clamp(38px,7vw,116px); align-items:start; }
#after .purchase-intro > p { max-width:35ch; }
#after .purchase-intro .buy-link { align-items:center; gap:14px 24px; margin-top:clamp(22px,2.2vw,34px); }
#after .buyer-question { color:#eef4ff; font-weight:500; }
#after h2 { color:#fff; font-size:clamp(40px,5.25vw,74px); font-weight:300; line-height:1.17; letter-spacing:-.045em; }
#after h2 strong { color:inherit; font-weight:760; }
#after p { color:#f4f7ff; }
#after details, #after details:last-of-type { border-color:#ffffff70; }
#after summary { color:white; font-weight:550; }
#after .purchase-options details a { color:white; font-weight:550; text-decoration:underline; text-underline-offset:4px; }
#after .consult { background:#fff; color:#164eb6; font-weight:650; }
#after .phone { color:white; text-decoration:underline; text-underline-offset:4px; }
#after :is(a,summary):focus-visible { outline:2px solid white; outline-offset:4px; }

@media (max-width: 800px) {
  .detail-row, .install-row, .use-row, #paper {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-block: 54px;
  }
  .field-sequence #installation { padding-bottom: 22px; }
  .field-sequence #installed { padding-top: 12px; }
  #fill .detail-copy { grid-row: 1; }
  .detail-copy h2 { font-size: clamp(32px, 7.8vw, 49px); }
  .install-row .detail-copy h2 { font-size:clamp(31px,6.8vw,44px); margin-bottom: 10px; }
  .use-stage video { height:clamp(265px,59vw,355px); }
  #after .purchase-wrap { grid-template-columns:minmax(0,1fr); }
}

@media (max-width: 455px) {
  .use-stage { grid-template-columns: minmax(0, 1fr); }
  .remaining {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 14px;
    padding: 13px 0;
    border-top: 1px solid var(--detail-line);
    border-left: 0;
  }
  .remaining strong { grid-column: 2; grid-row: 1 / span 2; font-size: 40px; }
  .remaining meter { grid-column: 1; grid-row: 2; margin: 3px 0 0; }
  .remaining p { grid-column: 1 / -1; margin-top: 8px; }
  .photo-spec summary { padding-inline: 8px; }
}

.product-consult-sticker {
  visibility: hidden;
  transform: translateY(var(--consult-shift, 100vh));
}
.product-consult-sticker.is-entering { visibility: visible; }
.motion-still .product-consult-sticker { transform: none; }
body.menu-open .product-consult-sticker { visibility: hidden; }

.oa-case-pair img{width:100%;height:auto;display:block}
@media(max-width:680px){.flow-pair.oa-case-pair{grid-template-columns:minmax(0,1fr);gap:24px}}
