/* ==========================================================================
   Relens | Industry Atlas — ベース（style.css）
   「教養とクリエイティブ」(think.relens.jp) の assets/css/style.css から、共通のデザインルール
   （トークン・書体・ヘッダー・見出し・一覧・記事の枠・目次・フッター・スマホ調整）を抜き出したもの。
   値を変えるときは、姉妹サイトとそろうように元のファイルも合わせて確認する。
   Atlas 独自の部品は atlas.css に書く
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts
   欧文表示（ナビ・見出しの英字など）：Inter（Google Fonts）を 200〜300 で細く
   和文：Noto Sans JP（本文 400 / 強調 500 / 見出し 700）
   和文中の英数字：「Relens Latin」= Inter。和文のウェイトに関わらず細く保つため、
     本文域（〜450）は Inter 300、見出し域（451〜）は Inter 500 を当てる
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Relens Latin";
  src: url("https://cdn.jsdelivr.net/npm/@fontsource/inter@5.0.18/files/inter-latin-300-normal.woff2") format("woff2");
  font-weight: 100 450;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Relens Latin";
  src: url("https://cdn.jsdelivr.net/npm/@fontsource/inter@5.0.18/files/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 451 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --c-text: #1a1a1a;
  --c-body: #3d3d3d;
  --c-sub: #6b6b6b; /* 補足の文字。白・薄いグレーの背景でもコントラスト比 4.5:1 以上（WCAG AA） */
  --c-line: #dcdcdc;
  --c-line-strong: #1a1a1a;
  --c-bg: #ffffff;
  --c-light: #efefed;
  --c-tint: #fafaf9;
  --c-link: #0b57d0;
  --radius-embed: 12px; /* X の埋め込み投稿（iframe）と同じ角丸 */ 

  --font-en: "Inter", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  --font-ja: "Relens Latin", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --fw-thin: 200;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;

  --gutter: 80px;
  --max: 1840px;
  --header-h: 96px;
}

@media (max-width: 1024px) {
  :root { --gutter: 40px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: var(--fw-regular);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

/* ---- アクセシビリティ ---- */
/* キーボード操作時のフォーカスを、どの要素でも同じ見え方にする */
:focus-visible { outline: 2px solid var(--c-link); outline-offset: 3px; border-radius: 2px; }
/* 本文へスキップ：ふだんは隠し、キーボードでフォーカスしたときだけ左上に出す */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--c-text);
  color: var(--c-bg);
  font-size: 14px;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
/* 外部サイトへのリンク（別タブで開く）には「↗」を付ける。読み上げでは「（新しいタブで開きます）」を読むので、矢印は読ませない */
a[target="_blank"][href^="http"]::after {
  content: "\2197" / "";
  display: inline-block;
  margin-left: 0.2em;
  font-size: 0.9em;
  text-decoration: none;
}
/* OS の「視差効果を減らす」設定では、スクロールや拡大のアニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
/* 見出しは文節で改行（対応ブラウザのみ。非対応でも通常どおり折り返す） */
h1, h2, h3, h4, .card__title, .moment__name { word-break: auto-phrase; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  transition: transform .3s ease;
}
/* 下にスクロールすると隠し、上にスクロールすると戻す（main.js） */
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-hidden ~ main .toc { top: 24px; }
.toc { transition: top .3s ease; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.site-logo { display: block; line-height: 0; transition: opacity .2s; }
.site-logo:hover { opacity: .6; }
.site-logo img { width: auto; height: 32px; }
.global-nav__list {
  display: flex;
  gap: 42px;
  font-family: var(--font-en);
  font-size: 19px;
  font-weight: var(--fw-light);
  letter-spacing: -0.005em;
}
.global-nav__list a { position: relative; transition: opacity .2s; }
.global-nav__list a:hover { opacity: .55; }
.global-nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
}
.menu-toggle { display: none; width: 40px; height: 40px; position: relative; }
.menu-toggle span {
  position: absolute; left: 6px; right: 6px; height: 1px; background: var(--c-text);
  transition: transform .25s, top .25s;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 24px; }
.is-menu-open .menu-toggle span:nth-child(1) { top: 20px; transform: rotate(20deg); }
.is-menu-open .menu-toggle span:nth-child(2) { top: 20px; transform: rotate(-20deg); }

@media (max-width: 1024px) {
  .global-nav__list { gap: 24px; font-size: 16px; }
}
@media (max-width: 860px) {
  .site-logo img { height: 24px; }
  .menu-toggle { display: block; }
  .global-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--c-bg);
    padding: 24px var(--gutter);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
  }
  .is-menu-open .global-nav { opacity: 1; visibility: visible; }
  .global-nav__list { flex-direction: column; gap: 0; font-size: 28px; }
  .global-nav__list li { border-bottom: 1px solid var(--c-line); }
  .global-nav__list a { display: block; padding: 16px 0; }
  .global-nav__list a[aria-current="page"]::after { display: none; }
  .is-menu-open { overflow: hidden; }
}

