/* ============================================================
   BUSINESS HACK — Editorial News Media Design
   報道・ニュース型: 東洋経済/ITmedia 作法
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700;800&family=Noto+Serif+JP:wght@600;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --c-white:      #FFFFFF;
  --c-bg-sub:     #F6F6F4;
  --c-ink:        #14181F;
  --c-body:       #2B2F36;
  --c-muted:      #767B84;
  --c-red:        #C9252B;
  --c-red-dark:   #A31E23;
  --c-border:     #E5E5E3;
  --c-bg-dark:    #14181F;

  --font-sans:    'Noto Sans JP', sans-serif;
  --font-serif:   'Noto Serif JP', serif;
  --font-mono:    'Inter', sans-serif;

  --radius-xs:    2px;
  --radius-sm:    4px;

  --container:    1240px;
  --col-rail:     300px;
  --gap-rail:     28px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-body);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* ---------- Utility ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Category Label ---------- */
.cat-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-red);
  border: 1px solid var(--c-red);
  padding: 1px 5px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  line-height: 1.5;
}

/* ---------- Section Heading (赤縦バー付き) ---------- */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--c-ink);
  padding-bottom: 7px;
  margin-bottom: 0;
}
.section-heading--compact {
  border-bottom-width: 1px;
  border-bottom-color: var(--c-border);
}
.section-heading__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
.section-heading__title::before {
  content: '';
  display: block;
  width: 3px;
  height: 16px;
  background: var(--c-red);
  flex-shrink: 0;
}
.section-heading--compact .section-heading__title {
  font-size: 13px;
}
.section-heading__more {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-muted);
  font-weight: 500;
}
.section-heading__more:hover { color: var(--c-red); text-decoration: underline; }

/* ---------- Advertisement Placeholder ---------- */
.ad-unit {
  border: 1px dashed var(--c-border);
  background: var(--c-bg-sub);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.ad-unit__label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ad-unit__size {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-muted);
}
.ad-leaderboard { height: 90px; width: 100%; }
.ad-rectangle   { width: 300px; height: 250px; }
.ad-halfpage    { width: 300px; height: 600px; }
.ad-infeed      { height: 90px; width: 100%; }

/* ================================================================
   UTILITY BAR
   ================================================================ */
.utility-bar {
  background: var(--c-bg-sub);
  border-bottom: 1px solid var(--c-border);
  padding: 4px 0;
}
.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.utility-bar__date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-muted);
  letter-spacing: 0.04em;
}
.utility-bar__links {
  display: flex;
  align-items: center;
  gap: 14px;
}
.utility-bar__links a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-muted);
}
.utility-bar__links a:hover { color: var(--c-red); text-decoration: underline; }
.utility-bar__sep { color: var(--c-border); font-size: 11px; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  background: var(--c-white);
  border-top: 2px solid var(--c-red);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  max-width: var(--container);
  margin: 0 auto;
  height: 50px;
}

/* ロゴ */
.site-logo { flex-shrink: 0; }
.site-logo__text {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.site-logo__hack { color: var(--c-red); }

/* グローバルナビ */
.global-nav { flex: 1; }
.global-nav__list {
  display: flex;
  align-items: center;
  gap: 0;
}
.global-nav__list a {
  display: block;
  padding: 0 11px;
  height: 50px;
  line-height: 50px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-body);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: border-color 0.12s, color 0.12s;
}
.global-nav__list a:hover,
.global-nav__list a.is-active {
  color: var(--c-ink);
  border-bottom-color: var(--c-red);
}

/* ヘッダー右 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-body);
  padding: 5px;
  display: flex;
  align-items: center;
}
.search-toggle:hover { color: var(--c-red); }
.btn-newsletter {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--c-white);
  background: var(--c-red);
  border: none;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition: background 0.12s;
}
.btn-newsletter:hover { background: var(--c-red-dark); color: var(--c-white); }

/* ハンバーガー（SP） */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-ink);
}

