/* ============================================================
 * sai-blog blog.css — ページ別スタイル
 * ============================================================ */

/* ============== Image placeholder ============== */
.img-ph {
  background: linear-gradient(135deg, #efeae0 0%, #f7f3ea 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-serif); color: #c0b59a;
  font-size: 13px; letter-spacing: 0.15em;
  position: relative; overflow: hidden;
}
.img-ph::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent 0, transparent 12px,
    rgba(255,255,255,0.18) 12px, rgba(255,255,255,0.18) 24px
  );
}
.img-ph__label { position: relative; z-index: 1; }

/* ============== Top page (LIG ブログ参考の要素配置) ============== */

/* 2-column layout: main + sidebar */
.top-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  padding: 64px 0;
}
.top-main { min-width: 0; }
.top-side { min-width: 0; }

@media (max-width: 980px) {
  .top-layout { grid-template-columns: 1fr; gap: 48px; }
}

/* Section heading style — 強化（縦アクセントバー + 太下線 + 余白広げ） */
.sec-head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 32px; padding: 12px 0 18px 20px;
  border-left: 4px solid var(--c-accent);
  border-bottom: 2px solid var(--c-line);
  position: relative;
}
.sec-head__label {
  font-family: var(--f-serif); font-size: 12px;
  color: var(--c-accent-dark); letter-spacing: 0.3em;
  text-transform: uppercase;
}
.sec-head__title {
  font-size: 26px; font-weight: 700; color: var(--c-heading);
  letter-spacing: 0.02em;
}
.sec-head__view-all {
  margin-left: auto; font-size: 13px; color: var(--c-meta-strong);
  font-family: var(--f-mono);
}
.sec-head__view-all:hover { color: var(--c-accent-dark); }

/* ============== Category tabs (Top の Category セクション用) ============== */
.cat-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--c-line);
}
.cat-tab {
  padding: 12px 24px; background: none; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-size: 14px; color: var(--c-meta);
  letter-spacing: 0.05em; font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.cat-tab:hover { color: var(--c-heading); }
.cat-tab.is-active {
  color: var(--c-heading); border-bottom-color: var(--c-accent);
  font-weight: 600;
}
.cat-tab__count {
  font-family: var(--f-mono); font-size: 11px; opacity: 0.6;
}

/* タブで非表示にされたカード */
.u-card.is-hidden { display: none; }

/* ============== Unified card (画像オーバーレイ型・2カラム配置) ============== */
.unified-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 28px;
  margin-bottom: 96px;
}
.u-card {
  display: block;
  transition: opacity 0.2s, transform 0.3s;
}
.u-card:hover { opacity: 0.92; transform: translateY(-2px); }

