:root {
  --navy: #0b1220;
  --navy-2: #101c36;
  --indigo: #6366f1;
  --blue: #3b82f6;
  --ink: #1f2937;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --border: #e5e7eb;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(11, 18, 32, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--indigo);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--white);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--white);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: transform 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--blue));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
}

.btn-light:hover {
  background: #eef2ff;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at top left, rgba(99, 102, 241, 0.35), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(59, 130, 246, 0.25), transparent 55%),
    var(--navy);
  color: var(--white);
  padding: 110px 0 90px;
}

.hero-inner {
  max-width: 820px;
}

.eyebrow {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #c7d2fe;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero p {
  margin: 24px 0 0;
  font-size: 17px;
  color: #dbeafe;
  max-width: 700px;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Sections ---------- */

.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.3;
  font-weight: 800;
  color: var(--navy);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.eyebrow-light {
  display: inline-block;
  color: var(--indigo);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ---------- Cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--navy);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card .tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #eef2ff;
  color: var(--indigo);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Why ---------- */

.why-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-item .num {
  font-size: 15px;
  font-weight: 800;
  color: var(--indigo);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.why-item h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--navy);
}

.why-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Flow ---------- */

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.flow-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.flow-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--blue));
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 14px;
}

.flow-step h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--navy);
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- About teaser ---------- */

.about-teaser-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--navy);
  color: var(--white);
  border-radius: 20px;
  padding: 40px;
}

.about-teaser-inner h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.about-teaser-inner p {
  margin: 0;
  color: #cbd5e1;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 76px 0 60px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.3;
}

.page-hero p {
  margin: 14px 0 0;
  color: #dbeafe;
  max-width: 760px;
}

/* ---------- Solutions detail ---------- */

.solution-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}

.solution-block:last-child {
  border-bottom: 0;
}

.solution-block .label {
  font-size: 14px;
  font-weight: 800;
  color: var(--indigo);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.solution-block h2 {
  margin: 0 0 14px;
  font-size: 26px;
  color: var(--navy);
  line-height: 1.4;
}

.solution-block p {
  margin: 0 0 16px;
  color: var(--muted);
}

.solution-block ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 15px;
}

.solution-block li {
  margin-bottom: 8px;
}

/* ---------- Company table ---------- */

.company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.company-table th,
.company-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: 0;
}

.company-table th {
  width: 200px;
  background: var(--bg-alt);
  color: var(--muted);
  font-weight: 700;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.field .required {
  color: #dc2626;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--indigo);
  outline-offset: 1px;
  border-color: transparent;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink);
}

.checkbox input {
  margin-top: 4px;
  width: auto;
}

.form-error {
  color: #dc2626;
  font-size: 14px;
  font-weight: 700;
}

.form-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-info-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
}

.contact-info-card dl {
  margin: 0;
}

.contact-info-card dt {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 700;
  margin-top: 16px;
}

.contact-info-card dd {
  margin: 4px 0 0;
  color: var(--white);
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 820px;
  padding-bottom: 84px;
}

.legal article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.legal h2 {
  margin: 28px 0 10px;
  font-size: 20px;
  color: var(--navy);
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  color: var(--ink);
  font-size: 15px;
}

.legal ul,
.legal ol {
  padding-left: 24px;
}

.legal .date {
  color: var(--muted);
  font-size: 14px;
  margin-top: 32px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 15px;
}

.footer-grid p {
  margin: 0;
  font-size: 14px;
  max-width: 340px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 10px;
}

.footer-grid a {
  color: #cbd5e1;
  font-size: 14px;
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #94a3b8;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3,
  .why-list,
  .flow {
    grid-template-columns: 1fr;
  }

  .solution-block,
  .contact-grid,
  .about-teaser-inner,
  .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .about-teaser-inner {
    padding: 30px;
  }

  .company-table th {
    width: 130px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 24px 18px;
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-nav .btn {
    margin-top: 12px;
    justify-content: center;
  }

  .hero {
    padding: 76px 0 64px;
  }

  .section {
    padding: 60px 0;
  }

  .legal article,
  .form-card {
    padding: 24px;
  }
}
