/* ============================================================
   SYNAPSEDEAL — Landing Page
   Brand DNA: warm off-white #f8f7f6, monochrome black,
   Inter + Noto Sans JP, wide letter-spacing, 2px-border buttons
   with subtle translate-on-hover.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #ffffff;
  --bg-soft: #f5f3ee;              /* warm grey-beige alt section */
  --ink: #211c14;                 /* warm charcoal */
  --ink-soft: #3a342a;
  --muted: #807868;
  --faint: #b3aa97;
  --line: #ece8df;
  --line-strong: #211c14;
  --dark: #211c15;                /* warm dark for footer */
  --dark-soft: #2c2619;

  /* brand golds */
  --gold: #f2b705;
  --gold-deep: #e0a600;
  --gold-soft: #fbeec2;           /* pill / tint bg */
  --gold-tint: #fdf6df;
  --cream-1: #fcefc6;             /* hero gradient top */
  --cream-2: #fdf8ea;             /* hero gradient mid */
  --panel-cream: #fdf4d8;         /* audience panel */

  /* diagram secondary — teal complements the warm gold */
  --teal: #0f7d77;
  --teal-deep: #0a5e59;
  /* diagram tertiary — deep slate-blue for the advisory/broker side */
  --slate: #3b5168;
  --slate-deep: #2c3e52;

  --accent: var(--gold);          /* warm gold; tweakable */
  --on-accent: #211c14;

  --font: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --jp: "Noto Sans JP", "Inter", system-ui, sans-serif;

  --maxw: 1240px;
  --pad: clamp(24px, 5vw, 96px);
  --radius: 4px;
  --ease: cubic-bezier(.4, .4, 0, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--bg); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section-head { max-width: 760px; }
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.4;
  margin: 22px 0 0;
}
.section-lead {
  margin-top: 20px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 620px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 16px 34px;
  border-radius: 8px;
  border: 2px solid var(--line-strong);
  transition: transform .4s var(--ease), opacity .4s var(--ease), background .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover { transform: translate(4px, 4px); opacity: .92; }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: translate(2px, 2px); }

.btn--primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--gold) 70%, transparent); }
.btn--ghost   { background: transparent; color: var(--ink); }
.btn--light   { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--on-dark { background: transparent; color: var(--bg); border-color: var(--bg); }

.btn--lg { padding: 19px 44px; font-size: 15px; }
.btn--sm { padding: 11px 22px; font-size: 12.5px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .brand-logo {
  height: 26px;
  width: auto;
  display: block;
}
.brand .mark {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .26em;
  color: var(--ink);
}
.brand .sub {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--faint);
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 38px; }
.nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--ink-soft);
  position: relative;
  transition: opacity .3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--ink);
  transition: width .4s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 18px; }

.menu-toggle { display: none; background: none; border: 0; width: 28px; height: 22px; position: relative; }
.menu-toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); transition: .3s var(--ease); }
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(150px, 20vh, 220px);
  padding-bottom: clamp(80px, 12vh, 150px);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 75% 0%, var(--cream-1) 0%, var(--cream-2) 42%, #ffffff 78%);
}
/* subtle sparkle field, echoing the reference hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, var(--gold) 1.5px, transparent 1.6px),
    radial-gradient(circle, var(--gold-deep) 1px, transparent 1.2px);
  background-size: 180px 150px, 130px 210px;
  background-position: 30px 40px, 90px 120px;
  opacity: .14;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(40px, 5vw, 84px);
}
.hero-copy { max-width: 580px; margin: 0; text-align: left; }
.eyebrow { justify-content: flex-start; }
.hero-lead { margin-left: 0; margin-right: 0; }
.hero-actions { justify-content: flex-start; }
.hero h1 {
  font-size: clamp(27px, 3.4vw, 46px);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.36;
  margin: 26px 0 0;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.hero h1 .hl2 { white-space: nowrap; }
.hero h1 .accent { position: relative; white-space: nowrap; color: var(--gold-deep); }
.hero h1 .accent::after { display: none; }
.hero-lead {
  margin-top: 34px;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--ink-soft);
  line-height: 2;
  max-width: 540px;
}
.hero-actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-meta {
  margin-top: 52px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.hero-meta .stat .num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--gold-deep);
  font-feature-settings: "tnum";
}
.hero-meta .stat .lab {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
  margin-top: 4px;
}

/* Hero visual — abstract "synapse" node diagram (simple dots + lines) */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 56px,
    var(--bg-alt);
  overflow: hidden;
}
.hero-visual .vlabel {
  position: absolute;
  top: 22px; left: 22px;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
}
.hero-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-visual .node-tag {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  background: var(--gold);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 3px;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.hero-visual .node-tag.is-soft {
  background: var(--bg-alt);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

/* edge draw animation */
.edge { stroke: var(--gold-deep); stroke-width: 1.4; fill: none; opacity: .5;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  animation: draw 1.4s var(--ease) forwards; }
.dot { fill: var(--gold-deep); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: clamp(80px, 12vh, 140px) 0; }
.services-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.svc {
  position: relative;
  padding: 48px 44px 52px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background .4s var(--ease);
}
.svc:hover { background: var(--bg-alt); }
.svc-num {
  position: absolute;
  top: 30px; right: 38px;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  color: var(--gold);
  opacity: .9;
  font-feature-settings: "tnum";
}
.svc-title {
  margin-top: 4px;
  padding-right: 54px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.5;
}
.svc-en {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}
.svc-desc {
  margin-top: 20px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.95;
}
.svc-tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--gold-deep);
  background: var(--gold-soft);
  border: 1px solid transparent;
  border-radius: 40px;
  padding: 5px 13px;
}
.svc-index {
  display: none;
}

