/* 潜在意識ハック — 深層への潜行 */

:root {
  --abyss: #05060F;
  --night: #0B1033;
  --dream: #2A1B5C;
  --glow: #6EF2FF;
  --lilac: #B79CFF;
  --gold: #E8C77A;
  --pearl: #F2EEF9;
  --mist: #A9B0D6;
  --line: rgba(183, 156, 255, 0.18);
  --glass: rgba(26, 22, 70, 0.42);

  --serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --latin: "Cormorant Garamond", serif;
  --mono: "Space Grotesk", ui-monospace, sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--abyss);
  color: var(--pearl);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: rgba(110, 242, 255, 0.3); }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 50;
  padding: 8px 16px; background: var(--pearl); color: var(--abyss); border-radius: 8px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }

/* 背景の光の粒 */
.abyss {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  background: var(--night);
}

/* ヘッダー */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  transition: background 0.6s var(--ease), padding 0.6s var(--ease);
}
.site-header.is-scrolled {
  padding-top: 12px; padding-bottom: 12px;
  background: rgba(5, 6, 15, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(183, 156, 255, 0.08);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--glow);
  box-shadow: 0 0 16px rgba(110, 242, 255, 0.6), inset 0 0 8px rgba(110, 242, 255, 0.5);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--glow);
}
.brand-name { font-family: var(--serif); font-weight: 500; font-size: 17px; letter-spacing: 0.12em; }
.site-nav { display: flex; gap: clamp(14px, 2.4vw, 32px); font-size: 13px; letter-spacing: 0.12em; }
.site-nav a { text-decoration: none; color: var(--mist); transition: color 0.3s; }
.site-nav a:hover { color: var(--glow); }

/* 深度計 */
.depth {
  position: fixed; right: clamp(12px, 2.4vw, 32px); top: 50%; z-index: 15;
  transform: translateY(-50%);
  display: grid; grid-template-columns: auto 1px; grid-template-rows: auto auto; gap: 0 14px;
  pointer-events: none;
}
.depth-layers {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  height: 260px; text-align: right;
  font-size: 11px; letter-spacing: 0.14em; color: rgba(169, 176, 214, 0.45);
}
.depth-layers li { transition: color 0.6s, transform 0.6s var(--ease); }
.depth-layers li.is-active { color: var(--glow); transform: translateX(-4px); }
.depth-track { position: relative; height: 260px; background: linear-gradient(var(--line), rgba(110, 242, 255, 0.35)); }
.depth-marker {
  position: absolute; left: -3px; top: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 12px var(--glow);
  transform: translateY(var(--depth-y, 0px));
}
.depth-readout {
  grid-column: 1 / -1; margin: 18px 0 0; text-align: right;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--mist);
}
.depth-value { color: var(--glow); font-variant-numeric: tabular-nums; }
.article .depth-layers { display: none; }
.article .depth { display: flex; flex-direction: column; align-items: flex-end; }
.article .depth-track { width: 1px; }
.article .site-header:not(.is-scrolled) { background: linear-gradient(rgba(5, 6, 15, 0.7), rgba(5, 6, 15, 0)); }

/* 層（セクション）の共通 */
.layer {
  position: relative;
  padding: clamp(96px, 16vh, 180px) var(--gutter);
  padding-right: calc(var(--gutter) + 120px);
  max-width: 1320px; margin: 0 auto;
}
.layer-head { max-width: 720px; margin-bottom: clamp(40px, 7vh, 80px); }
.layer-no {
  margin: 0 0 18px; font-family: var(--latin); font-style: italic; font-size: 20px;
  color: var(--lilac); letter-spacing: 0.08em;
}
.layer-no span {
  font-family: var(--mono); font-style: normal; font-size: 12px; color: var(--glow);
  margin-right: 12px; letter-spacing: 0.2em;
}
.layer-title {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 4.4vw, 52px); line-height: 1.5; letter-spacing: 0.08em;
}
.layer-lead { margin: 24px 0 0; color: var(--mist); max-width: 34em; }

/* ふわっと現れる */
[data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease), filter 1.4s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; filter: none; }