/* 検索バー展開 */
.header-search {
  display: none;
  border-top: 1px solid var(--c-border);
  background: var(--c-white);
}
.header-search.is-open { display: block; }
.header-search__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-search__input {
  flex: 1;
  border: 1px solid var(--c-border);
  padding: 6px 10px;
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  border-radius: var(--radius-xs);
  background: var(--c-bg-sub);
}
.header-search__input:focus { border-color: var(--c-ink); background: var(--c-white); }
.header-search__btn {
  background: var(--c-ink);
  color: var(--c-white);
  border: none;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  border-radius: var(--radius-xs);
}

/* SPナビ */
.sp-nav { display: none; border-top: 1px solid var(--c-border); background: var(--c-white); }
.sp-nav.is-open { display: block; }
.sp-nav__list { padding: 6px 0; }
.sp-nav__list li { border-bottom: 1px solid var(--c-border); }
.sp-nav__list a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-body);
}
.sp-nav__list a:hover { color: var(--c-red); }

/* ================================================================
   LEADERBOARD AD
   ================================================================ */
.leaderboard-wrap {
  border-bottom: 1px solid var(--c-border);
  padding: 8px 0;
  background: var(--c-bg-sub);
}

/* ================================================================
   PAGE OUTER (index.html 全幅ラッパー)
   ================================================================ */
.page-outer {}

/* ================================================================
   LEAD BLOCK — 3カラム（リード記事 / サイドリスト / ランキング）
   ================================================================ */
.lead-block {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  padding: 18px 0 20px;
}
.lead-block__grid {
  display: grid;
  grid-template-columns: 1fr 260px 200px;
  gap: 0;
  align-items: start;
}

/* リード記事（左） */
.lead-article {
  padding-right: 20px;
  border-right: 1px solid var(--c-border);
}
.lead-article__img-link { display: block; }
.lead-article__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 10px;
  transition: opacity 0.15s;
}
.lead-article__img-link:hover .lead-article__img { opacity: 0.9; }
.lead-article__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
.lead-article__date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-muted);
}
.lead-article__title {
  font-size: 26px;
  font-weight: 800;
  color: var(--c-ink);
  line-height: 1.38;
  letter-spacing: -0.02em;
  margin-bottom: 9px;
}
.lead-article__title a:hover { color: var(--c-red); }
.lead-article__lead {
  font-size: 13px;
  color: var(--c-body);
  line-height: 1.7;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lead-article__byline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-muted);
}

/* サイド記事リスト（中央） */
.side-list {
  padding: 0 16px;
  border-right: 1px solid var(--c-border);
}
.side-list__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--c-border);
}
.side-list__item:first-child { padding-top: 0; }
.side-list__item:last-child { border-bottom: none; }
.side-list__thumb {
  width: 64px;
  height: 43px;
  object-fit: cover;
  flex-shrink: 0;
}
.side-list__cat { margin-bottom: 3px; }
.side-list__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.side-list__title a:hover { color: var(--c-red); text-decoration: underline; }
.side-list__date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-muted);
}

/* リードブロック内ランキング（右） */
.lead-ranking {
  padding-left: 16px;
}

/* ================================================================
   MAIN LAYOUT (2カラム: コンテンツ + レール)
   ================================================================ */
.page-layout {
  display: grid;
  grid-template-columns: 1fr var(--col-rail);
  gap: var(--gap-rail);
  align-items: start;
  padding-top: 0;
}
.page-layout__main { min-width: 0; }
.page-layout__rail { min-width: 0; }

/* ================================================================
   CATEGORY SECTION BLOCK
   ================================================================ */
.cat-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--c-border);
}
.cat-section:last-of-type { border-bottom: none; }
.cat-section__content {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
}

/* 特集記事（左カラム） */
.cat-feature {
  padding-right: 16px;
  border-right: 1px solid var(--c-border);
}
.cat-feature__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 8px;
}
.cat-feature__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.cat-feature__title {
  font-size: 14px;
  font-weight: 800;
  color: var(--c-ink);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}
.cat-feature__title a:hover { color: var(--c-red); text-decoration: underline; }
.cat-feature__date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-muted);
}