/* --------------------------------------------------------------------------
   Page heading (Top / Articles)  — Takram "Projects" style
   -------------------------------------------------------------------------- */
.page-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 64px;
  padding: 176px 0 140px;
}
.page-head__title {
  font-family: var(--font-en);
  font-size: clamp(44px, 5.2vw, 88px);
  font-weight: var(--fw-light);
  letter-spacing: -0.03em;
  line-height: 1.12;
}
/* 英字ラベルは飾り。h1 はメタタイトルと同じ和文（小さく表示） */
.page-head__h1 {
  display: block;
  font-weight: inherit;
  margin-top: 24px;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--c-sub);
}
.page-head__lead {
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: var(--c-text);
}
@media (max-width: 860px) {
  .page-head { grid-template-columns: 1fr; padding: 72px 0 64px; }
  .page-head__lead { font-size: 15px; line-height: 2; }
}

/* --------------------------------------------------------------------------
   Intro (Top) — 1カラム：タイトル → 英文サブ → 和文リード → リンク
   -------------------------------------------------------------------------- */
.intro { padding: 136px 0 128px; }
.intro__title {
  font-size: clamp(32px, 3.6vw, 56px);
  font-weight: var(--fw-light);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.intro__sub {
  margin-top: 16px;
  font-family: var(--font-en);
  font-size: clamp(18px, 1.75vw, 28px);
  font-weight: var(--fw-light);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.intro__lead {
  margin-top: 44px;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
}
.intro__more {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: var(--fw-light);
  transition: opacity .2s;
  color: var(--c-link);
}
.intro__more:hover { opacity: .55; }
@media (max-width: 860px) {
  .intro { padding: 64px 0 72px; }
  .intro__lead { margin-top: 32px; font-size: 15px; }
  .intro__lead br { display: none; }
}

/* Filter */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 36px;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: var(--fw-light);
  color: var(--c-sub);
}
.filter__item { transition: color .2s; }
.filter__item:hover { color: var(--c-text); }
.filter__item sup { font-size: 0.55em; margin-left: 2px; vertical-align: super; line-height: 0; }
.filter__item.is-active {
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
@media (max-width: 640px) { .filter { font-size: 15px; gap: 6px 16px; } }

/* --------------------------------------------------------------------------
   Section heading (Top)
   -------------------------------------------------------------------------- */
.section { padding-bottom: 140px; }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  margin-bottom: 40px;
  border-top: 1px solid var(--c-line-strong);
}
.section__title {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: var(--fw-light);
  letter-spacing: -0.02em;
}
.section__title small {
  margin-left: 16px;
  font-size: 12px;
  font-weight: var(--fw-regular);
  letter-spacing: 0.08em;
  color: var(--c-sub);
}
.more-link {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: var(--fw-light);
  white-space: nowrap;
  transition: opacity .2s;
}
.more-link::after { content: " →"; }
.more-link:hover { opacity: .55; }
@media (max-width: 640px) {
  .section { padding-bottom: 88px; }
  .section__title { font-size: 24px; }
  .section__title small { display: block; margin: 4px 0 0; }
}

/* --------------------------------------------------------------------------
   Entries（記事の一覧）— 左にアイキャッチ、右に「日付・種類」とタイトル・サブタイトル・話題
   PC は2列、スマホは縦並び（アイキャッチが上）
   -------------------------------------------------------------------------- */
.entries { border-bottom: 1px solid var(--c-line); }
.entry {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 10px 40px;
  padding: 32px 0;
  border-top: 1px solid var(--c-line);
}
.entry__thumb { grid-row: 1 / span 2; align-self: start; overflow: hidden; }
.entry__thumb .visual { transition: transform .4s; }
.entry:hover .entry__thumb .visual { transform: scale(1.02); }
.entry__meta { grid-column: 2; }
.entry__body { grid-column: 2; }
.entry__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--c-sub);
}
.entry__meta time { font-family: var(--font-en); font-weight: var(--fw-light); }
.entry__meta span { color: var(--c-text); }
.entry__title {
  font-size: 20px;
  font-weight: var(--fw-medium);
  line-height: 1.6;
  letter-spacing: 0.03em;
  transition: opacity .2s;
}
.entry:hover .entry__title { opacity: .6; }
.entry__sub { margin-top: 6px; font-size: 14px; line-height: 1.9; letter-spacing: 0.04em; color: var(--c-body); }
.entry__topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.entry__topics li {
  padding: 2px 10px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--c-sub);
}
@media (max-width: 860px) {
  .entry { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 24px; }
}
@media (max-width: 640px) {
  .entry { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding: 24px 0; }
  .entry__thumb { grid-row: auto; margin-bottom: 6px; }
  .entry__meta, .entry__body { grid-column: auto; }
  .entry__meta { flex-direction: row; gap: 14px; font-size: 12px; }
  .entry__title { font-size: 17px; }
  .entry__sub { font-size: 13px; }
}