/* ---------- Orbit diagram ---------- */
.svc-orbit-wrap { margin-top: 56px; }
.svc-orbit {
  position: relative;
  width: 1100px;
  height: 900px;
  transform-origin: top left;
}
.orbit-lines { position: absolute; inset: 0; width: 1100px; height: 900px; overflow: visible; }
.orbit-ring { fill: none; stroke: var(--gold); stroke-width: 2; opacity: .55; }
.orbit-leader { stroke: var(--gold-deep); stroke-width: 1.6; opacity: .85; }
.orbit-dot { fill: var(--gold-deep); }

.orb {
  position: absolute;
  width: 246px; height: 246px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 50% 38%, #fdf3cf 0%, var(--gold-soft) 70%, #f6e3a3 100%);
  border: 1px solid #f0dca0;
  box-shadow: 0 18px 40px -22px rgba(150,110,0,.45), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.orb:hover { transform: translate(-50%, -50%) scale(1.04); box-shadow: 0 26px 52px -22px rgba(150,110,0,.55); }
.orb-no {
  font-size: 13px; font-weight: 800; letter-spacing: .2em;
  color: var(--gold-deep); margin-bottom: 8px; font-feature-settings: "tnum";
}
.orb-title { font-size: 22px; font-weight: 700; letter-spacing: .04em; line-height: 1.4; color: var(--ink); }

.orb.hub {
  width: 158px; height: 158px;
  left: 550px; top: 450px;
  background: linear-gradient(150deg, var(--ink) 0%, #3a3322 100%);
  border: none;
  box-shadow: 0 16px 38px -16px rgba(0,0,0,.5);
}
.orb.hub .hub-mark { font-size: 18px; font-weight: 800; letter-spacing: .24em; color: #fff; }
.orb.hub .hub-sub { font-size: 11px; font-weight: 700; letter-spacing: .34em; color: var(--gold); margin-top: 4px; }

.callout {
  position: absolute;
  list-style: none;
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.callout li {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-soft);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.callout li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--gold-deep);
  box-sizing: border-box;
}
/* right-side callouts: keep text left-aligned, the box just sits to the right */
.svc-orbit .callout[style*="translate(-100%,-100%)"],
.svc-orbit .callout[style*="translate(-100%,0)"] { text-align: left; }

.svc-mobile { display: none; }

/* ---------- At-a-glance service intro cards (always visible) ---------- */
.svc-intro {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.svc-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(150,110,0,.4); }
.svc-card-top { display: flex; align-items: baseline; justify-content: space-between; }
.svc-card-no { font-size: 28px; font-weight: 800; color: var(--gold); letter-spacing: .02em; font-feature-settings: "tnum"; }
.svc-card-en { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.svc-card-title { margin-top: 14px; font-size: 18px; font-weight: 700; letter-spacing: .03em; line-height: 1.45; }
.svc-card-desc { margin-top: 12px; font-size: 13.5px; color: var(--muted); line-height: 1.85; flex: 1; }
.svc-card-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.svc-card-tags span {
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--gold-deep); background: var(--gold-soft);
  border-radius: 40px; padding: 4px 11px;
}
.svc-card-cta { margin-top: 18px; align-self: flex-start; }

/* ============================================================
   AUDIENCE
   ============================================================ */
.audience { padding: clamp(80px, 12vh, 130px) 0; background: var(--bg-soft); color: var(--ink); }
.audience .eyebrow { color: var(--muted); }
.audience .eyebrow::before { background: var(--accent); }
.audience .section-title { color: var(--ink); }
.aud-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.aud {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 40px 34px 44px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.aud:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(120,90,0,.35); }
.aud .role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.aud h3 {
  margin-top: 14px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .05em;
}
.aud p {
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--muted);
}
.aud ul { margin-top: 22px; list-style: none; display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.aud li {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding-left: 24px;
  position: relative;
}
.aud li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 3px solid var(--gold);
  box-sizing: border-box;
}

/* ============================================================
   STRENGTHS
   ============================================================ */
.strengths { padding: clamp(80px, 12vh, 130px) 0; background: var(--bg-soft); }
.str-grid { margin-top: 60px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.str {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 44px 42px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.str:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(150,110,0,.4); }
.str-no {
  position: absolute; top: 38px; right: 44px;
  font-size: 15px; font-weight: 800; letter-spacing: .08em;
  color: var(--gold-deep); font-feature-settings: "tnum";
}
.str-ic {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--gold-soft); color: var(--gold-deep);
  display: grid; place-items: center; margin-bottom: 26px;
}
.str-ic svg { width: 30px; height: 30px; }
.str h3 { font-size: 22px; font-weight: 700; letter-spacing: .03em; line-height: 1.5; }
.str p { margin-top: 18px; font-size: 14.5px; color: var(--muted); line-height: 1.95; }
.str-list {
  list-style: none;
  margin-top: 26px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.str-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.5;
}
.str-list li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold-soft);
  border: 2px solid var(--gold);
  box-sizing: border-box;
}

