/* ==========================================================
   人事動画パートナーズ サブページ用共通スタイル
   サブページ専用：トップページからは別管理
   ========================================================== */

:root {
  --bg: #FAFAF7;
  --bg-2: #FFFFFF;
  --bg-3: #F2EFE9;
  --bg-navy: #1F2A44;
  --bg-navy-2: #2A3654;
  --text: #1A1A1A;
  --text-dim: #555;
  --text-mute: #888;
  --line: #E4DFD5;
  --line-2: #D5CFC4;
  --accent: #D94E3D;
  --accent-soft: #F4E4DF;
  --gold: #B89968;
  --navy: #1F2A44;
  --serif-jp: 'Noto Serif JP', 'Yu Mincho', serif;
  --sans-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --serif-en: 'DM Serif Display', Georgia, serif;
  --shadow-sm: 0 2px 8px rgba(31, 42, 68, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 42, 68, 0.10);
  --shadow-lg: 0 16px 48px rgba(31, 42, 68, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans-jp);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ============ Navigation ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: var(--serif-jp);
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-mark {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  padding: 12px 22px;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(217, 78, 61, 0.25);
}
.nav-cta:hover {
  background: #c44535;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 78, 61, 0.35);
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { padding: 14px 20px; }
  .nav-logo { font-size: 15px; }
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  padding: 100px 0 0;
  background: var(--bg);
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 0;
  font-size: 13px;
  color: var(--text-mute);
}
.breadcrumb-inner a { color: var(--text-dim); }
.breadcrumb-inner a:hover { color: var(--accent); }
.breadcrumb-inner .sep { margin: 0 10px; color: var(--line-2); }
.breadcrumb-inner .current { color: var(--accent); font-weight: 600; }

/* ============ Hero (Sub) ============ */
.hero-sub {
  padding: 50px 0 80px;
  position: relative;
}
.hero-sub::before {
  content: '';
  position: absolute;
  top: 0; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(217, 78, 61, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero-sub-inner {
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}
.hero-tag::before { content: '●'; font-size: 8px; }
.hero-sub h1 {
  font-family: var(--serif-jp);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin-bottom: 28px;
  max-width: 900px;
}
.hero-sub h1 .accent { color: var(--accent); }
.hero-sub h1 .hilite {
  background: linear-gradient(transparent 65%, rgba(217, 78, 61, 0.18) 65%);
  padding: 0 4px;
}
.hero-sub-lead {
  font-size: 17px;
  line-height: 2;
  color: var(--text-dim);
  max-width: 760px;
  margin-bottom: 36px;
}
.hero-key-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 920px;
  margin-top: 40px;
}
.hero-stat {
  background: white;
  padding: 24px 28px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent);
}
.hero-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.hero-stat-num {
  font-family: var(--serif-en);
  font-size: 36px;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 6px;
}
.hero-stat-num .small {
  font-family: var(--sans-jp);
  font-size: 14px;
  color: var(--text-dim);
  margin-left: 4px;
  font-weight: 500;
}
.hero-stat-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}
@media (max-width: 900px) {
  .hero-key-stats { grid-template-columns: 1fr; }
}