/* 記事リスト（右カラム） */
.cat-list { padding-left: 16px; }
.cat-list__item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--c-border);
}
.cat-list__item:first-child { padding-top: 0; }
.cat-list__item:last-child { border-bottom: none; }
.cat-list__thumb {
  width: 60px;
  height: 40px;
  object-fit: cover;
  flex-shrink: 0;
}
.cat-list__body { flex: 1; min-width: 0; }
.cat-list__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.cat-list__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.cat-list__title a:hover { color: var(--c-red); text-decoration: underline; }
.cat-list__date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-muted);
  margin-top: 2px;
  display: block;
}

/* ================================================================
   CAT-TWO-COL（広告/コンテンツ横並び小ブロック）
   ================================================================ */
.cat-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.cat-two-col__block {
  padding: 0 16px;
  border-right: 1px solid var(--c-border);
}
.cat-two-col__block:first-child { padding-left: 0; }
.cat-two-col__block:last-child { border-right: none; padding-right: 0; }
.cat-two-col__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 8px;
}

/* ================================================================
   LATEST ARTICLES（横長リスト型）
   ================================================================ */
.latest-section { padding: 22px 0; }
.latest-list { margin-top: 14px; }
.latest-list__item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
  align-items: start;
}
.latest-list__item:first-child { padding-top: 0; }
.latest-list__thumb {
  width: 90px;
  height: 60px;
  object-fit: cover;
}
.latest-list__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.latest-list__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.55;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.latest-list__title a:hover { color: var(--c-red); text-decoration: underline; }
.latest-list__date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-muted);
}

/* もっと読む */
.pager-more {
  margin-top: 18px;
  text-align: center;
}
.btn-more {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink);
  border: 1px solid var(--c-border);
  padding: 7px 28px;
  border-radius: var(--radius-xs);
  background: var(--c-white);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.12s, color 0.12s;
}
.btn-more:hover { border-color: var(--c-ink); color: var(--c-red); }

/* ================================================================
   INFEED AD
   ================================================================ */
.infeed-wrap {
  padding: 14px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  margin: 4px 0;
}

/* ================================================================
   特集バナー（濃いインク地）
   ================================================================ */
.feature-section {
  background: var(--c-bg-dark);
  padding: 24px 0;
}
.feature-section .section-heading__title { color: var(--c-white); }
.feature-section .section-heading { border-bottom-color: #2a2f38; }
.feature-section .section-heading__more { color: #888; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.feature-card {
  display: block;
  position: relative;
  overflow: hidden;
}
.feature-card__img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  filter: brightness(0.72);
  transition: filter 0.18s;
}
.feature-card:hover .feature-card__img { filter: brightness(0.60); }
.feature-card__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
}
.feature-card__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--c-white);
  background: var(--c-red);
  padding: 1px 5px;
  display: inline-block;
  margin-bottom: 4px;
}
.feature-card__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* ================================================================
   RAIL: 人気記事ランキング
   ================================================================ */
.rail-section { padding: 0; }
.rail-section + .rail-section { margin-top: 24px; }
.ranking-list { margin-top: 10px; }
.ranking-list__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--c-border);
}
.ranking-list__item:first-child { padding-top: 0; }
.ranking-list__item:last-child { border-bottom: none; }
.ranking-list__num {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--c-muted);
  line-height: 1;
  width: 20px;
  flex-shrink: 0;
  padding-top: 1px;
}
.ranking-list__num.is-top { color: var(--c-red); }
.ranking-list__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.5;
  letter-spacing: -0.01em;
  flex: 1;
  min-width: 0;
}
.ranking-list__title a:hover { color: var(--c-red); text-decoration: underline; }

/* リード内ランキング（さらに詰める） */
.ranking-list--dense .ranking-list__item { padding: 7px 0; }
.ranking-list--dense .ranking-list__num  { font-size: 15px; }
.ranking-list--dense .ranking-list__title { font-size: 11px; }

/* ================================================================
   RAIL: カテゴリリスト
   ================================================================ */
