/*
Theme Name:  SSF underscores child
Template:   underscores
Author:     sumie goto
Description: 子テーマ
Version:    1.0.0
Text Domain: underscores-child
Last updated: May 29, 2026
*/

/* ============================================================
   smartsociety.jp  —  Site-wide stylesheet
   Design: structured precision / dark navy × cyan
   Fonts:  IBM Plex Sans JP (本文) + Noto Serif JP (見出しアクセント)

   bloomalot との差別化
   ─ bloomalot : 暖色・有機・個人 → ベージュ×深緑、セリフ主体
   ─ SSF       : 冷色・構造・法人 → ダークネイビー×シアン、サンセリフ主体

   Table of contents
   -----------------
   1.  Tokens & reset
   2.  Base typography
   3.  Layout helpers
   4.  Navigation
   5.  Site footer
   6.  Scroll animation
   7.  Buttons & links
   8.  Section chrome
   9.  Hero (トップ専用)
   10. Project badge / tag
   11. Feature columns (3-up)
   12. Pillar cards (4本柱)
   13. Results / 実績
   14. Member strip
   15. Network logos
   16. Member CTA banner
   17. SVG diagram wrapper
   18. Responsive overrides
   ============================================================ */


/* ── 1. Tokens & reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── surface ── */
  --bg:          #0b0f1a;   /* ページ全体の暗背景 */
  --bg-2:        #404652;   /* カード・セクション面 #111827*/
  --bg-3:        #1a2235;   /* ホバー・強調面 */

  /* ── text ── */
  --txt:         #e8edf5;   /* 本文 */
  --txt-mid:     #9aaabb;   /* 副文・説明 #9aaabb*/
  --txt-dim:     #7a90a8;   /* label / eyebrow */

  /* ── accent: 電気的シアン ── */
  --cyan:        #00c8b4;   /* メインアクセント */
  --cyan-lt:     rgba(0, 200, 180, 0.12);
  --cyan-glow:   rgba(0, 200, 180, 0.25);

  /* ── accent2: インジゴ（グラデーション脇役） ── */
  --indigo:      #3d6bff;
  --indigo-lt:   rgba(61, 107, 255, 0.15);

  /* ── borders ── */
  --line:        rgba(255,255,255,.14);
  --line-mid:    rgba(255,255,255,.22);

  /* ── type ── */
  --ff-sans:  'IBM Plex Sans JP', 'Noto Sans JP', sans-serif;
  --ff-serif: 'Noto Serif JP', Georgia, serif;
  --ff-mono:  'IBM Plex Mono', 'Courier New', monospace;

  /* ── layout ── */
  --max-w:  760px;
  --wide-w: 1080px;
  --side:   clamp(1.25rem, 5vw, 3rem);

  /* ── motion ── */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-sans);
  color: var(--txt);
  background: var(--bg);
  line-height: 1.8;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}


/* ── 2. Base typography ──────────────────────────────────── */
h1, h2, h3, h4 { font-weight:bold; line-height: 1.35; }

/* 見出しのみセリフで格調を出す */
.serif { font-family: var(--ff-serif); }

.mono  { font-family: var(--ff-mono); }

p { line-height: 1.85; }

/* eyebrow label 共通 */
.eyebrow {
  display: block;
  font-size: .85rem;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--cyan);
  font-family: var(--ff-mono);
  margin-bottom: 1rem;
}

a {
  color: var(--cyan);
}
a:visited{
   color: var(--txt-mid);
}