/* ============================================================
   RESULTS
   ============================================================ */
.results { padding: clamp(80px, 12vh, 130px) 0; }
.result-stats {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.rstat {
  padding: 38px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rstat-num {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--gold-deep);
  line-height: 1;
  font-feature-settings: "tnum";
}
.rstat-num .u { font-size: 20px; font-weight: 700; margin-left: 4px; color: var(--ink); }
.rstat-lab { margin-top: 16px; font-size: 14.5px; font-weight: 700; letter-spacing: .03em; color: var(--ink-soft); }
.rstat-lab small { display: block; margin-top: 6px; font-size: 12px; font-weight: 500; color: var(--faint); letter-spacing: .02em; }

.result-tags { margin-top: 44px; display: flex; flex-direction: column; gap: 18px; }
.rt-label { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.rt-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.rt-cloud span {
  font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--ink-soft); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 40px; padding: 8px 16px;
  transition: .25s var(--ease);
}
.rt-cloud span:hover { border-color: var(--gold); background: var(--gold-tint); color: var(--gold-deep); }

/* ============================================================
   PROFILE (代表者紹介)
   ============================================================ */
.profile { padding: clamp(80px, 12vh, 130px) 0; }
.profile-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 56px;
  align-items: start;
}
/* identity card */
.profile-card {
  position: sticky;
  top: 104px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  overflow: hidden;
}
.pf-portrait {
  position: relative;
  aspect-ratio: 4 / 3.3;
  background: repeating-linear-gradient(135deg, var(--bg-soft) 0 14px, #efeadf 14px 28px);
  display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
}
.pf-portrait-note {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px; letter-spacing: .1em;
  color: var(--faint);
  background: var(--bg-alt);
  padding: 6px 13px; border-radius: 40px; border: 1px solid var(--line);
}
.pf-id { padding: 28px 28px 32px; }
.pf-role { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.pf-name { margin-top: 12px; font-size: 30px; font-weight: 800; letter-spacing: .06em; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; line-height: 1.2; }
.pf-name-en { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; color: var(--faint); text-transform: uppercase; }
.pf-bio { margin-top: 16px; font-size: 14px; color: var(--muted); line-height: 1.95; }
.pf-chips { margin-top: 22px; list-style: none; display: flex; flex-direction: column; gap: 9px; padding-top: 22px; border-top: 1px solid var(--line); }
.pf-chips li { position: relative; padding-left: 22px; font-size: 13px; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em; }
.pf-chips li::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-soft); border: 2px solid var(--gold-deep); box-sizing: border-box; }

