/* Altevia — Typography-led concept */
:root {
  /* Palette sampled from the logo: star #f87e00 → gold #fcb620,
     swoosh sky #00aced → blue #0082dd → royal #004bb8, wordmark navy #00246c */
  --ink: #0a1f55;          /* logo navy, slightly deepened for body text */
  --ink-2: #2b3d66;
  --paper: #ffffff;
  --paper-2: #f1f6fc;      /* cool blue-white */
  --navy: #00246c;         /* wordmark navy */
  --royal: #004bb8;
  --blue: #0082dd;
  --sky: #00aced;
  --accent: #f88400;       /* star orange */
  --gold: #fcb620;
  --accent-ink: #b85a00;   /* orange that stays legible as small text on white */
  --muted: #5b6a88;
  --line: #dde5f0;
  --line-strong: #bccbe0;
  --line-dark: rgba(255, 255, 255, .16);
  --swoosh: linear-gradient(90deg, #f87e00 0%, #fcb620 20%, #00aced 52%, #0082dd 70%, #004bb8 86%, #00246c 100%);

  --en: "Manrope", "Segoe UI", system-ui, sans-serif;
  --ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  /* Latin glyphs in Manrope, Japanese falls through to Noto Sans JP */
  font-family: "Manrope", var(--ja);
  font-size: 16px;
  line-height: 1.85;
  word-break: auto-phrase;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-style: normal; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Japanese headline typesetting: proportional kana + phrase-aware wrapping */
h1, h2, h3, .big-cap, .why-title, .contact-copy h2 {
  font-feature-settings: "palt";
  word-break: auto-phrase;
  text-wrap: balance;
}
.nb { display: inline-block; }

.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 999;
  padding: 10px 14px; background: var(--ink); color: #fff;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(96px, 12vw, 180px); }
.label {
  font-family: var(--en); font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted);
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header);
}
/* Blur lives on a pseudo-element: backdrop-filter on .header itself would
   trap the fixed-position mobile nav inside the header box. */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.scrolled::before { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { position: relative; z-index: 120; display: flex; align-items: center; gap: 16px; }
.brand img { height: 56px; width: auto; }
.brand-kana {
  padding-left: 16px; border-left: 1px solid var(--line-strong);
  font-size: 11px; font-weight: 500; letter-spacing: .24em; color: var(--muted); line-height: 1.4;
}
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); font-size: 14px; font-weight: 500; }
.nav a { position: relative; display: inline-flex; align-items: baseline; gap: 6px; }
.nav a small { font-family: var(--en); font-size: 10px; font-weight: 600; color: var(--muted); }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700;
  transition: background .25s;
}
.nav-cta:hover { background: var(--accent-ink); }
.menu { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn span { transition: transform .35s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent-ink); }
.btn-line { border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--ink); }
.btn-accent { width: 100%; background: var(--accent); color: var(--ink); border-radius: 12px; }
.btn-accent:hover { background: #ff8a33; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero-meta {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-bottom: 18px; border-bottom: 1px solid var(--ink);
  font-family: var(--en); font-size: 13px; font-weight: 600; letter-spacing: .01em;
}
.hero-meta span:last-child { color: var(--accent-ink); }
.hero-title {
  margin: clamp(36px, 5vw, 72px) 0 clamp(40px, 5vw, 72px);
  font-size: min(8.6vw, 132px);
  font-weight: 900; line-height: 1.12; letter-spacing: -.035em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span {
  transform: translateY(110%);
  animation: rise 1.1s var(--ease) forwards;
  animation-delay: calc(.15s + var(--i) * .09s);
}
.hero-title em { color: var(--accent); }
@keyframes rise { to { transform: none; } }

.hero-foot { display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: end; }
.hero-lead { max-width: 34em; font-size: clamp(15px, 1.25vw, 18px); color: var(--ink-2); line-height: 2; }
.hero-locality { display: block; margin-bottom: 8px; color: var(--navy); font-weight: 700; line-height: 1.7; }
.hero-business-note { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.8; letter-spacing: .02em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-index {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(56px, 7vw, 104px); border-top: 1px solid var(--line);
}
.hero-index li { display: flex; gap: 14px; align-items: baseline; padding: 18px 16px 0 0; font-size: 14px; font-weight: 500; }
.hero-index b { font-family: var(--en); font-size: 12px; color: var(--accent-ink); }

/* ---------- Case study offer (compact, sits between hero and Why now) ---------- */
.case-study-offer { padding: 0 0 clamp(56px, 7vw, 96px); }
.case-offer {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(22px, 2.6vw, 32px) clamp(22px, 3vw, 40px);
  border: 1px solid var(--line-strong); border-radius: 16px; background: var(--paper);
}
.case-offer-badge { display: flex; }
.case-offer-badge b { padding: 3px 12px; border-radius: 999px; background: rgba(248, 132, 0, .12); color: var(--accent-ink); font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.case-offer-main h2 { margin-top: 10px; font-size: clamp(20px, 2vw, 28px); font-weight: 800; line-height: 1.45; letter-spacing: -.02em; }
.case-offer-side { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; justify-content: flex-end; }
.case-offer-price { display: flex; align-items: center; gap: 12px; }
.case-offer-price strong { color: var(--accent); font-size: clamp(34px, 3.2vw, 46px); font-weight: 900; line-height: 1; letter-spacing: .02em; }
.case-offer-slots { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border: 1px solid var(--navy); border-radius: 999px; color: var(--navy); font-size: 12px; font-weight: 700; white-space: nowrap; }
.case-offer-side .btn { min-height: 48px; padding-inline: 22px; font-size: 14px; }
.case-offer-foot { grid-column: 1 / -1; display: grid; gap: 2px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--ja); font-size: 12px; font-weight: 400; }
/* Both notes use the Japanese face: Manrope ships its own ※ glyph, which looked off next to the text */

/* ---------- Why now ---------- */
.why { background: var(--ink); color: #fff; padding-block: clamp(96px, 12vw, 180px); }
.why-grid { display: grid; grid-template-columns: 3fr 9fr; gap: 40px 48px; }
.why .label { color: rgba(255,255,255,.55); }
.why-title {
  font-size: clamp(32px, 5.4vw, 84px); font-weight: 900; line-height: 1.22; letter-spacing: -.035em;
}
.why-title em { color: var(--accent); }
.why-body { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; color: rgba(255,255,255,.72); }
.why-bars { grid-column: 2; display: grid; gap: 22px; padding-top: 32px; border-top: 1px solid var(--line-dark); }
.bar-row { display: grid; grid-template-columns: 120px 1fr 230px; gap: 20px; align-items: center; font-size: 14px; }
.bar-row small { color: rgba(255,255,255,.55); font-size: 12px; }
.bar { height: 2px; background: rgba(255,255,255,.12); }
.bar i { display: block; height: 100%; width: var(--w); background: rgba(255,255,255,.6); transform-origin: left; }
.bar-row.accent .bar i { background: var(--accent); height: 4px; margin-top: -1px; }
.bar-row.accent span { color: var(--accent); font-weight: 700; }
.js .why-bars .bar i { transform: scaleX(0); transition: transform 1.4s var(--ease) .3s; }
.js .why-bars.in .bar i { transform: scaleX(1); }

/* ---------- Section head ---------- */
/* English is a quiet label; the Japanese heading carries the type. */
.sec-head { margin-bottom: clamp(48px, 6vw, 88px); }
.sec-en {
  margin-bottom: clamp(20px, 2.4vw, 32px);
  font-family: var(--en); font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted);
}
.sec-en::before { content: "("; }
.sec-en::after { content: ")"; }
.sec-ja { display: grid; grid-template-columns: 7fr 5fr; gap: 20px 48px; align-items: end; }
.sec-ja h2 { font-size: clamp(30px, 4.2vw, 64px); font-weight: 900; line-height: 1.3; letter-spacing: -.03em; }
.sec-ja p { color: var(--muted); max-width: 32em; padding-bottom: .4em; }
.sec-head.stack .sec-ja { grid-template-columns: 1fr; align-items: start; }

/* ---------- Challenges ---------- */
.challenges { background: var(--paper-2); }
.challenge-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.challenge-list article { padding: 28px 32px 8px 0; }
.challenge-list article + article { padding-left: 32px; border-left: 1px solid var(--line-strong); }
.challenge-list b { font-family: var(--en); font-size: 13px; color: var(--accent-ink); }
.challenge-list h3 { margin: 28px 0 16px; font-size: clamp(20px, 2vw, 28px); line-height: 1.45; font-weight: 700; }
.challenge-list p { color: var(--muted); font-size: 15px; }

/* ---------- Services ---------- */
.services { padding-bottom: 0; }
.svc-list { border-top: 1px solid var(--ink); counter-reset: svc; }
.svc {
  display: grid; grid-template-columns: 90px 1.1fr 1.3fr 1fr; gap: 16px 40px; align-items: baseline;
  padding: 36px 0; border-bottom: 1px solid var(--line);
  transition: padding .45s var(--ease), background .45s;
}
.svc-no { font-family: var(--en); font-size: 14px; color: var(--muted); transition: color .3s; }
.svc h3 { font-size: clamp(22px, 2.4vw, 36px); font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.svc > p { color: var(--ink-2); font-size: 15px; }
.svc > ul { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.svc > ul li::before { content: "— "; color: var(--line-strong); }
@media (hover: hover) {
  .svc:not(.open):hover { padding-left: 20px; background: var(--paper-2); }
  .svc:hover .svc-no { color: var(--accent-ink); }
}

/* Use-case accordion: a quiet text toggle, not a boxed FAQ */
.svc-more { grid-column: 2 / -1; }
.svc-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 0; border: 0; background: none; cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--ink);
}
.svc-toggle span { border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .25s; }
.svc-toggle:hover span { border-color: var(--ink); }
.svc-toggle i { position: relative; width: 12px; height: 12px; }
.svc-toggle i::before, .svc-toggle i::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px;
  background: var(--accent-ink); transition: transform .4s var(--ease);
}
.svc-toggle i::after { transform: rotate(90deg); }
.svc.open .svc-toggle i::after { transform: rotate(0); }

.svc-ex { display: grid; grid-template-rows: 1fr; }
.svc-ex-inner { overflow: hidden; min-height: 0; }
.js .svc-ex {
  grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows .55s var(--ease), visibility 0s linear .55s;
}
.js .svc.open .svc-ex {
  grid-template-rows: 1fr; visibility: visible;
  transition: grid-template-rows .55s var(--ease), visibility 0s;
}
.svc-ex-lead { padding-top: 20px; font-size: 12px; color: var(--muted); }
.svc-ex-list {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px;
  margin-top: 10px; padding-bottom: 8px; counter-reset: ex;
}
.svc-ex-list li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.7; color: var(--ink-2);
}
.svc-ex-list li::before {
  counter-increment: ex; content: counter(ex, decimal-leading-zero);
  flex: none; font-family: var(--en); font-size: 11px; font-weight: 600; color: var(--accent-ink);
}
/* JS off: the toggle does nothing, so hide it and leave the list open */
html:not(.js) .svc-toggle { display: none; }

