/* ======================================
   村上裕一公認会計士事務所 — Top Page
   Moden, dynamic, cinematic.
====================================== */

:root {
  --bg: #FAFAF7;
  --bg-alt: #F3F2EC;
  --bg-ink: #0E1B3D;
  --bg-ink-deep: #08122A;
  --bg-ink-line: rgba(255,255,255,0.10);
  --fg: #0E1013;
  --fg-soft: #3A3E45;
  --fg-muted: #6B7079;
  --line: #E4E2D8;
  --line-soft: #EDEBE2;
  --accent: #2E3E80;      /* ロゴネイビー */
  --accent-ink: #ffffff;
  --heading-weight: 700;
  --section-pad: clamp(80px, 11vw, 160px);
  --ticker-display: block;

  --f-jp-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --f-jp-head: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --f-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --f-display: "Fraunces", "Zen Kaku Gothic New", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-jp-body);
  font-feature-settings: "palt";
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--f-mono); letter-spacing: 0.04em; font-feature-settings: "tnum" 1; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* Reveal */
/* Default: visible (for SSR / no-JS compatibility). Animation only triggers when .js-enabled class added by JS */
.reveal { opacity: 1; transform: translateY(0); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.js-enabled .reveal { opacity: 0; transform: translateY(24px); }
.js-enabled .reveal--on { opacity: 1; transform: translateY(0); }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
.eyebrow--light { color: rgba(255,255,255,0.78); }
.eyebrow--light .eyebrow__dot { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.2); }

/* Section head */
.section-head { margin-bottom: 64px; max-width: 820px; }
.section-head__title {
  font-family: var(--f-jp-head);
  font-weight: var(--heading-weight);
  font-size: clamp(30px, 3.8vw, 54px);
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin: 20px 0 16px;
  text-wrap: pretty;
}
.section-head__sub { color: var(--fg-soft); font-size: 15px; max-width: 640px; margin: 0; }
.section-head--compact { margin-bottom: 28px; }
.section-head--compact .section-head__title { font-size: clamp(22px, 2.4vw, 30px); }
/* タイトル下のアクセント下線 — Reveal 発火に連動して左から伸びる。
   絶対配置なのでレイアウトは動かない。no-JS 時は表示のまま。 */
