/* Zaichain AI: Japanese-style design system. Washi white, crimson (紅), sumi ink, gold accents. */
:root {
  --bg: #FDFBF7;
  --surface: #FFFDFA;
  --surface-2: #F8F2EA;
  --border: #EADFD6;
  --text: #2B2224;
  --text-muted: #5E5254;
  --accent: #C22B33;
  --accent-hover: #A5222A;
  --accent-deep: #7A1820;
  --accent-tint: #FBEDEC;
  --accent-soft: #F3D2CF;
  --gold: #B8923A;
  --ok: #2E7D4F;
  --ng: #C22B33;
  --shadow-sm: 0 1px 2px rgba(94, 32, 32, .08), 0 2px 6px rgba(94, 32, 32, .05);
  --shadow-md: 0 1px 2px rgba(94, 32, 32, .06), 0 10px 28px rgba(94, 32, 32, .09);
  --shadow-lg: 0 2px 4px rgba(94, 32, 32, .08), 0 24px 60px rgba(94, 32, 32, .16);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2, .6, .2, 1);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif;
  --font-display: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  --asanoha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104' viewBox='0 0 60 104'%3E%3Cg fill='none' stroke='%23C22B33' stroke-opacity='.08' stroke-width='1'%3E%3Cpath d='M30 0l30 17.3V52L30 69.3 0 52V17.3zM30 0v69.3M0 17.3L60 52M60 17.3L0 52M30 69.3l30 17.3V104M30 69.3L0 86.6V104M30 69.3V104'/%3E%3C/g%3E%3C/svg%3E");
  --seigaiha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30' viewBox='0 0 60 30'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.16'%3E%3Cg id='a'%3E%3Ccircle cx='0' cy='30' r='30'/%3E%3Ccircle cx='0' cy='30' r='22.5'/%3E%3Ccircle cx='0' cy='30' r='15'/%3E%3Ccircle cx='0' cy='30' r='7.5'/%3E%3C/g%3E%3Cuse href='%23a' x='60'/%3E%3Cuse href='%23a' x='30' y='15'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.9;
  line-break: strict; overflow-wrap: anywhere; text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe, video, canvas { max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .6em; font-weight: 700; letter-spacing: .02em; }
h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 1.1rem + 1.75vw, 2.3rem); line-height: 1.42; text-wrap: balance; }
h2 { font-family: var(--font-display); font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2.05rem); text-wrap: balance; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1 var(--font); letter-spacing: .04em; white-space: nowrap;
  text-decoration: none; cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); background: var(--accent-deep); }
