/* NewtypeHub 見た目「コックピットの画面」（2026-10-21 林さんが選んだ方向。見本: サイト運営/デザイン/作業_ガンダム/）
   並び: 決まり（色・文字）→ 土台 → 角を切った箱 → 頭（ヘッダー）→ トップの大きい絵 → 見出し・カード → 分類の札
         → 一覧・ページ送り → 記事 → MS DATA → 目次 → 本文 → 記事の下 → 足（フッター） */

/* ===== 1. 決まり（色・文字・寸法） ===== */
:root {
  --bg: #0A0F1E;          /* ページの地：深い宇宙の紺 */
  --panel: #121A2E;       /* カード・箱 */
  --read: #0F1628;        /* 記事を読む面（地より少し明るい） */
  --line: #1E2A44;        /* 細い線 */
  --line-2: #2C3B5E;      /* 少し強い線（表の枠・区切り） */
  --teal: #2EE6D0;        /* 光る青緑：線・今いる所・リンク・フォーカス */
  --teal-a: rgba(46, 230, 208, .42);
  --amber: #FFC23A;       /* 注意の黄：分類の札と小さな数字だけ */
  --text: #E8EDF6;
  --muted: #9AA6BF;
  --glow: 0 0 10px rgba(46, 230, 208, .55);
  --ff: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  --ff-en: "Rajdhani", "Avenir Next Condensed", "Bahnschrift", var(--ff);
  --cut: 14px;            /* 角を切る大きさ */
  --wrap: 1200px;
  --pad: 16px;            /* 画面の端との余白 */
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --pad: 32px; } }

/* ===== 2. 土台 ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.7 var(--ff); overflow-wrap: break-word; line-break: strict;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
h1, h2, h3, .card-title, .post-title-sub { word-break: auto-phrase; text-wrap: pretty; }
.nw { white-space: nowrap; } /* 言葉のまとまり（build.py の phrase()）。iPhone でも区切りよく折り返す */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.label {
  font-family: var(--ff-en); font-weight: 600; font-size: 13px; line-height: 1.2;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal);
}
.tag {
  display: inline-block; padding: 4px 8px 3px; border-radius: 2px;
  background: var(--amber); color: var(--bg);
  font-size: 12px; font-weight: 700; line-height: 1.3; text-decoration: none;
}

/* ===== 3. 角を切った箱（右上を45度に切る。線は背景で描くので1つの要素で済む） ===== */
.post, .spec-box, .toc, .cat-link {
  --c: var(--cut); --edge: var(--line); --fill: var(--panel);
  border: 1px solid var(--edge);
  background: linear-gradient(225deg, var(--edge) calc(var(--c) * .7071 + 1px), var(--fill) 0) border-box;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%);
}
/* カードは絵が上にあるので、右下を切る */
.card-link {
  --c: var(--cut); --edge: var(--line); --fill: var(--panel);
  border: 1px solid var(--edge);
  background: linear-gradient(315deg, var(--edge) calc(var(--c) * .7071 + 1px), var(--fill) 0) border-box;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%);
}

/* ===== 4. 頭（ヘッダー） ===== */
.site-header { position: relative; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header::after { /* 下の線の一部だけ光らせる */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal) 15%, var(--teal) 45%, transparent 80%);
  box-shadow: var(--glow); opacity: .7;
}
.header-inner { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; color: var(--teal); filter: drop-shadow(0 0 4px rgba(46, 230, 208, .65)); }
.brand-text { display: block; }
.site-name { display: block; font: 700 23px/1 var(--ff-en); letter-spacing: .02em; }
.site-tagline { display: block; margin-top: 3px; font-size: 10px; line-height: 1; letter-spacing: .18em; color: var(--muted); }
.header-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.lang-switch { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 14px; white-space: nowrap; }
.lang-switch a, .lang-switch .is-current { padding: 10px 4px; color: var(--muted); text-decoration: none; }
.lang-switch .is-current { color: var(--teal); }
.lang-switch a:hover { color: var(--text); }
.lang-switch .sep { color: var(--line-2); }
.menu-btn {
  display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px;
  padding: 0; border: 0; background: none; color: var(--text); cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 22px; height: 2px; background: currentColor; transition: transform .2s;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }
