/* =====================================================================
   HireRoo Skill Interview — Landing Page
   Light theme tokens from HireRoo design system; warm, business tone.
   ===================================================================== */

/* cyrillic */
/* vietnamese */
/* latin-ext */
/* latin */
/* cyrillic */
/* vietnamese */
/* latin-ext */
/* latin */
/* cyrillic */
/* vietnamese */
/* latin-ext */
/* latin */
/* cyrillic */
/* vietnamese */
/* latin-ext */
/* latin */
:root.hr-light {
  --hr-primary: #EF6972;
  --hr-primary-dark: #A7494F;
  --hr-primary-light: #F2878E;
  --hr-secondary: #4B51C1;
  --hr-secondary-dark: #3D3EAA;
  --hr-secondary-light: #656CCB;
  --hr-fg-primary:   #1A1D23;
  --hr-fg-secondary: #5C6370;
  --hr-fg-muted:     #8A8F99;
  --hr-bg-default: #F7F7F9;
  --hr-bg-paper:   #FFFFFF;
  --hr-bg-tint:    #FEF4F4;
  --hr-bg-tint-2:  #EFF0FB;
  --hr-divider:    #E5E5EA;
  --hr-divider-weak: #F0F0F2;
  --hr-action-hover: rgba(0,0,0,0.05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
  color: var(--hr-fg-primary);
  background: var(--hr-bg-paper);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.7;
}

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

/* ----------  Container ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----------  Section ---------- */
section { padding: 96px 0; position: relative; }
section.sec-tight { padding: 56px 0; }

.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 16px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--hr-primary);
  text-transform: uppercase;
  background: rgba(239,105,114,0.08);
  border: 1px solid rgba(239,105,114,0.22);
  border-radius: 9999px;
  margin-bottom: 24px;
}
.sec-eyebrow svg { color: var(--hr-primary); }

.sec-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--hr-fg-primary);
}
.sec-title .accent { color: var(--hr-primary); }
.sec-title .indigo { color: var(--hr-secondary); }

.sec-lede {
  font-size: 17px;
  color: var(--hr-fg-secondary);
  line-height: 1.85;
  max-width: 720px;
}