/* 画像 + オーバーレイ */
.u-card__media {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10;
  margin-bottom: 16px;
}
.u-card__media .img-ph {
  position: absolute; inset: 0;
  aspect-ratio: auto; margin-bottom: 0;
  width: 100%; height: 100%;
}
.u-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.45) 35%,
    rgba(0,0,0,0.05) 70%,
    transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px 20px;
}
.u-card__chip-row {
  position: absolute; top: 14px; right: 14px;
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 0;
}
.u-card__title {
  font-size: 17px; line-height: 1.5; font-weight: 700;
  color: #fff; letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* 画像外（抜粋・メタ） */
.u-card__excerpt {
  font-size: 13px; color: var(--c-meta-strong); line-height: 1.8;
  margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.u-card__meta {
  font-family: var(--f-mono); font-size: 11px; color: var(--c-meta);
  display: flex; gap: 10px; flex-wrap: wrap;
}

@media (max-width: 720px) {
  .unified-list { grid-template-columns: 1fr; gap: 32px; margin-bottom: 64px; }
  .u-card__title { font-size: 16px; }
}

/* Sidebar */
.side-block {
  margin-bottom: 40px; padding-bottom: 32px;
  border-bottom: 1px solid var(--c-line-soft);
}
.side-block:last-child { border-bottom: none; }
.side-block__title {
  font-family: var(--f-serif); font-size: 12px;
  color: var(--c-accent-dark); letter-spacing: 0.25em;
  text-transform: uppercase; margin-bottom: 16px;
}

/* Sidebar: search */
.side-search {
  display: flex; align-items: center;
  border: 1px solid var(--c-line);
  background: #fff;
}
.side-search input {
  flex: 1; min-width: 0; padding: 12px 16px;
  border: none; background: none; outline: none;
  font-family: inherit; font-size: 14px; color: var(--c-text);
}
.side-search input::placeholder { color: var(--c-meta); }
.side-search button {
  padding: 12px 16px; background: var(--c-heading); color: #fff;
  border: none; font-size: 12px; letter-spacing: 0.1em;
}

/* Sidebar: tag cloud (検索ソート用) */
.side-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.side-tag {
  padding: 6px 14px; background: var(--c-bg-soft);
  border: 1px solid transparent; border-radius: 100px;
  font-size: 12px; color: var(--c-meta-strong);
  font-family: var(--f-mono); letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer; display: inline-block;
}
.side-tag:hover {
  background: var(--c-accent-light); color: var(--c-accent-dark);
  border-color: var(--c-accent);
}
.side-tag.is-active {
  background: var(--c-accent); color: #fff; border-color: var(--c-accent);
}
.side-tag__count {
  font-size: 10px; opacity: 0.6; margin-left: 4px;
}

/* Sidebar: about card */
.side-about {
  text-align: center; padding: 24px;
  background: var(--c-bg-soft);
}
.side-about__avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: #fff; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-serif); color: var(--c-accent-dark); font-size: 20px;
}
.side-about__name {
  font-size: 14px; font-weight: 600; color: var(--c-heading); margin-bottom: 4px;
}
.side-about__role {
  font-family: var(--f-mono); font-size: 11px; color: var(--c-meta);
  letter-spacing: 0.1em; margin-bottom: 12px;
}
.side-about__bio {
  font-size: 12px; line-height: 1.7; color: var(--c-meta-strong);
  margin-bottom: 14px;
}

/* Sidebar: SNS row */
.side-sns { display: flex; gap: 8px; flex-wrap: wrap; }
.side-sns a {
  flex: 1; min-width: 80px; padding: 10px;
  border: 1px solid var(--c-line); text-align: center;
  font-size: 12px; color: var(--c-text);
  font-family: var(--f-mono); letter-spacing: 0.05em;
  transition: border-color 0.2s, color 0.2s;
}
.side-sns a:hover { border-color: var(--c-accent); color: var(--c-accent-dark); }

/* Hero (slim) - 旧 hero を圧縮 */
.hero-slim {
  padding: 40px 0 8px;
}
.hero-slim__title {
  font-size: clamp(22px, 3vw, 28px); line-height: 1.5;
  font-weight: 700; color: var(--c-heading); margin-bottom: 6px;
}
.hero-slim__sub {
  font-size: 13px; color: var(--c-meta);
}

/* legacy hero (旧 index で使ってる) */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--c-line-soft);
}
.hero__eyebrow {
  font-family: var(--f-serif); font-size: 13px;
  color: var(--c-accent-dark); letter-spacing: 0.25em;
  text-transform: uppercase; margin-bottom: 16px;
}
.hero__title {
  font-size: clamp(34px, 5vw, 44px); line-height: 1.4;
  font-weight: 700; color: var(--c-heading);
  margin-bottom: 16px; letter-spacing: 0.02em;
}
.hero__sub {
  font-size: 15px; color: var(--c-meta-strong);
  line-height: 1.8; max-width: 560px;
}
.hero__chips {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px;
}

.section {
  padding: 80px 0;
}
.section__title {
  font-size: 24px; font-weight: 600; color: var(--c-heading);
  margin-bottom: 8px; letter-spacing: 0.02em;
}
.section__sub {
  font-size: 13px; color: var(--c-meta);
  font-family: var(--f-serif); letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 40px;
}

/* Article card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px 32px;
}
.card {
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--c-line-soft);
  padding-bottom: 24px;
  transition: opacity 0.2s;
}
.card:hover { opacity: 0.75; }
.card__img {
  aspect-ratio: 16/10; margin-bottom: 16px;
  font-size: 11px; letter-spacing: 0.15em;
}
.card__chip-row { margin-bottom: 12px; }
.card__title {
  font-size: 19px; line-height: 1.55; font-weight: 600;
  color: var(--c-heading); margin-bottom: 10px;
}
.card__excerpt {
  font-size: 14px; line-height: 1.8; color: var(--c-meta-strong);
  margin-bottom: 14px;
}
.card__meta {
  font-size: 12px; color: var(--c-meta);
  font-family: var(--f-mono); letter-spacing: 0.02em;
  display: flex; gap: 12px; align-items: center;
}

/* About preview on top */
.about-preview {
  background: var(--c-bg-soft);
  padding: 64px 0;
  margin-top: 40px;
}
.about-preview__inner {
  display: grid; grid-template-columns: 120px 1fr; gap: 32px;
  max-width: 720px; margin: 0 auto; padding: 0 var(--pad-x);
  align-items: center;
}
.about-preview__avatar {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--c-line); display: flex; align-items: center; justify-content: center;
  font-family: var(--f-serif); color: var(--c-meta); font-size: 32px;
}
.about-preview__name {
  font-size: 17px; font-weight: 600; color: var(--c-heading); margin-bottom: 4px;
}
.about-preview__role {
  font-size: 12px; color: var(--c-meta); font-family: var(--f-mono);
  letter-spacing: 0.1em; margin-bottom: 12px;
}
.about-preview__bio {
  font-size: 14px; line-height: 1.8; color: var(--c-meta-strong);
  margin-bottom: 16px;
}

