/* ==========================================================================
   yaruha — site styles
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-ink: #0e1726;
  --surface: #ffffff;
  --text: #1a2333;
  --text-muted: #5b6678;
  --text-on-ink: #e8edf5;
  --border: #e3e8ef;
  --accent: #1f6feb;
  --accent-strong: #1557c0;
  --accent-soft: #e8f0fe;
  --good: #12805c;
  --good-soft: #e6f4ee;
  --warn: #b4540a;
  --warn-soft: #fdf1e6;
  --chart-bar: #9ec5ff;
  --chart-base: #1f6feb;
  --chart-max: #e08a1e;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --container: 1120px;
  --font-sans: "Inter", "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b111b;
    --bg-soft: #111a27;
    --bg-ink: #060a11;
    --surface: #131d2b;
    --text: #e6ebf2;
    --text-muted: #9aa6b8;
    --border: #233044;
    --accent: #5b9dff;
    --accent-strong: #84b4ff;
    --accent-soft: #15284a;
    --good: #4cc79a;
    --good-soft: #10291f;
    --warn: #f0a35a;
    --warn-soft: #2e1e0f;
    --chart-bar: #2c4a78;
    --chart-base: #5b9dff;
    --chart-max: #f0a35a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3, h4 { line-height: 1.35; letter-spacing: .01em; margin: 0 0 .6em; word-break: auto-phrase; text-wrap: balance; }
.mission, .hero-lead, .lead { word-break: auto-phrase; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

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

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
  text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.2rem; letter-spacing: .08em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  width: 44px; height: 40px; padding: 0; cursor: pointer; color: var(--text);
}
.nav-toggle svg { margin: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; align-items: center; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--text-muted); text-decoration: none; font-size: .92rem; font-weight: 500;
}
.site-nav a:hover { color: var(--text); background: var(--bg-soft); }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 700; }
.site-nav .nav-cta { background: var(--accent); color: #fff; margin-left: 8px; }
.site-nav .nav-cta:hover { background: var(--accent-strong); color: #fff; }
.site-nav .nav-cta[aria-current="page"] { color: #fff; }

@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 64px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    display: none; padding: 8px 20px 20px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 12px 10px; font-size: 1rem; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--bg-ink); color: var(--text-on-ink);
  padding: 112px 0 104px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(31, 111, 235, .45), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(18, 128, 92, .30), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 85%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow { font-family: var(--font-mono); font-size: .85rem; color: #8fb6ff; letter-spacing: .12em; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; margin-bottom: 24px; color: #fff; }
.hero h1 .accent { background: linear-gradient(90deg, #7fb0ff, #6be0b5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: #c3cddc; max-width: 640px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.page-hero { background: var(--bg-ink); color: var(--text-on-ink); padding: 72px 0 64px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 320px at 90% -20%, rgba(31, 111, 235, .4), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); color: #fff; font-weight: 800; margin-bottom: 16px; }
.page-hero p { color: #c3cddc; max-width: 760px; margin: 0; font-size: 1.05rem; }
.breadcrumb { font-size: .85rem; margin-bottom: 18px; color: #8fa0b8; }
.breadcrumb a { color: #8fa0b8; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  text-decoration: none; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { margin-bottom: 48px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-family: var(--font-mono); font-size: .8rem; font-weight: 600; color: var(--accent); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.section h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; }
.section-head p { color: var(--text-muted); margin: 0; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 80px 0 72px; }
  .page-hero { padding: 56px 0 48px; }
}

/* ---------- cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.15rem; font-weight: 700; }
.card p:last-child { margin-bottom: 0; }

.service-card { display: flex; flex-direction: column; padding: 36px; position: relative; overflow: hidden; }
.service-card .icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 20px; }
.service-card.alt .icon { background: var(--good-soft); color: var(--good); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 4px; }
.service-card .sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; }
.service-card p { color: var(--text); }
.service-card .more { margin-top: auto; padding-top: 12px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.service-card .more::after { content: ""; position: absolute; inset: 0; }
.service-card:hover { border-color: var(--accent); }
.service-card .stat { display: flex; align-items: baseline; gap: 8px; margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--good-soft); color: var(--good); font-weight: 700; }
.service-card .stat strong { font-size: 1.6rem; font-family: var(--font-sans); }

/* ---------- as-is / to-be ---------- */
.compare { display: grid; gap: 16px; }
.compare-head { display: grid; grid-template-columns: 1fr 48px 1fr; gap: 0; font-family: var(--font-mono); font-weight: 700; font-size: .85rem; letter-spacing: .12em; }
.compare-head .asis { color: var(--warn); }
.compare-head .tobe { color: var(--good); }
.compare-row { display: grid; grid-template-columns: 1fr 48px 1fr; align-items: stretch; }
.compare-cell { padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); font-size: .95rem; }
.compare-cell.asis { border-left: 4px solid var(--warn); }
.compare-cell.tobe { border-left: 4px solid var(--good); }
.compare-arrow { display: grid; place-items: center; color: var(--text-muted); }
.compare-label { display: none; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .12em; margin-bottom: 4px; }
@media (max-width: 760px) {
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; gap: 0; }
  .compare-arrow { padding: 6px 0; transform: rotate(90deg); }
  .compare-label { display: block; }
  .compare-cell.asis .compare-label { color: var(--warn); }
  .compare-cell.tobe .compare-label { color: var(--good); }
}