/* ----------  Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background-color .15s ease, transform .12s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--hr-primary);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(239,105,114,0.55);
}
.btn-primary:hover { background: var(--hr-primary-dark); }

.btn-secondary {
  background: #fff;
  color: var(--hr-fg-primary);
  border-color: #D9D9DE;
}
.btn-secondary:hover { background: #FAFAFB; border-color: #C0C0C7; }

.btn-ghost {
  background: transparent;
  color: var(--hr-fg-primary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--hr-action-hover); }

.btn-sm { height: 40px; padding: 0 18px; font-size: 13px; border-radius: 6px; }

/* ----------  Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--hr-divider-weak);
}
.site-header .inner {
  height: 64px;
  display: flex; align-items: center; gap: 24px;
}
.site-header .brand { display: flex; align-items: center; gap: 10px; }
.site-header .brand img { height: 24px; }
.site-header .product-name {
  font-size: 13px; font-weight: 700; color: var(--hr-fg-secondary);
  padding-left: 12px; border-left: 1px solid var(--hr-divider);
  letter-spacing: 0.02em;
}
.site-header nav { display: flex; gap: 28px; margin-left: 24px; }
.site-header nav a {
  font-size: 13.5px; font-weight: 500; color: var(--hr-fg-secondary);
}
.site-header nav a:hover { color: var(--hr-fg-primary); }
.site-header .spacer { flex: 1; }
.site-header .header-actions { display: flex; gap: 10px; align-items: center; }

.sp-br { display: none; }

@media (max-width: 880px) {
  .site-header nav { display: none; }
  .site-header .product-name { display: none; }
  .site-header .login-link { white-space: nowrap; }
  .site-header .header-actions { gap: 6px; }
}

@media (max-width: 480px) {
  .site-header .login-link { padding: 0 8px; font-size: 12px; }
  .site-header .login-link::before { margin-right: 5px; }
  .site-header .btn-ghost { display: none; }
  .site-header .btn-sm { padding: 0 12px; }
}

/* ----------  Hero ---------- */
.hero {
  padding: 64px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 92% 8%, rgba(75,81,193,0.05), transparent 60%),
    radial-gradient(800px 480px at 8% 100%, rgba(239,105,114,0.06), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 14px;
  font-size: 12px; font-weight: 700;
  border-radius: 9999px;
  background: var(--hr-bg-tint);
  color: var(--hr-primary-dark);
  border: 1px solid #F8DDDF;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hr-primary); display: inline-block;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -0.018em;
  margin: 0 0 24px;
  color: var(--hr-fg-primary);
}
.hero h1 .accent { color: var(--hr-primary); }
.hero h1 .underline {
  background: linear-gradient(transparent 70%, rgba(239,105,114,0.22) 70%);
  padding: 0 2px;
}
.hero .sub {
  font-size: 18px;
  color: var(--hr-fg-secondary);
  line-height: 1.85;
  margin: 0 0 32px;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-features { display: flex; flex-direction: column; gap: 10px; }
.hero-feature {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--hr-fg-primary);
  font-weight: 500;
}
.hero-feature .check {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(75,81,193,0.10);
  color: var(--hr-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

/* Hero video card */
.hero-video {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0f1115;
  box-shadow:
    0 30px 80px -30px rgba(20,22,40,0.35),
    0 12px 32px -12px rgba(20,22,40,0.20);
  aspect-ratio: 16 / 10;
  cursor: pointer;
}
.hero-video video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-video .video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.18) 100%);
  transition: background-color .2s;
  pointer-events: none;
}
.hero-video:hover .video-overlay { background-color: rgba(0,0,0,0.10); }
.hero-video .expand-btn {
  position: absolute;
  right: 14px; bottom: 14px;
  height: 36px; padding: 0 12px;
  border-radius: 9999px;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255,255,255,0.18);
  pointer-events: none;
  transition: background-color .15s, transform .15s;
}
.hero-video:hover .expand-btn {
  background: rgba(0,0,0,0.78);
  transform: scale(1.03);
}


@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 36px; }
  .hero .sub { font-size: 16px; }
}