/* 記事一覧のページ：見出しと件数 */
.list { padding-bottom: 160px; }
.list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.list-head__title { font-size: 20px; font-weight: var(--fw-medium); letter-spacing: 0.04em; }
.list-head__count {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: var(--fw-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-sub);
}
.list .filter { margin: 0 0 24px; }
.page-head__catch {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: var(--fw-medium);
  line-height: 1.6;
  letter-spacing: 0.04em;
}
@media (max-width: 640px) { .list { padding-bottom: 96px; } }

/* --------------------------------------------------------------------------
   About teaser（TOP の最後の Relens の紹介）
   -------------------------------------------------------------------------- */
.about-teaser { padding: 120px 0 160px; border-top: 1px solid var(--c-line-strong); }
.about-teaser__eyebrow {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: var(--fw-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-sub);
}
.about-teaser__title {
  margin-top: 24px;
  font-size: clamp(24px, 2.6vw, 40px);
  font-weight: var(--fw-medium);
  line-height: 1.5;
  letter-spacing: 0.03em;
  word-break: auto-phrase;
}
.about-teaser__lead { margin-top: 16px; font-size: 16px; line-height: 2; letter-spacing: 0.04em; color: var(--c-body); }
.about-teaser__more {
  display: inline-block;
  margin-top: 28px;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--c-link);
  transition: opacity .2s;
}
.about-teaser__more::after { content: " →"; }
.about-teaser__more:hover { opacity: .55; }
@media (max-width: 640px) { .about-teaser { padding: 72px 0 96px; } }

/* About ページの本文（記事本文の書式を使い、幅をしぼる） */
.about { max-width: 880px; padding-bottom: 160px; }
.about .article-body h2 { margin-top: 120px; }
.about .article-body > h2:first-child { margin-top: 0; }
@media (max-width: 640px) { .about { padding-bottom: 96px; } .about .article-body h2 { margin-top: 88px; } }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 72px 32px;
}
@media (max-width: 1024px) { .card-grid { grid-template-columns: repeat(2, 1fr); gap: 56px 24px; } }
@media (max-width: 640px)  { .card-grid { grid-template-columns: 1fr; gap: 48px; } }

.card { display: block; }
.card[hidden] { display: none; }
.related[hidden] { display: none; }
.card__thumb { overflow: hidden; }
.card__thumb > * { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { a.card:hover .card__thumb > * { transform: scale(1.03); } }
.card__title {
  margin-top: 22px;
  font-size: 18px;
  font-weight: var(--fw-medium);
  line-height: 1.55;
  letter-spacing: 0.03em;
}
.card__sub {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--c-body);
}
.card__meta {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--c-sub);
}
.card__meta span + span::before { content: "｜"; margin: 0 4px; }
.empty { padding: 80px 0; color: var(--c-sub); font-size: 15px; }

