/* Quiet Precision — Hailei JA/KO B2B draft
   Spirit: Stripe / Linear / Apple product / quiet luxury B2B
   Banned: full-bleed blue heroes, Crystal Industrial dark-cyan, gold-on-navy */
:root {
  --bg: #F7F5F1;
  --elev: #FFFFFF;
  --ink: #0C0D0F;
  --muted: #5C6570;
  --hairline: #E6E2DB;
  --accent: #E85D04;
  --accent-ink: #FFFFFF;
  --link: #1B4F9C;
  --ok: #2F5D50;
  --radius: 8px;
  --max: 1140px;
  --font: "DM Sans", Inter, "Noto Sans JP", "Noto Sans KR", "Hiragino Sans", "Malgun Gothic", system-ui, sans-serif;
  --shadow-soft: 0 1px 2px rgba(12, 13, 15, 0.04), 0 8px 24px rgba(12, 13, 15, 0.04);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #163f7d; }
a:focus-visible, .btn:focus-visible, .card:focus-visible, .nav a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}
img { max-width: 100%; height: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* —— Header —— */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--hairline);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 0; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 600; color: var(--ink); text-decoration: none; font-size: 1rem;
  letter-spacing: -0.01em; min-width: 0;
}
.brand:hover { color: var(--ink); }
.hl-logo {
  width: 72px; height: 72px;
  display: block;
  flex-shrink: 0;
  background: #fff;
  border-radius: 4px;
  object-fit: contain;
  border: 1px solid var(--hairline);
}
.hl-logo--footer {
  width: 56px; height: 56px;
}
.brand .market-tag {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
  max-width: 11em;
}
.f-brand {
  display: flex; align-items: flex-start; gap: 14px;
}
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink); font-size: 0.92rem; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius); min-height: 44px;
  display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--ink); background: rgba(12, 13, 15, 0.04); }