@media (max-width: 720px) {
  .hero { padding: 72px 0 56px; }
  .section { padding: 56px 0; }
  .card-grid { gap: 32px 24px; }
  .about-preview__inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .about-preview__avatar { margin: 0 auto; }
}

/* ============== Posts archive page ============== */
.archive-head {
  padding: 80px 0 32px; border-bottom: 1px solid var(--c-line-soft);
}
.archive-head__eyebrow {
  font-family: var(--f-serif); font-size: 12px;
  color: var(--c-accent-dark); letter-spacing: 0.25em;
  text-transform: uppercase; margin-bottom: 12px;
}
.archive-head__title {
  font-size: clamp(28px, 4vw, 36px); font-weight: 700;
  color: var(--c-heading); margin-bottom: 8px;
}
.archive-head__sub {
  font-size: 14px; color: var(--c-meta);
}
.archive-tabs {
  display: flex; gap: 4px; padding: 24px 0;
  border-bottom: 1px solid var(--c-line-soft); flex-wrap: wrap;
}
.archive-tab {
  padding: 10px 18px; background: none; border: none;
  font-size: 14px; color: var(--c-meta); letter-spacing: 0.05em;
  border-radius: 100px; transition: background 0.2s, color 0.2s;
  font-weight: 500;
}
.archive-tab:hover { color: var(--c-heading); background: var(--c-bg-soft); }
.archive-tab.is-active { background: var(--c-heading); color: #fff; }
.archive-tab__count {
  font-family: var(--f-mono); font-size: 12px; opacity: 0.7; margin-left: 4px;
}
.archive-list {
  padding: 48px 0;
}

/* ============== Post detail page ============== */
.post-progress {
  position: fixed; top: 71px; left: 0;
  height: 3px; width: 0; z-index: 99;
  background: var(--c-accent); transition: width 0.1s;
}

.post-head {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--c-line-soft);
}
.post-head__chips { margin-bottom: 24px; }
.post-head__title {
  font-size: clamp(28px, 4vw, 36px); line-height: 1.5;
  font-weight: 700; color: var(--c-heading);
  margin-bottom: 24px; letter-spacing: 0.02em;
}
.post-head__meta {
  display: flex; gap: 16px; align-items: center;
  font-size: 13px; color: var(--c-meta);
  font-family: var(--f-mono); letter-spacing: 0.02em;
}
.post-head__meta-sep { color: var(--c-line); }

.post-cover {
  margin: 48px 0;
  aspect-ratio: 16/9; background: var(--c-bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-serif); color: var(--c-meta);
  letter-spacing: 0.15em; font-size: 14px;
}

.post-body {
  padding: 0 0 80px;
}
.post-body p {
  font-size: 17px; line-height: 1.95; letter-spacing: 0.04em;
  color: var(--c-text); margin-bottom: 1.6em;
}
.post-body h2 {
  font-size: 24px; line-height: 1.6; font-weight: 600;
  color: var(--c-heading); margin: 2.4em 0 0.6em;
  letter-spacing: 0.02em;
}
.post-body h3 {
  font-size: 19px; line-height: 1.6; font-weight: 600;
  color: var(--c-heading); margin: 1.8em 0 0.5em;
}
.post-body h4 {
  font-size: 17px; line-height: 1.6; font-weight: 600;
  color: var(--c-heading); margin: 1.4em 0 0.4em;
}
.post-body h5 {
  font-size: 15px; line-height: 1.6; font-weight: 600;
  color: var(--c-heading); margin: 1.2em 0 0.3em;
  letter-spacing: 0.04em;
}
.post-body h6 {
  font-size: 12px; line-height: 1.6; font-weight: 700;
  color: var(--c-accent-dark); margin: 1.2em 0 0.3em;
  letter-spacing: 0.2em; text-transform: uppercase;
  font-family: var(--f-mono);
}
.post-body p.lead {
  font-size: 19px; line-height: 1.85; font-weight: 500;
  color: var(--c-heading); margin-bottom: 2em;
}
.post-body p.note {
  font-size: 13px; color: var(--c-meta);
  font-style: italic; line-height: 1.7;
}
.post-body figure {
  margin: 2em 0;
}
.post-body figcaption {
  font-size: 12px; color: var(--c-meta); text-align: center;
  margin-top: 8px; font-family: var(--f-mono); letter-spacing: 0.05em;
}
.post-body ul, .post-body ol {
  margin: 0 0 1.6em; padding-left: 1.6em;
}
.post-body ul li, .post-body ol li {
  font-size: 17px; line-height: 1.95; margin-bottom: 0.4em;
  color: var(--c-text);
}
.post-body ul li { list-style: disc; }
.post-body ol li { list-style: decimal; }
.post-body strong { font-weight: 600; color: var(--c-heading); }
.post-body em { font-style: italic; color: var(--c-meta-strong); }
.post-body a {
  color: var(--c-accent-dark);
  border-bottom: 1px solid var(--c-accent-light);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}
