/* =============================================================
   ai-raku.com 共通デザインシステム (brand.css)
   青系ブランド / digirise水準のクリーンUI
   ============================================================= */

:root {
  /* --- ink / text --- */
  --ink: #0a0b0d;
  --ink-2: #1b2330;
  --sub: #5a6473;
  --sub-2: #8791a1;

  /* --- lines / backgrounds --- */
  --line: #e9ebf0;
  --line-2: #f1f3f7;
  --bg: #ffffff;
  --gray: #f6f7f9;
  --gray-2: #eef1f6;

  /* --- accent (青系) --- */
  --accent: #1a6df0;
  --accent-d: #0f56c9;
  --accent-l: #5a94f6;
  --accent-t: #eef3ff;

  /* --- secondary --- */
  --indigo: #5b53f0;
  --cyan: #12b8c9;

  /* --- サービス別アクセント --- */
  --c-seizo: #f0821a;
  --c-kensetsu: #0f9d8f;
  --c-shigyo: #5b53f0;
  --c-kaigo: #12a26b;
  --c-fudosan: #e0518a;
  --c-butsuryu: #0aa3c2;
  --c-tools: #8b5cf6;

  /* --- shadows --- */
  --sh-1: 0 1px 2px rgba(11,14,20,.05), 0 4px 14px rgba(11,14,20,.05);
  --sh-2: 0 18px 44px rgba(11,14,20,.10);
  --sh-3: 0 30px 70px rgba(11,14,20,.16);

  /* --- layout --- */
  --maxw: 1160px;
  --radius: 18px;

  /* --- page-level theme color (ページごとに上書き可) --- */
  --theme: var(--accent);
  --theme-d: var(--accent-d);
  --theme-t: var(--accent-t);
}

/* ---------- サービス別ページテーマ（bodyに付与して --accent 系を上書き） ---------- */
.theme-consulting { --accent: #f0821a; --accent-d: #c96a12; --accent-l: #f4a153; --accent-t: #fdf1e6; --theme: #f0821a; --theme-d: #c96a12; --theme-t: #fdf1e6; }
.theme-spot { --accent: #12b8c9; --accent-d: #0e93a1; --accent-l: #4fcdd9; --accent-t: #e8fafc; --theme: #12b8c9; --theme-d: #0e93a1; --theme-t: #e8fafc; }
.theme-implementation { --accent: #0f9d8f; --accent-d: #0c7d72; --accent-l: #3bb5a9; --accent-t: #e6f5f3; --theme: #0f9d8f; --theme-d: #0c7d72; --theme-t: #e6f5f3; }
.theme-training { --accent: #5b53f0; --accent-d: #463fd0; --accent-l: #8079f4; --accent-t: #eeecfd; --theme: #5b53f0; --theme-d: #463fd0; --theme-t: #eeecfd; }

/* ---------- reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-d); }

h1, h2, h3, h4 { font-weight: 900; line-height: 1.25; color: var(--ink); margin: 0; letter-spacing: -.01em; }

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

/* ---------- focus ring (a11y) ---------- */
:focus-visible {
  outline: 3px solid var(--accent-l);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 92px 0; }
.section--gray { background: var(--gray); }
.section--tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .14em;
  color: var(--theme); text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--theme); border-radius: 2px;
}

.sec-head { margin-bottom: 46px; max-width: 760px; }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 40px); }
.sec-head .lead { color: var(--sub); margin-top: 16px; font-size: 17px; }