.section-head__title { position: relative; }
.section-head__title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -8px;
  width: 46px; height: 3px;
  background: var(--accent);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1) 0.25s;
}
.section-head--light .section-head__title::after { background: rgba(255,255,255,0.85); }
.js-enabled .reveal:not(.reveal--on) .section-head__title::after { transform: scaleX(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px;
  font-family: var(--f-jp-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.2,.7,.2,1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn__arrow { display: inline-block; transition: transform 0.3s; }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--sm { padding: 10px 16px; font-size: 13px; }
.btn--lg { padding: 19px 34px; font-size: 16px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn--primary:hover::before { transform: translateX(100%); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }

/* ======================================
   Header
====================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,247,0.85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.site-header--scrolled { background: rgba(250,250,247,0.96); border-bottom-color: var(--line-soft); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding-top: 18px; padding-bottom: 18px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo__img { height: 38px; width: auto; max-width: none; aspect-ratio: 442 / 64; }
@media (max-width: 480px) {
  .logo__img { height: 28px; }
  .site-header__inner { gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .header-cta { gap: 8px; }
  /* On very narrow screens the logo + 無料診断 button + ハンバーガー won't fit
     side-by-side. Hide the prominent 無料診断 CTA — it stays accessible
     inside the hamburger menu (.nav-mobile contains the same link). */
  .header-cta .btn--primary { display: none; }
}

.nav-desktop { display: none; gap: clamp(16px, 2vw, 30px); }
.nav-desktop a {
  font-size: 14px; color: var(--fg-soft); white-space: nowrap;
  position: relative; padding: 4px 0;
  display: inline-flex; align-items: baseline; gap: 8px;
  transition: color 0.2s;
}
.nav-desktop a .mono { font-size: 10px; color: var(--fg-muted); }
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px;
  height: 1px; background: var(--accent);
  transition: right 0.3s cubic-bezier(.2,.7,.2,1);
}
.nav-desktop a:hover { color: var(--fg); }
.nav-desktop a:hover::after { right: 0; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-tel { display: none; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 13px; color: var(--fg); white-space: nowrap; }
.header-btn-contact { display: none; }
/* Show the secondary contact button only while the desktop nav is hidden
   (760–999px). With the 8-item nav visible there is no room for it at any
   container width; お問い合わせ stays reachable via footer / PageCTA / rail. */
@media (min-width: 760px) and (max-width: 999px) { .header-btn-contact { display: inline-flex; } }
.header-tel span { font-weight: 600; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: transparent; border: 1px solid var(--line); border-radius: 2px; color: var(--fg);
  position: relative;
}
.nav-toggle__icon { display: inline-flex; }
.nav-toggle__icon--close { display: none; }
body.nav-mobile-open .nav-toggle__icon--menu { display: none; }
body.nav-mobile-open .nav-toggle__icon--close { display: inline-flex; }

/* Mobile nav panel — hidden by default, shown when body has .nav-mobile-open */
.nav-mobile {
  display: none;
  flex-direction: column; gap: 0;
  padding: 0 clamp(20px, 4vw, 48px) 20px;
  border-top: 1px solid var(--line-soft);
  background: rgba(250,250,247,0.98);
  backdrop-filter: saturate(1.4) blur(14px);
}
.nav-mobile a { padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.nav-mobile a.btn { margin-top: 12px; justify-content: center; border: none; }
body.nav-mobile-open .nav-mobile { display: flex; }

@media (min-width: 1000px) {
  .nav-desktop { display: flex; }
  .header-tel { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; } /* never show mobile nav on desktop */
}
/* The nav is 8 items wide — compress it whenever it is visible so it fits
   alongside the logo and the header CTA at every container width. */
@media (min-width: 1000px) {
  .nav-desktop { gap: clamp(12px, 1.4vw, 20px); }
  .nav-desktop a { font-size: 13px; }
}
/* 1000–1459px: additionally drop the tel to make room for the primary CTA. */
@media (min-width: 1000px) and (max-width: 1459px) {
  .header-tel { display: none; }
}
/* Narrow desktop (1000–1119px): also shrink the logo so all 8 nav items fit. */
@media (min-width: 1000px) and (max-width: 1119px) {
  .site-header__inner { gap: 14px; }
  .logo__img { width: 190px; height: auto; }
}

/* ======================================
   Hero — Cinematic
====================================== */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 90% 60% at 70% 0%, #1A2D5C 0%, transparent 60%),
    radial-gradient(ellipse 80% 70% at 0% 100%, #08122A 0%, transparent 55%),
    linear-gradient(180deg, #0E1B3D 0%, #0A1530 100%);
  color: #F2F2EE;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  padding-top: clamp(40px, 6vw, 80px);
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.95;
}
.hero__vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(8,18,42,0.7), transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(80,120,200,0.18), transparent 65%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: clamp(60px, 8vw, 120px) clamp(60px, 8vw, 120px);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
  opacity: 0.9;
}

/* Corner brackets */
.hero__corner {
  position: absolute; width: 28px; height: 28px; z-index: 3; pointer-events: none;
}
.hero__corner span {
  position: absolute; background: rgba(255,255,255,0.4);
}
.hero__corner span:first-child { width: 100%; height: 1px; }
.hero__corner span:last-child  { width: 1px; height: 100%; }
.hero__corner--tl { top: 24px; left: 24px; }
.hero__corner--tr { top: 24px; right: 24px; }
.hero__corner--tr span:last-child { right: 0; }
.hero__corner--tl span:first-child, .hero__corner--tr span:first-child { top: 0; }
.hero__corner--bl { bottom: 74px; left: 24px; }
.hero__corner--br { bottom: 74px; right: 24px; }
.hero__corner--bl span:first-child { bottom: 0; }
.hero__corner--br span:first-child { bottom: 0; }
.hero__corner--br span:last-child { right: 0; }

/* Side rails (desktop only) */
.hero__rail {
  position: absolute;
  top: 50%;
  z-index: 3;
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.35);
  transform: translateY(-50%);
  display: none;
  user-select: none;
}
.hero__rail--left { left: 32px; }
.hero__rail--right { right: 32px; transform: translateY(-50%) rotate(180deg); }
@media (min-width: 1100px) { .hero__rail { display: block; } }

/* Meta */
.hero__meta {
  position: relative; z-index: 4;
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; color: rgba(255,255,255,0.6);
  letter-spacing: 0.18em;
  padding-bottom: clamp(20px, 3vw, 36px);
}
.hero__meta-code { color: color-mix(in srgb, var(--accent) 70%, white); font-weight: 600; }
.hero__meta-loc { font-family: var(--f-jp-body); letter-spacing: 0.08em; color: rgba(255,255,255,0.72); }
.hero__meta-sep { flex: 1; max-width: 60px; height: 1px; background: rgba(255,255,255,0.2); }

.hero__inner {
  position: relative; z-index: 4;
  flex: 1;
  display: flex; flex-direction: column;
  padding-top: 0;
  padding-bottom: clamp(24px, 4vw, 48px);
}

.hero__title {
  font-family: var(--f-jp-head);
  font-weight: 700;
  margin: 0;
  text-transform: none;
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  gap: 0;
}
.hero__title-en {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: 0.32em;
  color: color-mix(in srgb, var(--accent) 30%, white);
  margin-bottom: clamp(12px, 1.6vw, 20px);
  padding-left: 56px;
  position: relative;
  animation: fadeInUp 0.8s cubic-bezier(.2,.7,.2,1) 0s both;
}
.hero__title-en::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 40px; height: 1px;
  background: rgba(255,255,255,0.4);
}
.hero__title-jp-main {
  display: block;
  font-family: var(--f-jp-head);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.22;
  letter-spacing: 0.02em;
  color: #F4F2EC;
}
.hero__title-line {
  display: block;
  position: relative;
  opacity: 0;
  animation: heroLineIn 1.1s cubic-bezier(.2,.7,.2,1) forwards;
  white-space: nowrap;
}
.hero__title-line:nth-of-type(1) { animation-delay: 0s; }
.hero__title-line:nth-of-type(2) { animation-delay: 0.1s; }
.hero__title-line:nth-of-type(3) { animation-delay: 0.2s; }
@keyframes heroLineIn {
  0%   { opacity: 0; transform: translateY(28px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__title-line { opacity: 1; animation: none; }
}
.hero__title-mark {
  position: relative;
  display: inline-block;
}
.hero__title-paren {
  font-family: var(--f-jp-head);
  font-size: 0.5em;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0;
  margin-left: -0.05em;
}
.hero__title-conn {
  font-family: var(--f-jp-head);
  font-weight: 500;
  font-size: 0.85em;
  color: rgba(255,255,255,0.7);
  margin-left: 0.05em;
}
.hero__title-line--accent { display: flex; align-items: baseline; gap: 0; }
.hero__title-mark--accent {
  color: #F4F2EC;
  position: relative;
  padding-bottom: 0.08em;
}
.hero__title-mark--accent::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.04em;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 50%, white) 100%);
  transform-origin: left;
  animation: underlineGrow 0.9s cubic-bezier(.6,.2,.2,1) 0.5s both;
}
@keyframes underlineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.hero__title-period {
  font-family: var(--f-display);
  color: var(--accent);
  font-size: 1.1em;
  margin-left: 0.05em;
  position: relative;
}
.hero__title-period::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0.08em;
  width: 0.3em; height: 0.3em;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 70%, transparent);
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.5; transform: translateX(-50%) scale(1.25); }
}
.hero__title-sub {
  display: block;
  font-family: var(--f-jp-body);
  font-weight: 400;
  font-size: clamp(13px, 1.2vw, 17px);
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.72);
  line-height: 1.95;
  margin-top: clamp(14px, 1.8vw, 22px);
  padding-top: clamp(12px, 1.5vw, 18px);
  border-top: 1px solid rgba(255,255,255,0.14);
  max-width: 720px;
  animation: fadeInUp 0.9s cubic-bezier(.2,.7,.2,1) 0.3s both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__bottom {
  position: relative; z-index: 4;
  display: grid; grid-template-columns: 1fr;
  gap: 40px;
  padding-top: clamp(40px, 6vw, 80px);
  animation: fadeInUp 1.1s cubic-bezier(.2,.7,.2,1) 1.2s both;
}
@media (min-width: 960px) {
  .hero__bottom { grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: end; }
}

