/* ============================================================
   デジタル終活ナビ styles.css
   カラー: 深藍 × 金茶 × 生成り（静謐で品位のあるトーン）
   ============================================================ */
:root {
  --ink: #1c2340;
  --ink-2: #2b3560;
  --ink-3: #3d4a7d;
  --gold: #a8842f;
  --gold-deep: #8a6c22;
  --gold-light: #d9c188;
  --paper: #f7f4ee;
  --paper-2: #efeadf;
  --white: #ffffff;
  --text: #2f333d;
  --text-soft: #5c6070;
  --line: #ddd6c6;
  --shadow: 0 6px 24px rgba(28, 35, 64, 0.12);
  --radius: 10px;
  --transition: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.9;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink-3);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold);
}

h1, h2, h3, h4 {
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  color: var(--ink);
  line-height: 1.5;
}

/* ============ ヘッダー / ナビゲーション ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 2px 12px rgba(28, 35, 64, 0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand a {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.brand a:hover {
  color: var(--gold-deep);
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--gold-deep);
  letter-spacing: 0.14em;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
  gap: 0.15rem 0.2rem;
  max-width: 860px;
}

.nav-menu li a {
  display: block;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.3rem 0.62rem;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li a.current {
  background: var(--ink);
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle .bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ ヒーロー ============ */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 25, 48, 0.18) 0%, rgba(20, 25, 48, 0.42) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  width: 100%;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff8e8;
  letter-spacing: 0.05em;
  -webkit-text-stroke: 1px rgba(28, 35, 64, 0.85);
  paint-order: stroke fill;
  text-shadow: 0 2px 6px rgba(10, 14, 30, 0.85), 0 6px 22px rgba(10, 14, 30, 0.65);
}

.hero .hero-lead {
  margin-top: 1rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  max-width: 640px;
  text-shadow: 0 1px 4px rgba(10, 14, 30, 0.95), 0 4px 14px rgba(10, 14, 30, 0.75);
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(10, 14, 30, 0.4);
}

.page-hero {
  min-height: 340px;
}

.page-hero h1 {
  font-size: 2.1rem;
}

/* ============ 共通レイアウト ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.section {
  padding: 3.5rem 0;
}

.section-title {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 0.6rem;
}

.section-sub {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 2.2rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 0.7rem auto 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* ============ TOP: 概要 ============ */
.overview-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem 2.4rem;
  max-width: 900px;
  margin: 0 auto;
}

.overview-box p {
  margin-bottom: 1.1rem;
}

.overview-box p:last-child {
  margin-bottom: 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 900px;
  margin: 2rem auto 0;
}

.stat-card {
  background: var(--ink);
  color: #f2ecd9;
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  text-align: center;
}

.stat-card .stat-value {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.2;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  margin-top: 0.4rem;
  opacity: 0.9;
}

/* ============ TOP: ニュース ============ */
.news-section {
  background: var(--paper-2);
}

.news-list {
  max-width: 900px;
  margin: 0 auto;
  list-style: none;
}

.news-list li {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1rem 1.4rem;
  margin-bottom: 0.9rem;
}

.news-date {
  flex-shrink: 0;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.88rem;
  min-width: 7.2em;
}

.news-text strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
}

.news-text span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 0.15rem;
}

/* ============ TOP: トピックカード ============ */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.topic-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(28, 35, 64, 0.2);
}

.topic-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.topic-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.topic-num {
  font-family: 'Shippori Mincho', serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  font-weight: 700;
}

.topic-card h3 {
  font-size: 1.05rem;
  margin: 0.3rem 0 0.5rem;
}

.topic-card p {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.7;
  flex: 1;
}

.topic-link {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-deep);
}

.topic-card:hover .topic-link {
  color: var(--ink);
}

/* ============ 下層: 2カラム ============ */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.6rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.2rem 4rem;
  align-items: start;
}

.article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 2.6rem 2.8rem;
  box-shadow: var(--shadow);
  min-width: 0;
}

.article .lead {
  font-size: 1.02rem;
  color: var(--ink-2);
  border-left: 4px solid var(--gold);
  background: var(--paper);
  padding: 1rem 1.3rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 2rem;
}

.article h2 {
  font-size: 1.45rem;
  margin: 2.6rem 0 1.1rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--ink);
  position: relative;
}

.article h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 72px;
  height: 2px;
  background: var(--gold);
}

.article h2:first-of-type {
  margin-top: 0;
}

.article h3 {
  font-size: 1.12rem;
  margin: 1.8rem 0 0.8rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--gold);
}

.article p {
  margin-bottom: 1.15rem;
}