.nav-open .menu-icon { background: transparent; }
.nav-open .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }
/* スマホ・タブレット：メニューは押すと下に開く */
.cat-nav { display: none; }
.nav-open .cat-nav {
  display: block; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--panel); border-bottom: 1px solid var(--teal-a); box-shadow: 0 12px 24px rgba(0, 0, 0, .45);
}
.cat-nav ul { list-style: none; margin: 0; padding: 0; }
.cat-nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--pad); border-top: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: 16px; font-weight: 600;
}
.cat-nav a .label { font-size: 11px; color: var(--muted); }
.cat-nav a[aria-current] { color: var(--teal); }
@media (max-width: 359px) {
  .site-name { font-size: 20px; }
  .brand-mark { width: 26px; height: 26px; }
  .header-inner { gap: 8px; }
}
@media (min-width: 1080px) {
  .header-inner { height: 76px; gap: 20px; }
  .brand-mark { width: 38px; height: 38px; }
  .site-name { font-size: 28px; }
  .site-tagline { font-size: 11px; }
  .menu-btn, .cat-nav a .label { display: none; }
  .cat-nav, .nav-open .cat-nav { display: block; position: static; background: none; border: 0; box-shadow: none; }
  .cat-nav ul { display: flex; }
  .cat-nav a { position: relative; height: 76px; padding: 0 12px; border: 0; font-size: 15px; white-space: nowrap; }
  .cat-nav a:hover { color: var(--teal); }
  .cat-nav a[aria-current]::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
    background: var(--teal); box-shadow: var(--glow);
  }
}

/* ===== 5. トップの大きい絵（ヒーロー） ===== */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(55% 75% at 78% 45%, rgba(46, 230, 208, .12), transparent 70%),
    linear-gradient(rgba(46, 230, 208, .045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(46, 230, 208, .045) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg);
}
.hero-inner { display: grid; gap: 28px; padding-block: 28px 32px; }
.hero-labels {
  display: none; flex-wrap: wrap; gap: 2px 8px; margin: 0 0 14px;
  padding-left: 10px; border-left: 2px solid var(--teal); font-size: 11px; letter-spacing: .08em;
}
.hero-labels span:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--muted); }
.hero-title { margin: 0; font-size: clamp(32px, 8.6vw, 60px); line-height: 1.22; font-weight: 800; letter-spacing: .02em; }
.hero-title span { display: inline-block; }
.hero-lead { margin: 12px 0 0; font-size: clamp(16px, 4.3vw, 22px); font-weight: 700; line-height: 1.5; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 24px; margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
@media (min-width: 600px) {
  .hero-stats { display: flex; flex-wrap: wrap; gap: 12px 0; }
  .hero-stats div { padding: 0 14px 0 12px; border-left: 1px solid var(--line-2); }
  .hero-stats div:first-child { padding-left: 0; border-left: 0; }
}
.hero-stats dt { font: 600 11px/1.2 var(--ff-en); letter-spacing: .12em; color: var(--muted); }
.hero-stats dd { margin: 2px 0 0; font: 700 26px/1 var(--ff-en); color: var(--amber); }
.hero-figure { margin: 0; }
.hero-frame { position: relative; display: block; margin: 10px; }
.hero-frame img { width: 100%; aspect-ratio: 40 / 21; object-fit: cover; border: 1px solid var(--line); background: var(--panel); }
.hero-frame::after { /* 四隅のカギ（光る） */
  content: ""; position: absolute; inset: -10px; pointer-events: none;
  --b: 2px; --l: 34px; --k: var(--teal);
  background:
    linear-gradient(var(--k), var(--k)) top left / var(--l) var(--b),
    linear-gradient(var(--k), var(--k)) top left / var(--b) var(--l),
    linear-gradient(var(--k), var(--k)) top right / var(--l) var(--b),
    linear-gradient(var(--k), var(--k)) top right / var(--b) var(--l),
    linear-gradient(var(--k), var(--k)) bottom left / var(--l) var(--b),
    linear-gradient(var(--k), var(--k)) bottom left / var(--b) var(--l),
    linear-gradient(var(--k), var(--k)) bottom right / var(--l) var(--b),
    linear-gradient(var(--k), var(--k)) bottom right / var(--b) var(--l);
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 5px rgba(46, 230, 208, .8));
}
.hero-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 16px 10px 0; }
.hero-caption a { color: var(--text); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--teal-a); }
.hero-caption a:hover { color: var(--teal); }
.hero-code { color: var(--amber); margin-left: 6px; }
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 56px; padding-block: 56px 52px; }
  .hero-labels { display: flex; font-size: 12px; letter-spacing: .14em; }
  .hero-stats dd { font-size: 30px; }
}

