/* ASTRONOTE 専用CSS（design_handoff_astronote_astroworks/ASTRONOTE_SPEC.md 参照）
   配色・書体などASTROWORKS(astroworks.css)とは意図的に共有しない */

/* --- 0. レスポンシブ CSS変数（SPEC 3.6。名前は SPEC のまま・変更禁止） --- */
.an-body {
  --hpad: 36px; --tagline: inline; --navtext: inline; --hero-pt: 110px; --hero-px: 56px;
  --hero-dir: row; --hero-align: flex-end; --hero-gap: 44px; --sec-px: 48px;
  --hide-sm: block; --title-basis: auto; --fig-h: min(56vh, 520px); --fig-op: 0.9;
  --burger: none; --an-cta: inline; --feat-basis: clamp(560px, 42vw, 680px);
  --fig-max: 78%; --rel-cols: 120px minmax(0, 1fr) 28px; --k-basis: 148px; --card-min: 250px;
  --rail: flex; --h1-order: 2; --navi-bubble: block;
}
@media (max-width: 1100px) {
  .an-body { --tagline: none; --navtext: none; --burger: flex; --an-cta: none;
    --hero-pt: 98px; --hero-px: 34px; --sec-px: 32px; --feat-basis: clamp(420px, 50vw, 680px); --fig-max: 92%; }
}
@media (max-width: 900px) {
  .an-body { --hero-dir: column; --hero-align: flex-start; --hero-gap: 26px; --h1-order: 0; --feat-basis: 100%; --fig-max: 100%; }
}
@media (max-height: 600px) {
  .an-body { --navi-bubble: none; }
}
@media (max-width: 2200px) {
  .an-body { --rail: none; }
}
@media (max-width: 720px) {
  .an-body { --hpad: 16px; --hero-pt: 92px; --hero-px: 20px; --hero-dir: column; --hero-align: flex-start; --hero-gap: 26px;
    --sec-px: 20px; --hide-sm: none; --title-basis: 100%; --h1-order: 0; --fig-h: min(40vh, 360px); --fig-op: 0.6;
    --rel-cols: minmax(0, 1fr); --k-basis: 100%; --card-min: 190px; }
}
@media (max-width: 420px) {
  .an-body { --card-min: 100%; }
}

/* --- 1. Keyframes（SPEC 3.7。名前は SPEC のまま） --- */
@keyframes orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-18px) rotate(1.2deg); } }
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }
@keyframes skyDrift { 0% { transform: translate(0, 0); } 50% { transform: translate(22px, -12px); } 100% { transform: translate(0, 0); } }
@keyframes charRise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* --- 2. 基本トークン・ベース --- */
.an-body {
  background: #04050b;
  color: #ece9df;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}
.an-body .an-mono { font-family: 'IBM Plex Mono', monospace; }
/* :where(.an-body) a で詳細度0に。.an-body a だと (0,1,1) になり .an-mission__cta 等の単一クラス指定に勝ってボタン文字色が本文色に潰れる */
:where(.an-body) a { color: inherit; text-decoration: none; }
.an-body ::selection { background: rgba(227, 194, 127, 0.35); }

.an-sky {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none;
}

#body_wrap.an { position: relative; min-height: 100vh; }

/* .an-sky(z-index:0)が通常フローより前面に出るため、直下の主要ブロックだけ relative+z-index:1 で持ち上げる（#body_wrap.an > * と一括指定すると .an-header 等の position:fixed に (ID1,class1) で勝ってしまうため個別列挙） */
#body_wrap.an > .an-top,
#body_wrap.an > .an-single,
#body_wrap.an > .an-catpage,
#body_wrap.an > .an-staticpage,
#body_wrap.an > .an-articlespage {
  position: relative;
  z-index: 1;
}