.hero__lead {
  font-family: var(--f-jp-body);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 2.0;
  color: rgba(255,255,255,0.78);
  margin: 0 0 28px;
  max-width: 520px;
  letter-spacing: 0.04em;
}
.hero__lead strong {
  color: #fff; font-weight: 700;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 60%, white);
  padding-bottom: 1px;
}
.sm-only { display: none; }
@media (max-width: 640px) { .sm-only { display: block; } }

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__note {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 18px;
  letter-spacing: 0.14em;
}
.btn--ghost-dark {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.btn--ghost-dark:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

/* Credentials panel */
.hero__cred {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.22);
  padding: 28px 32px 24px;
  position: relative;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero__cred::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 50%, white);
  border-left: 1px solid color-mix(in srgb, var(--accent) 50%, white);
}
.hero__cred::after {
  content: "";
  position: absolute;
  bottom: -1px; right: -1px;
  width: 14px; height: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 50%, white);
  border-right: 1px solid color-mix(in srgb, var(--accent) 50%, white);
}
.hero__cred-head {
  display: flex; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: 0.32em;
  color: rgba(255,255,255,0.55);
  padding-bottom: 16px;
  margin-bottom: 4px;
}
.hero__cred-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.25), transparent);
}
.hero__cred-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0;
}
.hero__cred-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.10);
  align-items: center;
}
.hero__cred-list li:last-child { border-bottom: 0; }
.hero__cred-num {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: color-mix(in srgb, var(--accent) 30%, white);
  font-weight: 600;
}
.hero__cred-body {
  display: flex; flex-direction: column;
  gap: 4px;
  font-size: 13.5px;
}
.hero__cred-body strong {
  font-family: var(--f-jp-head);
  font-weight: 700;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.hero__cred-body span {
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.hero__cred-foot {
  display: flex; align-items: center; gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.hero__cred-stamp {
  flex-shrink: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 64px; height: 64px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, white);
  border-radius: 50%;
  position: relative;
}
.hero__cred-stamp::before {
  content: "";
  position: absolute; inset: 4px;
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 50%;
}
.hero__cred-stamp .mono {
  font-size: 8px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
}
.hero__cred-stamp-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.02em;
  margin-top: -2px;
}
.hero__cred-foot-text {
  font-family: var(--f-jp-body);
  font-size: 12px;
  line-height: 1.85;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
}

/* Ticker */
.hero__ticker-wrap {
  position: relative; z-index: 4;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 14px 0;
  background: rgba(0,0,0,0.25);
  display: var(--ticker-display);
  mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}
.ticker { overflow: hidden; }
.ticker__track {
  display: flex; gap: 56px;
  width: max-content;
  animation: ticker 56s linear infinite;
}
.ticker__item {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 16px;
  letter-spacing: 0.12em;
}
.ticker__item::before {
  content: "◆";
  color: color-mix(in srgb, var(--accent) 70%, white);
  font-size: 7px;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  left: clamp(20px, 4vw, 56px);
  bottom: 94px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.5);
  z-index: 5;
}
.hero__scroll-line {
  display: block; width: 1px; height: 56px; background: rgba(255,255,255,0.15); position: relative; overflow: hidden;
}
.hero__scroll-line span {
  position: absolute; left: 0; top: 0; width: 1px; height: 30%;
  background: color-mix(in srgb, var(--accent) 70%, white);
  animation: scrollDown 2s cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(340%); }
}
@media (min-width: 1200px) {
  .hero__scroll { display: flex; }
}

/* Contact rail (desktop right side) */
.contact-rail {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.3s, transform 0.3s;
}
.contact-rail--hidden { opacity: 0; transform: translateY(-50%) translateX(20px); pointer-events: none; }
.contact-rail__main {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  background: var(--accent);
  color: #fff;
  padding: 18px 16px 20px;
  text-align: right;
  position: relative; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  min-width: 110px;
}
.contact-rail__main::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  animation: shine 3s ease-in-out infinite;
}
@keyframes shine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.contact-rail__main:hover { transform: translateX(-4px); box-shadow: -8px 8px 24px -8px color-mix(in srgb, var(--accent) 60%, transparent); }
.contact-rail__main .mono { font-size: 9px; letter-spacing: 0.2em; opacity: 0.75; }
.contact-rail__label { font-family: var(--f-jp-head); font-weight: 700; font-size: 18px; letter-spacing: 0.04em; }
.contact-rail__arrow {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 14px;
}
.contact-rail__item {
  display: flex; align-items: center; gap: 10px;
  justify-content: flex-end;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px; color: var(--fg);
  transition: all 0.2s;
}
.contact-rail__item:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.contact-rail__item--line svg { color: #06C755; }
.contact-rail__item--line:hover svg { color: #fff; }
@media (min-width: 1200px) { .contact-rail { display: flex; } }

/* ======================================
   Troubles
====================================== */
.troubles { padding: var(--section-pad) 0; background: var(--bg-alt); position: relative; }
.troubles__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.trouble-card {
  background: #fff;
  padding: 36px 30px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 220px;
  position: relative; overflow: hidden;
  transition: color 0.3s, transform 0.3s;
}
.trouble-card__hover {
  position: absolute; inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
  z-index: 0;
}
.trouble-card:hover .trouble-card__hover { transform: scaleY(1); transform-origin: top; }
/* IMPORTANT: target the text children specifically (not '> *') so the
   .trouble-card__hover overlay keeps its z-index:0. Using '> *' here
   matches __hover too, bumps it to z-index:1, and since it's the last
   child in DOM order it ends up rendering on top of the text. */
.trouble-card__num,
.trouble-card__t,
.trouble-card__d {
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}
.trouble-card:hover .trouble-card__t,
.trouble-card:hover .trouble-card__d,
.trouble-card:hover .trouble-card__num { color: #fff; }
.trouble-card__num { font-size: 12px; color: var(--accent); letter-spacing: 0.22em; }
.trouble-card__t {
  font-family: var(--f-jp-head); font-weight: 700;
  font-size: 17px; line-height: 1.55; color: var(--fg); text-wrap: pretty;
}
.trouble-card__d { font-size: 13px; color: var(--fg-soft); line-height: 1.85; }

/* ======================================
   Reasons
====================================== */
.reasons { padding: var(--section-pad) 0; }
.reasons__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px 32px;
}
.reason {
  padding-top: 32px;
  border-top: 1px solid var(--fg);
  position: relative;
  transition: transform 0.3s;
}
.reason:hover { transform: translateY(-4px); }
.reason__num { font-size: 13px; letter-spacing: 0.22em; color: var(--accent); margin-bottom: 16px; font-weight: 700; }
.reason__t {
  font-family: var(--f-jp-head); font-weight: 700;
  font-size: 20px; line-height: 1.5; margin: 0 0 14px; text-wrap: pretty;
}
.reason__d { font-size: 14px; color: var(--fg-soft); line-height: 1.9; margin: 0; }
.reason__arrow {
  position: absolute; top: 32px; right: 0;
  width: 36px; height: 36px; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-soft);
  transition: all 0.3s;
}
.reason:hover .reason__arrow { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(45deg); }

/* ======================================
   Services
====================================== */
.services { padding: var(--section-pad) 0; background: var(--bg-alt); }
.service-group { margin-bottom: 56px; }
.service-group:last-child { margin-bottom: 0; }
.service-group__head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 14px; margin-bottom: 28px; gap: 20px; flex-wrap: wrap;
}
.service-group__tag {
  display: block;
  font-size: 10px; letter-spacing: 0.25em;
  color: var(--accent); margin-bottom: 6px;
}
.service-group__head h3 { font-family: var(--f-jp-head); font-weight: 700; font-size: clamp(20px, 2vw, 26px); margin: 0; }
/* color: --accent (navy) for WCAG AA contrast on .services bg-alt background.
   Previously --fg-muted (#6B7079) on #F3F2EC = 4.33:1, just under AA 4.5:1. */
.service-group__count { font-size: 11px; color: var(--accent); letter-spacing: 0.2em; font-weight: 600; }
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
/* Cards sit inside .reveal wrappers (the actual grid items) — stretch both so
   every card fills its row and no gap background shows under shorter cards. */