.hero__cta a:visited{
   color: var(--txt);
}
/* ── 3. Layout helpers ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--side);
}

.container--wide {
  width: 100%;
  max-width: var(--wide-w);
  margin-inline: auto;
  padding-inline: var(--side);
}


/* ── 4. Navigation ───────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem var(--side);
  max-width: var(--wide-w);
  margin-inline: auto;
}

.site-nav__logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.site-nav__logo-en {
  font-family: var(--ff-mono);
  font-size: 1.2rem;
  letter-spacing: .12em;
  color: var(--cyan);
  line-height: 1.1;
}

.site-nav__logo-ja {
  font-size: .85rem;
  color: var(--txt-mid);
  letter-spacing: .02em;
  line-height: 1.1;
  margin-top:0.2rem;
}

.site-nav__links ul{
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.site-nav__links a {
  font-size: .85rem;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--txt-mid);
  transition: color .2s;
}
.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] { color: var(--cyan); }

.site-nav__links .nav-cta a {
  padding: .4rem 1rem;
  border: 1px solid var(--cyan);
  border-radius: 2px;
  color: var(--cyan);
  font-size: .75rem;
  letter-spacing: .1em;
  transition: background .2s, color .2s;
}
.site-nav__links .nav-cta a:hover {
  background: var(--cyan);
  color: var(--bg);
}

/* hamburger */
.site-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.site-nav__hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--txt);
  transition: transform .25s, opacity .25s;
}
.site-nav--open .site-nav__hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-nav--open .site-nav__hamburger span:nth-child(2) { opacity: 0; }
.site-nav--open .site-nav__hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 640px) {
  .site-nav__hamburger { display: flex; }
  .site-nav__links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: .5rem 0;
  }
  .site-nav--open .site-nav__links { display: flex; }
  .site-nav__links li a {
    display: block;
    padding: .8rem var(--side);
    font-size: .9rem;
  }
  .site-nav__links .nav-cta a {
    border: none;
    border-radius: 0;
    padding: .8rem var(--side);
  }
}


/* ── 5. Site footer ──────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem var(--side);
  max-width: var(--wide-w);
  margin-inline: auto;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.site-footer__brand-en {
  font-family: var(--ff-mono);
  font-size: .8rem;
  letter-spacing: .14em;
  color: var(--cyan);
  display: block;
  margin-bottom: .3rem;
}
.site-footer__brand-ja {
  font-size: .72rem;
  color: var(--txt-dim);
  letter-spacing: .04em;
}

.site-footer__links ul{
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
}
.site-footer__links a {
  font-size: .75rem;
  color: var(--txt-mid);
  text-decoration: none;
  transition: color .2s;
}
.site-footer__links a:hover { color: var(--cyan); }

.site-footer__copy {
  font-size: .7rem;
  color: var(--txt-dim);
  margin-top: 2rem;
  font-family: var(--ff-mono);
}


/* ── 6. Scroll animation ─────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: .09s; }
.fade-up:nth-child(3) { transition-delay: .18s; }
.fade-up:nth-child(4) { transition-delay: .27s; }


/* ── 7. Buttons & links ──────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .8rem 2.25rem;
  font-family: var(--ff-sans);
  font-size: .78rem;
  letter-spacing: .14em;
  text-decoration: none;
  border: 1px solid var(--txt-mid);
  color: var(--txt);
  background: transparent;
  border-radius: 2px;
  transition: border-color .2s, color .2s, background .2s;
  cursor: pointer;
}
.btn:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--cyan {
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn--cyan:hover { background: var(--cyan); color: var(--bg); }

.btn--fill {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--bg);
  font-weight: 600;
}
.btn--fill:hover { background: #00e8d0; border-color: #00e8d0; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,200,180,.25);
  padding-bottom: 1px;
  transition: border-color .2s;
}
.text-link:hover { border-color: var(--cyan); }


/* ── 8. Section chrome ───────────────────────────────────── */
.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
  border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: none; }

.section__head {
  margin-bottom: 2.5rem;
}

.section__title {
  font-size: clamp(1.35rem, 3.5vw, 1.9rem);
  color: var(--txt);
  margin-top: .5rem;
  line-height: 1.4;
}

/* thin rule under eyebrow */
.section__rule {
  width: 32px;
  height: 1px;
  background: var(--cyan);
  margin-top: .9rem;
  margin-bottom: 1.5rem;
}


/* ── 9. Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 14vw, 10rem) var(--side) clamp(4rem, 10vw, 7rem);
  border-bottom: 1px solid var(--line);
}

/* 背景グリッド（テクノロジー感） */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 60% 40%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: var(--wide-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 800px) {
  .hero__inner {
    grid-template-columns: 1fr 380px;
    align-items: center;
    gap: 4rem;
  }
}