/* --- 3. ヘッダー（固定 66px） --- */
.an-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--hpad); height: 66px;
  border-bottom: 1px solid rgba(227, 194, 127, 0.25);
  background: rgba(4, 5, 11, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 18px rgba(10, 10, 20, 0.35);
}
.an-header__brand { display: flex; align-items: center; gap: 14px; min-width: 0; white-space: nowrap; }
.an-header__logo { width: 34px; height: 26px; flex: 0 0 auto; }
.an-header__name { font-family: 'Shippori Mincho B1', serif; font-weight: 800; font-size: 20px; letter-spacing: 0.22em; }
.an-header__tagline { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.14em; color: #8f94a8; display: var(--tagline); }
.an-header__nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); flex: 0 0 auto; }
.an-header__navlink { white-space: nowrap; font-size: 14px; letter-spacing: 0.14em; color: #b9bdcc; display: var(--navtext); transition: color 0.2s; }
.an-header__navlink:hover, .an-header__navlink[aria-current="page"] { color: #e3c27f; }
.an-header__searchform { display: var(--navtext); }
.an-header__search {
  background: rgba(236, 233, 223, 0.06); border: 1px solid rgba(236, 233, 223, 0.22); color: #ece9df;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; padding: 8px 12px; width: 150px; outline: none;
}
.an-header__search:focus-visible { border-color: rgba(227, 194, 127, 0.65); outline: none; }
.an-header__cta {
  display: var(--an-cta); white-space: nowrap; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.12em;
  color: #e3c27f; border: 1px solid rgba(227, 194, 127, 0.55); padding: 9px 18px; transition: background 0.2s;
}
.an-header__cta:hover { background: rgba(227, 194, 127, 0.12); }
.an-header__burger {
  display: var(--burger); flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; background: none; border: 1px solid rgba(227, 194, 127, 0.4);
}
.an-header__burger-line { display: block; width: 20px; height: 1.5px; background: #e3c27f; }

.an-menu {
  position: fixed; top: 66px; left: 0; right: 0; z-index: 49;
  background: rgba(4, 5, 11, 0.985); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(227, 194, 127, 0.25);
  padding: 8px var(--hpad) 22px; display: flex; flex-direction: column;
  animation: pageIn 0.35s ease both;
}
.an-menu[hidden] { display: none; }
.an-menu__link { font-size: 15px; letter-spacing: 0.14em; color: #ece9df; padding: 16px 2px; border-bottom: 1px solid rgba(236, 233, 223, 0.12); }
.an-menu__search {
  margin-top: 16px; background: rgba(236, 233, 223, 0.06); border: 1px solid rgba(236, 233, 223, 0.22); color: #ece9df;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em; padding: 13px 14px; width: 100%; outline: none;
}
.an-menu__search:focus-visible { border-color: rgba(227, 194, 127, 0.65); }
.an-menu__cta {
  cursor: pointer; text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.12em;
  color: #e3c27f; border: 1px solid rgba(227, 194, 127, 0.55); padding: 14px 18px; margin-top: 12px;
}

/* --- 4. ほしまるナビゲータードック --- */
.an-navi {
  position: fixed; right: 26px; bottom: 26px; z-index: 45;
  display: flex; align-items: flex-end; gap: 14px; max-width: min(88vw, 420px);
  animation: pageIn 0.5s ease both;
}
.an-navi[hidden] { display: none; }
.an-navi__bubble {
  display: var(--navi-bubble); position: relative; flex: 1 1 auto; min-width: 0;
  border: 1px solid rgba(236, 233, 223, 0.18); background: rgba(6, 8, 18, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 13px 16px 14px;
}
.an-navi__bubble-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.an-navi__bubble-label { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.2em; color: #e3c27f; }
.an-navi__bubble-close { cursor: pointer; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #8f94a8; line-height: 1; }
.an-navi__bubble-close:hover { color: #e3c27f; }
.an-navi__bubble-text { margin: 0; font-size: 14px; line-height: 1.9; color: #d3d6e0; text-wrap: pretty; }
.an-navi__avatar {
  position: relative; flex: 0 0 auto; width: 120px; height: 120px; border-radius: 50%; overflow: hidden;
  border: 1.5px solid rgba(227, 194, 127, 0.7); background: radial-gradient(circle at 50% 30%, rgba(64, 78, 148, 0.5), #060814);
  box-shadow: 0 0 30px rgba(227, 194, 127, 0.32); animation: bob 6s ease-in-out infinite;
}
.an-navi__avatar img { position: absolute; width: 112%; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: none; }

/* --- 5. 星図パネル（TOP / カテゴリー共用） --- */
.an-starmap { display: flex; flex-wrap: wrap; }
.an-starmap__list {
  order: 1; flex: 1 1 340px; min-width: min(280px, 100%);
  display: flex; flex-direction: column; justify-content: center; padding: 14px 20px;
  position: relative; overflow: hidden;
}
.an-starmap--paper .an-starmap__list {
  background: radial-gradient(115% 130% at 0% 100%, rgba(138, 106, 48, 0.12), rgba(138, 106, 48, 0.03) 55%, rgba(0, 0, 0, 0) 78%),
    radial-gradient(70% 60% at 100% 0%, rgba(138, 106, 48, 0.05), rgba(0, 0, 0, 0) 65%);
}
.an-starmap--night .an-starmap__list {
  background: radial-gradient(115% 130% at 0% 100%, rgba(64, 78, 148, 0.22), rgba(64, 78, 148, 0.05) 55%, rgba(0, 0, 0, 0) 78%),
    radial-gradient(70% 60% at 100% 0%, rgba(227, 194, 127, 0.06), rgba(0, 0, 0, 0) 65%);
}
/* 五芒星は線のみで見せるため polygon にも fill:none を明示（親SWELLの svg:not([fill]){fill:currentcolor} 対策。common.css参照） */
.an-starmap__list-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: none; }
.an-starmap__list-bg polygon { fill: none; }
.an-starmap--paper .an-starmap__list-bg polygon:nth-child(1) { stroke: rgba(138, 106, 48, 0.3); }
.an-starmap--paper .an-starmap__list-bg polygon:nth-child(2) { stroke: rgba(60, 52, 38, 0.14); }
.an-starmap--paper .an-starmap__list-bg polygon:nth-child(3) { stroke: rgba(60, 52, 38, 0.11); }
.an-starmap--paper .an-starmap__list-bg polygon:nth-child(4) { stroke: rgba(60, 52, 38, 0.08); }
.an-starmap--paper .an-starmap__list-bg polygon:nth-child(5) { stroke: rgba(60, 52, 38, 0.05); }
.an-starmap--night .an-starmap__list-bg polygon:nth-child(1) { stroke: rgba(227, 194, 127, 0.14); }
.an-starmap--night .an-starmap__list-bg polygon:nth-child(2) { stroke: rgba(236, 233, 223, 0.1); }
.an-starmap--night .an-starmap__list-bg polygon:nth-child(3) { stroke: rgba(236, 233, 223, 0.07); }
.an-starmap--night .an-starmap__list-bg polygon:nth-child(4) { stroke: rgba(236, 233, 223, 0.05); }
.an-starmap--night .an-starmap__list-bg polygon:nth-child(5) { stroke: rgba(236, 233, 223, 0.04); }

.an-starmap__row {
  width: 100%; text-align: left; display: flex; align-items: stretch; position: relative; z-index: 1;
  border-bottom: 1px solid rgba(60, 52, 38, 0.12);
}
.an-starmap--night .an-starmap__row { border-bottom-color: rgba(236, 233, 223, 0.1); }
.an-starmap__row-rail { flex: 0 0 58px; position: relative; display: flex; align-items: center; justify-content: center; }
.an-starmap__row-rail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(60, 52, 38, 0.16); }
.an-starmap--night .an-starmap__row-rail::before { background: rgba(236, 233, 223, 0.12); }
.an-starmap__row-hole { fill: #faf7ee; }
.an-starmap--night .an-starmap__row-hole { fill: transparent; }
.an-starmap__row-glyph { fill: #d8d2c4; stroke: rgba(90, 80, 60, 0.45); stroke-width: 1; transform: scale(0.68); filter: drop-shadow(0 0 5px rgba(90, 80, 60, 0.15)); transition: all 0.3s ease; }
.an-starmap__row.is-active .an-starmap__row-glyph { fill: #e3c27f; stroke: rgba(138, 106, 48, 0.9); transform: scale(1); filter: drop-shadow(0 0 5px rgba(138, 106, 48, 0.5)); }
/* 2026-09-02: カテゴリー枠の縦幅を詰める要望で行の上下padding 16→11px・gap 6→4px（TOP・カテゴリー一覧の両方に効く） */
.an-starmap__row-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 11px 12px 11px 14px; transition: background 0.2s; }
.an-starmap__row:hover .an-starmap__row-body { background: rgba(60, 52, 38, 0.05); }
.an-starmap--night .an-starmap__row:hover .an-starmap__row-body { background: rgba(236, 233, 223, 0.04); }
.an-starmap__row.is-active .an-starmap__row-body { background: rgba(138, 106, 48, 0.1); }
.an-starmap--night .an-starmap__row.is-active .an-starmap__row-body { background: rgba(227, 194, 127, 0.09); }
.an-starmap__row-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.an-starmap__row-jp { font-family: 'Shippori Mincho B1', serif; font-weight: 700; font-size: 19px; white-space: nowrap; color: #3d3931; }
.an-starmap--night .an-starmap__row-jp { color: #e6e3d8; }
.an-starmap__row.is-active .an-starmap__row-jp { color: #8a6a30; }
.an-starmap--night .an-starmap__row.is-active .an-starmap__row-jp { color: #e3c27f; }
.an-starmap__row-en { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 0.18em; color: #a89e87; }
.an-starmap--night .an-starmap__row-en { color: #6b7089; }
.an-starmap__row-count { margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; white-space: nowrap; color: #6b6455; }
.an-starmap--night .an-starmap__row-count { color: #8f94a8; }
.an-starmap__row.is-active .an-starmap__row-count { color: #8a6a30; }
.an-starmap--night .an-starmap__row.is-active .an-starmap__row-count { color: #e3c27f; }
.an-starmap__row-desc { font-size: 11.5px; line-height: 1.8; color: #6b6455; text-wrap: pretty; }
.an-starmap--night .an-starmap__row-desc { color: #a9aec0; }

.an-starmap__stars {
  order: 2; flex: 1 1 380px; min-width: min(300px, 100%); position: relative; min-height: 380px; overflow: hidden; /* 2026-09-02: 460→380（縦幅を詰める要望） */
  background: radial-gradient(90% 80% at 70% 25%, rgba(64, 78, 148, 0.35), rgba(0, 0, 0, 0) 65%),
    radial-gradient(70% 60% at 20% 80%, rgba(96, 58, 132, 0.22), rgba(0, 0, 0, 0) 60%), #070a16;
  border-left: 1px solid rgba(60, 52, 38, 0.2);
}
.an-starmap--night .an-starmap__stars { border-left-color: rgba(236, 233, 223, 0.1); }
.an-starmap__field {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.75;
  background-image:
    radial-gradient(1.3px 1.3px at 8% 12%, #dfe4f2 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 34%, #dfe4f2 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 37% 8%, #f4ecd8 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 22%, #dfe4f2 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 68% 15%, #dfe4f2 50%, transparent 51%),
    radial-gradient(1px 1px at 84% 30%, #f4ecd8 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 93% 55%, #dfe4f2 50%, transparent 51%),
    radial-gradient(1px 1px at 12% 60%, #dfe4f2 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 30% 78%, #dfe4f2 50%, transparent 51%),
    radial-gradient(1px 1px at 47% 58%, #f4ecd8 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 63% 84%, #dfe4f2 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 68%, #dfe4f2 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 88%, #dfe4f2 50%, transparent 51%),
    radial-gradient(0.9px 0.9px at 55% 92%, #dfe4f2 50%, transparent 51%),
    radial-gradient(0.9px 0.9px at 18% 92%, #dfe4f2 50%, transparent 51%);
}
.an-starmap__line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.an-starmap__line polyline { fill: none; stroke: rgba(227, 194, 127, 0.28); stroke-width: 0.35; stroke-dasharray: 1.6 1.6; }
.an-starmap__star {
  position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 2;
}
.an-starmap__star-glyph { overflow: visible; }
.an-starmap__star-glyph polygon { fill: #dfe4f2; stroke: rgba(223, 228, 242, 0.4); stroke-width: 1; transform: scale(0.62); filter: drop-shadow(0 0 6px rgba(223, 228, 242, 0.45)); transition: all 0.3s ease; }
.an-starmap__star.is-active .an-starmap__star-glyph polygon { fill: #e3c27f; stroke: rgba(227, 194, 127, 0.9); transform: scale(1); filter: drop-shadow(0 0 6px rgba(227, 194, 127, 0.9)); }
/* 星図側のカテゴリー名は黒地で読みづらいとの指摘（2026-08-14）により 10px/#8f94a8 → 11.5px/#b9bdcc */
.an-starmap__star-label { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.12em; color: #b9bdcc; white-space: nowrap; }
.an-starmap__star.is-active .an-starmap__star-label { color: #e3c27f; }
.an-starmap__hoshi { position: absolute; transform: translate(-50%, -118%); transition: left 0.8s cubic-bezier(0.45, 0, 0.2, 1), top 0.8s cubic-bezier(0.45, 0, 0.2, 1); z-index: 3; pointer-events: none; }
.an-starmap__hoshi-avatar {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden; position: relative;
  border: 1.5px solid rgba(227, 194, 127, 0.8); background: radial-gradient(circle at 50% 30%, rgba(64, 78, 148, 0.5), #060814);
  box-shadow: 0 0 16px rgba(227, 194, 127, 0.5); animation: bob 4s ease-in-out infinite;
}
.an-starmap__hoshi-avatar img { position: absolute; width: 112%; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: none; }
.an-starmap__hoshi-bubble {
  position: absolute; top: 50%; transform: translateY(-50%); left: 62px; width: 200px; box-sizing: border-box;
  border: 1px solid rgba(227, 194, 127, 0.4); background: rgba(6, 8, 18, 0.9); padding: 10px 13px;
}
.an-starmap__hoshi-bubble.is-left { left: auto; right: 62px; }
.an-starmap__hoshi-bubble-label { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 8.5px; letter-spacing: 0.2em; color: #e3c27f; margin-bottom: 4px; }
.an-starmap__hoshi-bubble-text { display: block; font-size: 11.5px; line-height: 1.85; color: #d3d6e0; text-wrap: pretty; }
.an-starmap--paper .an-starmap__hoshi-avatar { border-color: rgba(138, 106, 48, 0.6); box-shadow: 0 0 16px rgba(138, 106, 48, 0.3); }
.an-starmap--paper .an-starmap__hoshi-bubble { border-color: rgba(138, 106, 48, 0.45); background: rgba(250, 247, 238, 0.96); box-shadow: 0 4px 14px rgba(60, 52, 38, 0.14); }
.an-starmap--paper .an-starmap__hoshi-bubble-label { color: #8a6a30; }
.an-starmap--paper .an-starmap__hoshi-bubble-text { color: #3d3931; }
.an-starmap__status { position: absolute; left: 18px; bottom: 14px; font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.18em; color: #8f94a8; white-space: nowrap; }

/* --- 6. archive-astronote.php（TOP） --- */
.an-top { animation: pageIn 0.6s ease both; }

/* --- (a) ヒーロー --- */
.an-hero {
  position: relative; min-height: 100vh; box-sizing: border-box;
  padding: var(--hero-pt) var(--hero-px) max(120px, min(240px, 30vh));
  display: flex; flex-direction: column; justify-content: space-between;
}
.an-hero__ring { position: absolute; right: -30vmin; top: -52vmin; width: 120vmin; height: 120vmin; border-radius: 50%; pointer-events: none; border: 1px solid rgba(236, 233, 223, 0.09); }
.an-hero__ring--inner { right: -20vmin; top: -42vmin; width: 98vmin; height: 98vmin; border-color: rgba(236, 233, 223, 0.05); }
.an-hero__ring-spin { position: absolute; inset: 0; animation: orbit 110s linear infinite; }
.an-hero__ring-dot { position: absolute; top: -3px; left: 50%; width: 7px; height: 7px; margin-left: -3px; border-radius: 50%; background: #e3c27f; box-shadow: 0 0 14px rgba(227, 194, 127, 0.9); }
.an-hero__body {
  display: flex; flex-direction: var(--hero-dir); justify-content: space-between; align-items: var(--hero-align);
  gap: var(--hero-gap); min-width: 0; position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto;
}
.an-hero__title {
  order: var(--h1-order); flex: 0 0 auto; padding-right: min(4vw, 70px); display: flex; flex-direction: row-reverse; gap: 0.35em;
  font-family: 'Shippori Mincho B1', serif; font-weight: 800; font-size: clamp(38px, min(8.5vh, 6vw), 94px); letter-spacing: 0.14em;
  text-shadow: 0 2px 24px rgba(4, 5, 11, 0.85);
}
.an-hero__title-col { writing-mode: vertical-rl; white-space: nowrap; line-height: 1.15; margin-top: -0.25em; }
.an-hero__char { display: inline-block; animation: charRise 0.5s ease both; }
.an-hero__feat { order: 1; flex: 0 1 var(--feat-basis); min-width: 0; display: flex; flex-direction: column; gap: 18px; padding-bottom: 8px; }
.an-hero__feat-label { display: flex; align-items: center; gap: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.24em; color: #e3c27f; }
.an-hero__feat-line { width: 26px; height: 1px; background: #e3c27f; }
.an-hero__slides { overflow: hidden; }
.an-hero__slides-track { display: flex; transition: transform 0.85s cubic-bezier(0.45, 0, 0.2, 1); transform: translateX(calc(var(--an-feat-idx, 0) * -100%)); }
.an-hero__slide { flex: 0 0 100%; min-width: 0; box-sizing: border-box; padding-right: 24px; display: flex; flex-direction: column; gap: 16px; }
.an-hero__slide-title {
  display: block; font-family: 'Shippori Mincho B1', serif; font-weight: 700; font-size: clamp(27px, 1.8vw, 34px);
  line-height: 1.65; letter-spacing: 0.03em; text-shadow: 0 2px 20px rgba(4, 5, 11, 0.8); text-wrap: balance;
}
.an-hero__slide-title:hover { color: #e3c27f; }
.an-hero__slide-lead { margin: 0; font-size: clamp(15px, 1.05vw, 18px); line-height: 2.05; color: #9298ad; max-width: 44ch; text-wrap: pretty; }
.an-hero__slide-more { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: clamp(14px, 0.95vw, 16px); letter-spacing: 0.16em; color: #ece9df; }
.an-hero__slide-more:hover { color: #e3c27f; }
.an-hero__dots { display: flex; align-items: center; gap: 14px; }
.an-hero__dot { display: flex; flex-direction: column; gap: 6px; width: 56px; }
.an-hero__dot-n { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.16em; color: #3d4258; }
.an-hero__dot-bar { height: 2px; background: rgba(236, 233, 223, 0.2); transition: background 0.4s; }
.an-hero__dot.is-active .an-hero__dot-n { color: #e3c27f; }
.an-hero__dot.is-active .an-hero__dot-bar { background: #e3c27f; }
.an-hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.an-hero__scroll span:first-child { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 0.3em; color: #8f94a8; }
.an-hero__scroll-cue { width: 1px; height: 44px; background: rgba(236, 233, 223, 0.5); animation: cue 2.4s ease-in-out infinite; }

/* --- (b) 紙面パート --- */
.an-paper {
  position: relative; overflow: hidden; color: #2a2620;
  background-image:
    radial-gradient(1.3px 1.3px at 23% 18%, rgba(110, 100, 80, 0.28) 50%, transparent 51%),
    radial-gradient(1px 1px at 67% 42%, rgba(110, 100, 80, 0.22) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 45% 71%, rgba(110, 100, 80, 0.24) 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 88%, rgba(110, 100, 80, 0.18) 50%, transparent 51%),
    linear-gradient(180deg, rgba(244, 240, 230, 0) 0px, rgba(223, 216, 200, 0.6) 80px, rgba(239, 234, 223, 0.97) 150px, #f2eee3 210px, #f4f0e6 100%);
  background-size: 520px 460px, 640px 560px, 760px 680px, 830px 740px, 100% 100%;
  background-repeat: repeat, repeat, repeat, repeat, no-repeat;
}
.an-paper__deco { position: absolute; inset: 0; pointer-events: none; }
.an-paper__ring { position: absolute; border-radius: 50%; pointer-events: none; display: block; }
.an-paper__ring--1 { right: -14vmin; top: 90px; width: 46vmin; height: 46vmin; border: 1px solid rgba(138, 106, 48, 0.22); }
.an-paper__ring--1b { right: -6vmin; top: calc(90px + 8vmin); width: 30vmin; height: 30vmin; border: 1px solid rgba(138, 106, 48, 0.13); }
.an-paper__ring--2 { left: -20vmin; top: 56%; width: 54vmin; height: 54vmin; border: 1px solid rgba(60, 52, 38, 0.13); }
.an-paper__ring--2b { left: -9vmin; top: calc(56% + 9.5vmin); width: 35vmin; height: 35vmin; border: 1px solid rgba(60, 52, 38, 0.08); }
.an-paper__ring--3 { right: -15vmin; top: 72%; width: 50vmin; height: 50vmin; border: 1px solid rgba(138, 106, 48, 0.18); }
.an-paper__ring--3b { right: -6vmin; top: calc(72% + 9vmin); width: 32vmin; height: 32vmin; border: 1px solid rgba(138, 106, 48, 0.1); }
.an-paper__ring--4 { left: -18vmin; top: calc(76% + 20vmin); width: 44vmin; height: 44vmin; border: 1px solid rgba(60, 52, 38, 0.1); }
.an-paper__ring-spin { position: absolute; inset: 0; animation: orbit 70s linear infinite; }
.an-paper__ring--2 .an-paper__ring-spin { animation-duration: 95s; animation-direction: reverse; }
.an-paper__ring--3 .an-paper__ring-spin { animation-duration: 88s; }
.an-paper__ring--4 .an-paper__ring-spin { animation-duration: 100s; animation-direction: reverse; }
.an-paper__ring-spin--rev { animation-direction: reverse; }
.an-paper__ring-dot { position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #b98f4e; box-shadow: 0 0 8px rgba(138, 106, 48, 0.5); }
.an-paper__ring-dot--dim { width: 5px; height: 5px; margin-left: -2.5px; background: rgba(90, 80, 60, 0.7); box-shadow: none; }

.an-section { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 72px var(--sec-px) 40px; box-sizing: border-box; }
.an-section--feat { padding-top: 230px; }
.an-section--latest { padding-bottom: 88px; }
.an-section__head { display: flex; align-items: baseline; gap: 18px; border-bottom: 1px solid rgba(60, 52, 38, 0.24); padding-bottom: 18px; flex-wrap: wrap; }
.an-section__head--sm { border-bottom-color: rgba(236, 233, 223, 0.13); }
.an-section__no { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #8a6a30; letter-spacing: 0.2em; }
.an-section__title { font-family: 'Shippori Mincho B1', serif; font-weight: 700; font-size: 28px; letter-spacing: 0.08em; }
.an-section__head--sm .an-section__title { font-size: 23px; }
.an-section__en { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.24em; color: #6b6455; }
.an-empty { padding: 30px 8px; font-size: 14px; color: #6b6455; }

/* 01 今週の特集 */
.an-feat { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; padding: 30px 8px; border-bottom: 1px solid rgba(60, 52, 38, 0.24); }
.an-feat:hover { background: rgba(60, 52, 38, 0.055); }
.an-feat__no { font-family: 'Shippori Mincho B1', serif; font-weight: 600; font-size: 40px; color: #d4cdbd; line-height: 1; flex: 0 0 auto; }
.an-feat__body { display: flex; flex-direction: column; gap: 8px; flex: 1 1 240px; min-width: 0; }
.an-feat__cat { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.2em; color: #8a6a30; }
.an-feat__title { font-family: 'Shippori Mincho B1', serif; font-weight: 700; font-size: 22px; line-height: 1.7; letter-spacing: 0.02em; color: #2a2620; }
.an-feat__lead { font-size: 14.5px; color: #5a564c; line-height: 1.9; }
.an-feat__meta { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em; color: #6b6455; text-align: right; flex: 0 0 auto; margin-left: auto; display: var(--hide-sm); }

/* 02 カテゴリー */
/* 囲み枠の2カラム分割は中身の .an-starmap が担当するため、ここを display:flex にしない（flexにすると .an-starmap がコンテンツ幅まで縮んで縦積みになる。SPEC 6.1(b)） */
.an-catbox { border: 1px solid rgba(60, 52, 38, 0.35); background: radial-gradient(120% 90% at 85% 10%, rgba(138, 106, 48, 0.06), rgba(0, 0, 0, 0) 60%), #faf7ee; margin-top: 28px; }
.an-newbox { border: 1px solid rgba(60, 52, 38, 0.35); border-top: none; background: #faf7ee; padding: 6px 24px 14px; }
.an-newbox__label { display: flex; align-items: baseline; gap: 14px; padding: 16px 4px 6px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.22em; color: #8a6a30; }
.an-newbox__panel[hidden] { display: none; }
.an-newbox__more { display: flex; justify-content: flex-end; padding: 14px 4px 4px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: #8a6a30; }
.an-newbox__more:hover { color: #5f4a20; }

/* 03 新着記事 */
.an-latest { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; padding-top: 28px; }
.an-latest__main { flex: 1 1 440px; min-width: min(300px, 100%); }
.an-latest__grid { flex: 1 1 380px; min-width: min(280px, 100%); display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-content: start; }
.an-section__more { display: flex; justify-content: flex-end; padding: 20px 4px 0; }
.an-section__more a { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.14em; color: #8a6a30; }
.an-section__more a:hover { color: #5f4a20; }

/* --- (c) OUR MISSION --- */
.an-mission {
  overflow: hidden; position: relative; z-index: 1; border-top: 1px solid rgba(227, 194, 127, 0.22); border-bottom: 1px solid rgba(227, 194, 127, 0.22);
  padding: 96px var(--sec-px); background: radial-gradient(640px 240px at 50% 130%, rgba(227, 194, 127, 0.1), rgba(0, 0, 0, 0));
}
.an-mission__inner { position: relative; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.an-mission__eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.28em; color: #e3c27f; }
.an-mission__copy { font-family: 'Shippori Mincho B1', serif; font-weight: 800; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.7; letter-spacing: 0.06em; text-wrap: balance; color: #ece9df; }
.an-mission__lead { font-size: 15px; line-height: 2.05; color: #9298ad; max-width: 52ch; text-wrap: pretty; }
/* 日本語ラベルは可読性のため Mono を使わない（SPEC 3.4のMonoはラベル・日付など英字用） */
.an-mission__cta { font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.1em; color: #04050b; background: #e3c27f; padding: 15px 34px; margin-top: 6px; }
.an-mission__cta:hover { background: #f0d59a; color: #04050b; }

/* -------------------------------------------------------------------------
   7. カード / 行（inc/card.php 出力クラス）
   ------------------------------------------------------------------------- */
.an-row { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; padding: 15px 4px; border-bottom: 1px solid rgba(60, 52, 38, 0.12); }
.an-starmap--night ~ .an-row, .an-catgrid ~ .an-row { border-bottom-color: rgba(236, 233, 223, 0.1); }
.an-row:hover { background: rgba(60, 52, 38, 0.055); }
.an-row__no { order: 0; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #6b6455; letter-spacing: 0.08em; flex: 0 0 auto; }
.an-row__title { order: 2; font-family: 'Shippori Mincho B1', serif; font-weight: 600; font-size: 16.5px; line-height: 1.75; flex: 1 1 var(--title-basis); min-width: 0; color: #2a2620; }
.an-row__date { order: 1; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #6b6455; letter-spacing: 0.08em; flex: 0 0 auto; }
.an-row__arrow { order: 3; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #6b6455; flex: 0 0 auto; margin-left: auto; display: var(--hide-sm); }

.an-card { border: 1px solid rgba(236, 233, 223, 0.14); display: flex; flex-direction: column; }
.an-card:hover { border-color: rgba(227, 194, 127, 0.6); }
/* アイキャッチは 1200:630 で入稿する運用のため、カードもその比率に揃える */
.an-card__thumb { width: 100%; aspect-ratio: 1200 / 630; position: relative; border-bottom: 1px solid rgba(236, 233, 223, 0.12); background-color: #0c0f1c; }
/* アイキャッチ未設定時の代替。星図パネル（SPEC 6.1(b)）と同じ夜空の地色で統一する */
.an-card__thumb--noimg {
  background-image:
    radial-gradient(90% 80% at 70% 25%, rgba(64, 78, 148, 0.35), rgba(0, 0, 0, 0) 65%),
    radial-gradient(70% 60% at 20% 80%, rgba(96, 58, 132, 0.22), rgba(0, 0, 0, 0) 60%);
  background-color: #070a16;
}
.an-card__thumb--noimg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.7;
  background-image:
    radial-gradient(1.2px 1.2px at 18% 26%, #dfe4f2 50%, transparent 51%),
    radial-gradient(1px 1px at 44% 14%, #f4ecd8 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 71% 38%, #dfe4f2 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 66%, #dfe4f2 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 84% 74%, #f4ecd8 50%, transparent 51%),
    radial-gradient(0.9px 0.9px at 58% 84%, #dfe4f2 50%, transparent 51%);
}
.an-card__body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 8px; }
.an-card__meta { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.14em; color: #8f94a8; white-space: nowrap; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.an-card__badge { color: #04050b; background: #e3c27f; padding: 2px 6px; font-size: 9px; letter-spacing: 0.12em; }
.an-card__cat { color: #e3c27f; }
.an-card__title { font-family: 'Shippori Mincho B1', serif; font-weight: 600; font-size: 16px; line-height: 1.75; }

.an-card--feature { border-color: rgba(138, 106, 48, 0.5); }
.an-card--feature:hover { border-color: rgba(138, 106, 48, 0.75); }
.an-card--feature .an-card__thumb { border-bottom-color: rgba(60, 52, 38, 0.22); }
.an-card--feature .an-card__body { padding: 18px 22px 20px; }
.an-card--feature .an-card__body:hover { background: rgba(60, 52, 38, 0.055); }
.an-card--feature .an-card__meta { color: #8a6a30; }
.an-card--feature .an-card__title { font-size: 21px; }

.an-card--small { border-color: rgba(60, 52, 38, 0.22); }
.an-card--small:hover { border-color: rgba(138, 106, 48, 0.55); }
.an-card--small .an-card__thumb { border-bottom-color: rgba(60, 52, 38, 0.18); }
.an-card--small .an-card__body { padding: 11px 12px 14px; gap: 6px; }
.an-card--small .an-card__meta { font-size: 9.5px; color: #6b6455; }
.an-card--small .an-card__cat { color: #8a6a30; }
.an-card--small .an-card__title { font-size: 14px; line-height: 1.6; color: #2a2620; }

/* -------------------------------------------------------------------------
   8. パンくず・下層ページ共通見出し
   ------------------------------------------------------------------------- */
.an-breadcrumb { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.16em; color: #8f94a8; display: flex; gap: 10px; flex-wrap: wrap; }
.an-breadcrumb a:hover { color: #e3c27f; }
.an-breadcrumb .is-current { color: #b9bdcc; }
.an-pagehead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 20px; padding: 22px 0 14px; }
.an-pagehead__title { font-family: 'Shippori Mincho B1', serif; font-weight: 800; font-size: clamp(34px, 5vw, 48px); letter-spacing: 0.1em; }
.an-pagehead__en { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.26em; color: #8f94a8; }
.an-pagehead__lead { margin: 0 0 24px; font-size: 15px; line-height: 2; color: #9298ad; max-width: 64ch; text-wrap: pretty; }

/* -------------------------------------------------------------------------
   9. カテゴリー一覧ページ
   ------------------------------------------------------------------------- */
.an-catpage { animation: pageIn 0.6s ease both; max-width: 1080px; margin: 0 auto; padding: 130px var(--sec-px) 88px; box-sizing: border-box; }
.an-catpage .an-starmap { border: 1px solid rgba(236, 233, 223, 0.12); }
.an-catsel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; border-bottom: 1px solid rgba(236, 233, 223, 0.13); padding: 40px 0 16px; } /* 2026-09-02: 上余白 72→40 */
.an-catsel__jp { font-family: 'Shippori Mincho B1', serif; font-weight: 700; font-size: 27px; letter-spacing: 0.08em; }
.an-catsel__en { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.22em; color: #8f94a8; }
.an-catsel__desc { margin: 14px 0 10px; font-size: 15px; line-height: 2; color: #9298ad; }
.an-catgrid-wrap { padding-top: 20px; }
/* 記事は記事一覧ページと同じカードグリッド（2026-08-27 の要望。SPEC 6.2 の行リストから変更） */
.an-catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr)); gap: 14px; }
.an-catgrid[hidden] { display: none; }

/* 黒地ページ（カテゴリー一覧・記事一覧）のカード配色。
   .an-card--small は紙面（クリーム地）のTOP新着グリッド用に暗色文字で組まれており、
   そのまま黒地に置くとタイトルが読めない（2026-08-27 指摘）ため、夜の配色に上書きする */
.an-catpage .an-card--small,
.an-articlespage .an-card--small { border-color: rgba(236, 233, 223, 0.16); }
.an-catpage .an-card--small:hover,
.an-articlespage .an-card--small:hover { border-color: rgba(227, 194, 127, 0.6); }
.an-catpage .an-card--small .an-card__thumb,
.an-articlespage .an-card--small .an-card__thumb { border-bottom-color: rgba(236, 233, 223, 0.12); }
.an-catpage .an-card--small .an-card__meta,
.an-articlespage .an-card--small .an-card__meta { color: #8f94a8; }
.an-catpage .an-card--small .an-card__cat,
.an-articlespage .an-card--small .an-card__cat { color: #e3c27f; }
.an-catpage .an-card--small .an-card__title,
.an-articlespage .an-card--small .an-card__title { color: #ece9df; font-size: 15px; }
.an-catpage .an-card--small:hover .an-card__title,
.an-articlespage .an-card--small:hover .an-card__title { color: #e3c27f; }

/* カテゴリー画面は夜パート（黒地）なので、紙パート既定の an-row を夜の配色に上書きする（SPEC 3.1） */
.an-catpage .an-row { border-bottom-color: rgba(236, 233, 223, 0.13); }
.an-catpage .an-row:hover { background: rgba(236, 233, 223, 0.035); }
.an-catpage .an-row__title { color: #ece9df; }
.an-catpage .an-row:hover .an-row__title { color: #e3c27f; }
.an-catpage .an-row__no,
.an-catpage .an-row__date,
.an-catpage .an-row__arrow { color: #8f94a8; }

/* -------------------------------------------------------------------------
   10. 記事一覧・検索結果ページ
   ------------------------------------------------------------------------- */
.an-articlespage { animation: pageIn 0.6s ease both; max-width: 1080px; margin: 0 auto; padding: 130px var(--sec-px) 88px; box-sizing: border-box; }
.an-searchbar { margin-top: 6px; }
.an-searchbar__input {
  background: rgba(236, 233, 223, 0.06); border: 1px solid rgba(236, 233, 223, 0.22); color: #ece9df;
  font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 14px; padding: 12px 16px; width: 100%; max-width: 440px; outline: none;
}
.an-searchbar__input:focus-visible { border-color: rgba(227, 194, 127, 0.65); }
.an-cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr)); gap: 14px; padding-top: 20px; }

/* -------------------------------------------------------------------------
   11. 運営者情報・私たちの想い（静的ページ共通）
   ------------------------------------------------------------------------- */
.an-staticpage { animation: pageIn 0.6s ease both; max-width: 820px; margin: 0 auto; padding: 130px var(--sec-px) 88px; box-sizing: border-box; }
.an-staticpage .an-pagehead { padding: 24px 0 10px; }

.an-table { margin-top: 44px; border: 1px solid rgba(236, 233, 223, 0.14); }
.an-table__row { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 20px 24px; border-bottom: 1px solid rgba(236, 233, 223, 0.1); align-items: baseline; }
.an-table__k { flex: 0 0 var(--k-basis); font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.18em; color: #e3c27f; }
.an-table__v { flex: 1 1 240px; min-width: 0; font-size: 15px; line-height: 2; color: #cfd2dd; }

.an-blocks { display: flex; flex-direction: column; gap: 52px; margin-top: 56px; }
.an-block { display: flex; flex-direction: column; gap: 16px; }
.an-block__h { display: flex; align-items: baseline; gap: 14px; font-family: 'Shippori Mincho B1', serif; font-weight: 700; font-size: 22px; letter-spacing: 0.05em; line-height: 1.5; }
.an-block__no { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #e3c27f; }
.an-block__lead { font-family: 'Shippori Mincho B1', serif; font-weight: 700; font-size: clamp(19px, 2.4vw, 23px); line-height: 1.95; letter-spacing: 0.03em; color: #ece9df; text-wrap: balance; margin: 0; }
.an-block__p { margin: 0; font-size: 16px; line-height: 1.9; color: #cfd2dd; text-wrap: pretty; }
.an-block__mono { font-family: 'IBM Plex Mono', monospace; color: #e3c27f; }
/* 運営者情報からお問い合わせフォームへ渡すリンク（夜パートの金＋下線） */
.an-table__link,
.an-block__link {
  color: #e3c27f; text-decoration: underline; text-underline-offset: 4px;
  text-decoration-thickness: 1px; transition: color 0.2s;
}
.an-table__link:hover,
.an-block__link:hover { color: #f0d59a; }
.an-block__sign { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: #8f94a8; }
.an-block__navi { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.an-block__navi-avatar {
  flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; position: relative;
  border: 1.5px solid rgba(227, 194, 127, 0.7); background: radial-gradient(circle at 50% 30%, rgba(64, 78, 148, 0.5), #060814);
  box-shadow: 0 0 22px rgba(227, 194, 127, 0.28);
}
.an-block__navi-avatar img { position: absolute; width: 112%; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: none; }
.an-block__navi .an-block__p { flex: 1 1 320px; min-width: 0; }

.an-note { border: 1px solid rgba(227, 194, 127, 0.4); padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; background: rgba(227, 194, 127, 0.05); }
.an-note__label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.24em; color: #e3c27f; }
.an-note__text { margin: 0; font-size: 15.5px; line-height: 1.9; color: #cfd2dd; text-wrap: pretty; }
.an-note__vision { font-family: 'Shippori Mincho B1', serif; font-weight: 700; font-size: 18px; line-height: 1.9; color: #ece9df; }

.an-pagefoot { margin-top: 56px; border-top: 1px solid rgba(236, 233, 223, 0.13); padding-top: 26px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.an-pagefoot__credit { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.1em; color: #8f94a8; line-height: 2; }
.an-pagefoot__prev { white-space: nowrap; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: #b9bdcc; }
.an-pagefoot__prev:hover { color: #e3c27f; }
.an-pagefoot__next { white-space: nowrap; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: #e3c27f; margin-left: auto; }
.an-pagefoot__next:hover { color: #f0d59a; }

.an-about__copy { margin: 20px 0 0; font-family: 'Shippori Mincho B1', serif; font-weight: 700; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.95; letter-spacing: 0.03em; color: #ece9df; text-wrap: balance; }
.an-about__figure {
  margin: 44px 0; border: 1px solid rgba(236, 233, 223, 0.14); background: repeating-linear-gradient(45deg, rgba(236, 233, 223, 0.04) 0 12px, rgba(0, 0, 0, 0) 12px 24px);
  aspect-ratio: 16 / 7; display: flex; align-items: center; justify-content: center;
}
.an-about__figure span { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: #8f94a8; }

/* -------------------------------------------------------------------------
   12. 記事詳細
   ------------------------------------------------------------------------- */
.an-article-glow {
  position: fixed; left: 50vw; top: 50vh; margin: -470px 0 0 -575px; width: 1150px; height: 940px;
  background: radial-gradient(closest-side, rgba(48, 56, 92, 0.22), rgba(0, 0, 0, 0)); pointer-events: none; z-index: 1;
}
.an-rail { position: fixed; left: 28px; top: 34vh; z-index: 40; display: var(--rail); flex-direction: column; gap: 18px; max-width: 240px; }
.an-rail__link {
  font-size: 13.5px; font-weight: 500; letter-spacing: 0.05em; line-height: 1.7; color: #8f94a8;
  border-left: 3px solid rgba(255, 255, 255, 0.18); padding-left: 12px; transition: color 0.3s, border-color 0.3s;
}
.an-rail__link:hover { color: #8a6a30; }
.an-rail__link.is-active { color: #e3c27f; border-left-color: #e3c27f; }

.an-single {
  color: #2a2620; animation: pageIn 0.6s ease both; position: relative; z-index: 2; max-width: 1600px; margin: 0 auto;
  padding: 130px var(--sec-px) 88px; box-sizing: border-box; display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap;
}
/* max-width:100% が無いとパンくず(white-space:nowrap)の最大幅で .an-article が押し広げられ、SPで右端が切れる */
.an-article { flex: 1 1 620px; min-width: 0; max-width: 100%; color: #ece9df; }
.an-article .an-breadcrumb { padding: 0 4px 16px; }
/* 抜粋を出さなくなったため、その下に引いていた border-bottom も外している */
.an-article__head {
  background: radial-gradient(120% 100% at 50% 0%, rgba(20, 24, 40, 0.72), rgba(7, 9, 18, 0.85));
  border-top: 2px solid #e3c27f; color: #ece9df;
  margin: 0; padding: 18px clamp(18px, 3vw, 40px) 42px; box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
}
.an-article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 0 0 18px; }
.an-article__tag { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.2em; color: #e3c27f; border: 1px solid rgba(227, 194, 127, 0.5); padding: 5px 12px; }
.an-article__date { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.14em; color: #8f94a8; }
/* text-wrap:balance だと長い日本語タイトルが不自然な位置で折り返すため pretty を使う */
.an-article__title { font-family: 'Shippori Mincho B1', serif; font-weight: 800; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.55; letter-spacing: 0.04em; text-wrap: pretty; }
/* アイキャッチは原寸の縦横比のまま表示（aspect-ratio+object-fit:coverだと図版や文字入り画像が切れるため使わない） */
.an-article__hero { position: relative; width: 100%; max-width: 100%; border: 1px solid rgba(227, 194, 127, 0.4); margin: 26px auto 0; }
.an-article__hero img { width: 100%; height: auto; display: block; }
.an-article__lead { margin: 22px 0 0; font-size: 16px; line-height: 1.9; color: #b9bdcc; text-wrap: pretty; }

/* --- SWELL目次（.p-toc）のカスタマイズ。章番号はCSSカウンターで付与、詳細度は .an を前置して確保（SPEC 6.4） --- */
.an .p-toc {
  margin: 0 auto 40px; border: 1px solid rgba(236, 233, 223, 0.16);
  background: radial-gradient(130% 120% at 50% 0%, rgba(20, 24, 40, 0.72), rgba(7, 9, 18, 0.9));
  padding: 26px 30px 20px; max-width: var(--fig-max); border-radius: 0;
}
.an .p-toc__ttl {
  display: flex; align-items: center; gap: 12px; padding-bottom: 10px;
  font-family: 'Shippori Mincho B1', serif; font-weight: 700; font-size: 18px;
  letter-spacing: 0.1em; color: #e3c27f; text-align: left;
}
.an .p-toc__ttl::before { content: none; }
/* 見出しの右へ伸びる金のグラデーション罫線（SPEC 6.4） */
.an .p-toc__ttl::after {
  content: ""; flex: 1 1 auto; height: 1px;
  background: linear-gradient(90deg, rgba(227, 194, 127, 0.5), rgba(227, 194, 127, 0));
}

/* 目次は本文内に挿入されるため本文用のol/ulスタイルや .is-style-index の丸ポチと二重になる。目次内だけ打ち消す */
.an .p-toc ol { display: block; list-style: none; padding-left: 0; gap: 0; }
.an .p-toc li { list-style: none; padding-left: 0; margin-left: 0; position: static; }
.an .p-toc li::before { content: none; }

.an .p-toc__list { counter-reset: an-toc; padding: 0; margin: 0; list-style: none; }
.an .p-toc__list > li { counter-increment: an-toc; list-style: none; margin: 0; }
.an .p-toc__list > li > .p-toc__link {
  display: flex; align-items: baseline; gap: 16px;
  border-top: 1px solid rgba(236, 233, 223, 0.09); padding: 14px 2px 12px;
  font-size: 15.5px; line-height: 1.6; color: #e7e4d8; font-weight: 500; text-decoration: none;
}
.an .p-toc__list > li > .p-toc__link::before {
  content: counter(an-toc, decimal-leading-zero);
  font-family: 'Shippori Mincho B1', serif; font-weight: 700; font-size: 20px;
  color: #e3c27f; line-height: 1; flex: 0 0 auto;
  /* 2桁（02〜）が折り返さない幅を確保する */
  min-width: 32px; white-space: nowrap;
}
.an .p-toc__link:hover { color: #e3c27f; }

.an .p-toc__childList { counter-reset: an-toc-sub; padding: 0 0 8px 40px; margin: 0; list-style: none; }
.an .p-toc__childList > li { counter-increment: an-toc-sub; list-style: none; margin: 0; }
.an .p-toc__childList > li > .p-toc__link {
  display: flex; align-items: baseline; gap: 12px; padding: 7px 2px;
  font-size: 13.5px; line-height: 1.6; color: #b3b8c6; text-decoration: none;
}
.an .p-toc__childList > li > .p-toc__link::before {
  content: counter(an-toc) "." counter(an-toc-sub);
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.08em;
  color: #b98f4e; flex: 0 0 auto;
}

/* --- 本文（the_content） --- */
.an-article__content { margin-top: 56px; display: flex; flex-direction: column; gap: 20px; }
.an-article__content .an-article__h2,
.an-article__content h2 {
  margin: 24px 0 0; font-family: 'Shippori Mincho B1', serif; font-weight: 700; font-size: 22px; letter-spacing: 0.06em; line-height: 1.5;
  background: rgba(227, 194, 127, 0.08); border-left: 5px solid #e3c27f; padding: 13px 20px;
}
.an-article__content h3 { margin: 8px 0 0; font-family: 'Shippori Mincho B1', serif; font-weight: 700; font-size: 18px; letter-spacing: 0.02em; padding-left: 10px; border-left: 3px solid rgba(227, 194, 127, 0.5); }
.an-article__content h4 { margin: 6px 0 0; font-family: 'Shippori Mincho B1', serif; font-weight: 700; font-size: 17px; letter-spacing: 0.03em; color: #e8d9b0; }
/* 本文色は SPEC 3.1 の #cfd2dd（#b3b8c6 は黒地では暗すぎる） */
.an-article__content p { margin: 0; font-size: 16px; line-height: 1.9; color: #cfd2dd; text-wrap: pretty; }
.an-article__content ul, .an-article__content ol { display: flex; flex-direction: column; gap: 10px; padding-left: 1.4em; list-style: revert; }
.an-article__content li { font-size: 16px; line-height: 1.9; color: #cfd2dd; }
.an-article__content figure { margin: 12px 0; }
.an-article__content img { border: 1px solid rgba(236, 233, 223, 0.2); }
.an-article__content a { color: #e3c27f; text-decoration: underline; text-underline-offset: 3px; }
.an-article__content blockquote,
.an-article__content .an-note {
  border: 1px solid rgba(227, 194, 127, 0.4); padding: 22px 26px; display: flex; flex-direction: column; gap: 8px; background: rgba(227, 194, 127, 0.06);
}
.an-article__content .wp-block-columns,
.an-article__content .an-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.an-article__content .an-cards > * { border: 1px solid rgba(236, 233, 223, 0.18); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }

.an-hoshinote { display: flex; gap: 18px; align-items: flex-start; margin-top: 40px; }
.an-hoshinote__avatar { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.an-hoshinote__avatar img { width: 76px; height: 76px; border-radius: 50%; border: 1.5px solid rgba(227, 194, 127, 0.7); background: radial-gradient(circle at 50% 30%, rgba(64, 78, 148, 0.5), #060814); box-shadow: 0 0 18px rgba(227, 194, 127, 0.22); object-fit: cover; }
.an-hoshinote__avatar span { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.14em; color: #e3c27f; }
.an-hoshinote__bubble { position: relative; flex: 1 1 auto; min-width: 0; border: 1px solid rgba(227, 194, 127, 0.4); background: rgba(227, 194, 127, 0.06); padding: 18px 22px; margin-top: 8px; }
.an-hoshinote__bubble p { margin: 0; font-size: 15px; line-height: 2.05; color: #c6cad6; text-wrap: pretty; }

.an-article__foot { margin-top: 56px; border-top: 1px solid rgba(236, 233, 223, 0.13); padding-top: 26px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.an-article__credit { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.1em; color: #8f94a8; line-height: 2; }
.an-article__share { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.1em; color: #8f94a8; }
.an-article__share a, .an-article__share button { color: #8f94a8; }
.an-article__share a:hover, .an-article__share button:hover { color: #e3c27f; }

.an-related { margin-top: 64px; }
.an-related__row { display: grid; grid-template-columns: var(--rel-cols); gap: 18px; align-items: center; min-height: 64px; box-sizing: border-box; padding: 12px 8px; border-bottom: 1px solid rgba(236, 233, 223, 0.1); }
.an-related__row:hover { background: rgba(236, 233, 223, 0.035); }
.an-related__cat { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.14em; color: #e3c27f; }
.an-related__title { font-family: 'Shippori Mincho B1', serif; font-weight: 600; font-size: 17.5px; line-height: 1.75; }
.an-related__arrow { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #8f94a8; text-align: right; display: var(--hide-sm); }

.an-careercta {
  margin-top: 64px; border: 1px solid rgba(185, 143, 78, 0.55); padding: 44px 40px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  color: #2a2620; background: radial-gradient(420px 180px at 50% 130%, rgba(138, 106, 48, 0.12), rgba(0, 0, 0, 0)), #faf7ee; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.an-careercta__eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.28em; color: #8a6a30; }
.an-careercta__title { font-family: 'Shippori Mincho B1', serif; font-weight: 800; font-size: 24px; line-height: 1.7; letter-spacing: 0.05em; }
.an-careercta__lead { font-size: 14.5px; line-height: 2; color: #5a564c; max-width: 46ch; text-wrap: pretty; }
.an-careercta__cta { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.16em; color: #04050b; background: #e3c27f; padding: 13px 30px; }
.an-careercta__cta:hover { background: #f0d59a; }

/* --- サイドバー --- */
.an-aside { flex: 0 0 auto; width: 264px; margin-top: 36px; color: #ece9df; display: flex; flex-direction: column; gap: 20px; }
.an-aside__block { padding: 0; }
.an-aside__head { padding: 14px 18px; border-bottom: 1px solid rgba(236, 233, 223, 0.22); font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.24em; color: #e3c27f; }
.an-aside__catrow { display: flex; align-items: baseline; gap: 12px; padding: 13px 18px; border-bottom: 1px solid rgba(236, 233, 223, 0.1); }
.an-aside__catrow:hover { background: rgba(236, 233, 223, 0.05); }
.an-aside__catrow-jp { font-family: 'Shippori Mincho B1', serif; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.an-aside__catrow-count { margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; color: #8f94a8; white-space: nowrap; }
.an-aside__poprow { display: flex; gap: 13px; align-items: baseline; padding: 13px 18px; border-bottom: 1px solid rgba(236, 233, 223, 0.1); }
.an-aside__poprow:hover { background: rgba(236, 233, 223, 0.05); }
.an-aside__poprow-rank { font-family: 'Shippori Mincho B1', serif; font-weight: 700; font-size: 19px; line-height: 1; flex: 0 0 auto; color: #3d4258; }
.an-aside__poprow-rank[data-rank="1"] { color: #e3c27f; }
.an-aside__poprow-rank[data-rank="2"] { color: #f0d59a; }
.an-aside__poprow-rank[data-rank="3"] { color: #cfd2dd; }
.an-aside__poprow-title { font-family: 'Shippori Mincho B1', serif; font-weight: 600; font-size: 13.5px; line-height: 1.7; color: #d3d6e0; min-width: 0; }
.an-aside__career {
  display: flex; flex-direction: column; gap: 10px; border: 1px solid rgba(227, 194, 127, 0.5); padding: 24px 22px;
  background: radial-gradient(140% 130% at 50% 130%, rgba(227, 194, 127, 0.14), rgba(6, 8, 18, 0.4) 70%);
}
.an-aside__career:hover { border-color: rgba(227, 194, 127, 0.9); }
.an-aside__career-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.26em; color: #e3c27f; }
.an-aside__career-title { font-family: 'Shippori Mincho B1', serif; font-weight: 800; font-size: 19px; line-height: 1.65; }
.an-aside__career-lead { font-size: 12.5px; line-height: 1.9; color: #9298ad; }
.an-aside__career-cta { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.14em; color: #e3c27f; }
.an-aside__about { border: 1px solid rgba(236, 233, 223, 0.18); padding: 20px 22px; display: flex; gap: 14px; align-items: center; }
.an-aside__about:hover { border-color: rgba(227, 194, 127, 0.7); }
.an-aside__about-avatar { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 1.5px solid rgba(227, 194, 127, 0.7); background: radial-gradient(circle at 50% 30%, rgba(64, 78, 148, 0.5), #060814); }
.an-aside__about-avatar img { width: 100%; height: 100%; object-fit: cover; }
.an-aside__about-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.an-aside__about-title { font-family: 'Shippori Mincho B1', serif; font-weight: 700; font-size: 14.5px; }
.an-aside__about-en { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.14em; color: #8f94a8; }

/* --- 13. フッター --- */
.an-footer { position: relative; z-index: 3; background: #04050b; border-top: 1px solid rgba(227, 194, 127, 0.25); }
.an-footer__sister { position: relative; overflow: hidden; border-bottom: 1px solid rgba(236, 233, 223, 0.1); }
.an-footer__sister::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(560px 220px at 82% 120%, rgba(37, 99, 201, 0.22), rgba(0, 0, 0, 0)); }
.an-footer__sister-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 58px var(--sec-px); box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.an-footer__sister-text { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.an-footer__sister-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.26em; color: #7fa7e3; }
.an-footer__sister-title { font-family: 'Shippori Mincho B1', serif; font-weight: 700; font-size: clamp(19px, 2.6vw, 25px); letter-spacing: 0.06em; line-height: 1.7; }
.an-footer__sister-lead { font-size: 13px; line-height: 2; color: #9298ad; text-wrap: pretty; }
.an-footer__sister-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.an-footer__sister-cta { display: flex; align-items: center; gap: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.14em; color: #fff; background: #2563c9; padding: 14px 30px; white-space: nowrap; }
.an-footer__sister-cta:hover { background: #3272d6; }
.an-footer__sister-motto { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.14em; color: #5c6f8f; }

.an-footer__main { max-width: 1180px; margin: 0 auto; padding: 56px var(--sec-px) 40px; box-sizing: border-box; display: flex; justify-content: space-between; gap: 44px; flex-wrap: wrap; }
.an-footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 400px; }
.an-footer__brand-row { display: flex; align-items: center; gap: 14px; }
.an-footer__brand-name { font-family: 'Shippori Mincho B1', serif; font-weight: 800; font-size: 22px; letter-spacing: 0.22em; }
.an-footer__brand-desc { font-family: 'Shippori Mincho B1', serif; font-size: 14px; letter-spacing: 0.1em; color: #b9bdcc; line-height: 2.2; }
.an-footer__cols { display: flex; gap: clamp(36px, 6vw, 88px); flex-wrap: wrap; }
.an-footer__col { display: flex; flex-direction: column; gap: 14px; }
.an-footer__col-title { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.22em; color: #8a6a30; }
.an-footer__col-link { white-space: nowrap; font-size: 13px; letter-spacing: 0.12em; color: #b9bdcc; }
.an-footer__col-link:hover { color: #e3c27f; }
.an-footer__col-link--family { display: flex; align-items: center; gap: 8px; }
.an-footer__col-link--family:hover { color: #7fa7e3; }

.an-footer__bottom { border-top: 1px solid rgba(236, 233, 223, 0.08); }
.an-footer__bottom-inner { max-width: 1180px; margin: 0 auto; padding: 18px var(--sec-px); box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.an-footer__copyright { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.14em; color: #8f94a8; }
.an-footer__motto { display: flex; align-items: center; gap: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.2em; color: #5f6478; }
.an-footer__motto-dot { width: 5px; height: 5px; border-radius: 50%; background: #e3c27f; box-shadow: 0 0 7px rgba(227, 194, 127, 0.7); }

/* --- 14. レスポンシブ構造調整（プロトタイプの @media と対応） --- */
@media (max-width: 900px) {
  .an-hero__title { padding-right: 0; }
}
@media (max-width: 780px) {
  /* .an-catbox は block なので対象外（2カラムの折り返しは .an-starmap の flex-wrap が担当） */
  .an-single { flex-direction: column; }
  .an-aside { width: 100%; }
}
@media (max-width: 640px) {
  .an-footer__sister-inner { flex-direction: column; align-items: flex-start; }
  .an-footer__sister-aside { align-items: flex-start; }
}

/* SWELLはカスタマイザーの見出し設定を<head>のインラインCSSで子テーマCSSより後に出力するため、#body_wrap の .an を前置して詳細度で上書き（SPEC 3.4準拠） */
.an .an-article__content h2 {
  color: #ece9df; font-family: 'Shippori Mincho B1', serif; font-weight: 700; font-size: 22px;
  letter-spacing: 0.06em; line-height: 1.5; background: rgba(227, 194, 127, 0.08);
  border: 0; border-left: 5px solid #e3c27f; border-radius: 0; padding: 13px 20px; margin: 24px 0 0;
}
.an .an-article__content h3 {
  color: #ece9df; font-family: 'Shippori Mincho B1', serif; font-weight: 700; font-size: 18px;
  letter-spacing: 0.02em; background: none; border: 0; border-left: 3px solid rgba(227, 194, 127, 0.5);
  border-radius: 0; padding: 0 0 0 10px; margin: 8px 0 0;
}
.an .an-article__content h4 { color: #e8d9b0; background: none; border: 0; padding: 0; }
/* SWELLの見出し装飾（擬似要素の飾り）を消す */
.an .an-article__content h2::before, .an .an-article__content h2::after,
.an .an-article__content h3::before, .an .an-article__content h3::after,
.an .an-article__content h4::before, .an .an-article__content h4::after { content: none; }

/* --- 記事詳細のパンくず・SP時の幅合わせ --- */

/* パンくずは折り返さず横スクロールで逃がす（折り返すと末尾の長いタイトルが画面幅に収まらず見切れる） */
.an-breadcrumb {
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox */
}
.an-breadcrumb::-webkit-scrollbar { display: none; }
.an-breadcrumb > * { flex: 0 0 auto; }

@media (max-width: 720px) {
  /* SPではタイトル・アイキャッチを本文(.post_content)と同じ左右paddingに揃える（negative marginは横スクロールが出るため不採用） */
  .an-article__head {
    padding-inline: 0;
  }
  .an-article .an-breadcrumb {
    padding-left: 0;
    padding-right: 0;
  }
  /* 目次もSP時は本文幅に合わせる。SWELLがインラインCSSで max-width を後出しするため #body_wrap を前置して詳細度で上回る */
  #body_wrap.an .p-toc {
    max-width: 100%;
    margin-inline: 0;
  }
}

/* SWELLの .post_content > :first-child{margin-top:0 !important} で margin-top が無効化されるため、ラッパーのpaddingで余白を作る（左右paddingも打ち消して本文と左端を揃える） */
#body_wrap.an .l-mainContent__inner { padding-top: 56px; }
#body_wrap.an .an-article__content { padding-inline: 0; }

/* is-style-stitch は明背景(#f7f7f7)前提のスタイルで黒地だと浮くため、SPEC 6.4のNOTEボックス配色に上書き（FAQ/テーブル等は背景透明で問題なく対象外） */
#body_wrap.an .an-article__content .is-style-stitch {
  background: rgba(227, 194, 127, 0.06);
  border: 1px dashed rgba(227, 194, 127, 0.45);
  color: #cfd2dd;
  padding: 24px 26px;
  margin-bottom: 0;
}
#body_wrap.an .an-article__content .is-style-stitch li,
#body_wrap.an .an-article__content .is-style-stitch p { color: #cfd2dd; }

/* liのmargin(SWELL既定)とgapが二重にならないよう gap に一本化 */
#body_wrap.an .an-article__content ul,
#body_wrap.an .an-article__content ol { gap: 8px; }
#body_wrap.an .an-article__content li { margin: 0; }

/* 吹き出し（SWELL .c-balloon）は明背景前提。中のp/liに本文色(明色)が効くと読めないため暗色を継承させる */
#body_wrap.an .an-article__content .c-balloon__text :where(p, li, span, strong, em, code) { color: inherit; }
#body_wrap.an .an-article__content .c-balloon__text a { color: #8a6a30; }