/* 01 水面 */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px; padding-bottom: 120px;
}
.eyebrow {
  margin: 0 0 28px; font-size: 12px; letter-spacing: 0.3em; color: var(--mist);
  display: flex; align-items: baseline; gap: 14px;
}
.eyebrow span { font-family: var(--latin); font-style: italic; font-size: 22px; color: var(--lilac); letter-spacing: 0.06em; }
.hero-title {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 6.4vw, 84px); line-height: 1.45; letter-spacing: 0.1em;
  text-shadow: 0 0 40px rgba(110, 242, 255, 0.18);
}
.hero-title .line { display: block; opacity: 0; transform: translateY(24px); filter: blur(10px); animation: surface 2.2s var(--ease) forwards; }
.hero-title .line:nth-child(2) { animation-delay: 0.5s; }
.hero-lead { margin: 36px 0 0; max-width: 30em; color: var(--mist); opacity: 0; animation: surface 2s var(--ease) 1.2s forwards; }
@keyframes surface { to { opacity: 1; transform: none; filter: none; } }
@media (max-width: 860px) { @keyframes surface { from { filter: none; } to { opacity: 1; transform: none; filter: none; } } }

.dive {
  position: absolute; left: var(--gutter); bottom: 40px;
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  font-size: 12px; letter-spacing: 0.4em; color: var(--mist);
}
.dive-line { width: 1px; height: 56px; background: linear-gradient(transparent, var(--glow)); position: relative; overflow: hidden; }
.dive-line::after {
  content: ""; position: absolute; left: -1px; top: -12px; width: 3px; height: 12px;
  background: var(--glow); border-radius: 2px; animation: sink 2.8s ease-in-out infinite;
}
@keyframes sink { to { top: 60px; } }

/* 02 前意識 */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-text p { margin: 0 0 1.4em; max-width: 30em; }
.text-link {
  display: inline-flex; gap: 10px; margin-top: 8px; text-decoration: none;
  color: var(--glow); border-bottom: 1px solid rgba(110, 242, 255, 0.4); padding-bottom: 4px;
  letter-spacing: 0.1em; transition: gap 0.4s var(--ease);
}
.text-link:hover { gap: 18px; }
.iceberg { margin: 0; }
.iceberg svg { width: 100%; height: auto; overflow: visible; }
.berg-outline { stroke: rgba(242, 238, 249, 0.6); stroke-width: 1; }
.waterline { stroke: var(--glow); stroke-width: 1; stroke-dasharray: 2 6; opacity: 0.8; }
.berg-labels text { fill: var(--pearl); font-size: 13px; letter-spacing: 0.14em; font-family: var(--sans); }

/* 03 潜在意識 — 記憶の泡 */
.bubbles {
  list-style: none; margin: 0 0 clamp(56px, 9vh, 96px); padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(16px, 3vw, 40px);
}
.bubble { animation: float 11s ease-in-out infinite; animation-delay: var(--delay); }
.bubble a {
  width: var(--size); height: var(--size); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; text-align: center;
  background: radial-gradient(circle at 32% 28%, rgba(242, 238, 249, 0.22), rgba(110, 91, 214, 0.12) 45%, rgba(5, 6, 15, 0.1) 72%);
  border: 1px solid rgba(183, 156, 255, 0.35);
  box-shadow: inset 0 0 24px rgba(110, 242, 255, 0.12), 0 0 30px rgba(110, 91, 214, 0.18);
  transition: border-color 0.5s, box-shadow 0.5s, transform 0.6s var(--ease);
}
.bubble a:hover { border-color: var(--glow); box-shadow: inset 0 0 30px rgba(110, 242, 255, 0.3), 0 0 44px rgba(110, 242, 255, 0.35); transform: scale(1.06); }
.bubble-name { font-family: var(--serif); font-size: 15px; letter-spacing: 0.08em; padding: 0 10px; word-break: keep-all; line-height: 1.5; }
.bubble-count { font-family: var(--mono); font-size: 11px; color: var(--glow); letter-spacing: 0.2em; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* カード */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.card a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none;
  background: var(--glass); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.5s, transform 0.6s var(--ease), box-shadow 0.6s;
}
.card a:hover { border-color: rgba(110, 242, 255, 0.55); transform: translateY(-6px); box-shadow: 0 20px 60px -20px rgba(110, 242, 255, 0.35); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; filter: saturate(0.85) brightness(0.92); transition: transform 1.2s var(--ease), filter 0.6s; }
.card a:hover img { transform: scale(1.05); filter: none; }
.card-body { padding: 20px 22px 24px; }
.card-meta { margin: 0 0 8px; display: flex; gap: 14px; font-size: 11px; letter-spacing: 0.14em; color: var(--lilac); }
.card-meta time { font-family: var(--mono); color: var(--mist); }
.card-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.7; letter-spacing: 0.04em; }
.card-excerpt { margin: 12px 0 0; font-size: 13px; line-height: 1.85; color: var(--mist); }