.hero__kicker {
  font-family: var(--ff-mono);
  font-size: 1rem;
  letter-spacing: .22em;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.hero__kicker::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cyan);
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.22;
  margin-bottom: 1.75rem;
  color: var(--txt);
}

.hero__title em {
  font-style: normal;
  color: var(--cyan);
}

.hero__lead {
  font-size: clamp(.9rem, 2.2vw, 1.05rem);
  color: var(--txt-mid);
  line-height: 1.9;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; }

/* hero right: SVG アニメーション図 */
.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.hero__visual-caption {
  font-family: var(--ff-mono);
  font-size: .68rem;
  color: var(--txt-dim);
  letter-spacing: .1em;
  text-align: center;
}

/* stat strip */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.hero__stat-num {
  font-family: var(--ff-mono);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--cyan);
  line-height: 1;
  display: block;
  margin-bottom: .3rem;
}

.hero__stat-label {
  font-size: .85rem;
  color: var(--txt-dim);
  letter-spacing: .06em;
}


/* ── 10. Project badge / tag ─────────────────────────────── */
.proj-tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: .65rem;
  letter-spacing: .12em;
  padding: .22rem .7rem;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: 2px;
  margin-bottom: .75rem;
}

.proj-tag--indigo {
  border-color: var(--indigo);
  color: #7fa0ff;
}


/* ── 11. Feature columns ─────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 560px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 860px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.75rem;
  transition: border-color .25s, background .25s;
}
.feature-card:hover {
  border-color: var(--line-mid);
  background: var(--bg-3);
}

.feature-card__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1.1rem;
  color: var(--cyan);
}

.feature-card__title {
  font-size: 1.2rem;
  color: var(--txt);
  margin-bottom: .6rem;
  line-height: 1.45;
}

.feature-card__text {
  font-size: 1rem;
  color: var(--txt-mid);
  line-height: 1.8;
}


/* ── 12. Pillar cards (4本柱) ────────────────────────────── */
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;          /* gap = 1px → 隣接するborderをgridのgapで代替 */
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

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

.pillar-card {
  background: var(--bg-2);
  padding: 2rem;
  transition: background .2s;
  text-decoration: none;
  display: block;
  color: var(--txt);
}
.pillar-card:hover { background: var(--bg-3); }

.pillar-card__num {
  font-family: var(--ff-mono);
  font-size: .85rem;
  color: var(--txt-dim);
  letter-spacing: .14em;
  margin-bottom: 1rem;
}

.pillar-card__title {
  font-size: 1.1rem;
  color: var(--txt);
  margin-bottom: .6rem;
  line-height: 1.45;
}

.pillar-card__text {
  font-size: 1rem;
  color: var(--txt-mid);
  line-height: 1.75;
}

.pillar-card__arrow {
  display: inline-block;
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--cyan);
  font-family: var(--ff-mono);
  letter-spacing: .06em;
}


/* ── 13. Results / 実績 ──────────────────────────────────── */
.results-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.result-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
.result-item:first-child { padding-top: 0; }
.result-item:last-child  { border-bottom: none; padding-bottom: 0; }