.center { text-align: center; }
.center .sec-head { margin-left: auto; margin-right: auto; }
.center .eyebrow::before { display: none; }
.center .eyebrow { margin-left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 800; font-size: 15.5px; line-height: 1;
  padding: 16px 26px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--theme); color: #fff; box-shadow: 0 8px 22px rgba(26,109,240,.28);
}
.btn--primary:hover { background: var(--theme-d); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(26,109,240,.34); }
.btn--ghost {
  background: #fff; color: var(--ink-2); border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--theme); color: var(--theme); transform: translateY(-2px); box-shadow: var(--sh-1); }
.btn--lg { padding: 18px 32px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line), var(--sh-1); border-color: var(--line-2); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; color: var(--ink); font-size: 17px; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand .logo-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent), var(--indigo));
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 900;
  box-shadow: 0 5px 14px rgba(26,109,240,.32);
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); font-weight: 700; font-size: 14.5px; padding: 9px 13px; border-radius: 9px; }
.nav a:hover { color: var(--accent); background: var(--accent-t); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 12px 20px; font-size: 14.5px; }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 76px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 520px at 80% -8%, rgba(26,109,240,.10), transparent 60%),
    radial-gradient(760px 420px at 6% 8%, rgba(91,83,240,.08), transparent 62%),
    linear-gradient(180deg, #fbfcff, #ffffff 62%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 0 18px;
  background: var(--accent-t); color: var(--accent-d);
  font-weight: 800; font-size: 13px; padding: 7px 15px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff);
}
.hero-badge::before { content: "◎"; font-size: 13px; }
.hero h1 { font-size: clamp(32px, 6vw, 64px); letter-spacing: -.02em; }
.hero-lead strong { color: var(--accent-d); font-weight: 800; }
.hero .hero-lead { color: var(--sub); font-size: clamp(16px, 1.7vw, 19px); margin-top: 22px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* hero stats */
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; max-width: 640px; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px;
  box-shadow: var(--sh-1);
}
.stat-card .stat-num { font-size: clamp(26px, 4vw, 36px); font-weight: 900; color: var(--theme); letter-spacing: -.02em; line-height: 1.1; }
.stat-card .stat-label { color: var(--sub); font-size: 13px; font-weight: 700; margin-top: 6px; }

/* ---------- generic cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--sh-1);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--sub); font-size: 15px; }

.card-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 18px;
  background: var(--theme-t); color: var(--theme);
}

/* checklist */
.checklist { margin-top: 14px; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.checklist li::before {
  content: "✓"; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: var(--theme); color: #fff; font-size: 12px; font-weight: 900;
  display: grid; place-items: center; margin-top: 2px;
}

/* fit list (こんな企業に) */
.fit-list { display: grid; gap: 14px; }
.fit-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px;
  box-shadow: var(--sh-1);
}
.fit-item p { color: var(--ink-2); font-weight: 600; font-size: 15px; }

/* ---------- impact / counters ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.impact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px;
  box-shadow: var(--sh-1); text-align: center;
}
.impact-card .impact-num { font-size: clamp(34px, 5vw, 52px); font-weight: 900; color: var(--theme); letter-spacing: -.03em; line-height: 1; }
.impact-card .impact-label { color: var(--sub); font-weight: 700; margin-top: 12px; font-size: 14.5px; }

/* ---------- price ---------- */
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 40px;
  box-shadow: var(--sh-2); max-width: 560px; margin: 0 auto; position: relative; overflow: hidden;
}
.price-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--theme), var(--indigo));
}
.price-badge {
  display: inline-block; background: var(--theme-t); color: var(--theme);
  font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.price-main { display: flex; align-items: baseline; gap: 6px; }
.price-main .yen { font-size: 18px; font-weight: 800; color: var(--ink-2); }
.price-main .amt { font-size: clamp(44px, 7vw, 62px); font-weight: 900; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.price-main .per { font-size: 17px; color: var(--sub); font-weight: 700; }
.price-note { color: var(--sub); font-size: 14px; margin-top: 8px; }
.price-features { margin-top: 26px; display: grid; gap: 12px; padding-top: 26px; border-top: 1px solid var(--line); }
.price-features li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink-2); font-size: 15px; }
.price-features li::before { content: "✓"; color: var(--theme); font-weight: 900; }
.price-features li.has-ic::before { content: none; }
.price-features li .ic { width: 18px; height: 18px; color: var(--theme); margin-top: 2px; flex: 0 0 auto; }
.price-card .btn { margin-top: 28px; }

/* ---------- anchor scroll offset (sticky header + subnav) ---------- */
section[id] { scroll-margin-top: 132px; }

