/* Grantaire — clinical clean, mascot cyan as the single accent.
   Layout: full-bleed sections on a cool paper ground, content on a 1160px grid. */
:root {
  --ink: #0d2633;
  --ink-2: #4b6573;
  --ink-3: #7d939e;
  --paper: #f4f9fa;
  --white: #ffffff;
  --mint: #e2f5f7;
  --line: #d6e5e9;
  --teal: #14b6c9;
  --teal-deep: #08798a;
  --navy: #0b2230;
  --font-display: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-latin: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.45; text-wrap: balance; word-break: auto-phrase; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(72px, 10vw, 128px); }

.eyebrow {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(40px, 6vw, 64px); max-width: 760px; }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; }
.sec-head p { color: var(--ink-2); }
.sec-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; letter-spacing: .04em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--teal-deep); color: var(--white); box-shadow: 0 10px 24px -10px rgba(8, 121, 138, .7); }
.btn--primary:hover { transform: translateY(-2px); background: #066c7b; }
.btn--ghost { background: var(--white); color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--teal); }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .4s, box-shadow .4s;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.site-header.is-solid { background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 40px; height: 40px; object-fit: contain; }
.logo span { font-family: var(--font-latin); font-weight: 800; font-size: 22px; letter-spacing: .02em; color: var(--ink); }
.gnav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.gnav a { text-decoration: none; font-size: 14px; font-weight: 500; position: relative; padding-block: 6px; }
.gnav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--teal); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.gnav a:hover::after, .gnav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.gnav a.is-current { color: var(--teal-deep); }
.header-cta { min-height: 44px; padding: 0 20px; font-size: 14px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: var(--white); border-radius: 50%; box-shadow: 0 2px 10px rgba(13, 38, 51, .1); cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ===== Video first view ===== */
.fv-video { position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); z-index: 0; width: 100%; height: min(calc(100svh - 76px), 56.25vw); min-height: 320px; margin-top: calc(76px + env(safe-area-inset-top, 0px)); background: var(--navy); overflow: hidden; }
.fv-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: scale(calc(1 - var(--fv, 0) * .06)); filter: brightness(calc(1 - var(--fv, 0) * .45)); }
.hero ~ * { position: relative; z-index: 1; }
:where(main > section, main > div) { background-color: var(--paper); }
.scroll-cue--light { color: rgba(255, 255, 255, .8); }
.scroll-cue--light span { background: rgba(255, 255, 255, .3); }
.scroll-cue--light span::after { background: var(--white); }
/* header sits on the dark video until it turns solid */
.has-fv .site-header:not(.is-solid) { background: var(--navy); }
.has-fv .site-header:not(.is-solid) .logo span,
.has-fv .site-header:not(.is-solid) .gnav a { color: var(--white); }
.has-fv .site-header:not(.is-solid) .header-cta { background: var(--white); color: var(--teal-deep); }

/* ===== Hero (second view) ===== */
.hero {
  position: relative; overflow: hidden;
  min-height: min(92vh, 860px);
  display: flex; align-items: center;
  padding-block: 140px 100px;
  background: linear-gradient(160deg, #eefafc 0%, #f7fbfc 45%, #e4f3f6 100%);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(244, 249, 250, .94) 0%, rgba(244, 249, 250, .78) 45%, rgba(244, 249, 250, .2) 100%); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: 0; animation: drift 18s ease-in-out infinite alternate; }
.hero__blob--a { width: 520px; height: 520px; right: -120px; top: -120px; background: #bfeef4; }
.hero__blob--b { width: 380px; height: 380px; left: -140px; bottom: -160px; background: #d9f2e9; animation-delay: -6s; }
@keyframes drift { to { transform: translate(-40px, 40px) scale(1.08); } }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.hero__copy { display: grid; gap: 28px; min-width: 0; }
.hero__tag { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--teal-deep); }
.hero__tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(20, 182, 201, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(20, 182, 201, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 182, 201, 0); } }
.hero h1 { font-size: clamp(30px, 4.6vw, 58px); font-weight: 900; line-height: 1.32; letter-spacing: .02em; }
.hero h1 .line { display: block; white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--teal-deep); background: linear-gradient(transparent 68%, rgba(20, 182, 201, .22) 68%); }
@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
.hero__lead { color: var(--ink-2); font-size: clamp(15px, 1.5vw, 17px); max-width: 34em; animation: fadeUp 1s .45s var(--ease) both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; animation: fadeUp 1s .6s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__visual { position: relative; display: grid; place-items: center; min-width: 0; }
.hero__robot { width: min(100%, 420px); animation: float 5s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(8, 121, 138, .18)); }
@keyframes float { 50% { transform: translateY(-18px) rotate(-1.5deg); } }
.hero__bubble {
  position: absolute; background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 14px; font-size: 13px; font-weight: 700; line-height: 1.5;
  box-shadow: 0 14px 30px -14px rgba(13, 38, 51, .25); white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.hero__bubble small { display: block; font-weight: 500; color: var(--ink-3); font-size: 11px; }
.hero__bubble--1 { left: -4%; top: 14%; animation-delay: -2s; }
.hero__bubble--2 { right: -2%; bottom: 18%; animation-delay: -4s; }
.hero__bubble b { color: var(--teal-deep); font-family: var(--font-latin); font-size: 18px; }
.scroll-cue { position: absolute; left: 50%; bottom: 66px; z-index: 2; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-family: var(--font-latin); font-size: 11px; letter-spacing: .3em; color: var(--ink-3); text-decoration: none; }
.scroll-cue span { width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: -44px; width: 1px; height: 44px; background: var(--teal-deep); animation: cue 2s infinite; }
@keyframes cue { to { top: 44px; } }

/* ===== Split-character headline reveal ===== */
[data-split] .ch { display: inline-block; white-space: pre; }
.js [data-split] .ch { opacity: 0; transform: translateY(.55em) rotate(6deg); filter: blur(8px); }
.js [data-split].is-split-in .ch { animation: chIn .8s var(--ease) forwards; animation-delay: calc(var(--i) * 38ms); }
@keyframes chIn { to { opacity: 1; transform: none; filter: blur(0); } }
.hero h1 em { background-size: 0% 100%; background-repeat: no-repeat; transition: background-size 1s var(--ease) .9s; }
.hero h1.is-split-in em, .no-split .hero h1 em { background-size: 100% 100%; }
.ai-word { color: var(--teal-deep); }
.ai-word .ch { text-shadow: 0 0 0 rgba(20, 182, 201, 0); }
.js [data-split].is-split-in .ai-word .ch { animation: chIn .8s var(--ease) forwards, aiGlow 3.2s ease-in-out 1.6s infinite; animation-delay: calc(var(--i) * 38ms), calc(1.6s + var(--i) * 120ms); }
@keyframes aiGlow { 0%, 100% { text-shadow: 0 0 0 rgba(20, 182, 201, 0); } 50% { text-shadow: 0 0 18px rgba(20, 182, 201, .55); } }
.strengths h2 .mark { position: relative; color: var(--teal-deep); }
.strengths h2 .mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .32em; background: rgba(20, 182, 201, .22); z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .9s; }
.strengths h2.is-split-in .mark::after { transform: scaleX(1); }
.strengths h2 { position: relative; z-index: 0; }

/* ===== Achievement count ===== */
.achv { margin: 40px auto 0; max-width: 560px; display: grid; justify-items: center; gap: 4px; padding: 32px 24px 28px; border-radius: 24px; background: linear-gradient(180deg, var(--mint), var(--white)); border: 1px solid #c4e9ee; position: relative; overflow: hidden; }
.achv::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%, rgba(20, 182, 201, .18), transparent 60%); pointer-events: none; }
.achv__label { font-size: 14px; font-weight: 700; color: var(--teal-deep); letter-spacing: .12em; position: relative; }
.achv__num { display: flex; align-items: baseline; gap: 8px; position: relative; line-height: 1.1; }
.achv__num b { font-family: var(--font-latin); font-weight: 800; font-size: clamp(72px, 11vw, 112px); color: var(--teal-deep); font-variant-numeric: tabular-nums; letter-spacing: -.02em; min-width: 3ch; text-align: right; }
.achv__num span { font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 3vw, 30px); }
.achv__note { font-size: 13px; color: var(--ink-3); position: relative; }

