:root {
  --bg: #FFFFFF;
  --bg-soft: #F3F4F6;
  --ink: #1F2937;
  --ink-soft: #374151;
  --muted: #6B7280;
  --accent: #1E63E9;
  --accent-soft: #DCEAFE;
  --accent2: #FFC800;
  --accent2-soft: #FFF3CC;
  --card-bg: #FFFFFF;
  --border: #E5E7EB;
  --radius-lg: 20px;
  --radius-md: 12px;
  --container: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }

.hero-grid > *, .mission-grid > *, .structure-grid > * {
  min-width: 0;
}

.eyebrow, .wordmark, .stat-num {
  font-family: "Outfit", "Noto Sans JP", sans-serif;
}

a { color: inherit; }

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 245, 242, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.wordmark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}

.wordmark span { color: var(--accent); }

nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  padding: 88px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 24px;
  letter-spacing: 0.01em;
}

.hero p.lead {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 32px;
}

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30, 99, 233, 0.28);
}

.btn-ghost {
  color: var(--ink-soft);
  border: 1px solid var(--border);
  background: transparent;
}

.btn-ghost:hover { border-color: var(--ink-soft); }

.hero-illust img {
  width: 100%;
  max-width: 480px;
  display: block;
  margin: 0 auto;
}

/* Section shared */
section { padding: 80px 0; }

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head .eyebrow { margin-bottom: 14px; }

h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 16px;
}

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

/* Mission */
.mission {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mission-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.mission-illust img { width: 100%; max-width: 380px; }

.mission-body p {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.principle-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.principle-list li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
  align-items: flex-start;
}

.principle-list .num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(20, 33, 61, 0.08);
  border-color: var(--accent);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: var(--accent);
  font-size: 16px;
}

.service-card h3 {
  font-size: 17px;
  margin: 0;
}

.service-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.service-domain {
  font-family: "Outfit", monospace;
  font-size: 12px;
  color: var(--accent);
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
  background: var(--card-bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.empty-state img { width: 100%; max-width: 280px; margin: 0 auto; }

.empty-state h3 {
  font-size: 20px;
  margin: 0 0 10px;
}

.empty-state p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}

/* Structure section */
.structure {
  background: var(--ink);
  color: #fff;
}

.structure .section-head p { color: rgba(255,255,255,0.6); }

.structure h2 { color: #fff; }

.structure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.domain-example {
  font-family: "Outfit", monospace;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 15px;
  margin: 24px 0 0;
  color: var(--accent2);
}

.domain-example small {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  color: rgba(255,255,255,0.55);
  font-size: 12.5px;
  margin-top: 8px;
}

.structure-illust img { width: 100%; max-width: 380px; margin: 0 auto; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer .wordmark { font-size: 16px; }

footer .copy {
  font-size: 12.5px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero-grid, .mission-grid, .structure-grid, .empty-state {
    grid-template-columns: 1fr;
  }
  .hero-illust, .mission-illust, .structure-illust { order: -1; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  section { padding: 56px 0; }
  nav ul { gap: 16px; }
  .empty-state { padding: 28px; }
}

@media (max-width: 560px) {
  nav ul { display: none; }
  .header-inner { justify-content: space-between; }
  h1 { font-size: 27px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