.contact .sec-en { color: rgba(255,255,255,.55); }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px clamp(40px, 6vw, 120px); align-items: start; }
.process-head { position: sticky; top: calc(var(--header) + 40px); }
.process .sec-head { margin-bottom: 40px; }
.process .sec-ja h2 { font-size: clamp(28px, 3.2vw, 48px); line-height: 1.35; letter-spacing: -.03em; font-weight: 900; }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); }
.pair b { display: block; font-family: var(--en); font-size: 18px; }
.pair span { font-size: 13px; color: var(--muted); line-height: 1.6; }
.pair i { font-style: normal; font-family: var(--en); color: var(--accent); font-size: 24px; }

.steps { border-top: 1px solid var(--ink); }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start;
  padding: 40px 0 56px; border-bottom: 1px solid var(--line);
}
.step b {
  font-family: var(--en); font-weight: 700; letter-spacing: -.06em; line-height: .8;
  font-size: clamp(72px, 9vw, 144px);
  color: transparent; -webkit-text-stroke: 1.5px var(--line-strong);
  transition: color .6s var(--ease), -webkit-text-stroke-color .6s;
}
.step h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; margin-top: 4px; }
.step p { margin-top: 12px; color: var(--muted); }
.step.active b { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.no-io .step b { color: var(--ink); -webkit-text-stroke-color: var(--ink); }

/* ---------- Pricing ---------- */
.pricing { background: var(--paper-2); }
.price-list { border-top: 1px solid var(--ink); }
.price {
  display: grid; grid-template-columns: 180px 1.1fr 1.4fr 290px; gap: 12px 40px; align-items: baseline;
  padding: 32px 0; border-bottom: 1px solid var(--line-strong);
}
.price-tag { font-family: var(--en); font-size: 13px; font-weight: 600; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.price-tag em { font-family: var(--ja); font-size: 11px; font-weight: 700; color: #fff; background: var(--accent-ink); padding: 2px 8px; border-radius: 999px; }
.price h3 { font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; line-height: 1.45; }
.price p { font-size: 14px; color: var(--muted); }
.price strong { font-family: var(--en); font-size: clamp(28px, 3vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1; white-space: nowrap; text-align: right; }
.price strong small { font-size: .5em; font-weight: 600; margin-inline: .1em; }
.price.featured h3, .price.featured strong { color: var(--accent-ink); }

/* Case-study offer inside pricing: regular price stays, the free slot is a separate line */
.price-offer-tag {
  font-family: var(--ja); font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0;
  padding: 1px 8px; border: 1px solid currentColor; border-radius: 999px; color: var(--accent-ink); white-space: nowrap;
}
.price-amount { display: grid; gap: 10px; text-align: right; }
.price-amount p { display: flex; justify-content: flex-end; align-items: baseline; gap: 12px; margin: 0; }
.price-amount strong { color: var(--ink); }
.price-amount span { font-family: var(--ja); font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.price-offer { padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.price-offer b { color: var(--accent-ink); font-size: 20px; font-weight: 800; line-height: 1; }
.note { margin-top: 20px; font-size: 12px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px clamp(40px, 6vw, 120px); align-items: start; }
.faq .sec-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 28px 56px 28px 0; font-size: clamp(16px, 1.5vw, 20px); font-weight: 700; line-height: 1.6;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: var(--ink);
  transition: transform .35s var(--ease);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0); }
.faq-list details p { padding: 0 56px 28px 0; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #fff; padding-block: clamp(96px, 12vw, 180px); }
.contact-en { margin-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px clamp(40px, 6vw, 120px); padding-top: clamp(20px, 2.4vw, 32px); }
.contact-copy h2 { font-size: clamp(26px, 3vw, 44px); font-weight: 900; line-height: 1.45; letter-spacing: -.02em; }
.contact-copy p { margin-top: 20px; color: rgba(255,255,255,.7); }
.contact-copy .chips { color: rgba(255,255,255,.8); }
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.6); letter-spacing: .04em; }
.form input, .form textarea {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.25); border-radius: 0;
  background: transparent; color: #fff; font-size: 16px; outline: none; resize: vertical;
  transition: border-color .25s;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,.3); }
.form input:focus, .form textarea:focus { border-bottom-color: var(--accent); }
.form .btn { margin-top: 8px; }
.form small { text-align: center; font-size: 12px; color: rgba(255,255,255,.4); }
.contact-panel { display: grid; align-content: center; gap: 24px; padding: clamp(28px, 4vw, 52px); border: 1px solid rgba(255,255,255,.2); border-radius: 24px; background: rgba(255,255,255,.06); }
.contact-panel p { color: rgba(255,255,255,.75); }
.contact-panel small { text-align: center; color: rgba(255,255,255,.55); }

/* ---------- Footer ---------- */
.footer { padding-top: 48px; overflow: hidden; }
.footer-row { display: flex; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; font-size: 13px; }
.footer-row p { color: var(--muted); }
.footer-row nav { display: flex; gap: 24px; flex-wrap: wrap; font-weight: 500; }
.footer-row nav a:hover { color: var(--accent-ink); }
.footer-brand { display: flex; align-items: center; gap: 16px; width: max-content; margin-top: clamp(40px, 6vw, 80px); }
.footer-logo { display: block; width: min(21vw, 235px); height: auto; }
.footer-brand-kana {
  padding-left: 16px; border-left: 1px solid var(--line-strong);
  font-size: 12px; font-weight: 500; letter-spacing: .24em; color: var(--muted); line-height: 1.4; white-space: nowrap;
}
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0 28px; }
.copy { font-family: var(--en); font-size: 12px; color: var(--muted); }