.post-body a:hover { border-bottom-color: var(--c-accent-dark); }
.post-body blockquote {
  border-left: 3px solid var(--c-accent);
  padding: 8px 0 8px 20px;
  margin: 1.6em 0;
  font-style: italic; color: var(--c-meta-strong);
  background: var(--c-accent-light);
  padding-left: 24px; padding-right: 24px;
}
.post-body code {
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 14px; background: var(--c-bg-soft);
  padding: 2px 6px; border-radius: 3px;
  color: var(--c-accent-dark);
}
.post-body pre {
  background: #1a1a1a; color: #e8e8e8;
  padding: 20px 24px; border-radius: 4px;
  overflow-x: auto; margin: 1.6em 0;
  font-family: 'Menlo', 'Monaco', monospace; font-size: 13px;
  line-height: 1.7;
}
.post-body pre code { background: none; color: inherit; padding: 0; }
.post-body img { margin: 2em 0; }
.post-body hr {
  border: none; border-top: 1px solid var(--c-line-soft);
  margin: 2.4em 0;
}

.post-cta {
  background: var(--c-bg-soft);
  padding: 40px 32px;
  margin: 64px 0 0;
  text-align: center;
}
.post-cta__label {
  font-family: var(--f-serif); font-size: 12px;
  color: var(--c-accent-dark); letter-spacing: 0.25em;
  text-transform: uppercase; margin-bottom: 8px;
}
.post-cta__title {
  font-size: 18px; font-weight: 600;
  color: var(--c-heading); margin-bottom: 6px;
}
.post-cta__desc {
  font-size: 14px; color: var(--c-meta-strong);
  margin-bottom: 20px;
}

.related {
  padding: 64px 0 0; border-top: 1px solid var(--c-line);
  margin-top: 80px;
}
.related__title {
  font-size: 16px; font-weight: 600; color: var(--c-heading);
  margin-bottom: 24px; letter-spacing: 0.05em;
}
.related__list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.related__item {
  display: flex; flex-direction: column;
  padding: 16px 0; transition: opacity 0.2s;
}
.related__item:hover { opacity: 0.75; }
.related__item-chip { margin-bottom: 8px; }
.related__item-title {
  font-size: 15px; font-weight: 500; line-height: 1.5;
  color: var(--c-heading); margin-bottom: 8px;
}
.related__item-meta {
  font-size: 12px; color: var(--c-meta);
  font-family: var(--f-mono);
}

@media (max-width: 720px) {
  .post-head { padding: 56px 0 32px; }
  .post-cover { margin: 32px 0; }
  .post-body p, .post-body ul li, .post-body ol li { font-size: 16px; }
  .post-body h2 { font-size: 22px; }
  .post-body h3 { font-size: 18px; }
  .post-body h4 { font-size: 16px; }
  .related__list { grid-template-columns: 1fr; }
}

/* ============== About page ============== */
.about-hero {
  padding: 96px 0 64px;
  text-align: center;
}
.about-hero__avatar {
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--c-bg-soft); margin: 0 auto 32px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-serif); color: var(--c-meta); font-size: 48px;
}
.about-hero__name {
  font-size: 28px; font-weight: 700; color: var(--c-heading);
  margin-bottom: 8px;
}
.about-hero__role {
  font-family: var(--f-mono); font-size: 13px; color: var(--c-meta);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 24px;
}
.about-bio {
  padding: 0 0 80px;
}
.about-bio p {
  font-size: 17px; line-height: 1.95; letter-spacing: 0.04em;
  color: var(--c-text); margin-bottom: 1.6em;
}
.about-links {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  padding: 32px 0;
}
.about-link {
  display: flex; flex-direction: column; padding: 24px;
  border: 1px solid var(--c-line);
  transition: border-color 0.2s;
}
.about-link:hover { border-color: var(--c-accent); }
.about-link__label {
  font-family: var(--f-serif); font-size: 11px; color: var(--c-accent-dark);
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 6px;
}
.about-link__title {
  font-size: 16px; font-weight: 600; color: var(--c-heading); margin-bottom: 4px;
}
.about-link__url {
  font-size: 12px; color: var(--c-meta); font-family: var(--f-mono);
}

@media (max-width: 720px) {
  .about-links { grid-template-columns: 1fr; }
}

/* ============================================================
 * Article Regulations Showcase
 * ============================================================ */

