:root {
  --ink: #173764;
  --ink-strong: #12366d;
  --ink-soft: #4f6f9f;
  --line: rgba(111, 149, 214, 0.16);
  --line-soft: rgba(111, 149, 214, 0.12);
  --panel: rgba(255, 255, 255, 0.82);
  --panel-soft: rgba(255, 255, 255, 0.72);
  --nav-a: rgba(0, 119, 190, 0.30);
  --nav-b: rgba(0, 47, 167, 0.20);
  --accent: #0077BE;
  --accent-deep: #002FA7;
  --shadow: 0 20px 42px rgba(24, 62, 126, 0.10);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Microsoft JhengHei", "Noto Sans JP", "Noto Sans KR", Arial, sans-serif;
  color: var(--ink);
}
body {
  background-color: #edf3fb;
  background-image: url("../images/background.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,.5));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow:
    0 10px 20px rgba(40, 72, 130, 0.10),
    0 28px 60px rgba(40, 72, 130, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.65);
  border-radius: 30px;
}

.nav-outer { position: sticky; top: 0; z-index: 20; padding-top: 18px; }
.split-nav-shell {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 18px;
  align-items: center;
}
.logo-tile {
  display: flex; align-items: center; justify-content: center;
  height: 116px; padding: 10px; border-radius: 18px;
}
.logo-tile img { width: 100%; height: auto; display: block; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 24px; border-radius: 18px;
  background: linear-gradient(180deg, var(--nav-a), var(--nav-b));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 119, 190, 0.28);
  box-shadow: 0 12px 24px rgba(0, 47, 167, 0.10);
}
.brand-block { display:flex; flex-direction:column; gap:4px; }
.brand-title { font-size: 24px; font-weight: 800; letter-spacing: .04em; line-height: 1.1; color: #11356d; }
.brand-sub { font-size: 12px; color: var(--ink-soft); white-space: nowrap; letter-spacing: .06em; }
.nav-right { display:flex; align-items:center; gap:12px; flex-wrap:nowrap; justify-content:flex-end; min-width:0; }
.menu { display: flex; gap: 14px; flex-wrap: nowrap; white-space: nowrap; font-size: 14px; color: #163b7a; font-weight: 700; }
.menu a { padding: 8px 4px; position:relative; }
.menu a::after {
  content:""; position:absolute; left:4px; right:4px; bottom:2px; height:2px;
  background: linear-gradient(90deg, transparent, rgba(0,47,167,.45), transparent);
  opacity:0; transition:.2s ease;
}
.menu a:hover::after, .menu a.active::after { opacity:1; }
.menu a.active {
  color: var(--accent-deep);
  background: rgba(255,255,255,.58);
  padding: 8px 12px;
  border-radius: 10px;
}
.lang-switch { display:flex; gap:8px; flex-wrap:wrap; }
.lang-btn {
  border: 1px solid rgba(0,119,190,.18);
  background: rgba(255,255,255,.64);
  color: #2a508b;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
}
.lang-btn.active { background: linear-gradient(135deg, rgba(0,119,190,.12), rgba(0,47,167,.10)); color: var(--accent-deep); }

.page-shell { padding: 34px 0 20px; }
.page-main { width: 100%; padding: 36px; margin-bottom: 12px; }
.page-stack { display: grid; gap: 20px; max-width: 1040px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px;
  border-radius: 999px; background: rgba(59, 110, 192, 0.10);
  color: #416ba6; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; width: fit-content;
}
.eyebrow::before {
  content:""; width:8px; height:8px; border-radius:50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 0 0 5px rgba(0,119,190,.08);
}
h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.06;
  color: var(--ink-strong);
  letter-spacing: -.02em;
}
h2 {
  margin: 16px 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  color: var(--ink-strong);
  letter-spacing: -.01em;
}
.lead, .muted, .card p, .contact-box div, .home-note, .metric-label, .metric-value, .mini-point p { text-wrap: pretty; }
.lead { margin: 0; font-size: 18px; line-height: 1.95; color: #496892; max-width: 900px; }
.muted { color: #58739a; line-height: 1.95; font-size: 16px; margin: 0; }
.section-block, .hero-block {
  padding: 40px 42px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.76), rgba(255,255,255,.68));
  border: 1px solid var(--line-soft);
}
.hero-grid {
  display:grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap:24px; align-items:stretch;
}
.hero-side {
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(245,250,255,.82));
  border: 1px solid rgba(111,149,214,.14);
  display:flex; flex-direction:column; justify-content:space-between; gap:18px;
}
.metric-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:14px; }
.metric {
  padding:16px 14px; border-radius:18px; background: rgba(255,255,255,.72);
  border:1px solid rgba(111,149,214,.12);
}
.metric-value { font-size: 18px; font-weight: 800; color: var(--ink-strong); margin-bottom: 6px; }
.metric-label { font-size: 13px; color: #55739c; line-height:1.7; }
.mini-points { display:grid; gap:12px; }
.mini-point {
  padding:14px 16px; border-radius:18px; background: rgba(255,255,255,.68); border:1px solid rgba(111,149,214,.12);
}
.mini-point h3 { margin:0 0 6px; font-size:16px; color:#1a447f; }
.mini-point p { margin:0; font-size:14px; line-height:1.8; color:#5a769d; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 26px 24px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.76));
  border: 1px solid rgba(111, 149, 214, 0.14);
  box-shadow: 0 12px 28px rgba(24, 62, 126, 0.06);
}
.card .num {
  display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(0, 119, 190, 0.10); color: #002FA7; font-weight: 800; margin-bottom: 14px;
}
.card h3 { margin: 0 0 10px; font-size: 20px; color: #1a447f; }
.card p { margin: 0; line-height: 1.85; color: #5a769d; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 150px;
  padding: 14px 24px; border-radius: 999px; font-size: 15px; font-weight: 800;
}
.btn.primary { color: #fff; background: linear-gradient(135deg, #0077BE, #002FA7); box-shadow: 0 14px 28px rgba(35, 77, 157, 0.16); }
.btn.secondary { color: #22467f; background: rgba(255, 255, 255, 0.86); border: 1px solid rgba(93, 129, 190, 0.18); }
.home-note {
  width: min(780px, 100%);
  padding: 16px 22px; border-radius: 22px; color: #58739a; line-height: 1.9; font-size: 16px;
  background: rgba(255, 255, 255, 0.76); border: 1px solid rgba(111, 149, 214, 0.14);
}
.about-layout, .services-layout { display:grid; gap:20px; }
.about-bottom { display:grid; grid-template-columns: 1.05fr .95fr; gap: 20px; align-items:start; }
.about-left-stack { display:grid; gap:20px; }
.highlight-list { display:grid; gap:16px; }
.highlight-item {
  padding:18px 18px 18px 20px; border-radius:20px; background: rgba(255,255,255,.78); border:1px solid rgba(111,149,214,.14);
  position:relative;
}
.highlight-item::before {
  content:""; position:absolute; left:0; top:18px; bottom:18px; width:4px;
  border-radius:4px; background: linear-gradient(180deg, rgba(0,119,190,.65), rgba(0,47,167,.48));
}
.highlight-item h3 { margin:0 0 8px 10px; font-size:18px; color:#1a447f; }
.highlight-item p { margin:0 0 0 10px; line-height:1.85; color:#5a769d; font-size:15px; }
.service-intro-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap:20px; }
.tags { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.tag {
  display:inline-flex; align-items:center; padding:8px 12px; border-radius:999px;
  background: rgba(255,255,255,.78); border:1px solid rgba(111,149,214,.14); color:#375d95; font-size:13px; font-weight:700;
}
.contact-split { display:grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.workflow-panel, .contact-panel { height: auto; }
.workflow-panel { display:flex; flex-direction:column; }
.workflow-grid { margin-top: 18px; }
.contact-panel { display:flex; flex-direction:column; justify-content:flex-start; }
.contact-box {
  padding: 14px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(111, 149, 214, 0.14); margin-top: 12px;
}
.contact-box div { padding: 8px 0; border-bottom: 1px solid rgba(114, 149, 212, 0.10); color: #527097; font-size: 14px; }
.contact-box div:last-child { border-bottom: none; }
.contact-box strong { display: inline-block; min-width: 76px; color: #173d76; }
footer { padding: 20px 0 34px; text-align: center; color: #6a84a9; font-size: 14px; position: relative; z-index: 1; }

@media (max-width: 980px) {
  .hero-grid, .about-bottom, .service-intro-grid, .contact-split, .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 24px, 1180px); }
  .split-nav-shell { grid-template-columns: 1fr; gap: 12px; }
  .logo-tile { width: 108px; height: 96px; }
  .nav { border-radius: 16px; align-items: flex-start; padding:16px; }
  .nav-right { width:100%; justify-content:space-between; }
  .brand-sub { white-space: normal; }
  .page-main { padding: 20px; }
  .section-block, .hero-block { padding: 28px 22px; }
  .metric-grid { grid-template-columns: 1fr; }
}


/* Language dropdown */
.dropdown-lang { display:flex; align-items:center; }
.lang-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(111, 149, 214, 0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.lang-select-label {
  font-size: 12px;
  font-weight: 700;
  color: #496892;
  letter-spacing: .04em;
}
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid rgba(111, 149, 214, 0.28);
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(242,248,255,.92));
  color: #173d76;
  font-size: 14px;
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 34px 8px 14px;
  min-width: 126px;
  line-height: 1.2;
  cursor: pointer;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(242,248,255,.92)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20'><path fill='%23173d76' d='M5.5 7.5 10 12l4.5-4.5' stroke='%23173d76' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 12px center;
  background-size: auto, 12px 12px;
}
.lang-select:hover { border-color: rgba(82, 125, 196, 0.42); }
.lang-select:focus {
  outline: none;
  border-color: rgba(47, 99, 185, 0.56);
  box-shadow: 0 0 0 3px rgba(86, 132, 215, 0.14);
}

@media (max-width: 860px) {
  .lang-select-label { display: none; }
  .lang-select-wrap { padding: 6px 8px; }
  .lang-select { min-width: 112px; }
}


/* Keep language control aligned with menu on desktop */
.dropdown-lang { flex: 0 0 auto; white-space: nowrap; }
.lang-select-wrap { white-space: nowrap; }
.lang-select { min-width: 104px; }

@media (max-width: 980px) {
  .split-nav-shell { grid-template-columns: 100px 1fr; gap: 14px; }
  .nav { padding: 16px 18px; gap: 14px; }
  .brand-sub { font-size: 11px; }
  .menu { gap: 10px; font-size: 13px; }
  .nav-right { gap: 8px; }
}

@media (max-width: 860px) {
  .nav-right { flex-wrap: wrap; }
  .menu { flex-wrap: wrap; white-space: normal; }
}