/* --------------------------------------------------------------------------
   Article detail — 記事の枠（全記事共通）
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding-top: 24px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-body);
}
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--c-line); }
.breadcrumb a:hover { color: var(--c-text); }
.breadcrumb li:last-child a { color: var(--c-sub); }

.article { --toc-w: 300px; --col-gap: 106px; --body-w: 880px; }
.article__inner { max-width: calc(var(--toc-w) + var(--col-gap) + var(--body-w)); }

.article-head { padding: 104px 0 80px; max-width: 920px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--c-sub);
}
.article-meta__cat { color: var(--c-text); }
.article-title {
  margin-top: 24px;
  font-size: clamp(26px, 2.8vw, 44px);
  font-weight: var(--fw-medium);
  line-height: 1.45;
  letter-spacing: 0.03em;
}
.article-subtitle {
  margin-top: 16px;
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: var(--fw-regular);
  line-height: 1.6;
  letter-spacing: 0.04em;
}
.article-summary {
  margin-top: 36px;
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: var(--c-body);
}
.hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 32px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-sub);
}

.article-hero { margin-bottom: 120px; }

.article-layout {
  display: grid;
  grid-template-columns: var(--toc-w) minmax(0, var(--body-w));
  gap: var(--col-gap);
  align-items: start;
  padding-bottom: 160px;
}

/* TOC */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border-top: 1px solid var(--c-sub);
  padding-top: 22px;
}
.toc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 15px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  text-align: left;
}
.toc__icon { position: relative; width: 12px; height: 12px; }
.toc__icon::before, .toc__icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor;
  transition: transform .25s;
}
.toc__icon::after { transform: rotate(90deg); }
.toc__head[aria-expanded="true"] .toc__icon::after { transform: rotate(0deg); }
.toc__list { margin-top: 22px; display: grid; gap: 12px; }
.toc__list[hidden] { display: none; }
.toc__list a {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--c-sub);
  transition: color .2s;
}
.toc__list a:hover, .toc__list a.is-current { color: var(--c-text); }

/* この記事で考える問い（記事ヘッダーの中。結論の要約ではなく、読むための道筋） */
.article-questions {
  margin-top: 48px;
  padding: 28px 32px 30px;
  border-radius: var(--radius-embed);
  background: var(--c-tint);
}
.article-questions__title { font-size: 14px; font-weight: var(--fw-medium); letter-spacing: 0.06em; color: var(--c-sub); }
.article-questions__list { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: q; }
.article-questions__list li {
  position: relative;
  padding-left: 2.6em;
  font-size: 17px;
  font-weight: var(--fw-medium);
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--c-text);
  counter-increment: q;
}
.article-questions__list li::before {
  content: counter(q, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .2em;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: var(--fw-light);
  color: var(--c-sub);
}
@media (max-width: 640px) {
  .article-questions { margin-top: 36px; padding: 22px 20px 24px; }
  .article-questions__list li { font-size: 15px; }
}

/* 記事末尾の「さらに考えたい問い」 */
.article-body .next-question {
  margin-top: 96px;
  padding: 32px 0 0;
  border-top: 1px solid var(--c-text);
}
.article-body .next-question p { margin: 0; }
.article-body .next-question__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--c-sub);
}
.next-question__label span {
  padding: 0 10px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.9;
}
.article-body .next-question__title {
  margin-top: 12px;
  font-size: 22px;
  font-weight: var(--fw-medium);
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--c-text);
}
.article-body .next-question__lead { margin-top: 8px; font-size: 15px; line-height: 1.9; }
@media (max-width: 640px) { .article-body .next-question__title { font-size: 18px; } }

