/* Article template — inherits tokens from /styles.css */

body.article-body-page {
  --article-measure: 680px;
  --article-rail: 220px;
  background: var(--bg);
  padding-top: var(--header-h);
}

/* 記事ではドット背景を弱めて本文の可読性を優先 */
body.article-body-page .page-dots span {
  opacity: calc(var(--o) * 0.45);
}

/* コラムページでもLPと同じ header を使い、常にソリッド表示 */
body.article-body-page > header {
  background: #fff;
  border-bottom: 1px solid rgba(236, 239, 241, 0.9);
}

/* 記事内の header 相当は絶対に fixed にしない */
body.article-body-page .article-hero,
body.article-body-page .article-prose header,
body.article-body-page main header {
  position: relative;
  height: auto;
  inset: auto;
  z-index: auto;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.article-main {
  padding-top: 0;
  padding-bottom: 0;
}

/* ── Preview banner ── */
.article-preview-banner {
  background: var(--pink-pale);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  text-align: center;
  padding: 0.55rem var(--content-pad);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.02em;
}

.article-preview-banner strong {
  color: var(--pink-deep);
  font-weight: 700;
}

/* ── Hero ── */
.article-hero {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(255, 107, 138, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(91, 192, 235, 0.1), transparent 50%),
    var(--bg-warm);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0 2.25rem;
}

.article-hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-hero-copy {
  min-width: 0;
  max-width: 42rem;
}

/* アイキャッチはタイトル上・コンテンツ全幅で大きく見せる */
.article-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: clamp(260px, 56vw, 440px);
  padding: clamp(0.75rem, 2.5vw, 1.5rem);
  background:
    radial-gradient(ellipse 70% 80% at 50% 45%, rgba(255, 255, 255, 0.75), transparent 70%),
    linear-gradient(160deg, rgba(255, 240, 243, 0.98), rgba(235, 246, 252, 0.92));
  border: 1px solid rgba(255, 107, 138, 0.14);
  border-radius: clamp(20px, 4vw, 36px);
  overflow: hidden;
}

.article-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(240px, 52vw, 420px);
  object-fit: contain;
}

@media (max-width: 799px) {
  .article-hero {
    padding-top: 1.15rem;
    padding-bottom: 1.75rem;
  }

  .article-hero-visual {
    min-height: 240px;
  }
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.article-breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.article-breadcrumb a:hover {
  color: var(--pink);
}

.article-breadcrumb-sep {
  color: var(--text-light);
}

.article-kicker {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pink-deep);
  margin-bottom: 0.65rem;
}

.article-title {
  font-family: var(--font);
  font-size: clamp(1.45rem, 4.2vw, 2.05rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 18em;
  margin-bottom: 0.9rem;
}

.article-lead {
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 38em;
  margin-bottom: 1.1rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-light);
}

.article-meta time {
  color: var(--text-muted);
}

/* ── Layout ── */
.article-shell {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2rem var(--content-pad) 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 960px) {
  .article-shell {
    grid-template-columns: var(--article-rail) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
    padding-top: 2.5rem;
  }
}

/* ── TOC ── */
.article-toc {
  font-size: var(--text-sm);
  background: var(--pink-pale);
  border: 1px solid rgba(255, 107, 138, 0.14);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.article-toc-summary {
  list-style: none;
  cursor: pointer;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pink-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.article-toc-summary::-webkit-details-marker {
  display: none;
}

.article-toc-summary::after {
  content: "+";
  font-size: 1rem;
  font-weight: 700;
  color: var(--pink);
}

.article-toc[open] .article-toc-summary::after {
  content: "−";
}

.article-toc-summary + ol {
  margin-top: 0.85rem;
}

@media (min-width: 960px) {
  .article-toc {
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
  }

  .article-toc-summary {
    pointer-events: none;
    cursor: default;
    color: var(--text-light);
    margin-bottom: 0.75rem;
  }

  .article-toc-summary::after {
    display: none;
  }

  .article-toc-summary + ol {
    margin-top: 0;
  }
}

.article-toc-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.article-toc ol {
  list-style: none;
  border-left: 2px solid rgba(255, 107, 138, 0.22);
  padding-left: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
}

.article-toc a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.45;
  transition: color 0.2s;
}

.article-toc a:hover,
.article-toc a.is-active {
  color: var(--pink-deep);
}

/* ── Mental model summary (冒頭) ── */
/* ── Panel card（冒頭サマリー／さいごのまとめ：サイト本体のカード語彙） ── */
.article-panel {
  margin: 1.75rem 0 2.1rem;
  padding: 1.35rem 1.25rem 1.2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.article-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--pink) 0%, #ffb3c6 48%, var(--blue) 100%);
}

.article-panel-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.55rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--pink-light);
  border: 1px solid rgba(255, 107, 138, 0.2);
  color: var(--pink);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
}

.article-prose .article-panel .article-panel-title {
  margin: 0 0 1rem;
  padding: 0;
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.article-panel-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.article-panel-list li {
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  margin: 0;
  padding: 0.85rem 0.9rem;
  background: var(--pink-pale);
  border: 1px solid rgba(255, 107, 138, 0.12);
  border-radius: var(--radius-sm);
}

.article-panel-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.article-panel-list p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--text);
  font-weight: 500;
}

.article-prose .article-panel strong {
  font-weight: 800;
  color: var(--text);
  background: none;
  padding: 0;
}

.article-panel--wrapup {
  margin-top: 2.5rem;
  background:
    linear-gradient(180deg, var(--blue-pale) 0%, #fff 38%);
}

.article-panel--wrapup .article-panel-kicker {
  background: var(--blue-light);
  border-color: rgba(91, 192, 235, 0.28);
  color: var(--blue-deep);
}

.article-panel--wrapup .article-panel-list li {
  background: #fff;
  border-color: rgba(91, 192, 235, 0.16);
}

.article-panel--wrapup .article-panel-num {
  background: var(--blue);
}

/* ── Scene art（アイキャッチと同じ：白〜パステル枠＋ドードル） ── */
.article-scene {
  margin: 1.1rem 0 1.35rem;
  padding: clamp(0.65rem, 2vw, 1.1rem);
  border-radius: clamp(18px, 3.5vw, 28px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 50% 45%, rgba(255, 255, 255, 0.85), transparent 70%),
    linear-gradient(160deg, rgba(255, 240, 243, 0.98), rgba(235, 246, 252, 0.92));
  border: 1px solid rgba(255, 107, 138, 0.14);
}

.article-scene img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(200px, 48vw, 360px);
  margin: 0 auto;
  object-fit: contain;
  border-radius: calc(var(--radius-sm) + 2px);
  background: #fff8f2;
}

.article-scene figcaption {
  margin: 0.55rem 0 0;
  padding: 0 0.25rem;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
}

.article-prose h2 + .article-scene {
  margin-top: 0.85rem;
}

/*
 * SP typography — note記事を参考
 * 本文 ~18px / 行間 ~2.0 / 段落間は広め。画像まわりだけコンパクトに。
 */