.btn--outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--outline:hover { background: var(--accent-tint); color: var(--accent-hover); transform: translateY(-2px); }
.btn--outline:active { transform: translateY(0); }
.btn--light { background: #FFFDFA; color: var(--accent-deep); }
.btn--light:hover { background: #fff; color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--lg { min-height: 56px; padding: 0 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(253, 251, 247, .94); backdrop-filter: saturate(1.3) blur(10px); border-bottom: 1px solid var(--border); transition: box-shadow .2s var(--ease), background .2s var(--ease); }
.site-header::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--accent-deep), var(--accent) 45%, var(--accent-deep)); }
.site-header.is-scrolled { box-shadow: var(--shadow-md); background: rgba(253, 251, 247, .99); }
.header__row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.header__logo { display: block; color: var(--text); line-height: 0; flex: none; }
.header__logo .logo { height: 44px; width: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; margin: 0; }
.nav__link, .nav__trigger {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; background: none; border-radius: 10px;
  color: var(--text); font: 600 .95rem/1 var(--font); letter-spacing: .04em; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s var(--ease), color .15s var(--ease);
}
.nav__link:hover, .nav__trigger:hover, .has-sub.is-open > .nav__trigger { background: var(--accent-tint); color: var(--accent); }
.nav__caret { width: 1em; height: 1em; transition: transform .18s var(--ease); }
.has-sub.is-open .nav__caret { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 70; min-width: 260px; margin: 0; padding: 8px; list-style: none;
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.submenu::before { content: ""; position: absolute; top: -6px; left: 26px; width: 10px; height: 10px; background: var(--bg); border-left: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg); }
.submenu.is-right { left: auto; right: 0; }
.submenu.is-right::before { left: auto; right: 26px; }
.has-sub:hover > .submenu, .has-sub.is-open > .submenu, .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu li { margin: 0; }
.submenu__link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .93rem; font-weight: 500; line-height: 1.4; transition: background .14s var(--ease), color .14s var(--ease); }
.submenu__link:hover, .submenu__link:focus-visible, .submenu__link.is-current { background: var(--accent-tint); color: var(--accent-hover); }
.submenu__icon { color: var(--accent); width: 1.15em; height: 1.15em; }
.header__cta { flex: none; min-height: 44px; padding: 0 22px; font-size: .95rem; }
.nav__cta-mobile { display: none; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; color: var(--text); cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }
  .nav { position: fixed; inset: 72px 0 0 0; margin: 0; padding: 16px clamp(16px, 4vw, 40px) 40px; background: var(--bg); overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 6px; }
  .nav__link, .nav__trigger { width: 100%; justify-content: space-between; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); font-size: 1rem; }
  .submenu { position: static; min-width: 0; margin-top: 6px; border: 0; box-shadow: none; background: transparent; padding: 0 0 0 8px; opacity: 1; visibility: visible; transform: none; display: none; }
  .submenu::before { display: none; }
  .has-sub:hover > .submenu { display: none; }
  .has-sub.is-open > .submenu { display: block; }
  .nav__cta-mobile { display: inline-flex; width: 100%; margin-top: 18px; }
}

