/* dark-tech.css: 代替テーマ。トップページの実験ログ導線と記事本文の見え方を担当する */
:root {
  --bg: #0a0e14;
  --fg: #eafff2;
  --accent: #39ff88;
  --accent2: #5ad1ff;
  --panel: #0f141b;
  --panel2: #151c25;
  --muted: #9cb3bd;
}
* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Courier New', monospace;
  margin: 0;
  line-height: 1.7;
}
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 14px 32px;
}
.site-header {
  border-bottom: 1px solid var(--accent);
  padding: 18px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(10, 14, 20, .96);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-title {
  font-size: clamp(20px, 5.4vw, 30px);
  letter-spacing: 0;
  color: var(--accent2);
  text-decoration: none;
}
.theme-toggle {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 10px 12px;
  cursor: pointer;
  min-width: 96px;
}
.home-hero, .featured-article, .article-card, .article-body {
  border: 1px solid #1e2833;
  padding: 20px;
  margin: 16px 0;
  background: var(--panel);
}
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(120deg, rgba(57, 255, 136, .14), transparent 38%),
    linear-gradient(180deg, #111a22, var(--panel));
}
#particle-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#particle-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.home-hero-content {
  position: relative;
  z-index: 1;
}
.particle-bg-switch {
  margin-top: 12px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}
.particle-bg-switch:hover {
  background: var(--accent);
  color: var(--bg);
}
.hero-kicker, .label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.home-hero h1 {
  color: var(--fg);
  font-size: clamp(32px, 10vw, 68px);
  line-height: 1.05;
  margin: 10px 0 14px;
  max-width: 860px;
}
.hero-copy {
  color: var(--muted);
  font-size: clamp(16px, 4.5vw, 20px);
  max-width: 720px;
}
.featured-article {
  border-color: var(--accent);
  background: var(--panel2);
}
.featured-article h2 {
  font-size: clamp(26px, 7.5vw, 46px);
  line-height: 1.14;
  margin: 8px 0 12px;
}
.featured-article a, .article-card a {
  color: var(--fg);
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}
.category-coverflow {
  margin: 24px 0;
}
.coverflow-track {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.coverflow-track.is-enhanced {
  display: block;
  height: 168px;
  perspective: 1400px;
}
.coverflow-card {
  position: relative;
  display: block;
  width: 200px;
  border: 1px solid #274252;
  background: #0d2630;
  overflow: hidden;
  text-decoration: none;
  outline-offset: 2px;
}
.coverflow-track.is-enhanced .coverflow-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .5s;
}
.coverflow-card img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  display: block;
  filter: brightness(.55);
  transition: filter .3s;
}
.coverflow-card.is-active img {
  filter: brightness(1);
}
.coverflow-title {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  font-size: 12px;
  color: var(--fg);
  text-shadow: 0 2px 6px rgba(0, 0, 0, .8);
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.article-card h2 {
  color: var(--fg);
  font-size: clamp(20px, 5vw, 27px);
  line-height: 1.2;
  margin: 8px 0 12px;
}
.article-excerpt {
  color: var(--muted);
  margin: 0;
}
.article-body {
  max-width: 840px;
  margin: 20px auto;
}
.article-body h1 {
  font-size: clamp(30px, 8vw, 52px);
  line-height: 1.12;
}
.article-body img, .article-body iframe {
  max-width: 100%;
  height: auto;
}
.accent-bar { height: 1px; background: linear-gradient(90deg, var(--accent), transparent); margin: 12px 0; }
.site-footer {
  border-top: 1px solid #1e2833;
  padding: 16px;
  text-align: center;
  font-size: 11px;
  color: #6b7a80;
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px;
  }
  .home-hero, .featured-article, .article-card, .article-body {
    padding: 16px;
  }
  .home-hero h1 {
    font-size: 34px;
    line-height: 1.08;
  }
  .featured-article h2 {
    font-size: 29px;
  }
  .hero-copy, .article-excerpt {
    font-size: 15px;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
}

/* WordPress移行記事で使われていた強調表示クラス（元の見た目にできるだけ合わせる） */
.article-body .bold-red { color: #ff6b6b; font-weight: 700; }
.article-body .bold-blue { color: var(--accent2); font-weight: 700; }
.article-body .bold-green { color: var(--accent); font-weight: 700; }
.article-body .red { color: #ff6b6b; }
.article-body .fz-14px { font-size: 14px; }
.article-body .fz-16px { font-size: 16px; }
.article-body .fz-18px { font-size: 18px; }
.article-body .fz-20px { font-size: 20px; }
.article-body .fz-22px { font-size: 22px; }
.article-body .fz-24px { font-size: 24px; }
.article-body .fz-28px { font-size: 28px; }
.article-body .fz-36px { font-size: 36px; }
.article-body table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.article-body table td, .article-body table th { border: 1px solid #1e2833; padding: 6px 10px; }
.article-body .scrollable-table { overflow-x: auto; }

/* 記事カードのサムネイル画像（新しい画像を作らず、既存画像を表示だけ縮小する） */
.card-thumb {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  border: 1px solid #1e2833;
  margin-bottom: 10px;
}
.card-thumb-large {
  height: 220px;
}

.category-empty {
  font-size: 15px;
  padding: 20px 0;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  max-width: 840px;
  margin: 24px auto;
  padding-top: 16px;
  border-top: 1px solid #1e2833;
  font-size: 14px;
}
.post-nav a {
  color: var(--fg);
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}
.post-nav-home {
  color: var(--accent2);
  font-weight: 700;
}

.share-buttons {
  display: flex;
  gap: 10px;
  max-width: 840px;
  margin: 20px auto 0;
  flex-wrap: wrap;
}
.share-buttons a {
  border: 1px solid #1e2833;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  background: var(--panel);
}
.share-buttons a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