.service-grid > .reveal { height: 100%; }
.service-grid .service-card { height: 100%; box-sizing: border-box; }
.service-card {
  background: #fff; padding: 30px 26px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 200px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.service-card::after {
  content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%;
  background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.service-card:hover { background: #FAFAF7; transform: translateX(4px); }
.service-card:hover::after { transform: scaleY(1); }
.service-card__idx { font-size: 10px; color: var(--fg-muted); letter-spacing: 0.22em; }
.service-card__t { font-family: var(--f-jp-head); font-weight: 700; font-size: 16px; line-height: 1.5; }
.service-card__d { font-size: 13px; color: var(--fg-soft); line-height: 1.85; flex: 1; }
.service-card__more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 8px;
}
.service-card:hover .service-card__more svg { transform: translateX(4px); transition: transform 0.3s; }

/* ======================================
   Case Studies（ご相談事例）
====================================== */
.cases { padding: var(--section-pad) 0; }
.cases__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.case-card {
  background: #fff; padding: 30px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.case-card::after {
  content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%;
  background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.case-card:hover { background: #FAFAF7; }
.case-card:hover::after { transform: scaleY(1); }
.case-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.case-card__tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.08em;
  color: #fff; background: var(--accent);
  padding: 5px 12px; border-radius: 2px; font-weight: 700;
}
.case-card__idx { font-size: 10px; color: var(--fg-muted); letter-spacing: 0.22em; }
.case-card__t {
  font-family: var(--f-jp-head); font-weight: 700;
  font-size: 18px; line-height: 1.55; margin: 0; text-wrap: pretty;
}
.case-card__body { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.case-card__block dt {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--accent); margin-bottom: 4px;
}
.case-card__block dd { margin: 0; font-size: 13px; color: var(--fg-soft); line-height: 1.85; }
.case-card__block--result dt { color: var(--fg); }
.case-card__block--result dd { color: var(--fg); font-weight: 500; }
.case-card__more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--accent); font-weight: 600; margin-top: auto;
}
.case-card:hover .case-card__more svg { transform: translateX(4px); transition: transform 0.3s; }
.cases__note {
  margin: 28px 0 0; font-size: 12px; color: var(--fg-muted); line-height: 1.8;
}

