:root {
  --ink: #14213D;
  --body: #3D4B61;
  --muted: #6B7890;
  --sky: #1E63C6;
  --sky-deep: #174E9E;
  --sun: #F08A1C;
  --sun-deep: #D9760B;
  --mist: #EEF3F9;
  --line: #D6DFEA;
  --paper: #FFFFFF;
  --radius-l: 28px;
  --radius-m: 16px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: "IBM Plex Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.4; letter-spacing: .02em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--mist { background: var(--mist); }
.section-title { font-size: clamp(26px, 3.4vw, 40px); }
.section-lead { margin-top: 20px; max-width: 40em; font-size: 17px; }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; letter-spacing: .04em;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--sun { background: var(--sun); color: #fff; }
.btn--sun:hover { background: var(--sun-deep); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--mist); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 14px; }

/* header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.header__logo img { height: 30px; width: auto; }
.header__panel { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--sky); }
.header__cta { display: flex; gap: 10px; }
.menu-btn { display: none; }
@media (max-width: 1080px) {
  .header__panel { display: none; }
  .menu-btn {
    display: inline-flex; margin-left: auto; align-items: center; gap: 8px;
    background: none; border: 1px solid var(--line); border-radius: 999px;
    padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer;
  }
  .header.is-open .header__panel {
    display: flex; flex-direction: column; align-items: stretch; gap: 20px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .header.is-open .nav { flex-direction: column; gap: 0; }
  .header.is-open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .header.is-open .header__cta .btn { flex: 1; }
}

/* hero */
.hero { position: relative; overflow: hidden; background: var(--mist); }
.hero__sky {
  position: absolute; inset: 0 0 0 50%;
  background: url("../../assets/img/top/hero-sky.jpg") center / cover no-repeat;
  border-bottom-left-radius: 120px;
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center;
  padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 112px);
}
.hero__kind { font-size: 15px; font-weight: 500; color: var(--sky-deep); }
.hero__title { margin-top: 18px; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.3; letter-spacing: .01em; }
.hero__title span { display: inline-block; }
.hero__lead { margin-top: 28px; font-size: 17px; max-width: 27em; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin-top: 28px; font-size: 12px; color: var(--muted); line-height: 1.7; max-width: 36em; }

/* forecast demo */
.forecast {
  background: #fff; border-radius: var(--radius-l); padding: 24px;
  box-shadow: 0 30px 60px -30px rgba(20, 33, 61, .45);
}
.forecast__ask { font-size: 14px; font-weight: 700; color: var(--ink); }
.forecast__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.forecast__tab {
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); display: inline-flex; align-items: center; gap: 6px;
}
.forecast__tab svg { width: 18px; height: 18px; }
.forecast__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.forecast__body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; align-items: center; }
.forecast__ad { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 1; background: var(--mist); }
.forecast__ad img { width: 100%; height: 100%; object-fit: cover; }
.forecast__rule dt { font-size: 12px; color: var(--muted); }
.forecast__rule dd { color: var(--ink); font-weight: 700; font-size: 17px; line-height: 1.5; margin-bottom: 14px; }
.forecast__rule dd.is-on { display: inline-flex; align-items: center; gap: 8px; }
.forecast__rule dd.is-on::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #23A55A; box-shadow: 0 0 0 4px rgba(35,165,90,.18); }
.forecast__foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.6; }
.forecast__ad img.is-swapping { animation: swap .45s ease; }
@keyframes swap { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .forecast__ad img.is-swapping { animation: none; } }

/* clients */
.clients { padding: 48px 0 56px; border-bottom: 1px solid var(--line); }
.clients__title { font-size: 14px; font-weight: 500; color: var(--muted); text-align: center; }
.clients__list { margin-top: 24px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px 16px; align-items: center; }
.clients__list img { width: 100%; max-width: 150px; margin: 0 auto; }

