:root {
  --bg: #ffffff;
  --bg-soft: #f4f7f9;
  --card: #ffffff;
  --ink: #0c1b26;
  --ink-soft: #4a5c6a;
  --ink-faint: #5f6f7a;
  --line: #e1e7eb;
  --accent: #0a7185;
  --accent-strong: #08586a;
  --accent-soft: #e2f2f4;
  --glow: rgba(19, 159, 156, 0.16);
  --shadow: 0 1px 2px rgba(12, 27, 38, 0.05), 0 10px 30px rgba(12, 27, 38, 0.06);
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1117;
    --bg-soft: #0e1820;
    --card: #111d27;
    --ink: #e8eef2;
    --ink-soft: #a5b4bf;
    --ink-faint: #7e8f9a;
    --line: #1f2d39;
    --accent: #52c4cf;
    --accent-strong: #86d8e0;
    --accent-soft: #12323b;
    --glow: rgba(82, 196, 207, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1117;
  --bg-soft: #0e1820;
  --card: #111d27;
  --ink: #e8eef2;
  --ink-soft: #a5b4bf;
  --ink-faint: #7e8f9a;
  --line: #1f2d39;
  --accent: #52c4cf;
  --accent-strong: #86d8e0;
  --accent-soft: #12323b;
  --glow: rgba(82, 196, 207, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(ja) body, body:lang(ja) { line-height: 1.8; font-feature-settings: "palt" 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) h4 { letter-spacing: 0.01em; line-height: 1.35; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4, .app-tagline, .hero .lead, .area .lead, .area-card .lead, .contact p { text-wrap: balance; }
/* Japanese breaks between phrases, not inside words, where the browser can (Chrome, Edge). */
:lang(ja) :is(h1, h2, h3, h4, p, .app-tagline, .lead, .eyebrow) { word-break: keep-all; word-break: auto-phrase; overflow-wrap: anywhere; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { left: 16px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: 0.08em; font-size: 15px; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.lang {
  font-size: 13px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.lang:hover { color: var(--ink); border-color: var(--ink-faint); }

/* Hero */
.hero {
  text-align: center;
  padding: 104px 0 72px;
  background: radial-gradient(60% 70% at 50% 0%, var(--glow), transparent 70%);
}
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
:lang(ja) .eyebrow { letter-spacing: 0.12em; }
.hero h1 { font-size: clamp(40px, 7.4vw, 76px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.06; margin: 16px 0 24px; }
:lang(ja) .hero h1 { font-size: clamp(34px, 6.2vw, 62px); letter-spacing: 0.02em; line-height: 1.3; }
.hero .lead { max-width: 640px; margin: 0 auto; font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 600;
  background: var(--accent); color: #fff;
  transition: background 0.15s ease;
}
.button:hover { background: var(--accent-strong); color: #fff; }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.button.ghost:hover { background: var(--bg-soft); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .button:not(.ghost) { color: #06232a; } }
:root[data-theme="dark"] .button:not(.ghost) { color: #06232a; }

/* Sections */
section.block { padding: 96px 0; }
section.soft { background: var(--bg-soft); }
.section-title { font-size: clamp(30px, 4.4vw, 44px); font-weight: 720; letter-spacing: -0.025em; margin-bottom: 48px; }
:lang(ja) .section-title { letter-spacing: 0.02em; }

/* Business */
.area { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.area + .area { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--line); }
.area-num { font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; }
.area h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 720; margin: 8px 0 14px; }
.area .lead { font-size: 19px; color: var(--ink); }
.area .body { color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li { font-size: 14px; padding: 6px 13px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); }

.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 20px; margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--line); }
.area-card { background: var(--bg-soft); border-radius: var(--radius); padding: 28px; }
.area-card h3 { font-size: 21px; font-weight: 720; margin: 6px 0 10px; }
.area-card .lead { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.area-card .body { color: var(--ink-soft); font-size: 16px; text-wrap: pretty; }
.area-card .chips { margin-top: 16px; }
.area-card .chips li { background: var(--card); color: var(--ink-soft); font-size: 13px; padding: 4px 11px; }

/* Apps */
.apps-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 72px 0 24px; }
.apps-head h3 { font-size: 24px; font-weight: 720; }
.apps-head p { color: var(--ink-faint); font-size: 15px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.app {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.app-top { display: flex; gap: 16px; align-items: center; }
.app-icon { width: 72px; height: 72px; border-radius: 22.5%; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
.app-name { font-size: 22px; font-weight: 720; }
.app-meta { font-size: 14px; color: var(--ink-faint); margin-top: 2px; }
.app-tagline { font-size: 19px; font-weight: 650; margin: 22px 0 8px; line-height: 1.4; }
.app-desc { color: var(--ink-soft); font-size: 16px; }
.app .chips { margin-top: 18px; }
.app .chips li { background: var(--bg-soft); color: var(--ink-soft); font-size: 13px; padding: 4px 11px; }
.app-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: auto; padding-top: 24px; }
.badge img { height: 40px; width: auto; }
.more { font-size: 15px; font-weight: 600; margin-left: 4px; }
.soon { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e2a400; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.principle svg { width: 28px; height: 28px; color: var(--accent); }
.principle h3 { font-size: 19px; font-weight: 700; margin: 16px 0 8px; }
.principle p { color: var(--ink-soft); font-size: 16px; }

/* Company */
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 220px 1fr; align-items: baseline; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-faint); font-size: 15px; }
.facts dd { margin: 0; }
.facts .lines li + li { margin-top: 10px; }
.facts .sub { color: var(--ink-faint); font-size: 15px; margin-left: 8px; }

/* Contact */
.contact { text-align: center; }
.contact p { color: var(--ink-soft); max-width: 560px; margin: -24px auto 32px; }
.contact .button { font-size: 17px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--ink-faint); }
footer .foot-row { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer .foot-row a { margin-left: auto; }
footer .notice { margin-top: 16px; font-size: 13px; }
footer a { color: var(--ink-soft); }

@media (max-width: 860px) {
  .area { grid-template-columns: 1fr; gap: 20px; }
  .principles { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .lang { margin-left: auto; }
  .hero { padding: 72px 0 64px; }
  section.block { padding: 72px 0; }
  .section-title { margin-bottom: 32px; }
  .app, .area-card { padding: 22px; }
  .area-grid { margin-top: 56px; padding-top: 56px; }
  footer .foot-row a { margin-left: 0; }
  .apps-head { margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