/* --------------------------------------------------------------------------
   Article body — 記事ごとに構成が変わる前提で、素のHTML要素だけで組めるようにしています。
   Markdown を変換したHTMLをそのまま .article-body に入れても整う設計です。

   素の要素（class 不要）：h2（目次に出る）/ h3 / h4 / p / strong / a / ul / ol /
                         table / blockquote / hr / img / figure + figcaption / iframe
   任意の部品：
     .table-wrap  … 横に長い表をスマホで横スクロールさせたいとき table を包む
     .embed       … X などの埋め込み（iframe / blockquote）を包む
     .callout     … 「企画のヒント」などの補足ボックス。先頭に .callout__title
     .points      … 「先に結論」などの要点まとめ（ul に付ける。番号付きのボックスになる）
     .flow        … 段階の図解（figure.flow。PC は横並び、スマホは縦並び。follow-repost-campaign 参照）
     .conds       … 条件のカード（figure.flow の中に ol.conds。follow-repost-campaign 参照）
     .track / .metrics / .judges … タイムライン・指標一覧・判断例（figure.flow の中。follow-repost-campaign 参照）
     .facts / .cases / .timeline … 項目と内容・事例や数値の一覧・時期ごとの内容（figure.flow の中。表は原則これらの図解にする）
     .syllogism / .frames / .diamond … 三段論法・問題の捉え方の枝分かれ・ダブルダイヤモンド（figure.flow の中。why-right-answers-fail 参照）
     .ratio / .frames__list--two / .viewpoints … 割合の比較・二つの結果の対比・順に見る視点（figure.flow の中。brand-success-factors 参照）
     .contrast    … 二つの考え方の流れを並べる（figure.flow の中。confirmation-bias・words-and-brand-value 参照）
     .pair / .positions … 二つの要素の結びつき・名乗り方ごとの比較（figure.flow の中。words-and-brand-value 参照）
     .versus / .needs / .pyramid / .trio / .matrix … 二つの表し方の対比・アイコン付きタグ・段の図・アイコン付き3枚カード・2×2の表
                    （figure.flow の中。maslow-pyramid-origin 参照）。アイコンは <span class="fig-icon" data-icon="…">
     .update      … 判断を更新する流れ（上から下へ。途中で2つ並べられる。how-beliefs-change 参照）
                    途中を破線にする update__step--open と、アイコン付きの問いの ul.checks（data-and-values 参照）
     .budget / .ratio__bar--split / .trio--four / .viewpoints--icons … 配分の元の金額・2色の割合バー・4枚のカード・アイコン付きの視点
     .meanline / .versus__panel--open / .versus--wide … 不足・適切さ・過剰の線・破線のパネル・2枚目を広くした対比（work-success-and-wellbeing 参照）
     .ratio__panel--single / .trio__vs / .cycle … 単独の割合パネル・対戦表記・循環の式（majority-rule-and-truth 参照）
     .table-note  … 表の下の注記
     .references  … 参考文献（ol に付ける。注記は p.references__note）
   -------------------------------------------------------------------------- */
.article-body {
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: var(--c-body);
  overflow-wrap: anywhere;
}
.article-body > * + * { margin-top: 1.5em; }
.article-body strong { color: var(--c-text); font-weight: var(--fw-bold); }
.article-body a { color: var(--c-link); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: opacity .2s; }
.article-body a:hover { opacity: .65; }

/* 見出し：罫線を使わず、余白と文字サイズだけで区切る（ウェイトは 500 に統一） */
.article-body h2 {
  margin-top: 160px;
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: var(--fw-medium);
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--c-text);
}
.article-body h3 {
  position: relative;
  margin-top: 88px;
  padding-left: 1.6em;
  font-size: 20px;
  font-weight: var(--fw-medium);
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--c-text);
}
.article-body h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 1em;
  height: 1px;
  background: currentColor;
}
.article-body h4 {
  margin-top: 48px;
  font-size: 17px;
  font-weight: var(--fw-medium);
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--c-text);
}
.article-body h2 + * { margin-top: 40px; }
.article-body h3 + *, .article-body h4 + * { margin-top: 20px; }
.article-body h2 + h3 { margin-top: 56px; }
.article-body > :first-child { margin-top: 0; }
/* 事例など h4 が連続するまとまりは、前のまとまりと間をあける */
.article-body > :not(h2, h3, h4) + h4 { margin-top: 80px; }
.article-body h3 + h4 { margin-top: 40px; }

.article-body ul, .article-body ol { display: grid; gap: .6em; }
.article-body li { position: relative; }
.article-body ul > li { padding-left: 1.4em; }
.article-body ul > li::before {
  content: ""; position: absolute; left: .2em; top: 1.05em;
  width: .5em; height: 1px; background: var(--c-text);
}
.article-body ol { counter-reset: n; }
.article-body ol > li { padding-left: 2.2em; counter-increment: n; }
.article-body ol > li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute; left: 0; top: .1em;
  font-family: var(--font-en); font-size: .85em; font-weight: var(--fw-light);
  color: var(--c-sub);
}
.article-body li > ul, .article-body li > ol { margin-top: .6em; }

/* 表の下の注記 */
.article-body .table-note { margin-top: 10px; font-size: 13px; line-height: 1.8; color: var(--c-sub); }

/* 参考文献（ol.references）。番号付きで小さめに。注記は p.references__note */
.article-body ol.references { gap: .8em; font-size: 14px; line-height: 1.9; }
.article-body ol.references cite { font-style: italic; }
.article-body .references__note { font-size: 13px; line-height: 1.9; color: var(--c-sub); }