/* ======================================
   Quick Estimate Simulator（かんたん料金診断）
====================================== */
.simulator { padding: var(--section-pad) 0; background: var(--bg-alt); }
.sim {
  max-width: 760px; margin: 0 auto;
  border: 1px solid var(--line); background: #fff;
  padding: 32px 28px;
  box-shadow: 0 20px 60px -30px rgba(14, 16, 19, 0.15);
}
.sim__q { margin-bottom: 24px; }
.sim__q-label { font-family: var(--f-jp-head); font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.sim__opts { display: flex; gap: 12px; flex-wrap: wrap; }
.sim__opt {
  flex: 1 1 0; min-width: 130px; cursor: pointer;
  padding: 14px 18px; border: 1px solid var(--line); background: #fff;
  font-size: 15px; font-weight: 600; color: var(--fg);
  border-radius: 4px; transition: all 0.2s; font-family: inherit;
}
.sim__opt:hover { border-color: var(--accent); }
.sim__opt[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.sim__placeholder { margin-top: 8px; font-size: 13px; color: var(--fg-muted); text-align: center; padding: 16px; border-top: 1px dashed var(--line); }
.sim__result { margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--fg); }
.sim__result-head { font-size: 11px; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 14px; }
.sim__line { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.sim__line span:last-child { font-weight: 700; }
.sim__line--total { border-bottom: none; margin-top: 6px; padding-top: 16px; font-size: 17px; }
.sim__line--total span:last-child { font-size: 24px; color: var(--accent); font-family: var(--f-jp-head); }
.sim__note { font-size: 12px; color: var(--fg-muted); line-height: 1.8; margin: 16px 0 20px; }
.sim__cta { width: 100%; justify-content: center; }

/* ======================================
   Pricing
====================================== */
.pricing { padding: var(--section-pad) 0; position: relative; }
.pricing::before {
  content: ""; position: absolute;
  top: 10%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.pricing .container { position: relative; z-index: 1; }
.pricing__table {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 20px 60px -30px rgba(14, 16, 19, 0.15);
}
.pricing__head {
  display: grid; grid-template-columns: 1.6fr 1fr;
  background: var(--fg); color: var(--bg);
  padding: 18px 28px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
}
.pricing__row {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px;
  padding: 22px 28px; border-top: 1px solid var(--line-soft);
  align-items: center;
  transition: background 0.2s;
}
.pricing__row:hover { background: var(--bg-alt); }
.pricing__svc { display: flex; align-items: center; gap: 18px; font-family: var(--f-jp-head); font-weight: 600; font-size: 16px; }
.pricing__idx { color: var(--accent); font-size: 12px; }
.pricing__price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.pricing__price-main { font-family: var(--f-jp-head); font-weight: 700; font-size: 17px; letter-spacing: 0.01em; }
.pricing__price-note { font-size: 11px; color: var(--fg-muted); font-family: var(--f-mono); margin-top: 4px; }
@media (max-width: 680px) {
  .pricing__head { display: none; }
  .pricing__row { grid-template-columns: 1fr; gap: 8px; }
  .pricing__price { align-items: flex-start; text-align: left; }
}
.pricing__notice {
  margin-top: 28px; background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 22px 26px; display: flex; gap: 20px;
}
.pricing__notice-label { font-size: 11px; color: var(--accent); letter-spacing: 0.22em; flex-shrink: 0; padding-top: 2px; font-weight: 700; }
.pricing__notice p { margin: 0; font-size: 13.5px; color: var(--fg-soft); line-height: 1.95; }
.pricing__notice strong { color: var(--fg); font-weight: 700; }
.pricing__cta { margin-top: 44px; text-align: center; }

/* ======================================
   Flow
====================================== */
.flow { padding: var(--section-pad) 0; background: var(--bg-alt); }
.flow__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; background: #fff; border: 1px solid var(--line); }
.flow__item {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 28px; padding: 32px 36px;
  border-top: 1px solid var(--line-soft);
  align-items: baseline;
  position: relative;
  transition: background 0.25s;
}
.flow__item:hover { background: var(--bg); }
.flow__item:first-child { border-top: 0; }
.flow__num { font-family: var(--f-display); font-size: 40px; color: var(--accent); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.flow__t { font-family: var(--f-jp-head); font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.flow__d { font-size: 14px; color: var(--fg-soft); line-height: 1.9; }
.flow__connector {
  position: absolute; left: 56px; bottom: -8px;
  width: 8px; height: 16px;
  border-right: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  display: none;
}
@media (max-width: 680px) {
  .flow__item { grid-template-columns: 1fr; gap: 10px; padding: 22px 22px; }
}

/* ======================================
   About
====================================== */
.about { padding: var(--section-pad) 0; position: relative; }
.about__inner {
  display: grid; grid-template-columns: 1fr;
  gap: 48px; align-items: center;
}
@media (min-width: 880px) {
  .about__inner { grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
}
.about__media { position: relative; }
.about__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  overflow: hidden;
  border: 1px solid var(--line);
}
.about__photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, color-mix(in srgb, var(--accent) 15%, transparent) 100%);
  z-index: 1; pointer-events: none;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.8s; }
.about__photo:hover img { transform: scale(1.03); }
.about__photo-tag {
  position: absolute; bottom: 16px; left: 16px;
  font-size: 10px; letter-spacing: 0.3em;
  color: #fff;
  z-index: 2;
  background: color-mix(in srgb, var(--accent) 90%, transparent);
  padding: 6px 10px;
}
.about__photo-deco {
  position: absolute; right: -8px; top: 0; bottom: 0;
  writing-mode: vertical-rl;
  font-size: 10px; letter-spacing: 0.3em;
  color: var(--fg-muted);
  display: none;
}
@media (min-width: 880px) { .about__photo-deco { display: block; } }
.about__title {
  font-family: var(--f-jp-head); font-weight: var(--heading-weight);
  font-size: clamp(26px, 3.4vw, 44px); line-height: 1.3;
  margin: 16px 0 28px;
}
.about__name { color: var(--accent); font-size: 1.25em; }
.about__copy p { color: var(--fg-soft); line-height: 1.98; font-size: 15px; margin: 0 0 18px; }
.about__meta { margin: 28px 0 32px; border-top: 1px solid var(--line); }
.about__meta > div {
  display: grid; grid-template-columns: 130px 1fr; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px; align-items: baseline;
}
.about__meta .mono { font-size: 10px; color: var(--fg-muted); letter-spacing: 0.22em; }

/* ======================================
   FAQ
====================================== */
.faq { padding: var(--section-pad) 0; background: var(--bg-alt); }
.faq__list { background: #fff; border: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line-soft); }
.faq__item:first-child { border-top: 0; }
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: 24px 30px;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 20px; align-items: start;
  font-family: var(--f-jp-head); font-weight: 600;
  font-size: 16px; line-height: 1.55;
  color: var(--fg); transition: background 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { background: var(--bg); }
.faq__q-mark { color: var(--accent); font-size: 14px; font-weight: 700; padding-top: 2px; }
.faq__q-text { text-wrap: pretty; }
.faq__icon { color: var(--fg-muted); display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding-top: 3px; transition: transform 0.3s; }
.faq__item[open] .faq__icon { color: var(--accent); }
.faq__icon-minus { display: none; }
.faq__item[open] .faq__icon-plus { display: none; }
.faq__item[open] .faq__icon-minus { display: inline-flex; }
.faq__a { padding: 0 30px 26px; display: grid; grid-template-columns: auto 1fr; gap: 20px; animation: faqOpen 0.3s ease; }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.faq__a-mark { color: var(--fg-muted); font-size: 14px; font-weight: 700; }
.faq__a p { margin: 0; color: var(--fg-soft); line-height: 1.98; font-size: 14.5px; padding-left: 18px; border-left: 2px solid var(--accent); }

/* ======================================
   Blog
====================================== */
.blog { padding: var(--section-pad) 0; }
.blog__inner { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 880px) { .blog__inner { grid-template-columns: 1.4fr 1fr; gap: 88px; } }
.post-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line); }
.post-item { border-bottom: 1px solid var(--line-soft); }
.post-item a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 24px;
  padding: 22px 0;
  transition: padding 0.25s, background 0.2s;
  align-items: center;
}
.post-item a:hover { padding-left: 16px; padding-right: 16px; margin-left: -16px; margin-right: -16px; background: var(--bg-alt); }
.post-item__meta { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: 0.08em; grid-column: 1; }
.post-item__date { color: var(--fg-muted); }
.post-item__cat { padding: 2px 10px; background: var(--bg-alt); color: var(--fg-soft); border: 1px solid var(--line); }
.post-item__t { font-family: var(--f-jp-head); font-weight: 600; font-size: 15.5px; line-height: 1.6; color: var(--fg); text-wrap: pretty; grid-column: 1; }
.post-item__arrow {
  grid-row: 1 / span 2; grid-column: 2;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-muted); transition: all 0.3s;
}
.post-item a:hover .post-item__arrow { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ======================================
   CTA
====================================== */
.cta { background: var(--bg-ink); color: #F6F5F0; padding: var(--section-pad) 0; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 30%, color-mix(in srgb, var(--accent) 45%, transparent) 0%, transparent 55%);
  opacity: 0.5; pointer-events: none;
}
.cta__bignum {
  position: absolute;
  left: -2%; bottom: -6%;
  font-family: var(--f-display);
  font-size: clamp(140px, 22vw, 340px);
  font-weight: 900;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.1);
  text-stroke: 1px rgba(255,255,255,0.1);
  letter-spacing: -0.04em;
  pointer-events: none;
}
.cta__inner { display: grid; grid-template-columns: 1fr; gap: 40px; position: relative; z-index: 1; }
@media (min-width: 960px) { .cta__inner { grid-template-columns: 1fr; gap: 44px; max-width: 1000px; margin-inline: auto; } }
.cta__copy { text-align: center; }
.cta__copy .eyebrow { justify-content: center; }
.cta__lead { margin-inline: auto; }
.cta__title {
  font-family: var(--f-jp-head); font-weight: var(--heading-weight);
  font-size: clamp(28px, 4vw, 52px); line-height: 1.35;
  margin: 16px 0 22px; letter-spacing: 0.01em; text-wrap: balance;
}
.cta__lead { font-size: 15px; line-height: 1.98; color: rgba(255,255,255,0.7); margin: 0; max-width: 480px; }
.cta__actions { display: grid; gap: 16px; }
.cta-btn {
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
  padding: 24px 28px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  color: #fff;
  transition: all 0.3s;
}
.cta-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); transform: translateY(-2px); }
.cta-btn--main { background: var(--accent); border-color: var(--accent); }
.cta-btn--main:hover { filter: brightness(1.12); background: var(--accent); box-shadow: 0 14px 40px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.cta-btn__label { display: block; font-family: var(--f-jp-head); font-weight: 700; font-size: 17px; }
.cta-btn__sub { display: block; font-family: var(--f-mono); font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 0.1em; margin-top: 4px; }
.cta-btn--main .cta-btn__sub { color: rgba(255,255,255,0.85); }
.cta-btn__arrow { font-size: 22px; transition: transform 0.3s; }
.cta-btn:hover .cta-btn__arrow { transform: translateX(4px); }
.cta__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-btn--sub { padding: 20px 22px; justify-content: flex-start; }
@media (max-width: 560px) { .cta__row { grid-template-columns: 1fr; } }

/* CTA compare cards — clarify 無料診断 vs 税務スポット相談 (review §1) */
.cta-compare { display: grid; gap: 16px; }
@media (min-width: 720px) and (max-width: 1023px) { .cta-compare { grid-template-columns: 1fr 1fr; align-items: stretch; } }
@media (min-width: 1024px) { .cta-compare { grid-template-columns: 1fr 1fr 1fr; align-items: stretch; } }
.cta-compare__card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 26px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
}
.cta-compare__head { display: flex; flex-direction: column; gap: 9px; }
.cta-compare__tag {
  font-size: 11px; letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--accent) 45%, white);
}
.cta-compare__title {
  font-family: var(--f-jp-head); font-weight: 700;
  font-size: 19px; line-height: 1.4; color: #fff; margin: 0;
}
.cta-compare__list {
  list-style: none; margin: 0; padding: 0; flex: 1;
  display: flex; flex-direction: column; gap: 11px;
}
.cta-compare__list li {
  position: relative; padding-left: 24px;
  font-size: 13.5px; line-height: 1.7;
  color: rgba(255,255,255,0.78);
}
.cta-compare__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.cta-compare__card .cta-btn { margin-top: auto; min-height: 110px; box-sizing: border-box; }
@media (min-width: 1024px) { .cta-compare__card .cta-btn { min-height: 152px; } }
.cta-compare__card--line { border-color: rgba(6,199,85,0.5); background: rgba(6,199,85,0.06); }
.cta-compare__card--line .cta-compare__tag { color: #4ade80; }
.cta-compare__card--line .cta-compare__list li::before { color: #06C755; }
.cta-btn--line { background: #06C755; border-color: #06C755; }
.cta-btn--line:hover { filter: brightness(1.1); background: #06C755; box-shadow: 0 14px 40px -12px rgba(6,199,85,0.6); }
.cta-btn--line .cta-btn__sub { color: rgba(255,255,255,0.88); }

/* LINE特典バナー（ヒーロー直下・review §5） */
.line-gift {
  background: linear-gradient(135deg, #06C755 0%, #04a247 100%);
  color: #fff; padding: clamp(36px, 5vw, 56px) 0;
}
.line-gift--compact { padding: clamp(28px, 3.5vw, 40px) 0; }
.line-gift__inner { max-width: 940px; text-align: center; }
.line-gift__eyebrow {
  font-size: 11px; letter-spacing: 0.28em; opacity: 0.85;
  display: block; margin-bottom: 14px;
}
.line-gift__title {
  font-family: var(--f-jp-head); font-weight: 700;
  font-size: clamp(21px, 3vw, 30px); line-height: 1.45;
  margin: 0 0 10px; color: #fff;
}
.line-gift__sub {
  font-size: clamp(15px, 2vw, 19px); margin: 0 0 26px;
  color: rgba(255,255,255,0.95);
}
.line-gift__sub strong { font-weight: 800; font-size: 1.18em; }
.line-gift__list {
  list-style: none; margin: 0 auto 22px; padding: 0;
  display: grid; gap: 10px; max-width: 680px;
}
@media (min-width: 760px) { .line-gift__list { grid-template-columns: repeat(3, 1fr); } }
.line-gift__list li {
  background: rgba(255,255,255,0.14);
  border-radius: 8px; padding: 14px 16px;
  font-size: 13.5px; line-height: 1.55; font-weight: 600;
  display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center;
}
.line-gift__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; color: #06C755; font-weight: 800; font-size: 14px;
}
.line-gift__note {
  font-size: 13px; line-height: 1.85; margin: 0 auto 26px;
  color: rgba(255,255,255,0.9); max-width: 620px;
}
.line-gift__btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #06C755;
  font-family: var(--f-jp-head); font-weight: 800; font-size: 16px;
  padding: 17px 38px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 14px 36px -14px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.line-gift__btn:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -14px rgba(0,0,0,0.5); }
.line-gift__btn svg { width: 20px; height: 20px; }
@media (max-width: 759px) {
  .line-gift__list { grid-template-columns: 1fr; max-width: 420px; }
  .line-gift__list li { flex-direction: row; justify-content: flex-start; text-align: left; }
  .line-gift__btn { width: 100%; max-width: 360px; justify-content: center; }
}

/* ======================================
   Footer
====================================== */
.footer { background: #0B0D10; color: rgba(255,255,255,0.72); padding: 80px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: 48px; padding-bottom: 56px; }
@media (min-width: 880px) { .footer__inner { grid-template-columns: 1fr 2fr; gap: 88px; } }
.footer__logo { height: 44px; width: auto; max-width: none; aspect-ratio: 442 / 64; opacity: 0.95; filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0,0,0,0.15)); }
.footer__brand-name {
  font-family: var(--f-jp-head);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 22px);
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.4;
}
.footer__addr { font-size: 13px; line-height: 1.85; color: rgba(255,255,255,0.6); margin: 20px 0 12px; }
.footer__tel { font-size: 16px; color: #fff; letter-spacing: 0.1em; }
.footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
.footer__h { font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.22em; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__nav a { font-size: 13px; color: rgba(255,255,255,0.72); transition: color 0.15s; position: relative; padding-left: 0; }
.footer__nav a:hover { color: #fff; padding-left: 8px; transition: padding 0.25s, color 0.15s; }
.footer__copy { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; }
.footer__copy .container {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.1em;
}

/* Sticky bar (mobile) */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; background: #fff;
  border-top: 1px solid var(--line); z-index: 30;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.04);
}
.sticky-bar__item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; padding: 10px 0; font-size: 11px; color: var(--fg-soft);
  border-left: 1px solid var(--line-soft);
}
.sticky-bar__item:first-child { border-left: 0; }
.sticky-bar__item svg { color: var(--accent); }
.sticky-bar__item--line svg { color: #06C755; }
@media (min-width: 1000px) { .sticky-bar { display: none; } }
@media (max-width: 999px) { body { padding-bottom: 66px; } }

/* =========================
   PartnerStrip (placed inside footer)
   ========================= */
.partner-strip {
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0;
  margin-bottom: 36px;
}
.partner-strip__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.partner-strip__label {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.55);
}
.partner-strip__list {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.partner-strip__item {
  display: inline-flex;
  align-items: center;
}
.partner-strip__item a,
.partner-strip__item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s, opacity 0.18s;
}
/* Text-style partners (fallback only — when no logo file is provided) */
.partner-strip__item--text a,
.partner-strip__item--text > span {
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.02);
}
.partner-strip__item--text a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.partner-strip__item--text .partner-strip__text {
  font-family: var(--f-jp-head);
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
/* Image-style partners — render at intrinsic aspect, sit on a white tile so
   coloured brand marks stay legible against the dark footer. */
.partner-strip__item--image a,
.partner-strip__item--image > span {
  background: #fff;
  border-radius: 6px;
  height: 60px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.partner-strip__item--image img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}
/* Wide wordmark logos: rectangular tile, padding around image */
.partner-strip__item--wide a,
.partner-strip__item--wide > span {
  padding: 10px 16px;
}
.partner-strip__item--wide img {
  max-width: 160px;
}
/* Square badges: tighter tile, circular mask */
.partner-strip__item--square a,
.partner-strip__item--square > span {
  padding: 4px;
  width: 60px;
  border-radius: 50%;
  overflow: hidden;
}
.partner-strip__item--square img {
  border-radius: 50%;
}
.partner-strip__item--image a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
  /* 2-column grid keeps every partner inside the viewport on narrow screens */
  .partner-strip { padding: 22px 0; }
  .partner-strip__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 360px;
  }
  .partner-strip__item {
    width: 100%;
    justify-content: center;
  }
  /* Each tile fills its grid cell so layout is even regardless of logo width */
  .partner-strip__item a,
  .partner-strip__item > span {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }
  .partner-strip__item--text a,
  .partner-strip__item--text > span { height: 44px; padding: 0 8px; }
  .partner-strip__item--text .partner-strip__text { font-size: 12px; }
  .partner-strip__item--image a,
  .partner-strip__item--image > span { height: 52px; padding: 6px 10px; }
  .partner-strip__item--wide img { max-width: 100%; }
  /* freee 認定アドバイザー (square) — keep circular, centered in its cell */
  .partner-strip__item--square a,
  .partner-strip__item--square > span {
    width: 52px;
    height: 52px;
    padding: 4px;
    margin: 0 auto;
  }
}
.footer__ai-note {
  font-size: 12px;
  /* WCAG AA — dark footer (#0B0D10) needs a light text color.
     Was --fg-soft (#3A3E45) which was unreadable on the dark bg. */
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  margin: 24px 0;
  padding: 0 24px;
}
.footer__ai-note a {
  /* Use the lighter brand white so the link is legible on dark bg.
     The accent navy was too close to the footer #0B0D10 background. */
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__ai-note a:hover { opacity: 0.85; }
@media (max-width: 768px) {
  .partner-strip { padding: 36px 0; }
  .partner-strip__list { gap: 28px; }
  .partner-strip__item img { height: 44px; max-width: 140px; }
}

/* =========================
   YouTube Section
   ========================= */
.youtube-section { padding: var(--section-pad, 96px) 0; }
.youtube-section__embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 32px auto;
  max-width: 960px;
  border: 1px solid var(--line, #e0dfd8);
}
.youtube-section__embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.youtube-section__cta { text-align: center; margin-top: 24px; }

/* =========================
   TV Appearance
   ========================= */
.tv-appearance { padding: var(--section-pad, 96px) 0; }
.tv-appearance__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 32px;
}
@media (max-width: 768px) {
  .tv-appearance__grid { grid-template-columns: 1fr; gap: 20px; }
}
.tv-appearance__thumb {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line, #e0dfd8);
}
.tv-appearance__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tv-appearance__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(46, 62, 128, 0.92);
  color: #fff;
  display: grid; place-items: center;
  font-size: 28px;
  transition: transform .2s ease;
}
.tv-appearance__thumb:hover .tv-appearance__play { transform: translate(-50%, -50%) scale(1.08); }
.tv-appearance__facts { margin: 0 0 16px; display: grid; gap: 8px; }
.tv-appearance__facts > div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: baseline; }
.tv-appearance__facts dt { font-weight: 600; color: var(--accent, #2E3E80); }
.tv-appearance__facts dd { margin: 0; word-break: break-word; }
@media (max-width: 560px) {
  .tv-appearance__facts > div { grid-template-columns: 1fr; gap: 2px; }
  .tv-appearance__facts dt { font-size: 12px; letter-spacing: 0.04em; }
}
.tv-appearance__lead { margin: 16px 0 24px; line-height: 1.8; }
.tv-appearance__embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin-top: 32px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line, #e0dfd8);
}
.tv-appearance__embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.tv-appearance__yt-link { margin-top: 4px; }
.tv-appearance__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}
.tv-appearance__cta .btn { min-width: 280px; }
@media (max-width: 560px) {
  .tv-appearance__cta { flex-direction: column; gap: 12px; }
  .tv-appearance__cta .btn { min-width: 0; width: 100%; }
}