/* 04 神々の星図 */
.starmap { margin: 0 0 clamp(48px, 8vh, 88px); }
.starmap svg { width: 100%; height: auto; overflow: visible; }
.starmap-hint { display: none; margin: 0 0 8px; font-size: 12px; letter-spacing: 0.14em; color: var(--mist); }
.star-lines line { stroke: rgba(232, 199, 122, 0.5); stroke-width: 1; stroke-dasharray: 360; stroke-dashoffset: 360; transition: stroke-dashoffset 3.2s var(--ease); }
.starmap.is-visible .starmap-hint { display: none; margin: 0 0 8px; font-size: 12px; letter-spacing: 0.14em; color: var(--mist); }
.star-lines line { stroke-dashoffset: 0; }
.star-lines line:nth-child(n+4) { transition-delay: 0.6s; }
.star-lines line:nth-child(n+7) { transition-delay: 1.2s; }
.star-relations text { fill: rgba(232, 199, 122, 0.7); font-size: 11px; letter-spacing: 0.16em; font-family: var(--sans); }
.star-halo { fill: rgba(232, 199, 122, 0.12); transform-box: fill-box; transform-origin: center; animation: twinkle 6s ease-in-out infinite; }
.star:nth-of-type(2n) .star-halo { animation-delay: -3s; }
.star-core { fill: var(--gold); filter: drop-shadow(0 0 6px rgba(232, 199, 122, 0.9)); }
.star text { fill: var(--pearl); font-family: var(--serif); font-size: 15px; letter-spacing: 0.12em; text-anchor: middle; }
.star.is-linked { cursor: pointer; }
.star.is-linked text { fill: var(--gold); }
.star.is-linked:hover .star-halo, .star.is-linked:focus-visible .star-halo { fill: rgba(232, 199, 122, 0.3); }
.star.is-linked:hover text { text-decoration: underline; text-underline-offset: 6px; }
@keyframes twinkle { 0%, 100% { transform: scale(0.8); opacity: 0.6; } 50% { transform: scale(1.15); opacity: 1; } }

.cards-myth .card a { border-color: rgba(232, 199, 122, 0.18); }
.cards-myth .card a:hover { border-color: rgba(232, 199, 122, 0.6); box-shadow: 0 20px 60px -20px rgba(232, 199, 122, 0.35); }
.cards-myth .card-meta { color: var(--gold); }
.card.is-feature { grid-column: span 2; }
.card.is-feature .card-title { font-size: 22px; }

/* 05 深淵 */
.latest { list-style: none; margin: 0 0 clamp(72px, 12vh, 140px); padding: 0; border-top: 1px solid var(--line); }
.latest a {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 24px; align-items: baseline;
  padding: 22px 8px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background 0.5s, padding 0.5s var(--ease);
}
.latest a:hover { background: rgba(110, 242, 255, 0.04); padding-left: 18px; }
.latest time { font-family: var(--mono); font-size: 12px; color: var(--mist); letter-spacing: 0.14em; }
.latest-title { font-family: var(--serif); font-size: 16px; letter-spacing: 0.04em; }
.latest-cat { font-size: 11px; color: var(--lilac); letter-spacing: 0.14em; white-space: nowrap; }
.latest-cat.is-myth { color: var(--gold); }

.about { max-width: 560px; margin: 0 auto; text-align: center; color: var(--mist); }
.about-mark {
  width: 64px; height: 64px; margin: 0 auto 28px; border-radius: 50%;
  border: 1px solid rgba(110, 242, 255, 0.5);
  box-shadow: 0 0 40px rgba(110, 242, 255, 0.35), inset 0 0 24px rgba(110, 242, 255, 0.3);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.12); box-shadow: 0 0 64px rgba(110, 242, 255, 0.5), inset 0 0 30px rgba(110, 242, 255, 0.45); } }
.about-title { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: 0.14em; color: var(--pearl); margin: 0 0 16px; }