/* ===== Partners ===== */
.partners { background: var(--white); }
.partners__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.partners__head { display: grid; gap: 14px; min-width: 0; }
.partners__grid { min-width: 0; }
.partners__head h2 { font-size: clamp(26px, 3.6vw, 40px); }
.partners__head p { color: var(--ink-2); max-width: 26em; }
.partners__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); position: relative; }
.partner { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 18%; overflow: hidden; min-width: 0; max-width: 100%; }
.partner + .partner { border-left: 1px solid var(--line); }
.partner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 60%, var(--mint), transparent 70%); opacity: 0; transition: opacity .5s var(--ease); }
.partner::after { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.partner:hover::before { opacity: 1; }
.partner:hover::after { transform: scaleX(1); }
.partner__no { position: absolute; left: 16px; top: 14px; font-family: var(--font-latin); font-weight: 700; font-size: 12px; letter-spacing: .14em; color: var(--ink-3); }
.partner__logo { position: relative; display: block; width: 100%; max-width: var(--w, 220px); aspect-ratio: var(--ratio); background: var(--ink); -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; transition: background-color .5s var(--ease), transform .6s var(--ease); }
.partner:hover .partner__logo { background: var(--brand); transform: scale(1.06); }
.partners__grid::before, .partners__grid::after { content: "+"; position: absolute; top: -13px; font-family: var(--font-latin); font-size: 18px; line-height: 1; color: var(--ink); }
.partners__grid::before { left: -5px; }
.partners__grid::after { right: -5px; }

/* ===== Ticker ===== */
.ticker { background: var(--navy); color: #cfeaef; overflow: hidden; padding-block: 18px; }
.ticker__track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; font-family: var(--font-latin); font-weight: 700; letter-spacing: .14em; font-size: 14px; }
.ticker__track span { display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.ticker__track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Reveal ===== */
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal:not(.is-in) { opacity: .25; transform: translateY(28px); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }

/* ===== Problems ===== */
.problems { background: var(--white); }
.problems__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem { display: flex; gap: 16px; align-items: flex-start; padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.problem svg { flex: none; width: 28px; height: 28px; color: var(--teal-deep); margin-top: 2px; }
.problem p { font-weight: 700; line-height: 1.7; }
.problem small { display: block; font-weight: 400; color: var(--ink-2); font-size: 13px; margin-top: 6px; }
.problems__answer { margin-top: 56px; text-align: center; font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; }
.problems__answer strong { color: var(--teal-deep); }

/* ===== Strengths ===== */
.strengths__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.strength { padding: 40px 32px 8px 0; display: grid; gap: 14px; align-content: start; min-width: 0; }
.strength + .strength { padding-left: 32px; border-left: 1px solid var(--line); }
.strength__no { font-family: var(--font-latin); font-weight: 800; font-size: 14px; color: var(--teal); letter-spacing: .1em; }
.strength h3 { font-size: 22px; }
.strength p { color: var(--ink-2); font-size: 15px; }

/* ===== Services ===== */
.services { background: var(--white); }
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.svc { grid-column: span 2; position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: 22px; overflow: hidden; text-decoration: none; border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s; min-width: 0; }
.svc--wide { grid-column: span 3; }
.svc:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(8, 121, 138, .35); border-color: #a9dfe6; }
.svc__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mint); display: grid; place-items: center; max-width: 100%; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc__img--contain img { object-fit: contain; padding: 18px; }
.svc:hover .svc__img img { transform: scale(1.05); }
.svc__body { padding: 24px 26px 28px; display: grid; gap: 10px; flex: 1; align-content: start; }
.svc__cat { font-family: var(--font-latin); font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--teal-deep); text-transform: uppercase; }
.svc h3 { font-size: 21px; }
.svc p { color: var(--ink-2); font-size: 14.5px; line-height: 1.8; }
.svc__more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--teal-deep); }
.svc__more i { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; transition: background .3s, color .3s; }
.svc:hover .svc__more i { background: var(--teal-deep); color: var(--white); }
.svc__more svg { width: 14px; height: 14px; }
.svc__ill { width: 100%; height: 100%; }