@media (min-width: 600px) {
  .result-item {
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.result-item__year {
  font-family: var(--ff-mono);
  font-size: 1rem;
  color: var(--txt-dim);
  letter-spacing: .1em;
  padding-top: .15rem;
}

.result-item__title {
  font-size: 1rem;
  color: var(--txt);
  margin-bottom: .3rem;
  line-height: 1.5;
}

.result-item__meta {
  font-size: .9rem;
  color: var(--txt-mid);
  line-height: 1.7;
}

.result-item__badge {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: .85rem;
  letter-spacing: .1em;
  padding: .18rem .6rem;
  background: var(--cyan-lt);
  color: var(--cyan);
  border-radius: 2px;
  margin-bottom: .4rem;
}


/* ── 14. Member strip ────────────────────────────────────── */
.member-strip {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (min-width: 600px) {
  .member-strip { flex-direction: row; gap: 3rem; }
}

.member-item__name {
  font-size: 1.1rem;
  color: var(--txt);
  margin-bottom: .2rem;
}

.member-item__role {
  font-family: var(--ff-mono);
  font-size: 0.83rem;
  color: var(--cyan);
  letter-spacing: .1em;
  margin-bottom: .75rem;
}

.member-item__text {
  font-size: 1rem;
  color: var(--txt-mid);
  line-height: 1.75;
}

.member-item__link {
  display: inline-block;
  margin-top: .75rem;
  font-size: .85rem;
  color: var(--txt-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.member-item__link:hover { color: var(--cyan); border-color: var(--cyan); }


/* ── 15. Network logos ───────────────────────────────────── */
.network-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.network-item {
  background: var(--bg-2);
  border: 1px solid var(--line-mid);
  border-radius: 3px;
  padding: .65rem 1.25rem;
  font-size: .8rem;
  color: var(--txt-mid);
  letter-spacing: .04em;
  transition: border-color .2s, color .2s;
  text-decoration: none;
}
.network-item:hover { border-color: var(--cyan); color: var(--cyan); }


/* ── 16. Member CTA banner ───────────────────────────────── */
.cta-banner {
  background: var(--bg-2);
  border: 1px solid var(--line-mid);
  border-radius: 4px;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-banner { grid-template-columns: 1fr auto; }
}

.cta-banner__title {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--txt);
  margin-bottom: .6rem;
  line-height: 1.4;
}

.cta-banner__text {
  font-size: .88rem;
  color: var(--txt-mid);
  line-height: 1.8;
  max-width: 520px;
}

.cta-banner__actions {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  align-items: flex-start;
}
@media (min-width: 640px) {
  .cta-banner__actions { align-items: flex-end; }
}


/* ── 17. SVG diagram wrapper ─────────────────────────────── */
.diagram-wrap {
  margin: 2rem 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2rem var(--side);
  overflow-x: auto;
}

.diagram-caption {
  font-family: var(--ff-mono);
  font-size: .68rem;
  color: var(--txt-dim);
  text-align: center;
  margin-top: 1rem;
  letter-spacing: .08em;
}


/* ── 18. Responsive overrides ────────────────────────────── */
@media (max-width: 480px) {
  .hero__stats { gap: 1.25rem; }
  .pillar-card { padding: 1.5rem; }
  .cta-banner  { padding: 1.5rem; }
  .feature-card { padding: 1.25rem; }
}


/* ── ページ共通 ───────────────────────────── */
.page-header {
  padding: clamp(3rem, 8vw, 5rem) var(--side) clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.page-header__inner {
  max-width: var(--wide-w);
  margin-inline: auto;
}
.page-header__title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--txt);
  margin-top: .75rem;
  line-height: 1.3;
}
.page-header__desc {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--txt-mid);
  max-width: 560px;
  line-height: 1.85;
}

/* ── ブログ共通 ───────────────────────────── */

/* ── カテゴリーフィルター ─────────────────── */
.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1.5rem var(--side);
  border-bottom: 1px solid var(--line);
  max-width: var(--wide-w);
  margin-inline: auto;
}
.cat-filter__item {
  display: inline-block;
  padding: .45rem 1.1rem;
  font-family: var(--ff-mono);
  font-size: .82rem;
  letter-spacing: .08em;
  border: 1px solid var(--line-mid);
  border-radius: 2px;
  color: var(--txt-mid);
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.cat-filter__item:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.cat-filter__item--active {
  border-color: var(--cyan);
  background: var(--cyan-lt);
  color: var(--cyan);
}

/* ── アーカイブ本体レイアウト ─────────────── */
.archive-layout {
  max-width: var(--wide-w);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--side);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 860px) {
  .archive-layout { grid-template-columns: 1fr 280px; gap: 4rem; align-items: start; }
}

/* ── ブログ共通スタイル（blog.html の <style> と同一） ─── */

.blog-header {
  padding: clamp(3rem, 8vw, 5rem) var(--side) clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.blog-header__inner {
  max-width: var(--wide-w);
  margin-inline: auto;
}
.blog-header__title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--txt);
  margin-top: .75rem;
  line-height: 1.3;
}
.blog-header__desc {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--txt-mid);
  max-width: 560px;
  line-height: 1.85;
}

