/* ============================================
   Fair Place Inc. — 事業承継LP Styles（パートナー向け・PMI主軸）
   ベースは /styles.css。本ファイルは sc-* とLP用上書きのみ。
   ============================================ */

/* --- ヘッダー: LPは明色ヒーローのため常時白地 --- */
.succession-page .site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(21, 116, 232, 0.06);
}

.succession-page .site-header .logo-fair,
.succession-page .site-header .logo-place {
  color: var(--ink);
}

.succession-page .site-header .global-nav a {
  color: var(--ink-mid);
}

.succession-page .site-header .global-nav a:hover {
  color: var(--vivid-blue);
}

.succession-page .mobile-menu-btn span {
  background: var(--ink);
}

/* --- 共通: 注記 --- */
.sc-note {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--ink-light);
  line-height: 1.8;
}

/* --- §0 Hero --- */
.sc-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(21, 116, 232, 0.08), transparent),
    linear-gradient(180deg, #F4F7FD 0%, #FFFFFF 100%);
  overflow: hidden;
}

.sc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 116, 232, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 116, 232, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.sc-hero-content {
  position: relative;
  max-width: 860px;
}

.sc-hero .hero-tagline-en {
  color: var(--vivid-blue);
  font-family: "Jost", "Noto Sans JP", sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.sc-hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.sc-hero-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  color: var(--ink-mid);
  line-height: 2.1;
  margin-bottom: 40px;
}

.sc-hero-sub strong {
  color: var(--ink);
}

/* --- §1 Why you --- */
.sc-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.sc-why-card {
  background: #fff;
  border: 1px solid rgba(21, 116, 232, 0.12);
  border-radius: 14px;
  padding: 30px 26px;
  box-shadow: 0 4px 20px rgba(10, 22, 40, 0.04);
}

.sc-why-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--vivid-blue);
  margin-bottom: 12px;
}

.sc-why-body {
  font-size: 0.92rem;
  color: var(--ink-mid);
  line-height: 1.9;
}

.sc-why-close {
  max-width: 780px;
  margin: 44px auto 0;
  text-align: center;
  font-size: 1.05rem;
  line-height: 2.1;
  color: var(--ink);
}

.sc-why-close strong {
  background: linear-gradient(transparent 64%, rgba(21, 116, 232, 0.16) 64%);
  padding: 0 2px;
}

/* --- §1b Assets（位置付けの宣言・暗色バンド） --- */
.sc-section-assets {
  background: var(--navy-black);
}

.sc-section-assets .section-label {
  color: var(--mid-blue);
}

.sc-section-assets .section-title {
  color: #fff;
}

.sc-assets-body {
  max-width: 860px;
  margin: 28px auto 0;
  font-size: 0.98rem;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.8);
}

/* --- §2 100日プラン --- */
.sc-section-plan {
  background: var(--bg);
}

.sc-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sc-step {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(21, 116, 232, 0.12);
  border-radius: 14px;
  padding: 30px 26px;
  box-shadow: 0 4px 20px rgba(10, 22, 40, 0.04);
}

.sc-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sc-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3388F0, #0D52B0);
  color: #fff;
  font-family: "Jost", sans-serif;
  font-weight: 800;
}

.sc-step-period {
  font-family: "JetBrains Mono", "Noto Sans JP", monospace;
  font-size: 0.72rem;
  color: var(--vivid-blue);
  background: rgba(21, 116, 232, 0.08);
  border-radius: 999px;
  padding: 4px 12px;
}

.sc-step-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.sc-step-body {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.9;
}

/* --- §3 The logic --- */
.sc-formula {
  max-width: 860px;
  margin: 36px auto 0;
  background: var(--navy-black);
  border-radius: 12px;
  padding: 24px 28px;
  color: #fff;
}

.sc-formula-text {
  font-family: "JetBrains Mono", "Noto Sans JP", monospace;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.sc-formula-note {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
}

/* EBITDAブリッジ図（横棒の積み上げ・CSSのみ） */
.sc-bridge {
  max-width: 860px;
  margin: 40px auto 0;
  background: #fff;
  border: 1px solid rgba(21, 116, 232, 0.12);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.05);
}

.sc-bridge-premise {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
}

.sc-bridge-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sc-bridge-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 16px;
}

.sc-bridge-label {
  font-size: 0.85rem;
  color: var(--ink-mid);
  text-align: right;
  line-height: 1.5;
}

.sc-bridge-track {
  position: relative;
  height: 30px;
  background:
    repeating-linear-gradient(90deg, rgba(17, 24, 39, 0.08) 0 1px, transparent 1px 10%);
  border-radius: 4px;
}

