:root {
  --ink: #0f141b;
  --ink-2: #2a323d;
  --muted: #5d6673;
  --line: #e2e6ec;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --accent: #2f6fd0;
  --accent-soft: #e8f1fc;
  --accent-light: #9cc6f2;
  --dark: #0d1520;
  --dark-2: #16212f;
  --radius: 14px;
  --header-h: 72px;
  --font-ja: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Inter", var(--font-ja);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; font-weight: 700; }
h1, h2, h3, .lead, .eyebrow, .section-desc, .pillars span, .company-table dd, .page p { word-break: auto-phrase; }
p { margin: 0; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 6px; }

.pc { display: none; }
@media (min-width: 768px) { .pc { display: inline; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand img { width: 168px; }

.site-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 500; }
.site-nav a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.site-nav a:hover { color: var(--accent); }
.site-nav .nav-cta {
  color: #fff; background: var(--ink); padding: 9px 20px; border-radius: 999px;
}
.site-nav .nav-cta:hover { color: #fff; background: var(--accent); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .brand img { width: 140px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; padding: 0 10px; border: 0; background: none; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px; font-size: 16px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 16px; text-align: center; border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 32px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #245cb3; }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 64px;
  background:
    radial-gradient(1200px 500px at 85% 10%, var(--accent-soft), transparent 60%),
    linear-gradient(var(--bg), var(--bg));
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  opacity: .55;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; }
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 500; color: var(--accent);
  padding: 4px 14px; border: 1px solid var(--accent-light); border-radius: 999px; background: #fff;
}
.hero h1 { margin-top: 24px; font-size: clamp(40px, 6vw, 68px); letter-spacing: 0.04em; line-height: 1.25; }
.lead { margin-top: 24px; font-size: 17px; color: var(--ink-2); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { max-width: 440px; justify-self: center; width: 100%; }
.hero-visual .grid circle { fill: none; stroke: #d6dde7; stroke-width: 1; stroke-dasharray: 2 6; }
.hero-visual .orbit { transform-origin: 200px 200px; animation: spin 40s linear infinite; }
.hero-visual .arc-blue { fill: none; stroke: url(#ring); stroke-width: 34; stroke-linecap: butt; }
.hero-visual .arc-ink { fill: none; stroke: var(--ink); stroke-width: 34; stroke-linecap: butt; }
.hero-visual .links line { stroke: var(--accent-light); stroke-width: 1.2; stroke-dasharray: 4 5; animation: dash 6s linear infinite; }
.hero-visual .nodes circle { fill: #fff; stroke: var(--accent); stroke-width: 3; }
.hero-visual .core { fill: var(--accent); }
.hero-visual .pulse { fill: none; stroke: var(--accent); stroke-width: 2; transform-origin: 200px 200px; animation: pulse 2.8s ease-out infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -54; } }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(3.2); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual * { animation: none !important; }
}

.pillars {
  position: relative; list-style: none; margin: 64px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px -18px rgba(15, 20, 27, .25);
}
.pillars li { padding: 28px 32px; display: flex; flex-direction: column; gap: 4px; }
.pillars li + li { border-left: 1px solid var(--line); }
.pillar-en { font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pillars strong { font-size: 18px; }
.pillars li > span:last-child { font-size: 14px; color: var(--muted); }

@media (max-width: 860px) {
  .hero { padding: 48px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { max-width: 280px; order: -1; }
  .pillars { grid-template-columns: 1fr; margin-top: 48px; }
  .pillars li + li { border-left: 0; border-top: 1px solid var(--line); }
  .pillars li { padding: 22px 24px; }
}

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 56px; }
.section-en {
  font-family: var(--font-en); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: 12px;
}
.section-en::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-head h2 { margin-top: 12px; font-size: clamp(28px, 3.6vw, 38px); }
.section-desc { margin-top: 16px; color: var(--muted); }

@media (max-width: 860px) {
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
}

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  position: relative; padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service-card:hover { border-color: var(--accent-light); box-shadow: 0 16px 40px -24px rgba(47, 111, 208, .45); transform: translateY(-2px); }
.service-card h3 { font-size: 22px; padding-bottom: 16px; border-bottom: 2px solid var(--accent); }
.checklist { list-style: none; margin: 8px 0 0; padding: 0; }
.checklist li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
@media (max-width: 860px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px 24px; }
}

/* Profile */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.profile .section-head h2 { white-space: nowrap; }
.profile .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.profile-name { margin-top: 32px; font-size: 24px; font-weight: 700; letter-spacing: .12em; }
.profile-name span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .08em; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 40px 36px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; border: 3px solid var(--accent);
}
.tl-label { font-family: var(--font-en); font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px; line-height: 1.4; }
.timeline p:not(.tl-label) { color: var(--ink-2); }
@media (max-width: 860px) {
  .profile { grid-template-columns: 1fr; gap: 40px; }
  .profile .section-head { position: static; }
  .profile-name { margin-top: 20px; }
  .timeline li { padding-left: 28px; }
}

/* Company */
.company-table { margin: 0; border-top: 1px solid var(--ink); }
.company-table > div { display: grid; grid-template-columns: 160px 1fr; border-bottom: 1px solid var(--line); }
.company-table dt { padding: 22px 0; font-weight: 500; color: var(--muted); }
.company-table dd { margin: 0; padding: 22px 0; }
@media (max-width: 600px) {
  .company-table > div { grid-template-columns: 1fr; }
  .company-table dt { padding: 18px 0 0; font-size: 14px; }
  .company-table dd { padding: 4px 0 18px; }
}

/* ---------- Contact ---------- */
.section-dark {
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(47, 111, 208, .28), transparent 60%),
    var(--dark);
  color: #e9eef5;
}
.section-dark .section-en { color: var(--accent-light); }
.section-dark .section-desc { color: #a9b4c3; }

.contact-form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.req, .opt { font-size: 11px; font-weight: 500; padding: 1px 8px; border-radius: 4px; letter-spacing: .05em; }
.req { background: var(--accent); color: #fff; }
.opt { background: #2b3747; color: #b9c4d2; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: #fff; letter-spacing: .02em;
  background: var(--dark-2); border: 1px solid #2b3747; border-radius: 10px; padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 180px; }
.field input::placeholder, .field textarea::placeholder { color: #66748a; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 111, 208, .35); }
.field.invalid input, .field.invalid textarea { border-color: #e2627a; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.agree { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.agree input { width: 18px; height: 18px; accent-color: var(--accent); }
.agree a { color: var(--accent-light); }
.agree.invalid { color: #ff8da1; }

.turnstile { min-height: 65px; }
.form-status { min-height: 1.9em; font-size: 14px; text-align: center; }
.form-status.ok { color: #8fe0b0; }
.form-status.err { color: #ff8da1; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 32px; }
.footer-logo { width: 140px; }
.footer-tag { font-size: 14px; color: var(--muted); }
.footer-nav a { font-size: 13px; color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.copyright { grid-column: 1 / -1; margin-top: 24px; font-family: var(--font-en); font-size: 12px; color: var(--muted); }
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Sub pages ---------- */
.page { padding: 80px 0 112px; }
.page h1 { font-size: clamp(28px, 4vw, 36px); margin-bottom: 40px; }
.page h2 { font-size: 19px; margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.page p, .page li { color: var(--ink-2); }
.page ul { padding-left: 1.4em; }
.page .meta { margin-top: 48px; font-size: 14px; color: var(--muted); }