@media (max-width: 640px) {
  .article-shell {
    padding-top: 1.35rem;
    padding-bottom: 2.75rem;
  }

  .article-title {
    font-size: 1.5rem;
    line-height: 1.5;
    letter-spacing: -0.01em;
    max-width: none;
  }

  .article-lead {
    font-size: 1.0625rem; /* ≈18px（html 17px基準） */
    line-height: 1.95;
    letter-spacing: 0.02em;
  }

  .article-prose > * + * {
    margin-top: 1.85rem;
  }

  .article-prose p {
    font-size: 1.0625rem;
    line-height: 2;
    letter-spacing: 0.02em;
  }

  .article-prose p + p {
    margin-top: 2.15rem;
  }

  .article-prose li {
    font-size: 1.0625rem;
    line-height: 1.95;
    letter-spacing: 0.02em;
  }

  .article-prose ul,
  .article-prose ol {
    gap: 1rem;
  }

  .article-prose h2 {
    font-size: 1.25rem;
    line-height: 1.55;
    margin-top: 3.25rem;
    letter-spacing: -0.01em;
  }

  .article-prose h2 + .article-scene {
    margin-top: 0.85rem;
  }

  .article-prose h3 {
    font-size: 1.125rem;
    line-height: 1.55;
  }

  .article-scene {
    margin: 1rem 0 1.25rem;
    padding: 0.5rem;
    border-radius: 14px;
  }

  .article-scene img {
    max-height: 210px;
    border-radius: 10px;
  }

  .article-scene figcaption {
    margin-top: 0.45rem;
    font-size: 0.75rem;
    line-height: 1.6;
  }

  .article-panel {
    margin: 1.75rem 0 2rem;
    padding: 1.25rem 1.05rem 1.15rem;
  }

  .article-prose .article-panel .article-panel-title {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .article-panel-list {
    gap: 0.55rem;
  }

  .article-panel-list li {
    padding: 0.85rem 0.85rem;
  }

  .article-panel-list p {
    font-size: 1rem;
    line-height: 1.9;
    letter-spacing: 0.02em;
  }

  .article-panel--wrapup {
    margin-top: 2.25rem;
  }

  .article-bubble {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.45rem 0.65rem;
    margin: 1.5rem 0;
  }

  .article-bubble-char {
    width: 56px;
  }

  .article-bubble-body {
    padding: 0.85rem 0.95rem;
    border-width: 1.5px;
    box-shadow: none;
  }

  .article-bubble-body::before {
    left: -8px;
    width: 12px;
    height: 12px;
  }

  .article-bubble-text {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.85;
    letter-spacing: 0.02em;
  }

  .article-note p,
  .article-decide > p,
  .article-decide-path p {
    font-size: 1rem;
    line-height: 1.9;
    letter-spacing: 0.02em;
  }

  .article-table {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .article-decide {
    padding: 1.25rem 1rem;
  }

  .article-note {
    padding: 1rem 0.95rem;
  }
}

/* ── Diagrams ── */
.article-diagram {
  margin: 1.5rem 0;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-diagram img,
.article-diagram svg {
  display: block;
  width: 100%;
  max-width: 680px;
  height: auto;
  margin: 0 auto;
}

.article-diagram figcaption {
  margin-top: 0.65rem;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Prose ── */
.article-prose {
  max-width: var(--article-measure);
  min-width: 0;
}

.article-prose > * + * {
  margin-top: 1.35rem;
}

.article-prose h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.5rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-top: 2.75rem;
  padding-top: 0.25rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.article-prose h2:first-child {
  margin-top: 0;
}

.article-prose h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin-top: 2rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.article-prose p {
  font-size: var(--text-base);
  line-height: 1.95;
  color: var(--text);
  font-weight: 400;
}

.article-prose strong {
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(transparent 62%, rgba(255, 179, 198, 0.55) 62%);
  padding: 0 0.1em;
}

.article-prose em {
  font-style: normal;
  font-weight: 700;
  color: var(--pink-deep);
}

.article-pull {
  margin: 1.75rem 0;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--pink);
  background: var(--pink-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.7;
  color: var(--text);
}

/* キャラ吹き出し */
.article-bubble {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: end;
  margin: 1.75rem 0;
}

.article-bubble-char {
  width: 88px;
  height: auto;
  display: block;
}

.article-bubble-body {
  position: relative;
  margin: 0;
  padding: 1rem 1.15rem 1.05rem;
  background: #fff;
  border: 2px solid rgba(255, 107, 138, 0.35);
  border-radius: 18px 18px 18px 6px;
}

.article-bubble-body::before {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 18px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-left: 2px solid rgba(255, 107, 138, 0.35);
  border-bottom: 2px solid rgba(255, 107, 138, 0.35);
  transform: rotate(45deg);
}

.article-bubble-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--pink-deep);
  margin-bottom: 0.35rem;
}

.article-bubble-text {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.7;
  color: var(--text);
}


.article-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.article-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid rgba(255, 107, 138, 0.28);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--pink-deep);
}


.article-prose ul,
.article-prose ol {
  padding-left: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
}

.article-prose li {
  font-size: var(--text-base);
  line-height: 1.85;
  color: var(--text);
}

.article-prose li::marker {
  color: var(--pink);
}

.article-prose a:not(.btn) {
  color: var(--pink-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(232, 69, 106, 0.35);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.article-prose a:not(.btn):hover {
  color: var(--pink);
  text-decoration-color: rgba(255, 107, 138, 0.55);
}

/* prose 内の CTA はサイト共通ボタン色を優先 */
.article-prose a.btn {
  color: #fff;
  text-decoration: none;
}

.article-prose a.btn-footer-cta,
.article-footer-cta a.btn-footer-cta {
  color: var(--pink-deep);
  text-decoration: none;
}

/* Figures / illustrations */
.article-figure {
  margin: 1.75rem 0;
  text-align: center;
}

.article-figure img {
  display: block;
  width: min(100%, 420px);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.article-figure--wide img {
  width: min(100%, 560px);
}

.article-figure--panel {
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1rem, 3vw, 1.75rem);
  background: var(--pink-pale);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 107, 138, 0.12);
}

.article-figure--panel img {
  width: min(100%, 340px);
}

.article-figure figcaption {
  margin-top: 0.75rem;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.article-split {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin: 1.75rem 0;
}

@media (min-width: 640px) {
  .article-split {
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 1.5rem;
  }
}

.article-split-visual {
  display: flex;
  justify-content: center;
}

.article-split-visual img {
  width: min(180px, 40vw);
  height: auto;
  display: block;
}

.article-split p {
  margin: 0;
}

/* Comparison table */
.article-table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.article-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.article-table th,
.article-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  line-height: 1.65;
}

.article-table tr:last-child th,
.article-table tr:last-child td {
  border-bottom: none;
}

.article-table thead th {
  font-weight: 700;
  color: var(--text);
  background: var(--pink-pale);
  border-bottom: 1px solid rgba(255, 107, 138, 0.18);
}

.article-table tbody th {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  width: 7.5em;
  background: var(--bg-sub);
}

.article-table td {
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- VS比較：ネスト色面を使わず、タグピル＋チェック丸で対比 ---- */
.media-vs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0 1.25rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

@media (min-width: 760px) {
  .media-vs {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
  }
}

.media-vs-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.media-vs-card--app {
  order: 1;
}

.media-vs-card--agency {
  order: 3;
}

.media-vs-label {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.media-vs-card--app .media-vs-label {
  background: var(--pink-pale);
  color: var(--pink-deep);
}

.media-vs-card--agency .media-vs-label {
  background: var(--blue-pale);
  color: var(--blue-deep);
}

.media-vs-art-wrap {
  display: grid;
  place-items: center;
  width: min(100%, 188px);
  margin: 0 0 0.75rem !important;
}

.media-vs-card .media-vs-art-wrap img,
.media-vs-art {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.media-vs-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
}

.media-vs-type {
  display: block;
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.media-vs-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
}

.media-vs-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text);
}

.media-vs-list li::before {
  content: "✓";
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.2rem;
  text-align: center;
}

.media-vs-card--app .media-vs-list li::before { background: var(--pink); }
.media-vs-card--agency .media-vs-list li::before { background: #5BC0EB; }

.media-vs-badge {
  display: grid;
  place-items: center;
  order: 2;
  min-width: 46px;
  width: auto;
  height: 46px;
  padding: 0 0.65rem;
  margin: -0.15rem auto;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  z-index: 2;
}

@media (min-width: 760px) {
  .media-vs-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
    order: 0;
  }
}

.media-hitokoto {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  margin: 1.15rem 0 1.35rem;
  padding: 0.95rem 1.15rem;
  border-radius: 14px;
  background: #fff0f4;
}

.media-hitokoto-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.75rem;
  border-radius: 8px;
  background: var(--pink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
}

.media-hitokoto p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  font-weight: 700;
  color: #c94d6a;
}

.media-compare-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.media-compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

.media-compare-table th,
.media-compare-table td {
  padding: 0.95rem 0.9rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  line-height: 1.6;
  text-align: left;
}

.media-compare-table thead th {
  font-weight: 800;
  text-align: center;
  border-bottom: 0;
}

.media-compare-table thead th:first-child {
  text-align: left;
  background: #f5f1ef !important;
  color: #7a716c !important;
  border-radius: 15px 0 0 0;
}

.media-compare-table thead th.is-app {
  background: var(--pink-pale) !important;
  color: var(--pink-deep) !important;
}

.media-compare-table thead th.is-agency {
  background: var(--blue-pale) !important;
  color: var(--blue-deep) !important;
  border-radius: 0 15px 0 0;
}