/* ============ Section base ============ */
section { padding: 90px 0; position: relative; }
.sec-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 100px;
  margin-bottom: 20px;
}
.sec-title {
  font-family: var(--serif-jp);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
.sec-title .accent { color: var(--accent); }
.sec-lead {
  font-size: 16px;
  line-height: 2;
  color: var(--text-dim);
  max-width: 720px;
}

/* ============ Problem two-col ============ */
.problem-section { background: var(--bg-3); }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
.col-card {
  padding: 36px 32px;
  border-radius: 16px;
  position: relative;
}
.col-card.bad {
  background: white;
  border: 2px dashed var(--line-2);
}
.col-card.good {
  background: linear-gradient(135deg, var(--navy) 0%, var(--bg-navy-2) 100%);
  color: white;
  box-shadow: 0 16px 40px rgba(31, 42, 68, 0.25);
}
.col-label {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.col-card.bad .col-label { background: var(--bg-3); color: var(--text-mute); }
.col-card.good .col-label { background: rgba(217, 78, 61, 0.2); color: #FCC4BC; }
.col-title {
  font-family: var(--serif-jp);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.5;
}
.col-card.bad .col-title { color: var(--text-mute); }
.col-list { list-style: none; display: grid; gap: 10px; }
.col-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
}
.col-card.bad .col-list li { color: var(--text-mute); }
.col-card.good .col-list li { color: rgba(255, 255, 255, 0.9); }
.col-card.bad .col-list li::before {
  content: '✕'; color: var(--line-2); font-weight: 700; flex-shrink: 0;
}
.col-card.good .col-list li::before {
  content: '✓'; color: #FCC4BC; font-weight: 700; flex-shrink: 0;
}
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

/* ============ Phases (Timeline) ============ */
.phases-section { background: white; }
.phases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
  position: relative;
}
.phases-grid::before {
  content: '';
  position: absolute;
  top: 50px; left: 5%; right: 5%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.phase {
  position: relative;
  z-index: 1;
  text-align: center;
}
.phase-dot {
  width: 24px;
  height: 24px;
  background: var(--accent);
  border: 4px solid white;
  border-radius: 50%;
  margin: 38px auto 16px;
  box-shadow: var(--shadow-sm);
}
.phase.gold .phase-dot { background: var(--gold); }
.phase-label {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.phase-title {
  font-family: var(--serif-jp);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 6px;
}
.phase-risk {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.phase-pct {
  font-family: var(--serif-en);
  font-size: 30px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}
.phase.gold .phase-pct { color: var(--gold); }
.phase-cap {
  font-size: 11px;
  color: var(--text-mute);
}
@media (max-width: 800px) {
  .phases-grid { grid-template-columns: repeat(2, 1fr); }
  .phases-grid::before { display: none; }
}

/* ============ Devices/Levers ============ */
.devices-section { background: var(--bg-3); }
.devices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.device {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
}
.device-body { padding: 32px 30px; flex: 1; display: flex; flex-direction: column; }
.device-num {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  border-radius: 100px;
  margin-bottom: 14px;
}
.device-timing {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.device-title {
  font-family: var(--serif-jp);
  font-weight: 600;
  font-size: 20px;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 18px;
}
.device-desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-dim);
  margin-bottom: 22px;
  flex: 1;
}
.device-meta {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: grid;
  gap: 10px;
}
.device-meta-row {
  font-size: 12px;
  line-height: 1.6;
}
.device-meta-row .lbl {
  display: block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.device-meta-row .val { color: var(--text); }
.device-effect {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  margin-top: 14px;
}
@media (max-width: 900px) { .devices-grid { grid-template-columns: 1fr; } }

/* ============ ROI ============ */
.roi-section { background: white; }
.roi-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr 60px 1fr;
  gap: 14px;
  align-items: stretch;
  margin-top: 48px;
}
.roi-card {
  padding: 32px 28px;
  border-radius: 14px;
  background: var(--bg-3);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.roi-card.invest { background: white; border: 1.5px solid var(--line); }
.roi-card.result {
  background: linear-gradient(135deg, var(--navy) 0%, var(--bg-navy-2) 100%);
  color: white;
}
.roi-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.roi-card.result .roi-label { color: #FCC4BC; }
.roi-name {
  font-family: var(--serif-jp);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 16px;
}
.roi-card.result .roi-name { color: white; }
.roi-num {
  font-family: var(--serif-en);
  font-size: 44px;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 8px;
}
.roi-card.result .roi-num { color: white; }
.roi-cap {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}
.roi-card.result .roi-cap { color: rgba(255,255,255,0.8); }
.roi-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-en);
  font-size: 36px;
  color: var(--accent);
}
@media (max-width: 800px) {
  .roi-grid { grid-template-columns: 1fr; }
  .roi-arrow { transform: rotate(90deg); font-size: 24px; padding: 8px 0; }
}

/* ============ Process ============ */
.process-section { background: var(--bg-3); }
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.process-step {
  background: white;
  border-radius: 14px;
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.process-num {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.process-week {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-mute);
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}
.process-title {
  font-family: var(--serif-jp);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 12px;
}
.process-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-dim);
}
@media (max-width: 900px) { .process-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .process-list { grid-template-columns: 1fr; } }

/* ============ CTA ============ */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--bg-navy-2) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(217, 78, 61, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-family: var(--serif-jp);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.5;
  color: white;
  margin-bottom: 24px;
}
.cta-inner h2 .accent { color: #FCC4BC; }
.cta-inner p {
  font-size: 16px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 40px;
  background: var(--accent);
  color: white;
  font-size: 16px;
  font-weight: 700;
  border-radius: 100px;
  transition: all 0.2s;
  box-shadow: 0 10px 30px rgba(217, 78, 61, 0.4);
}
.cta-btn:hover {
  background: #c44535;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(217, 78, 61, 0.5);
}
.cta-trust {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.cta-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cta-trust-item::before { content: '✓'; color: #FCC4BC; }

/* ============ Footer ============ */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.foot-logo {
  font-family: var(--serif-jp);
  font-weight: 600;
  font-size: 20px;
  color: white;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.foot-logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.foot-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.foot-desc { font-size: 13px; line-height: 1.9; max-width: 360px; }
.foot-col h4 {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: white;
  font-weight: 700;
  margin-bottom: 16px;
}
.foot-col ul { list-style: none; }
.foot-col li { font-size: 13px; line-height: 2.1; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
