:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --text: #0f172a;
  --muted: #5b6577;
  --line: #e4e8ef;
  --accent: #0284c7;
  --accent-soft: #e0f2fe;
  --dark: #0b1220;
  --radius: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.logo img { width: 30px; height: 30px; }
.wordmark {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.wordmark span { font-weight: 400; }
.nav { display: flex; gap: 28px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 104px;
  background:
    url("/images/hero-chevrons.svg") no-repeat right -60px center / 560px auto,
    radial-gradient(800px 400px at 85% 0%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(2, 132, 199, 0.08), transparent 60%);
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.hero p {
  margin: 0;
  max-width: 640px;
  font-size: 17px;
  color: var(--muted);
}

/* Sections */
section { padding: 96px 0; }
section.soft { background: var(--bg-soft); }
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 8px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 34px);
  margin: 0 0 40px;
  line-height: 1.4;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.about-item {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.lead {
  max-width: 760px;
  margin: -16px 0 40px;
  font-size: 16px;
  color: var(--muted);
}
.about-item .num {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.about-item h3 { margin: 0 0 8px; font-size: 17px; }
.about-item p { margin: 0; color: var(--muted); font-size: 15px; }

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service {
  display: flex;
  flex-direction: column;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.service .tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.service h3 { margin: 0 0 4px; font-size: 22px; }
.service .en { margin: 0 0 16px; font-size: 13px; color: var(--muted); letter-spacing: 0.06em; }
.service p { margin: 0 0 24px; color: var(--muted); font-size: 15px; flex: 1; }
.service a.link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.service a.link:hover { text-decoration: underline; }

/* Company table */
.company {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.company th,
.company td {
  text-align: left;
  vertical-align: top;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line);
}
.company tr:first-child th,
.company tr:first-child td { border-top: 1px solid var(--line); }
.company th {
  width: 200px;
  font-weight: 600;
  color: var(--muted);
}
.company ol { margin: 0; padding-left: 1.4em; }
.note { font-size: 13px; color: var(--muted); }

/* Contact */
.contact {
  background: var(--dark);
  color: #fff;
  text-align: center;
}
.contact .section-label { color: #7dd3fc; }
.contact .section-title { margin-bottom: 16px; }
.contact p { color: #b6c0d1; margin: 0 0 32px; }
.button {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: #fff;
  color: var(--dark);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.button:hover { opacity: 0.85; }

/* Footer */
.footer {
  padding: 32px 0;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Legal pages */
.legal { padding: 72px 0 96px; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: 30px; margin: 0 0 32px; }
.legal h2 { font-size: 18px; margin: 40px 0 8px; }
.legal p, .legal li { color: #334155; font-size: 15px; }

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .nav { display: none; }
  .hero {
    padding: 80px 0 72px;
    background-position: right -120px center, 0 0, 0 0;
    background-size: 340px auto, auto, auto;
  }
  section { padding: 72px 0; }
  .about-grid, .services { grid-template-columns: 1fr; }
  .service { padding: 28px; }
  .company th, .company td { display: block; width: 100%; padding: 4px 0; border: 0; }
  .company th { padding-top: 16px; }
  .company td { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .company tr:first-child th { border-top: 1px solid var(--line); }
  .company tr:first-child td { border-top: 0; }
}