/* career timeline */
.pf-tl { list-style: none; position: relative; padding-left: 30px; }
.pf-tl::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.pf-tl > li { position: relative; padding: 0 0 28px; }
.pf-tl > li:last-child { padding-bottom: 0; }
.pf-tl > li::before { content: ""; position: absolute; left: -30px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--gold); box-sizing: border-box; transition: background .3s var(--ease); }
.pf-tl > li:hover::before { background: var(--gold); }
.pf-year { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--gold-deep); font-feature-settings: "tnum"; margin-bottom: 5px; }
.pf-ev b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.6; color: var(--ink); }
.pf-ev span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.9; }

/* ============================================================
   CASES
   ============================================================ */
.cases { padding: clamp(80px, 12vh, 130px) 0; background: var(--bg-soft); }
.case-highlight {
  margin-top: 56px;
  background: linear-gradient(145deg, var(--ink) 0%, #38311f 100%);
  color: var(--bg);
  border-radius: 8px;
  padding: clamp(34px, 5vw, 52px);
  position: relative;
  overflow: hidden;
}
.case-highlight::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: .18;
}
.ch-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.ch-title { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: .03em; line-height: 1.45; }
.ch-body { margin-top: 18px; font-size: 15px; line-height: 1.95; color: rgba(248,247,246,.78); max-width: 760px; }
.ch-flow { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ch-flow span:not(.ch-arr) {
  font-size: 12.5px; font-weight: 600; letter-spacing: .03em;
  border: 1px solid rgba(255,255,255,.28); border-radius: 40px; padding: 8px 15px;
}
.ch-flow .ch-arr { color: var(--gold); font-weight: 700; }

.case-table-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-alt); }
.case-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.case-table th, .case-table td { text-align: left; padding: 16px 20px; font-size: 13.5px; }
.case-table thead th {
  background: var(--ink); color: var(--bg);
  font-weight: 700; letter-spacing: .08em; font-size: 12.5px;
  position: sticky; top: 0;
}
.case-table tbody tr { border-top: 1px solid var(--line); transition: background .25s var(--ease); }
.case-table tbody tr:hover { background: var(--gold-tint); }
.case-table td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; font-feature-settings: "tnum"; }
.case-table td:nth-child(2) { font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.case-table td { color: var(--muted); line-height: 1.6; }
.tag-buy, .tag-sell {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 4px; margin-right: 8px;
}
.tag-buy { background: #e7eef7; color: #2b5b9e; }
.tag-sell { background: var(--gold-soft); color: var(--gold-deep); }
.case-note { margin-top: 20px; font-size: 12.5px; color: var(--faint); line-height: 1.8; }

/* ============================================================
   COMPANY
   ============================================================ */
.company { padding: clamp(80px, 12vh, 130px) 0; }
.company-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 72px; align-items: start; }
.company-head .section-title { margin-top: 22px; }
.company-table dl { border-top: 1px solid var(--line-strong); }
.ct-row { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.ct-row dt { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--gold-deep); }
.ct-row dd { font-size: 14.5px; color: var(--ink-soft); line-height: 1.85; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { padding: clamp(64px, 10vh, 110px) 0; text-align: center; background: var(--gold-tint); border-top: 1px solid var(--gold-soft); }
.cta-band h2 {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.45;
}
.cta-band p { margin-top: 20px; color: var(--muted); font-size: 16px; }
.cta-band .hero-actions { justify-content: center; margin-top: 40px; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact { padding: clamp(80px, 12vh, 130px) 0; background: var(--bg-alt); border-top: 1px solid var(--line); }
/* .contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 72px; } */
.contact-aside .section-title { margin: 22px; }
.contact-points { margin-top: 38px; display: flex; flex-direction: column; gap: 22px; }
.contact-points .pt { display: flex; gap: 16px; align-items: flex-start; }
.contact-points .pt .ic {
  flex: none;
  width: 38px; height: 38px;
  background: var(--gold-soft);
  border: 1.5px solid var(--gold);
  color: var(--gold-deep);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800;
}
.contact-points .pt .tx b { display: block; font-size: 15px; font-weight: 700; letter-spacing: .03em; }
.contact-points .pt .tx span { font-size: 13px; color: var(--muted); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px;
}
.field label .req { font-size: 10px; color: #c0392b; font-weight: 700; letter-spacing: .05em; }
.field label .opt { font-size: 10px; color: var(--faint); font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230e0d0b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--bg-alt);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.field .err { font-size: 11.5px; color: #c0392b; letter-spacing: .02em; display: none; }
.field.invalid .err { display: block; }

/* form section sub-headings */
.form-sec-label {
  grid-column: 1 / -1;
  font-size: 12px; font-weight: 800; letter-spacing: .14em;
  color: var(--gold-deep);
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-top: 8px;
}
.form-sec-label:first-child { margin-top: 0; }

/* radio / checkbox groups */
.field-group { display: flex; flex-direction: column; gap: 12px; }
.field-group.full { grid-column: 1 / -1; }
.group-label {
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px;
}
.group-label .req { font-size: 10px; color: #c0392b; font-weight: 700; letter-spacing: .05em; }
.group-hint { font-size: 10.5px; color: var(--faint); font-weight: 600; letter-spacing: .04em; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  flex: 0 0 auto;
  max-width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-alt);
  font-size: 14px; font-weight: 600; color: var(--ink);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.choice span { white-space: nowrap; }
.choice:hover { border-color: var(--gold); }
.choice input {
  width: 18px; height: 18px; flex: none; margin: 0;
  accent-color: var(--gold-deep); cursor: pointer;
}
.choice:has(input:checked) {
  border-color: var(--gold-deep);
  background: var(--gold-tint);
}
.field-group .err { font-size: 11.5px; color: #c0392b; letter-spacing: .02em; display: none; }
.field-group.invalid .err { display: block; }
.field-group.invalid .choice { border-color: #c0392b; }

.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--ink); }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.form-submit { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form-note { font-size: 12.5px; color: var(--faint); }

.form-success {
  grid-column: 1 / -1;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 40px;
}
.form-success.show { display: flex; }
.form-success .chk {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-size: 22px;
}
.form-success h3 { font-size: 21px; font-weight: 700; letter-spacing: .04em; }
.form-success p { color: var(--muted); font-size: 14.5px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: linear-gradient(100deg, #fbf0cd 0%, #fbe17a 55%, #f7cb33 100%); color: var(--ink); padding: 76px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .mark { font-size: 20px; font-weight: 800; letter-spacing: .26em; color: var(--ink); }
.footer-brand .brand-logo { height: 26px; width: auto; display: block; }
.footer-brand .sub { font-size: 9.5px; font-weight: 700; letter-spacing: .22em; color: var(--ink-soft); text-transform: uppercase; margin-top: 6px; }
.footer-brand p { margin-top: 22px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.9; max-width: 300px; }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.footer-col a { font-size: 13.5px; color: var(--ink-soft); transition: opacity .3s var(--ease); }
.footer-col a:hover { opacity: .55; }
.foot-addr { font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }
.footer-bottom {
  margin-top: 64px; padding-top: 26px;
  border-top: 1px solid rgba(33,28,20,.18);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom small { font-size: 11.5px; letter-spacing: .08em; color: var(--ink-soft); }
.footer-bottom .legal { display: flex; gap: 24px; }
.footer-bottom .legal a { font-size: 11.5px; letter-spacing: .06em; color: var(--ink-soft); }
.footer-bottom .legal a:hover { color: var(--ink); }

/* ============================================================
   V2 ENHANCEMENTS
   ============================================================ */

/* tame the legacy sparkle layer — the big merger motif is the hero texture now */
.hero::before { display: none; }

/* nav now has 7 items — tighten spacing so it stays one line */
.nav { gap: 26px; }
.nav a { font-size: 12.5px; }

/* ---- scroll progress ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px;
  z-index: 60; background: transparent; pointer-events: none;
}
.scroll-progress #scroll-bar {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-deep) 100%);
  box-shadow: 0 0 12px -2px var(--gold-deep);
  transition: width .12s linear;
}

/* ---- hero background (clean, subtle — no overlap with text) ---- */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 82% 36%, color-mix(in srgb, var(--gold) 12%, transparent) 0%, transparent 70%);
}

/* ---- M&A 3-stakeholder Venn (no card — sits on the page) ---- */
.hero-figure {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.hf-lead {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.hf-lead b { color: var(--ink); font-weight: 800; }

.hf-diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 560;
  margin: 4px auto 0;
}
.hf-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }

.hf-disc { opacity: .15; }
.hf-c-a .hf-disc { fill: var(--gold); }
.hf-c-b .hf-disc { fill: var(--teal); }
.hf-c-c .hf-disc { fill: var(--slate); }
.hf-c-a .hf-ring { fill: none; stroke: var(--gold-deep); stroke-width: 2.6; opacity: .8; }
.hf-c-b .hf-ring { fill: none; stroke: var(--teal-deep); stroke-width: 2.6; opacity: .8; }
.hf-c-c .hf-ring { fill: none; stroke: var(--slate-deep); stroke-width: 2.6; opacity: .8; }

.hf-c-a { transform-origin: 216px 190px; animation: hfPop 1s var(--ease) .15s both; }
.hf-c-b { transform-origin: 384px 190px; animation: hfPop 1s var(--ease) .3s both; }
.hf-c-c { transform-origin: 300px 372px; animation: hfPop 1s var(--ease) .45s both; }
.hf-glow-c { opacity: 1; animation: hfGlowPulse 6s var(--ease) 1.4s infinite; transform-origin: 300px 258px; }

@keyframes hfPop { from { transform: scale(.62); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes hfGlowPulse { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: 1; } }

/* stakeholder labels on the outer edge of each circle */
.hf-side-lbl {
  position: absolute;
  text-align: center; font-weight: 800;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.1;
  animation: hfFade 1s var(--ease) .7s backwards;
}
.hf-side-lbl i {
  display: block; font-style: normal; margin-top: 4px; white-space: nowrap;
  font-size: 8.5px; font-weight: 700; letter-spacing: .16em; color: var(--faint);
}
.hf-lbl-a { left: 3%;  top: 1%; color: var(--gold-deep); }
.hf-lbl-b { right: 3%; top: 1%; color: var(--teal-deep); }
.hf-lbl-c { left: 50%; bottom: 0; transform: translateX(-50%); color: var(--slate-deep); }

/* central hub: SYNAPSEDEAL serves all three */
.hf-core {
  position: absolute; left: 50%; top: 45%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 20px;
  background: #fffdf8;
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 14px 36px -16px rgba(120, 90, 0, .5);
  animation: hfFadeOnly 1s var(--ease) 1s backwards;
}
.hf-core-mark {
  font-size: clamp(14px, 1.4vw, 17px); font-weight: 800; letter-spacing: .04em;
  color: var(--ink);
}
.hf-core-sub {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--gold-deep);
}

/* the BPO scope — what "全業務" means, below the figure */
.hf-tasks {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  margin-top: 16px;
}
.hf-tasks li {
  background: rgba(255, 255, 255, .85);
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  border-radius: 9px;
  padding: 9px 10px;
  text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: .01em;
  color: var(--ink);
  box-shadow: 0 6px 16px -12px rgba(120, 90, 0, .4);
}

@keyframes hfFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hfFadeOnly { from { opacity: 0; } to { opacity: 1; } }
.hf-lbl-c.hf-side-lbl { animation-name: hfFadeC; }
@keyframes hfFadeC { from { opacity: 0; transform: translateX(-50%) translateY(6px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .hf-svg *, .hero-figure * { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hf-disc { opacity: .15 !important; }
  .hf-core { transform: translate(-50%, -50%) !important; }
  .hf-lbl-c { transform: translateX(-50%) !important; }
}

.hero .hero-grid { z-index: 1; }
.hero-copy .hero-meta { justify-content: flex-start; }

/* ---- hero trust strip ---- */
.hero-trust {
  position: relative; z-index: 2;
  margin: clamp(48px, 7vh, 78px) auto 0;
  max-width: var(--maxw);
  padding: 22px var(--pad) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.hero-trust-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 18px;
}
.hero-trust-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 14px 34px;
}
.hero-trust-row span {
  font-size: 13.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--ink-soft); opacity: .72;
  position: relative; transition: opacity .3s var(--ease);
}
.hero-trust-row span:hover { opacity: 1; }
.hero-trust-row span + span::before {
  content: ""; position: absolute; left: -18px; top: 50%;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
  transform: translateY(-50%);
}

/* count-up flicker guard */
.hero-meta .num.counting { color: var(--gold-deep); }

/* ---- PROCESS section ---- */
.process { padding: clamp(80px, 12vh, 130px) 0; }
.proc-steps {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  list-style: none;
  counter-reset: proc;
}
.proc-step {
  position: relative;
  padding: 0 24px 0 0;
}
.proc-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 22px; right: -2px; top: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 100%);
}
.proc-no {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gold);
  color: var(--gold-deep);
  font-size: 15px; font-weight: 800; letter-spacing: .04em;
  font-feature-settings: "tnum";
  margin-bottom: 24px;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.proc-step:hover .proc-no { background: var(--gold); color: var(--on-accent); transform: scale(1.08); }
.proc-body { padding-right: 6px; }
.proc-body h3 { font-size: 17px; font-weight: 700; letter-spacing: .03em; line-height: 1.5; }
.proc-body p { margin-top: 12px; font-size: 13.5px; color: var(--muted); line-height: 1.9; }

@media (max-width: 880px) {
  .proc-steps { grid-template-columns: 1fr; gap: 0; }
  .proc-step { padding: 0 0 30px 0; }
  .proc-step:last-child { padding-bottom: 0; }
  .proc-step { display: grid; grid-template-columns: 46px 1fr; gap: 20px; align-items: start; }
  .proc-no { margin-bottom: 0; }
  .proc-step:not(:last-child)::after {
    left: 22px; top: 46px; bottom: 0; right: auto;
    width: 2px; height: auto;
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-soft) 100%);
  }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .edge { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   TWEAKS PANEL (vanilla, host-protocol driven)
   ============================================================ */
#tweaks { position: fixed; right: 22px; bottom: 22px; z-index: 100; width: 290px;
  background: var(--bg-alt); border: 1px solid var(--line-strong); border-radius: 8px;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.28); font-family: var(--font);
  display: none; overflow: hidden; }
#tweaks.on { display: block; }
#tweaks .tw-head { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line); }
#tweaks .tw-head b { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
#tweaks .tw-head button { background: none; border: 0; font-size: 18px; line-height: 1; color: var(--muted); }
#tweaks .tw-body { padding: 16px; display: flex; flex-direction: column; gap: 20px; max-height: 70vh; overflow-y: auto; }
#tweaks .tw-sec > label { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 10px; }
#tweaks .tw-opts { display: flex; flex-direction: column; gap: 8px; }
#tweaks .tw-opt { text-align: left; font-size: 12.5px; line-height: 1.5; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 5px; background: var(--bg); color: var(--ink-soft); transition: .25s var(--ease); }
#tweaks .tw-opt:hover { border-color: var(--ink); }
#tweaks .tw-opt.sel { background: var(--ink); color: var(--bg); border-color: var(--ink); }
#tweaks .tw-swatches { display: flex; gap: 10px; }
#tweaks .tw-sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; transition: .25s var(--ease); }
#tweaks .tw-sw.sel { border-color: var(--ink); transform: scale(1.08); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Tablet landscape / small laptop */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; justify-items: center; }
  .hero-copy { width: 100%; max-width: 620px; text-align: center; }
  .eyebrow { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-copy .hero-meta { justify-content: center; }
  .hero-figure { width: 100%; max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr; gap: 52px; }
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .str-grid { grid-template-columns: 1fr; }
  .result-stats { grid-template-columns: repeat(2, 1fr); }
  .company-grid { grid-template-columns: 1fr; gap: 40px; }
  .profile-grid { grid-template-columns: 1fr; gap: 40px; }
  .profile-card { position: static; max-width: 460px; }
}

/* Tablet portrait — switch services from orbit to cards */
@media (max-width: 880px) {
  .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: block; }
  .nav.open { display: flex; position: fixed; top: 80px; left: 0; width: 100%;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 0; }
  .nav.open a { padding: 16px var(--pad); border-top: 1px solid var(--line); }
  .nav.open a::after { display: none; }
  .svc-orbit-wrap { display: none; }
  .svc-intro { grid-template-columns: repeat(2, 1fr); }
  .svc-intro { margin-top: 0; }
}

/* Phones */
@media (max-width: 620px) {
  .aud-grid { grid-template-columns: 1fr; }
  .svc-intro { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .choices--radio, .choices--check { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .svc { padding: 38px 28px 42px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero { padding-top: clamp(120px, 18vh, 160px); }
  .hero h1 .hl2 { white-space: normal; }
  .hero-actions .btn { flex: 1 1 auto; }
  .result-stats { grid-template-columns: 1fr; }
  .ct-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 4px; }
  .ct-row dt { font-size: 12px; }
}

@media (max-width: 380px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .form-success { padding: 28px; }
}

/* ============================================================
   INNER PAGES (company / privacypolicy)
   ============================================================ */
.inner-page { padding-top: 160px; padding-bottom: 100px; }

.inner-page .page-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.inner-page .page-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.inner-page .page-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.3;
  margin-bottom: 60px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 48px;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb .sep { opacity: .4; }

/* --- Prose (privacy policy body text) --- */
.prose { max-width: 800px; font-size: 15px; line-height: 1.95; color: var(--ink-soft); }
.prose h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 48px 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}
.prose p { margin-bottom: 16px; }
.prose ol { padding-left: 20px; }
.prose ol li { margin-bottom: 12px; }
.prose a { color: var(--accent); text-decoration: underline; word-break: break-all; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }
.prose-date { margin-top: 60px; font-size: 13px; color: var(--muted); }

@media (max-width: 760px) {
  .inner-page { padding-top: 130px; padding-bottom: 70px; }
}

/* ========================================
   Jicoo ウィジェット（モバイル対応）
   コンテナ外でビューポート幅いっぱいに表示

   ※ 元の style.css では余白に CSS 変数（--spacing-*）を
      使用していましたが、移植先で単体でも動くように
      実数値（px）へ展開して記述しています。
        --spacing-md  : 24px
        --spacing-lg  : 32px
        --spacing-2xl : 64px
   ======================================== */

   .jicoo-widget-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* iOS Safari: スムーズスクロール */
    margin: 0 auto;
    /* コンテナと同様のパディングで見た目を揃える */
    padding: 0 64px;
    box-sizing: border-box;
}

.jicoo-widget-wrapper .jicoo-widget {
    width: 100%;
    min-width: 320px;
    height: 720px;
    border: 1px solid #e4e4e4;
    box-sizing: border-box;
}

/* iframe: Jicooが内部で幅を制御するため、幅の上書きはしない（横スクロールで対応） */
.jicoo-widget-wrapper .jicoo-widget iframe {
    display: block;
}

@media (max-width: 1024px) {
    .jicoo-widget-wrapper {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (max-width: 768px) {
    .jicoo-widget-wrapper {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 640px) {
    .jicoo-widget-wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 480px) {
    .contact-grid .jicoo-widget-wrapper {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (max-width: 375px) {
    /* 375px（iPhone SE等）: ウィジェットを軽く縮小して中央寄せ */
    .contact-grid .jicoo-widget-wrapper {
        overflow: hidden;
        overflow-x: hidden; /* Safari: overflow + transform のクリッピング対策 */
        padding-left: 6px;
        padding-right: 6px;
        display: flex;
        justify-content: center;
    }
    .contact-grid .jicoo-widget-wrapper .jicoo-widget {
        -webkit-transform: scale(0.96);
        transform: scale(0.96);
        -webkit-transform-origin: top center;
        transform-origin: top center;
        flex-shrink: 0; /* Safari: flex 子の縮小防止 */
        min-width: 360px;
        width: 360px;
    }
}

@media (max-width: 360px) {
    /* transform: scale でウィジェット全体を縮小（iframe内のMUI要素は直接編集不可のため） */
    .contact-grid .jicoo-widget-wrapper {
        overflow: hidden;
        overflow-x: hidden; /* Safari: overflow + transform のクリッピング対策 */
        padding-left: 4px;
        padding-right: 4px;
        display: flex;
        justify-content: center;
    }
    .contact-grid .jicoo-widget-wrapper .jicoo-widget {
        -webkit-transform: scale(0.88);
        transform: scale(0.88);
        -webkit-transform-origin: top center;
        transform-origin: top center;
        flex-shrink: 0; /* Safari: flex 子の縮小防止 */
        min-width: 360px;
        width: 360px;
    }
}

@media (max-width: 320px) {
    .contact-grid .jicoo-widget-wrapper {
        padding-left: 4px;
        padding-right: 4px;
        overflow: hidden;
        overflow-x: hidden; /* Safari: overflow + transform のクリッピング対策 */
    }
    .contact-grid .jicoo-widget-wrapper .jicoo-widget {
        -webkit-transform: scale(0.82);
        transform: scale(0.82);
        -webkit-transform-origin: top center;
        transform-origin: top center;
        flex-shrink: 0; /* Safari: flex 子の縮小防止 */
        min-width: 360px;
        width: 360px;
    }
}

/* 狭い画面：パディングを最小化してウィジェットの表示幅を確保 */
@media (max-width: 480px) {
    .widget-section .jicoo-widget-wrapper {
        padding-left: 8px;
        padding-right: 8px;
    }
}