.article-body blockquote {
  padding-left: 24px;
  border-left: 1px solid var(--c-line-strong);
  color: var(--c-text);
}
.article-body hr { border: 0; border-top: 1px solid var(--c-line); margin: 64px 0; }
.article-body figcaption { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--c-sub); }

/* Table */
.table-wrap { overflow-x: auto; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}
.article-body th, .article-body td {
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
}
.article-body thead th {
  white-space: nowrap;
  padding-top: 0;
  font-size: 13px;
  font-weight: var(--fw-regular);
  color: var(--c-sub);
  border-bottom-color: var(--c-sub);
}
.article-body tbody td { color: var(--c-text); }
/* 2列の表（項目｜内容）は1列目を見出し扱いにする */
.article-body tbody th,
.article-body tbody td:first-child:nth-last-child(2) {
  width: 11em;
  font-weight: var(--fw-regular);
  color: var(--c-sub);
}
/* 3列以上の表は1列目を少し強める。4列以上はスマホで横スクロール */
.article-body tbody td:first-child:not(:nth-last-child(-n + 2)) { color: var(--c-text); font-weight: var(--fw-medium); }
.article-body td a { text-decoration-color: color-mix(in srgb, var(--c-link) 35%, transparent); }
.table-wrap table:has(th:nth-child(4)) { min-width: 720px; }

/* Embed (X など)。iframe は .embed で包んでも、包まずに置いてもOK */
.article-body .embed { max-width: 550px; }
.article-body > iframe,
.article-body .embed iframe {
  display: block;
  width: 100%;
  max-width: 550px;
  border: 0;
  transition: height .2s;
}
.article-body .embed .twitter-tweet { margin: 0 !important; }
.article-body > :is(iframe, .embed) + p { margin-top: 24px; }

/* 埋め込み直下の「Xで投稿を見る」リンク */
.article-body > :is(iframe, .embed) + p:has(> a:only-child) {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
}
.article-body > :is(iframe, .embed) + p:has(> a:only-child) a { color: var(--c-link); }
.article-body > :is(iframe, .embed) + p:has(> a:only-child) + p { margin-top: 28px; }

/* チェックリスト（Markdown の - [ ] を変換したもの） */
.article-body li:has(> input[type="checkbox"]) { padding-left: 1.9em; }
.article-body li:has(> input[type="checkbox"])::before { content: none; }
.article-body li > input[type="checkbox"] {
  appearance: none;
  position: absolute;
  left: 0;
  top: .45em;
  width: 1.05em;
  height: 1.05em;
  margin: 0;
  border: 1px solid var(--c-sub);
  background: var(--c-bg);
}
.article-body li > input[type="checkbox"]:checked { background: var(--c-text); border-color: var(--c-text); }

/* Points（「先に結論」などの要点まとめ）。ul に class="points" を付けて使う
   各 li は「<strong>要点の一文</strong> 説明」の形。番号は自動で振られる */
.article-body ul.points {
  counter-reset: point;
  display: block;
  padding: 8px 40px;
  background: var(--c-tint);
}
.article-body ul.points > li {
  position: relative;
  padding: 28px 0 28px 4.2em;
  counter-increment: point;
  font-size: 15px;
  line-height: 2;
}
.article-body ul.points > li + li { border-top: 1px solid var(--c-line); }
.article-body ul.points > li::before {
  content: counter(point, decimal-leading-zero);
  left: 0;
  top: 28px;
  width: auto;
  height: auto;
  background: none;
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: var(--fw-thin);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-text);
}
.article-body ul.points > li > strong:first-child {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: var(--fw-medium);
  line-height: 1.7;
  letter-spacing: 0.03em;
}
@media (max-width: 640px) {
  .article-body ul.points { padding: 4px 20px; }
  .article-body ul.points > li { padding: 22px 0 22px 3em; font-size: 14px; }
  .article-body ul.points > li::before { top: 22px; font-size: 22px; }
  .article-body ul.points > li > strong:first-child { font-size: 16px; }
}

/* Flow（段階を横に並べる図解）。figure.flow > ol.flow__steps > li.flow__step
   PC は横並び、スマホは縦並び。結論にあたる段階に is-goal を付けると枠線が濃くなる */