.rail-cat-list { border-top: 1px solid var(--c-border); }
.rail-cat-list__item {
  border-bottom: 1px solid var(--c-border);
}
.rail-cat-list__item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-body);
}
.rail-cat-list__item a:hover { color: var(--c-red); }
.rail-cat-list__item--active a { color: var(--c-red); }
.rail-cat-list__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-muted);
  font-weight: 400;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--c-bg-dark);
  color: #ccc;
  margin-top: 36px;
  border-top: 2px solid var(--c-red);
}
.footer-top {
  padding: 28px 0 22px;
  display: grid;
  grid-template-columns: 180px 1fr 1fr 1fr;
  gap: 28px;
  border-bottom: 1px solid #2a2f38;
}
.footer-logo__text {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.footer-logo__text span { color: var(--c-red); }
.footer-logo__desc { font-size: 12px; color: #888; line-height: 1.7; }
.footer-col__heading {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #2a2f38;
}
.footer-col__list li { margin-bottom: 5px; }
.footer-col__list a { font-size: 12px; color: #aaa; transition: color 0.12s; }
.footer-col__list a:hover { color: var(--c-white); }
.footer-bottom {
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom__copy { font-family: var(--font-mono); font-size: 11px; color: #555; }
.footer-bottom__links { display: flex; gap: 14px; }
.footer-bottom__links a { font-family: var(--font-mono); font-size: 11px; color: #555; }
.footer-bottom__links a:hover { color: #aaa; }

/* ================================================================
   ARTICLE PAGE
   ================================================================ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr var(--col-rail);
  gap: var(--gap-rail);
  align-items: start;
  padding-top: 0;
}
.article-main { min-width: 0; }

/* パンくず */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 0 10px;
  flex-wrap: wrap;
}
.breadcrumb a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-muted);
}
.breadcrumb a:hover { color: var(--c-red); text-decoration: underline; }
.breadcrumb__sep { font-size: 10px; color: var(--c-muted); }
.breadcrumb__current { font-family: var(--font-mono); font-size: 11px; color: var(--c-muted); }

/* 記事ヘッダー */
.article-header { margin-bottom: 18px; }
.article-header__cat { margin-bottom: 8px; }
.article-header__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--c-ink);
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 14px;
}
.article-byline__avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.article-byline__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 1px;
}
.article-byline__role {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-muted);
}
.article-byline__dates { margin-left: auto; text-align: right; }
.article-byline__date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-muted);
  line-height: 1.6;
}
.article-byline__readtime { font-family: var(--font-mono); font-size: 10px; color: var(--c-muted); }

/* アイキャッチ */
.article-eyecatch { margin-bottom: 20px; }
.article-eyecatch__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.article-eyecatch__caption {
  font-size: 11px;
  color: var(--c-muted);
  padding: 5px 0;
  border-bottom: 1px solid var(--c-border);
  line-height: 1.6;
}

/* 目次 */
.toc-wrap {
  border: 1px solid var(--c-border);
  margin-bottom: 24px;
  background: var(--c-bg-sub);
}
.toc-heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-ink);
  padding: 8px 12px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-white);
}
.toc-list { padding: 8px 12px; }
.toc-list li { margin-bottom: 3px; }
.toc-list a {
  font-size: 12px;
  color: var(--c-body);
  line-height: 1.5;
  display: block;
  padding: 2px 0 2px 10px;
  border-left: 2px solid transparent;
  transition: border-color 0.12s, color 0.12s;
}
.toc-list a:hover,
.toc-list a.is-active {
  color: var(--c-red);
  border-left-color: var(--c-red);
}

/* 記事本文 */
.article-body {
  max-width: 700px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-body);
}
.article-body h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
  padding-left: 11px;
  border-left: 3px solid var(--c-red);
  line-height: 1.4;
}
.article-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-ink);
  margin: 24px 0 9px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--c-border);
}
.article-body p { margin-bottom: 14px; }
.article-body code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--c-bg-sub);
  border: 1px solid var(--c-border);
  padding: 1px 5px;
  border-radius: 2px;
}
.article-body blockquote {
  margin: 18px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--c-border);
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
  background: var(--c-bg-sub);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 13px;
}
.article-body table th {
  background: var(--c-ink);
  color: var(--c-white);
  padding: 7px 11px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
}
.article-body table tr:nth-child(even) td { background: var(--c-bg-sub); }
.article-body table td {
  padding: 7px 11px;
  border-bottom: 1px solid var(--c-border);
  line-height: 1.6;
}