/* ---------- ticker (beacon addon) ---------- */
.tv-ticker-wrapper { border-bottom: 1px solid var(--border); background: var(--surface) !important; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: .85rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none; margin: 0; padding: 10px 0; }
.breadcrumbs li { margin: 0; color: var(--text-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: var(--accent-soft); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(56px, 7vw, 100px); }
.section--tint { background: var(--accent-tint) var(--asanoha); }
.section--paper { background: var(--surface-2); }
.section--pattern { background: var(--bg) var(--asanoha); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); margin-bottom: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 4px 14px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-hover); font-size: .8rem; font-weight: 700; letter-spacing: .12em; }
.lead { font-size: 1.08rem; color: var(--text-muted); }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .grid--pair { grid-template-columns: 1fr; } }
.grid--stagger { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.grid--stagger > :nth-child(even) { margin-top: 28px; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split--rev > :first-child { order: 0; } .grid--stagger > :nth-child(even) { margin-top: 0; } }
.illus { display: block; width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-md); background: var(--accent-tint); }
.illus--plain { box-shadow: none; background: none; }
.stack > * + * { margin-top: 1.1rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(36px, 5vw, 72px) clamp(120px, 13vw, 190px); background: var(--bg) center bottom / cover no-repeat; }
.hero--wave { background-image: url("/assets/images/scene-wave.svg"); }
.hero--fuji { background-image: url("/assets/images/scene-fuji.svg"); }
.hero--net { background-image: url("/assets/images/scene-net.svg"); }
.hero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(253, 251, 247, .95) 0%, rgba(253, 251, 247, .84) 30%, rgba(253, 251, 247, .28) 56%, rgba(253, 251, 247, 0) 78%); pointer-events: none; }
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg .hero-art { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; will-change: transform; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(340px, .82fr); grid-template-areas: "head form" "more form"; gap: 0 clamp(28px, 5vw, 72px); align-items: start; }
.hero__head { grid-area: head; }
.hero__more { grid-area: more; }
.hero__form { grid-area: form; }
.hero__grid--simple { grid-template-areas: "head form"; align-items: center; }
.hero h1 { margin-bottom: .5em; }
.hero .lead { color: var(--text); opacity: .86; max-width: 42em; }
@media (max-width: 900px) {
  .hero__grid, .hero__grid--simple { grid-template-columns: 1fr; grid-template-areas: "head" "form" "more"; }
  .hero__scrim { background: linear-gradient(180deg, rgba(253, 251, 247, .96), rgba(253, 251, 247, .8)); }
  .hero__form { margin-block: 12px 24px; }
}
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--accent-soft); color: var(--accent-hover); font-size: .84rem; font-weight: 700; letter-spacing: .04em; box-shadow: var(--shadow-sm); }
.badge .icon { width: 1.1em; height: 1.1em; }
.badge--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.checks { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.checks .icon { color: var(--ok); margin-top: .32em; width: 1.15em; height: 1.15em; stroke-width: 2.4; }
.trust-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 8px; }
.trust-link { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; font-weight: 700; font-size: .95rem; line-height: 1.35; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s; }
.trust-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent-soft); color: var(--accent-hover); }
.trust-link small { display: block; font-weight: 500; color: var(--text-muted); font-size: .78rem; }
.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--accent-tint); color: var(--accent); }
.icon-badge .icon { width: 26px; height: 26px; }
.icon-badge--sm { width: 44px; height: 44px; border-radius: 12px; }
.icon-badge--solid { background: var(--accent); color: #fff; }
.stat-wrap { position: relative; z-index: 2; margin-top: clamp(-120px, -8vw, -64px); }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.stat { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: rgba(255, 253, 250, .92); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 14px; box-shadow: var(--shadow-sm); }
.stat strong { display: block; font-size: 1.28rem; line-height: 1.25; color: var(--accent-hover); }
.stat span { display: block; font-size: .82rem; color: var(--text-muted); line-height: 1.5; }

/* ---------- form block ---------- */
.form-block { position: relative; padding: clamp(20px, 3vw, 30px); background: var(--surface); border: 1px solid var(--border); border-top: 5px solid var(--accent); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.form-block__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.form-block__seal { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; background: var(--accent); color: #fff; }
.form-block__title { margin: 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: .05em; }
.form-block__intro { margin: 0 0 16px; padding: 12px 14px; background: var(--accent-tint); border-radius: 12px; font-size: .92rem; line-height: 1.75; }
.form-block .wpcf7-101 input:not([type=hidden]):not([type=submit]) { height: 48px; border-radius: 12px; border: 1px solid #D9C9BE; background: #fff; font: 500 1rem var(--font); color: var(--text); padding-inline: 14px; transition: border-color .15s, box-shadow .15s; }
.form-block .wpcf7-101 input:not([type=hidden]):not([type=submit]):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(194, 43, 51, .16); }
.form-block .wpcf7-101 input[type=submit] { height: 52px; border-radius: 999px; font: 700 1.05rem var(--font); letter-spacing: .06em; border: 0; box-shadow: var(--shadow-sm); transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); white-space: nowrap; }
.form-block .wpcf7-101 input[type=submit]:hover { background: var(--accent-hover) !important; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.form-block .wpcf7-101 input[type=submit]:active { transform: none; }
.form-note { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 14px 0 6px; font-size: .84rem; text-wrap: balance; font-weight: 700; color: var(--accent-hover); text-align: center; }
.form-note .icon { width: 1.1em; height: 1.1em; }
.form-legal { margin: 8px 0 0; font-size: .78rem; line-height: 1.7; color: var(--text-muted); text-align: center; }

/* ---------- cards ---------- */
.card { position: relative; padding: clamp(20px, 2.4vw, 28px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-md); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent-soft); }
.card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.card__head h3 { margin: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--text-muted); }
.card--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.card--accent p, .card--accent h3 { color: #fff; }
.card--accent .icon-badge { background: rgba(255, 255, 255, .18); color: #fff; }
.card--link { display: block; color: var(--text); text-decoration: none; }
.card--link .arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--accent); font-weight: 700; font-size: .92rem; }
.card--link:hover { color: var(--text); }
.card__tag { position: absolute; top: 16px; right: 16px; padding: 3px 12px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-hover); font-size: .74rem; font-weight: 700; letter-spacing: .06em; }
.card--wide { grid-column: span 2; }
@media (max-width: 700px) { .card--wide { grid-column: auto; } }
.tile { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; color: var(--text); text-decoration: none; font-weight: 700; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent-soft); color: var(--accent-hover); }
.tile small { display: block; color: var(--text-muted); font-weight: 500; font-size: .78rem; line-height: 1.5; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; margin: 0; padding: 22px 22px 22px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-md); counter-increment: step; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: .95rem; margin-right: 10px; flex: none; }
.step__title { display: flex; align-items: center; margin: 14px 0 8px; font-size: 1.08rem; font-weight: 700; line-height: 1.4; }
.step p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.steps--list { display: block; }
.steps--list .step { margin-bottom: 16px; display: grid; grid-template-columns: auto 1fr; gap: 0 18px; align-items: start; }
.steps--list .step__title { margin-top: 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-md); -webkit-overflow-scrolling: touch; }
.table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; line-height: 1.7; font-family: var(--font); }
.table caption { text-align: left; padding: 14px 18px; font-weight: 700; caption-side: top; background: var(--surface-2); }
.table th, .table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table thead th { background: var(--surface-2); font-weight: 700; white-space: nowrap; border-bottom: 2px solid var(--accent-soft); }
.table tbody tr:nth-child(even) { background: rgba(248, 242, 234, .5); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody th { font-weight: 700; white-space: nowrap; }
.table .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.compare .table thead th:nth-child(2) { background: var(--accent); color: #fff; text-align: center; }
.compare .table thead th:nth-child(3) { text-align: center; }
.compare .table td:nth-child(2) { background: var(--accent-tint); text-align: center; }
.compare .table td:nth-child(3) { text-align: center; }
.compare .table td:first-child { font-weight: 600; }
.mark { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; }
.mark .icon { width: 16px; height: 16px; stroke-width: 3; }
.mark--ok { background: #E4F3EA; color: var(--ok); }
.mark--ng { background: #FBE3E4; color: var(--ng); }
.table-note { margin: 14px 2px 0; font-size: .88rem; color: var(--text-muted); }

/* ---------- logos ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.logo-grid li { margin: 0; display: flex; align-items: center; justify-content: center; min-height: 96px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); color: var(--text); transition: transform .18s var(--ease), box-shadow .18s var(--ease), color .18s; }
.logo-grid li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--accent); }
.logo-grid img { display: block; width: 100%; max-width: 170px; height: 34px; object-fit: contain; object-position: center; filter: brightness(0); opacity: .72; transition: opacity .18s, filter .18s; }
.logo-grid li:hover img { opacity: 1; }

/* ---------- reviews ---------- */
.review { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-md); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.review:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.review__who { display: flex; align-items: center; gap: 14px; }
.review__avatar { width: 64px; height: 64px; flex: none; border-radius: 50%; border: 2px solid var(--accent-soft); background: var(--accent-tint); object-fit: cover; }
.review__name { margin: 0; font-weight: 700; line-height: 1.4; }
.review__job { margin: 0; font-size: .85rem; color: var(--text-muted); line-height: 1.5; }
.review__quote { margin: 0; flex: 1; line-height: 1.85; }
.review__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.review__facts div { padding: 8px 10px; background: var(--accent-tint); border-radius: 10px; }
.review__facts dt { font-size: .7rem; color: var(--text-muted); letter-spacing: .06em; }
.review__facts dd { margin: 0; font-weight: 700; font-size: .92rem; color: var(--accent-hover); white-space: nowrap; font-variant-numeric: tabular-nums; }
.review__meta { margin: 0; font-size: .78rem; color: var(--text-muted); line-height: 1.6; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 22px; }

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; font-weight: 700; list-style: none; line-height: 1.6; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent); color: #fff; font-size: .85rem; font-family: var(--font); }
.faq-item summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; flex: none; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .18s var(--ease); }
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item[open] summary { background: var(--accent-tint); }
.faq-item summary:hover { background: var(--accent-tint); }
.faq-item__body { padding: 16px 20px 20px 64px; color: var(--text-muted); }
.faq-item__body p:last-child, .faq-item__body ul:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 44px; }
.faq-group > h2 { display: flex; align-items: center; gap: 14px; font-size: 1.35rem; }

/* ---------- callouts, banners ---------- */
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-md); background: var(--accent-tint); border: 1px solid var(--accent-soft); border-left: 5px solid var(--accent); }
.callout .icon { color: var(--accent); margin-top: .3em; width: 1.4em; height: 1.4em; }
.callout p:last-child { margin-bottom: 0; }
.callout--note { background: var(--surface-2); border-color: var(--border); border-left-color: var(--gold); }
.callout--note .icon { color: var(--gold); }
.banner { position: relative; overflow: hidden; isolation: isolate; padding: clamp(32px, 5vw, 56px); border-radius: var(--r-lg); background: var(--accent) var(--seigaiha); color: #fff; box-shadow: var(--shadow-lg); }
.banner::after { content: ""; position: absolute; z-index: -1; right: -70px; top: -70px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.banner h2, .banner h3 { color: #fff; }
.banner p { color: rgba(255, 255, 255, .92); max-width: 44em; }
.banner__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.banner__row > :first-child { flex: 1 1 380px; }
.banner--deep { background-color: var(--accent-deep); }
.promo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; padding: 12px 16px; background: var(--accent-deep); color: #fff; font-size: .9rem; font-weight: 600; text-align: center; }
.promo-bar span { display: inline-flex; align-items: center; gap: 6px; }
.promo-bar .icon { width: 1.1em; height: 1.1em; }
.risk-note { margin-top: 20px; padding: 14px 18px; border-radius: 12px; background: var(--surface-2); border-left: 4px solid var(--gold); font-size: .88rem; color: var(--text-muted); line-height: 1.8; }

/* ---------- calculator section ---------- */
.calc { position: relative; overflow: hidden; }
.calc .container { position: relative; z-index: 1; }
.calc-widget { border-radius: var(--r-lg); }
.deco-chart { display: block; width: 100%; height: 120px; margin-top: 28px; border-radius: var(--r-md); }

/* ---------- company block ---------- */
.facts { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.facts strong { display: block; font-size: .82rem; letter-spacing: .06em; color: var(--text-muted); }
.facts span { display: block; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }

/* ---------- prose / docs ---------- */
.doc { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.toc { position: sticky; top: 92px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); font-size: .9rem; }
.toc h2 { margin: 0 0 10px; font-family: var(--font); font-size: .82rem; letter-spacing: .12em; color: var(--text-muted); }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin-bottom: .3em; line-height: 1.6; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 980px) { .doc { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } }
.prose h2 { margin-top: 2.2em; padding-top: .3em; padding-bottom: .5em; border-bottom: 2px solid var(--accent-soft); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; padding-left: 12px; border-left: 4px solid var(--accent); font-size: 1.1rem; }
.prose ul li::marker, .prose ol li::marker { color: var(--accent); font-weight: 700; }
.prose .num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 .85rem var(--font); vertical-align: middle; }
.prose .callout { margin-block: 1.2em; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 24px; font-size: .88rem; color: var(--text-muted); }

/* ---------- misc blocks ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 47px; top: 8px; bottom: 8px; width: 2px; background: var(--accent-soft); }
.timeline li { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 12px; margin-bottom: 18px; }
.timeline__year { align-self: start; z-index: 1; padding: 6px 0; border-radius: 999px; background: var(--accent); color: #fff; text-align: center; font-weight: 700; letter-spacing: .06em; font-size: .95rem; box-shadow: var(--shadow-sm); }
.timeline__body { padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.timeline__body p { margin: 0; }
.plan-head { text-align: center; }
.plan-price { font-size: 1.6rem; font-weight: 700; color: var(--accent-hover); line-height: 1.3; }
.map-embed { width: 100%; max-width: 980px; aspect-ratio: 16 / 9; min-height: 320px; border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-md); overflow: hidden; background: var(--surface-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pill-list li { margin: 0; padding: 8px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-sm); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 6px; background: var(--accent-tint); color: var(--accent-hover); font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.vacancy { display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center; }
.vacancy__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
@media (max-width: 700px) { .vacancy { grid-template-columns: 1fr; } }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 20px 0; padding: 0; list-style: none; }
.flow li { position: relative; margin: 0; padding: 14px 16px; background: var(--surface); border: 1px dashed var(--accent-soft); border-radius: 12px; text-align: center; font-weight: 700; font-size: .92rem; line-height: 1.5; }
.flow li:not(:last-child)::after { content: "›"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); z-index: 1; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.article-card__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 8px; font-size: .82rem; color: var(--text-muted); }
.article-list { display: grid; gap: 28px; }
.article { padding: clamp(22px, 3vw, 36px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: 0; background: var(--accent-deep); color: #F6E9E7; padding-block: clamp(44px, 6vw, 72px) 28px; }
.site-footer__wave { position: absolute; inset: 6px 0 auto 0; height: 46px; background: var(--seigaiha); opacity: .6; pointer-events: none; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--gold), var(--accent) 50%, var(--gold)); }
.site-footer a { color: #F6E9E7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(140px, 1fr)); gap: 32px 28px; }
@media (max-width: 1040px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__logo { display: inline-block; padding: 8px 14px; background: var(--bg); border-radius: 12px; color: var(--text); line-height: 0; }
.footer__logo .logo { height: 40px; width: auto; }
.footer__about { margin: 16px 0; font-size: .9rem; line-height: 1.8; }
.footer__address { display: grid; gap: 8px; font-style: normal; font-size: .88rem; line-height: 1.6; }
.footer__address span { display: flex; gap: 10px; align-items: flex-start; }
.footer__address .icon { margin-top: .25em; opacity: .8; }
.footer__heading { margin: 0 0 12px; font-family: var(--font); font-size: .95rem; letter-spacing: .1em; color: #fff; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 6px; font-size: .88rem; line-height: 1.5; }
.footer__disclaimer { margin-top: 40px; padding: 22px 24px; background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r-md); }
.footer__disclaimer h2 { margin: 0 0 8px; font-family: var(--font); font-size: .95rem; letter-spacing: .1em; color: #fff; }
.footer__disclaimer p { margin: 0; font-size: .8rem; line-height: 1.9; color: #F6E9E7; }
.footer__copy { margin: 24px 0 0; text-align: center; font-size: .8rem; color: #F0DEDB; }

/* ---------- special offer ---------- */
.urgency-strip { background: var(--accent-deep); color: #fff; font-size: .88rem; font-weight: 600; }
.urgency-strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; padding-block: 9px; }
.urgency-strip span { display: inline-flex; align-items: center; gap: 8px; }
.urgency-strip .icon { width: 1.1em; height: 1.1em; }
.cd { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.cd__box { display: inline-flex; flex-direction: column; align-items: center; min-width: 64px; padding: 8px 10px 6px; background: var(--accent-deep); color: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); }
.cd__box b { font-size: 1.9rem; line-height: 1.1; letter-spacing: .04em; font-family: var(--font); }
.cd__box small { font-size: .66rem; letter-spacing: .12em; opacity: .85; }
.cd__sep { font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.exit-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 16px; }
.exit-modal.is-open { display: flex; }
.exit-modal__overlay { position: absolute; inset: 0; background: rgba(43, 34, 36, .62); backdrop-filter: blur(3px); }
.exit-modal__card { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 0 0 28px; background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); text-align: center; animation: pop .22s var(--ease); }
.exit-modal__card img { display: block; width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.exit-modal__body { padding: 20px clamp(20px, 5vw, 36px) 0; }
.exit-modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 253, 250, .95); color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.exit-modal__close:hover { background: var(--accent-tint); color: var(--accent); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .review__facts { grid-template-columns: 1fr; }
  .timeline::before { left: 33px; }
  .timeline li { grid-template-columns: 68px 1fr; }
  .timeline__year { font-size: .85rem; }
  .faq-item__body { padding-left: 20px; }
  .btn--lg { padding: 0 24px; }
  .flow li:not(:last-child)::after { display: none; }
  .cd__box { min-width: 56px; }
  .cd__box b { font-size: 1.5rem; }
}

.hero__office { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: .9rem; color: var(--text-muted); }
.flag { flex: none; border-radius: 3px; box-shadow: var(--shadow-sm); }

.form-block .registration-form { row-gap: 0 !important; column-gap: 14px !important; }
.form-block .registration-form > div { margin-bottom: 14px; }
.form-block .registration-form > div:last-child { margin-bottom: 0; }

.hero--inner { padding-block: clamp(36px, 5vw, 68px); }
.page-head { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(32px, 4.5vw, 60px); background: var(--bg) center bottom / cover no-repeat; border-bottom: 1px solid var(--border); }
.page-head--wave { background-image: url("/assets/images/scene-wave.svg"); }
.page-head--fuji { background-image: url("/assets/images/scene-fuji.svg"); }
.page-head--net { background-image: url("/assets/images/scene-net.svg"); }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.page-head .illus { max-width: 380px; margin-left: auto; }
@media (max-width: 860px) { .page-head__grid { grid-template-columns: 1fr; } .page-head .illus { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.sec-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 20px; padding: clamp(20px, 3vw, 32px); margin-bottom: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.sec-card h2, .sec-card h3 { margin: 0 0 .5em; font-size: 1.25rem; }
.sec-card .prose-inner > :last-child { margin-bottom: 0; }
.sec-card__no { display: block; margin-bottom: 4px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
@media (max-width: 600px) { .sec-card { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.tip { margin: 1em 0 0; padding: 12px 16px; border-radius: 12px; background: var(--accent-tint); border-left: 4px solid var(--accent); font-size: .93rem; line-height: 1.8; }
.tip strong { color: var(--accent-hover); }

/* home hero: animated parts start hidden only when GSAP will run; a CSS fallback reveals them if the CDN script never arrives */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .js #ha-candles, .js #ha-line, .js #ha-nodes { opacity: 0; animation: ha-fallback .01s 2.5s forwards; }
}
@keyframes ha-fallback { to { opacity: 1; } }
.plan-head .card__tag { position: static; display: inline-block; margin-bottom: 10px; }

.doc > *, .split > *, .grid > *, .page-head__grid > *, .hero__grid > *, .steps > *, .prose, .prose-inner, .stack { min-width: 0; }
.table-wrap { max-width: 100%; }
.article { min-width: 0; }
@media (max-width: 420px) { h1 { font-size: 1.35rem; } }

.section { content-visibility: auto; contain-intrinsic-size: auto 700px; }
.hero + .stat-wrap, .stat-wrap { content-visibility: visible; }

@media (max-width: 900px) {
  .hero__grid, .hero__grid--simple { display: flex; flex-direction: column; }
  .hero__head, .hero__more { display: contents; }
  .hero__grid .hero__form { order: 3; margin-block: 8px 24px; }
  .hero__head > *, .hero__more > * { order: 5; }
  .hero__grid .hero__head > .badge-row { order: 1; }
  .hero__grid .hero__head > h1 { order: 2; }
}
@media (max-width: 600px) {
  .badge-row { flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
  .badge-row::-webkit-scrollbar { display: none; }
  .badge { flex: none; padding: 5px 9px; font-size: .68rem; letter-spacing: 0; white-space: nowrap; }
  .badge .icon { display: none; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .logo-grid li { min-height: 72px; padding: 12px; }
  .logo-grid img { height: 26px; }
}

.logo-grid li { overflow: hidden; }

.site-footer .footer__logo, .site-footer .footer__logo:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 1040px) {
  .site-header, .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav { z-index: 55; height: calc(100vh - 72px); height: calc(100dvh - 72px); inset: 72px 0 auto 0; }
}