/* ── カテゴリーフィルター ──────────────────────────── */
.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1.5rem var(--side);
  border-bottom: 1px solid var(--line);
  max-width: var(--wide-w);
  margin-inline: auto;
}
.cat-filter__item {
  display: inline-block;
  padding: .45rem 1.1rem;
  font-family: var(--ff-mono);
  font-size: .85rem;
  letter-spacing: .08em;
  border: 1px solid var(--line-mid);
  border-radius: 2px;
  color: var(--txt-mid);
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.cat-filter__item:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.cat-filter__item--active {
  border-color: var(--cyan);
  background: var(--cyan-lt);
  color: var(--cyan);
}

/* ── アーカイブ本体レイアウト ──────────────────────── */
.archive-layout {
  max-width: var(--wide-w);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--side);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 860px) {
  .archive-layout {
    grid-template-columns: 1fr 280px;
    gap: 4rem;
    align-items: start;
  }
}

/* ── 記事カード ────────────────────────────────────── */
.post-list {
  display: flex;
  flex-direction: column;
}
.post-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.post-card:first-child { padding-top: 0; }
.post-card:last-child  { border-bottom: none; }
@media (min-width: 560px) {
  .post-card {
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    align-items: start;
  }
}

/* サムネイル */
.post-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s var(--ease-out);
}
.post-card:hover .post-card__thumb img { transform: scale(1.04); }

/* サムネイルなし */
.post-card__thumb--no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: .78rem;
  color: var(--txt-dim);
  letter-spacing: .08em;
  height: 100%;
}

/* メタ情報 */
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-bottom: .65rem;
}
.post-card__cat {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: .8rem;
  letter-spacing: .1em;
  padding: .22rem .75rem;
  border: 1px solid var(--cyan);
  border-radius: 2px;
  color: var(--cyan);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.post-card__cat:hover { background: var(--cyan); color: var(--bg); }

.post-card__date {
  font-family: var(--ff-mono);
  font-size: .85rem;
  color: var(--txt-dim);
  letter-spacing: .06em;
}
.post-card__title {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--txt);
  line-height: 1.5;
  margin-bottom: .65rem;
}
.post-card__title a {
  color: var(--cyan);
  text-decoration: none;
  transition: color .2s;
}

.post-card:hover .post-card__title a ,.post-card:hover .post-card__title a:visited{ color: var(--cyan); }

.post-card__excerpt {
  font-size: .95rem;
  color: var(--txt-mid);
  line-height: 1.8;
}
.post-card__more {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .85rem;
  font-size: .85rem;
  font-family: var(--ff-mono);
  color: var(--cyan);
  letter-spacing: .06em;
}

/* ── ページネーション ────────────────────── */
/* ssf.css に追記 */
.pagination .page-numbers {
  /* .pagination__item と同じスタイルを当てる */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 .75rem;
  font-family: var(--ff-mono);
  font-size: .9rem;
  border: 1px solid var(--line-mid);
  border-radius: 2px;
  color: var(--txt-mid);
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-lt);
}
.pagination .page-numbers.dots {
  border-color: transparent;
  cursor: default;
}

/* ── サイドバー ──────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 2.5rem; }

.sidebar-widget__title {
  font-family: var(--ff-mono);
  font-size: .8rem;
  letter-spacing: .18em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}

/* カテゴリー一覧 */
.cat-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.cat-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}
.cat-list__item:last-child { border-bottom: none; }
.cat-list__link {
  font-size: .95rem;
  color: var(--txt-mid);
  text-decoration: none;
  transition: color .2s;
}
.cat-list__link:hover { color: var(--cyan); }
.cat-list__count {
  font-family: var(--ff-mono);
  font-size: .8rem;
  color: var(--txt-dim);
}

/* 最新記事ミニリスト */
.recent-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.recent-list__item {
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.recent-list__item:last-child { border-bottom: none; }
.recent-list__link {
  font-size: .92rem;
  color: var(--txt-mid);
  text-decoration: none;
  line-height: 1.55;
  display: block;
  margin-bottom: .3rem;
  transition: color .2s;
}
.recent-list__link:hover { color: var(--cyan); }
.recent-list__date {
  font-family: var(--ff-mono);
  font-size: .78rem;
  color: var(--txt-dim);
}

/* ── シングル記事レイアウト ─────────────── */
.single-layout {
  max-width: var(--wide-w);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--side);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}