/* 本文内広告 */
.article-ad { margin: 24px 0; }

/* あわせて読みたい */
.related-inline {
  border: 1px solid var(--c-border);
  padding: 10px 12px;
  margin: 20px 0;
  background: var(--c-bg-sub);
}
.related-inline__heading {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--c-muted);
  letter-spacing: 0.06em;
  margin-bottom: 7px;
  text-transform: uppercase;
}
.related-inline__item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  border-bottom: 1px solid var(--c-border);
}
.related-inline__item:last-child { border-bottom: none; }
.related-inline__thumb {
  width: 60px; height: 40px;
  object-fit: cover;
  flex-shrink: 0;
}
.related-inline__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.5;
}
.related-inline__title a:hover { color: var(--c-red); text-decoration: underline; }

/* まとめ */
.article-summary {
  border: 1px solid var(--c-border);
  margin: 24px 0;
  background: var(--c-bg-sub);
}
.article-summary__heading {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  background: var(--c-ink);
  color: var(--c-white);
}
.article-summary__list { padding: 10px 12px; }
.article-summary__list li {
  list-style: disc;
  margin-left: 14px;
  margin-bottom: 5px;
  font-size: 13px;
  line-height: 1.7;
}

/* 著者プロフィール */
.author-card {
  border: 1px solid var(--c-border);
  padding: 14px;
  display: flex;
  gap: 14px;
  margin: 24px 0;
  background: var(--c-bg-sub);
}
.author-card__avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 2px;
}
.author-card__role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-muted);
  margin-bottom: 7px;
}
.author-card__bio { font-size: 13px; line-height: 1.7; color: var(--c-body); }

/* シェア */
.share-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  margin: 14px 0 24px;
}
.share-bar__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-muted);
  font-weight: 600;
  margin-right: 3px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-body);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.12s;
}
.share-btn:hover { border-color: var(--c-ink); }

/* 関連記事 */
.related-articles { margin-top: 6px; }
.related-articles__heading {
  font-size: 15px;
  font-weight: 800;
  color: var(--c-ink);
  border-bottom: 2px solid var(--c-ink);
  padding-bottom: 7px;
  margin-bottom: 0;
}
.related-list__item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border);
  align-items: start;
}
.related-list__thumb {
  width: 90px; height: 60px;
  object-fit: cover;
}
.related-list__cat { margin-bottom: 3px; }
.related-list__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.related-list__title a:hover { color: var(--c-red); text-decoration: underline; }
.related-list__date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-muted);
  margin-top: 2px;
  display: block;
}

/* 記事レール追従 */
.sticky-rail {
  position: sticky;
  top: 64px;
}

/* ================================================================
   CATEGORY PAGE
   ================================================================ */
.cat-header {
  background: var(--c-bg-sub);
  border-bottom: 1px solid var(--c-border);
  padding: 22px 0;
}
.cat-header__label { margin-bottom: 8px; }
.cat-header__name {
  font-size: 26px;
  font-weight: 800;
  color: var(--c-ink);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cat-header__desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-body);
  max-width: 700px;
}
.cat-articles-section { padding: 22px 0; }
.cat-article-list { margin-top: 14px; }
.cat-article-list__item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-border);
  align-items: start;
}
.cat-article-list__item:first-child { padding-top: 0; }
.cat-article-list__thumb {
  width: 130px; height: 87px;
  object-fit: cover;
}
.cat-article-list__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.cat-article-list__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--c-ink);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}
.cat-article-list__title a:hover { color: var(--c-red); text-decoration: underline; }
.cat-article-list__lead {
  font-size: 13px;
  color: var(--c-body);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-article-list__date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-muted);
  margin-top: 5px;
  display: block;
}