/* ---------- Floating CTA ---------- */
.float-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 700; font-size: 14px;
  box-shadow: 0 12px 32px rgba(11, 16, 32, .2);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease), background .25s;
}
.float-cta.show { opacity: 1; transform: none; pointer-events: auto; }
.float-cta:hover { background: #ff8a33; }

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js .rv { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .svc { grid-template-columns: 64px 1fr 1.3fr; }
  .svc > ul { grid-column: 3; }
  .price { grid-template-columns: 1fr auto; }
  .price-tag { grid-column: 1 / -1; }
  .price p { grid-column: 1; }
  .price > strong, .price-amount { grid-row: 2 / 4; grid-column: 2; align-self: center; }
}

@media (max-width: 860px) {
  :root { --header: 68px; }
  .brand { gap: 12px; }
  .brand img { height: 44px; }
  .brand-kana { padding-left: 12px; font-size: 10px; letter-spacing: .18em; }
  .menu {
    display: inline-flex; align-items: center; gap: 10px; position: relative; z-index: 120;
    padding: 8px 0; border: 0; background: none; font-family: var(--en); font-weight: 700; font-size: 14px; cursor: pointer;
  }
  .menu i { position: relative; width: 22px; height: 8px; }
  .menu i::before, .menu i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
  .menu i::before { top: 0; }
  .menu i::after { top: 6.5px; }
  .menu[aria-expanded="true"] i::before { top: 3.25px; transform: rotate(45deg); }
  .menu[aria-expanded="true"] i::after { top: 3.25px; transform: rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: 110; flex-direction: column; align-items: stretch; justify-content: center; gap: 0;
    padding: calc(var(--header) + 24px) var(--gutter) 40px; background: var(--paper);
    font-size: 28px; font-weight: 700;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); gap: 16px; }
  .nav a small { font-size: 12px; }
  .nav a::after { display: none; }
  .nav-cta { margin-top: 28px; justify-content: center; padding: 18px; font-size: 18px; border-bottom: 0 !important; }
  body.menu-open { overflow: hidden; }

  .hero-foot { grid-template-columns: 1fr; }
  .hero-index { grid-template-columns: 1fr; }
  .hero-index li { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero-meta span:nth-child(2) { display: none; }

  .case-offer { grid-template-columns: 1fr; }
  .case-offer-side { justify-content: flex-start; }

  .why-grid { grid-template-columns: 1fr; }
  .why-body, .why-bars { grid-column: 1; }
  .why-body { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 88px 1fr; gap: 6px 16px; }
  .bar-row small { grid-column: 2; }

  .sec-ja { grid-template-columns: 1fr; }

  .challenge-list { grid-template-columns: 1fr; }
  .challenge-list article, .challenge-list article + article { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line-strong); }
  .challenge-list h3 { margin: 12px 0 10px; }

  .svc { grid-template-columns: 40px 1fr; gap: 10px 16px; padding: 28px 0; }
  .svc > p, .svc > ul { grid-column: 2; }
  .svc-ex-list { grid-template-columns: 1fr; }
  .svc-ex-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; }


  .process-grid, .faq-grid { grid-template-columns: 1fr; }
  .process-head { position: static; }
  .step { gap: 20px; padding: 28px 0 36px; }

  .price { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .price > p, .price > strong, .price-amount { grid-column: 1; grid-row: auto; }
  .price > strong { text-align: left; margin-top: 8px; }
  .price-amount { justify-items: start; text-align: left; margin-top: 8px; }
  .price-amount p { justify-content: flex-start; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .float-cta { left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); justify-content: center; }
  .footer { padding-bottom: 72px; }
}