.media-compare-table tbody th {
  width: auto;
  white-space: nowrap;
  font-weight: 800;
  color: var(--text) !important;
  background: transparent !important;
  text-align: left;
}

.media-compare-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.media-compare-ico {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 1.5px solid rgba(226, 85, 117, 0.45);
  background: #fff;
  color: #e25575;
  flex: none;
}

.media-compare-ico svg {
  width: 0.85rem;
  height: 0.85rem;
  display: block;
}

.media-compare-table tbody td {
  text-align: center;
  color: var(--text) !important;
  background: #fff;
  font-weight: 500;
}

.media-compare-table tbody tr:nth-child(even) th,
.media-compare-table tbody tr:nth-child(even) td {
  background: var(--bg-warm);
}

.media-compare-table tbody tr:nth-child(even) td:nth-child(2),
.media-compare-table tbody tr:nth-child(even) td:nth-child(3) {
  background: var(--bg-warm);
}

.media-compare-table tbody tr:last-child th,
.media-compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.media-table-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-warm);
}

.media-table-note-ico {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.media-table-note p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

@media (max-width: 759px) {
  .media-hitokoto {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Callout / note */
.article-note {
  margin: 1.75rem 0;
  padding: 1.15rem 1.25rem;
  background: var(--pink-pale);
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-note--soft {
  background: var(--blue-pale);
  border-left-color: var(--blue);
}

.article-note-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--pink-deep);
  margin-bottom: 0.4rem;
}

.article-note--soft .article-note-label {
  color: var(--blue-deep);
}

.article-note p {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0;
}

.article-note p + p {
  margin-top: 0.65rem;
}

/* Mid CTA — pink pale, site-aligned */
.article-inline-cta {
  margin: 2.25rem 0;
  padding: 1.5rem 1.35rem;
  background:
    radial-gradient(ellipse 70% 80% at 90% 20%, rgba(91, 192, 235, 0.12), transparent 55%),
    var(--pink-pale);
  border: 1px solid rgba(255, 107, 138, 0.16);
  border-radius: var(--radius);
  text-align: center;
}

.article-inline-cta p {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.article-inline-cta .btn {
  display: inline-flex;
}

/* ── Decision box (CV) ── */
.article-decide {
  margin-top: 3rem;
  padding: 1.75rem 1.35rem;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 0;
  overflow: hidden;
}

.article-decide-kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pink-deep);
  margin-bottom: 0.5rem;
}

.article-decide > h2 {
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 0.65rem;
  padding: 0;
}

.article-decide > p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.article-decide-grid {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

@media (min-width: 640px) {
  .article-decide-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.article-decide-path {
  padding: 1.15rem 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  min-height: 100%;
}

.article-decide-path h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.article-decide-path p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.article-decide-next {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--pink-deep);
  line-height: 1.55;
}

.article-decide-path .btn {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
  margin-top: 0.15rem;
  white-space: normal;
  line-height: 1.4;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.article-decide-path .btn.is-soon {
  background: #f1f2f4;
  color: var(--text-muted);
  cursor: not-allowed;
  pointer-events: none;
}

.article-decide-bridge {
  margin: 1.1rem 0 0;
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--text-muted);
}

.article-decide-bridge a {
  font-weight: 700;
}

.article-decide-note {
  margin-top: 0.75rem;
  font-size: var(--text-xs);
  color: var(--text-light);
  line-height: 1.7;
}

/* ── Related ── */
.article-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.article-related h2 {
  font-size: var(--text-lg);
  font-weight: 800;
  margin: 0 0 1rem;
  padding: 0;
}

.article-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-related-list a {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  line-height: 1.55;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
  text-decoration: none;
}

.article-related-list a:hover {
  color: var(--pink-deep);
}

.article-related-list a span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* ── Footer CTA — トップと同じピンクグラデ ── */
.article-footer-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 88% 12%, rgba(255, 255, 255, 0.2) 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 12% 88%, rgba(255, 184, 202, 0.28) 0%, transparent 62%),
    linear-gradient(155deg, #FF9BB0 0%, var(--pink) 36%, #F04F73 72%, var(--pink-deep) 100%);
  border-radius: clamp(2rem, 5vw, 3.25rem) clamp(2rem, 5vw, 3.25rem) 0 0;
  color: #fff;
  padding: clamp(2.5rem, 6vw, 3.75rem) 0;
  text-align: center;
}

.article-footer-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.article-footer-cta-visual {
  width: 88px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
}

.article-footer-cta-kicker {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  opacity: 0.92;
  margin-bottom: 0.55rem;
}

.article-footer-cta h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 0.75rem;
  color: #fff;
}

.article-footer-cta p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.75;
  margin-bottom: 1.35rem;
  font-weight: 500;
}

.article-footer-cta .btn-footer-cta {
  display: inline-flex;
}

/* Sticky CTA — トップの sticky-cta と同じトーン */
.article-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 180;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform 0.28s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.article-sticky-cta.is-visible {
  transform: translateY(0);
}

.article-sticky-cta-close {
  position: absolute;
  top: 0.35rem;
  right: max(0.5rem, env(safe-area-inset-right, 0px));
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.article-sticky-cta-close:hover {
  color: var(--text);
}

.article-sticky-cta-inner {
  width: min(var(--header-width), 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding-right: 1.25rem;
}

.article-sticky-cta-copy {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  min-width: 0;
}

.article-sticky-cta-copy span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.article-sticky-cta .btn {
  flex-shrink: 0;
  min-width: 8.5rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
}

body.has-article-sticky {
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 520px) {
  .article-sticky-cta-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding-right: 0;
    padding-top: 0.35rem;
  }

  .article-sticky-cta .btn {
    min-width: 0;
    width: 100%;
  }

  .article-sticky-cta-close {
    top: 0.2rem;
    right: 0.35rem;
  }

  body.has-article-sticky {
    padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px));
  }
}

/* ── お役立ちコラム一覧（Pairs型・3カラムメディア） ── */
.column-hub-page {
  background: #f6f7f9;
}

.column-hub {
  padding-bottom: 4rem;
}

.column-hub-hero {
  padding: 2rem 1.25rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.column-hub-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.column-hub-hero h1 {
  margin: 0.55rem 0 0.5rem;
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}

.column-hub-lead {
  margin: 0;
  max-width: 40em;
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--text-muted);
}

.column-hub-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 240px;
  grid-template-areas: "left main right";
  gap: 1.75rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0;
  align-items: start;
}

.column-lead {
  display: none;
  grid-area: lead;
  margin: 0;
}

.column-hub-left {
  grid-area: left;
}

.column-hub-main {
  grid-area: main;
  min-width: 0;
}

.column-hub-right {
  grid-area: right;
}

.column-hub-left,
.column-hub-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.column-cat-mobile-bar {
  display: none;
}