.article ul,
.article ol {
  margin: 0 0 1.2rem 1.5rem;
}

.article li {
  margin-bottom: 0.4rem;
}

/* ============ 図表 ============ */
.figure {
  margin: 1.8rem 0 2.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem 1rem;
}

.figure svg {
  width: 100%;
  height: auto;
  display: block;
}

.figure figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.7rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.8rem 0 2.2rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--white);
  min-width: 560px;
}

.data-table caption {
  caption-side: bottom;
  font-size: 0.78rem;
  color: var(--text-soft);
  padding-top: 0.6rem;
  text-align: center;
}

.data-table th,
.data-table td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: var(--ink);
  color: #f2ecd9;
  font-weight: 600;
  white-space: nowrap;
}

.data-table tbody th {
  background: var(--paper-2);
  font-weight: 600;
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) td {
  background: var(--paper);
}

/* プロセス図（CSS製） */
.process-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.8rem 0 2.2rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--ink);
  border-radius: 8px;
  padding: 0.9rem 1.2rem 0.9rem 3.4rem;
  margin-bottom: 1.4rem;
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 0.95rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.process-step::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1.15rem;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--gold);
}

.process-step:last-child::after {
  display: none;
}

.process-step strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
}

.process-step span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 0.2rem;
}

/* ============ サイドバー ============ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  min-width: 0;
}

.side-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}

.side-box h2 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.5rem;
  margin-bottom: 0.9rem;
}

.side-ad {
  text-align: center;
  overflow: hidden;
}

.side-ad img {
  max-width: 100%;
  height: auto;
}

.ad-note {
  display: block;
  font-size: 0.68rem;
  color: var(--text-soft);
  letter-spacing: 0.14em;
  margin-bottom: 0.4rem;
  text-align: center;
}

.side-toc ol {
  list-style: none;
  counter-reset: toc;
}

.side-toc li {
  margin-bottom: 0.35rem;
}

.side-toc a {
  display: block;
  position: relative;
  font-size: 0.86rem;
  padding: 0.32rem 0 0.32rem 1.9rem;
  border-bottom: 1px dashed var(--line);
  color: var(--text);
}

.side-toc a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  color: var(--gold-deep);
}

.side-toc a:hover {
  color: var(--gold-deep);
  transform: translateX(3px);
}

.side-related ul {
  list-style: none;
}

.side-related li {
  margin-bottom: 0.35rem;
}

.side-related a {
  display: block;
  font-size: 0.86rem;
  padding: 0.45rem 0.6rem;
  background: var(--paper);
  border-left: 3px solid var(--ink);
  border-radius: 0 6px 6px 0;
  color: var(--text);
}

.side-related a:hover {
  background: var(--paper-2);
  border-left-color: var(--gold);
  color: var(--ink);
}

/* ============ 本文内広告 ============ */
.amazon-banner {
  margin: 0 0 1.2rem;
}

.amazon-banner a {
  display: block;
  border: 1px dashed var(--gold);
  background: #fdfbf4;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  color: var(--gold-deep);
  text-align: center;
  font-weight: 600;
}

.amazon-banner a:hover {
  background: var(--paper-2);
}

.inline-ad {
  margin: 1.6rem 0 2rem;
  text-align: center;
  overflow-x: auto;
}

.inline-ad img {
  max-width: 100%;
  height: auto;
}

/* ============ ページ送り ============ */
.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.page-nav a {
  flex: 1;
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 1.1rem;
  font-size: 0.87rem;
  color: var(--ink);
}

.page-nav a:hover {
  background: var(--ink);
  color: var(--gold-light);
}

.page-nav .prev {
  text-align: left;
}

.page-nav .next {
  text-align: right;
}

/* ============ フッター ============ */
.site-footer {
  background: var(--ink);
  color: #d8d3c4;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.footer-desc {
  font-size: 0.83rem;
  line-height: 1.8;
  opacity: 0.85;
}

.footer-col h3 {
  color: var(--gold-light);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.1em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.35rem;
}

.footer-col a {
  color: #d8d3c4;
  font-size: 0.83rem;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  justify-content: center;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(216, 211, 196, 0.25);
  margin-bottom: 1.2rem;
}