.sp { display: none; }
@media (max-width: 560px) {
  .sp { display: inline; }
  .hero-title { font-size: 12.4vw; line-height: 1.16; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .case-offer { padding: 22px 20px; }
  .case-offer-side .btn { width: 100%; }
  .footer-brand { gap: 12px; }
  .footer-logo { width: min(27.5vw, 110px); }
  .footer-brand-kana { padding-left: 12px; font-size: 10px; letter-spacing: .18em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .hero-title .line > span { transform: none; animation: none; }
  .js .rv { opacity: 1; transform: none; }
  .js .why-bars .bar i { transform: none; }
}

/* ---------- Logo palette accents ---------- */
::selection { background: rgba(0, 172, 237, .22); }

/* Header / buttons: navy with a royal-blue hover */
.nav-cta:hover, .btn-dark:hover { background: var(--royal); }
.btn-line:hover { border-color: var(--navy); }
.nav a small { color: var(--blue); }

/* Hero: the headline accent follows the logo swoosh (star → sky → royal) */
.hero-meta { border-bottom: 2px solid transparent; border-image: var(--swoosh) 1; }
.hero-meta span:last-child { color: var(--royal); }
.hero-title em {
  /* short, light hand-off like the logo swoosh, so orange→sky never turns olive */
  background: linear-gradient(95deg, #f87e00 0%, #fca30f 27%, #f5c36a 35%, #5ec7ea 43%, #00aced 50%, #0082dd 72%, #004bb8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-index b { color: var(--royal); }

/* Why now: deep logo navy */
.why { background: linear-gradient(165deg, #00246c 0%, #001a50 100%); }
.why-title em { color: var(--gold); }
.bar-row.accent .bar i { background: linear-gradient(90deg, var(--accent), var(--gold)); }
.bar-row.accent span { color: var(--gold); }

/* Challenges / services: blue numbering, orange kept for emphasis */
.challenge-list { border-top-color: var(--navy); }
.challenge-list b { color: var(--royal); }
.svc-list, .steps, .price-list, .faq-list { border-top-color: var(--navy); }
@media (hover: hover) { .svc:hover .svc-no { color: var(--royal); } }
.svc-ex-list li::before { color: var(--royal); }
.svc-toggle i::before, .svc-toggle i::after { background: var(--accent); }
.ticker-track .o { -webkit-text-stroke-color: var(--navy); }
.ticker-track i:nth-of-type(even) { color: var(--sky); }

/* Process */
.pair i { color: var(--accent); }
.pair b { color: var(--navy); }
.step.active b { color: var(--royal); -webkit-text-stroke-color: var(--royal); }

/* Pricing */
.price.featured h3, .price.featured strong { color: var(--royal); }
.price-tag em { background: var(--accent); color: var(--navy); }

/* Contact: navy → royal */
.contact { background: linear-gradient(135deg, #00246c 0%, #003a9e 100%); }
.form input:focus, .form textarea:focus { border-bottom-color: var(--sky); }
.btn-accent { color: var(--navy); }
.btn-accent:hover, .float-cta:hover { background: #ff9a1f; }

/* Footer: a thin swoosh line on top */
.footer { border-top: 3px solid transparent; border-image: var(--swoosh) 1; }
.footer-row nav a:hover { color: var(--royal); }

.float-cta { color: var(--navy); box-shadow: 0 12px 32px rgba(0, 36, 108, .25); }

/* ---------- Internal pages ---------- */
.sub-header { background: rgba(255,255,255,.92); }
.sub-main { min-height: 70vh; }
.sub-hero { padding: clamp(72px, 9vw, 132px) 0 clamp(64px, 8vw, 116px); border-bottom: 1px solid var(--line); }
.sub-hero-grid { display: grid; grid-template-columns: 3fr 9fr; gap: 40px; align-items: start; }
.sub-hero .sec-en { color: var(--blue); }
.sub-hero h1 { max-width: 1000px; font-size: clamp(42px, 7vw, 104px); line-height: 1.08; letter-spacing: -.055em; font-weight: 800; }
.sub-hero h1 + p { margin-top: 24px; color: var(--muted); font-size: clamp(16px, 1.5vw, 20px); }
.sub-section { padding-block: clamp(72px, 9vw, 132px); }
.sub-tint { background: var(--paper-2); }
.reading-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px clamp(40px, 7vw, 120px); align-items: start; }
.reading-grid h2, .contact-page-copy h2 { margin-top: 12px; font-size: clamp(28px, 3.4vw, 50px); line-height: 1.4; letter-spacing: -.035em; font-weight: 800; }
.prose { display: grid; gap: 28px; color: var(--ink-2); }
.prose p { font-size: clamp(15px, 1.25vw, 18px); line-height: 2; }
.lead-prose p:first-child { font-weight: 700; color: var(--ink); }
.line-list { border-top: 1px solid var(--navy); counter-reset: item; }
.line-list li { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); font-weight: 600; }
.line-list li::before { counter-increment: item; content: counter(item, decimal-leading-zero); color: var(--blue); font-family: var(--en); font-size: 12px; }
.operator-section { background: var(--navy); color: #fff; }
.operator-section .label, .operator-note { color: rgba(255,255,255,.62); }
.operator-note { margin-top: 20px; }
.info-list { border-top: 1px solid var(--line-dark); }
.info-list > div { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line-dark); }
.info-list dt { color: rgba(255,255,255,.58); font-size: 13px; }
.info-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.info-list dd small { color: rgba(255,255,255,.62); font-size: 12px; font-weight: 500; }
.info-list a { text-decoration: underline; text-underline-offset: 4px; }
.sub-footer { border-image: var(--swoosh) 1; }

.policy-wrap { max-width: 920px; }
.policy-intro { margin-bottom: clamp(56px, 7vw, 96px); font-size: clamp(18px, 2vw, 24px); font-weight: 600; line-height: 2; }
.policy-wrap article { padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.policy-wrap article h2 { display: flex; gap: 18px; align-items: baseline; margin-bottom: 24px; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.45; }
.policy-wrap article h2 span { color: var(--blue); font-family: var(--en); font-size: 12px; letter-spacing: .06em; }
.policy-wrap article p + p, .policy-wrap article p + ul, .policy-wrap article ul + p { margin-top: 18px; }
.policy-wrap article ul { padding-left: 1.4em; color: var(--ink-2); list-style: disc; }
.policy-wrap article a { color: var(--royal); text-decoration: underline; text-underline-offset: 4px; }
.effective-date { padding-top: 32px; border-top: 1px solid var(--ink); text-align: right; font-size: 14px; color: var(--muted); }

.contact-sub-hero { background: var(--paper-2); }
.contact-page-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px clamp(48px, 8vw, 132px); align-items: start; }
.contact-page-copy { position: sticky; top: calc(var(--header) + 40px); }
.contact-page-copy > p:not(.label) { margin-top: 24px; color: var(--muted); }
.contact-email { color: var(--royal); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.dark-chips { margin-top: 28px; color: var(--ink-2); }
.inquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.form-field { display: grid; align-content: start; gap: 8px; }
.form-field-wide { grid-column: 1 / -1; }
.form-field > label { font-size: 13px; font-weight: 700; }
.form-field > label > span, .consent-field b { margin-left: 6px; color: var(--accent-ink); font-size: 11px; }
.form-field > label > small { margin-left: 6px; color: var(--muted); font-weight: 500; }
.form-field input:not([type="checkbox"]), .form-field textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; outline: none; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.form-field input:not([type="checkbox"]):focus, .form-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,130,221,.12); }
.form-field input[aria-invalid="true"], .form-field textarea[aria-invalid="true"] { border-color: #b3202a; }
.field-hint { justify-self: end; color: var(--muted); font-size: 11px; }
.field-error { min-height: 1.5em; color: #a71622; font-size: 12px; }
.consent-field label { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 500; }
.consent-field input { width: 18px; height: 18px; margin-top: .35em; accent-color: var(--royal); }
.consent-field label span { margin: 0; color: var(--ink); font-size: 14px; }
.consent-field a { color: var(--royal); text-decoration: underline; text-underline-offset: 3px; }
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.turnstile-area { min-height: 72px; }
.form-actions { display: grid; gap: 16px; }
.form-actions .btn { width: 100%; }
.form-actions .btn:disabled { opacity: .55; cursor: wait; }
.form-status { min-height: 3em; text-align: center; font-size: 14px; font-weight: 600; }
.form-status.success { color: #176b41; }
.form-status.error { color: #a71622; }

@media (max-width: 860px) {
  .sub-hero-grid, .reading-grid, .contact-page-grid { grid-template-columns: 1fr; }
  .sub-hero-grid { gap: 20px; }
  .contact-page-copy { position: static; }
}

@media (max-width: 560px) {
  .sub-hero h1 { font-size: clamp(36px, 11vw, 54px); }
  .inquiry-form { grid-template-columns: 1fr; }
  .form-field { grid-column: 1; }
  .info-list > div { grid-template-columns: 1fr; gap: 4px; }
  .footer-row nav { display: grid; gap: 12px; }
}