/* =========================
   Desktop hover/focus 強化
   タッチ端末には適用しない（hover: hover + pointer: fine）
   ========================= */
@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(20, 30, 70, 0.12);
    z-index: 1;
  }
  .pricing__row { position: relative; }
  .pricing__row::before {
    content: "";
    position: absolute; left: 0; top: 0;
    width: 3px; height: 100%;
    background: var(--accent);
    transform: scaleY(0); transform-origin: top;
    transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
  }
  .pricing__row:hover::before { transform: scaleY(1); }
}
/* キーボード操作にも hover と同等の視覚フィードバック */
.service-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(20, 30, 70, 0.12);
  z-index: 1;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.service-card:focus-visible::after { transform: scaleY(1); }

/* =========================
   Reduced motion — global
   ファイル末尾に置くこと（カスケードで全アニメ定義に勝たせる）
   ========================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
}

/* ---- Corporate funnel additions (2026-08-24) ---- */

/* Hero: corporate audience switch link (dark hero context) */
.hero__corp-link {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 22px; padding: 12px 18px;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  font-size: 13px; letter-spacing: 0.02em;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.hero__corp-link:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); color: #fff; }
.hero__corp-link-tag { font-size: 10px; letter-spacing: 0.24em; color: color-mix(in srgb, var(--accent) 35%, white); }
.hero__corp-link-arrow { transition: transform 0.25s; }
.hero__corp-link:hover .hero__corp-link-arrow { transform: translateX(4px); }
@media (max-width: 600px) {
  .hero__corp-link { width: 100%; box-sizing: border-box; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
}

/* Services: featured corporate guide card (navy inverse) */
.service-card--feature { background: var(--bg-ink); }
.service-card--feature .service-card__idx { color: color-mix(in srgb, var(--accent) 35%, white); }
.service-card--feature .service-card__t { color: #fff; }
.service-card--feature .service-card__d { color: rgba(244,242,236,0.72); }
.service-card--feature .service-card__more { color: #fff; }
.service-card--feature:hover { background: var(--bg-ink-deep); }

/* Pricing: inline link on the corporate row */
.pricing__price-link {
  display: inline-block; margin-top: 6px;
  font-family: var(--f-jp-head); font-size: 12.5px; font-weight: 700;
  color: var(--accent);
}
.pricing__price-link:hover { text-decoration: underline; }
.pricing__cta { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Corporate band (mini /corporate/ FV between Pricing and Flow) */
.corp-band { background: linear-gradient(135deg, var(--bg-ink) 0%, var(--bg-ink-deep) 100%); color: #F4F2EC; padding: clamp(56px, 8vw, 96px) 0; }
.corp-band__inner { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: center; }
.corp-band__title {
  font-family: var(--f-jp-head); font-weight: 700;
  font-size: clamp(24px, 3.4vw, 38px); line-height: 1.45;
  color: #fff; margin: 18px 0 14px; letter-spacing: 0.02em;
}
.corp-band__sub { margin: 0; font-size: 14px; line-height: 2.1; color: rgba(244,242,236,0.78); }
.corp-band__points { list-style: none; margin: 0 0 24px; padding: 0; }
.corp-band__points li {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0; font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.corp-band__points li svg { color: color-mix(in srgb, var(--accent) 40%, white); flex-shrink: 0; }
.corp-band__btn { width: 100%; justify-content: center; box-sizing: border-box; }
@media (min-width: 920px) {
  .corp-band__inner { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .corp-band__br { display: none; }
  .corp-band__btn { width: auto; }
}

/* Corporate GUIDE card as a full-width banner row above the service grid */
.service-card--banner {
  border: 1px solid var(--line);
  margin-bottom: 1px;
  min-height: 0;
  flex-direction: column; gap: 16px;
}
.service-card--banner .service-card__d { flex: none; }
.service-card--banner .service-card__more { margin-top: 4px; flex-shrink: 0; }
@media (min-width: 760px) {
  .service-card--banner {
    flex-direction: row; align-items: center; justify-content: space-between; gap: 32px;
    padding: 26px 30px;
  }
  .service-card--banner__body { display: flex; flex-direction: column; gap: 8px; }
  .service-card--banner .service-card__more {
    margin-top: 0; white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.35); padding: 13px 22px;
    font-size: 13px; transition: background 0.25s, border-color 0.25s;
  }
  .service-card--banner:hover .service-card__more { background: rgba(255,255,255,0.1); border-color: #fff; }
}


/* ---- 2026-09-07 導線改善: FV 案B（入口タイル型） ---- */
.hero__main {
  position: relative; z-index: 4;
  display: grid; grid-template-columns: 1fr;
  gap: 28px;
  animation: fadeInUp 0.9s cubic-bezier(.2,.7,.2,1) 0.4s both;
}
@media (min-width: 960px) {
  .hero__main { grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
}
.hero__left { min-width: 0; }
.hero__right { min-width: 0; }
.hero__title { flex: 0 0 auto; }
.hero__title-line { white-space: normal; }
@media (min-width: 760px) { .hero__title-line { white-space: nowrap; } }

.hero__price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
  margin-top: clamp(16px, 2vw, 24px);
}
.hero__price-num {
  font-family: var(--f-jp-head);
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
}
.hero__price-num strong {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(30px, 3.2vw, 44px);
  color: #fff;
  letter-spacing: 0.01em;
  margin: 0 0.06em;
}
.hero__price-desc {
  font-family: var(--f-jp-body);
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
}
.hero__chips {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.hero__chips li {
  font-family: var(--f-jp-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 5px 12px;
}
.hero__main .hero__cta { margin-top: clamp(18px, 2.2vw, 26px); }
.hero__main .hero__note {
  font-family: var(--f-jp-body);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
  margin-top: 12px;
}
.hero__cred-strip {
  list-style: none; margin: clamp(18px, 2.4vw, 28px) 0 0; padding: 12px 0 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 6px 22px;
}
.hero__cred-strip li {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-size: 11.5px; letter-spacing: 0.06em; color: rgba(255,255,255,0.5);
}
.hero__cred-strip strong {
  font-family: var(--f-jp-head); font-weight: 700; font-size: 12.5px; color: rgba(255,255,255,0.85);
}

/* 3入口カード */
.hero__entries {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.22);
  padding: 20px 22px 8px;
  position: relative;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero__entries::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 14px; height: 14px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 50%, white);
  border-left: 1px solid color-mix(in srgb, var(--accent) 50%, white);
}
.hero__entries-head {
  display: flex; align-items: center; gap: 14px;
  font-size: 10.5px; letter-spacing: 0.28em;
  color: rgba(255,255,255,0.6);
  padding-bottom: 10px;
}
.hero__entry {
  display: grid; grid-template-columns: 28px 1fr 20px; gap: 14px; align-items: center;
  padding: 15px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.12);
  color: #fff; text-decoration: none;
  transition: background 0.2s, padding-left 0.2s;
}
.hero__entry:last-of-type { border-bottom: 0; }
.hero__entry:hover { background: rgba(255,255,255,0.05); }
.hero__entry-num {
  font-size: 11px; letter-spacing: 0.12em; font-weight: 600;
  color: color-mix(in srgb, var(--accent) 30%, white);
}
.hero__entry-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hero__entry-body strong {
  font-family: var(--f-jp-head); font-weight: 700; font-size: clamp(15px, 1.2vw, 17px); letter-spacing: 0.04em; color: #fff;
}
.hero__entry-body span {
  font-family: var(--f-jp-body); font-size: 12px; letter-spacing: 0.05em; color: rgba(255,255,255,0.6);
}
.hero__entry-arrow { color: color-mix(in srgb, var(--accent) 70%, white); transition: transform 0.2s; }
.hero__entry:hover .hero__entry-arrow { transform: translateX(4px); }
.hero__entry--primary .hero__entry-body strong { color: #fff; }
.hero__entry--primary .hero__entry-num { color: var(--accent); }
.hero__entry--primary {
  position: relative;
}
.hero__entry--primary::before {
  content: ""; position: absolute; left: -22px; top: 12px; bottom: 12px; width: 3px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 50%, white));
}
.hero__right .hero__corp-link { margin-top: 14px; width: 100%; box-sizing: border-box; justify-content: space-between; }
@media (max-width: 959px) {
  .hero__right .hero__corp-link { justify-content: flex-start; }
}

/* 右レール（>=1200px 固定表示）と入口カードの重なり回避 */
@media (min-width: 1200px) and (max-width: 1459px) {
  .hero__main { padding-right: 150px; }
}
/* モバイル: 初期画面に価格・CTA・入口を寄せる */
@media (max-width: 640px) {
  .hero__meta-loc { display: none; }
  .hero__meta { padding-bottom: 14px; }
  .hero__title-en { margin-bottom: 8px; }
  .hero__title-sub { margin-top: 10px; padding-top: 10px; line-height: 1.8; }
  .hero__price { margin-top: 12px; }
  .hero__chips { margin-top: 10px; }
  .hero__main .hero__cta { margin-top: 14px; }
  .hero__main .hero__cta .btn--ghost-dark { display: none; }
  .hero__cred-strip { display: none; }
  .hero__main { gap: 18px; }
  .hero__entries { padding: 14px 16px 4px; }
  .hero__entry { padding: 12px 0; }
}

/* 入口カード下の申告時期メモ */
.hero__entries-note {
  margin: 8px 0 10px; font-family: var(--f-jp-body); font-size: 11.5px; line-height: 1.7;
  letter-spacing: 0.04em; color: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 10px;
}
.hero__entries-note strong { color: rgba(255,255,255,0.8); font-weight: 600; }

/* ---- 2026-09-07 導線改善: 事例カードのスペック表 ---- */
.case-card__spec { margin: 0; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line, #E4E2DA); }
.case-card__row { display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line, #E4E2DA); }
.case-card__row dt { font-family: var(--f-jp-head); font-size: 11.5px; letter-spacing: 0.06em; color: var(--fg-soft); padding-top: 2px; }
.case-card__row dd { margin: 0; font-size: 13px; line-height: 1.75; color: var(--fg); }
.case-card__row--price { border-bottom: 0; }
.case-card__row--price dd { display: flex; flex-direction: column; gap: 2px; }
.case-card__row--price strong { font-family: var(--f-display); font-size: 17px; color: var(--accent); letter-spacing: 0.01em; }
.case-card__row--price span { font-size: 11.5px; color: var(--fg-soft); }
.case-card__links { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.case-card__quote { font-family: var(--f-jp-head); font-weight: 700; font-size: 13px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.case-card__quote svg { width: 14px; height: 14px; }

/* 事例4件は2列×2段で揃える */
@media (min-width: 960px) { .cases__grid { grid-template-columns: repeat(2, 1fr); } }

/* 法人・士業の2段バナー（入口カード下・控えめ） */
.hero__audience { display: grid; gap: 8px; margin-top: 12px; }
.hero__audience-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.8); text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.hero__audience-link:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4); }
.hero__audience-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero__audience-body strong { font-family: var(--f-jp-head); font-weight: 600; font-size: 13px; color: #fff; letter-spacing: 0.03em; }
.hero__audience-body span { font-family: var(--f-jp-body); font-size: 11.5px; color: rgba(255,255,255,0.55); letter-spacing: 0.04em; }
.hero__audience-arrow { color: rgba(255,255,255,0.6); transition: transform 0.2s; }
.hero__audience-link:hover .hero__audience-arrow { transform: translateX(4px); }