/* ---------- figure / chart ---------- */
.figure { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin: 0; }
.figure figcaption { color: var(--text-muted); font-size: .88rem; margin-top: 12px; text-align: center; }
.figure svg { width: 100%; height: auto; }
.svg-text { fill: var(--text); font-family: var(--font-sans); }
.svg-muted { fill: var(--text-muted); font-family: var(--font-sans); }
.svg-axis { stroke: var(--text); }
.svg-grid { stroke: var(--border); }
.svg-zone { fill: var(--accent); fill-opacity: .18; stroke: var(--accent); stroke-width: 2; }
.svg-zone-label { fill: var(--accent); font-weight: 700; font-family: var(--font-sans); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; font-size: .85rem; color: var(--text-muted); margin-bottom: 8px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; }
.chart-legend i.bar { height: 12px; width: 12px; border-radius: 3px; background: var(--chart-bar); }
.chart-legend i.base { background: var(--chart-base); }
.chart-legend i.max { background: var(--chart-max); }
.chart-table { width: 100%; border-collapse: collapse; font-size: .85rem; margin-top: 16px; }
.chart-table th, .chart-table td { padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--border); }
.chart-table th { color: var(--text-muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
details.data-toggle { margin-top: 12px; font-size: .88rem; }
details.data-toggle summary { cursor: pointer; color: var(--text-muted); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; list-style: none; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px 24px; }
.step-num { font-family: var(--font-mono); font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .1em; margin-bottom: 8px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { font-size: .92rem; color: var(--text-muted); }
.checklist { list-style: none; display: grid; gap: 6px; }
.checklist li { position: relative; padding-left: 24px; font-size: .92rem; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-50%);
}
.checklist .note { display: block; color: var(--text-muted); font-size: .85rem; }

/* ---------- tools ---------- */
.tool { display: flex; gap: 16px; align-items: flex-start; }
.tool-badge { flex: none; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 4px 8px; margin-top: 3px; }
.tool h3 { font-size: 1.05rem; margin-bottom: 6px; font-family: var(--font-mono); }
.tool p { font-size: .92rem; color: var(--text-muted); }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 880px; margin: 0 auto; }
@media (max-width: 720px) { .pricing { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; padding: 36px 32px; }
.plan.featured { border: 2px solid var(--accent); }
.plan-name { font-family: var(--font-mono); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-size: .9rem; margin-bottom: 8px; }
.plan-price { font-size: 2.4rem; font-weight: 800; line-height: 1.2; margin-bottom: 4px; }
.plan-price small { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.plan-price .ask { font-size: 2rem; }
.plan .checklist { margin: 20px 0 28px; flex: 1; }
.plan .btn { width: 100%; }
.price-note { text-align: center; color: var(--text-muted); font-size: .88rem; margin-top: 20px; }

/* ---------- target list ---------- */
.target-list { list-style: none; display: grid; gap: 12px; }
.target-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.target-list li svg { flex: none; color: var(--accent); margin-top: 3px; }

/* ---------- reward list ---------- */
.reward-list { list-style: none; display: grid; gap: 12px; }
.reward-list li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.reward-pill { font-weight: 800; color: var(--good); background: var(--good-soft); border-radius: 999px; padding: 4px 12px; font-size: .9rem; white-space: nowrap; }
.merit-list { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.merit-list li { padding-left: 20px; position: relative; }
.merit-list li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.feature h3 { display: flex; align-items: center; gap: 10px; }
.feature .num { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); }

.callout { border-radius: var(--radius); padding: 32px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.callout h3 { font-size: 1.3rem; }

/* ---------- company ---------- */
.company { display: grid; grid-template-columns: 160px 1fr; border-top: 1px solid var(--border); margin: 0; }
.company dt, .company dd { padding: 18px 4px; border-bottom: 1px solid var(--border); margin: 0; }
.company dt { color: var(--text-muted); font-weight: 600; font-size: .92rem; }
@media (max-width: 560px) {
  .company { grid-template-columns: 1fr; }
  .company dt { border-bottom: none; padding-bottom: 0; }
  .company dd { padding-top: 4px; }
}
.timeline { list-style: none; position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 20px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { background: var(--accent); }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); filter: saturate(.9); }

/* ---------- contact ---------- */
.form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); }
.form-wrap iframe { width: 100%; height: 1400px; border: 0; border-radius: calc(var(--radius) - 6px); background: #fff; }
.form-fallback { text-align: center; font-size: .9rem; color: var(--text-muted); margin-top: 16px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-ink); color: var(--text-on-ink); padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 260px at 50% 120%, rgba(31, 111, 235, .45), transparent 70%); pointer-events: none; }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.cta-band p { color: #c3cddc; margin-bottom: 28px; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 48px 0 32px; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; }
.footer-nav a { color: var(--text-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--text); }
.footer-desc { color: var(--text-muted); margin: 8px 0 0; font-size: .85rem; }
.copyright { color: var(--text-muted); font-size: .8rem; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn .arrow { transition: none; }
}

/* ==========================================================================
   v2 components
   ========================================================================== */

.lead { font-size: 1.08rem; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.small { font-size: .88rem; }
.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.center { text-align: center; }

/* hero with visual */
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1.jp { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.45; }
.hero-solo { max-width: 760px; }

/* hero background loop (DevOps ∞) */
.hero-loop { position: absolute; top: 54%; left: 50%; width: min(760px, 92vw); transform: translate(-50%, -50%); pointer-events: none; overflow: visible; }
.hero-solo { position: relative; }
.hero-solo::before { content: ""; position: absolute; inset: -40px -60px; z-index: -1; background: radial-gradient(closest-side, rgba(11,18,30,.75), transparent); pointer-events: none; }
.hero-loop path, .hero-loop use { fill: none; stroke-linecap: round; }
.hero-loop .loop-glow { stroke: url(#loopGrad); stroke-width: 16; opacity: .06; }
.hero-loop .loop-echo { stroke: #7f9cc4; stroke-width: .6; stroke-dasharray: 2 5; opacity: .35; }
.hero-loop .loop-line { stroke: url(#loopGrad); stroke-width: 1.2; opacity: .45; }
.hero-loop .loop-pulse { stroke: #cfe0ff; stroke-width: 2; stroke-dasharray: 40 960; opacity: .7; }
.hero-loop .loop-pulse-2 { stroke-dashoffset: -500; }
.hero-loop .loop-nodes circle { fill: #0e1726; stroke: url(#loopGrad); stroke-width: 1.2; opacity: .8; }
.hero-loop .loop-steps text { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .08em; fill: #7d90ab; opacity: .6; }@media (prefers-reduced-motion: no-preference) {
  .hero-loop .loop-pulse { animation: loop-run 14s linear infinite; }
  .hero-loop .loop-pulse-2 { animation-delay: -7s; }
}
@media (prefers-reduced-motion: reduce) { .hero-loop .loop-pulse { display: none; } }
@keyframes loop-run { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1000; } }
@media (max-width: 960px) {
  .hero-loop { width: 120vw; }
  .hero-solo::before { display: none; }
  .hero-loop .loop-steps text { font-size: 13px; }
  /* 画面外にはみ出す外側のラベルを、ループの内側へ */
  .hero-loop .ls-code    { text-anchor: start; transform: translate(26px, 13px); }
  .hero-loop .ls-build   { text-anchor: start; transform: translate(30px, -9px); }
  .hero-loop .ls-deploy  { text-anchor: end;   transform: translate(-28px, 11px); }
  .hero-loop .ls-operate { text-anchor: end;   transform: translate(-27px, -12px); }
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hero-tags span { font-size: .8rem; color: #b9c6da; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 4px 12px; }

/* problem chips */
.problem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .problem-grid { grid-template-columns: 1fr; } }
.problem { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.problem svg { flex: none; color: var(--warn); margin-top: 4px; }

/* service cards v2 */
.svc { display: flex; flex-direction: column; gap: 0; padding: 36px; position: relative; }
.svc .label { font-family: var(--font-mono); font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); margin-bottom: 8px; }
.svc.alt .label { color: var(--good); }
.svc h3 { font-size: 1.45rem; margin-bottom: 12px; }
.svc .for { font-size: .9rem; color: var(--text-muted); margin-bottom: 16px; }
.svc .checklist { margin-bottom: 24px; }
.svc .price { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-soft); margin: auto 0 20px; }
.svc .price strong { font-size: 1.35rem; }
.svc .price span { font-size: .85rem; color: var(--text-muted); }
.svc.alt .checklist li::before { border-color: var(--good); }

/* principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: pr; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr; } }
.principle { padding: 32px 28px; border-top: 3px solid var(--accent); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); }
.principle .n { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); font-weight: 700; letter-spacing: .1em; }
.principle h3 { font-size: 1.2rem; margin: 8px 0 12px; }
.principle p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* founder */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start; }
@media (max-width: 640px) { .founder { grid-template-columns: 1fr; gap: 20px; } }
.avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; display: block; background: var(--bg-soft); box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--border); }
.founder .role { color: var(--text-muted); font-size: .9rem; margin: 0 0 4px; }
.founder h3 { font-size: 1.5rem; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; list-style: none; }
.chips li { font-size: .82rem; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }

/* plans v2 */
.plan-tag { display: inline-block; font-size: .75rem; font-weight: 700; color: #fff; background: var(--accent); border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: middle; letter-spacing: .04em; }
.plan h3 { font-size: 1.35rem; margin-bottom: 6px; }
.plan-desc { color: var(--text-muted); font-size: .92rem; margin-bottom: 16px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.compare-table th, .compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--bg-soft); font-size: .85rem; color: var(--text-muted); }
.compare-table td.yes { color: var(--good); font-weight: 700; }
.compare-table td.no { color: var(--text-muted); }
.compare-table tr:last-child td, .compare-table tr:last-child th { border-bottom: none; }

/* capability groups */
.cap { padding: 28px; }
.cap .goal { font-family: var(--font-mono); font-size: .78rem; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.cap h3 { font-size: 1.15rem; margin: 6px 0 10px; }
.cap p { font-size: .93rem; color: var(--text-muted); }
.cap ul { list-style: none; display: grid; gap: 8px; margin-top: 14px; }
.cap li { font-size: .9rem; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg-soft); }
.cap li b { font-family: var(--font-mono); font-weight: 700; display: block; font-size: .85rem; }

/* fee stack */
.fee-stack { display: grid; gap: 16px; }
.fee-layer { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
@media (max-width: 560px) { .fee-layer { grid-template-columns: 1fr; gap: 8px; } }
.fee-layer .amt { font-size: 1.7rem; font-weight: 800; line-height: 1.2; color: var(--accent); }
.fee-layer.r .amt { color: var(--good); }
.fee-layer.x .amt { color: var(--chart-max); }
.fee-layer h3 { font-size: 1.1rem; margin-bottom: 6px; }
.fee-layer p { font-size: .93rem; color: var(--text-muted); margin-bottom: 8px; }
.fee-layer ul { list-style: none; display: grid; gap: 6px; }
.fee-layer li { font-size: .92rem; padding-left: 18px; position: relative; }
.fee-layer li::before { content: "−1%"; position: absolute; left: -2px; font-size: .7rem; font-weight: 800; color: var(--good); top: .25em; }
.fee-layer li { padding-left: 36px; }
.fee-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding: 24px; border-radius: var(--radius); background: var(--bg-ink); color: #fff; font-weight: 700; }
.fee-result .eq { font-size: 1.1rem; color: #c3cddc; }
.fee-result strong { font-size: 2rem; color: #6be0b5; }

/* simulator */
.sim { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 820px) { .sim { grid-template-columns: 1fr; } }
.sim-in { padding: 28px; display: grid; gap: 20px; }
.sim-out { padding: 28px; background: var(--bg-ink); color: #e8edf5; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.field label, .field legend { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.field input[type="number"], .field select {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px;
}
.input-yen { position: relative; }
.input-yen input { padding-right: 40px !important; }
.input-yen span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: .9rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; padding: 8px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--accent); flex: none; }
.check small { display: block; color: var(--text-muted); font-size: .8rem; }
.sim-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 12px; }
.sim-row span { color: #9fb0c8; font-size: .9rem; }
.sim-row b { font-size: 1.3rem; }
.sim-row.big b { font-size: 2.1rem; color: #6be0b5; }
.sim-note { font-size: .78rem; color: #8a99b0; margin: 0; }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q."; color: var(--accent); font-family: var(--font-mono); margin-right: 10px; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--text-muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-muted); padding-bottom: 18px; margin: 0; font-size: .95rem; }

/* mission */
.mission { font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 800; line-height: 1.5; margin: 0 0 24px; }
.mission em { font-style: normal; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 28%, transparent) 62%); }

/* contact types */
.ctype { padding: 26px; }
.ctype h3 { font-size: 1.1rem; display: flex; gap: 10px; align-items: center; }
.ctype h3 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.ctype.g h3 .dot { background: var(--good); }
.ctype.w h3 .dot { background: var(--chart-max); }
.ctype p { font-size: .92rem; color: var(--text-muted); }
.ctype .hint { font-size: .85rem; border-top: 1px dashed var(--border); padding-top: 12px; margin-top: 12px; }
.ctype .hint b { display: block; margin-bottom: 4px; color: var(--text); }

/* v3 additions */
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; list-style: none; }
.tag-row li { font-family: var(--font-mono); font-size: .76rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); }
.theme-card { display: flex; flex-direction: column; padding: 28px; }
.theme-card .ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.theme-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.theme-card p { font-size: .93rem; color: var(--text-muted); margin: 0; }
.theme-card.new .ic { background: var(--good-soft); color: var(--good); }
.side-band { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
@media (max-width: 720px) { .side-band { grid-template-columns: 1fr; } }
.side-band h3 { font-size: 1.2rem; margin-bottom: 6px; }
.side-band p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.plan-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
@media (max-width: 640px) { .plan-mini { grid-template-columns: 1fr; } }
.plan-mini > div { padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.plan-mini b { display: block; font-size: 1.05rem; }
.plan-mini .p { font-size: 1.5rem; font-weight: 800; margin: 4px 0; }
.plan-mini span { color: var(--text-muted); font-size: .88rem; }
.err-code { font-family: var(--font-mono); font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; color: var(--accent); margin-bottom: 16px; }

.checklist.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; margin-top: 8px; }
@media (max-width: 720px) { .checklist.cols-2 { grid-template-columns: 1fr; } }
#requests h3 { font-size: 1.25rem; }

.case-summary { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; margin: 0; }
@media (max-width: 720px) { .case-summary { grid-template-columns: 1fr; } }
.case-summary > div { padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.case-summary dt { font-size: .82rem; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.case-summary dd { margin: 0; font-size: .95rem; }
.case-summary dd strong { font-size: 1.5rem; font-weight: 800; }
.prose h2 { font-size: 1.2rem; margin: 2.2em 0 .6em; }
.prose ul { list-style: disc; padding-left: 1.4em; display: grid; gap: 6px; }
.copyright a { color: var(--text-muted); }
.copyright a:hover { color: var(--text); }

.flow-inline { list-style: none; counter-reset: fl; display: flex; flex-wrap: wrap; gap: 10px; }
.flow-inline li { counter-increment: fl; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: .95rem; }
.flow-inline li::before { content: counter(fl); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; }
.flow-inline li:not(:last-child)::after { content: "→"; color: var(--text-muted); margin-left: 6px; }

.notice { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .93rem; }
