/* ===== V4 — ToBe Digital / 中小企業向けシンプル版 ===== */
:root {
  --ink: #111111;
  --ink-2: #333333;
  --ink-3: #5c5c5c;
  --ink-4: #8a8a8a;
  --line: #e7e5e0;
  --bg: #ffffff;
  --surface: #f5f4f1;
  --red: #E8141B;
  --red-soft: #fdecec;
  --jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --num: "Inter", "Noto Sans JP", sans-serif;
  --w: 1200px;
  --pad: clamp(20px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--jp); color: var(--ink); background: var(--bg);
  font-size: 17px; line-height: 1.85; letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: pretty; }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--pad); }
.sec { padding: clamp(72px, 9vw, 120px) 0; }
.sec.gray { background: var(--surface); }
.sec.dark { background: var(--ink); color: #fff; }

/* Header */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hd-in { max-width: var(--w); margin: 0 auto; padding: 14px var(--pad); display: flex; align-items: center; gap: 32px; }
.hd-logo img { height: 26px; width: auto; }
.hd nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; font-weight: 500; align-items: center; }
.hd nav a:hover { color: var(--red); }
.hd .tel { font-family: var(--num); font-weight: 700; font-size: 13px; color: var(--ink-3); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 28px; border-radius: 999px; font-weight: 700; font-size: 16px; letter-spacing: 0.04em; border: 2px solid transparent; transition: transform .15s, background .15s; cursor: pointer; font-family: var(--jp); }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #c80e14; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn .ar { font-family: var(--num); }

/* Section heading */
.sh { margin-bottom: 56px; }
.sh .lb { display: inline-flex; align-items: center; gap: 10px; font-family: var(--num); font-weight: 700; font-size: 14px; letter-spacing: 0.16em; color: var(--red); margin-bottom: 16px; }
.sh .lb::before { content: ""; width: 20px; height: 3px; background: var(--red); border-radius: 2px; }
.sh h2 { font-weight: 900; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.45; letter-spacing: 0.02em; }
.sh h2 .r { color: var(--red); }
.sh p { margin-top: 20px; color: var(--ink-3); max-width: 40em; font-size: 18px; }
.sec.dark .sh p { color: rgba(255,255,255,0.7); }
.sh.center { text-align: center; }
.sh.center p { margin-left: auto; margin-right: auto; }