.site-footer {
  text-align: center; padding: 72px var(--gutter) 48px; color: var(--mist);
  border-top: 1px solid rgba(183, 156, 255, 0.08);
}
.footer-mark { margin: 0; font-family: var(--serif); font-size: 18px; letter-spacing: 0.2em; color: var(--pearl); }
.footer-sub, .footer-copy { margin: 6px 0 0; font-size: 12px; letter-spacing: 0.14em; }
.footer-copy { margin-top: 24px; font-family: var(--mono); opacity: 0.6; }

/* 記事ページ — 読みやすさ優先 */
.post { padding: 0 0 80px; }
.post-hero { position: relative; min-height: min(86svh, 760px); display: flex; align-items: flex-end; }
.post-hero-img { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); animation: drift 30s ease-in-out infinite alternate; }
.post-hero-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 15, 0.35) 0%, rgba(5, 6, 15, 0.1) 35%, rgba(5, 6, 15, 0.85) 78%, var(--abyss) 100%);
}
@keyframes drift { to { transform: scale(1.08) translateY(-1.5%); } }
.post-hero-text { position: relative; width: 100%; max-width: 860px; margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 7vh, 72px); }
.post-meta { margin: 0 0 18px; display: flex; gap: 18px; align-items: center; font-size: 12px; letter-spacing: 0.16em; }
.post-meta time { font-family: var(--mono); color: var(--mist); }
.post-cat { padding: 4px 12px; border: 1px solid rgba(183, 156, 255, 0.5); border-radius: 99px; color: var(--lilac); }
.post.is-myth .post-cat { border-color: rgba(232, 199, 122, 0.6); color: var(--gold); }
.post-title {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(26px, 3.8vw, 42px); line-height: 1.6; letter-spacing: 0.05em;
  text-shadow: 0 2px 30px rgba(5, 6, 15, 0.8);
}

.toc, .prose, .post-back { max-width: 720px; margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); box-sizing: content-box; }
.toc { margin-top: 24px; margin-bottom: 56px; }
.toc summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 15px; letter-spacing: 0.2em; color: var(--lilac);
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; margin-left: auto; font-family: var(--mono); color: var(--glow); transition: transform 0.4s var(--ease); }
.toc[open] summary::after { transform: rotate(45deg); }
.toc-list { margin: 0; padding: 16px 0 0 1.4em; font-size: 14px; line-height: 1.8; color: var(--mist); }
.toc-list li { padding: 4px 0; }
.toc-list li::marker { font-family: var(--mono); color: var(--glow); font-size: 11px; }
.toc-list a { text-decoration: none; transition: color 0.3s; }
.toc-list a:hover { color: var(--glow); }

.prose { font-size: 17px; line-height: 2.05; letter-spacing: 0.03em; }
.prose p { margin: 0; }
.prose > * + *, .prose > * + p { margin-top: 1.5em; }
.prose > p + p { margin-top: 1.4em; }
.prose h2 {
  margin: 3.6em 0 1.2em; padding-top: 1.6em; position: relative;
  font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.6; letter-spacing: 0.06em;
  scroll-margin-top: 96px;
}
.prose h2::before {
  content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 1px;
  background: linear-gradient(90deg, var(--glow), transparent);
  box-shadow: 0 0 12px var(--glow);
}
.prose h3 {
  margin: 2.6em 0 0.8em; padding-left: 18px; position: relative;
  font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.6; letter-spacing: 0.05em; color: var(--pearl);
}
.prose h3::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--lilac); box-shadow: 0 0 10px var(--lilac); }
.prose h4 { margin: 2.2em 0 0.5em; font-size: 16px; font-weight: 700; color: var(--glow); letter-spacing: 0.04em; }
.prose strong { color: #fff; background: linear-gradient(transparent 62%, rgba(110, 91, 214, 0.55) 62%); font-weight: 700; }
.prose a { color: var(--glow); text-underline-offset: 4px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--lilac); }

.prose pre.mermaid { margin: 0; background: none; font-family: var(--sans); color: transparent; }
.prose pre.mermaid[data-processed] { color: inherit; }

.prose blockquote {
  margin: 2em 0; padding: 8px 0 8px 28px; position: relative;
  font-family: var(--serif); font-size: 18px; color: var(--pearl);
  border-left: 1px solid rgba(232, 199, 122, 0.6);
}
.prose blockquote p { margin: 0; }