.column-nav-panel {
  padding: 1rem 1.05rem 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.column-panel-title {
  margin: 0 0 0.85rem;
  padding-bottom: 0.45rem;
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  border-bottom: 2px dotted rgba(91, 192, 235, 0.45);
}

.column-cat-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.column-cat-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.column-cat-link:hover {
  background: #fafbfd;
}

.column-cat-link.is-active {
  border-color: rgba(91, 192, 235, 0.55);
  background: #f7fcfe;
}

.column-dot {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #b8bec8;
}

.column-dot--all { background: #8a90a0; }
.column-dot--start { background: #ff6b8a; }
.column-dot--agency { background: #5bc0eb; }
.column-dot--app { background: #3db8a0; }
.column-dot--money { background: #f0a05a; }
.column-dot--situation { background: #6a8fd8; }
.column-dot--terms { background: #9aa0ad; }

.column-hub-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}

.column-hub-list-title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 800;
}

.column-hub-count {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.column-card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1.1rem;
}

.column-card {
  margin: 0;
}

.column-card[hidden] {
  display: none;
}

.column-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.column-card-media {
  aspect-ratio: 16 / 10;
  margin-bottom: 0.7rem;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff5f8, #f0f8fc);
}

.column-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.25s ease;
}

.column-card a:hover .column-card-media img {
  transform: scale(1.03);
}

.column-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--text);
}

.column-card a:hover h3 {
  color: var(--pink);
}

.column-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e25575;
}

.column-empty {
  margin: 2rem 0 0;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.column-keyword-cloud {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.column-keyword-cloud a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.column-keyword-cloud a:hover {
  border-color: rgba(255, 107, 138, 0.4);
  color: var(--pink);
  background: var(--pink-pale);
}

.column-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.column-rank-list a {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.5rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.45;
}

.column-rank-list a:hover {
  color: var(--pink);
}

.column-rank-num {
  font-weight: 800;
  color: var(--pink);
}

.column-rank-note {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.column-aside-cta {
  padding: 1.25rem 1.15rem 1.35rem;
  border-radius: 12px;
  background: linear-gradient(160deg, #fff0f4 0%, #eef8fd 100%);
  border: 1px solid rgba(255, 107, 138, 0.2);
}

.column-aside-cta-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--pink);
}

.column-aside-cta h2 {
  margin: 0 0 0.45rem;
  font-size: var(--text-base);
  font-weight: 800;
  line-height: 1.45;
}

.column-aside-cta p {
  margin: 0 0 1rem;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--text-muted);
}

.column-aside-cta .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1080px) {
  .column-hub-shell {
    grid-template-columns: 180px minmax(0, 1fr) 220px;
    gap: 1.25rem;
  }
}

/* Pairs SP: 特集 → カテゴリDD → 2カラム → 右レール */
@media (max-width: 900px) {
  .column-hub-page {
    background: #fff;
  }

  .column-hub-hero {
    padding: 1.25rem 1rem 0.85rem;
    border-bottom: 0;
  }

  .column-hub-hero h1 {
    font-size: 1.35rem;
  }

  .column-hub-lead {
    font-size: 0.86rem;
    line-height: 1.7;
  }

  .column-hub-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "lead"
      "left"
      "main"
      "right";
    gap: 1.15rem;
    padding: 0.85rem 1rem 0;
  }

  .column-hub-left,
  .column-hub-right {
    position: static;
  }

  .column-lead {
    display: block;
  }

  .column-lead a {
    display: block;
    text-decoration: none;
    color: inherit;
  }

  .column-lead .column-card-media {
    aspect-ratio: 16 / 10;
    margin-bottom: 0.65rem;
    border-radius: 12px;
  }

  .column-lead h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.45;
  }

  .column-card--lead-dup {
    display: none;
  }

  .column-cat-panel {
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
  }

  .column-cat-mobile-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }

  .column-cat-mobile-label {
    flex: 0 0 auto;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text);
  }

  .column-cat-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid #d7dbe3;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    text-align: left;
    cursor: pointer;
  }

  .column-cat-dropdown-trigger #column-cat-dropdown-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .column-cat-chevron {
    flex: 0 0 auto;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #8a90a0;
    border-bottom: 2px solid #8a90a0;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.15s;
  }

  .column-cat-panel.is-open .column-cat-chevron {
    transform: rotate(225deg) translateY(-1px);
  }

  .column-cat-menu {
    display: none;
    margin-top: 0.55rem;
    padding: 0.35rem;
    border: 1px solid #d7dbe3;
    border-radius: 12px;
    background: #fff;
  }

  .column-cat-panel.is-open .column-cat-menu {
    display: block;
  }

  .column-cat-menu .column-panel-title {
    display: none;
  }

  .column-cat-nav {
    flex-direction: column;
    gap: 0.1rem;
  }

  .column-cat-link {
    width: 100%;
    padding: 0.7rem 0.75rem;
    border-color: transparent;
    border-radius: 8px;
    background: transparent;
  }

  .column-cat-link.is-active {
    border-color: transparent;
    background: #f4f7fa;
  }

  .column-hub-section-head {
    display: none;
  }

  .column-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 0.75rem;
  }

  .column-card a {
    display: block;
  }

  .column-card-media {
    aspect-ratio: 16 / 10;
    margin-bottom: 0.5rem;
    border-radius: 10px;
  }

  .column-card h3 {
    margin: 0 0 0.3rem;
    font-size: 0.82rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .column-cat-tag {
    font-size: 0.72rem;
  }

  .column-hub-right .column-nav-panel,
  .column-hub-right .column-aside-cta {
    border-radius: 12px;
  }
}

@media (max-width: 380px) {
  .column-card h3 {
    font-size: 0.78rem;
    -webkit-line-clamp: 4;
  }
}

/* =========================================================
   Media article layout (melt.-grade, brand tokens)
   ========================================================= */

body.article-body-page.media-article-page {
  --media-max: 1120px;
  --media-main: minmax(0, 1fr);
  --media-side: 280px;
  background: #fff;
}

.media-wrap {
  max-width: var(--media-max);
  margin: 0 auto;
  padding: 1rem var(--content-pad) 3rem;
}

.media-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 960px) {
  .media-layout {
    grid-template-columns: minmax(0, 1fr) var(--media-side);
    gap: 2.5rem;
    align-items: start;
  }
}

.media-main {
  min-width: 0;
}

.media-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 800px) {
  .media-head {
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
    gap: 1.75rem;
    align-items: center;
  }
}

.media-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--pink-deep);
  letter-spacing: 0.04em;
}

.media-cat::before {
  content: "";
  width: 3px;
  height: 0.95em;
  border-radius: 2px;
  background: var(--pink);
}

.media-head .article-title {
  font-size: clamp(1.55rem, 3.8vw, 2.15rem);
  line-height: 1.35;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.media-head .article-lead {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.media-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.media-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--pink-pale);
  color: var(--pink-deep);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.media-tag:hover {
  background: #ffe4ec;
}

.media-tag--start { background: #ffe4ec; color: #e25575; }
.media-tag--agency { background: #e5f5fc; color: #2a9fd4; }
.media-tag--app { background: #e4f7f1; color: #2a9a84; }
.media-tag--money { background: #fff0e3; color: #d4832f; }
.media-tag--situation { background: #e8eef8; color: #5578c4; }
.media-tag--terms { background: #eef0f4; color: #6b7280; }

.media-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.media-share-label {
  margin-right: 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.media-share {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.media-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--text);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.media-share-btn:hover {
  border-color: var(--pink);
  color: var(--pink-deep);
}

.media-share-btn--icon {
  font-size: 0;
}

.media-share-btn--line {
  color: #06c755;
}

.media-share-btn--line:hover {
  border-color: #06c755;
  color: #06c755;
}

/* 枠なし：BLOB地の上にカットアウトが溶ける */
.media-head-visual {
  position: relative;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  isolation: isolate;
}

.media-head-visual::before,
.media-head-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.media-head-visual::before {
  width: 78%;
  aspect-ratio: 1;
  left: 8%;
  top: 6%;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.55), rgba(255, 107, 138, 0.08) 62%, transparent 72%);
}

.media-head-visual::after {
  width: 42%;
  aspect-ratio: 1;
  right: 2%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(91, 192, 235, 0.35), transparent 70%);
}

.media-head-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius, 16px);
  background: transparent;
}

/* 挿絵：白地の四角ペタ禁止（透過PNG）。ふちフェードは禁止 */
.media-art {
  position: relative;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  isolation: isolate;
  display: grid;
  place-items: center;
}

.media-art::before,
.media-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.media-art::before {
  width: 78%;
  aspect-ratio: 1;
  left: 8%;
  top: 8%;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.5), rgba(255, 107, 138, 0.08) 62%, transparent 72%);
}

.media-art::after {
  width: 44%;
  aspect-ratio: 1;
  right: 2%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(91, 192, 235, 0.32), transparent 70%);
}

.media-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 300px);
  height: auto;
  object-fit: contain;
  border-radius: var(--radius, 16px);
  background: transparent;
}

.media-art--compact img {
  width: min(100%, 168px);
}

/* メディア記事では影を一切使わない。白ネストも影の代替になるので禁止 */
body.media-article-page,
body.media-article-page * {
  box-shadow: none !important;
  text-shadow: none !important;
}

body.media-article-page .media-type-pane,
body.media-article-page .media-next-card,
body.media-article-page .media-quiz-opt,
body.media-article-page .media-type-next,
body.media-article-page .media-vs-card {
  background: transparent;
}

body.media-article-page * {
  filter: none;
}

/* カード面（白地ページ上で「箱」とわかる） */
.media-card {
  display: grid;
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 1.35rem 1.4rem 1.45rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: #f7f5f4;
}