/* ---------- subnav (page-internal, sticky) ---------- */
.subnav {
  position: sticky; top: 70px; z-index: 90;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; height: 54px; align-items: center; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a {
  font-size: 14px; font-weight: 700; color: var(--sub); padding: 8px 14px; border-radius: 8px;
  white-space: nowrap; position: relative;
}
.subnav a:hover { color: var(--theme); background: var(--theme-t); }
.subnav a.is-active { color: var(--theme); background: var(--theme-t); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-1); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 22px 24px; font-weight: 800; font-size: 16px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: inherit;
}
.faq-q .faq-icon { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; background: var(--theme-t); color: var(--theme); display: grid; place-items: center; font-weight: 900; transition: transform .25s ease; }
.faq-q .faq-icon .ic { width: 14px; height: 14px; }
.faq-item.is-open .faq-q .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--sub); font-size: 15px; }

/* ---------- 相談フォーム (HubSpot埋め込み) ---------- */
.soudan-form-wrap {
  max-width: 640px; margin: 0 auto; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 40px; box-shadow: var(--sh-2);
}
.soudan-form-wrap .hs-form-frame { min-height: 420px; }
.soudan-form-wrap .soudan-fallback { text-align: center; margin-top: 18px; }
@media (max-width: 760px) {
  .soudan-form-wrap { padding: 28px 20px; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent-d), var(--indigo));
  border-radius: 26px; padding: 56px 48px; text-align: center; color: #fff;
  box-shadow: var(--sh-3); position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(600px 300px at 90% 0%, rgba(255,255,255,.18), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3.4vw, 36px); position: relative; }