/* レギュレーションページ全体 */
.reg-page { padding: 64px 0 120px; }
.reg-page__head {
  border-bottom: 2px solid var(--c-line); padding-bottom: 32px; margin-bottom: 64px;
}
.reg-page__eyebrow {
  font-family: var(--f-serif); font-size: 13px;
  color: var(--c-accent-dark); letter-spacing: 0.3em;
  text-transform: uppercase; margin-bottom: 12px;
}
.reg-page__title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  color: var(--c-heading); margin-bottom: 16px;
}
.reg-page__lead {
  font-size: 15px; color: var(--c-meta-strong); line-height: 1.85;
}

.reg-section { margin-bottom: 96px; }
.reg-section__title {
  font-size: 22px; font-weight: 700; color: var(--c-heading);
  padding: 12px 0 16px 18px;
  border-left: 4px solid var(--c-accent);
  border-bottom: 2px solid var(--c-line);
  margin-bottom: 36px;
}
.reg-card {
  background: var(--c-bg-soft); border: 1px solid var(--c-line);
  padding: 28px 32px; margin-bottom: 24px;
}
.reg-card__label {
  display: inline-block; font-family: var(--f-mono);
  font-size: 11px; color: var(--c-accent-dark);
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 16px;
  padding: 4px 10px; background: var(--c-accent-light);
  border-radius: 100px;
}
.reg-card__sub {
  font-size: 12px; color: var(--c-meta);
  font-family: var(--f-mono); margin-top: 12px;
}

/* カラー見本 */
.color-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.color-chip {
  background: #fff; border: 1px solid var(--c-line); padding: 16px;
}
.color-chip__swatch {
  height: 60px; margin-bottom: 12px;
}
.color-chip__name {
  font-size: 13px; font-weight: 600; color: var(--c-heading);
  margin-bottom: 4px;
}
.color-chip__code {
  font-family: var(--f-mono); font-size: 11px; color: var(--c-meta);
}

/* ============================================================
 * 目次バリエーション
 * ============================================================ */

/* TOC-A: シンプル箇条書き */
.toc-a {
  padding: 24px 28px; background: var(--c-bg-soft);
  border-left: 3px solid var(--c-accent);
}
.toc-a__title {
  font-size: 13px; font-weight: 700; color: var(--c-heading);
  letter-spacing: 0.05em; margin-bottom: 14px;
  font-family: var(--f-mono);
}
.toc-a__list { list-style: none; padding: 0; margin: 0; }
.toc-a__list li { margin-bottom: 8px; }
.toc-a__list a {
  font-size: 14px; color: var(--c-text); line-height: 1.6;
}
.toc-a__list a:hover { color: var(--c-accent-dark); }

/* TOC-B: 番号付き */
.toc-b {
  padding: 24px 28px; background: #fff;
  border: 1px solid var(--c-line);
}
.toc-b__title {
  font-family: var(--f-serif); font-size: 11px;
  color: var(--c-accent-dark); letter-spacing: 0.25em;
  text-transform: uppercase; margin-bottom: 16px;
}
.toc-b__list { counter-reset: toc; list-style: none !important; padding: 0; margin: 0; }
.toc-b__list li {
  counter-increment: toc; padding: 8px 0 8px 36px;
  border-bottom: 1px solid var(--c-line-soft); position: relative;
  font-size: 14px; color: var(--c-text);
  list-style: none !important;
}
.post-body .toc-b__list { list-style: none !important; padding-left: 0; }
.post-body .toc-b__list li { list-style: none !important; margin-bottom: 0; }
.toc-b__list li:last-child { border-bottom: none; }
.toc-b__list li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute; left: 0; top: 8px;
  font-family: var(--f-mono); font-size: 12px;
  color: var(--c-accent); font-weight: 600;
}

/* TOC-C: インデント階層 */
.toc-c {
  padding: 24px 28px; background: var(--c-bg-soft);
}
.toc-c__title {
  font-size: 14px; font-weight: 700; color: var(--c-heading);
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
}
.toc-c ul { list-style: none; padding: 0; margin: 0; }
.toc-c > ul > li {
  margin-bottom: 6px; font-size: 14px;
}
.toc-c > ul > li > a { font-weight: 500; color: var(--c-heading); }
.toc-c > ul > li ul { padding-left: 18px; margin-top: 6px; margin-bottom: 10px; }
.toc-c > ul > li ul li {
  font-size: 13px; padding: 3px 0; color: var(--c-meta-strong);
  list-style: none; position: relative; padding-left: 14px;
}
.toc-c > ul > li ul li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 6px; height: 1px; background: var(--c-meta);
}