.media-summary {
  display: grid;
  gap: 1rem;
  margin: 0 0 2.25rem;
  padding: 1.35rem 1.4rem 1.45rem;
  border: 1.5px solid rgba(255, 107, 138, 0.35);
  border-radius: 18px;
  background: #fff0f4;
}

@media (min-width: 700px) {
  .media-summary {
    grid-template-columns: minmax(0, 1fr) minmax(130px, 170px);
    align-items: center;
    gap: 1.35rem;
  }
}

.media-summary-title {
  margin: 0 0 0.9rem;
  padding-bottom: 0.55rem;
  border-bottom: 3px solid var(--pink);
  font-size: 1.08rem;
  font-weight: 800;
  width: fit-content;
  max-width: 100%;
}

.media-summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.media-summary-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text);
}

.media-summary-list li > span {
  flex: 1;
  min-width: 0;
}

.media-summary-list li::before {
  content: "✓";
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.12rem;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.35rem;
  text-align: center;
}

.media-summary-list li strong {
  display: inline;
  font-weight: 800;
  color: var(--text);
}

.media-summary-art {
  display: none;
  margin: 0;
  justify-self: center;
}

@media (min-width: 700px) {
  .media-summary-art {
    display: grid;
  }
}

/* 色面カード上はBLOB下地を消して、透過挿絵をカード色へ直溶き */
.media-summary .media-art::before,
.media-summary .media-art::after,
.media-wrapup .media-art::before,
.media-wrapup .media-art::after,
.media-vs-art-wrap.media-art::before,
.media-vs-art-wrap.media-art::after {
  content: none;
  display: none;
}

.media-prose .media-sec {
  margin: 3.75rem 0 0;
  padding-top: 0.35rem;
}

.media-prose .media-sec-title {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  line-height: 1.35;
  font-weight: 800;
}

.media-sec-num {
  flex: none;
  font-size: clamp(2.15rem, 4.5vw, 2.85rem);
  font-weight: 900;
  color: var(--pink);
  letter-spacing: -0.03em;
  line-height: 1;
}

/* 本文リズム：塊の中は密、セクション間は空ける */
.media-prose.article-prose > * + * {
  margin-top: 0;
}

/* 上の打ち消しでセクション間まで潰さない */
.media-prose.article-prose > .media-sec {
  margin-top: 3.75rem;
  margin-bottom: 0;
  padding-top: 0.35rem;
}

.media-prose.article-prose > .media-flow + .media-sec,
.media-prose.article-prose > p + .media-sec {
  margin-top: 2.75rem;
}

.media-prose.article-prose > .media-next,
.media-prose.article-prose > .media-wrapup,
.media-prose.article-prose > .media-soft-cta,
.media-prose.article-prose > .media-related {
  margin-top: 3.25rem;
}

.media-prose > p,
.media-prose .media-sec > p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--text);
  letter-spacing: 0.01em;
}

.media-prose > p + p,
.media-prose .media-sec > p + p {
  margin-top: 0;
}

.media-prose .media-sec > p:last-child,
.media-prose > p:last-child {
  margin-bottom: 0;
}

.media-prose .media-vs,
.media-prose .media-compare-wrap,
.media-prose .media-split,
.media-prose .media-axes,
.media-prose .media-trio,
.media-prose .media-cost-list {
  margin-top: 0.85rem;
  margin-bottom: 0.85rem;
}

.media-prose .media-hitokoto,
.media-prose .media-table-note,
.media-prose .media-point {
  margin-top: 0.85rem;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .media-prose.article-prose > * + * {
    margin-top: 0;
  }

  .media-prose.article-prose > .media-sec {
    margin-top: 3.1rem;
  }

  .media-prose.article-prose > .media-flow + .media-sec,
  .media-prose.article-prose > p + .media-sec {
    margin-top: 2.35rem;
  }

  .media-prose > p,
  .media-prose .media-sec > p {
    font-size: 0.95rem;
    line-height: 1.72;
    letter-spacing: 0.01em;
    margin-bottom: 0.7rem;
  }

  .media-prose .media-sec-title {
    margin-bottom: 0.9rem;
  }

  .media-prose p + p {
    margin-top: 0 !important;
  }
}

/* 足す項目リスト（03・図版の補助。1つの塊） */
.media-cost-list {
  margin: 0.85rem 0 0;
  padding: 0.35rem 0.85rem;
  list-style: none;
  display: grid;
  gap: 0;
  border-radius: 14px;
  background: #f6f5f4;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.media-cost-list li {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 0.65rem;
  align-items: baseline;
  margin: 0;
  padding: 0.7rem 0.15rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.media-cost-list li:last-child {
  border-bottom: 0;
}

.media-cost-list strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--pink-deep);
  background: none;
  padding: 0;
}

.media-cost-list span {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

@media (max-width: 520px) {
  .media-cost-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* 足し算フォーミュラ（03） */
.media-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.45rem 0.35rem;
  padding: 1.1rem 0.9rem;
  border-radius: 18px;
  background: #f6f5f4;
}

@media (min-width: 900px) {
  .media-formula {
    flex-wrap: nowrap;
  }

  .media-formula-item,
  .media-formula-result {
    flex: 1 1 0;
    max-width: none;
  }
}

.media-formula-item,
.media-formula-result {
  flex: 1 1 7.5rem;
  max-width: 9.5rem;
  margin: 0;
  padding: 0.85rem 0.7rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.media-formula-result {
  flex-basis: 8.5rem;
  max-width: 10.5rem;
  background: linear-gradient(180deg, #fff0f4, #fff);
  border-color: rgba(255, 107, 138, 0.22);
}

.media-formula-ico {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.45rem;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.media-formula-ico--teal {
  background: #5BC0EB;
}

.media-formula-item strong,
.media-formula-result strong {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}

.media-formula-item p,
.media-formula-result p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.media-formula-op {
  align-self: center;
  flex: none;
  width: 1.1rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--pink);
  line-height: 1;
}

.media-formula-op--eq {
  color: #2a9fd4;
}

@media (max-width: 640px) {
  .media-formula {
    flex-direction: column;
    align-items: stretch;
  }

  .media-formula-item,
  .media-formula-result {
    max-width: none;
    flex-basis: auto;
  }

  .media-formula-op {
    width: auto;
    height: auto;
    padding: 0.1rem 0;
  }
}

/* 04：文＋イラスト */
.media-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 760px) {
  .media-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1.25rem;
  }
}

.media-split > div > p:first-child {
  margin-top: 0;
}

.media-split-art {
  display: none;
}

.media-split .media-art {
  width: min(100%, 300px);
  margin-inline: auto;
}

.media-axes {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.media-axes-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
}

.media-axes-num {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.media-axes-num--teal { background: #5BC0EB; }
.media-axes-num--navy { background: #5a6b8c; }

.media-axes-item strong {
  display: block;
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}

.media-axes-item p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* タイプ当て・診断：本文と区別する色面モジュール（一覧DNAの転用） */
.media-type-list {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0 1.35rem;
}

.media-type-card {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-warm);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 1rem);
  transition: border-color 0.2s ease;
}

.media-type-card--t1,
.media-type-card--t2,
.media-type-card--t3,
.media-type-card--t4 {
  background: var(--bg-warm);
  border-color: var(--border);
}

.media-type-card.is-quiz-hit {
  border-width: 2px;
  border-color: var(--pink);
}

.media-type-card-visual {
  display: grid;
  place-items: center;
  padding: 1.1rem 1rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.media-type-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
}

.media-type-art {
  margin: 0;
}

.media-type-art.media-art::before,
.media-type-art.media-art::after {
  content: none;
  display: none;
}

.media-type-art img {
  width: min(100%, 148px);
}

.media-type-kicker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.media-type-num {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
}

.media-type-card h3 {
  margin: 0 0 0.55rem;
  padding-bottom: 0;
  border-bottom: none;
  width: auto;
  max-width: 100%;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}

.media-type-who {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text);
}

.media-type-grid {
  display: grid;
  gap: 1rem;
  margin: 0 0 0;
}

@media (min-width: 560px) {
  .media-type-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }
}

.media-type-pane {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.media-type-pane-label {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.media-type-pane--app .media-type-pane-label {
  background: var(--pink-pale);
  color: var(--pink-deep);
}

.media-type-pane--agency .media-type-pane-label {
  background: var(--blue-pale);
  color: var(--blue-deep);
}

.media-type-pane p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text);
}