.cta-band p { color: rgba(255,255,255,.9); margin-top: 14px; font-size: 17px; position: relative; }
.cta-band .btn { position: relative; margin-top: 28px; }
.cta-band .btn--primary { background: #fff; color: var(--accent-d); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.cta-band .btn--primary:hover { background: #fff; color: var(--accent-d); transform: translateY(-2px); }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

/* ---------- service switch mini cards ---------- */
.svc-switch { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.svc-mini {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 18px;
  box-shadow: var(--sh-1); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  border-top: 3px solid var(--sc, var(--accent));
}
.svc-mini:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.svc-mini .svc-name { font-weight: 800; font-size: 14.5px; color: var(--ink); margin-top: 10px; line-height: 1.4; }
.svc-mini.is-current { border-color: var(--accent); background: var(--accent-t); box-shadow: var(--sh-2); }
.svc-mini.is-current .svc-badge { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 800; color: var(--accent); }
.svc-badge { display: none; }

/* ---------- service hub cards ---------- */
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--sh-1); position: relative; overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
  border-top: 4px solid var(--sc, var(--accent));
}
.svc-card:hover { transform: translateY(-7px); box-shadow: var(--sh-2); }
.svc-card .svc-ico {
  width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center; font-size: 28px;
  background: color-mix(in srgb, var(--sc, var(--accent)) 12%, #fff);
  margin-bottom: 20px;
}
.svc-card h3 { font-size: 20px; margin-bottom: 12px; }
.svc-card p { color: var(--sub); font-size: 15px; flex: 1; }
.svc-card .svc-link { margin-top: 20px; font-weight: 800; font-size: 15px; color: var(--sc, var(--accent)); display: inline-flex; align-items: center; gap: 6px; }
.svc-card .svc-link .arrow { transition: transform .18s ease; }
.svc-card:hover .svc-link .arrow { transform: translateX(4px); }
.svc-card .svc-tag { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 800; color: var(--sub-2); letter-spacing: .08em; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 56px 0 40px; margin-top: 0; }
.site-footer .foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .brand { color: #fff; }
.site-footer .foot-tagline { margin-top: 14px; font-size: 14px; max-width: 320px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 40px; }
.foot-col h4 { color: #fff; font-size: 13px; letter-spacing: .06em; margin-bottom: 14px; }
.foot-col a { display: block; color: rgba(255,255,255,.72); font-size: 14px; padding: 5px 0; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; font-size: 13px; color: rgba(255,255,255,.55); }
.foot-bottom a { color: rgba(255,255,255,.55); }
.foot-bottom a:hover { color: #fff; }

/* ---------- mobile fixed CTA bar ---------- */
.mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(11,14,20,.08);
}
.mobile-cta .btn { width: 100%; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .svc-cards { grid-template-columns: repeat(2, 1fr); }
  .svc-switch { grid-template-columns: repeat(5, 1fr); gap: 10px; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .header-cta .btn { display: none; }
  .nav {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--sh-2);
    padding: 12px 16px 18px;
    display: none;
  }
  .nav.is-mobile-open { display: flex; }
  .nav a { font-size: 16px; padding: 12px 14px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
    cursor: pointer; color: var(--ink); font-size: 18px;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat-card { padding: 16px 12px; }
  .impact-grid { grid-template-columns: 1fr; }
  .svc-cards { grid-template-columns: 1fr; }
  .svc-switch { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 42px 22px; }
  .price-card { padding: 30px 22px; }
  .mobile-cta { display: block; }
  body.has-mobile-cta { padding-bottom: 84px; }
  .subnav { display: none; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats .stat-card { display: flex; align-items: baseline; gap: 12px; }
  .hero-stats .stat-card .stat-label { margin-top: 0; }
  .svc-switch { grid-template-columns: 1fr; }
}

/* =============================================================
   自作インラインSVGアイコン（ラインアイコン共通スタイル）
   .ic = <svg><use href="#ic-xxx"/></svg> を包む基底クラス。
   currentColor でテーマ色を反映。角丸線端・stroke統一。
   ============================================================= */
.ic {
  width: 1em; height: 1em; flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  overflow: visible;
}
/* 塗り前提の小要素（点など）は個別に指定 */
.ic .fill { fill: currentColor; stroke: none; }

/* カードアイコン枠の中でSVGを表示 */
.card-ico .ic { width: 26px; height: 26px; }
.svc-card .svc-ico .ic { width: 28px; height: 28px; color: var(--sc, var(--accent)); }
.svc-mini .svc-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin: 0 auto; background: color-mix(in srgb, var(--sc, var(--accent)) 12%, #fff); color: var(--sc, var(--accent)); }
.svc-mini .svc-ico .ic { width: 24px; height: 24px; }
.fit-item .fit-ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; background: var(--theme-t); color: var(--theme); display: grid; place-items: center; }
.fit-item .fit-ico .ic { width: 22px; height: 22px; }
.checklist li.has-ic::before { content: none; }
.checklist li .ic { width: 20px; height: 20px; color: var(--theme); margin-top: 2px; }

/* =============================================================
   装飾イラスト（幾何学フラット・aria-hidden）
   ============================================================= */
.illus { display: block; width: 100%; height: auto; }
.hero-illus {
  width: 100%; max-width: 520px; height: auto; margin-left: auto;
  filter: drop-shadow(0 26px 50px rgba(26,109,240,.16));
}
.hero .wrap.hero-split {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.spot-illus { width: 100%; max-width: 340px; height: auto; margin: 0 auto; }
.section-illus-row { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }

/* =============================================================
   導入の流れ タイムライン（強化：SVGマーカー＋番号＋アイコン）
   ============================================================= */
.timeline {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
  position: relative; counter-reset: tl;
}
.timeline::before {
  content: ""; position: absolute; top: 30px; left: 8%; right: 8%; height: 3px;
  background: linear-gradient(90deg, var(--theme-t), var(--theme) 20%, var(--theme) 80%, var(--theme-t));
  border-radius: 3px; z-index: 0;
}
.timeline-step { position: relative; z-index: 1; text-align: center; }
.tl-marker {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px;
  background: #fff; border: 3px solid var(--theme); color: var(--theme);
  display: grid; place-items: center; position: relative;
  box-shadow: var(--sh-1);
}
.tl-marker .ic { width: 26px; height: 26px; }
.tl-no {
  position: absolute; top: -8px; right: -8px;
  min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px;
  background: var(--theme); color: #fff; font-size: 12px; font-weight: 900;
  display: grid; place-items: center; box-shadow: var(--sh-1);
}
.timeline-step.is-continuous .tl-marker { border-style: dashed; background: var(--theme-t); }
.tl-body h3 { font-size: 15.5px; margin-bottom: 6px; }
.tl-body p { color: var(--sub); font-size: 13.5px; }
.timeline-lead {
  text-align: center; margin: 0 auto 40px; max-width: 640px; color: var(--sub);
  background: var(--theme-t); border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 14.5px;
}
.timeline-lead strong { color: var(--theme-d); }

/* =============================================================
   代表者プロフィール / FOUNDER
   ============================================================= */
.founder {
  display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 44px; box-shadow: var(--sh-2); max-width: 940px; margin: 0 auto;
}
.founder-photo-wrap {
  position: relative; width: 240px; height: 240px; margin: 0 auto; border-radius: 24px; overflow: hidden;
  background: linear-gradient(135deg, var(--accent-t), #fff);
  box-shadow: var(--sh-1);
}
.founder-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-avatar-fallback { position: absolute; inset: 0; display: none; }
.founder-name { font-size: 24px; margin-bottom: 4px; }
.founder-role { color: var(--theme); font-weight: 800; font-size: 14px; letter-spacing: .04em; margin-bottom: 18px; }
.founder-bio { color: var(--ink-2); font-size: 15.5px; line-height: 1.9; }
.founder-bio + .founder-bio { margin-top: 12px; }
.founder-sns { display: flex; gap: 10px; margin-top: 22px; }
.founder-sns a {
  width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--sub); background: #fff;
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.founder-sns a:hover { color: var(--theme); border-color: var(--theme); transform: translateY(-2px); }
.founder-sns .ic { width: 20px; height: 20px; }

/* =============================================================
   MEDIA（最新記事）セクション
   ============================================================= */
.media-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.media-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--sh-1);
  transition: transform .22s ease, box-shadow .22s ease;
}
.media-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.media-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.media-thumb svg { width: 100%; height: 100%; display: block; }
.media-cat {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: rgba(255,255,255,.92); color: var(--theme-d); backdrop-filter: blur(4px);
  font-size: 11.5px; font-weight: 800; padding: 5px 11px; border-radius: 999px;
}
.media-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.media-date { color: var(--sub-2); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
.media-title { font-size: 16px; font-weight: 800; color: var(--ink); margin: 8px 0 0; line-height: 1.55; flex: 1; }
.media-card:hover .media-title { color: var(--theme-d); }
.media-more { margin-top: 16px; font-weight: 800; font-size: 14px; color: var(--theme); display: inline-flex; align-items: center; gap: 6px; }
.media-more .ic { width: 16px; height: 16px; }

/* =============================================================
   AI導入診断（対話式・自己完結）
   ============================================================= */
.quiz {
  max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: 24px; box-shadow: var(--sh-2); padding: 40px; position: relative; overflow: hidden;
}
.quiz::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--theme), var(--indigo)); }
.quiz-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.quiz-progress-label { font-size: 13px; font-weight: 800; color: var(--theme); letter-spacing: .06em; white-space: nowrap; }
.quiz-bar { flex: 1; height: 8px; background: var(--gray-2); border-radius: 999px; overflow: hidden; }
.quiz-bar > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--theme), var(--indigo)); border-radius: 999px; transition: width .4s ease; }
.quiz-q { font-size: clamp(19px, 2.4vw, 24px); font-weight: 900; color: var(--ink); margin: 20px 0 22px; line-height: 1.45; }
.quiz-options { display: grid; gap: 12px; }
.quiz-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 18px;
  font-family: inherit; font-size: 15.5px; font-weight: 700; color: var(--ink-2); cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .12s ease;
}
.quiz-opt:hover { border-color: var(--theme); background: var(--theme-t); transform: translateX(3px); }
.quiz-opt .opt-key {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background: var(--theme-t); color: var(--theme);
  display: grid; place-items: center; font-weight: 900; font-size: 14px; transition: background .18s ease, color .18s ease;
}
.quiz-opt:hover .opt-key, .quiz-opt:focus-visible .opt-key { background: var(--theme); color: #fff; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.quiz-back { background: none; border: none; color: var(--sub); font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; padding: 8px 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; }
.quiz-back:hover { color: var(--theme); }
.quiz-back .ic { width: 16px; height: 16px; }
.quiz-back[hidden] { visibility: hidden; }

/* 結果画面 */
.quiz-result { text-align: center; }
.quiz-result-level {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  margin: 0 auto 20px;
}
.quiz-level-ring {
  width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--theme) calc(var(--lv) * 20%), var(--gray-2) 0);
  position: relative;
}
.quiz-level-ring::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
.quiz-level-ring b { position: relative; z-index: 1; font-size: 34px; font-weight: 900; color: var(--theme); line-height: 1; }
.quiz-level-ring small { position: relative; z-index: 1; font-size: 11px; font-weight: 800; color: var(--sub); letter-spacing: .1em; }
.quiz-result h3 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
.quiz-result .quiz-desc { color: var(--sub); font-size: 15.5px; max-width: 520px; margin: 0 auto 24px; }
.quiz-reco {
  display: flex; gap: 16px; align-items: center; text-align: left;
  background: var(--theme-t); border: 1px solid color-mix(in srgb, var(--theme) 20%, #fff);
  border-radius: 16px; padding: 20px 22px; max-width: 520px; margin: 0 auto 26px;
}
.quiz-reco .reco-ico { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; background: #fff; color: var(--theme); display: grid; place-items: center; box-shadow: var(--sh-1); }
.quiz-reco .reco-ico .ic { width: 26px; height: 26px; }
.quiz-reco .reco-label { font-size: 12px; font-weight: 800; color: var(--theme); letter-spacing: .06em; }
.quiz-reco .reco-name { font-size: 17px; font-weight: 900; color: var(--ink); margin: 2px 0 4px; }
.quiz-reco .reco-name a { color: var(--ink); }
.quiz-reco .reco-name a:hover { color: var(--theme-d); }
.quiz-reco .reco-why { font-size: 13.5px; color: var(--ink-2); }
.quiz-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.quiz-restart { background: none; border: 1.5px solid var(--line); color: var(--ink-2); font-family: inherit; font-weight: 800; font-size: 15px; padding: 15px 24px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: border-color .18s ease, color .18s ease; }
.quiz-restart:hover { border-color: var(--theme); color: var(--theme); }
.quiz-restart .ic { width: 18px; height: 18px; }
.quiz-fallback { text-align: center; }
.quiz-fallback .btn { margin-top: 20px; }
.quiz-panel[hidden] { display: none; }
.quiz-fade { animation: quizFade .35s ease; }
@keyframes quizFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* =============================================================
   新規セクションのレスポンシブ
   ============================================================= */
@media (max-width: 960px) {
  .hero .wrap.hero-split { grid-template-columns: 1fr; gap: 28px; }
  .hero-illus { max-width: 420px; margin: 0 auto; }
  .section-illus-row { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before {
    top: 0; bottom: 0; left: 30px; right: auto; width: 3px; height: auto;
    background: linear-gradient(180deg, var(--theme-t), var(--theme) 12%, var(--theme) 88%, var(--theme-t));
  }
  .timeline-step { display: grid; grid-template-columns: 60px 1fr; gap: 18px; text-align: left; padding-bottom: 26px; }
  .tl-marker { margin: 0; }
  .tl-body { padding-top: 8px; }
  .founder { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; text-align: center; }
  .founder-sns { justify-content: center; }
  .media-grid { grid-template-columns: 1fr; }
  .quiz { padding: 28px 20px; }
  .quiz-reco { flex-direction: column; text-align: center; }
}
@media (max-width: 400px) {
  .founder-photo-wrap { width: 200px; height: 200px; }
  .quiz-opt { font-size: 14.5px; padding: 14px 14px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-fade { animation: none !important; }
  .quiz-bar > span { transition: none !important; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ヘッダーロゴ画像（トップページと統一） */
.brand-logo-img{height:30px;width:auto;display:block}
@media(max-width:600px){.brand-logo-img{height:26px}}

/* スタッツ数値の不要な2行折り返しを防止（ヒーロー2カラムの中間幅対策） */
.stat-card .stat-num{ font-size: clamp(20px, 2.2vw, 34px); white-space: nowrap; }