/* TOC-D: 開閉式（details要素ベース） */
.toc-d {
  border: 1px solid var(--c-line); background: #fff;
}
.toc-d summary {
  padding: 16px 24px; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--c-heading);
  display: flex; justify-content: space-between; align-items: center;
  list-style: none;
}
.toc-d summary::-webkit-details-marker { display: none; }
.toc-d summary::after {
  content: '+'; font-family: var(--f-mono); font-size: 18px;
  color: var(--c-accent); transition: transform 0.2s;
}
.toc-d[open] summary::after { transform: rotate(45deg); }
.toc-d__list {
  padding: 0 24px 20px; list-style: none;
}
.toc-d__list li {
  padding: 6px 0; font-size: 13px; color: var(--c-text);
}

/* TOC-E: スティッキーサイドTOC（記事タイトル+カテゴリ+左縦進捗バー連動） */
.toc-e {
  padding: 0; background: none; border: none;
  font-size: 12px;
}
.toc-e__head {
  padding: 14px 18px;
  background: var(--c-bg-soft);
  border-left: 3px solid var(--c-accent);
  margin-bottom: 24px;
}
.toc-e__chip-row { margin-bottom: 10px; }
.toc-e__title {
  font-size: 13px; line-height: 1.55; font-weight: 700;
  color: var(--c-heading); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.toc-e__body {
  position: relative;
  padding-left: 20px;
}
.toc-e__progress-track {
  position: absolute; left: 0; top: 0;
  width: 2px; height: 100%;
  background: var(--c-line);
}
.toc-e__progress-fill {
  position: absolute; left: 0; top: 0;
  width: 2px; height: 0%;
  background: var(--c-accent);
  transition: height 0.1s linear;
}
.toc-e__list { list-style: none; padding: 0; margin: 0; counter-reset: stoc; }
.toc-e__list li {
  padding: 8px 0; position: relative;
  counter-increment: stoc;
}
.toc-e__list li a {
  color: var(--c-meta); font-size: 12px; line-height: 1.5;
  transition: color 0.2s;
  display: flex; gap: 10px; align-items: baseline;
}
.toc-e__list li a::before {
  content: counter(stoc, decimal-leading-zero);
  font-family: var(--f-mono); font-size: 10px;
  color: var(--c-meta); opacity: 0.6;
  flex-shrink: 0; min-width: 18px;
  letter-spacing: 0.05em;
}
.toc-e__list li.is-active a::before {
  color: var(--c-accent-dark); opacity: 1;
}
.post--ai .toc-e__list li.is-active a::before { color: var(--c-cat-ai); }
.post--web .toc-e__list li.is-active a::before { color: var(--c-cat-web); }
.post--column .toc-e__list li.is-active a::before { color: var(--c-cat-column); }
.toc-e__list li:hover a { color: var(--c-meta-strong); }
.toc-e__list li.is-active a {
  color: var(--c-heading); font-weight: 600;
}
.toc-e__list li.is-active::before {
  content: ''; position: absolute;
  left: -23px; top: 14px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--c-accent);
  box-shadow: 0 0 0 3px #fff;
  z-index: 2;
}

/* カテゴリ別の進捗バー色（記事 body の class に応じて切替） */
.post--web .toc-e__progress-fill,
.post--web .toc-e__list li.is-active::before { background: var(--c-cat-web); }
.post--web .toc-e__head { border-left-color: var(--c-cat-web); }
.post--ai .toc-e__progress-fill,
.post--ai .toc-e__list li.is-active::before { background: var(--c-cat-ai); }
.post--ai .toc-e__head { border-left-color: var(--c-cat-ai); }
.post--column .toc-e__progress-fill,
.post--column .toc-e__list li.is-active::before { background: var(--c-cat-column); }
.post--column .toc-e__head { border-left-color: var(--c-cat-column); }

/* ============================================================
 * ポイント要素（記事内パーツ）
 * ============================================================ */