@media (min-width: 900px) {
  .single-layout { grid-template-columns: 1fr 280px; gap: 5rem; align-items: start; }
}

/* ── 記事ヘッダー ───────────────────────── */
.post-header {
  padding: clamp(3rem, 8vw, 5rem) var(--side) 0;
  max-width: var(--wide-w);
  margin-inline: auto;
}

/* パンくず */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1.5rem;
}
.breadcrumb__item {
  font-family: var(--ff-mono);
  font-size: .82rem;
  color: var(--txt-dim);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumb__item:hover { color: var(--cyan); }
.breadcrumb__sep { color: var(--txt-dim); font-size: .82rem; }
.breadcrumb__current { font-family: var(--ff-mono); font-size: .82rem; color: var(--txt-mid); }

.post-header__cat {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: .82rem;
  letter-spacing: .1em;
  padding: .25rem .8rem;
  border: 1px solid var(--cyan);
  border-radius: 2px;
  color: var(--cyan);
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: background .2s, color .2s;
}
.post-header__cat:hover { background: var(--cyan); color: var(--bg); }

.post-header__title {
  font-family: var(--ff-serif);
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  color: var(--txt);
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.post-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.post-header__author {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.post-header__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: .72rem; color: var(--txt-dim);
  flex-shrink: 0;
}
.post-header__author-name {
  font-size: .9rem;
  color: var(--txt-mid);
}
.post-header__date {
  font-family: var(--ff-mono);
  font-size: .82rem;
  color: var(--txt-dim);
}
.post-header__read-time {
  font-family: var(--ff-mono);
  font-size: .82rem;
  color: var(--txt-dim);
}

/* アイキャッチ */
.post-eyecatch {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: .9rem; color: var(--txt-dim);
}
.post-eyecatch img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── 記事本文 ─────────────────────────── */
.post-body {
  font-size: 1rem;
  color: var(--txt);
  line-height: 1.95;
}

.post-body h2 {
  font-family: var(--ff-serif);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  color: var(--txt);
  margin: 2.75rem 0 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.4;
}

.post-body h3 {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--txt);
  margin: 2rem 0 .8rem;
  line-height: 1.45;
}

.post-body p {
  margin-bottom: 1.5rem;
  color: var(--txt-mid);
}

.post-body p:first-child {
  font-size: 1.08rem;
  color: var(--txt);
  line-height: 1.9;
}

.post-body a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,200,180,.3);
  transition: border-color .2s;
}
.post-body a:hover { border-color: var(--cyan); }

.post-body strong { color: var(--txt); font-weight: 600; }

.post-body ul, .post-body ol {
  margin: 0 0 1.5rem 1.5rem;
  color: var(--txt-mid);
}
.post-body li { margin-bottom: .5rem; line-height: 1.8; }

/* 引用 */
.post-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--cyan);
  background: var(--bg-2);
  border-radius: 0 4px 4px 0;
}
.post-body blockquote p {
  color: var(--txt-mid);
  font-size: .97rem;
  margin-bottom: 0;
  line-height: 1.85;
}
.post-body blockquote cite {
  display: block;
  margin-top: .65rem;
  font-family: var(--ff-mono);
  font-size: .78rem;
  color: var(--txt-dim);
  font-style: normal;
}