/* 背景は「この記事のポイント」（ul.points）と同じ：枠線なしの --c-tint の面 */
.article-body .flow {
  position: relative;
  margin-top: 56px;
  padding: 48px 40px 36px;
  border-radius: var(--radius-embed);
  background: var(--c-tint);
}
.article-body .flow p { font-size: inherit; line-height: inherit; letter-spacing: inherit; }
.article-body .flow > * + * { margin-top: 0; }
/* 見出しまわりは中央揃え */
.flow__title, .flow__lead { text-align: center; }
/* 図解の見出しを黒地のバッジにしない（Industry Atlas のルール）。姉妹サイトの .flow__eyebrow は持ち込まない */
.flow__title, .flow__note-title { word-break: auto-phrase; text-wrap: pretty; }
.flow__title {
  margin-top: 0 !important;
  font-size: 22px !important;
  font-weight: var(--fw-medium);
  line-height: 1.5 !important;
  letter-spacing: 0.03em !important;
  color: var(--c-text);
}
.flow__lead { margin-top: 4px !important; font-size: 14px !important; color: var(--c-body); }
/* Facts（項目と内容）。figure.flow の中で dl.facts > div.facts__row > dt + dd */
.article-body dl.facts { margin: 0; }
.facts__row { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 4px 20px; padding: 16px 0; }
.facts__row:first-child { padding-top: 8px; }
.facts__row:last-child { padding-bottom: 4px; }
.facts__row + .facts__row { border-top: 1px solid var(--c-line); }
.facts__row dt { font-size: 13px; line-height: 1.8; letter-spacing: 0.04em; color: var(--c-sub); }
/* 記事のシェアボタン（build.mjs が記事ヘッダーの最後と本文の最後に入れる） */
/* スマホの目次ボタンと、下から開く目次（main.js が作る。PCでは出さない） */
.toc-fab {
  position: fixed;
  right: 68px;
  bottom: 16px;
  z-index: 40;
  display: none;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-bg);
  color: var(--c-text);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  cursor: pointer;
}
.toc-fab__icon { width: 18px; height: 18px; stroke-width: 1.5; }
.toc-sheet { position: fixed; inset: 0; z-index: 60; display: none; }
.toc-sheet__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .32); }
.toc-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 72vh;
  overflow-y: auto;
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  background: var(--c-bg);
}
.toc-sheet__head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg);
}
.toc-sheet__title { font-size: 15px; font-weight: var(--fw-medium); letter-spacing: 0.06em; }
.toc-sheet__close { position: relative; width: 44px; height: 44px; margin-right: -12px; cursor: pointer; }
.toc-sheet__close span::before, .toc-sheet__close span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1px;
  background: var(--c-text);
  transform: translate(-50%, -50%) rotate(45deg);
}
.toc-sheet__close span::after { transform: translate(-50%, -50%) rotate(-45deg); }
.toc-sheet__list { margin-top: 8px; }
body.is-sheet-open { overflow: hidden; }
@media (max-width: 860px) {
  .toc-fab:not([hidden]) { display: inline-flex; }
  .toc-sheet:not([hidden]) { display: block; }
}
@media (min-width: 641px) and (max-width: 860px) {
  .toc-fab { right: 84px; bottom: 24px; height: 48px; }
}

/* ページの先頭へ戻るボタン（表示・非表示は main.js） */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: var(--c-bg);
  color: var(--c-text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  cursor: pointer;
  transition: background .2s;
}
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--c-tint); }
.to-top__icon { width: 20px; height: 20px; stroke-width: 1.5; }
@media (max-width: 640px) {
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .share__btn { padding: 8px 14px; }
}
/* Callout */
.article-body .callout {
  padding: 24px 28px;
  background: var(--c-tint);
  font-size: 15px;
  line-height: 2;
  color: var(--c-text);
}
.article-body .callout > * + * { margin-top: .6em; }
.article-body .callout__title {
  font-size: 13px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
}

/* Related */
.related { padding: 0 0 160px; }

@media (max-width: 1100px) {
  .article { --toc-w: 240px; --col-gap: 56px; }
}
@media (max-width: 860px) {
  .article-head { padding: 56px 0 48px; }
  .article-summary { font-size: 15px; line-height: 2; }
  .article-hero { margin-bottom: 56px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 56px; padding-bottom: 96px; }
  .toc { position: static; }
  .article-body { font-size: 15px; line-height: 2; }
  .article-body h2 { margin-top: 104px; }
  .article-body h3 { margin-top: 64px; font-size: 18px; }
  .article-body h4 { font-size: 16px; }
  .article-body table { font-size: 14px; }
  .article-body tbody th,
  .article-body tbody td:first-child:nth-last-child(2) { width: 7.5em; }
  .article-body .callout { padding: 20px; font-size: 14px; }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--c-line); padding: 56px 0 48px; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.site-footer .site-logo img { height: 28px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--font-en); font-size: 15px; font-weight: var(--fw-light); }