/* ページネーション */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 0;
}
.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-body);
  border: 1px solid var(--c-border);
  background: var(--c-white);
  text-decoration: none;
  transition: border-color 0.12s, color 0.12s;
}
.pagination__btn:hover { border-color: var(--c-ink); color: var(--c-ink); }
.pagination__btn.is-active { background: var(--c-ink); color: var(--c-white); border-color: var(--c-ink); }
.pagination__ellipsis {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-muted);
  padding: 0 4px;
}

/* ================================================================
   RESPONSIVE — 1100px
   ================================================================ */
@media (max-width: 1100px) {
  .lead-block__grid {
    grid-template-columns: 1fr 220px 180px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   RESPONSIVE — 900px
   ================================================================ */
@media (max-width: 900px) {
  /* リードブロック: ランキング非表示、2カラム */
  .lead-block__grid {
    grid-template-columns: 1fr 220px;
  }
  .lead-ranking { display: none; }
  .side-list { border-right: none; }

  /* メインレイアウト: 1カラム */
  .page-layout {
    grid-template-columns: 1fr;
  }
  .page-layout__rail { display: none; }

  /* 記事レイアウト */
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-layout .sticky-rail { display: none; }

  /* カテゴリセクション */
  .cat-section__content {
    grid-template-columns: 1fr;
  }
  .cat-feature {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 14px;
    margin-bottom: 0;
  }
  .cat-list { padding-left: 0; margin-top: 6px; }
  .cat-two-col { grid-template-columns: 1fr; }
  .cat-two-col__block {
    padding: 0;
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 14px;
    margin-bottom: 14px;
  }
  .cat-two-col__block:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
}

/* ================================================================
   RESPONSIVE — 768px
   ================================================================ */
@media (max-width: 768px) {
  .global-nav { display: none; }
  .hamburger { display: flex; }
  .utility-bar__links { display: none; }

  /* リードブロック: 1カラム */
  .lead-block__grid {
    grid-template-columns: 1fr;
  }
  .lead-article {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 14px;
    margin-bottom: 14px;
  }
  .side-list { padding: 0; }
  .lead-article__title { font-size: 21px; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .feature-grid { grid-template-columns: 1fr; }

  .article-header__title { font-size: 22px; }
  .article-byline { flex-wrap: wrap; }
  .article-byline__dates { margin-left: 0; text-align: left; }
}

/* ================================================================
   RESPONSIVE — 480px
   ================================================================ */
@media (max-width: 480px) {
  .container,
  .site-header__inner,
  .article-layout,
  .page-layout {
    padding-left: 14px;
    padding-right: 14px;
  }
  .lead-article__title { font-size: 19px; }
  .article-header__title { font-size: 20px; }
  .cat-article-list__item { grid-template-columns: 100px 1fr; }
  .cat-article-list__thumb { width: 100px; height: 66px; }
  .leaderboard-wrap { overflow-x: auto; }
  .ad-leaderboard { min-width: 320px; }
}

/* ================================================================
   WORDPRESS PAGINATION (the_posts_pagination)
   ================================================================ */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 0;
}
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-body);
  border: 1px solid var(--c-border);
  background: var(--c-white);
  text-decoration: none;
  transition: border-color 0.12s, color 0.12s;
}
.nav-links a:hover { border-color: var(--c-ink); color: var(--c-ink); }
.nav-links .current { background: var(--c-ink); color: var(--c-white); border-color: var(--c-ink); }
.nav-links .dots { border: none; color: var(--c-muted); background: none; }

/* ================================================================
   WORDPRESS 埋め込みブロック等の補正
   ================================================================ */
.wp-block-image img { max-width: 100%; height: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text {
  font-size: 11px;
  color: var(--c-muted);
  margin-top: 4px;
}
.alignleft  { float: left; margin: 0 14px 14px 0; }
.alignright { float: right; margin: 0 0 14px 14px; }
.aligncenter { display: block; margin: 0 auto 14px; }
.alignfull  { width: 100%; }

/* ================================================================
   WP Custom Logo 補正
   ================================================================ */
.custom-logo-link img { max-height: 40px; width: auto; display: block; }

/* ================================================================
   記事詳細TOC ナビ（追従）
   ================================================================ */
#toc-rail { margin-bottom: 0; }
#toc-rail .toc-list li { padding-left: 0; }