.footer-links a {
  color: #d8d3c4;
  font-size: 0.83rem;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.copyright {
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.7;
}

/* ============ レスポンシブ ============ */
@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.8rem;
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article {
    padding: 1.8rem 1.8rem 2.2rem;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 80px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--ink);
    box-shadow: 0 14px 28px rgba(28, 35, 64, 0.18);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: none;
    padding: 0.6rem 1rem 1rem;
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li a {
    padding: 0.75rem 0.6rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--paper-2);
    white-space: normal;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .page-hero h1 {
    font-size: 1.55rem;
  }

  .hero {
    min-height: 320px;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }
}

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .article {
    padding: 1.4rem 1.1rem 1.8rem;
  }

  .news-list li {
    flex-direction: column;
    gap: 0.2rem;
  }

  .overview-box {
    padding: 1.5rem 1.3rem;
  }

  .page-nav {
    flex-direction: column;
  }

  .page-nav .next {
    text-align: left;
  }
}

/* ==== page hero backgrounds (auto) ==== */

.hero-top {
  background-image: url('images/hero-digital-shukatsu.jpg');
}

.hero-p01 {
  background-image: url('images/hero-market-overview.jpg');
}

.hero-p02 {
  background-image: url('images/hero-digital-remains-issues.jpg');
}

.hero-p03 {
  background-image: url('images/hero-service-landscape.jpg');
}

.hero-p04 {
  background-image: url('images/hero-deathtech-innovation.jpg');
}

.hero-p05 {
  background-image: url('images/hero-legal-inheritance.jpg');
}

.hero-p06 {
  background-image: url('images/hero-business-entry.jpg');
}

.hero-p07 {
  background-image: url('images/hero-consumer-awareness.jpg');
}

.hero-p08 {
  background-image: url('images/hero-future-outlook.jpg');
}

/* ============ パートナー募集 ============ */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: #fff;
  border: 1px solid var(--gold-deep);
}

.btn-primary:hover {
  background: var(--gold-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(138, 108, 34, 0.35);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--ink-3);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.partner-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(168, 132, 47, 0.14);
  color: var(--gold-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
}

.partner-inline-section {
  padding: 0 0 3.5rem;
}

.partner-inline-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow);
  max-width: 1000px;
  margin: 0 auto;
}

.partner-inline-title {
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.partner-inline-description {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.8;
}

.partner-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
  flex-shrink: 0;
}

.partner-page-hero {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.partner-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(217, 193, 136, 0.16), transparent 40%), radial-gradient(circle at bottom left, rgba(217, 193, 136, 0.1), transparent 45%);
}

.partner-page-hero .container,
.partner-page-content .container {
  position: relative;
  z-index: 1;
}

.partner-page-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.partner-page-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: #fff8e8;
  line-height: 1.4;
  margin-bottom: 1.1rem;
}

.partner-page-lead {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.9;
}

.partner-page-content {
  padding: 3.5rem 0 4.5rem;
}

.partner-page-grid {
  display: grid;
  gap: 1.8rem;
  max-width: 900px;
  margin: 0 auto;
}

.partner-content-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow);
}

.partner-content-block h2 {
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
}

.partner-content-block h3 {
  font-size: 1.05rem;
  color: var(--ink-2);
  margin: 1.6rem 0 0.7rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--gold);
}

.partner-content-block p + p,
.partner-content-block ul,
.partner-content-block ol {
  margin-top: 0.9rem;
}

.partner-content-block ul,
.partner-content-block ol {
  padding-left: 1.4rem;
}

.partner-content-block li + li {
  margin-top: 0.45rem;
}

.partner-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.partner-highlight-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}

.partner-highlight-card h3 {
  margin: 0 0 0.5rem;
  padding-left: 0;
  border-left: none;
  color: var(--gold-deep);
  font-size: 1.1rem;
}

.partner-highlight-card p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.8;
}

.partner-cta-box {
  background: var(--ink);
  border-top-color: var(--gold);
  color: #f2ecd9;
}

.partner-cta-box h2 {
  color: var(--gold-light);
}

.partner-cta-box p,
.partner-cta-box li,
.partner-cta-box .partner-note {
  color: #f2ecd9;
}

.partner-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.partner-cta-box .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff8e8;
  border-color: rgba(217, 193, 136, 0.5);
}

.partner-cta-box .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.partner-note {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 1.1rem;
}

@media (max-width: 960px) {
  .partner-inline-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .partner-inline-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .partner-inline-card,
  .partner-content-block {
    padding: 1.5rem 1.3rem;
  }

  .partner-page-hero {
    padding: 3rem 0 2.6rem;
  }

  .partner-cta-actions .btn,
  .partner-inline-actions .btn {
    width: 100%;
  }
}

/* Mobile content-width baseline. Blog-specific rules live in blog/blog.css. */
@media (max-width: 768px) {
  .page-content, .two-col-layout { padding-inline: 16px; }
  .two-col-layout, .blog-main { min-width: 0; }
  .sidebar { position: static; order: 2; }
}