/* ----------  Video Fullscreen Modal ---------- */
.video-modal {
  position: fixed; inset: 0;
  background: rgba(8,9,16,0.92);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  animation: fadeIn .18s ease-out;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.video-modal .video-wrap {
  width: 100%; max-width: 1280px; aspect-ratio: 16 / 9;
  background: #000; border-radius: 12px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}
.video-modal video { width: 100%; height: 100%; display: block; }
.video-modal .close-btn {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .15s;
}
.video-modal .close-btn:hover { background: rgba(255,255,255,0.18); }


/* ----------  Logo Marquee ---------- */
.logo-marquee {
  background: #fff;
  padding: 48px 0;
  overflow: hidden;
  border-top: 1px solid var(--hr-divider-weak);
  border-bottom: 1px solid var(--hr-divider-weak);
}
.logo-marquee .caption {
  text-align: center;
  font-size: 13px;
  color: var(--hr-fg-secondary);
  margin-bottom: 28px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-mask {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee-track .logo-item {
  height: 56px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  padding: 0 8px;
  opacity: 0.85;
  transition: opacity .15s, filter .15s;
}
.marquee-track .logo-item:hover { opacity: 1; }
.marquee-track .logo-item img {
  height: 100%; width: auto; max-width: 180px;
  object-fit: contain;
  transition: transform .25s;
}
.marquee-track .logo-item:hover img { transform: scale(1.04); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----------  Issue Section ---------- */
.issue {
  background: linear-gradient(180deg, #FAFAFC 0%, #FFFFFF 100%);
}
.issue-head { text-align: center; margin-bottom: 56px; display: flex; flex-direction: column; align-items: center; }
.issue-head .sec-title { display: block; }
.issue-head .sec-lede { margin: 16px auto 0; }

.issue-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.issue-card {
  background: #fff;
  border: 1px solid var(--hr-divider);
  border-radius: 16px;
  padding: 32px;
  display: flex; flex-direction: column;
}
.issue-card .label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(239,105,114,0.10);
  color: var(--hr-primary-dark);
  height: 26px; padding: 0 12px;
  border-radius: 9999px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  align-self: flex-start;
  margin-bottom: 16px;
}
.issue-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.45;
}
.issue-card p {
  color: var(--hr-fg-secondary);
  margin: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.85;
}
.issue-card .illust {
  margin-top: auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--hr-divider-weak);
  background: #FAFAFB;
}
@media (max-width: 860px) {
  .issue-cards { grid-template-columns: 1fr; }
}

/* Mock editor illust */
.mock-editor {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.55;
}
.mock-editor .titlebar {
  height: 32px;
  background: #F0F0F2;
  display: flex; align-items: center; padding: 0 12px;
  gap: 6px; border-bottom: 1px solid var(--hr-divider);
}
.mock-editor .dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-editor .dot.r { background: #FF5F57; }
.mock-editor .dot.y { background: #FEBC2E; }
.mock-editor .dot.g { background: #28C840; }
.mock-editor .tab {
  margin-left: 12px; padding: 0 10px; background: #fff;
  border-radius: 4px 4px 0 0; font-size: 10px;
  color: #5C6370;
  display: inline-flex; align-items: center; height: 22px;
}
.mock-editor .body { padding: 14px 16px; color: #1A1D23; background: #fff; }
.mock-editor .ln { color: #B8BBC2; display: inline-block; width: 22px; user-select: none; }
.mock-editor .kw { color: var(--hr-secondary); font-weight: 500; }
.mock-editor .str { color: #2E7D32; }
.mock-editor .com { color: #8A8F99; font-style: italic; }
.mock-editor .fn { color: #B45309; }
.mock-editor .highlight { background: rgba(239,105,114,0.10); border-radius: 3px; padding: 1px 2px; }

.cheat-overlay {
  position: relative;
}
.cheat-overlay::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,23,68,0.06), transparent 60%);
  pointer-events: none;
}
.cheat-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: #FF1744;
  color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  z-index: 2;
}
.copy-bubble {
  position: absolute;
  right: 18px; bottom: 16px;
  background: #fff;
  border: 1px solid #FFCDD2;
  box-shadow: 0 6px 20px rgba(255,23,68,0.18);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--hr-fg-primary);
  display: inline-flex; align-items: center; gap: 6px;
}
.copy-bubble .micro {
  font-size: 9px; color: var(--hr-fg-muted); letter-spacing: 0.04em;
}

/* AI agent chat mock */
.mock-chat {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  padding: 14px;
  background: #FAFAFB;
}
.chat-row {
  display: flex; gap: 8px; margin-bottom: 10px; align-items: flex-start;
}
.chat-row.user { justify-content: flex-end; }
.chat-row .ava {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.chat-row.user .ava { background: var(--hr-primary); }
.chat-row.ai .ava { background: var(--hr-secondary); }
.chat-bubble {
  background: #fff;
  border: 1px solid var(--hr-divider-weak);
  border-radius: 8px;
  padding: 8px 10px;
  max-width: 78%;
  line-height: 1.55;
  font-size: 11.5px;
}
.chat-row.user .chat-bubble { background: #FEF4F4; border-color: #FBE0E2; }
.chat-bubble .typing-dots {
  display: inline-flex; gap: 3px; padding: 4px 0;
}
.chat-bubble .typing-dots span {
  width: 5px; height: 5px; border-radius: 50%; background: var(--hr-fg-muted);
  animation: blink 1.4s infinite ease-in-out;
}
.chat-bubble .typing-dots span:nth-child(2) { animation-delay: .2s; }
.chat-bubble .typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.2 } 40% { opacity: 1 } }

/* ----------  Solution / BEFORE-AFTER table ---------- */
.solution {
  background: #fff;
}
.solution-head { text-align: center; margin-bottom: 48px; display: flex; flex-direction: column; align-items: center; }
.solution-headline {
  font-size: 18px; color: var(--hr-fg-secondary);
  max-width: 760px; margin: 16px auto 0;
}

.ba-table {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  border: 1px solid var(--hr-divider);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  margin-top: 40px;
}
.ba-cell {
  padding: 28px 28px;
  border-bottom: 1px solid var(--hr-divider-weak);
  border-right: 1px solid var(--hr-divider-weak);
  display: flex; flex-direction: column; gap: 8px;
}
.ba-cell:nth-child(3n) { border-right: none; }
.ba-table > .ba-cell:nth-last-child(-n+3) { border-bottom: none; }
.ba-row-label {
  background: #FAFAFB;
  font-size: 13px;
  color: var(--hr-fg-secondary);
  font-weight: 700;
  letter-spacing: 0.02em;
  justify-content: center;
}
.ba-before {
  background: #FAFAFB;
  color: var(--hr-fg-secondary);
}
.ba-after {
  background: linear-gradient(180deg, #FEF4F4 0%, #FFFFFF 100%);
  position: relative;
}
.ba-after::before {
  content: ""; position: absolute; inset: 0;
  border-left: 2px solid var(--hr-primary);
  pointer-events: none;
}
.ba-header {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 22px 28px;
}
.ba-header.before-h {
  background: #F0F0F2;
  color: var(--hr-fg-secondary);
}
.ba-header.after-h {
  background: var(--hr-primary);
  color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.ba-header .badge {
  font-size: 10px; padding: 2px 8px;
  background: rgba(255,255,255,0.22);
  border-radius: 9999px;
}
.ba-main {
  font-size: 18px; font-weight: 700;
  color: var(--hr-fg-primary);
  line-height: 1.5;
}
.ba-before .ba-main { color: var(--hr-fg-secondary); }
.ba-sub {
  font-size: 13px;
  color: var(--hr-fg-muted);
  line-height: 1.7;
}
.ba-cell ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--hr-fg-secondary); }
.ba-cell ul li { line-height: 1.7; }
.ba-cell .micro-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ba-cell .micro-pill {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 10px;
  background: #fff;
  border: 1px solid var(--hr-divider);
  font-size: 11.5px; font-weight: 500;
  border-radius: 9999px;
  color: var(--hr-fg-primary);
}
.ba-after .micro-pill {
  border-color: rgba(239,105,114,0.35);
  background: #fff;
  color: var(--hr-primary-dark);
}

@media (max-width: 860px) {
  .ba-table { grid-template-columns: 1fr; }
  .ba-cell { border-right: none; }
}

/* ----------  How ---------- */
.how { background: var(--hr-bg-default); }
.how-head { text-align: center; margin-bottom: 56px; display: flex; flex-direction: column; align-items: center; }
.how-head .sec-title { font-size: 36px; }

.how-list { display: flex; flex-direction: column; gap: 24px; }
.how-item {
  background: #fff;
  border: 1px solid var(--hr-divider);
  border-radius: 20px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.how-item:nth-child(even) .how-text { order: 2; }
.how-item:nth-child(even) .how-visual { order: 1; }

.how-item .step {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  color: var(--hr-secondary);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.how-item .step .num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--hr-secondary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.how-item h3 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.how-item p {
  font-size: 15px;
  color: var(--hr-fg-secondary);
  line-height: 1.9;
  margin: 0;
}
.how-item .feat-list {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: flex; flex-direction: column; gap: 8px;
}
.how-item .feat-list li {
  display: flex; gap: 8px;
  font-size: 13.5px; color: var(--hr-fg-primary);
}
.how-item .feat-list li .b {
  color: var(--hr-primary); font-weight: 700; margin-top: 2px;
}

.how-visual {
  background: #FAFAFB;
  border: 1px solid var(--hr-divider-weak);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}

@media (max-width: 980px) {
  .how-item { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .how-item:nth-child(even) .how-text { order: 1; }
  .how-item:nth-child(even) .how-visual { order: 2; }
}

/* ----------  Benefit ---------- */
.benefit {
  background:
    radial-gradient(800px 420px at 20% 20%, rgba(75,81,193,0.05), transparent 60%),
    radial-gradient(700px 420px at 90% 90%, rgba(239,105,114,0.06), transparent 60%),
    #fff;
}
.benefit-head { text-align: center; margin-bottom: 56px; display: flex; flex-direction: column; align-items: center; }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card {
  background: #fff;
  border: 1px solid var(--hr-divider);
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.benefit-card .topline {
  font-size: 13px; font-weight: 700;
  color: var(--hr-fg-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.benefit-card .stat {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--hr-primary);
  margin: 0 0 4px;
  font-feature-settings: "tnum";
}
.benefit-card .stat .unit {
  font-size: 28px; font-weight: 700; margin-left: 2px;
}
.benefit-card .stat-sub {
  font-size: 14px;
  color: var(--hr-fg-primary);
  font-weight: 700;
  margin-bottom: 12px;
}
.benefit-card .stat-source {
  font-size: 12px;
  color: var(--hr-fg-muted);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--hr-divider-weak);
}
.benefit-card .stat-source a {
  color: var(--hr-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.benefit-card .stat-extra {
  font-size: 12px; color: var(--hr-fg-secondary);
  margin-top: 6px;
  display: flex; align-items: center; gap: 6px;
}
.benefit-card .stat-extra .pill {
  background: #FEF4F4;
  color: var(--hr-primary-dark);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
}

@media (max-width: 880px) {
  .benefit-grid { grid-template-columns: 1fr; }
}

/* === CUSTOMER STORIES ===*/
.cases {
  padding: 120px 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFC 100%);
  border-top: 1px solid var(--hr-divider-weak);
}
.cases-head {
  text-align: center;
  margin-bottom: 80px;
}
.cases-head .section-lead {
  margin: 0 auto;
}

.cases-stack {
  display: flex; flex-direction: column;
  gap: 56px;
}
.case-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--hr-divider);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
.case-row:hover {
  box-shadow: 0 32px 80px -32px rgba(40,30,50,0.22);
  transform: translateY(-2px);
}
.case-row-reverse {
  grid-template-columns: 1fr 1.05fr;
}
.case-row-reverse .case-banner { order: 2; }
.case-row-reverse .case-content { order: 1; }

.case-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 15 / 8;
  background: var(--hr-bg-paper-4);
}
.case-banner img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.case-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(13,13,18,0.78);
  color: #fff;
  font-family: var(--hr-font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.case-row[data-accent="indigo"] .case-tag { background: rgba(75,81,193,0.85); }
.case-row[data-accent="coral"] .case-tag { background: rgba(239,105,114,0.9); }

.case-content {
  display: flex; flex-direction: column;
  gap: 22px;
  padding: 8px 12px;
}
.case-head {
  display: flex; flex-direction: column; gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hr-divider-weak);
}
.case-logo {
  font-family: var(--hr-font-mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--hr-fg-primary);
  line-height: 1.1;
}
.case-row[data-accent="coral"] .case-logo { color: var(--hr-primary-dark); }
.case-row[data-accent="indigo"] .case-logo { color: var(--hr-secondary-dark); }
.case-meta {
  font-size: 13px;
  color: var(--hr-fg-secondary);
  font-weight: 500;
}
.case-tagline {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--hr-fg-primary);
  margin: 0;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.case-tagline strong {
  color: var(--hr-primary);
  font-size: 1.15em;
  font-family: var(--hr-font-mono);
  font-weight: 700;
}
.case-row[data-accent="indigo"] .case-tagline strong { color: var(--hr-secondary); }

.case-quote {
  font-size: 14px;
  line-height: 1.95;
  color: var(--hr-fg-secondary);
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid var(--hr-divider);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.case-row[data-accent="coral"] .case-quote { border-left-color: var(--hr-primary-light); }
.case-row[data-accent="indigo"] .case-quote { border-left-color: var(--hr-secondary-light); }
.case-quote .cite {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--hr-fg-disabled);
  font-weight: 500;
}

.case-points {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13px;
}
.case-points li {
  display: flex; gap: 14px; align-items: flex-start;
  line-height: 1.5;
}
.case-points .k {
  flex-shrink: 0;
  width: 44px;
  font-weight: 700;
  color: var(--hr-fg-disabled);
  letter-spacing: 0.04em;
  font-size: 11px;
  padding-top: 2px;
}
.case-points .v {
  color: var(--hr-fg-secondary);
}

.case-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 20px;
  background: rgba(239, 105, 114, 0.06);
  border-radius: 14px;
}
.case-row[data-accent="indigo"] .case-stats { background: rgba(75, 81, 193, 0.06); }
.case-stat {
  display: flex; flex-direction: column; gap: 6px;
  text-align: left;
}
.case-stat .num {
  font-family: var(--hr-font-sans);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: var(--hr-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.case-row[data-accent="indigo"] .case-stat .num { color: var(--hr-secondary); }
.case-stat .num small {
  font-size: 0.45em;
  color: var(--hr-fg-primary);
  margin-left: 2px;
  font-weight: 700;
}
.case-stat .lbl {
  font-size: 11px;
  color: var(--hr-fg-secondary);
  font-weight: 500;
  line-height: 1.4;
}

.case-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center; gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--hr-secondary);
  margin-top: 4px;
}
.case-row[data-accent="coral"] .case-link { color: var(--hr-primary); }
.case-link:hover .arrow { transform: translateX(3px); }
.case-link .arrow { transition: transform .2s; }

.cases-foot {
  text-align: center;
  margin-top: 64px;
}

@media (max-width: 980px) {
  .cases { padding: 80px 0; }
  .cases-head { margin-bottom: 56px; }
  .cases-stack { gap: 40px; }
  .case-row,
  .case-row-reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 20px;
  }
  .case-row-reverse .case-banner { order: 0; }
  .case-row-reverse .case-content { order: 0; }
  .case-content { padding: 0 4px 8px; gap: 18px; }
  .case-tagline { font-size: 20px; }
  .case-stat .num { font-size: 34px; }
}

/* ----------  CTA inline (form on page) ---------- */
.cta-inline {
  padding: 96px 0;
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(75,81,193,0.06), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(239,105,114,0.06), transparent 60%),
    #fff;
}
.cta-wrap {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 64px;
  align-items: center;
}
.cta-left h2 {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.018em;
  margin: 0 0 20px;
  color: var(--hr-fg-primary);
}
.cta-left h2 .accent { color: var(--hr-primary); }
.cta-left .lead {
  font-size: 16px;
  color: var(--hr-fg-secondary);
  line-height: 1.85;
  margin: 0 0 24px;
}
.cta-bullets {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.cta-bullets li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--hr-fg-primary);
}
.cta-bullets li .b {
  flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(75,81,193,0.10);
  color: var(--hr-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.cta-secondary a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--hr-secondary);
  font-weight: 700;
}
.cta-secondary a:hover { color: var(--hr-secondary-dark); }

.cta-card {
  background: #fff;
  border: 1px solid var(--hr-divider);
  border-radius: 16px;
  box-shadow: 0 30px 80px -30px rgba(20,22,40,0.18), 0 12px 32px -12px rgba(20,22,40,0.08);
  overflow: hidden;
}
.cta-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #FAFAFB; border-bottom: 1px solid var(--hr-divider);
}
.cta-tabs .tab {
  background: transparent;
  border: none;
  padding: 18px 12px;
  font-size: 14px; font-weight: 700;
  color: var(--hr-fg-secondary);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-bottom: 3px solid transparent;
  transition: color .15s, background-color .15s, border-color .15s;
}
.cta-tabs .tab:hover { color: var(--hr-fg-primary); background: rgba(0,0,0,0.02); }
.cta-tabs .tab.active {
  background: #fff;
  color: var(--hr-primary);
  border-bottom-color: var(--hr-primary);
}
.cta-tab-body {
  padding: 28px 28px 24px;
}
.cta-tab-body .form-heading h3 {
  font-size: 18px; font-weight: 700; margin: 0 0 4px;
  color: var(--hr-fg-primary);
}
.cta-tab-body .form-heading p {
  font-size: 13px; color: var(--hr-fg-secondary); margin: 0 0 18px;
  line-height: 1.65;
}

@media (max-width: 1080px) {
  .cta-wrap { grid-template-columns: 1fr; gap: 40px; }
  .cta-right { max-width: 560px; margin: 0 auto; width: 100%; }
}

@media (max-width: 600px) {
  /* box-shadow が右端をはみ出して横スクロールを生む問題を抑制 */
  .cta-inline { padding: 48px 0; overflow-x: hidden; }
  .cta-card {
    box-shadow: 0 4px 20px rgba(20,22,40,0.10);
    margin: 0 4px;
  }
  /* フォームの表示調整 */
  .cta-tab-body { padding: 20px 16px 16px; }
  .hb-fallback .row-2 { grid-template-columns: 1fr; }
  /* 見出しをモバイル向けサイズに */
  .cta-left h2 { font-size: 28px; }
  /* SP キーメッセージ改行制御 */
  .sp-br { display: inline; }
  .hero h1 { font-size: 30px; }
  .sec-title { font-size: 26px; }
  .how-head .sec-title { font-size: 26px; }
}

/* ----------  Footer ---------- */
footer.site-footer {
  background: #1A1D23;
  color: rgba(255,255,255,0.78);
  padding: 48px 0 28px;
  font-size: 13px;
}
footer.site-footer .row {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
footer.site-footer img { height: 22px; }
footer.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site-footer nav a { color: rgba(255,255,255,0.78); }
footer.site-footer nav a:hover { color: #fff; }
footer.site-footer .copy {
  margin-top: 18px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap;
}
footer.site-footer .copy .right { display: flex; gap: 14px; }
footer.site-footer .copy .right a { color: inherit; }

/* ----------  HubSpot Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(8,9,16,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  animation: fadeIn .18s ease-out;
  overflow-y: auto;
}
.modal-card {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 560px;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 30px 80px rgba(0,0,0,0.30);
  animation: modalIn .22s cubic-bezier(.2,.7,.2,1);
  margin: auto;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.modal-card .modal-hd {
  padding: 28px 32px 16px;
  border-bottom: 1px solid var(--hr-divider-weak);
  position: relative;
}
.modal-card .modal-hd h3 {
  font-size: 22px; font-weight: 700; margin: 0 0 4px;
}
.modal-card .modal-hd p {
  margin: 0; color: var(--hr-fg-secondary); font-size: 13px;
}
.modal-card .modal-bd {
  padding: 24px 32px 28px;
  max-height: 70vh;
  overflow-y: auto;
}
.modal-card .modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; border: none;
  color: var(--hr-fg-muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.modal-card .modal-close:hover { background: var(--hr-action-hover); color: var(--hr-fg-primary); }

/* Form (HubSpot embed + mocked fallback) */
.hb-fallback { display: flex; flex-direction: column; gap: 14px; }
.hb-fallback .field {
  display: flex; flex-direction: column; gap: 6px;
  color: var(--hr-fg-primary);
}
.hb-fallback .field-label {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12.5px; font-weight: 500;
  line-height: 1.4;
}
.hb-fallback .field-label .lbl { display: inline; }
.hb-fallback .field-label .req { color: var(--hr-primary); margin-left: 2px; }
.hb-fallback .field-label .field-hint {
  font-size: 11px; font-weight: 500;
  color: var(--hr-primary);
  background: rgba(239,105,114,0.10);
  padding: 1px 7px; border-radius: 9999px;
  letter-spacing: 0.02em;
}
.hb-fallback .field-err {
  font-size: 11.5px; color: var(--hr-error);
  line-height: 1.5;
}
.hb-fallback .field.has-error input,
.hb-fallback .field.has-error select,
.hb-fallback .field.has-error textarea {
  border-color: var(--hr-error);
  box-shadow: 0 0 0 3px rgba(255,23,68,0.10);
}
.hb-fallback input, .hb-fallback select, .hb-fallback textarea {
  height: 42px; padding: 0 12px;
  border: 1px solid var(--hr-divider);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--hr-fg-primary);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.hb-fallback textarea {
  height: auto; min-height: 90px;
  padding: 10px 12px;
  line-height: 1.6;
  resize: vertical;
}
.hb-fallback select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%235C6370' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.hb-fallback input:focus, .hb-fallback select:focus, .hb-fallback textarea:focus {
  border-color: var(--hr-primary);
  box-shadow: 0 0 0 3px rgba(239,105,114,0.16);
}
.hb-fallback input[type="checkbox"] {
  width: 16px; height: 16px;
  height: 16px;
  accent-color: var(--hr-primary);
}
.hb-fallback .submit-btn[disabled] {
  opacity: 0.6; cursor: not-allowed;
}
.hr-form-error {
  font-size: 12.5px;
  color: var(--hr-error);
  background: rgba(255,23,68,0.06);
  border: 1px solid rgba(255,23,68,0.20);
  padding: 8px 10px;
  border-radius: 6px;
  line-height: 1.55;
}
.hb-fallback .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hb-fallback .agree { font-size: 12px; color: var(--hr-fg-secondary); display: flex; gap: 8px; align-items: flex-start; line-height: 1.6; }
.hb-fallback .submit-btn { margin-top: 6px; height: 48px; }
.hb-success {
  text-align: center; padding: 12px 0 8px;
}
.hb-success .icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(46,125,50,0.12);
  color: #2E7D32;
  display: flex; align-items: center; justify-content: center;
}
.hb-success h4 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.hb-success p { font-size: 13px; color: var(--hr-fg-secondary); }
.hb-note {
  margin-top: 10px;
  background: #F4F5FA;
  border: 1px dashed #C7CADC;
  color: var(--hr-secondary);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.6;
}

/* ----------  Misc ---------- */
.text-center { text-align: center; }
.no-scroll { overflow: hidden; }

.site-header .login-link {
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 12px;
  font-size: 13px; font-weight: 600;
  color: var(--hr-fg-secondary);
  border-radius: 6px;
  transition: color .15s, background-color .15s;
  letter-spacing: 0.02em;
  position: relative;
}
.site-header .login-link::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hr-primary);
  margin-right: 8px;
  box-shadow: 0 0 0 2px rgba(239,105,114,0.18);
}
.site-header .login-link:hover {
  color: var(--hr-primary-dark);
  background: rgba(239,105,114,0.06);
}

/* HubSpot native embed form styles */
.hs-form-wrap { padding: 16px 0 8px; }
.hs-form-wrap .hs-form fieldset { max-width: 100% !important; }
.hs-form-wrap .hs-form .hs-input,
.hs-form-wrap .hs-form input[type="text"],
.hs-form-wrap .hs-form input[type="email"],
.hs-form-wrap .hs-form input[type="tel"],
.hs-form-wrap .hs-form select {
  width: 100% !important; box-sizing: border-box;
  padding: 10px 12px; border: 1px solid #d1d5db;
  border-radius: 6px; font-size: 14px; color: #111827;
  background: #fff; appearance: auto;
}
.hs-form-wrap .hs-form .hs-input:focus,
.hs-form-wrap .hs-form input:focus,
.hs-form-wrap .hs-form select:focus {
  outline: 2px solid var(--hr-primary, #ef6972); border-color: transparent;
}
.hs-form-wrap .hs-form label { font-size: 13px; font-weight: 600; color: #374151; display: block; margin-bottom: 4px; }
.hs-form-wrap .hs-form .hs-form-field { margin-bottom: 12px; }
.hs-form-wrap .hs-form .hs-error-msgs { margin: 4px 0 0; padding: 0; list-style: none; }
.hs-form-wrap .hs-form .hs-error-msgs label { font-size: 12px; color: #ef4444; font-weight: 400; }
.hs-form-wrap .hs-form .hs-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 20px;
  background: var(--hr-primary, #ef6972); color: #fff;
  border: none; border-radius: 8px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.hs-form-wrap .hs-form .hs-button:hover { background: var(--hr-primary-dark, #d94f59); }
.hs-form-wrap .hs-form .legal-consent-container { font-size: 12px; color: #6b7280; margin-bottom: 12px; }
.hs-form-wrap .hs-form .hs-richtext { font-size: 12px; color: #6b7280; margin-bottom: 8px; }
.hs-form-wrap .hs-form .submitted-message { padding: 24px; text-align: center; color: #111827; }