/* PT-1: Tip ボックス（電球/気付き） */
.pt-tip {
  display: flex; gap: 16px; padding: 18px 22px;
  background: var(--c-accent-light); border-left: 4px solid var(--c-accent);
  margin: 1.6em 0;
}
.pt-tip__icon {
  flex-shrink: 0; width: 28px; height: 28px;
  background: var(--c-accent); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.pt-tip__body { font-size: 14px; line-height: 1.8; color: var(--c-heading); }
.pt-tip__body strong { color: var(--c-accent-dark); }

/* PT-2: Note ボックス（情報・補足） */
.pt-note {
  padding: 18px 22px;
  background: #f0f4f8; border-left: 4px solid #4A6B8C;
  margin: 1.6em 0;
}
.pt-note__label {
  font-family: var(--f-mono); font-size: 11px; color: #4A6B8C;
  letter-spacing: 0.2em; font-weight: 700;
  margin-bottom: 8px;
}
.pt-note__body { font-size: 14px; line-height: 1.8; color: var(--c-heading); }

/* PT-3: Warning ボックス（注意） */
.pt-warn {
  padding: 18px 22px;
  background: #fdf4f0; border-left: 4px solid #c05540;
  margin: 1.6em 0;
}
.pt-warn__label {
  font-family: var(--f-mono); font-size: 11px; color: #c05540;
  letter-spacing: 0.2em; font-weight: 700; margin-bottom: 8px;
}
.pt-warn__body { font-size: 14px; line-height: 1.8; color: var(--c-heading); }

/* PT-4: ハイライト（マーカー風） */
.pt-highlight {
  background: linear-gradient(transparent 60%, var(--c-accent-light) 60%);
  padding: 0 4px; font-weight: 600;
}

/* PT-5: ステップ（番号付き大型手順） */
.pt-step {
  display: flex; gap: 20px; padding: 22px 0;
  border-bottom: 1px solid var(--c-line-soft);
}
.pt-step:last-child { border-bottom: none; }
.pt-step__num {
  flex-shrink: 0; width: 44px; height: 44px;
  background: var(--c-heading); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 18px; font-weight: 700;
  border-radius: 50%;
}
.pt-step__content { min-width: 0; }
.pt-step__title {
  font-size: 17px; font-weight: 700; color: var(--c-heading);
  margin-bottom: 6px;
}
.pt-step__desc { font-size: 14px; line-height: 1.8; color: var(--c-meta-strong); }

/* PT-6: 要点まとめ */
.pt-summary {
  padding: 24px 28px;
  background: #fff;
  border: 2px solid var(--c-heading);
  margin: 1.6em 0;
}
.pt-summary__title {
  font-size: 14px; font-weight: 700; color: var(--c-heading);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
  letter-spacing: 0.05em;
}
.pt-summary__list {
  list-style: none; padding: 0; margin: 0;
}
.pt-summary__list li {
  padding: 6px 0 6px 24px; position: relative;
  font-size: 14px; color: var(--c-text); line-height: 1.7;
}
.pt-summary__list li::before {
  content: '✓'; position: absolute; left: 0; top: 6px;
  color: var(--c-accent); font-weight: 700;
}

/* PT-7: 引用カード（人物・出典付き） */
.pt-quote {
  padding: 28px 32px;
  background: var(--c-bg-soft);
  border-left: 4px solid var(--c-accent);
  margin: 1.6em 0;
}
.pt-quote__text {
  font-size: 17px; line-height: 1.85; color: var(--c-heading);
  font-style: italic; margin-bottom: 14px;
}
.pt-quote__cite {
  font-family: var(--f-mono); font-size: 12px; color: var(--c-meta);
  letter-spacing: 0.05em;
}

/* PT-8: 比較表 */
.pt-compare {
  width: 100%; border-collapse: collapse; margin: 1.6em 0;
  font-size: 14px;
}
.pt-compare th, .pt-compare td {
  padding: 14px 16px; text-align: left;
  border-bottom: 1px solid var(--c-line);
}
.pt-compare th {
  background: var(--c-bg-soft); color: var(--c-heading);
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.05em;
}
.pt-compare td { color: var(--c-text); line-height: 1.7; }
.pt-compare tr:last-child td { border-bottom: none; }

/* ============================================================
 * カテゴリ別 記事配色（h2 アンダーライン色をカテゴリ色に）
 * ============================================================ */
.post--web .post-body h2 { border-bottom: 2px solid var(--c-cat-web); padding-bottom: 0.3em; }
.post--ai .post-body h2 { border-bottom: 2px solid var(--c-cat-ai); padding-bottom: 0.3em; }
.post--column .post-body h2 { border-bottom: 2px solid var(--c-cat-column); padding-bottom: 0.3em; }
.post--web .post-progress { background: var(--c-cat-web); }
.post--ai .post-progress { background: var(--c-cat-ai); }
.post--column .post-progress { background: var(--c-cat-column); }

/* ============================================================
 * Post with side TOC (記事 + 右スティッキー目次)
 * ============================================================ */
.post-with-toc {
  display: grid;
  grid-template-columns: 720px 1fr;
  gap: 80px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}
.post-with-toc__main { min-width: 0; }
.post-with-toc__side {
  position: sticky;
  top: 96px;
  align-self: start;
  padding-top: 96px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}
.post-with-toc__side.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (max-width: 1040px) {
  .post-with-toc {
    grid-template-columns: 1fr;
    max-width: 720px;
    gap: 0;
  }
  .post-with-toc__side { display: none; }
}

/* ============================================================
 * SP 下端スティッキー目次バー（PC では非表示）
 * ============================================================ */
.sp-toc-bar {
  display: none; /* PC では非表示・1040px 以下で出現 */
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-line);
  opacity: 0; transform: translateY(100%);
  transition: opacity 0.3s, transform 0.3s;
}
.sp-toc-bar.is-visible {
  opacity: 1; transform: translateY(0);
}