/* results */
.results { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.result { padding: 32px 28px 36px 0; border-bottom: 1px solid var(--line); }
.result:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.result__who { font-size: 14px; color: var(--muted); }
.result__num { margin-top: 6px; color: var(--ink); font-weight: 700; line-height: 1.2; font-size: 18px; }
.result__num b { font-size: clamp(44px, 5vw, 64px); letter-spacing: -.01em; color: var(--sky); margin: 0 4px; }
.result__sub { font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 6px; }

/* about (formula) */
.formula { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.formula__op { align-self: center; font-size: 40px; font-weight: 400; color: var(--muted); }
.formula__box { background: #fff; border-radius: var(--radius-l); padding: 32px; border: 1px solid var(--line); }
.formula__box h3 { font-size: 22px; }
.formula__box p { margin-top: 8px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--mist); color: var(--ink); font-size: 14px; font-weight: 500; }
.formula__result {
  grid-column: 1 / -1; margin-top: 8px; padding: 28px 32px; border-radius: var(--radius-l);
  background: var(--ink); color: #fff; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline;
}
.formula__result strong { font-size: clamp(20px, 2.4vw, 26px); }
.formula__result span { font-size: 15px; color: #C9D3E3; }

/* features: sticky media + list */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.features__media { position: sticky; top: 104px; border-radius: var(--radius-l); overflow: hidden; background: var(--ink); }
.features__media video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feature { padding: 36px 0; border-top: 1px solid var(--line); }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature h3 { font-size: 24px; }
.feature p { margin-top: 14px; }
.feature__fact { margin-top: 16px; display: flex; gap: 32px; flex-wrap: wrap; }
.feature__fact div { color: var(--ink); font-weight: 700; font-size: 28px; line-height: 1.2; }
.feature__fact small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 4px; }

/* merits: dark band */
.merits { background: var(--ink); color: #D3DCEA; border-radius: var(--radius-l); padding: clamp(40px, 6vw, 72px); }
.merits .section-title { color: #fff; }
.merits__list { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
.merits__list h3 { color: #fff; font-size: 20px; }
.merits__list p { margin-top: 10px; font-size: 15px; }
.merits__list li { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); }

/* cases */
.case-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; background: #fff; border-radius: var(--radius-l); overflow: hidden; }
.case-feature__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 986 / 536; }
.case-feature__body { padding: 40px 48px 40px 0; }
.case-feature__logo { height: 44px; width: auto; }
.case-feature__body .case-feature__result { margin-top: 20px; font-size: clamp(22px, 2.4vw, 28px); color: var(--ink); font-weight: 700; line-height: 1.45; }
.case-feature__body p { margin-top: 14px; font-size: 15px; }
.cases { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case { background: #fff; border-radius: var(--radius-m); padding: 28px; }
.case__logo { height: 56px; display: flex; align-items: center; }
.case__logo img { max-height: 56px; width: auto; max-width: 180px; }
.case__name { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--ink); }
.case p { margin-top: 8px; font-size: 15px; line-height: 1.8; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 32px; display: flex; flex-direction: column; }
.plan--main { border: 2px solid var(--sky); }
.plan h3 { font-size: 21px; }
.plan__desc { margin-top: 12px; font-size: 15px; flex: 1; }
.plan__price { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.plan__price dt { font-size: 13px; color: var(--muted); }
.plan__price dd { color: var(--ink); font-weight: 700; font-size: 18px; line-height: 1.6; }
.plan__price dd small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.partner { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 32px; border-radius: var(--radius-l); background: var(--mist); }
.partner h3 { font-size: 19px; }
.partner p { font-size: 15px; margin-top: 4px; }

/* flow */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
.flow li { position: relative; padding: 0 32px 0 0; }
.flow li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.flow__no { font-size: 15px; font-weight: 700; color: var(--sky); }
.flow h3 { margin-top: 8px; font-size: 22px; }
.flow p { margin-top: 12px; font-size: 15px; }
.flow__term { margin-top: 32px; font-size: 15px; color: var(--ink); font-weight: 500; }

/* column */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post a { text-decoration: none; display: block; }
.post img { border-radius: var(--radius-m); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post time { display: block; margin-top: 16px; font-size: 13px; color: var(--muted); }
.post__meta { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.post__meta time { margin-top: 0; }
.post__cat { padding: 2px 10px; border-radius: 999px; background: var(--mist); color: var(--sky); font-weight: 700; font-size: 12px; }
.post[hidden] { display: none; }
.post h3 { margin-top: 6px; font-size: 17px; line-height: 1.6; }
.post a:hover h3 { color: var(--sky); text-decoration: underline; text-underline-offset: 4px; }
.posts-more { margin-top: 40px; }
.section-head--row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* final cta */
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cta__item { border-radius: var(--radius-l); padding: clamp(32px, 4vw, 56px); }
.cta__item--doc { background: var(--sky); color: #E6EEFA; }
.cta__item--doc h2 { color: #fff; }
.cta__item--contact { background: var(--mist); }
.cta__item h2 { font-size: clamp(24px, 2.6vw, 32px); }
.cta__item p { margin-top: 12px; }
.cta__item .btn { margin-top: 28px; }

/* footer */
.footer { padding: 56px 0 40px; background: var(--ink); color: #A9B5C9; font-size: 14px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer__logo { background: #fff; border-radius: 12px; padding: 10px 16px; display: inline-block; }
.footer__logo img { height: 26px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer__links a { color: #fff; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__note { margin-top: 32px; font-size: 12px; line-height: 1.8; }
.footer__copy { margin-top: 16px; font-size: 12px; }

/* ===== sub pages ===== */
.nav a[aria-current="page"] { color: var(--sky); }
.section--tight { padding: clamp(48px, 7vw, 88px) 0; }

/* page head */
.page-head { background: var(--mist); padding: clamp(32px, 5vw, 56px) 0 clamp(40px, 6vw, 72px); border-bottom-left-radius: 80px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--sky); text-decoration: underline; }
.crumbs [aria-current] { display: inline-block; max-width: 28em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.page-head__title { margin-top: clamp(20px, 3vw, 32px); font-size: clamp(30px, 4.2vw, 52px); }
.page-head__lead { margin-top: 16px; max-width: 40em; font-size: 17px; }
.page-head--article .page-head__title { font-size: clamp(26px, 3.4vw, 40px); max-width: 26em; }
.page-head__meta { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* column list */
.posts--list { row-gap: 56px; }
.post h2 { margin-top: 6px; font-size: 17px; line-height: 1.6; }
.post a:hover h2 { color: var(--sky); text-decoration: underline; text-underline-offset: 4px; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.cat-tabs__tab {
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); display: inline-flex; align-items: center; gap: 8px;
}
.cat-tabs__tab:hover { border-color: var(--ink); }
.cat-tabs__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-tabs__count { font-size: 12px; color: var(--muted); }
.cat-tabs__tab[aria-selected="true"] .cat-tabs__count { color: rgba(255, 255, 255, .7); }

/* article layout */
.article__layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(64px, 8vw, 104px); }
.article__main { max-width: 760px; }
.article__thumb img { border-radius: var(--radius-l); width: 100%; }
.toc { position: sticky; top: 104px; }
.toc__box { border-left: 2px solid var(--line); padding-left: 20px; }
.toc__title { font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.toc__title::-webkit-details-marker { display: none; }
.toc ol { margin-top: 12px; display: grid; gap: 10px; }
.toc a { display: block; font-size: 14px; line-height: 1.6; color: var(--body); text-decoration: none; }
.toc a:hover { color: var(--sky); }
.toc a.is-active { color: var(--sky); font-weight: 700; }

/* article body */
.prose { margin-top: 40px; font-size: 17px; line-height: 2; }
.prose > * + * { margin-top: 1.4em; }
.prose h2 { margin-top: 2.6em; padding-top: 1.2em; border-top: 2px solid var(--ink); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.5; scroll-margin-top: 96px; }
.prose h3 { margin-top: 2.2em; padding-left: 14px; border-left: 4px solid var(--sky); font-size: clamp(19px, 2vw, 22px); line-height: 1.55; scroll-margin-top: 96px; }
.prose h4 { margin-top: 2em; font-size: 18px; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: 1em; }
.prose a { color: var(--sky); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--sky); }
.prose .list-box { background: var(--mist); border-radius: var(--radius-m); padding: 24px 28px 24px 48px; }
.prose .figure img { border-radius: 12px; margin: 0 auto; }
.prose figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.prose .is-center { text-align: center; }
.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.7; min-width: 520px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.prose th, .prose thead td, .prose tbody:first-child tr:first-child td { background: var(--mist); color: var(--ink); font-weight: 700; }
.prose .case-table th { width: 8em; background: var(--mist); color: var(--ink); font-weight: 700; white-space: nowrap; }
.prose table.case-table tbody tr:nth-child(n) td { background: none; color: inherit; font-weight: 400; }
.prose .case-table { min-width: 0; }
.prose .label-table tbody td:first-child { white-space: nowrap; font-weight: 700; color: var(--ink); }
.article-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.article-cta { margin-top: 2.4em; padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-l); background: var(--ink); color: #D3DCEA; font-size: 15px; line-height: 1.9; }
.article-cta__title { color: #fff; font-weight: 700; font-size: 18px; line-height: 1.6; }
.article-cta p + p { margin-top: 12px; }
.article-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px !important; }
.article-cta .btn--line { border-color: #fff; color: #fff; }
.article-cta .btn--line:hover { background: #fff; color: var(--ink); }
.link-card { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-m); text-decoration: none; color: inherit; }
.prose .link-card { color: inherit; text-decoration: none; }
.link-card img { border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; }
.link-card__label { display: block; font-size: 12px; color: var(--muted); }
.link-card__title { display: block; margin-top: 4px; font-weight: 700; color: var(--ink); line-height: 1.6; font-size: 16px; }
.link-card:hover { border-color: var(--sky); }
.link-card:hover .link-card__title { color: var(--sky); }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 48px); min-height: 400px; }
.contact__side { display: grid; gap: 20px; position: sticky; top: 104px; }
.contact__box { border-radius: var(--radius-l); padding: 32px; background: var(--sky); color: #E6EEFA; }
.contact__box h2 { color: #fff; font-size: 20px; }
.contact__box p { margin-top: 10px; font-size: 15px; }
.contact__box .btn { margin-top: 20px; }
.contact__box--plain { background: var(--mist); color: var(--body); }
.contact__box--plain h2 { color: var(--ink); }
.contact__steps { margin-top: 14px; counter-reset: cstep; display: grid; gap: 10px; font-size: 15px; line-height: 1.7; }
.contact__steps li { counter-increment: cstep; display: grid; grid-template-columns: 28px 1fr; gap: 8px; }
.contact__steps li::before { content: counter(cstep); width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--sky); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
/* HubSpot form (rendered into #hs-form) */
.hs-form-wrap fieldset { max-width: none !important; border: 0; padding: 0; margin: 0; }
.hs-form-wrap .hs-form-field { margin-bottom: 22px; }
.hs-form-wrap label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.hs-form-wrap .hs-form-required { color: #D93A3A; margin-left: 4px; }
.hs-form-wrap .input { margin: 0 !important; }
.hs-form-wrap input[type="text"], .hs-form-wrap input[type="email"], .hs-form-wrap input[type="tel"], .hs-form-wrap input[type="number"], .hs-form-wrap select, .hs-form-wrap textarea {
  width: 100% !important; font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff;
}
.hs-form-wrap textarea { min-height: 160px; }
.hs-form-wrap input:focus, .hs-form-wrap select:focus, .hs-form-wrap textarea:focus { outline: 3px solid rgba(30, 99, 198, .25); border-color: var(--sky); }
.hs-form-wrap .hs-error-msgs { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; color: #D93A3A; }
.hs-form-wrap .hs-richtext, .hs-form-wrap .legal-consent-container { font-size: 13px; line-height: 1.7; color: var(--muted); }
.hs-form-wrap .hs-submit { margin-top: 8px; }
.hs-form-wrap input[type="submit"] {
  font: inherit; font-weight: 700; font-size: 15px; letter-spacing: .04em; cursor: pointer;
  min-height: 52px; padding: 0 40px; border: 0; border-radius: 999px; background: var(--sun); color: #fff;
}
.hs-form-wrap input[type="submit"]:hover { background: var(--sun-deep); }

/* thanks */
.thanks { max-width: 760px; font-size: 17px; }
.thanks p + p { margin-top: 12px; }
.thanks__actions { margin-top: 32px !important; display: flex; flex-wrap: wrap; gap: 12px; }

/* motion: hidden states apply only when JS runs and motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  /* hero entrance */
  .js .hero__kind,
  .js .hero__lead,
  .js .hero__cta,
  .js .hero__note { opacity: 0; animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
  .js .hero__kind { animation-delay: .1s; }
  .js .hero__lead { animation-delay: .75s; }
  .js .hero__cta { animation-delay: .9s; }
  .js .hero__note { animation-delay: 1.05s; }
  .js .hero__title span { clip-path: inset(0 0 100% 0); transform: translateY(.45em); animation: unmask 1s cubic-bezier(.2, .7, .2, 1) forwards; }
  .js .hero__title span:nth-child(1) { animation-delay: .25s; }
  .js .hero__title span:nth-child(2) { animation-delay: .45s; }
  .js .hero__sky { opacity: 0; transform: scale(1.06); animation: sky 1.6s cubic-bezier(.2, .7, .2, 1) forwards; }
  .js .forecast { opacity: 0; transform: translateY(32px); animation: rise 1s cubic-bezier(.2, .7, .2, 1) .55s forwards; }

  /* sub page head entrance */
  .js .crumbs, .js .page-head__lead, .js .page-head__meta { opacity: 0; animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
  .js .page-head__lead, .js .page-head__meta { animation-delay: .45s; }
  .js .page-head__title { clip-path: inset(0 0 100% 0); transform: translateY(.4em); animation: unmask 1s cubic-bezier(.2, .7, .2, 1) .15s forwards; }
  .js .article__layout { opacity: 0; animation: rise 1s cubic-bezier(.2, .7, .2, 1) .5s forwards; }

  /* section headings: line unmasks upward */
  .js .section-title.reveal { clip-path: inset(0 0 100% 0); transform: translateY(.4em); transition: clip-path .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
  .js .section-title.reveal.is-in { clip-path: inset(-10% 0 -20% 0); transform: none; }

  /* everything else: fade up, staggered among siblings */
  .js .reveal:not(.section-title) { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .reveal.is-in:not(.section-title) { opacity: 1; transform: none; }

  /* chips pop in one by one once their box is visible */
  .js .formula__box .chips li { opacity: 0; transform: scale(.85); transition: opacity .4s ease, transform .4s cubic-bezier(.3, 1.4, .5, 1); transition-delay: calc(.3s + var(--c, 0) * 45ms); }
  .js .formula__box.is-in .chips li { opacity: 1; transform: none; }

  /* forecast rule text slides in when the weather changes */
  .forecast__rule dd.is-changing { animation: rule .5s cubic-bezier(.2, .7, .2, 1); }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes unmask { to { clip-path: inset(-10% 0 -20% 0); transform: none; } }
@keyframes sky { to { opacity: 1; transform: none; } }
@keyframes rule { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

/* responsive */
@media (max-width: 960px) {
  .hero__sky { inset: auto 0 0 0; height: 46%; border-bottom-left-radius: 0; border-top-left-radius: 80px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .clients__list { grid-template-columns: repeat(4, 1fr); }
  .results { grid-template-columns: repeat(2, 1fr); }
  .result, .result:not(:nth-child(3n+1)) { padding: 24px 20px 28px 0; border-left: 0; }
  .result:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
  .formula { grid-template-columns: 1fr; }
  .formula__op { justify-self: center; line-height: 1; }
  .features { grid-template-columns: 1fr; }
  .features__media { position: static; }
  .merits__list { grid-template-columns: 1fr; gap: 28px; }
  .case-feature { grid-template-columns: 1fr; gap: 0; }
  .case-feature__body { padding: 28px; }
  .cases, .plans, .posts { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow li, .flow li + li { padding: 0 0 0 20px; border-left: 2px solid var(--line); }
  .cta { grid-template-columns: 1fr; }
  .page-head { border-bottom-left-radius: 48px; }
  .article__layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .toc { position: static; }
  .toc__box { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 20px; }
  .toc__title::after { content: "＋"; float: right; color: var(--muted); }
  .toc__box[open] .toc__title::after { content: "－"; }
  .contact { grid-template-columns: 1fr; }
  .contact__side { position: static; }
}
@media (max-width: 560px) {
  .link-card { grid-template-columns: 1fr; }
  .prose { font-size: 16px; }
  .prose .list-box { padding: 20px 20px 20px 40px; }
}
@media (max-width: 560px) {
  .forecast { padding: 18px; }
  .forecast__body { grid-template-columns: 1fr; }
  .forecast__ad { max-width: 280px; }
  .clients__list { grid-template-columns: repeat(3, 1fr); }
  .results { grid-template-columns: 1fr; }
  .result:nth-child(2n) { padding-left: 0; border-left: 0; }
  .hero__cta .btn { flex: 1 1 100%; }
}