.media-type-pane p + p {
  margin-top: 0.4rem;
}

.media-type-ok,
.media-type-ng {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.media-type-ok {
  background: var(--pink-pale);
  color: var(--pink-deep);
}

.media-type-ng {
  background: #f3f4f6;
  color: #6b7280;
}

.media-type-label {
  display: inline-block;
  margin-right: 0.45rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: var(--pink);
}

.media-type-next {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.5rem;
  margin: 1rem 0 0;
  padding: 0.9rem 0 0;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text);
}

@media (min-width: 720px) {
  .media-type-card {
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: stretch;
  }

  .media-type-card-visual {
    padding: 1.35rem 1rem;
    border-bottom: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
  }

  .media-type-art img {
    width: min(100%, 168px);
  }

  .media-type-card-body {
    padding: 1.25rem 1.35rem 1.4rem;
  }
}

.media-compare-table--next tbody th {
  white-space: nowrap;
}

.media-prose .media-type-list {
  margin-top: 1.35rem;
}

/* 診断モジュール：わかることカードと同系統の色面 */
.media-quiz {
  margin: 1.35rem 0 1.65rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-warm);
  overflow: hidden;
}

.media-quiz-head {
  padding: 1.15rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}

.media-quiz-badge {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.media-quiz-title {
  margin: 0 0 0.35rem;
  padding-bottom: 0.45rem;
  border-bottom: 3px solid var(--pink);
  width: fit-content;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text);
}

.media-quiz-lead {
  margin: 0.55rem 0 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.media-quiz-q {
  margin: 0;
  padding: 1rem 1.25rem 0.25rem;
  border: 0;
  min-width: 0;
}

.media-quiz-q legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}

.media-quiz-num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.media-quiz-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 0.45rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: transparent;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
  cursor: pointer;
}

.media-quiz-opt span {
  flex: 1;
  min-width: 0;
}

.media-quiz-opt:has(input:checked) {
  border-color: var(--pink);
  background: var(--pink-pale);
}

.media-quiz-opt input {
  margin-top: 0.15rem;
  accent-color: var(--pink);
}

.media-quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  padding: 0.85rem 1.25rem 1.25rem;
}

.media-quiz-actions .btn {
  min-width: 10rem;
  justify-content: center;
}

.media-quiz-result {
  margin: 0 1.25rem 1.2rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--pink-pale);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.65;
  font-weight: 700;
  color: var(--pink-deep);
}

.media-quiz-result[hidden] {
  display: none;
}

.media-quiz-result a {
  color: var(--pink-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 推奨アクション面（リンク前に内容を言い切る） */
.media-rec {
  margin: 1.35rem 0 0;
  padding: 1.2rem 1.25rem 1.3rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-warm);
}

.media-rec-title {
  margin: 0 0 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 3px solid var(--pink);
  width: fit-content;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
}

.media-rec-list {
  margin: 0 0 0.85rem;
  padding: 0 0 0 1.15rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text);
}

.media-rec-body {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
}

.media-rec-body:last-child {
  margin-bottom: 0;
}

.media-em {
  font-style: normal;
  font-weight: 800;
  color: var(--pink-deep);
}

/* 導入フロー：読み方の地図（TOCっぽくしない） */
.media-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0 0.15rem;
  padding: 0;
  list-style: none;
}

.media-flow li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.45rem 0.7rem 0.45rem 0.45rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.media-flow-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
}

.media-formula-ico svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.media-share-btn.is-copied {
  border-color: var(--pink);
  background: var(--pink-pale);
  color: var(--pink-deep);
}

.media-share-btn.is-copied svg {
  display: none;
}

.media-share-btn.is-copied::after {
  content: "OK";
  font-size: 0.68rem;
  font-weight: 900;
}

/* 次に読む：わかることと同型の色面モジュール */
.media-next.media-card {
  margin: 2.5rem 0 0;
  padding: 0;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-warm);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.media-next-head {
  padding: 1.2rem 1.35rem 1rem;
  border-bottom: 1px solid var(--border);
}

.media-next-badge {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.media-next-title {
  margin: 0 0 0.45rem;
  padding-bottom: 0.45rem;
  border-bottom: 3px solid var(--pink);
  width: fit-content;
  max-width: 100%;
  font-size: clamp(1.08rem, 2.4vw, 1.28rem);
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
}

.media-next-lead {
  margin: 0.55rem 0 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.7 !important;
  color: var(--text-muted) !important;
}

.media-next-grid {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem 1.25rem;
}

@media (min-width: 640px) {
  .media-next-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.media-next-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0 0 0.5rem;
  border: none;
  background: transparent;
  text-align: center;
}

.media-next-card--app .media-next-label,
.media-next-card--agency .media-next-label {
  display: inline-block;
  margin: 0 auto;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.media-next-card--app .media-next-label {
  background: var(--pink-pale);
  color: var(--pink-deep);
}

.media-next-card--agency .media-next-label {
  background: var(--blue-pale);
  color: var(--blue-deep);
}

.media-next-art {
  margin: 0 auto 0.15rem;
}

.media-next-art.media-art::before,
.media-next-art.media-art::after {
  content: none;
  display: none;
}

.media-next-art img {
  width: min(100%, 120px);
  margin: 0 auto;
}

.media-next-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
}

.media-next-card > p {
  margin: 0 !important;
  flex: 1;
  font-size: 0.86rem !important;
  line-height: 1.65 !important;
  color: var(--text-muted) !important;
}

.media-next-card .btn {
  align-self: stretch;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.15rem;
}

.media-next-btn-teal {
  background: #5BC0EB !important;
  color: #fff !important;
  border: none;
}

.media-next-btn-teal:hover {
  background: #2a9fd4 !important;
}

.media-next-sub {
  display: inline-block;
  margin-top: 0.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
}

.media-next-sub:hover {
  color: var(--pink-deep);
  text-decoration: underline;
}

.media-next-note {
  margin: 0 !important;
  padding: 0.85rem 1.25rem 1.15rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem !important;
  line-height: 1.65 !important;
  color: var(--text-muted) !important;
}

/* さいごに（わかることと同型カード＋溶け挿絵） */
.media-wrapup {
  display: grid;
  gap: 1rem;
  margin: 2.75rem 0 0;
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: 18px;
  border: 1.5px solid rgba(255, 107, 138, 0.35);
  background: #fff0f4;
}

@media (min-width: 700px) {
  .media-wrapup {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 160px);
    align-items: center;
    gap: 1.15rem;
  }
}

.media-wrapup-title {
  margin: 0 0 0.95rem;
  padding-bottom: 0.55rem;
  border-bottom: 3px solid var(--pink);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.4;
  width: fit-content;
  max-width: 100%;
}

.media-wrapup-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.media-wrapup-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  margin: 0;
}

.media-wrapup-num {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.media-wrapup-list p {
  margin: 0.1rem 0 0 !important;
  font-size: 0.92rem !important;
  line-height: 1.65 !important;
  color: var(--text) !important;
}

.media-wrapup-art {
  display: none;
  margin: 0;
  justify-self: center;
}

@media (min-width: 700px) {
  .media-wrapup-art {
    display: grid;
  }
}

.media-wrapup-kicker {
  display: none;
}

/* 薄い診断CTA */
.media-soft-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin: 1.75rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--pink-pale);
  border: 1px solid rgba(255, 107, 138, 0.14);
}

.media-soft-cta-title {
  margin: 0 0 0.2rem !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  line-height: 1.4 !important;
}

.media-soft-cta p {
  margin: 0 !important;
  font-size: 0.86rem !important;
  line-height: 1.55 !important;
  color: var(--text-muted) !important;
}

.media-soft-cta .btn {
  flex: none;
}

/* 関連 */
.media-related {
  margin: 2rem 0 0;
}

/* コラム一覧へ戻る */
.media-back-hub {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.media-back-hub a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pink-deep);
  text-decoration: none;
}

.media-back-hub a:hover {
  color: var(--pink);
  text-decoration: underline;
}

.media-related-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.media-related-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.media-related-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}

.media-related-list a:hover {
  border-color: rgba(255, 107, 138, 0.35);
  background: #fff8fa;
}

