:root {
  --ink: #0d1b2a;
  --ink-2: #3c5064;
  --ink-3: #6b7f93;
  --line: #e3e8ee;
  --line-2: #eef2f6;
  --bg: #ffffff;
  --bg-2: #f6f8fb;
  --brand: #0b4f6c;
  --brand-2: #12607f;
  --accent: #0f9b8e;
  --accent-2: #0b7f74;
  --maxw: 1200px;
  --r: 10px;
  --shadow: 0 1px 2px rgba(13, 27, 42, .04), 0 8px 24px rgba(13, 27, 42, .06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans JP", "Noto Sans KR", sans-serif;
}

* { 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;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.25; font-weight: 600; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 62ch;
}

.muted { color: var(--ink-3); font-size: .9rem; }
.more { color: var(--accent-2); font-weight: 500; font-size: .9rem; }

.section { padding: 72px 0; }
.section.alt { background: var(--bg-2); }

.section-head { margin-bottom: 36px; }
.section-head p { color: var(--ink-3); margin-top: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand { display: flex; flex-direction: row; align-items: center; gap: 14px; margin-right: auto; }
.brand-logo { height: 48px; width: auto; display: block; }
.brand-sub { font-size: .72rem; color: var(--ink-3); letter-spacing: .02em; border-left: 1px solid var(--line, #e2e6eb); padding-left: 14px; max-width: 150px; line-height: 1.35; }
.brand-mark {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--brand);
}
.brand-sub { font-size: .72rem; color: var(--ink-3); letter-spacing: .02em; }

.nav { display: flex; gap: 26px; }
.nav a {
  font-size: .93rem;
  color: var(--ink-2);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--brand); border-bottom-color: var(--accent); }

.lang-switch { position: relative; }
.lang-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--r);
  padding: 7px 14px;
  font-size: .85rem;
  font-family: inherit;
  color: var(--ink-2);
  cursor: pointer;
}
.lang-btn::after { content: " ▾"; font-size: .7rem; }
.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 6px;
  min-width: 170px;
  max-height: 70vh;
  overflow: auto;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: .88rem;
  color: var(--ink-2);
}
.lang-menu a:hover { background: var(--bg-2); color: var(--brand); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #0b4f6c 0%, #12607f 55%, #0f9b8e 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(255,255,255,.12), transparent 45%),
    url("img/banner/banner-1.webp") center/cover no-repeat;
  opacity: .42;
}
.hero-inner { position: relative; padding: 96px 24px 88px; }
.hero h1 { max-width: 20ch; margin-bottom: 18px; }
.hero .lead { color: rgba(255, 255, 255, .88); font-size: 1.08rem; }

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .78rem;
  letter-spacing: .02em;
  margin-bottom: 20px;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.btn {
  display: inline-block;
  border-radius: var(--r);
  padding: 12px 22px;
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s, box-shadow .12s, background .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }

/* ---------- stats ---------- */
.stats { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 34px 24px;
  text-align: center;
}
.stat-num {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -.02em;
}
.stat-label { font-size: .84rem; color: var(--ink-3); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.app-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #cfd8e3;
}
.app-thumb { background: var(--bg-2); aspect-ratio: 3 / 2; overflow: hidden; }
.app-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.app-card:hover .app-thumb img { transform: scale(1.04); }
.app-body { padding: 18px 20px 20px; }
.app-body h3 { margin-bottom: 8px; }
.app-body p { color: var(--ink-3); font-size: .9rem; }

.highlight { padding: 22px; }
.highlight h3 { margin-bottom: 14px; font-size: 1rem; }
.highlight ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.highlight li { margin-bottom: 7px; font-size: .92rem; }
.section.alt .card { background: #fff; }

.strength { padding: 24px; border-left: 3px solid var(--accent); background: #fff;
  border-radius: 0 var(--r) var(--r) 0; }
.strength p { color: var(--ink-3); font-size: .92rem; margin-top: 8px; }

/* ---------- process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: s;
}
.step { position: relative; padding-top: 14px; }
.step::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--line);
}
.step:first-child::before { background: var(--accent); }
.step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  font-size: .85rem; font-weight: 700;
  margin: 18px 0 12px;
}
.step h3 { font-size: .95rem; margin-bottom: 6px; }
.step p { font-size: .85rem; color: var(--ink-3); }

/* ---------- detail ---------- */
.page-head {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 40px;
}
.crumbs { display: flex; gap: 8px; font-size: .84rem; color: var(--ink-3); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand); }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.detail-img {
  width: 100%;
  border-radius: var(--r);
  margin-bottom: 24px;
  border: 1px solid var(--line);
}
.detail-body p { color: var(--ink-2); margin-bottom: 1.15rem; font-size: 1rem; }
.detail-body > p:first-of-type { font-size: 1.06rem; color: var(--ink); }

aside { position: sticky; top: 88px; }
aside .card + .card { margin-top: 18px; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-grid p { color: var(--ink-2); margin-bottom: 1.1rem; }

/* ---------- cta band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 60%, var(--accent) 130%);
  color: #fff;
  padding: 52px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-inner h2 { font-size: 1.6rem; }
.cta-inner p { color: rgba(255, 255, 255, .85); margin-top: 8px; max-width: 60ch; }
.cta-inner .btn-primary { background: #fff; color: var(--brand); }
.cta-inner .btn-primary:hover { background: rgba(255,255,255,.9); }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}
.inquiry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 155, 142, .12);
}
.field input[aria-invalid="true"] { border-color: #d33; }
.form-note { font-size: .9rem; margin-top: 12px; min-height: 1.4em; }
.form-note.ok { color: var(--accent-2); }
.form-note.err { color: #c0392b; }

.contact-info p { margin-bottom: 14px; font-size: .94rem; color: var(--ink-2); }
.contact-info a { color: var(--accent-2); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding-top: 52px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 36px;
}
.site-footer h4 { color: #fff; font-size: .92rem; margin-bottom: 14px; letter-spacing: .02em; }
.site-footer a { display: block; font-size: .88rem; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-mark { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.footer-logo { display: block; background: #fff; border-radius: 8px; padding: 6px 8px; width: 46px; height: auto; margin-bottom: 10px; }
.footer-brand-name { color: #fff; font-size: 1.2rem; font-weight: 700; letter-spacing: .05em; margin: 0 0 10px; }
.lang-root-logo { height: 72px; width: auto; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 24px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
}

/* ---------- language root ---------- */
.lang-root { min-height: 100vh; display: grid; place-items: center; background: var(--bg-2); }
.lang-root-inner { text-align: center; padding: 60px 24px; }
.lang-root-inner .brand-mark { font-size: 2rem; margin-bottom: 10px; }
.lang-root-grid {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px;
  max-width: 640px;
}
.lang-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: .92rem;
}
.lang-card:hover { border-color: var(--accent); color: var(--accent-2); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .detail-grid, .contact-grid, .about-grid { grid-template-columns: 1fr; gap: 28px; }
  aside { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 10px 24px 18px;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; border-bottom: 1px solid var(--line-2); }
  .nav-toggle { display: flex; }
  .header-inner { height: 60px; gap: 12px; }
  .brand-sub { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .inquiry { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero-inner { padding: 64px 24px 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .detail-img { margin-bottom: 18px; }
}