.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.75; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { font-weight: 500; color: var(--lilac); letter-spacing: 0.12em; font-size: 13px; border-bottom-color: rgba(183, 156, 255, 0.45); }
.prose tbody td:first-child { color: var(--mist); }
@media (min-width: 861px) { .prose tbody td:first-child { white-space: nowrap; } }

.prose .youtube { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.prose .youtube iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.post-back { margin-top: 80px; }
.post-back a { color: var(--gold); text-decoration: none; letter-spacing: 0.12em; font-size: 14px; }
.post-back a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* スマホ */
@media (max-width: 860px) {
  .layer { padding-right: var(--gutter); }
  .split { grid-template-columns: 1fr; }
  .iceberg { max-width: 360px; margin: 0 auto; }
  .card.is-feature { grid-column: auto; }
  .card.is-feature .card-title { font-size: 18px; }
  .site-nav { display: none; }
  .depth { top: auto; bottom: 18px; transform: none; display: block; }
  .depth-layers, .depth-track { display: none; }
  .depth-readout { margin: 0; padding: 6px 12px; border-radius: 99px; background: rgba(5, 6, 15, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); }
  .latest a { grid-template-columns: 1fr; gap: 4px; }
  .latest-cat { order: -1; }
  .prose { font-size: 16px; }
  .prose th, .prose td { padding: 10px 10px; font-size: 14px; }
  /* スマホは見出しのぼかし演出を省く（描画の負荷を下げ、表示を確実にする） */
  .hero-title { text-shadow: none; font-size: min(7.4vw, 40px); letter-spacing: 0.06em; }
  .hero-lead br { display: none; }
  .hero-title .line, [data-reveal] { filter: none; }
  .starmap { overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
  .starmap svg { width: 720px; max-width: none; }
  .starmap-hint { display: block; }
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], .hero-title .line, .hero-lead { opacity: 1; transform: none; filter: none; }
  .starmap-hint { display: none; margin: 0 0 8px; font-size: 12px; letter-spacing: 0.14em; color: var(--mist); }
.star-lines line { stroke-dashoffset: 0; }
}

/* 一覧・タグ・関連記事 */
.listing .layer { padding-top: clamp(120px, 18vh, 200px); }
.more { margin: -48px 0 clamp(72px, 12vh, 140px); text-align: right; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 56px; font-family: var(--mono); font-size: 13px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; color: var(--mist); }
.pager a:hover { border-color: var(--glow); color: var(--glow); }
.pager [aria-current] { background: rgba(110, 242, 255, 0.12); border-color: var(--glow); color: var(--glow); }
.post-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0 var(--gutter); max-width: 720px; margin: 64px auto 0; box-sizing: content-box; }
.post-tags a { display: inline-block; padding: 4px 14px; border-radius: 99px; border: 1px solid var(--line); font-size: 13px; color: var(--mist); text-decoration: none; }
.post-tags a:hover { border-color: var(--glow); color: var(--glow); }
a.post-cat { text-decoration: none; }
.related { max-width: 1080px; margin: 96px auto 0; padding: 0 var(--gutter); }
.related-title { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: 0.14em; margin: 0 0 28px; }

/* WordPress（THE THOR）の本文の部品 */
.prose .ep-box { padding: 22px 26px; border-radius: 16px; background: rgba(242, 238, 249, 0.04); border: 1px solid var(--line); }
.prose .ep-box > :first-child { margin-top: 0; }
.prose .ep-box.brc-Lblue { border-color: rgba(110, 242, 255, 0.4); }
.prose .ep-box.brc-DPred, .prose .ep-box.brc-Vred { border-color: rgba(255, 138, 128, 0.55); box-shadow: inset 3px 0 0 rgba(255, 138, 128, 0.7); }
.prose .ep-inbox { padding: 22px 26px; border-radius: 16px; background: linear-gradient(135deg, rgba(42, 27, 92, 0.55), rgba(11, 16, 51, 0.55)); border: 1px solid var(--line); box-shadow: inset 3px 0 0 rgba(110, 242, 255, 0.7); font-size: 15.5px; }
.prose .ep-inbox ul, .prose .ep-inbox ol { margin: 0; }
.prose .ep-box:has(> pre.mermaid) { text-align: center; overflow-x: auto; padding: 24px 16px; }
.prose img { border-radius: 14px; border: 1px solid var(--line); }