/* ===== 6. 見出し・カード ===== */
.section { padding-top: 40px; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 18px; }
.section-title { margin: 0; padding-left: 12px; border-left: 4px solid var(--teal); font-size: 22px; font-weight: 800; line-height: 1.3; }
.section-label { order: -1; flex-basis: 100%; padding-left: 16px; font-size: 11px; color: var(--muted); }
.section-label:empty { display: none; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.card { min-width: 0; }
.card-link { display: flex; height: 100%; color: var(--text); text-decoration: none; }
.card-link:hover { --edge: var(--teal-a); }
.card-link:hover .card-title { color: var(--teal); }
.card-link:focus-visible { outline-offset: -3px; }
/* スマホ：左に絵・右に題の横長の行 */
.card-thumb { display: block; flex: none; width: 38%; align-self: flex-start; aspect-ratio: 40 / 21; overflow: hidden; background: #0D1424; }
.card-thumb:empty { display: none; }
.card-img { width: 100%; height: 100%; object-fit: cover; }
.card-body { position: relative; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; padding: 8px 12px 14px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.card-meta time { font-size: 12px; color: var(--muted); }
.card-title { font-size: 15px; font-weight: 700; line-height: 1.5; }
.card-sub { display: none; font-size: 13px; line-height: 1.6; color: var(--muted); }
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .card-link { flex-direction: column; }
  .card-thumb { width: auto; align-self: stretch; }
  .card-body { padding: 10px 14px 16px; }
  .section-label { order: 0; flex-basis: auto; padding-left: 12px; border-left: 1px solid var(--line-2); font-size: 13px; }
}
@media (min-width: 768px) {
  .section { padding-top: 56px; }
  .section-title { font-size: 26px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .card-body { padding: 12px 40px 22px 18px; gap: 8px; }
  .card-body::after { /* 右の小さな矢印 */
    content: ""; position: absolute; right: 20px; bottom: 30px; width: 9px; height: 9px;
    border-top: 2px solid var(--teal); border-right: 2px solid var(--teal); transform: rotate(45deg);
  }
  .card-title { font-size: 18px; }
  .card-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ===== 7. 分類の札（トップの「分類から探す」） ===== */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.cat-link {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  min-height: 96px; height: 100%; padding: 14px; color: var(--text); text-decoration: none; overflow: hidden;
}
.cat-link img {
  position: absolute; inset: 0 0 0 30%; width: 70%; height: 100%; object-fit: cover; opacity: .7;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%);
}
.cat-link:hover { --edge: var(--teal-a); }
.cat-name, .cat-en { position: relative; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.cat-name { font-size: 18px; font-weight: 800; line-height: 1.35; }
.cat-en { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 10px; color: var(--text); }
.cat-count { color: var(--amber); letter-spacing: .06em; }
@media (min-width: 768px) {
  .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .cat-grid li:last-child:nth-child(odd) { grid-column: auto; }
  .cat-link { min-height: 112px; padding: 16px; }
  .cat-name { font-size: 19px; }
}

/* ===== 8. 一覧・ページ送り ===== */
.list-page { margin-left: .3em; font-size: .7em; font-weight: 400; color: var(--muted); }
.list-lead { margin: -6px 0 18px; font-size: 14px; color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 32px 0 0; }
.pager a, .pager span {
  min-width: 44px; padding: 9px 12px; border: 1px solid var(--line-2); background: var(--panel);
  font: 600 16px/1.2 var(--ff-en); color: var(--text); text-align: center; text-decoration: none;
}
.pager a:hover { border-color: var(--teal); color: var(--teal); }
.pager [aria-current="page"] { border-color: var(--teal); color: var(--bg); background: var(--teal); }
.pager .pager-prev, .pager .pager-next { font-family: var(--ff); font-size: 14px; }
.pager .pager-gap { border: 0; background: none; min-width: 0; padding-inline: 4px; color: var(--muted); }

/* ===== 9. 記事 ===== */
.ad-notice {
  margin: 0; padding: 6px var(--pad); border-bottom: 1px solid var(--line); background: #0D1424;
  font-size: 1em; line-height: 1.6; color: var(--text); text-align: center;  /* PR 表記は本文と同じ大きさ以上（運営の決まり・10/21。今は広告が無いので出ない） */
}
.post-wrap { max-width: 820px; margin-inline: auto; }
.breadcrumb { padding: 10px var(--pad); font-size: 13px; color: var(--muted); }
.breadcrumb ol { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--muted); }
.breadcrumb li:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb a { color: var(--muted); text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--teal); }
.wrap > .breadcrumb { padding-inline: 0; padding-top: 16px; }
.post { --fill: var(--read); padding: 20px var(--pad) 36px; }
.post-title { margin: 12px 0 0; font-size: clamp(22px, 6.2vw, 34px); font-weight: 800; line-height: 1.4; }
.post-title-sub { display: block; margin-top: 6px; font-size: clamp(16px, 4.4vw, 21px); line-height: 1.55; }
.post-subtitle { margin: 6px 0 0; color: var(--muted); }
.post-meta { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.post-meta:empty { display: none; }
.post-hero { display: block; width: 100%; height: auto; aspect-ratio: 40 / 21; object-fit: cover; margin: 18px 0 0; border: 1px solid var(--line); background: var(--panel); }
.page .post-title { margin-top: 0; }
.post-wrap > .post:first-child { margin-top: 16px; }
@media (min-width: 768px) {
  .breadcrumb { padding-inline: 0; }
  .post { padding: 40px 56px 56px; }
  .post-wrap { padding-inline: var(--pad); box-sizing: content-box; }
}

/* ===== 10. MS DATA（機体の基本の数字。モビルスーツの記事で、本文にスペック表がある時だけ） ===== */
.spec-box { --edge: var(--teal-a); margin: 22px 0 0; padding: 14px 18px 12px; }
.spec-title { margin: 0 0 6px; font-size: 18px; font-weight: 700; text-shadow: 0 0 8px rgba(46, 230, 208, .55); }
.spec-list { margin: 0; }
.spec-list div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; padding: 7px 0; border-top: 1px dashed var(--line-2); }
.spec-list dt { font-size: 14px; color: var(--muted); }
.spec-list dd { margin: 0; font-size: 15px; font-weight: 600; }
.spec-more { display: inline-block; margin-top: 6px; padding: 6px 0; font-size: 14px; text-underline-offset: 3px; }
.spec-list:lang(en) div { grid-template-columns: 9.5em minmax(0, 1fr); }
@media (min-width: 768px) {
  .spec-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .spec-list div { grid-template-columns: 6em minmax(0, 1fr); }
  .spec-list:lang(en) div { grid-template-columns: 10em minmax(0, 1fr); }
}

/* ===== 11. 目次 ===== */
.toc { --edge: var(--teal-a); margin: 14px 0 0; padding: 4px 18px 10px; }
.toc-title {
  display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer;
  font-size: 17px; font-weight: 800; list-style: none; color: var(--teal);
}
.toc-title::-webkit-details-marker { display: none; }
.toc-title::after { /* 開け閉めの印 */
  content: ""; width: 8px; height: 8px; margin: -4px 4px 0 auto;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
}
.toc:not([open]) .toc-title::after { transform: rotate(-45deg); margin-top: 0; }
.toc-label { color: var(--muted); font-size: 11px; }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list > li { border-top: 1px solid var(--line); }
.toc-list > li > a {
  position: relative; display: flex; align-items: baseline; gap: 12px; padding: 10px 24px 10px 0;
  color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; line-height: 1.55;
}
.toc-list > li > a::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 7px; height: 7px; margin-top: -4px;
  border-top: 2px solid var(--teal); border-right: 2px solid var(--teal); transform: rotate(45deg);
}
.toc-list a:hover { color: var(--teal); }
.toc-note { font-weight: 400; color: var(--muted); }
.toc-num { flex: none; min-width: 1.5em; font: 700 15px/1 var(--ff-en); color: var(--amber); }
.toc-sub { display: none; }
@media (min-width: 768px) { /* PC だけ、小見出しも並べる */
  .toc-sub { display: flex; flex-wrap: wrap; list-style: none; margin: -4px 0 8px; padding: 0 0 0 calc(1.5em + 12px); font-size: 13.5px; }
  .toc-sub li:not(:last-child)::after { content: "／"; margin: 0 .3em; color: var(--line-2); }
  .toc-sub a { display: inline-block; padding: 2px 0; color: var(--muted); text-decoration: none; }
}

/* ===== 12. 本文 ===== */
.entry-content { max-width: 40em; margin: 28px auto 0; font-size: 17px; line-height: 1.9; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.3em; }
.entry-content h1 { margin: 0 0 1em; font-size: 20px; line-height: 1.5; color: var(--muted); } /* 本文の頭に題をもう一度書いている記事 */
.entry-content h2 {
  margin: 2.4em 0 1em; padding: 10px 0 10px 14px; border-left: 4px solid var(--teal);
  background: linear-gradient(90deg, rgba(46, 230, 208, .09), transparent 75%);
  font-size: 21px; line-height: 1.5; font-weight: 800; scroll-margin-top: 12px;
}
.entry-content h3 {
  position: relative; margin: 2em 0 .8em; padding: 0 0 8px 20px; border-bottom: 1px solid var(--line-2);
  font-size: 19px; line-height: 1.55; font-weight: 700; scroll-margin-top: 12px;
}
.entry-content h3::before {
  content: ""; position: absolute; left: 1px; top: calc(.775em - 4px); width: 8px; height: 8px;
  background: var(--teal); transform: rotate(45deg);
}
.entry-content h4 { margin: 1.6em 0 .6em; padding-left: 10px; border-left: 2px solid var(--teal-a); font-size: 17px; line-height: 1.6; }
.entry-content a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-thickness: 2px; }
.entry-content strong { color: #fff; font-weight: 700; }
.entry-content em:lang(ja) { font-style: normal; color: var(--muted); } /* 日本語の記事の em は、ほぼ末尾の注意書き。斜めの字にしない */
.entry-content ul, .entry-content ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.entry-content li { margin: .35em 0; }
.entry-content li::marker { color: var(--teal); }
.entry-content blockquote { margin: 0 0 1.3em; padding: 12px 16px; border-left: 3px solid var(--line-2); background: var(--panel); }
.entry-content blockquote > :last-child { margin-bottom: 0; }
.entry-content hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line-2); }
.entry-content code { padding: 1px 5px; background: var(--panel); border: 1px solid var(--line); font-size: .9em; }
.entry-content pre { padding: 12px; overflow-x: auto; background: var(--panel); border: 1px solid var(--line); }
.entry-content pre code { padding: 0; border: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--line-2); -webkit-overflow-scrolling: touch; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.65; }
.entry-content table:has(th:nth-child(3)) { min-width: 560px; } /* 3列以上の表は横に動かして読む */
.entry-content th, .entry-content td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: #16203A; font-weight: 700; white-space: nowrap; }
.entry-content tbody tr:nth-child(even) { background: rgba(255, 255, 255, .02); }
.entry-content tbody tr:last-child td { border-bottom: 0; }
.entry-content table:not(:has(th:nth-child(3))) td:first-child { width: 1%; white-space: nowrap; color: var(--muted); }
.entry-content td strong { color: inherit; font-weight: 600; }
.notice { padding: 12px 16px; border: 1px solid var(--amber); background: rgba(255, 194, 58, .08); }
.contact-form iframe { display: block; width: 100%; border: 0; background: #fff; }
@media (min-width: 768px) {
  .entry-content h2 { font-size: 24px; }
  .entry-content h3 { font-size: 20px; }
}

/* ===== 13. 記事の下（タグ・関連記事） ===== */
.post-footer { max-width: 40em; margin: 2.4em auto 0; padding-top: 16px; border-top: 1px solid var(--line); }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.post-tags li { padding: 2px 10px; border: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.related { padding: 40px var(--pad) 0; }
@media (min-width: 768px) { .related { padding-inline: 0; } }

/* ===== 14. 足（フッター） ===== */
.site-footer { margin-top: 56px; padding: 28px 0 36px; border-top: 1px solid var(--line); background: #080C18; font-size: 14px; }
.footer-inner { display: flex; flex-direction: column; gap: 16px; }
.brand-small .brand-mark { width: 24px; height: 24px; }
.brand-small .site-name { font-size: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding: 6px 0; color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--teal); text-decoration: underline; }
.copyright { margin: 0; font: 600 13px/1.4 var(--ff-en); letter-spacing: .08em; color: var(--muted); }
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; align-items: center; gap: 32px; }
  .copyright { margin-left: auto; }
}

/* 動きを減らしたい人の設定に合わせる */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