.media-related-copy {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.media-related-list .media-tag {
  flex: none;
}

.media-prose .media-flow,
.media-prose .media-next,
.media-prose .media-wrapup,
.media-prose .media-soft-cta,
.media-prose .media-related {
  margin-top: 1.5rem;
}

.media-prose .media-next,
.media-prose .media-wrapup {
  margin-top: 2.25rem;
}

/* ---- 本文モジュールキット ---- */
.media-prose .media-steps,
.article-prose .media-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin: 1.35rem 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: media-step;
}

@media (min-width: 720px) {
  .media-prose .media-steps,
  .article-prose .media-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
  }
}

.media-prose .media-steps li,
.article-prose .media-steps li {
  position: relative;
  counter-increment: media-step;
  margin: 0;
  padding: 1rem 0.85rem 0.95rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  text-align: center;
  list-style: none;
}

@media (min-width: 720px) {
  .media-prose .media-steps li:not(:last-child)::after,
  .article-prose .media-steps li:not(:last-child)::after {
    content: "›";
    position: absolute;
    right: -0.45rem;
    top: 50%;
    transform: translate(50%, -50%);
    z-index: 1;
    color: var(--pink);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
  }
}

.media-steps .media-step-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--pink-pale);
  color: var(--pink-deep);
  font-size: 0.78rem;
  font-weight: 900;
}

.media-steps .media-step-icon::before {
  content: counter(media-step);
}

.media-steps strong {
  display: block;
  margin: 0 0 0.3rem;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.4;
}

.media-steps span {
  display: block;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.media-trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.35rem 0 1.5rem;
  padding: 1.15rem 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

@media (min-width: 720px) {
  .media-trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem 1rem;
    padding: 1.35rem 1.15rem 1.25rem;
  }
}

.media-trio-item {
  padding: 0.65rem 0.55rem 0.5rem;
  border-radius: 0;
  background: transparent;
  border: 0;
  text-align: center;
}

.media-trio-item--ng {
  border: 0;
}

.media-trio-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  background: var(--pink);
}

.media-trio-icon--teal { background: #5BC0EB; }
.media-trio-icon--navy { background: #5a6b8c; }
.media-trio-icon--ok { background: #3cb89a; }
.media-trio-icon--ng { background: #e25575; }

.media-trio-kicker {
  display: none;
}

.media-trio-item strong {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.4;
}

.media-trio-item p,
.media-trio-item ul,
.media-trio-item ol {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
}

.media-trio-item ul li + li,
.media-trio-item ol li + li {
  margin-top: 0.2rem;
}

.media-point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  margin: 1.35rem 0;
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  background: #fff0f4;
  border: 1.5px solid rgba(255, 107, 138, 0.28);
}

.media-point-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.media-point p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  font-weight: 700;
  color: var(--text);
}

.media-point-art {
  display: none;
}

@media (max-width: 699px) {
  .media-point {
    grid-template-columns: auto 1fr;
  }
}

.media-avoid {
  margin: 1.25rem 0;
  padding: 1.05rem 1.15rem;
  border-radius: 16px;
  background: #f0f7fc;
  border: 1px solid rgba(91, 192, 235, 0.28);
}

.media-avoid h3 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #2a7a9e;
}

.media-avoid ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.media-highlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
  padding: 1rem;
  border-radius: 18px;
  background: var(--pink-pale);
}

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

.media-highlight-item {
  text-align: center;
  padding: 0.5rem 0.35rem;
}

.media-highlight-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.5rem;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--pink-deep);
  border: 1px solid rgba(255, 107, 138, 0.18);
}

.media-highlight-item strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.media-highlight-item span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.media-sidebar {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 960px) {
  .media-sidebar {
    position: sticky;
    top: 5.5rem;
    /* 記事途中でもサイド下を触れるよう、ビューポート内で独立スクロール */
    max-height: calc(100vh - 5.5rem - 1.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
  }

  body.has-article-sticky .media-sidebar {
    max-height: calc(100vh - 5.5rem - 1.5rem - 4.75rem - env(safe-area-inset-bottom, 0px));
  }
}

.media-side-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1rem 1.1rem;
}

.media-side-card h2 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.media-side-card h2 a {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pink-deep);
  text-decoration: none;
}

.media-rank-list,
.media-side-related,
.media-side-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.media-side-cats {
  width: 100%;
  gap: 0.35rem;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  justify-items: stretch;
}

.media-side-cats > a {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.media-rank-item a,
.media-side-related a {
  display: grid;
  grid-template-columns: 28px 56px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.media-side-related a {
  grid-template-columns: 64px minmax(0, 1fr);
}

.media-rank-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.media-rank-item:nth-child(n + 4) .media-rank-num {
  background: #cfd8dc;
  color: #455a64;
}

.media-rank-thumb,
.media-side-related img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

.media-rank-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-rank-item a:hover .media-rank-title,
.media-side-related a:hover .media-side-related-title {
  color: var(--pink-deep);
}

.media-side-related img {
  width: 64px;
  height: 64px;
}

.media-side-related-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-side-related-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.media-side-related-tags .media-tag {
  padding: 0.15rem 0.5rem;
  font-size: 0.68rem;
}

.media-side-cats a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.media-side-cats a img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 8px;
}

.media-side-cats a:hover,
.media-side-cats a.is-active {
  background: var(--pink-pale);
  color: var(--pink-deep);
}

.media-side-cats a .media-side-cat-chevron {
  color: #b0bec5;
  font-weight: 800;
}

.media-side-cta {
  border: none;
  background: linear-gradient(160deg, #fff0f3, #ffe8ef);
  padding: 1.15rem;
  border-radius: 16px;
}

.media-side-cta p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.5;
}

.media-side-cta .btn {
  width: 100%;
  justify-content: center;
}

.media-side-cta .site-note {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
}

@media (max-width: 959px) {
  .media-sidebar {
    margin-top: 0.5rem;
  }

  .media-head {
    border-bottom: 0;
    padding-bottom: 0.5rem;
  }

  .media-head-visual {
    max-width: 300px;
    margin-inline: auto;
  }

  .media-meta-row {
    justify-content: flex-start;
  }

  .media-point {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .media-share-label {
    width: 100%;
    margin: 0 0 0.15rem;
  }
}

/* =========================================================
   Media hub (/articles/) — melt. TOP isomorphic layout
   ========================================================= */

body.media-hub-page {
  background: #fff;
}

.media-site-header .header-nav a.media-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--pink);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}

.media-site-header .header-nav a.media-header-cta:hover {
  filter: brightness(1.03);
  color: #fff !important;
}

@media (min-width: 901px) {
  .media-site-header .header-nav a:not(.media-header-cta) {
    padding: 0.4rem 0.45rem;
    font-size: 0.8rem;
  }
}

.mh-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.mh-logo-tag {
  display: none;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.3;
  max-width: 16rem;
}

@media (min-width: 1100px) {
  .mh-logo-tag { display: block; }
}

.mh-search {
  display: inline-grid !important;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0 !important;
  border-radius: 999px;
  color: var(--text) !important;
}

.mh-search:hover {
  background: var(--pink-pale);
  color: var(--pink-deep) !important;
}

.mh {
  padding-bottom: 3rem;
}

/* ---- Hero: one composed scene (text overlays art) ---- */
.mh-hero {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.mh-hero-stage {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  min-height: clamp(420px, 52vw, 560px);
  padding: 1.75rem var(--content-pad, 1.25rem) 2.25rem;
  display: flex;
  align-items: center;
}

.mh-hero-picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  margin: 0;
  line-height: 0;
}

.mh-hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.mh-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 28rem;
  padding: 1rem 1.25rem 1rem 0;
  background: transparent;
}

.mh-hero-copy h1 {
  margin: 0.75rem 0 0.9rem;
  font-family: var(--font);
  font-size: clamp(2rem, 4.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--text);
}

.mh-hero-copy > p {
  margin: 0 0 1.4rem;
  max-width: 22em;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-muted);
}

.mh-hero-cta {
  border-radius: 999px;
  padding-inline: 1.45rem;
  font-weight: 800;
}

@media (min-width: 900px) {
  .mh-hero-stage {
    min-height: 540px;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .mh-hero-scene {
    object-position: 68% 45%;
  }

  .mh-hero-copy {
    max-width: 32rem;
    width: 46%;
  }
}

/* ---- sections ---- */
.mh-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.75rem var(--content-pad, 1.25rem) 0;
}