.lang { font-size: 0.85rem; color: var(--muted); }
.lang a {
  margin-left: 6px; color: var(--ink); text-decoration: none; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius); border: 1px solid var(--hairline);
  min-height: 44px; display: inline-flex; align-items: center;
  background: var(--elev);
}
.lang a:hover { border-color: #cfc9bf; color: var(--ink); }

/* —— Buttons —— */
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; min-height: 44px; line-height: 1.4;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn.p {
  background: var(--accent); color: var(--accent-ink);
  border-color: var(--accent);
}
.btn.p:hover { background: #d45203; border-color: #d45203; color: #fff; }
.btn.g, .btn.outline {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn.g:hover, .btn.outline:hover {
  background: var(--ink); color: #fff;
}

/* —— Hero (Quiet Precision — stone/white, NO blue gradient) —— */
.hero {
  padding: 64px 0 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.kicker {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 650;
  color: var(--ink);
  max-width: 11em;
}
.hero .lead {
  margin: 0 0 26px;
  max-width: 36em;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Fact card (replaces crystal-panel) */
.fact-card, .crystal-panel {
  background: var(--elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.fact-card .panel-title, .crystal-panel .panel-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 600;
}

/* Soft CSS-only salt/crystal silhouette frame (decorative, optional) */
.fact-visual {
  margin-top: 18px;
  height: 72px;
  border-radius: 6px;
  border: 1px dashed #d9d3c9;
  background:
    radial-gradient(circle at 30% 40%, rgba(232, 93, 4, 0.08), transparent 45%),
    linear-gradient(135deg, #faf8f4, #f0ebe3);
  position: relative;
  overflow: hidden;
}
.fact-visual::before,
.fact-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(12, 13, 15, 0.08);
  background: rgba(255, 255, 255, 0.55);
}
.fact-visual::before {
  width: 38px; height: 38px;
  left: 18%; top: 18%;
  transform: rotate(18deg);
  border-radius: 4px;
}
.fact-visual::after {
  width: 28px; height: 28px;
  right: 22%; bottom: 16%;
  transform: rotate(-12deg);
  border-radius: 3px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}
.facts > div, .fact-chip {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.facts > div:last-child, .fact-chip:last-child { border-bottom: none; padding-bottom: 0; }
.facts > div:first-child, .fact-chip:first-child { padding-top: 0; }
.facts b, .fact-chip b {
  display: block; font-size: 11px; color: var(--muted);
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.facts span, .fact-chip span { font-size: 0.98rem; color: var(--ink); font-weight: 500; }

/* page-level facts (product pages) */
.page-hero .facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.page-hero .facts > div {
  background: var(--elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 12px 14px;
}

/* —— Page hero —— */
.page-hero {
  padding: 44px 0 32px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
}
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-weight: 650;
  color: var(--ink);
}
.page-hero .lead { margin: 0; color: var(--muted); max-width: 48em; font-size: 1.02rem; }
.crumb { font-size: 0.88rem; color: var(--muted); margin: 0 0 14px; }
.crumb a { text-decoration: none; color: var(--muted); }
.crumb a:hover { color: var(--link); text-decoration: underline; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 650;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: transparent; color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 5px 10px; margin-bottom: 12px;
}

/* —— Sections —— */
.sec {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 40px 0;
  margin: 0;
  border-bottom: 1px solid var(--hairline);
  box-shadow: none;
}
.sec:last-of-type { border-bottom: none; }
.sec h2 {
  margin: 0 0 18px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 650;
}
.sec h2::after { display: none; }
.sec h3 { margin: 22px 0 8px; font-size: 1.05rem; color: var(--ink); font-weight: 600; }
.sec p, .sec li { color: var(--muted); }
.sec ul { margin: 0; padding-left: 1.2em; }
.sec strong { color: var(--ink); }

/* —— Tables —— */
.sec table {
  width: 100%; border-collapse: collapse; font-size: 0.95rem;
  background: var(--elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.sec th, .sec td {
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}
.sec tbody tr:last-child td { border-bottom: none; }
.sec thead th {
  background: #F7F5F1;
  color: var(--ink);
  font-weight: 650;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--hairline);
}
.sec tbody tr:nth-child(even),
.sec tbody tr:nth-child(odd) { background: var(--elev); }
.sec tbody td:first-child { color: var(--muted); width: 32%; font-weight: 550; }
.note { font-size: 0.9rem; color: var(--muted); }

/* —— Product grid 2×2 —— */
.grid, .bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.bento .card:first-child {
  grid-row: span 1;
  min-height: auto;
  justify-content: flex-start;
  padding: 24px 22px;
  background: var(--elev);
}

.card {
  display: block;
  background: var(--elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  left: 22px; right: 22px; bottom: 0;
  height: 2px;
  background: transparent;
  transition: background .2s;
}
.card:hover {
  border-color: #d4cfc5;
  box-shadow: var(--shadow-soft);
  color: inherit;
  transform: none;
}
.card:hover::after { background: var(--accent); }
.prod-idx {
  display: block;
  font-size: 1.5rem;
  font-weight: 650;
  color: #b8b0a4;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.card strong {
  display: block;
  color: var(--ink);
  margin-bottom: 8px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  font-weight: 650;
}
.card span { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

/* —— CTA band —— */
.cta-band {
  background: var(--elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px 26px;
  margin: 32px 0 48px;
  display: flex; gap: 16px;
  align-items: center; justify-content: space-between; flex-wrap: wrap;
  box-shadow: none;
}
.cta-band p { margin: 0; max-width: 40em; color: var(--muted); }

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--bg);
  padding: 36px 0 48px;
  margin-top: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer strong { color: var(--ink); font-weight: 650; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--link); text-decoration: underline; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }

.stub {
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
  padding: 24px !important;
  background: var(--elev);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .bento { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .grid, .bento { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .sec { padding: 28px 0; }
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); max-width: none; }
  .nav { width: 100%; }
  .hl-logo { width: 56px; height: 56px; }
  .hl-logo--footer { width: 48px; height: 48px; }
  .brand .market-tag { font-size: 0.72rem; max-width: 9em; }
  .site-header .inner { padding: 8px 0; }
}

/* —— Guides / GEO article —— */
.guide-article { display: block; }
.guide-header { margin-bottom: 8px; }
.guide-header h1 { margin-bottom: 12px; }
.def-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 46em;
  line-height: 1.65;
}
.guide-meta {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.guide-facts {
  background: var(--elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 20px 0 8px;
  box-shadow: none;
}
.guide-facts .panel-title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.prose {
  max-width: 46em;
}
.prose h2 {
  margin-top: 1.6em;
  margin-bottom: 0.55em;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  font-weight: 650;
}
.prose h3 {
  margin-top: 1.25em;
  margin-bottom: 0.4em;
  font-size: 1.1rem;
  font-weight: 650;
}
.prose h4 {
  margin-top: 1.1em;
  margin-bottom: 0.35em;
  font-size: 1rem;
  font-weight: 650;
}
.prose p { margin: 0 0 1em; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.35em; }
.prose li { margin: 0.25em 0; }
.prose hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 1.75em 0;
}
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25em;
  font-size: 0.95rem;
  background: var(--elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.guide-table th,
.guide-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.guide-table th {
  background: #f0ece6;
  font-weight: 650;
  color: var(--ink);
}
.guide-table tr:last-child td { border-bottom: 0; }
.guide-faq h3 {
  margin-top: 1.1em;
  margin-bottom: 0.35em;
  font-size: 1.05rem;
  font-weight: 650;
}
.guide-faq p { color: var(--muted); max-width: 46em; }

.guide-pre {
  background: var(--elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 1.25em;
}
.guide-pre code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); }

/* —— Product photo gallery (Quiet Precision) —— */
.product-gallery {
  margin-top: 8px;
}
.product-hero {
  margin: 0 0 14px;
  background: var(--elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}
.product-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.product-thumb {
  margin: 0;
  background: var(--elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-thumb img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.card .card-img {
  display: block;
  width: calc(100% + 44px);
  max-width: none;
  height: 140px;
  object-fit: cover;
  margin: -24px -22px 14px;
  border-bottom: 1px solid var(--hairline);
}
@media (max-width: 720px) {
  .product-thumbs { grid-template-columns: repeat(2, 1fr); }
  .product-thumb img { height: 110px; }
}


/* —— Quote / inquiry form —— */
.inquiry-contact {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  margin: 0 0 18px; padding: 14px 16px;
  background: var(--elev); border: 1px solid var(--hairline); border-radius: var(--radius);
}
.inquiry-contact a { font-weight: 600; word-break: break-all; }
.inquiry-form .grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.inquiry-form .field { display: flex; flex-direction: column; gap: 6px; }
.inquiry-form .field.wide { grid-column: 1 / -1; }
.inquiry-form label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--hairline);
  border-radius: 10px; background: #fff; color: var(--ink);
}
.inquiry-form textarea { min-height: 110px; resize: vertical; }
.inquiry-form .consent { display: flex; gap: 8px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.inquiry-form .submit { margin-top: 8px; }
#inquiry-status { margin-top: 12px; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 720px) {
  .inquiry-form .grid { grid-template-columns: 1fr; }
}


/* —— Nav WhatsApp (quiet accent, not blue mega) —— */
.nav a.nav-wa {
  color: #128C7E;
  font-weight: 600;
}
.nav a.nav-wa:hover {
  color: #0e6e62;
  background: rgba(18, 140, 126, 0.08);
}

/* —— WhatsApp corner float (Quiet Precision: small green pill, no blue widget) —— */
.hl-contact-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  pointer-events: none; /* container ignores clicks; children re-enable */
}
.hl-contact-float .hl-cf { pointer-events: auto; }
.hl-cf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 132px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.2;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-sizing: border-box;
  transition: background .15s, transform .15s, box-shadow .15s, filter .15s;
}
.hl-cf__icon { display: block; flex-shrink: 0; }
.hl-cf--wa {
  background: #25D366;
  box-shadow: 0 2px 8px rgba(12, 13, 15, 0.08), 0 10px 28px rgba(37, 211, 102, 0.22);
}
.hl-cf--wa:hover,
.hl-cf--wa:focus-visible {
  background: #1ebe57;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12, 13, 15, 0.1), 0 14px 32px rgba(37, 211, 102, 0.28);
}
.hl-cf--wa:focus-visible {
  outline: 2px solid #128C7E;
  outline-offset: 3px;
}
.hl-cf--email {
  background: #c45c26;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 8px 24px rgba(40,28,18,.18);
}
.hl-cf--email:hover,
.hl-cf--email:focus-visible {
  filter: brightness(1.05);
  color: #fff;
  transform: translateY(-1px);
}
.hl-cf--email:focus-visible {
  outline: 2px solid #8a3f16;
  outline-offset: 3px;
}
@media (max-width: 520px) {
  .hl-contact-float {
    right: 14px;
    bottom: 14px;
  }
  .hl-cf {
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    font-size: 0.82rem;
  }
}