.sc-bridge-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--from) * 1%);
  width: calc((var(--to) - var(--from)) * 1%);
  background: var(--mid-blue);
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.sc-bridge-bar span {
  position: absolute;
  left: calc(100% + 8px);
  white-space: nowrap;
  font-family: "Jost", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--deep-blue);
}

/* 右端の増分はラベルを棒の左側へ（カード外へのはみ出し防止） */
.sc-bridge-last .sc-bridge-bar span {
  left: auto;
  right: calc(100% + 8px);
}

.sc-bridge-base .sc-bridge-bar,
.sc-bridge-result .sc-bridge-bar {
  background: var(--deep-blue);
}

.sc-bridge-base .sc-bridge-bar span,
.sc-bridge-result .sc-bridge-bar span {
  position: static;
  margin-left: 12px;
  color: #fff;
}

.sc-bridge-result .sc-bridge-label,
.sc-bridge-base .sc-bridge-label {
  color: var(--ink);
  font-weight: 700;
}

.sc-bridge-result {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

/* 会社の値段への跳ね返り図（改善前後×EBITDA／企業価値・CSSのみ） */
.sc-value {
  max-width: 860px;
  margin: 24px auto 0;
  background: #fff;
  border: 1px solid rgba(21, 116, 232, 0.12);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.05);
}

.sc-value-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
}

.sc-value-title span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-light);
}

.sc-value-chart {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.sc-value-panel {
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--bg);
}

.sc-value-series {
  font-family: "Jost", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 14px;
  padding-left: 18px;
  position: relative;
}

.sc-value-series::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--mid-blue);
}

.sc-value-ev .sc-value-series::before {
  background: var(--deep-blue);
}

.sc-value-series small {
  margin-left: 8px;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-light);
}

.sc-value-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 10px;
}

.sc-value-row + .sc-value-row {
  margin-top: 10px;
}

.sc-value-label {
  font-size: 0.8rem;
  color: var(--ink-mid);
}

.sc-value-track {
  position: relative;
  height: 30px;
  display: flex;
  align-items: center;
}

.sc-value-bar {
  height: 100%;
  width: calc(var(--w) * 1%);
  border-radius: 4px;
  background: var(--mid-blue);
  display: flex;
  align-items: center;
  padding-left: 10px;
}

.sc-value-ev .sc-value-bar {
  background: var(--deep-blue);
}

.sc-value-bar span {
  font-family: "Jost", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
  white-space: nowrap;
}

.sc-value-diff {
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(21, 116, 232, 0.12);
  font-family: "Jost", "Noto Sans JP", sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--deep-blue);
  white-space: nowrap;
}

.sc-value-body {
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.9;
}

.sc-logic-block {
  max-width: 860px;
  margin: 48px auto 0;
}

.sc-logic-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

.sc-layer-list {
  list-style: none;
  counter-reset: layer;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sc-layer-list li {
  counter-increment: layer;
  position: relative;
  padding: 20px 20px 20px 56px;
  background: #fff;
  border: 1px solid rgba(21, 116, 232, 0.12);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.8;
}

.sc-layer-list li::before {
  content: counter(layer);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--deep-blue);
  color: #fff;
  font-family: "Jost", sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-layer-list li strong {
  color: var(--ink);
}

/* --- 表の共通ラッパ（スマホは横スクロール） --- */
.sc-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 40px 0 32px;
}

/* --- §4 DD → PMI --- */
.sc-section-dd {
  background: var(--bg);
}

.sc-dd-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: #fff;
}

.sc-dd-table th,
.sc-dd-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
  width: 50%;
}

.sc-dd-table thead th {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-mid);
  background: rgba(17, 24, 39, 0.03);
}

.sc-dd-table .sc-dd-us {
  background: rgba(21, 116, 232, 0.06);
  color: var(--ink);
}

.sc-dd-table thead .sc-dd-us {
  color: var(--vivid-blue);
  font-weight: 800;
}

.sc-dd-table td:first-child {
  color: var(--ink-mid);
}

/* --- §6 Timeline（横スクロール対応） --- */
.sc-section-timeline {
  background: var(--bg);
}

.sc-timeline-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 40px;
  padding-bottom: 8px;
}

.sc-timeline {
  min-width: 860px;
  background: #fff;
  border: 1px solid rgba(21, 116, 232, 0.12);
  border-radius: 16px;
  padding: 32px 28px 28px;
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.05);
}

.sc-tl-phases {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.sc-tl-phases::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 7px;
  height: 2px;
  background: rgba(21, 116, 232, 0.25);
}

.sc-tl-phase {
  position: relative;
  text-align: center;
}

.sc-tl-dot {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--mid-blue);
}

.sc-tl-closing .sc-tl-dot {
  background: var(--deep-blue);
  border-color: var(--deep-blue);
}