/* データボックス */
.data-box {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.data-box__title {
  font-family: var(--ff-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.data-box__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (min-width: 560px) {
  .data-box__grid { grid-template-columns: repeat(3, 1fr); }
}
.data-box__item {}
.data-box__num {
  font-family: var(--ff-mono);
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  color: var(--cyan);
  line-height: 1;
  display: block;
  margin-bottom: .3rem;
}
.data-box__label {
  font-size: .85rem;
  color: var(--txt-mid);
  line-height: 1.5;
}

/* インフォカード */
.info-card {
  background: rgba(0, 200, 180, 0.07);
  border: 1px solid rgba(0, 200, 180, 0.25);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.info-card__title {
  font-size: 1rem;
  color: var(--txt);
  font-weight: 600;
  margin-bottom: .65rem;
}
.info-card p {
  font-size: .92rem;
  color: var(--txt-mid);
  line-height: 1.8;
  margin-bottom: 0 !important;
}

/* ── タグ（記事末尾） ───────────────────── */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.post-tag {
  font-family: var(--ff-mono);
  font-size: .8rem;
  padding: .28rem .75rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--txt-mid);
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.post-tag:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── 著者ブロック ────────────────────────── */
.author-box {
  margin-top: 3rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.author-box__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: .75rem; color: var(--txt-dim);
  flex-shrink: 0;
}
.author-box__name { font-size: 1rem; color: var(--txt); margin-bottom: .2rem; }
.author-box__role {
  font-family: var(--ff-mono);
  font-size: .75rem;
  color: var(--cyan);
  letter-spacing: .08em;
  margin-bottom: .65rem;
}
.author-box__bio { font-size: .88rem; color: var(--txt-mid); line-height: 1.75; }

/* ── 前後記事ナビ ────────────────────────── */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 3rem;
}
.post-nav__item {
  background: var(--bg-2);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: background .2s;
}
.post-nav__item:hover { background: var(--bg-3); }
.post-nav__item--next { text-align: right; }
.post-nav__dir {
  font-family: var(--ff-mono);
  font-size: .75rem;
  color: var(--txt-dim);
  letter-spacing: .1em;
}
.post-nav__title {
  font-size: .92rem;
  color: var(--txt-mid);
  line-height: 1.5;
  transition: color .2s;
}
.post-nav__item:hover .post-nav__title { color: var(--cyan); }

/* ── 関連記事 ───────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
@media (min-width: 480px) {
  .related-grid { grid-template-columns: 1fr 1fr; }
}
.related-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: border-color .2s, background .2s;
}
.related-card:hover { border-color: var(--line-mid); background: var(--bg-3); }
.related-card__cat {
  font-family: var(--ff-mono);
  font-size: .72rem;
  color: var(--cyan);
  letter-spacing: .08em;
}
.related-card__title {
  font-size: .9rem;
  color: var(--txt-mid);
  line-height: 1.5;
  transition: color .2s;
}
.related-card:hover .related-card__title { color: var(--cyan); }
.related-card__date { font-family: var(--ff-mono); font-size: .78rem; color: var(--txt-dim); }

/* ── サイドバー ──────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 2.5rem; }
.sidebar-widget__title {
  font-family: var(--ff-mono); font-size: .8rem;
  letter-spacing: .18em; color: var(--cyan);
  text-transform: uppercase; margin-bottom: 1.25rem;
  padding-bottom: .6rem; border-bottom: 1px solid var(--line);
}
.recent-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.recent-list__item { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.recent-list__item:last-child { border-bottom: none; }
.recent-list__link {
  font-size: .92rem; color: var(--txt-mid); text-decoration: none;
  line-height: 1.55; display: block; margin-bottom: .3rem; transition: color .2s;
}
.recent-list__link:hover { color: var(--cyan); }
.recent-list__date { font-family: var(--ff-mono); font-size: .78rem; color: var(--txt-dim); }

/* 目次 */
.toc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
}
.toc__title {
  font-family: var(--ff-mono);
  font-size: .8rem;
  letter-spacing: .18em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.toc__list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.toc__item { border-bottom: 1px solid var(--line); }
.toc__item:last-child { border-bottom: none; }
.toc__link {
  display: block;
  padding: .6rem 0;
  font-size: .88rem;
  color: var(--txt-mid);
  text-decoration: none;
  line-height: 1.5;
  transition: color .2s;
}
.toc__link:hover { color: var(--cyan); }
.toc__link--sub {
  padding-left: 1rem;
  font-size: .83rem;
  color: var(--txt-dim);
}
.toc__link--sub:hover { color: var(--cyan); }

/* sticky sidebar */
@media (min-width: 900px) {
  .sidebar { position: sticky; top: 5rem; }
}