.mh-section-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.mh-section-bar h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 800;
}

.mh-section-bar a {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--pink-deep);
  text-decoration: none;
}

.mh-section-bar a:hover { text-decoration: underline; }

/* ---- Featured (overlay large + list) ---- */
.mh-featured {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 900px) {
  .mh-featured {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 1.35rem;
    align-items: stretch;
  }
}

.mh-feat-hero {
  position: relative;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  min-height: 380px;
  text-decoration: none;
  color: #fff;
  background: #ff8fa8;
}

.mh-feat-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.92);
}

.mh-feat-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 107, 138, 0.15) 0%, rgba(232, 69, 106, 0.35) 45%, rgba(40, 28, 36, 0.78) 100%);
  pointer-events: none;
}

.mh-feat-hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 4.5rem 1.35rem 1.35rem;
  background: transparent;
}

.mh-feat-hero-overlay h3 {
  margin: 0.55rem 0 0.45rem;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
}

.mh-feat-hero-overlay p {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.mh-pill {
  display: inline-flex;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.mh-feat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.mh-feat-list a {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.mh-feat-thumb {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #f6f7f9;
}

.mh-feat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mh-feat-copy h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mh-feat-copy p {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mh-feat-list a:hover h3 { color: var(--pink-deep); }

/* ---- color tags ---- */
.mh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.mh-tag {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #f3f4f6;
  color: #6b7280;
}

.mh-tag--start { background: #ffe4ec; color: #e25575; }
.mh-tag--agency { background: #e5f5fc; color: #2a9fd4; }
.mh-tag--app { background: #e4f7f1; color: #2a9a84; }
.mh-tag--money { background: #fff0e3; color: #d4832f; }
.mh-tag--situation { background: #e8eef8; color: #5578c4; }
.mh-tag--terms { background: #eef0f4; color: #6b7280; }

.mh-feat-hero .mh-tag {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* ---- categories（melt同型: 上下二分 / 上部フル塗りアイコン） ---- */
.mh-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .mh-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .mh-cats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; }
}

.mh-cat {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: stretch;
  text-align: center;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
}

.mh-cat:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 138, 0.28);
}

/* 上部: パステル端までフル。アセット内に適度な余白を焼き込み済み */
.mh-cat-icon {
  display: block;
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 118px;
  overflow: hidden;
  line-height: 0;
}

.mh-cat[data-filter-jump="start"] .mh-cat-icon { background: #f9e4e9; }
.mh-cat[data-filter-jump="agency"] .mh-cat-icon { background: #dceeea; }
.mh-cat[data-filter-jump="app"] .mh-cat-icon { background: #d9ecef; }
.mh-cat[data-filter-jump="money"] .mh-cat-icon { background: #f8e6df; }
.mh-cat[data-filter-jump="situation"] .mh-cat-icon { background: #f7edd4; }
.mh-cat[data-filter-jump="terms"] .mh-cat-icon { background: #e6e4f2; }

.mh-cat-icon img,
.mh-cat-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  transform: none;
}

/* 下部: 白地＋中央タイポ */
.mh-cat-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.28rem;
  padding: 0.75rem 0.55rem 0.95rem;
  background: #fff;
  min-height: 4.2rem;
}

.mh-cat-name {
  display: block;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  color: #2a2a2a;
}

.mh-cat-desc {
  display: block;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---- dual: rank + reco ---- */
.mh-dual {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .mh-dual {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2.25rem;
    align-items: start;
  }
}

.mh-rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.mh-rank a {
  display: grid;
  grid-template-columns: 32px 72px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.mh-rank-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--pink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
}

.mh-rank li:nth-child(2) .mh-rank-num { background: #5bc0eb; }
.mh-rank li:nth-child(3) .mh-rank-num { background: #cfd8dc; color: #455a64; }

.mh-rank img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: #f6f7f9;
}

.mh-rank h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.4;
}

.mh-rank a:hover h3 { color: var(--pink-deep); }

.mh-reco {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .mh-reco { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.mh-reco a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.mh-reco-media {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.7rem;
  background: #f6f7f9;
}

.mh-reco-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mh-reco h3 {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mh-reco a:hover h3 { color: var(--pink-deep); }

.mh-note {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---- 診断CTA: サイト既存 footer-cta を一覧中盤でも使用 ---- */
.mh-diag-cta {
  max-width: 1120px;
  margin: 3rem auto 0;
  padding: 0 var(--content-pad, 1.25rem);
}

.mh-diag-cta-panel.footer-cta {
  margin-top: 0;
  border-radius: clamp(1.75rem, 4vw, 2.75rem);
}

/* ---- all articles ---- */
.mh-all-head {
  align-items: baseline;
}

.mh-filter {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mh-chip {
  display: inline-flex;
  margin: 0;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.mh-chip:hover {
  border-color: rgba(255, 107, 138, 0.4);
  color: var(--pink-deep);
}

.mh-chip.is-active {
  border-color: transparent;
  background: var(--pink);
  color: #fff;
}

.mh-all-note {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.mh-more-wrap {
  display: flex;
  justify-content: center;
  margin: 1.75rem 0 0;
}

.mh-more-wrap[hidden] {
  display: none;
}

.mh-more-btn {
  margin: 0;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.mh-more-btn:hover {
  border-color: rgba(255, 107, 138, 0.45);
  color: var(--pink-deep);
  background: var(--pink-pale, #fff8fa);
}

.mh-more-rest {
  font-weight: 600;
  color: var(--text-muted);
}

.mh-grid.column-card-grid {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .mh-grid.column-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .mh-grid.column-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem 1.35rem;
  }
}

.mh-card-media {
  aspect-ratio: 16 / 10;
  margin-bottom: 0.75rem;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, #fff5f8, #f0f8fc);
}

.mh-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.25s ease;
}

.media-hub-card a:hover .mh-card-media img {
  transform: scale(1.03);
}

.mh-card-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--pink-deep);
}

.media-hub-card h3 {
  margin: 0.3rem 0 0.4rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.media-hub-card a:hover h3 { color: var(--pink-deep); }

.mh-card-lead {
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* SP: ベース定義の後に置く（上書き順）。melt SP同型 */
@media (max-width: 899px) {
  /* SP: イラストほぼ全幅・左右中央 → コピー → CTA（melt SP同型） */
  .mh-hero-stage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    gap: 0.15rem;
    padding: 0.15rem 0 1.75rem;
    max-width: none;
  }

  .mh-hero-picture {
    position: relative;
    inset: auto;
    display: block;
    order: 1;
    width: 100%;
    margin: 0;
    line-height: 0;
    pointer-events: none;
  }

  .mh-hero-scene {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0 auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center center;
  }

  .mh-hero-copy {
    order: 2;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 0.55rem var(--content-pad, 1rem) 0;
    background: transparent;
  }

  .mh-hero-copy h1 {
    margin-top: 0.2rem;
    font-size: clamp(1.55rem, 7vw, 1.9rem);
  }

  .mh-hero-copy > p {
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: none;
  }

  .mh-hero-cta {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    min-height: 3rem;
  }

  .mh-section {
    padding-top: 2rem;
  }

  .mh-featured {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
  }

  .mh-feat-hero {
    min-height: 280px;
  }

  .mh-feat-list {
    gap: 1rem;
  }

  .mh-feat-list a {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
  }

  .mh-feat-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 0;
  }

  .mh-feat-copy {
    padding: 0 0.9rem 0.95rem;
  }

  .mh-feat-copy h3 {
    -webkit-line-clamp: 3;
  }

  .mh-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .mh-cat-body {
    min-height: 4.2rem;
    padding: 0.75rem 0.45rem 0.9rem;
  }

  .mh-cat-name {
    font-size: 0.88rem;
  }

  .mh-cat-desc {
    font-size: 0.68rem;
  }

  .mh-dual {
    gap: 2.25rem;
  }

  .mh-reco {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .mh-reco-media {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
  }

  .mh-rank a {
    grid-template-columns: 28px 72px minmax(0, 1fr);
  }

  .mh-diag-cta {
    margin-top: 2.5rem;
  }

  .mh-grid.column-card-grid {
    grid-template-columns: 1fr;
  }

  .mh-filter {
    gap: 0.4rem;
  }

  .mh-chip {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }
}

