:root {
  color-scheme: light;
  --navy: #102f46;
  --ink: #17282e;
  --muted: #50646a;
  --line: #c9d7d7;
  --soft: #eef4f2;
  --aqua: #abdddd;
  --blue: #12556d;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: #fafbf9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-width: 280px; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid #167b96;
  outline-offset: 4px;
}
button:disabled { cursor: default; opacity: .58; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1376px, 100%); padding-inline: clamp(20px, 5vw, 82px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; inset: 8px auto auto 12px; z-index: 20; padding: 12px; color: white; background: var(--navy); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; z-index: 5; top: 0; color: var(--navy); background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 36px); min-height: 71px; }
.logo-link { display: flex; align-items: center; flex: 0 0 auto; }
.logo-link img { width: 136px; height: 64px; object-fit: contain; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(12px, 2.8vw, 45px); }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.main-nav a:hover, .main-nav .nav-catalog { color: var(--navy); }
#lang-toggle { flex: 0 0 auto; background: transparent; border: 1px solid var(--line); border-radius: 3px; min-height: 38px; min-width: 49px; padding: 4px 9px; font: 600 .85rem var(--sans); }
#lang-toggle:hover, #close-product:hover { background: var(--soft); }

.cover { padding-top: clamp(22px, 4vw, 58px); }
.cover-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); border: 1px solid var(--line); background: #f4f7f3; }
.cover-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(30px, 4vw, 66px); }
.edition, .section-kicker, .figure-number, .dialog-kicker {
  font: 600 .68rem/1.5 var(--mono);
  letter-spacing: .12em;
}
.edition { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--blue); }
.tiny-line { width: 24px; height: 2px; background: var(--blue); }
.edition-divider { color: #839398; }
.cover h1 { font-weight: 650; color: var(--navy); font-size: clamp(2.5rem, 4.45vw, 4.7rem); line-height: 1.12; letter-spacing: -.05em; margin: 24px 0 16px; text-wrap: balance; }
.intro { color: var(--muted); font-size: 1rem; line-height: 1.75; max-width: 30em; }
.primary-link, .outline-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 45px; padding: 10px 20px; border-radius: 3px;
  font-size: .87rem; line-height: 1.35; font-weight: 650;
}
.primary-link { margin-top: 24px; background: var(--navy); color: white; border: 1px solid var(--navy); }
.primary-link:hover { background: #1c5366; }
.primary-link span:last-child { font-size: 1.15em; }
.cover-photo { min-width: 0; margin: 0; display: grid; grid-template-rows: 1fr auto; border-left: 1px solid var(--line); background: #fff; }
.photo-stage {
  position: relative; display: grid; place-items: center; min-height: clamp(280px, 31vw, 440px);
  background: #f2f5f4; cursor: zoom-in;
}
.photo-stage:focus-visible { z-index: 1; outline-offset: -4px; }
.photo-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.photo-enlarge {
  position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 32px; height: 32px;
  background: #fffc; border: 1px solid #aebfc1; border-radius: 3px; color: var(--navy); pointer-events: none;
}
.photo-stage:hover .photo-enlarge { background: #fff; border-color: var(--blue); }
.photo-enlarge svg { width: 16px; height: 16px; }
.photo-caption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.figure-number { font-size: .62rem; font-weight: 500; }

.catalog { padding-top: clamp(48px, 5.5vw, 86px); padding-bottom: clamp(48px, 5.5vw, 86px); }
.section-kicker { display: inline-flex; color: var(--blue); align-items: center; gap: 10px; }
.section-number { display: inline-grid; min-width: 25px; min-height: 22px; place-items: center; font-size: .66rem; letter-spacing: .03em; border: 1px solid #9cbabf; }
.catalog-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 18px 32px; margin-top: 13px; }
.catalog h2, .materials-band h2 { color: var(--navy); font-size: clamp(1.6rem, 2.65vw, 2.8rem); font-weight: 650; line-height: 1.15; letter-spacing: -.035em; }
.section-description { font-size: .95rem; line-height: 1.65; color: var(--muted); margin-top: 12px; }
.search-field { display: flex; align-items: center; gap: 13px; width: min(100%, 330px); min-height: 45px; padding-inline: 14px; color: var(--blue); background: #fff; border: 1px solid #aebfc1; border-radius: 3px; }
.search-field svg { width: 18px; height: 18px; flex: none; }
.search-field:focus-within { outline: 2px solid #167b96; outline-offset: 2px; }
#catalog-search { min-width: 0; width: 100%; height: 43px; background: transparent; border: 0; outline: 0; color: var(--navy); }
#catalog-search::placeholder { color: #697b80; }
#catalog-count { margin-top: 27px; min-height: 1.5em; color: var(--muted); font: .77rem/1.55 var(--sans); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.catalog-grid > p { grid-column: 1 / -1; padding: 30px 0; color: var(--muted); line-height: 1.6; }
.product-card {
  min-width: 0; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  min-height: 175px; padding: 24px 42px 22px 22px; text-align: left; background: #fff;
  border: 1px solid var(--line); border-top: 2px solid #94b9bf; border-radius: 3px; overflow-wrap: anywhere;
  transition: border-color .15s ease, background-color .15s ease;
}
.product-card:hover { border-color: #6c9ba6; background: #f6fbf9; }
.card-code { display: block; color: var(--blue); font: 600 .69rem/1.5 var(--mono); letter-spacing: .065em; }
.card-name { display: block; color: var(--navy); font-size: clamp(1.02rem, 1.5vw, 1.32rem); font-weight: 650; letter-spacing: -.025em; line-height: 1.3; }
.card-spec { display: block; color: var(--muted); font-size: .86rem; line-height: 1.5; margin-top: auto; }
.card-price { display: block; max-width: 100%; color: var(--navy); font-size: .92rem; line-height: 1.5; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.card-link { color: var(--blue); font-size: .76rem; font-weight: 650; }
.outline-button { background: transparent; color: var(--navy); border: 1px solid #90aaa9; }
.outline-button:hover { border-color: var(--navy); background: #e7f1ef; }
#show-more { display: flex; margin: 26px auto 0; }

.materials-band { background: #eaf1ed; border-block: 1px solid var(--line); }
.materials-row { display: grid; grid-template-columns: minmax(100px, .65fr) minmax(250px, 1.5fr) auto; align-items: center; gap: 28px; padding-block: clamp(28px, 3.8vw, 56px); }
.materials-band .section-description { margin-top: 8px; }
.materials-band h2 { font-size: clamp(1.4rem, 2.25vw, 2.1rem); }
.site-footer { background: #fff; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 30px; min-height: 82px; }
.footer-name { color: var(--navy); font-size: 1.2rem; font-weight: 650; letter-spacing: -.04em; }
.footer-row a { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; color: var(--muted); font-size: .85rem; }

#product-dialog { width: min(calc(100% - 32px), 620px); max-height: min(88vh, 800px); max-height: min(88dvh, 800px); padding: 0; border: 1px solid #b5c8c7; border-radius: 7px; color: var(--ink); background: #fbfcf9; box-shadow: 0 16px 80px #071e3161; }
#product-dialog::backdrop { background: #0c243499; }
#product-dialog { width: min(calc(100% - 24px), 1040px); }
.detail-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(18px, 3vw, 42px); align-items: start; }
.detail-information { min-width: 0; }
.ruo-note { font-size: .77rem; color: var(--blue); font-weight: 650; letter-spacing: .045em; margin: 0 0 15px; }
.detail-information .spec-option { display: grid; text-align: left; justify-items: start; align-content: center; gap: 3px; }
.spec-option small { font-size: .71rem; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .detail-hero-grid { grid-template-columns: minmax(0, 1fr); }
}
.dialog-top { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 4px clamp(16px, 3vw, 30px); border-bottom: 1px solid var(--line); background: #fbfcf9; }
.dialog-kicker { color: var(--blue); }
#close-product { display: flex; gap: 8px; align-items: center; min-height: 44px; border: 0; padding: 6px 4px; background: none; color: var(--blue); font-size: .85rem; }
#close-product span:last-child { font-size: 1.4rem; }
#product-body { padding: clamp(20px, 3.4vw, 36px); overflow-wrap: anywhere; }
.detail-name { margin-bottom: 16px; color: var(--navy); font-size: clamp(1.45rem, 3.1vw, 2.3rem); line-height: 1.14; letter-spacing: -.04em; }
#product-body p { line-height: 1.6; }
#product-body h3 { font-size: .99rem; color: var(--navy); }
.spec-options { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 14px 18px; }
.spec-option { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; padding: 8px 12px; font-size: .85rem; line-height: 1.4; background: #fff; border: 1px solid #9bb2b4; border-radius: 3px; }
.spec-option:hover { background: var(--soft); }
.spec-option[aria-pressed="true"], .spec-option[aria-selected="true"], .spec-option.active, .spec-option.selected { color: #fff; background: var(--navy); border-color: var(--navy); }
.detail-summary { padding: 15px 18px; margin-block: 14px; color: var(--navy); background: var(--soft); border-left: 3px solid #87b7ba; font-size: .95rem; }
#product-body textarea { width: 100%; min-height: 112px; padding: 12px; border: 1px solid var(--line); border-radius: 3px; background: #fff; line-height: 1.55; resize: vertical; }
#product-body input[type="number"] { max-width: 100%; min-height: 44px; border: 1px solid #9bb2b4; background: white; border-radius: 3px; padding: 8px; }
#product-body label { line-height: 1.6; }
#product-body dl { margin: 18px 0; }
#product-body dt { color: var(--muted); }
#product-body dd { margin: 2px 0 14px; color: var(--navy); }
.detail-eyebrow, .detail-label { color: var(--muted); font-size: .8rem; font-weight: 600; }
.detail-eyebrow { text-transform: uppercase; letter-spacing: .09em; margin-bottom: 6px; }
.detail-summary > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: baseline; gap: 14px; padding: 9px 0; }
.detail-summary > div + div { border-top: 1px solid var(--line); }
#product-body .detail-summary dd { margin: 0; font-weight: 600; }
.draft-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.draft-button { min-height: 44px; padding: 10px 14px; border: 1px solid #9bb2b4; border-radius: 3px; background: #fff; color: var(--navy); font-size: .85rem; font-weight: 600; }
.draft-button:hover { background: var(--soft); }
.inquiry-draft:not(:empty) { margin-top: 12px; padding: 13px 15px; border: 1px solid var(--line); font-size: .87rem; }
.inquiry-draft strong { display: block; margin-bottom: 4px; color: var(--navy); }
.draft-open { display: inline-flex; align-items: center; min-height: 42px; margin-top: 8px; color: var(--blue); text-decoration: underline; text-underline-offset: .2em; font-weight: 650; }

@media (max-width: 880px) {
  .cover-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .materials-row { grid-template-columns: 1fr auto; gap: 16px; }
  .materials-row .section-kicker { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  html { scroll-padding-top: 76px; }
  .wrap { padding-inline: 18px; }
  .header-row { min-height: 62px; gap: 14px; }
  .logo-link img { width: 99px; height: 50px; }
  .main-nav { gap: 13px; }
  .main-nav a { font-size: .78rem; }
  #lang-toggle { min-width: 39px; min-height: 38px; font-size: .75rem; }
  .cover { padding-top: 16px; }
  .cover-layout { grid-template-columns: 1fr; }
  .cover-text { padding: 25px 22px; }
  .cover h1 { margin: 15px 0 12px; }
  .cover-photo { border-left: none; border-top: 1px solid var(--line); }
  .photo-stage { min-height: 0; aspect-ratio: 3 / 2; }
  .photo-caption { padding: 7px 12px; }
  .primary-link { margin-top: 17px; }
  .catalog { padding-block: 36px; }
  .catalog-head { display: grid; gap: 15px; }
  .search-field { width: 100%; }
  #catalog-count { margin-top: 16px; }
  .catalog-grid { gap: 8px; }
  .product-card { min-height: 150px; padding: 15px 14px; }
  .card-name { font-size: 1rem; }
  .card-spec { padding-right: 10px; font-size: .77rem; }
  .materials-row { display: flex; align-items: flex-start; flex-direction: column; gap: 15px; }
}
@media (max-width: 400px) {
  .header-row { gap: 8px; }
  .logo-link img { width: 82px; }
  .main-nav { gap: 8px; }
  .main-nav a { font-size: .74rem; }
  .catalog-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 110px; gap: 7px; }
}
@media (max-width: 360px) {
  .main-nav a:not(.nav-catalog) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-card { transition: none; }
}