/* 上端の進捗バー */
.sp-toc-bar__progress-track {
  height: 3px; background: var(--c-line-soft); position: relative;
}
.sp-toc-bar__progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  background: var(--c-accent);
  transition: width 0.1s linear;
}

/* バー本体 */
.sp-toc-bar__inner {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
}
.sp-toc-bar__num {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--c-meta); flex-shrink: 0;
  letter-spacing: 0.05em; opacity: 0.7;
}
.sp-toc-bar__section {
  flex: 1; min-width: 0;
  font-size: 13px; font-weight: 600; color: var(--c-heading);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.4;
}
.sp-toc-bar__percent {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--c-accent-dark); flex-shrink: 0;
  letter-spacing: 0.05em; font-weight: 600;
}
.sp-toc-bar__menu {
  flex-shrink: 0; width: 36px; height: 36px;
  background: var(--c-heading); color: #fff;
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.sp-toc-bar__menu:hover { background: var(--c-accent-dark); }
.sp-toc-bar__menu svg { width: 18px; height: 18px; }

/* カテゴリ色対応 */
.post--web .sp-toc-bar__progress-fill { background: var(--c-cat-web); }
.post--ai .sp-toc-bar__progress-fill { background: var(--c-cat-ai); }
.post--column .sp-toc-bar__progress-fill { background: var(--c-cat-column); }
.post--web .sp-toc-bar__percent { color: var(--c-cat-web); }
.post--ai .sp-toc-bar__percent { color: var(--c-cat-ai); }
.post--column .sp-toc-bar__percent { color: var(--c-cat-column); }

/* 完了状態 */
.sp-toc-bar.is-complete .sp-toc-bar__section::before {
  content: '✓ 読了  '; color: var(--c-accent-dark);
}
.post--ai .sp-toc-bar.is-complete .sp-toc-bar__section::before { color: var(--c-cat-ai); }
.post--web .sp-toc-bar.is-complete .sp-toc-bar__section::before { color: var(--c-cat-web); }
.post--column .sp-toc-bar.is-complete .sp-toc-bar__section::before { color: var(--c-cat-column); }

/* SP 表示切替 */
@media (max-width: 1040px) {
  .sp-toc-bar { display: block; }
  /* 下端バー出現時は記事末に余白を足して被らないよう調整 */
  .post-with-toc__main { padding-bottom: 80px; }
}

/* ============================================================
 * SP オーバーレイ目次モーダル
 * ============================================================ */
.sp-toc-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  display: flex; align-items: flex-end; justify-content: center;
}
.sp-toc-modal.is-open {
  opacity: 1; visibility: visible;
}
.sp-toc-modal__panel {
  background: #fff; width: 100%; max-height: 85vh;
  overflow-y: auto;
  border-top-left-radius: 16px; border-top-right-radius: 16px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px 24px 32px;
}
.sp-toc-modal.is-open .sp-toc-modal__panel { transform: translateY(0); }

.sp-toc-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--c-line);
}
.sp-toc-modal__label {
  font-family: var(--f-serif); font-size: 12px;
  color: var(--c-accent-dark); letter-spacing: 0.25em;
  text-transform: uppercase;
}
.sp-toc-modal__close {
  width: 32px; height: 32px;
  background: var(--c-bg-soft); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.sp-toc-modal__close::before,
.sp-toc-modal__close::after {
  content: ''; position: absolute;
  width: 14px; height: 1px; background: var(--c-heading);
}
.sp-toc-modal__close { position: relative; }
.sp-toc-modal__close::before { transform: rotate(45deg); }
.sp-toc-modal__close::after { transform: rotate(-45deg); }

.sp-toc-modal__list { list-style: none; padding: 0; margin: 0; counter-reset: mtoc; }
.sp-toc-modal__list li {
  counter-increment: mtoc; padding: 0;
  border-bottom: 1px solid var(--c-line-soft);
}
.sp-toc-modal__list li:last-child { border-bottom: none; }
.sp-toc-modal__list li a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 16px 8px; color: var(--c-text);
  font-size: 15px; line-height: 1.5;
}
.sp-toc-modal__list li a::before {
  content: counter(mtoc, decimal-leading-zero);
  font-family: var(--f-mono); font-size: 12px;
  color: var(--c-meta); flex-shrink: 0; letter-spacing: 0.05em;
}
.sp-toc-modal__list li.is-active a {
  color: var(--c-heading); font-weight: 700;
}
.post--ai .sp-toc-modal__list li.is-active a::before { color: var(--c-cat-ai); }
.post--web .sp-toc-modal__list li.is-active a::before { color: var(--c-cat-web); }
.post--column .sp-toc-modal__list li.is-active a::before { color: var(--c-cat-column); }