.sc-tl-phase p {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.sc-tl-closing p {
  color: var(--deep-blue);
}

.sc-tl-phase small {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-light);
  margin-top: 2px;
}

.sc-tl-bands {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: auto;
  row-gap: 8px;
  margin-top: 24px;
}

.sc-tl-band {
  grid-column: var(--col) / span var(--span);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 6px;
}

.sc-tl-band strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.sc-tl-main {
  background: var(--deep-blue);
  color: #fff;
}

.sc-tl-main strong {
  color: rgba(255, 255, 255, 0.75);
}

.sc-tl-entry {
  background: rgba(21, 116, 232, 0.12);
}

.sc-tl-entry strong {
  color: var(--deep-blue);
}

.sc-tl-fa {
  background: transparent;
  border: 1px dashed rgba(21, 116, 232, 0.5);
}

.sc-tl-fa strong {
  color: var(--deep-blue);
}

.sc-tl-notes {
  list-style: none;
  max-width: 860px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sc-tl-notes li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--ink-mid);
  line-height: 1.9;
}

.sc-tl-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vivid-blue);
}

.sc-tl-notes strong {
  color: var(--ink);
}

/* --- §7 Difference --- */
.sc-diff-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.sc-diff-table th,
.sc-diff-table td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.sc-diff-table thead th {
  font-weight: 700;
  color: var(--ink-mid);
  font-size: 0.85rem;
}

.sc-diff-table tbody th {
  font-size: 0.8rem;
  color: var(--ink-light);
  font-weight: 700;
  white-space: nowrap;
}

.sc-diff-table .sc-diff-us {
  background: rgba(21, 116, 232, 0.06);
  color: var(--ink);
  font-weight: 500;
}

.sc-diff-table thead .sc-diff-us {
  color: var(--vivid-blue);
  font-weight: 800;
}

/* --- §8 Fit --- */
.sc-section-fit {
  background: var(--bg);
}

.sc-fit-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.sc-fit-col {
  background: #fff;
  border-radius: 14px;
  padding: 32px 30px;
  border-top: 4px solid var(--vivid-blue);
  box-shadow: 0 4px 20px rgba(10, 22, 40, 0.04);
}

.sc-fit-industry {
  border-top-color: var(--mid-blue);
}

.sc-fit-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}

.sc-fit-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sc-fit-col li {
  position: relative;
  padding-left: 24px;
  font-size: 0.92rem;
  color: var(--ink-mid);
  line-height: 1.8;
}

.sc-fit-good li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--vivid-blue);
  font-weight: 700;
}

.sc-industry-list {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px !important;
}

.sc-industry-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 6px 12px !important;
  border-radius: 12px;
  background: rgba(21, 116, 232, 0.08);
  color: var(--deep-blue);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
  word-break: keep-all;
}

.sc-industry-icon {
  width: 30px;
  height: 30px;
  color: var(--vivid-blue);
  flex-shrink: 0;
}

/* --- §11 Who --- */
.sc-section-who {
  background: var(--bg);
}

.sc-who-card {
  max-width: 720px;
  margin: 40px auto 0;
  background: #fff;
  border: 1px solid rgba(21, 116, 232, 0.12);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.05);
}

.sc-who-card .profile-bio {
  margin-top: 16px;
}

.sc-who-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--vivid-blue);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.sc-who-link:hover {
  text-decoration: underline;
}

/* --- §付 Owners --- */
.sc-section-owners {
  background: var(--bg);
  text-align: center;
}

.sc-owners-body {
  max-width: 720px;
  margin: 20px auto 24px;
  font-size: 0.98rem;
  line-height: 2.1;
  color: var(--ink);
}

.sc-owners-link {
  display: inline-block;
  color: var(--vivid-blue);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.sc-owners-link:hover {
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 820px) {
  .sc-why-grid,
  .sc-steps,
  .sc-fit-columns,
  .sc-layer-list {
    grid-template-columns: 1fr;
  }

  .sc-hero {
    min-height: auto;
    padding: 120px 20px 64px;
  }

  .sc-bridge {
    padding: 24px 18px;
  }

  .sc-bridge-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .sc-bridge-label {
    text-align: left;
    font-size: 0.8rem;
  }

  .sc-bridge-bar span {
    font-size: 0.78rem;
  }

  .sc-bridge-result .sc-bridge-bar span,
  .sc-bridge-base .sc-bridge-bar span {
    margin-left: 8px;
  }

  .sc-formula-text {
    font-size: 0.95rem;
  }

  .sc-value {
    padding: 24px 18px;
  }

  .sc-value-chart {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sc-industry-list {
    grid-template-columns: 1fr 1fr;
  }

  .sc-dd-table,
  .sc-diff-table {
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  .sp-only {
    display: inline;
  }

  .pc-only {
    display: none;
  }
}