/* 吹き出し（左＝ハック先生、右＝相談者） */
.prose .balloon { display: flex; gap: 16px; align-items: flex-start; margin-top: 1.6em; }
.prose .balloon:has(.balloon__img-right) { flex-direction: row-reverse; }
.prose .balloon__img { margin: 0; flex: 0 0 72px; text-align: center; }
.prose .balloon__img > div { width: 72px; height: 72px; border-radius: 50%; background: center / cover no-repeat; border: 1px solid rgba(183, 156, 255, 0.45); box-shadow: 0 0 20px rgba(110, 91, 214, 0.35); }
.prose .balloon__img-left > div { background-image: url("/assets/img/balloon-scholar.webp"); }
.prose .balloon__img-right > div { background-image: url("/assets/img/balloon-student.webp"); }
.prose .balloon__name { margin-top: 6px; font-size: 11px; letter-spacing: 0.1em; color: var(--mist); line-height: 1.4; }
.prose .balloon__text { position: relative; padding: 16px 20px; border-radius: 18px; background: rgba(26, 22, 70, 0.6); border: 1px solid var(--line); font-size: 15.5px; line-height: 1.95; }
.prose .balloon__img-right + .balloon__text { background: rgba(110, 242, 255, 0.07); border-color: rgba(110, 242, 255, 0.25); }

/* 検索 */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search-form { display: flex; gap: 12px; margin-top: 36px; max-width: 560px; }
.search-form input {
  flex: 1; min-width: 0; height: 52px; padding: 0 20px; border-radius: 99px;
  background: rgba(5, 6, 15, 0.5); border: 1px solid rgba(183, 156, 255, 0.35); color: var(--pearl);
  font: inherit; font-size: 16px; letter-spacing: 0.04em;
}
.search-form input:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 24px rgba(110, 242, 255, 0.25); }
.search-form button {
  height: 52px; padding: 0 26px; border-radius: 99px; border: 1px solid var(--glow);
  background: rgba(110, 242, 255, 0.1); color: var(--glow); font: inherit; letter-spacing: 0.2em; cursor: pointer;
}
.search-form button:hover { background: rgba(110, 242, 255, 0.2); }
.search-status { margin: 20px 0 0; color: var(--mist); font-size: 14px; }
.search-results .card-excerpt mark { background: rgba(110, 91, 214, 0.55); color: #fff; padding: 0 2px; border-radius: 2px; }
.search-results .card a { opacity: 1; }

/* YouTube（押すまで読みこまない） */
.prose .yt-facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: #000 center / cover no-repeat; }
.prose .yt-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(5, 6, 15, 0.5)); transition: opacity 0.4s; }
.prose .yt-facade:hover::after { opacity: 0.4; }
.prose .yt-play {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  border: 1px solid rgba(242, 238, 249, 0.8); background: rgba(5, 6, 15, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 30px rgba(110, 242, 255, 0.4); transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.prose .yt-play::before { content: ""; position: absolute; left: 31px; top: 25px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--pearl); }
.prose .yt-facade:hover .yt-play { transform: scale(1.08); box-shadow: 0 0 44px rgba(110, 242, 255, 0.6); }

/* お問い合わせ・フッターのリンク */
.contact-box { max-width: 560px; padding: 36px 32px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.contact-button {
  display: inline-flex; align-items: center; gap: 14px; height: 56px; padding: 0 32px; border-radius: 99px;
  border: 1px solid var(--glow); background: rgba(110, 242, 255, 0.1); color: var(--glow);
  text-decoration: none; letter-spacing: 0.2em; transition: background 0.4s, gap 0.4s var(--ease), box-shadow 0.4s;
}
.contact-button:hover { background: rgba(110, 242, 255, 0.2); gap: 22px; box-shadow: 0 0 30px rgba(110, 242, 255, 0.3); }
.contact-note { margin: 18px 0 0; font-size: 13px; color: var(--mist); }
.contact-note a { color: var(--glow); text-underline-offset: 3px; }
.footer-nav { display: flex; justify-content: center; gap: 24px; margin-top: 20px; font-size: 13px; letter-spacing: 0.14em; }
.footer-nav a { color: var(--mist); text-decoration: none; }
.footer-nav a:hover { color: var(--glow); }