/* ===== SEO × AIO (search demo) ===== */
.dual { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.dual__item { display: grid; gap: 2px; padding: 14px 22px; border-radius: 16px; border: 1px solid rgba(127, 224, 235, .35); background: rgba(255, 255, 255, .04); min-width: 168px; position: relative; overflow: hidden; }
.dual__item b { font-family: var(--font-latin); font-weight: 800; font-size: 26px; letter-spacing: .06em; color: var(--white); }
.dual__item span { font-size: 13px; color: #a9c6cf; line-height: 1.6; }
.dual__item--ai b { color: #7fe0eb; }
.dual__item::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -50%; background: linear-gradient(90deg, transparent, rgba(127, 224, 235, .18), transparent); animation: sweep 3.6s ease-in-out infinite; }
.dual__item--ai::after { animation-delay: 1.8s; }
@keyframes sweep { 0% { left: -50%; } 50%, 100% { left: 120%; } }
.dual__plus { font-family: var(--font-latin); font-size: 28px; font-weight: 800; color: #7fe0eb; animation: pulsePlus 1.8s ease-in-out infinite; }
@keyframes pulsePlus { 50% { transform: scale(1.25); } }
.chat__modes { margin-left: 10px; display: inline-flex; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.chat__modes b { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; color: var(--ink-3); transition: background .4s, color .4s; white-space: nowrap; }
.chat__modes b.is-on { background: var(--teal-deep); color: var(--white); }
.msg--user.is-search { justify-self: stretch; max-width: none; background: var(--white); color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 18px 10px 44px; position: relative; }
.msg--user.is-search::before { content: ""; position: absolute; left: 18px; top: 50%; width: 11px; height: 11px; margin-top: -8px; border: 2px solid var(--ink-3); border-radius: 50%; }
.msg--user.is-search::after { content: ""; position: absolute; left: 30px; top: 50%; width: 6px; height: 2px; margin-top: 4px; background: var(--ink-3); transform: rotate(45deg); }
.serp { display: grid; gap: 10px; }
.serp__item { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); font-size: 13px; }
.serp__item small { color: var(--ink-3); font-size: 11.5px; }
.serp__item b { color: #1a4fb5; font-weight: 700; font-size: 14.5px; }
.serp__item span { color: var(--ink-2); font-size: 12.5px; line-height: 1.6; }
.serp__item--hit { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20, 182, 201, .15); position: relative; }
.serp__item--hit::after { content: "1位"; position: absolute; right: 12px; top: 10px; font-size: 11px; font-weight: 700; background: var(--teal-deep); color: var(--white); border-radius: 999px; padding: 1px 9px; }
.msg--ai { position: relative; }
.msg--ai::after { content: "AIが紹介"; position: absolute; right: -6px; top: -10px; font-size: 11px; font-weight: 700; background: var(--teal-deep); color: var(--white); border-radius: 999px; padding: 1px 9px; }

/* ===== AIO feature ===== */
.aio { background: linear-gradient(180deg, var(--navy) 0%, #0f3242 100%); color: #e6f4f7; position: relative; overflow: hidden; }
.aio .eyebrow { color: #7fe0eb; }
.aio .sec-head p { color: #a9c6cf; }
.aio__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.chat { background: #f8fcfd; color: var(--ink); border-radius: 22px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); overflow: hidden; min-width: 0; }
.chat__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.chat__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.chat__bar i:first-child { background: #9fdde5; }
.chat__body { padding: 22px; display: grid; gap: 14px; min-height: 380px; align-content: start; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.75; }
.msg--user { justify-self: end; background: var(--teal-deep); color: var(--white); border-bottom-right-radius: 4px; }
.msg--ai { justify-self: start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; display: flex; gap: 10px; }
.msg--ai img { width: 30px; height: 30px; flex: none; object-fit: contain; }
.msg--ai ol { margin: 6px 0 0; padding-left: 1.2em; }
.msg--ai li.hit { color: var(--teal-deep); font-weight: 700; }
.msg--ai li.hit::marker { color: var(--teal); }
.caret { display: inline-block; width: 2px; height: 1em; background: currentColor; vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.aio__points { display: grid; gap: 22px; }
.aio__point { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; }
.aio__point i { width: 48px; height: 48px; border-radius: 14px; background: rgba(20, 182, 201, .15); color: #7fe0eb; display: grid; place-items: center; font-style: normal; font-family: var(--font-latin); font-weight: 800; }
.aio__point h3 { font-size: 18px; margin-bottom: 4px; }
.aio__point p { color: #a9c6cf; font-size: 14.5px; }
.aio__shot { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.aio__shot img { border-radius: 18px; }
.aio__shot figcaption { font-size: 13px; color: #a9c6cf; margin-top: 10px; text-align: center; }
.aio__shot figure { margin: 0; min-width: 0; }

/* ===== AI backgrounds (non-FV sections) ===== */
.has-ai-bg { position: relative; overflow: hidden; }
.ai-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.has-ai-bg > .wrap { position: relative; z-index: 1; }
.aio__glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; left: var(--mx, 70%); top: var(--my, 20%); transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(20, 182, 201, .22), transparent 65%); pointer-events: none; z-index: 0; transition: left .6s var(--ease), top .6s var(--ease); }
/* AI scan sweep on service images */
.svc__img { position: relative; }
.svc__img::after { content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; background: linear-gradient(transparent, rgba(20, 182, 201, .28), transparent); opacity: 0; pointer-events: none; }
.svc:hover .svc__img::after { animation: scan 1.4s var(--ease); }
@keyframes scan { 0% { top: -30%; opacity: 1; } 100% { top: 110%; opacity: 1; } }
/* Eyebrow decode effect keeps width steady */
.eyebrow[data-scramble] { font-variant-numeric: tabular-nums; }

/* ===== Clinic Auto engine ===== */
.aio__intro { display: grid; gap: 20px; align-content: center; min-width: 0; }
.aio__intro h3 { font-size: clamp(22px, 2.6vw, 30px); color: var(--white); }
.aio__intro p { color: #a9c6cf; }
.aio__intro .btn { width: fit-content; }
.engine { margin-top: 72px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: stretch; }
.engine__tabs { display: grid; gap: 12px; align-content: start; min-width: 0; }
.engine__tab { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; text-align: left; padding: 20px 20px 22px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); color: #cfe6ec; font: inherit; cursor: pointer; overflow: hidden; transition: background .4s, border-color .4s; }
.engine__tab:hover { border-color: rgba(127, 224, 235, .45); }
.engine__tab.is-active { background: rgba(20, 182, 201, .12); border-color: rgba(127, 224, 235, .6); color: var(--white); }
.engine__no { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-latin); font-weight: 800; background: rgba(255, 255, 255, .06); color: #7fe0eb; transition: background .4s, color .4s; }
.engine__tab.is-active .engine__no { background: var(--teal); color: var(--navy); }
.engine__txt { display: grid; gap: 4px; min-width: 0; }
.engine__txt b { font-family: var(--font-display); font-size: 17px; line-height: 1.5; }
.engine__txt small { font-size: 13.5px; line-height: 1.75; color: #a9c6cf; }
.engine__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--teal); transform: scaleX(0); transform-origin: left; }
.engine__tab.is-active .engine__bar { animation: engineBar var(--engine-dur, 7s) linear forwards; }
.engine.is-paused .engine__tab.is-active .engine__bar { animation-play-state: paused; }
@keyframes engineBar { to { transform: scaleX(1); } }
.engine__screen { position: relative; background: #f8fcfd; color: var(--ink); border-radius: 22px; overflow: hidden; min-height: 490px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); min-width: 0; }
.engine__head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.engine__head i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.engine__head i:first-child { background: #9fdde5; }
.engine__head span { margin-left: 6px; font-family: var(--font-latin); }
.engine__live { margin-left: auto; font-style: normal; font-size: 11px; color: var(--teal-deep); display: inline-flex; align-items: center; gap: 6px; }
.engine__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: ping 2s infinite; }
.engine__pane { position: absolute; inset: 49px 0 0 0; padding: 26px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s; }
.engine__pane.is-active { opacity: 1; visibility: visible; transform: none; }
/* shared timing helper: children animate only while their pane is active */
.engine__pane [style*="--d"] { animation-delay: var(--d) !important; }

/* pane 0: editor */
.ed { display: grid; gap: 16px; }
.ed__top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; }
.ed__tag { background: var(--teal-deep); color: var(--white); border-radius: 999px; padding: 3px 12px; font-weight: 700; }
.ed__kw { color: var(--ink-3); }
.ed__title { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.6; min-height: 3.2em; }
.ed__lines { display: grid; gap: 10px; }
.ed__lines i { display: block; height: 9px; border-radius: 5px; background: var(--line); width: var(--w); transform-origin: left; transform: scaleX(1); }
.ed__lines i.h { height: 12px; background: #9fdde5; margin-top: 6px; }
.engine__pane.is-active .ed__lines i { animation: grow .7s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.ed__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--mint); color: var(--teal-deep); }
.chip::before { content: ""; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translate(1px, -2px); }
.chip--go { background: var(--teal-deep); color: var(--white); }
.engine__pane.is-active .chip { animation: pop .5s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: scale(.8) translateY(6px); } }

/* pane 1: priority list */
.pri__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-weight: 700; }
.pri__score { font-family: var(--font-latin); color: var(--ink-3); font-size: 14px; }
.pri__score b { font-size: 34px; color: var(--teal-deep); font-variant-numeric: tabular-nums; margin-right: 2px; }
.pri__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pri__list li { display: grid; grid-template-columns: 78px 1fr 70px 22px; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); font-size: 13.5px; }
.pri__list .nm { min-width: 0; font-weight: 500; }
.lv { font-size: 11px; font-weight: 700; padding: 2px 0; border-radius: 6px; text-align: center; }
.lv--h { background: #e6f7f9; color: var(--teal-deep); border: 1px solid #9fdde5; }
.lv--m { background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.lv--l { background: var(--paper); color: var(--ink-3); border: 1px dashed var(--line); }
.meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--teal); transform-origin: left; }
.engine__pane.is-active .meter i { animation: grow .7s var(--ease) both; animation-delay: inherit; }
.pri__list li .meter, .pri__list li .ok { animation-delay: inherit; }
.ok { width: 22px; height: 22px; border-radius: 50%; background: var(--teal-deep); position: relative; }
.ok::after { content: ""; position: absolute; left: 7px; top: 5px; width: 6px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.engine__pane.is-active .ok { animation: pop .4s var(--ease) both; animation-delay: calc(var(--d) + .7s) !important; }
.engine__pane.is-active .pri__list li { animation: fadeUp .5s var(--ease) both; }

/* pane 2: mail */
.mail { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; }
.mail__row { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.mail__row span { color: var(--ink-3); width: 2.6em; flex: none; }
.mail__body { padding: 16px; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); min-height: 120px; }
.engine__pane.is-active .mail__body p { animation: fadeUp .6s var(--ease) both; }
.mail__sent { margin: 0 16px 16px; display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 10px 16px; border-radius: 999px; background: var(--teal-deep); color: var(--white); font-weight: 700; font-size: 13.5px; }
.mail__sent svg { width: 18px; height: 18px; }
.engine__pane.is-active .mail__sent { animation: pop .5s var(--ease) both; animation-delay: 2.6s; }
.engine__pane.is-active .mail__sent svg { animation: fly 1s var(--ease) both; animation-delay: 2.8s; }
@keyframes fly { 0% { transform: translate(-6px, 6px); opacity: 0; } 60% { transform: translate(4px, -4px); opacity: 1; } 100% { transform: none; } }

/* ===== Media ===== */
.media-sec { overflow: hidden; }
.media__row { display: flex; gap: 24px; width: max-content; animation: marquee 40s linear infinite; }
.media__row:hover { animation-play-state: paused; }
.media__row img { width: min(78vw, 440px); aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; box-shadow: 0 18px 40px -24px rgba(13, 38, 51, .4); }
.media__note { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.media__note p { color: var(--ink-2); max-width: 40em; }

/* ===== Flow ===== */
.flow { background: var(--white); }
.flow__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.flow__line { position: absolute; left: 32px; right: 32px; top: 31px; height: 2px; background: var(--line); }
.flow__line::after { content: ""; position: absolute; inset: 0; background: var(--teal); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .2s linear; }
.flow__item { position: relative; display: grid; gap: 12px; align-content: start; min-width: 0; }
.flow__num { width: 64px; height: 64px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); display: grid; place-items: center; font-family: var(--font-latin); font-weight: 800; font-size: 20px; color: var(--ink-3); transition: border-color .5s, color .5s, background .5s; }
.flow__item.is-on .flow__num { border-color: var(--teal); color: var(--white); background: var(--teal-deep); }
.flow__item h3 { font-size: 17px; }
.flow__item p { font-size: 14px; color: var(--ink-2); line-height: 1.75; }

/* ===== FAQ ===== */
.faq__list { display: grid; gap: 14px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; font-weight: 700; position: relative; display: flex; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary b, .faq .faq__a b { font-family: var(--font-latin); color: var(--teal-deep); font-size: 18px; line-height: 1.6; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2px solid var(--teal-deep); border-bottom: 2px solid var(--teal-deep); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__a { padding: 0 24px 22px; display: flex; gap: 14px; color: var(--ink-2); font-size: 15px; }
.faq__a b { color: var(--ink-3) !important; }

/* ===== Company ===== */
.company { background: var(--white); }
.company__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.message { display: grid; gap: 20px; }
.message h3 { font-size: clamp(22px, 2.6vw, 30px); }
.message p { color: var(--ink-2); }
.message__sign { font-weight: 700; color: var(--ink) !important; }
.message__sign small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); }
.profile-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.profile-table th, .profile-table td { text-align: left; padding: 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.profile-table th { width: 8em; color: var(--ink-3); font-weight: 500; padding-right: 16px; }
.profile-table ul { margin: 0; padding-left: 1.1em; }

/* ===== Press (代表のメディア出演) ===== */
.press__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.press__card { display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; min-width: 0; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.press__card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -26px rgba(13, 38, 51, .45); }
.press__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); max-width: 100%; }
.press__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.press__card:hover .press__thumb img { transform: scale(1.05); }
.press__play { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--teal-deep); display: grid; place-items: center; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); transition: transform .35s var(--ease), background .35s, color .35s; }
.press__play svg { width: 18px; height: 18px; margin-left: 2px; }
.press__card:hover .press__play { transform: scale(1.1); background: var(--teal-deep); color: var(--white); }
.press__body { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; }
.press__src { font-size: 12px; font-weight: 700; color: var(--teal-deep); letter-spacing: .06em; }
.press__body h3 { font-size: 17px; line-height: 1.6; }
.press__body p { font-size: 14px; color: var(--ink-2); line-height: 1.8; }

/* ===== News ===== */
.news__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news__list a { display: grid; grid-template-columns: 7.5em 7em 1fr 24px; gap: 16px; align-items: center; padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .3s, padding .3s; }
.news__list a:hover { background: var(--white); padding-inline: 16px; }
.news__list time { font-family: var(--font-latin); font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.news__cat { font-size: 12px; font-weight: 700; color: var(--teal-deep); background: var(--mint); border-radius: 999px; padding: 2px 12px; width: fit-content; }
.news__list svg { width: 18px; color: var(--teal-deep); }
.news__title { min-width: 0; }

/* ===== Final CTA ===== */
.final { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--teal-deep), #0b5f70); color: var(--white); text-align: center; }
.final::before, .final::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); }
.final::before { width: 600px; height: 600px; left: -200px; top: -300px; }
.final::after { width: 420px; height: 420px; right: -120px; bottom: -220px; }
.final .wrap { position: relative; z-index: 1; display: grid; gap: 24px; justify-items: center; }
.final h2 { font-size: clamp(26px, 4vw, 44px); }
.final p { color: #cdeef2; }
.final__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 18px; margin-top: 12px; width: 100%; justify-content: center; }
.final__card { display: grid; gap: 6px; padding: 26px 24px; border-radius: 18px; text-decoration: none; text-align: left; transition: transform .35s var(--ease); }
.final__card:hover { transform: translateY(-4px); }
.final__card small { font-size: 12px; letter-spacing: .1em; }
.final__card strong { font-size: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.final__card svg { width: 20px; height: 20px; flex: none; }
.final__card--main { background: var(--white); color: var(--ink); }
.final__card--main small { color: var(--teal-deep); }
.final__card--sub { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .35); color: var(--white); }
.final__card--sub small { color: #cdeef2; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #a9c6cf; padding-block: 56px 120px; font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.site-footer .logo span { color: var(--white); }
.site-footer address { font-style: normal; margin-top: 16px; line-height: 1.9; }
.fnav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.fnav a { text-decoration: none; }
.fnav a:hover { color: var(--white); }
.copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; font-family: var(--font-latin); font-size: 12px; letter-spacing: .08em; }

/* ===== Floating CTA ===== */
.float-cta { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: grid; gap: 10px; width: 230px; transform: translateY(24px); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .5s var(--ease); }
.float-cta.is-show { transform: none; opacity: 1; pointer-events: auto; }
.float-cta a { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; text-decoration: none; line-height: 1.4; box-shadow: 0 16px 32px -16px rgba(13, 38, 51, .45); transition: transform .3s var(--ease); }
.float-cta a:hover { transform: translateX(-4px); }
.float-cta i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.float-cta svg { width: 18px; height: 18px; }
.float-cta b { display: block; font-size: 14px; }
.float-cta small { display: block; font-size: 11px; }
.float-cta__main { background: var(--teal-deep); color: var(--white); }
.float-cta__main i { background: rgba(255, 255, 255, .18); }
.float-cta__main small { color: #cdeef2; }
.float-cta__sub { background: var(--white); color: var(--ink-2); border: 1px solid var(--line); }
.float-cta__sub i { background: var(--paper); color: var(--ink-3); }
.float-cta__sub small { color: var(--ink-3); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .press__grid { grid-template-columns: 1fr 1fr; }
  .gnav ul { gap: 18px; }
  .svc, .svc--wide { grid-column: span 3; }
  .flow__list { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .flow__line { display: none; }
}
@media (max-width: 860px) {
  .gnav { position: fixed; inset: 0; background: rgba(255, 255, 255, .98); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .35s; z-index: -1; }
  .menu-open .gnav { opacity: 1; pointer-events: auto; }
  .gnav ul { flex-direction: column; align-items: center; gap: 26px; }
  .gnav a { font-size: 18px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .hero { min-height: 0; padding-block: 112px 88px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__robot { width: 220px; }
  .scroll-cue { display: none; }
  .fv-video { position: relative; top: auto; height: auto; min-height: 0; aspect-ratio: 16 / 9; max-width: 100%; }
    .has-fv.menu-open .site-header .gnav a { color: var(--ink); }
  .hero__bubble { font-size: 11px; padding: 8px 10px; }
  .hero__bubble b { font-size: 15px; }
  .hero__bubble--1 { left: 0; top: 4%; }
  .hero__bubble--2 { right: 0; bottom: 6%; }
  .problems__grid { grid-template-columns: 1fr; }
  .partners__inner { grid-template-columns: 1fr; gap: 36px; }
  .partner__no { left: 10px; top: 8px; font-size: 11px; }
  .press__grid { grid-template-columns: 1fr; }
  .strengths__grid { grid-template-columns: 1fr; }
  .strength, .strength + .strength { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .svc, .svc--wide { grid-column: 1 / -1; }
  .aio__grid, .aio__shot, .company__grid { grid-template-columns: 1fr; gap: 40px; }
  .engine { grid-template-columns: 1fr; margin-top: 48px; }
  .dual { flex-wrap: nowrap; gap: 8px; }
  .chat__body { min-height: 450px; }
  .dual__item { flex: 1 1 0; min-width: 0; padding: 12px 14px; }
  .dual__item b { font-size: 22px; }
  .dual__plus { font-size: 22px; }
  .engine__tab { padding: 14px 16px 16px; grid-template-columns: 36px 1fr; gap: 12px; }
  .engine__no { width: 36px; height: 36px; font-size: 14px; }
  .engine__tab:not(.is-active) small { display: none; }
  .engine__txt b { font-size: 15px; }
  .engine__screen { min-height: 560px; }
  .engine__pane { padding: 18px; }
  .pri__list li { grid-template-columns: 64px 1fr 22px; }
  .pri__list .meter { display: none; }
  .flow__list { grid-template-columns: 1fr; gap: 0; }
  .flow__item { grid-template-columns: 64px 1fr; column-gap: 18px; padding-bottom: 28px; }
  .flow__item h3, .flow__item p { grid-column: 2; }
  .flow__num { grid-row: span 2; }
  .flow__item:not(:last-child)::before { content: ""; position: absolute; left: 31px; top: 64px; bottom: 0; width: 2px; background: var(--line); }
  .news__list a { grid-template-columns: 1fr 24px; gap: 4px 12px; }
  .news__list time, .news__cat { grid-column: 1; }
  .news__list svg { grid-row: 1 / span 3; grid-column: 2; }
  .final__btns { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .fnav { grid-template-columns: repeat(2, 1fr); }
  /* floating CTA becomes a bottom bar */
  .float-cta { left: 0; right: 0; bottom: 0; width: auto; grid-template-columns: 1.3fr 1fr; gap: 0; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--white); box-shadow: 0 -8px 24px -12px rgba(13, 38, 51, .3); }
  .float-cta a { border-radius: 0; box-shadow: none; padding: 10px 12px; grid-template-columns: 30px 1fr; gap: 8px; border: 0; }
  .float-cta a:hover { transform: none; }
  .float-cta i { width: 30px; height: 30px; }
  .float-cta b { font-size: 13px; }
  .float-cta small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal:not(.is-in) { opacity: 1; transform: none; }
}

/* ===== Inner pages (投稿・固定ページ) ===== */
body:not(.home) .site-header { background: rgba(255, 255, 255, .92); box-shadow: 0 1px 0 var(--line); }
.inner { padding-block: 150px 100px; min-height: 60vh; }
.wrap--narrow { max-width: 820px; }
.inner__head { display: grid; gap: 12px; margin-bottom: 48px; }
.inner__head h1 { font-size: clamp(26px, 3.6vw, 38px); }
.inner__head time { font-family: var(--font-latin); color: var(--ink-3); font-weight: 600; }
.entry__thumb img { border-radius: 16px; margin-bottom: 40px; }
.entry__body { line-height: 2; }
.entry__body > * + * { margin-top: 1.4em; }
.entry__body h2 { font-size: 24px; padding-left: 16px; border-left: 4px solid var(--teal); margin-top: 2.4em; }
.entry__body h3 { font-size: 20px; margin-top: 2em; }
.entry__body a { color: var(--teal-deep); }
.entry__body iframe { max-width: 100%; }
.pager { margin-top: 40px; }
.pager .nav-links { display: flex; gap: 8px; justify-content: center; }
.pager .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; text-decoration: none; border: 1px solid var(--line); background: var(--white); }
.pager .current { background: var(--teal-deep); color: var(--white); border-color: var(--teal-deep); }

/* =====================================================
   Sub pages
   ===================================================== */
.sub { padding-top: calc(76px + env(safe-area-inset-top, 0px)); }
.sub-hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 96px) clamp(56px, 7vw, 88px); background: linear-gradient(160deg, #eefafc 0%, #f7fbfc 50%, #e4f3f6 100%); border-bottom: 1px solid var(--line); }
.sub-hero .wrap { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
.sub-hero--visual .wrap { grid-template-columns: 1.1fr .9fr; }
.sub-hero__copy { display: grid; gap: 18px; min-width: 0; }
.sub-hero h1 { font-size: clamp(28px, 3.8vw, 48px); font-weight: 900; line-height: 1.4; }
.sub-hero__lead { color: var(--ink-2); max-width: 36em; }
.sub-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.sub-hero__visual { min-width: 0; border-radius: 22px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgba(8, 121, 138, .45); }
.sub-hero__visual img, .sub-hero__visual svg { width: 100%; height: auto; display: block; }
.sub-hero__word { position: absolute; right: -1vw; bottom: -.18em; font-family: var(--font-latin); font-weight: 800; font-size: clamp(72px, 15vw, 220px); line-height: 1; letter-spacing: -.02em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(8, 121, 138, .11); pointer-events: none; z-index: 0; animation: wordDrift 14s ease-in-out infinite alternate; }
@keyframes wordDrift { to { transform: translateX(-4%); } }
.sub-hero__bot { position: absolute; right: max(4vw, calc((100vw - var(--wrap)) / 2 + 24px)); top: 50%; width: clamp(150px, 15vw, 210px); margin-top: -100px; z-index: 1; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 24px 30px rgba(8, 121, 138, .2)); pointer-events: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--teal-deep); }

.problems__grid--plain { list-style: none; margin: 0; padding: 0; }
.problems__grid--plain .problem { background: var(--white); }

/* scope grid */
.scope { background: var(--white); }
.scope__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.scope__item { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; min-width: 0; }
.scope__item:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.scope__no { font-family: var(--font-latin); font-weight: 800; font-size: 13px; color: var(--teal); letter-spacing: .1em; }
.scope__item h3 { font-size: 18px; }
.scope__item p { font-size: 14.5px; color: var(--ink-2); line-height: 1.8; }

/* service overview rows */
.svc-rows { display: grid; gap: clamp(56px, 8vw, 96px); }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.svc-row--rev .svc-row__img { order: 2; }
.svc-row__img { display: block; border-radius: 22px; overflow: hidden; background: var(--mint); aspect-ratio: 16 / 10; max-width: 100%; min-width: 0; position: relative; }
.svc-row__img img, .svc-row__img svg { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc-row__img:hover img, .svc-row__img:hover svg { transform: scale(1.04); }
.svc-row__img::after { content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; background: linear-gradient(transparent, rgba(20, 182, 201, .28), transparent); opacity: 0; pointer-events: none; }
.svc-row__img:hover::after { animation: scan 1.4s var(--ease); }
.svc-row__body { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.svc-row__no { font-family: var(--font-latin); font-weight: 800; font-size: 56px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--teal); }
.svc-row__body h2 { font-size: clamp(24px, 3vw, 32px); }
.svc-row__body p { color: var(--ink-2); }
.combo { background: var(--white); }
.combo__steps { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 900px; counter-reset: c; }
.combo__steps li { position: relative; display: grid; gap: 6px; justify-items: center; text-align: center; padding: 28px 16px; background: var(--paper); border: 1px solid var(--line); }
.combo__steps li:first-child { border-radius: 18px 0 0 18px; }
.combo__steps li:last-child { border-radius: 0 18px 18px 0; }
.combo__steps li + li { border-left: 0; }
.combo__steps li:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 50%; width: 22px; height: 22px; margin-top: -11px; background: var(--teal-deep); border-radius: 50%; z-index: 1; box-shadow: 0 0 0 4px var(--white); }
.combo__steps b { font-family: var(--font-display); font-size: 22px; color: var(--teal-deep); }
.combo__steps span { font-size: 13.5px; color: var(--ink-2); }

/* related services */
.related { background: var(--white); }
.rel__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rel { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; min-width: 0; }
.rel:hover { transform: translateY(-4px); border-color: #a9dfe6; box-shadow: 0 18px 36px -24px rgba(8, 121, 138, .4); }
.rel h3 { font-size: 17px; }
.rel p { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }
.rel:hover .svc__more i { background: var(--teal-deep); color: var(--white); }

/* clinic auto: light search demo row */
.aio__grid--light { margin-top: 0; }
.aio__grid--light .chat { box-shadow: 0 30px 60px -36px rgba(8, 121, 138, .45); border: 1px solid var(--line); }
.dual-list { display: grid; gap: 18px; min-width: 0; }
.dual-list > div { padding: 22px 24px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); display: grid; gap: 6px; }
.dual-list b { font-family: var(--font-latin); font-size: 24px; font-weight: 800; color: var(--teal-deep); letter-spacing: .06em; }
.dual-list p { color: var(--ink-2); font-size: 14.5px; }
.sub .aio .engine { margin-top: 0; }
.sub .aio .aio__shot { margin-top: 56px; }

/* contact */
.contact__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 860px; margin: 0 auto 28px; }
.contact__tab { display: grid; gap: 2px; text-align: left; padding: 18px 22px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font: 700 17px/1.5 var(--font-display); cursor: pointer; transition: border-color .3s, background .3s, color .3s; }
.contact__tab small { font: 500 12px/1.4 var(--font-body); color: var(--ink-3); }
.contact__tab.is-active { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
.contact__tab.is-active small { color: #cdeef2; }
.contact__panel { max-width: 860px; margin: 0 auto; display: grid; gap: 22px; }
.contact__points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.contact__points li { font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: var(--mint); color: var(--teal-deep); }
.form-embed { background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.form-embed iframe { display: block; width: 100%; height: 1200px; border: 0; }
.form-embed--empty { padding: 48px 24px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.form-embed--empty p { color: var(--ink-2); font-size: 14px; }
.contact__info { max-width: 860px; margin: 48px auto 0; display: grid; grid-template-columns: 1fr 1.6fr; border-top: 1px solid var(--ink); }
.contact__info > div { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; min-width: 0; }
.contact__info > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.contact__info span { font-size: 12px; color: var(--ink-3); }
.contact__info p { font-weight: 700; overflow-wrap: anywhere; }

/* privacy policy */
.policy { background: var(--white); }
.policy .wrap--narrow { max-width: 860px; display: grid; gap: 36px; }
.policy__item { display: grid; gap: 12px; }
.policy__item h2 { font-size: 20px; display: flex; gap: 14px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.policy__item h2 span { font-family: var(--font-latin); font-weight: 800; font-size: 14px; color: var(--teal); }
.policy__item p { color: var(--ink-2); font-size: 15px; line-height: 2; }
.policy__date { text-align: right; color: var(--ink-3); font-size: 14px; }

.news__more { margin-top: 32px; text-align: center; }

@media (max-width: 1024px) {
  .rel__grid { grid-template-columns: 1fr 1fr; }
  .scope__grid { grid-template-columns: 1fr 1fr; }
  .scope__item:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .scope__item:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .sub-hero--visual .wrap { grid-template-columns: 1fr; gap: 32px; }
  .sub-hero__bot { display: none; }
  .svc-row { grid-template-columns: 1fr; }
  .svc-row--rev .svc-row__img { order: 0; }
  .svc-row__no { font-size: 40px; }
  .combo__steps { grid-template-columns: 1fr; }
  .combo__steps li, .combo__steps li:first-child, .combo__steps li:last-child { border-radius: 0; }
  .combo__steps li:first-child { border-radius: 18px 18px 0 0; }
  .combo__steps li:last-child { border-radius: 0 0 18px 18px; }
  .combo__steps li + li { border-left: 1px solid var(--line); border-top: 0; }
  .combo__steps li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -12px; margin: 0 0 0 -11px; }
  .rel__grid, .scope__grid { grid-template-columns: 1fr; }
  .scope__item:nth-child(even) { padding-left: 0; border-left: 0; }
  .contact__tabs { grid-template-columns: 1fr; }
  .contact__tab { font-size: 15px; }
  .contact__info { grid-template-columns: 1fr; }
  .contact__info > div + div { padding-left: 0; border-left: 0; }
  .form-embed iframe { height: 1400px; }
}

/* =====================================================
   Rich sub-page blocks
   ===================================================== */
.diagram-sec { background: var(--white); overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --- pipeline (AI writing) --- */
.pipe { position: relative; }
.pipe__track { position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; background: var(--line); overflow: hidden; }
.pipe__track i { position: absolute; top: -1px; left: -20%; width: 20%; height: 4px; background: linear-gradient(90deg, transparent, var(--teal), transparent); animation: pipeRun 2.6s linear infinite; }
@keyframes pipeRun { to { left: 100%; } }
.pipe__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.pipe__steps li { display: grid; justify-items: center; gap: 12px; text-align: center; min-width: 0; }
.pipe__dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--teal); color: var(--teal-deep); font: 800 16px var(--font-latin); box-shadow: 0 0 0 6px var(--white); position: relative; z-index: 1; }
.pipe__steps b { font-family: var(--font-display); font-size: 16px; }
.pipe__card { width: 100%; min-height: 92px; padding: 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; line-height: 1.6; text-align: left; display: grid; align-content: center; gap: 4px; }
.pipe__card small { font: 700 10.5px var(--font-latin); letter-spacing: .14em; color: var(--teal-deep); }
.pipe__lines { display: grid; gap: 7px; }
.pipe__lines i { height: 7px; border-radius: 4px; background: var(--line); transform-origin: left; }
.pipe__lines i:nth-child(2) { width: 85%; } .pipe__lines i:nth-child(3) { width: 92%; } .pipe__lines i:nth-child(4) { width: 60%; }
.pipe.is-in .pipe__lines i { animation: grow 1s var(--ease) both, linePulse 2.4s ease-in-out 1.2s infinite; }
.pipe.is-in .pipe__lines i:nth-child(2) { animation-delay: .15s, 1.4s; } .pipe.is-in .pipe__lines i:nth-child(3) { animation-delay: .3s, 1.6s; } .pipe.is-in .pipe__lines i:nth-child(4) { animation-delay: .45s, 1.8s; }
@keyframes linePulse { 50% { background: #9fdde5; } }
.pipe__ok, .pipe__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--teal-deep); }
.pipe__ok::before { content: ""; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translate(1px, -2px); }
.pipe__go { background: var(--teal-deep); color: var(--white); padding: 6px 12px; border-radius: 999px; justify-self: start; }
.js .pipe:not(.is-in) .pipe__steps li { opacity: .2; transform: translateY(14px); }
.pipe .pipe__steps li { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * .18s); }

/* --- cycle (Clinic Auto) --- */
.cyc { display: grid; grid-template-columns: 1fr 260px 1fr; grid-template-areas: ". n ." "w hub e" ". s ."; gap: 20px 28px; align-items: center; max-width: 980px; margin: 0 auto; }
.cyc__hub { grid-area: hub; position: relative; width: 260px; height: 260px; }
.cyc__hub svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.cyc__ring { fill: none; stroke: #9fdde5; stroke-width: 1.5; stroke-dasharray: 4 8; }
.cyc__orbit { fill: var(--teal); }
@keyframes spin { to { transform: rotate(360deg); } }
.cyc__core { position: absolute; inset: 34px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, var(--white), var(--mint)); border: 1px solid #c4e9ee; display: grid; place-items: center; align-content: center; gap: 2px; text-align: center; box-shadow: 0 24px 48px -28px rgba(8, 121, 138, .5); }
.cyc__core img { width: 72px; animation: float 4s ease-in-out infinite; }
.cyc__core b { font: 800 18px var(--font-latin); color: var(--teal-deep); }
.cyc__core small { font-size: 11px; color: var(--ink-3); }
.cyc__card { padding: 20px 22px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 6px; min-width: 0; }
.cyc__card--n { grid-area: n; } .cyc__card--e { grid-area: e; } .cyc__card--s { grid-area: s; } .cyc__card--w { grid-area: w; }
.cyc__when { width: fit-content; font-size: 11.5px; font-weight: 700; padding: 2px 12px; border-radius: 999px; background: var(--teal-deep); color: var(--white); }
.cyc__card h3 { font-size: 17px; }
.cyc__card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }

/* --- journey (Media) --- */
.jr { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.jr li { position: relative; display: grid; gap: 6px; align-content: start; padding: 22px 18px 20px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); min-width: 0; transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * .15s); }
.jr li:not(:last-child)::after { content: ""; position: absolute; right: -11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-top: 2px solid var(--teal); border-right: 2px solid var(--teal); transform: rotate(45deg); }
.jr__no { font: 800 13px var(--font-latin); color: var(--teal); letter-spacing: .1em; }
.jr li b { font-family: var(--font-display); font-size: 16px; line-height: 1.5; }
.jr li small { font-size: 12.5px; color: var(--ink-3); }
.jr li.is-media { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); transform: translateY(-8px); box-shadow: 0 24px 40px -24px rgba(8, 121, 138, .7); }
.jr li.is-media .jr__no, .jr li.is-media small { color: #cdeef2; }
.jr__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--white); color: var(--teal-deep); border: 1.5px solid var(--teal); animation: pulsePlus 2s ease-in-out infinite; }
.js .jr:not(.is-in) li { opacity: .2; transform: translateY(14px); }

/* --- wireframe (Web design) --- */
.wf { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; max-width: 960px; margin: 0 auto; }
.wf__phone { width: 280px; justify-self: center; padding: 12px; border-radius: 40px; background: var(--navy); box-shadow: 0 40px 80px -40px rgba(11, 34, 48, .6); }
.wf__screen { position: relative; border-radius: 30px; overflow: hidden; background: var(--paper); height: 520px; display: grid; align-content: start; gap: 10px; padding: 14px 14px 70px; }
.wf__blk { position: relative; border-radius: 14px; background: var(--white); border: 1px solid var(--line); padding: 14px; display: grid; gap: 8px; }
.wf__blk span { display: block; height: 10px; border-radius: 5px; background: var(--line); width: 70%; }
.wf__blk span.s { width: 50%; height: 7px; }
.wf__fv { min-height: 150px; background: linear-gradient(150deg, var(--mint), var(--white)); align-content: end; }
.wf__fv span { background: var(--ink); width: 80%; height: 12px; }
.wf__fv em { display: block; width: 46%; height: 24px; border-radius: 999px; background: var(--teal-deep); }
.wf__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wf__row b { height: 46px; border-radius: 8px; background: var(--mint); }
.wf__cta { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 46px; border-radius: 999px; background: var(--teal-deep); color: var(--white); display: grid; place-items: center; font-size: 12px; font-weight: 700; animation: ctaBob 2.4s ease-in-out infinite; }
@keyframes ctaBob { 50% { transform: translateY(-4px); box-shadow: 0 12px 20px -10px rgba(8, 121, 138, .7); } }
.wf__spot { position: absolute; right: -6px; top: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: var(--white); font: 800 12px/24px var(--font-latin); text-align: center; font-style: normal; box-shadow: 0 0 0 0 rgba(20, 182, 201, .6); animation: ping 2s infinite; z-index: 2; }
.wf__cta .wf__spot { right: 6px; top: -10px; }
.wf__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
.wf__list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; padding: 18px 20px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.wf__num { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: var(--white); display: grid; place-items: center; font: 800 16px var(--font-latin); }
.wf__list h3 { font-size: 17px; margin-bottom: 2px; }
.wf__list p { font-size: 14px; color: var(--ink-2); line-height: 1.75; }

/* --- funnel (Sales) --- */
.fn { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 12px; max-width: 860px; }
.fn li { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.fn__bar { justify-self: center; width: var(--w); height: 64px; border-radius: 14px; background: linear-gradient(90deg, var(--teal-deep), var(--teal)); color: var(--white); display: grid; place-items: center; text-align: center; padding: 0 12px; transform-origin: center; transition: transform .9s var(--ease), opacity .9s var(--ease); transition-delay: calc(var(--i) * .2s); box-shadow: 0 14px 28px -18px rgba(8, 121, 138, .8); }
.fn__bar b { font-family: var(--font-display); font-size: 15px; line-height: 1.4; }
.fn li:last-child .fn__bar { background: var(--navy); }
.fn li p { font-size: 14px; color: var(--ink-2); }
.js .fn:not(.is-in) .fn__bar { transform: scaleX(.2); opacity: .2; }

/* --- comparison table --- */
.cmp-sec { background: var(--paper); }
.cmp { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--white); }
.cmp table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-family: var(--font-display); font-size: 15px; background: var(--paper); }
.cmp thead th.cmp__r { background: var(--teal-deep); color: var(--white); }
.cmp__badge { display: block; font: 700 10.5px var(--font-latin); letter-spacing: .16em; color: #9fe4ec; }
.cmp tbody th { font-weight: 700; width: 26%; }
.cmp td.cmp__l { color: var(--ink-3); width: 34%; }
.cmp td.cmp__r { background: rgba(20, 182, 201, .06); font-weight: 700; color: var(--ink); }
.mk { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; font-size: 14px; font-weight: 700; vertical-align: middle; }
.mk.is-good { background: var(--teal-deep); color: var(--white); }
.mk.is-ok { background: var(--mint); color: var(--teal-deep); }
.mk.is-mid { background: var(--paper); color: var(--ink-3); border: 1px solid var(--line); }
.mk.is-bad { background: var(--paper); color: #b06a6a; border: 1px solid var(--line); }

/* --- before / after --- */
.ba-sec { background: var(--white); }
.ba { display: grid; grid-template-columns: 1fr 64px 1fr; gap: 16px; align-items: stretch; max-width: 980px; margin: 0 auto; }
.ba__col { padding: 28px; border-radius: 20px; display: grid; gap: 12px; align-content: start; }
.ba__col--before { background: var(--paper); border: 1px solid var(--line); }
.ba__col--after { background: linear-gradient(160deg, var(--teal-deep), #0b5f70); color: var(--white); box-shadow: 0 30px 60px -36px rgba(8, 121, 138, .8); }
.ba__tag { font: 800 12px var(--font-latin); letter-spacing: .2em; color: var(--ink-3); }
.ba__col--after .ba__tag { color: #9fe4ec; }
.ba__col h3 { font-size: 20px; }
.ba__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ba__col li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.7; }
.ba__col--before li { color: var(--ink-2); }
.ba__col--before li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink-3); opacity: .5; }
.ba__col--after li::before { content: ""; position: absolute; left: 3px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid #7fe0eb; border-bottom: 2.5px solid #7fe0eb; transform: rotate(-45deg); }
.ba__arrow { display: grid; place-items: center; }
.ba__arrow span { width: 48px; height: 48px; border-radius: 50%; background: var(--teal); position: relative; animation: pulsePlus 1.8s ease-in-out infinite; }
.ba__arrow span::after { content: ""; position: absolute; left: 15px; top: 17px; width: 12px; height: 12px; border-top: 3px solid var(--white); border-right: 3px solid var(--white); transform: rotate(45deg); }

/* --- recommended --- */
.tgt-sec { background: var(--paper); }
.tgt__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tgt { position: relative; padding: 28px 26px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; overflow: hidden; min-width: 0; }
.tgt::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--teal), transparent); }
.tgt__no { font: 800 12px var(--font-latin); letter-spacing: .16em; color: var(--teal); }
.tgt h3 { font-size: 18px; }
.tgt p { font-size: 14.5px; color: var(--ink-2); line-height: 1.8; }

/* --- service chooser --- */
.chooser-sec { background: var(--white); }
.chooser { max-width: 920px; margin: 0 auto; padding: clamp(24px, 4vw, 40px); border-radius: 26px; background: linear-gradient(160deg, var(--mint), var(--white) 60%); border: 1px solid #c4e9ee; display: grid; gap: 24px; }
.chooser__q { display: flex; align-items: center; gap: 14px; }
.chooser__ai { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; }
.chooser__ai img { width: 40px; animation: float 4s ease-in-out infinite; }
.chooser__q p { font-weight: 700; font-family: var(--font-display); font-size: 17px; }
.chooser__opts { display: flex; flex-wrap: wrap; gap: 10px; }
.chooser__opt { font: 700 14px/1.4 var(--font-body); padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.chooser__opt:hover { border-color: var(--teal); transform: translateY(-2px); }
.chooser__opt.is-on { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
.chooser__res { padding: 24px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; animation: fadeUp .5s var(--ease); }
.chooser__res h3 { font-size: 22px; }
.chooser__res p { color: var(--ink-2); }

/* --- values & stats (company) --- */
.values-sec { background: var(--paper); }
.val__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.val { display: grid; grid-template-columns: 120px 1fr 1.4fr; gap: 24px; align-items: baseline; padding: 32px 0; border-bottom: 1px solid var(--line); }
.val__no { font: 800 48px/1 var(--font-latin); color: transparent; -webkit-text-stroke: 1.5px var(--teal); }
.val h3 { font-size: clamp(19px, 2.2vw, 24px); }
.val p { color: var(--ink-2); font-size: 15px; }
.stats { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 22px; overflow: hidden; background: var(--navy); color: var(--white); }
.stats > div { padding: 32px 24px; text-align: center; display: grid; gap: 4px; }
.stats > div + div { border-left: 1px solid rgba(255, 255, 255, .1); }
.stats b { font: 800 clamp(36px, 5vw, 56px)/1.1 var(--font-latin); color: #7fe0eb; }
.stats b span { font-size: .6em; margin-left: 2px; color: var(--white); }
.stats small { font-size: 13px; color: #a9c6cf; }

/* --- contact flow --- */
.cflow-sec { background: var(--white); }
.cflow { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; counter-reset: s; }
.cflow li { position: relative; padding: 28px 24px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.cflow li:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-top: 2px solid var(--teal); border-right: 2px solid var(--teal); transform: rotate(45deg); }
.cflow span { font: 800 12px var(--font-latin); letter-spacing: .16em; color: var(--teal); }
.cflow h3 { font-size: 18px; }
.cflow p { font-size: 14px; color: var(--ink-2); }

@media (max-width: 1024px) {
  .pipe__steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .pipe__track { display: none; }
  .jr { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .jr li:nth-child(3)::after { display: none; }
}
@media (max-width: 860px) {
  .pipe__steps { grid-template-columns: 1fr; gap: 0; }
  .pipe__steps li { grid-template-columns: 56px 1fr; justify-items: start; text-align: left; column-gap: 16px; row-gap: 8px; padding-bottom: 22px; position: relative; }
  .pipe__steps li .pipe__dot { grid-row: span 2; }
  .pipe__steps li:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: var(--line); }
  .cyc { grid-template-columns: 1fr; grid-template-areas: "hub" "n" "e" "s" "w"; justify-items: center; }
  .cyc__card { width: 100%; }
  .cyc__hub { width: 220px; height: 220px; }
  .jr { grid-template-columns: 1fr; gap: 14px; }
  .jr li::after { display: none; }
  .jr li.is-media { transform: none; margin-top: 10px; }
  .wf { grid-template-columns: 1fr; }
  .wf__phone { width: 250px; }
  .wf__screen { height: 470px; }
  .fn li { grid-template-columns: 1fr; gap: 6px; }
  .fn__bar { height: 56px; }
  .fn li p { text-align: center; font-size: 13px; }
  .ba { grid-template-columns: 1fr; }
  .ba__arrow { transform: rotate(90deg); }
  .tgt__grid, .cflow { grid-template-columns: 1fr; }
  .cflow li::after { display: none; }
  .val { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .val__no { font-size: 36px; }
  .stats { grid-template-columns: 1fr; }
  .stats > div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .chooser__opt { font-size: 13px; padding: 10px 14px; }
}

/* ===== Blog posts ===== */
.wrap--post { max-width: 820px; }
.post-hero { padding-block: clamp(48px, 7vw, 80px) 32px; background: linear-gradient(160deg, #eefafc, #f7fbfc 60%); border-bottom: 1px solid var(--line); }
.post-hero .wrap { display: grid; gap: 16px; }
.post-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-family: var(--font-latin); font-weight: 600; color: var(--ink-3); font-size: 14px; }
.post-hero__upd { font-size: 13px; }
.post-hero h1 { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.55; }
.post { padding-block: 40px 80px; background: var(--white); }
.post__thumb { margin: 0 0 32px; border-radius: 18px; overflow: hidden; }
.post__thumb img { width: 100%; height: auto; }
.toc { margin: 0 0 40px; padding: 22px 26px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.toc__title { font-family: var(--font-display); font-weight: 700; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; font-size: 14.5px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--teal-deep); text-decoration: underline; }
.entry__body img, .entry__body figure img { border-radius: 14px; height: auto; }
.entry__body figure { margin: 2em 0; }
.entry__body figcaption { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 8px; }
.entry__body ul, .entry__body ol { padding-left: 1.4em; }
.entry__body table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.entry__body th, .entry__body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.entry__body th { background: var(--paper); }
.entry__body blockquote { margin: 1.6em 0; padding: 16px 20px; border-left: 4px solid var(--teal); background: var(--paper); border-radius: 0 12px 12px 0; }
.entry__body h2 { scroll-margin-top: 96px; }
.post-cta { margin-top: 56px; display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; padding: 28px; border-radius: 22px; background: linear-gradient(160deg, var(--mint), var(--white)); border: 1px solid #c4e9ee; }
.post-cta img { width: 96px; animation: float 4s ease-in-out infinite; }
.post-cta__lead { font-family: var(--font-display); font-weight: 900; font-size: 20px; color: var(--teal-deep); }
.post-cta p { color: var(--ink-2); font-size: 14.5px; }
.post-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: grid; grid-template-rows: auto 1fr; border-radius: 18px; overflow: hidden; background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease); min-width: 0; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -26px rgba(8, 121, 138, .45); }
.post-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--mint); display: grid; place-items: center; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card__img img.is-ph { width: 30%; height: auto; object-fit: contain; }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__body { padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; }
.post-card__meta { display: flex; gap: 10px; align-items: center; font: 600 12.5px var(--font-latin); color: var(--ink-3); }
.post-card b { font-family: var(--font-display); font-size: 16px; line-height: 1.6; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.cat-tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); text-decoration: none; font-size: 14px; font-weight: 700; }
.cat-tabs a.is-on { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
@media (max-width: 860px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-cta { grid-template-columns: 1fr; justify-items: start; }
  .post-cta img { width: 72px; }
}