.site-footer__nav a:hover { opacity: .55; }
/* 関連サイト（build.mjs が data/site.json の relatedSites から生成） */
.related-sites { width: 100%; padding-top: 24px; border-top: 1px solid var(--c-line); }
.related-sites__title { font-family: var(--font-en); font-size: 12px; font-weight: var(--fw-light); letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-sub); }
.related-sites__title span { margin-left: 12px; font-family: var(--font-ja); text-transform: none; }
.related-sites__list { display: flex; flex-wrap: wrap; gap: 10px 40px; margin: 12px 0 0; padding: 0; list-style: none; }
.related-sites__list a { display: inline-flex; align-items: baseline; gap: 10px; transition: opacity .2s; }
.related-sites__list a:hover { opacity: .55; }
.related-sites__name { font-family: var(--font-en); font-size: 15px; font-weight: var(--fw-regular); }
.related-sites__tagline { font-size: 13px; color: var(--c-body); }
.related-sites__self { padding: 0 8px; border: 1px solid var(--c-line); border-radius: 999px; font-size: 11px; line-height: 1.8; color: var(--c-sub); }
.site-footer__copy { width: 100%; font-family: var(--font-en); font-size: 12px; font-weight: var(--fw-light); color: var(--c-sub); }

/* ==========================================================================
   Mobile（スマホ向けの調整をここにまとめる）
   ========================================================================== */
@media (max-width: 860px) {
  /* ヘッダーの backdrop-filter があると、固定配置のメニューがヘッダー内に閉じ込められて
     背景が透けてしまうため、スマホでは使わない */
  .site-header { backdrop-filter: none; background: var(--c-bg); }
  .global-nav { overflow-y: auto; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

  /* タップしやすさ：小さなテキストリンクの押せる範囲を広げる */
  .breadcrumb a { display: inline-block; padding: 10px 0; }
  .breadcrumb { padding-top: 8px; }
  .intro__more { display: inline-block; padding: 10px 0; }
  .article-body > :is(iframe, .embed) + p:has(> a:only-child) { margin-top: 4px; }
  .article-body > :is(iframe, .embed) + p:has(> a:only-child) a { display: inline-block; padding: 10px 0; }
  .article-body > :is(iframe, .embed) + p:has(> a:only-child) + p { margin-top: 16px; }
  .toc__list { gap: 0; }
  .toc__list a { padding: 8px 0; }
  .toc__head { padding: 6px 0; }
  .filter__item { padding: 6px 0; }
  .site-footer__nav a { display: inline-block; padding: 8px 0; }
  .site-footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  /* 大見出しは1行に収まりやすいサイズに（モーメントカレンダー など） */
  .intro__title { font-size: clamp(24px, 7.2vw, 32px); }

  /* 3列以上の表は、1行ずつ「項目名：値」の縦並びにする（main.js が data-label を付与） */
  .article-body .table-wrap:has(table.is-stackable) { overflow: visible; }
  .article-body .table-wrap table.is-stackable { min-width: 0; }
  .article-body table.is-stackable thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .article-body table.is-stackable,
  .article-body table.is-stackable tbody,
  .article-body table.is-stackable tr,
  .article-body table.is-stackable td { display: block; width: auto; }
  .article-body table.is-stackable { border-top: 1px solid var(--c-sub); }
  .article-body table.is-stackable tr { padding: 18px 0; border-bottom: 1px solid var(--c-line); }
  .article-body table.is-stackable td {
    display: grid;
    grid-template-columns: 7em minmax(0, 1fr);
    gap: 12px;
    padding: 0;
    border: 0;
    font-size: 14px;
    line-height: 1.8;
  }
  .article-body table.is-stackable td + td { margin-top: 4px; }
  .article-body table.is-stackable td::before {
    content: attr(data-label);
    font-size: 12px;
    line-height: 2.1;
    color: var(--c-sub);
  }
  .article-body table.is-stackable td:first-child {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: var(--fw-medium);
    color: var(--c-text);
  }
  .article-body table.is-stackable td:first-child::before { content: none; }
}