/* Placeholder */
.ph { background: repeating-linear-gradient(135deg, transparent 0 11px, rgba(0,0,0,0.04) 11px 12px), #eceae5; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--ink-4); font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.08em; text-align: center; padding: 16px; }

/* Funnel */
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fn { background: #fff; border-radius: 20px; padding: 28px 24px 26px; position: relative; display: flex; flex-direction: column; border: 2px solid transparent; }
.fn.hl { border-color: var(--red); }
.fn .st { font-family: var(--num); font-weight: 800; font-size: 13px; color: var(--ink-4); letter-spacing: 0.1em; }
.fn h3 { font-weight: 900; font-size: 26px; margin: 6px 0 14px; }
.fn ul { list-style: none; padding: 0; margin: 0 0 20px; font-size: 16px; color: var(--ink-2); }
.fn li { padding: 7px 0; border-top: 1px solid var(--line); }
.fn .tag { margin-top: auto; align-self: flex-start; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--surface); color: var(--ink-3); }
.fn.hl .tag { background: var(--red); color: #fff; }
.fn:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 34px; width: 20px; text-align: center; font-family: var(--num); font-weight: 700; color: var(--ink-4); z-index: 2; }
.funnel-bar { margin-top: 16px; background: var(--ink); color: #fff; border-radius: 999px; padding: 14px 28px; text-align: center; font-weight: 700; font-size: 15px; }
.funnel-bar .r { color: #ff6b70; }

/* Reason cards */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rs { background: var(--surface); border-radius: 20px; padding: 36px 30px; }
.rs .n { font-family: var(--num); font-weight: 800; font-size: 44px; line-height: 1; color: var(--red); margin-bottom: 20px; }
.rs h3 { font-weight: 900; font-size: 22px; line-height: 1.55; margin-bottom: 12px; }
.rs p { font-size: 16px; color: var(--ink-3); line-height: 1.9; }

/* CTA band */
.cta-band { background: var(--red); color: #fff; border-radius: 28px; padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cta-band h2 { font-weight: 900; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.45; }
.cta-band p { margin-top: 14px; opacity: 0.9; font-size: 17px; }
.cta-band .acts { display: flex; flex-direction: column; gap: 12px; }
.cta-band .btn-white { background: #fff; color: var(--red); }
.cta-band .btn-ghost { border-color: #fff; color: #fff; }

/* Footer */
.ft { background: var(--ink); color: rgba(255,255,255,0.65); padding: 56px 0 32px; font-size: 14px; }
.ft-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.ft-top img { height: 26px; width: auto; margin-bottom: 16px; }
.ft nav { display: flex; gap: 28px; flex-wrap: wrap; }
.ft nav a:hover { color: #fff; }
.ft-bt { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; }

/* ===== Hero visual (UI collage) ===== */
.hero-x { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(#ebe9e4 1px, transparent 1px), linear-gradient(90deg, #ebe9e4 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 75% 40%, #000 20%, transparent 75%); }
.hero-glow { position: absolute; right: -12%; top: -20%; width: 62%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(232,20,27,0.13), transparent 62%); }
.hero-x .wrap { position: relative; }

.stats { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px; }
.stats b { font-family: var(--num); font-weight: 800; font-size: 28px; line-height: 1.2; display: block; }
.stats b small { font-family: var(--jp); font-size: 14px; margin-left: 2px; }
.stats b .r { color: var(--red); }
.stats span { font-size: 13px; color: var(--ink-3); font-weight: 700; }
.checks { margin-top: 28px; display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.checks span::before { content: "✓"; color: var(--red); margin-right: 6px; }

.viz { position: relative; padding: 44px 28px 52px 44px; }
.dash { background: #fff; border-radius: 20px; overflow: hidden; position: relative; z-index: 1;
  box-shadow: 0 40px 70px -30px rgba(17,17,17,0.35), 0 0 0 1px rgba(17,17,17,0.06); }
.dash-top { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.dash-top .dots { display: flex; gap: 5px; }
.dash-top .dots i { width: 9px; height: 9px; border-radius: 50%; background: #e2e0da; }
.live { margin-left: auto; font-family: var(--num); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: var(--red); display: inline-flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232,20,27,0.5); } 100% { box-shadow: 0 0 0 9px rgba(232,20,27,0); } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 18px 6px; }
.kpis div { background: var(--surface); border-radius: 12px; padding: 11px 13px; }
.kpis span { display: block; font-size: 11px; color: var(--ink-3); font-weight: 700; }
.kpis b { display: block; font-family: var(--num); font-weight: 800; font-size: 23px; line-height: 1.3; white-space: nowrap; }
.kpis em { font-style: normal; font-family: var(--num); font-size: 12px; font-weight: 800; color: var(--red); }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 124px; padding: 14px 18px 0; }
.chart i { flex: 1; height: var(--h); background: #e6e3dc; border-radius: 5px 5px 0 0; transform-origin: bottom;
  animation: grow 0.9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d) * 70ms + 200ms); }
.chart i.r { background: var(--red); }
@keyframes grow { from { transform: scaleY(0); } }
.chart-x { display: flex; justify-content: space-between; padding: 6px 18px 12px; font-family: var(--num); font-size: 10px; color: var(--ink-4); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.chips span { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--ink-2); }

.flt { position: absolute; z-index: 2; background: #fff; border-radius: 16px; padding: 12px 16px 12px 12px; display: flex; gap: 12px; align-items: center; font-size: 12px; line-height: 1.45;
  box-shadow: 0 24px 44px -14px rgba(17,17,17,0.32), 0 0 0 1px rgba(17,17,17,0.05); animation: bob 5s ease-in-out infinite; }
.flt .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-family: var(--num); font-weight: 800; font-size: 16px; color: #fff; background: var(--red); flex: none; }
.flt .ic.line { background: #06C755; font-size: 11px; }
.flt b { display: block; font-size: 14px; font-weight: 900; }
.flt small { color: var(--ink-4); font-size: 11px; }
.flt .r { color: var(--red); font-family: var(--num); font-weight: 800; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.flt-a { left: 0; top: 0; }
.flt-b { right: 0; bottom: 6px; animation-delay: -2.5s; }
.flt-tag { position: absolute; z-index: 3; right: 6px; top: 6px; background: var(--ink); color: #fff; font-weight: 900; font-size: 13px; line-height: 1.4; text-align: center;
  border-radius: 999px; padding: 10px 18px; transform: rotate(5deg); box-shadow: 0 14px 30px -10px rgba(17,17,17,0.4); }
.flt-tag .r { color: #ff6b70; }
.viz-note { position: absolute; left: 44px; bottom: 14px; font-size: 11px; color: var(--ink-4); }

/* Media strip */
.media { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; background: #fff; position: relative; }
.media .wrap { display: flex; align-items: center; gap: 16px 40px; flex-wrap: wrap; }
.media .l { font-size: 13px; font-weight: 700; color: var(--ink-4); white-space: nowrap; }
.media .ls { display: flex; gap: 12px 34px; flex-wrap: wrap; font-family: var(--num); font-weight: 800; font-size: 17px; color: #a19e96; letter-spacing: -0.01em; }

/* Funnel mini visuals */
.fv { height: 126px; border-radius: 14px; background: var(--surface); margin: 2px 0 18px; position: relative; overflow: hidden; padding: 14px; font-size: 11px; }
.fv-video { background: #1c1c1c; color: rgba(255,255,255,0.75); }
.fv-video .pb { position: absolute; left: 50%; top: 46%; width: 46px; height: 46px; border-radius: 50%; background: var(--red); transform: translate(-50%, -50%); }
.fv-video .pb::after { content: ""; position: absolute; left: 18px; top: 14px; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.fv-video .bar { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.2); }
.fv-video .bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 62%; border-radius: 2px; background: var(--red); }
.fv-search .ad { color: var(--ink-3); }
.fv-search .ad b { font-weight: 700; color: var(--ink); margin-right: 4px; }
.fv-search .tt { font-weight: 900; font-size: 13px; color: #1a4fd6; margin: 4px 0 8px; }
.fv-search .ln { height: 6px; border-radius: 3px; background: #dcd9d2; margin-bottom: 6px; }
.fv-badge { position: absolute; right: 12px; bottom: 12px; background: var(--red); color: #fff; font-family: var(--num); font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 999px; animation: bob 3s ease-in-out infinite; }
.fv-cart .card { background: #fff; border-radius: 10px; padding: 10px 12px; box-shadow: 0 6px 14px -8px rgba(0,0,0,0.25); }
.fv-cart .card b { display: block; font-family: var(--num); font-weight: 800; font-size: 20px; line-height: 1.3; }
.fv-cart .items { display: flex; gap: 6px; margin-top: 8px; }
.fv-cart .items i { width: 22px; height: 22px; border-radius: 6px; background: #e6e3dc; }
.fv-cart .items i:first-child { background: var(--red); }
.fv-chat { display: flex; flex-direction: column; gap: 6px; background: #eef1f4; }
.fv-chat .bl { align-self: flex-start; background: #fff; border-radius: 12px 12px 12px 3px; padding: 6px 10px; max-width: 86%; }
.fv-chat .br { align-self: flex-end; background: #06C755; color: #fff; border-radius: 12px 12px 3px 12px; padding: 6px 10px; font-weight: 700; }

/* Cases */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cs { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 4px 4px 20px 20px; padding: 26px 28px 26px; display: grid; grid-template-columns: 1fr 170px; grid-template-rows: auto 1fr auto; gap: 0 20px; }
.cs .hd2 { grid-column: 1 / -1; display: flex; gap: 12px; align-items: baseline; font-weight: 900; font-size: 18px; margin-bottom: 14px; }
.cs .hd2 .n { font-family: var(--num); font-weight: 800; font-size: 13px; color: var(--red); }
.cs .res { align-self: center; }
.cs .res .pre { font-weight: 900; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.4; }
.cs .res .big { font-weight: 900; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.3; color: var(--red); }
.cs .res .note { font-size: 12px; color: var(--ink-4); margin-top: 4px; }
.cs img { grid-row: 2; grid-column: 2; width: 100%; height: 130px; object-fit: contain; align-self: center; }
.cs p { grid-column: 1 / -1; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink-3); line-height: 1.85; }

/* Voices */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vc { background: #fff; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; }
.vc .who { font-weight: 700; font-size: 13px; color: var(--red); margin-bottom: 14px; }
.vc img { width: 100%; height: 150px; object-fit: contain; margin-bottom: 18px; }
.vc h3 { font-weight: 900; font-size: 19px; line-height: 1.55; padding-bottom: 16px; margin-bottom: 16px; position: relative; }
.vc h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; background: var(--red); border-radius: 2px; }
.vc p { font-size: 14px; color: var(--ink-3); line-height: 1.9; }
.vc .q { font-family: var(--num); font-weight: 800; font-size: 48px; line-height: 0.6; color: var(--red); opacity: 0.25; margin-bottom: 8px; }

@media (max-width: 900px) {
  .cases { grid-template-columns: 1fr; }
  .voices { grid-template-columns: 1fr; }
  .vc { display: grid; grid-template-columns: 140px 1fr; gap: 0 20px; }
  .vc .who, .vc .q { grid-column: 1 / -1; }
  .vc img { grid-row: span 3; height: 120px; }
}
@media (max-width: 600px) {
  .cs { grid-template-columns: 1fr 110px; padding: 22px 20px; }
  .cs img { height: 96px; }
  .vc { display: flex; }
}

/* Partner badge */
.gp { display: inline-flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 16px 8px 8px; font-size: 13px; font-weight: 700; color: var(--ink-3); line-height: 1.5; }
.gp img { width: 48px; height: 48px; object-fit: contain; }
.gp b { display: block; color: var(--ink); font-size: 15px; }

/* Sub page */
.pg-head { padding: clamp(56px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); background: var(--surface); }
.pg-head .lb { font-family: var(--num); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; color: var(--red); margin-bottom: 10px; }
.pg-head h1 { font-weight: 900; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.4; }
.pg-head p { margin-top: 12px; color: var(--ink-3); }
.crumb { font-size: 12px; color: var(--ink-4); margin-bottom: 20px; }
.crumb a:hover { color: var(--red); }

/* LINE button */
.btn-lineapp { background: #06C755; color: #fff; }
.btn-lineapp:hover { background: #05b04b; }

/* Mobile menu */
.hd-menu { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center; padding: 0; }
.hd-menu span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: background .2s; }
.hd-menu span::before, .hd-menu span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: transform .2s; }
.hd-menu span::before { top: -6px; } .hd-menu span::after { top: 6px; }
.hd.open .hd-menu span { background: transparent; }
.hd.open .hd-menu span::before { transform: translateY(6px) rotate(45deg); }
.hd.open .hd-menu span::after { transform: translateY(-6px) rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  .flt, .fv-badge, .chart i, .live::before { animation: none !important; }
}

@media (max-width: 900px) {
  .hd-in { gap: 10px; }
  .hd .tel { display: none; }
  .hd-menu { display: grid; }
  .hd-in .btn { margin-left: auto; }
  .hd nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: #fff; flex-direction: column; gap: 0; padding: 4px var(--pad) 20px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0,0,0,0.2); }
  .hd.open nav { display: flex; }
  .hd nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .funnel, .reasons { grid-template-columns: 1fr 1fr; }
  .fn:not(:last-child)::after { display: none; }
  .cta-band { grid-template-columns: 1fr; }
  .viz { padding: 40px 8px 48px 8px; max-width: 560px; }
  .viz-note { left: 8px; }
}
@media (max-width: 600px) {
  .funnel, .reasons { grid-template-columns: 1fr; }
  .kpis b { font-size: 18px; }
  .kpis div { padding: 9px 10px; }
  .chart { height: 96px; }
  .flt { padding: 9px 12px 9px 9px; }
  .flt .ic { width: 32px; height: 32px; }
  .flt b { font-size: 12px; }
  .flt-tag { font-size: 11px; padding: 8px 14px; }
  .hd-logo img, .hd-brand img { height: 20px !important; }
  .stats b { font-size: 22px; }
}

/* ===== BE.PERFORMANCE. wordmark ===== */
.bpl { font-family: var(--num); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; line-height: 1; display: inline-block; }
.bpl i { font-style: normal; color: var(--red); }
.bp-tag { display: inline-block; font-size: 0.78em; font-weight: 700; letter-spacing: 0.04em; margin-right: 0.5em; }
.nav-bp { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.nav-bp small { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.nav-bp .bpl { font-size: 15px; }
@media (max-width: 900px) { .nav-bp { gap: 10px; } .nav-bp small { font-size: 13px; } .nav-bp .bpl { font-size: 17px; } }

/* MEGA-BEGIN — サービスのメガメニュー / サービス詳細ページ（src/services.css から自動挿入。直接編集しない） */

/* ---- Header mega menu ---- */
.hd-dd { display: flex; align-items: center; }
.hd-dd-t { position: relative; display: inline-flex; align-items: center; gap: 7px; }
.hd-dd-t i { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.hd-dd-t::after { content: ""; position: absolute; left: -18px; right: -18px; top: 100%; height: 34px; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 36px 60px -34px rgba(17,17,17,.32); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility 0s linear .18s; cursor: default; }
.mega-in { max-width: var(--w); margin: 0 auto; padding: 26px var(--pad) 22px; }
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.mega-col { background: var(--surface); border-radius: 16px; padding: 14px 10px 8px; display: flex; flex-direction: column; }
.mega-st { display: flex; align-items: baseline; gap: 8px; padding: 0 8px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.mega-st b { font-family: var(--num); font-weight: 800; font-size: 11px; letter-spacing: .1em; color: var(--red); }
.mega-st span { font-weight: 900; font-size: 17px; color: var(--ink); }
.hd nav .mega-col a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 8px; border-radius: 10px; font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--ink-2); letter-spacing: .02em; }
.mega-col a::after { content: "→"; font-family: var(--num); font-weight: 700; color: var(--ink-4); transition: transform .15s, color .15s; flex: none; }
.hd nav .mega-col a:hover, .hd nav .mega-col a[aria-current] { background: #fff; color: var(--red); }
.mega-col a:hover::after, .mega-col a[aria-current]::after { color: var(--red); transform: translateX(3px); }
.mega-col .tg { margin: auto 8px 6px; padding-top: 8px; align-self: flex-start; }
.mega-col .tg span { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--red-soft); color: var(--red); }
.mega-ft { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: var(--ink-3); }
.hd nav .mega-ft a { font-weight: 700; color: var(--ink); font-size: 13px; }
.hd nav .mega-ft a:hover { color: var(--red); }
.mega-ft a span { font-family: var(--num); margin-left: 6px; }
@media (min-width: 901px) {
  .hd-dd:hover .mega, .hd-dd:has(:focus-visible) .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .hd-dd:hover .hd-dd-t { color: var(--red); }
  .hd-dd:hover .hd-dd-t i { transform: translateY(2px) rotate(225deg); }
}
@media (min-width: 901px) and (max-width: 1100px) { .mega-grid { gap: 6px; } .hd nav .mega-col a { font-size: 13px; padding: 8px 6px; } }

@media (max-width: 900px) {
  .hd.open nav { max-height: calc(100vh - 71px); max-height: calc(100dvh - 71px); overflow-y: auto; }
  .hd-dd { display: block; border-bottom: 1px solid var(--line); }
  .hd nav .hd-dd-t { display: flex; justify-content: space-between; width: 100%; border-bottom: 0; }
  .hd-dd-t::after { display: none; }
  .hd-dd-t i { margin-right: 6px; }
  .hd-dd.open .hd-dd-t i { transform: translateY(2px) rotate(225deg); }
  .mega { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; transition: none; }
  .hd-dd.open .mega { display: block; }
  .mega-in { padding: 0 0 14px; }
  .mega-grid { grid-template-columns: 1fr; gap: 8px; }
  .mega-col { padding: 12px 8px 6px; }
  .hd nav .mega-col a { padding: 10px 8px; border-bottom: 0; font-size: 15px; }
  .mega-col .tg { display: none; }
  .mega-ft { display: none; }
}

/* ---- Home: STEP 0〜4 のリンク ---- */
.fn li a { display: flex; justify-content: space-between; align-items: center; gap: 8px; transition: color .15s; }
.fn li a::after { content: "→"; font-family: var(--num); font-weight: 700; font-size: 14px; color: var(--ink-4); transition: transform .15s, color .15s; flex: none; }
.fn li a:hover { color: var(--red); }
.fn li a:hover::after { color: var(--red); transform: translateX(3px); }

/* ---- Service detail page ---- */
.svc-head .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 56px; align-items: end; }
.svc-kick { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.svc-kick .st { font-family: var(--num); font-weight: 800; font-size: 12px; letter-spacing: .1em; color: #fff; background: var(--red); padding: 3px 11px; border-radius: 999px; }
.svc-kick .nm { font-weight: 900; font-size: 15px; }
.svc-kick .en { font-family: var(--num); font-weight: 700; font-size: 12px; letter-spacing: .16em; color: var(--ink-4); }
.svc-head h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.3; }
.svc-head .catch { margin-top: 20px; font-weight: 900; font-size: clamp(19px, 2vw, 24px); line-height: 1.6; color: var(--ink); max-width: 32em; }
.svc-head .lead { margin-top: 6px; max-width: 44em; }
.svc-head .lead p { margin-top: 14px; color: var(--ink-2); font-size: 17px; line-height: 1.95; }
.svc-track { display: flex; gap: 6px; align-items: flex-end; height: 132px; }
.svc-track a { width: 82px; height: var(--h); border-radius: 12px 12px 4px 4px; background: #fff; border: 1.5px solid var(--line); padding: 9px 9px; display: flex; flex-direction: column; gap: 1px; transition: border-color .2s, transform .2s; }
.svc-track a b { font-family: var(--num); font-weight: 800; font-size: 10px; letter-spacing: .08em; color: var(--ink-4); }
.svc-track a span { font-size: 13px; font-weight: 900; line-height: 1.3; color: var(--ink-3); }
.svc-track a:hover { border-color: var(--ink-4); transform: translateY(-2px); }
.svc-track a.cur { background: var(--red); border-color: var(--red); box-shadow: 0 18px 30px -16px rgba(232,20,27,.55); }
.svc-track a.cur b { color: rgba(255,255,255,.8); }
.svc-track a.cur span { color: #fff; }

.svc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: start; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(64px, 8vw, 104px); }
.svc-nav { position: sticky; top: 92px; max-height: calc(100vh - 116px); overflow-y: auto; font-size: 14px; padding-right: 4px; }
.svc-nav .g { margin-bottom: 16px; }
.svc-nav .gh { display: flex; gap: 8px; align-items: baseline; padding: 0 12px 4px; }
.svc-nav .gh b { font-family: var(--num); font-weight: 800; font-size: 11px; letter-spacing: .1em; color: var(--ink-4); }
.svc-nav .gh span { font-weight: 900; font-size: 14px; }
.svc-nav a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--ink-3); font-weight: 500; line-height: 1.5; }
.svc-nav a:hover { color: var(--red); }
.svc-nav a[aria-current] { background: var(--red-soft); color: var(--red); font-weight: 700; }

.sb { padding: 44px 0; border-top: 1px solid var(--line); }
.sb:first-child { padding-top: 0; border-top: 0; }
.sb h2 { display: flex; gap: 14px; align-items: baseline; font-weight: 900; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.5; margin-bottom: 18px; }
.sb h2 .n { font-family: var(--num); font-weight: 800; font-size: 15px; color: var(--red); letter-spacing: .06em; flex: none; }
.sb p { color: var(--ink-2); font-size: 17px; line-height: 2; }
.sb p + p { margin-top: 14px; }
.sb .after { margin-top: 22px; }
.sb .pull { margin-top: 22px; font-weight: 900; font-size: clamp(18px, 2vw, 22px); line-height: 1.75; color: var(--ink); background: var(--surface); border-radius: 18px; padding: 22px 26px; }
.sb .pull::before { content: ""; display: block; width: 28px; height: 3px; background: var(--red); border-radius: 2px; margin-bottom: 12px; }
.sb-link { display: inline-flex; gap: 8px; margin-top: 16px; font-weight: 700; color: var(--red); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.sb-link span { font-family: var(--num); }
.sb .gp { margin-top: 22px; }

.sb-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sb-flow a { font-weight: 700; font-size: 15px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.sb-flow a:hover { border-color: var(--red); color: var(--red); }
.sb-flow a b { font-family: var(--num); font-weight: 800; color: var(--red); margin-right: 6px; font-size: 13px; }
.sb-flow em { font-style: normal; font-family: var(--num); font-weight: 700; color: var(--ink-4); }

.sb-grid { display: grid; gap: 12px; margin-top: 22px; }
.sb h2 + .sb-grid { margin-top: 0; }
.sb-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.sb-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.sb-card { background: var(--surface); border-radius: 18px; padding: 22px 22px 20px; position: relative; }
.sb-card .k { display: block; font-family: var(--num); font-weight: 800; font-size: 12px; letter-spacing: .08em; color: var(--red); margin-bottom: 8px; }
.sb-card h3 { font-weight: 900; font-size: 18px; line-height: 1.55; margin-bottom: 8px; }
.sb-card p { font-size: 15px; color: var(--ink-3); line-height: 1.85; }
.sb-grid.c1 .sb-card { display: grid; grid-template-columns: 250px 1fr; gap: 6px 24px; align-items: baseline; padding: 20px 24px; }
.sb-grid.c1 .sb-card h3 { margin: 0; }
.sb-grid.flow .sb-card:not(:last-child)::after, .sb-grid.x .sb-card:not(:last-child)::after {
  content: "→"; position: absolute; right: -17px; top: 50%; transform: translateY(-50%); z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; font-family: var(--num); font-weight: 800; font-size: 12px; color: var(--red); line-height: 1; }
.sb-grid.x .sb-card:not(:last-child)::after { content: "×"; font-size: 14px; }
.sb-grid.x .sb-card { background: #fff; border: 1.5px solid var(--line); }
.sb-grid.x .sb-card:last-child { border-color: var(--red); }
.phases { display: flex; gap: 6px; margin-top: 14px; }
.phases div { flex: 1; background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.phases div b { display: block; font-size: 14px; color: var(--red); font-weight: 900; margin-top: 2px; }

.tl-rows { margin-top: 18px; border-bottom: 1px solid var(--line); }
.sb h2 + .tl-rows { margin-top: 0; }
.tl-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline; }
.tl-row > b { font-size: 14px; color: var(--ink-3); }
.tl-row > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tl-row span { font-family: var(--num); font-weight: 700; font-size: 14px; letter-spacing: 0; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); line-height: 1.4; }
.tl-row small { font-size: 13px; color: var(--ink-3); }

.sb-checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.sb h2 + .sb-checks { margin-top: 0; }
.sb-checks li { display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: 14px; padding: 16px 20px; font-weight: 700; font-size: 17px; line-height: 1.6; }
.sb-checks li::before { content: "✓"; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }

.sb-statwrap { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 28px; align-items: start; }
.stat { background: var(--ink); color: #fff; border-radius: 20px; padding: 24px 22px; }
.stat .v { font-family: var(--num); font-weight: 800; font-size: 54px; line-height: 1; color: #ff6b70; }
.stat .v small { font-family: var(--jp); font-size: 17px; color: #fff; margin-left: 4px; font-weight: 700; }
.stat .l { margin-top: 12px; font-weight: 700; font-size: 14px; line-height: 1.6; }
.stat .s { margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.6; }

.sb-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sb-cmp .sb-card { display: flex; flex-direction: column; }
.sb-cmp .sb-card:last-child { background: #fff; border: 2px solid var(--red); }
.sb-cmp .m { margin-top: auto; padding-top: 16px; }
.sb-cmp .m div { border-top: 1px dashed #d4d1ca; padding-top: 14px; font-weight: 700; font-size: 15px; line-height: 1.7; }
.sb-cmp .m small { display: block; font-size: 12px; color: var(--ink-4); font-weight: 700; }

.sb-bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: center; }
.bar-row .t b { display: block; font-size: 15px; line-height: 1.5; }
.bar-row .t small { font-size: 12px; color: var(--ink-4); }
.bar-tr { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 12px; height: 52px; padding-right: 12px; }
.bar-fl { width: calc(var(--w) * 1%); height: 100%; border-radius: 12px; background: #cfccc4; }
.bar-row.hl .bar-fl { background: var(--red); }
.bar-v { font-family: var(--num); font-weight: 800; font-size: 24px; white-space: nowrap; }
.bar-v small { font-family: var(--jp); font-size: 13px; margin-left: 2px; }
.bar-row.hl .bar-v { color: var(--red); }
.sb-bars.ready .bar-row.hl .bar-fl { width: 0; }
.sb-bars.ready .bar-row.hl .bar-v { opacity: 0; transform: translateX(-10px); }
.sb-bars.ready.in .bar-row.hl .bar-fl { width: calc(var(--w) * 1%); transition: width 1.5s cubic-bezier(.16,1,.3,1); }
.sb-bars.ready.in .bar-row.hl .bar-v { opacity: 1; transform: none; transition: opacity .4s 1.1s, transform .4s 1.1s; }

.sb-close { margin-top: 12px; background: var(--ink); color: #fff; border-radius: 24px; padding: clamp(28px, 4vw, 44px); }
.sb-close .lb { font-family: var(--num); font-weight: 700; font-size: 12px; letter-spacing: .16em; color: #ff6b70; margin-bottom: 12px; }
.sb-close h2 { font-weight: 900; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.5; margin-bottom: 12px; }
.sb .sb-close p { color: #fff; font-weight: 900; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.75; }
.sb .sb-close h2 + p { font-weight: 500; font-size: 17px; line-height: 2; color: rgba(255,255,255,.82); }

.svc-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.svc-pn a { border: 1.5px solid var(--line); border-radius: 18px; padding: 18px 22px; display: flex; flex-direction: column; gap: 2px; transition: border-color .2s; }
.svc-pn a:hover { border-color: var(--ink); }
.svc-pn a.nx { text-align: right; grid-column: 2; }
.svc-pn small { font-size: 12px; color: var(--ink-4); font-weight: 700; }
.svc-pn b { font-weight: 900; font-size: 17px; }
.svc-pn span { font-family: var(--num); font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--red); }

@media (max-width: 1100px) {
  .sb-grid.c3 { grid-template-columns: 1fr; }
  .sb-grid.flow .sb-card:not(:last-child)::after, .sb-grid.x .sb-card:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -17px; transform: translateX(-50%) rotate(90deg); }
  .sb-grid.x .sb-card:not(:last-child)::after { transform: translateX(-50%); }
  .sb-statwrap { grid-template-columns: 1fr; }
  .stat { max-width: 320px; }
}
@media (max-width: 900px) {
  .svc-head .wrap { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .svc-nav { display: none; }
}
@media (max-width: 700px) {
  .sb-grid.c2, .sb-cmp { grid-template-columns: 1fr; }
  .sb-grid.c1 .sb-card { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr; gap: 8px; }
  .tl-row { grid-template-columns: 1fr; gap: 8px; }
  .phases { flex-direction: column; }
  .svc-track { height: 112px; }
  .svc-track a { width: auto; flex: 1; padding: 8px 6px; }
  .svc-track a span { font-size: 11.5px; }
  .svc-pn { grid-template-columns: 1fr; }
  .svc-pn a.nx { grid-column: 1; }
}
/* ---- Case page ---- */
.case-head .wrap { display: block; }
.case-hgrid { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 40px; align-items: center; }
.case-client { font-weight: 700; font-size: 15px; color: var(--ink-3); margin-bottom: 10px; }
.case-head h1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.45; }
.case-head h1 .nw { display: inline-block; }
.case-head h1 .r { color: var(--red); }
.case-lead { margin-top: 18px; color: var(--ink-2); font-size: 17px; line-height: 1.95; max-width: 44em; }
.case-ill { width: 100%; height: 220px; object-fit: contain; mix-blend-mode: multiply; }
.case-kpi { margin-top: 32px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; }
.case-kpi > div { background: #fff; border-radius: 18px; padding: 18px 22px; border-top: 3px solid var(--red); }
.case-kpi small { display: block; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.case-kpi b { display: block; font-weight: 900; font-size: 17px; line-height: 1.5; margin-top: 4px; }
.case-kpi b span { font-family: var(--num); font-weight: 800; font-size: 36px; color: var(--red); margin: 0 2px; letter-spacing: -0.01em; }
.case-kpi b span.t { font-family: var(--jp); font-size: 22px; font-weight: 900; }
.case-kpi b s { text-decoration: none; color: var(--ink-3); font-size: 15px; }
.case-kpi b em { font-style: normal; font-family: var(--num); color: var(--ink-4); margin: 0 6px; }
.case-ov { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; border-top: 2px solid var(--ink); }
.case-ov div { padding: 14px 2px; border-bottom: 1px solid var(--line); }
.case-ov small { display: block; font-size: 12px; font-weight: 700; color: var(--ink-4); }
.case-ov b { font-size: 16px; line-height: 1.6; }
.case-flow { margin-top: 22px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; counter-reset: f; }
.case-flow div { background: var(--surface); border-radius: 14px; padding: 14px 12px; font-weight: 700; font-size: 14px; line-height: 1.5; position: relative; }
.case-flow b { display: block; font-family: var(--num); font-weight: 800; font-size: 12px; color: var(--red); margin-bottom: 4px; }
.case-bars { margin: 22px 0; }
.case-sub { margin-top: 22px; font-weight: 700; }
.sb .sb-grid + .case-sub { margin-top: 22px; }
.case-shift { margin-top: 22px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.case-shift div { background: var(--surface); border-radius: 16px; padding: 18px 22px; }
.case-shift div.on { background: #fff; border: 2px solid var(--red); }
.case-shift small { display: block; font-family: var(--num); font-weight: 800; font-size: 11px; letter-spacing: .12em; color: var(--ink-4); }
.case-shift div.on small { color: var(--red); }
.case-shift b { display: block; font-weight: 900; font-size: 19px; }
.case-shift span { font-size: 14px; color: var(--ink-3); }
.case-shift em { font-style: normal; font-family: var(--num); font-weight: 800; font-size: 20px; color: var(--red); }
.case-rel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.case-rel a { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 20px; display: flex; flex-direction: column; transition: border-color .2s; }
.case-rel a:hover { border-color: var(--red); }
.case-rel span { font-family: var(--num); font-weight: 800; font-size: 11px; letter-spacing: .08em; color: var(--red); }
.case-rel b { font-weight: 900; font-size: 16px; }
.case-rel b::after { content: " →"; font-family: var(--num); color: var(--ink-4); }
.sb-bars.ready .bar-row .bar-fl { width: 0; }
.sb-bars.ready.in .bar-row .bar-fl { width: calc(var(--w) * 1%); transition: width 1.5s cubic-bezier(.16,1,.3,1); }
/* home: case card link */
a.cs { color: inherit; transition: box-shadow .2s, transform .2s; }
a.cs:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -24px rgba(17,17,17,.3); }
a.cs .more { grid-column: 1 / -1; margin-top: 14px; font-weight: 700; font-size: 15px; color: var(--red); }
a.cs .more span { font-family: var(--num); margin-left: 6px; display: inline-block; transition: transform .2s; }
a.cs:hover .more span { transform: translateX(4px); }
@media (max-width: 900px) { .case-hgrid { grid-template-columns: 1fr; } .case-ill { height: 160px; max-width: 260px; } .case-kpi { grid-template-columns: 1fr; } .case-flow { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .case-ov { grid-template-columns: 1fr; } .case-flow { grid-template-columns: repeat(2, 1fr); } .case-shift { grid-template-columns: 1fr; } .case-shift em { transform: rotate(90deg); justify-self: center; } .case-rel { grid-template-columns: 1fr; } }
/* MEGA-END */
