/* ============================================================
   Zero Press — 公開面スタイル
   ダーク × ネオンのフューチャリスティックテーマ。
   外部フォント・外部ライブラリは使わない（自己完結・コスト最優先）。
   ============================================================ */

:root {
  --bg: #05070f;
  --bg-elevated: #0a0e1c;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e9edf6;
  --muted: #8b94a8;
  --accent: #3fe0ff;
  --accent-2: #8b5cf6;
  --gradient: linear-gradient(100deg, #3fe0ff, #7aa2ff 45%, #8b5cf6);
  --font-sans: 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic UI', 'Yu Gothic', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;
  --header-h: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(5, 7, 15, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

body.has-hero .site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: linear-gradient(rgba(5, 7, 15, 0.55), rgba(5, 7, 15, 0));
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-logo,
.footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}

.site-logo span,
.footer-logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
  align-items: center; /* nav-cta（パディング付き）とテキストリンクの縦位置を揃える */
}

.site-nav a {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  transition: color 0.25s;
}

.site-nav a:hover {
  color: var(--text);
}

/* ---------- ヒーロー（キービジュアル） ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* オーロラ状に浮遊する発光球体 */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.orb-1 {
  width: 46vmax;
  height: 46vmax;
  left: -12vmax;
  top: -14vmax;
  background: radial-gradient(circle, rgba(63, 224, 255, 0.55), transparent 65%);
  animation: drift-1 26s ease-in-out infinite alternate;
}

.orb-2 {
  width: 40vmax;
  height: 40vmax;
  right: -10vmax;
  top: 4vmax;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 65%);
  animation: drift-2 22s ease-in-out infinite alternate;
}

.orb-3 {
  width: 34vmax;
  height: 34vmax;
  left: 28vw;
  bottom: -18vmax;
  background: radial-gradient(circle, rgba(122, 162, 255, 0.4), transparent 65%);
  animation: drift-3 30s ease-in-out infinite alternate;
}

@keyframes drift-1 {
  to { transform: translate(9vmax, 7vmax) scale(1.12); }
}

@keyframes drift-2 {
  to { transform: translate(-7vmax, 9vmax) scale(0.92); }
}

@keyframes drift-3 {
  to { transform: translate(-9vmax, -6vmax) scale(1.08); }
}

/* 奥へ流れるパースペクティブグリッド */
.grid-floor {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -12%;
  height: 55%;
  background:
    repeating-linear-gradient(90deg, rgba(63, 224, 255, 0.16) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(63, 224, 255, 0.16) 0 1px, transparent 1px 70px);
  transform: perspective(620px) rotateX(62deg);
  transform-origin: center bottom;
  animation: grid-scroll 2.8s linear infinite;
  -webkit-mask-image: linear-gradient(transparent, #000 45%);
  mask-image: linear-gradient(transparent, #000 45%);
}

@keyframes grid-scroll {
  to { background-position: 0 70px, 0 70px; }
}

/* 下端をページ背景へ溶け込ませる */
.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(transparent, var(--bg));
}

.hero-inner {
  position: relative;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
  max-width: 880px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  color: var(--accent);
  margin: 0 0 1.2rem;
  animation: rise 0.9s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.1rem, 6.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  animation: rise 0.9s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.gradient-text {
  background: linear-gradient(100deg, #3fe0ff, #7aa2ff 35%, #b78cff 55%, #3fe0ff 85%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5.5s linear infinite;
}

@keyframes shimmer {
  to { background-position: -220% 0; }
}

.hero-lead {
  margin: 1.6rem auto 2.4rem;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  animation: rise 0.9s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* 料金スタッツ（¥0 の明示） */
.hero-stats {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(1.2rem, 4vw, 3rem);
  margin: 0 0 2.4rem;
  padding: 0;
  animation: rise 0.9s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-width: 5.5rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.hero-stats strong {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats span {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.14em;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: rise 0.9s 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* スクロールインジケータ */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  width: 24px;
  height: 40px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
}

.hero-scroll span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: scroll-hint 1.8s ease-in-out infinite;
}

@keyframes scroll-hint {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ---------- ボタン ---------- */

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.btn-primary {
  color: #04121a;
  background: var(--gradient);
  box-shadow: 0 0 24px rgba(63, 224, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 42px rgba(63, 224, 255, 0.55);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- セクション見出し ---------- */

.latest {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4.5rem clamp(1rem, 4vw, 2.5rem) 6rem;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.2em;
}

.section-head h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ---------- 記事カードグリッド ---------- */

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

.article-card {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}

.article-card a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  padding: 1.5rem 1.6rem 1.4rem;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.article-card a::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.article-card a:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 224, 255, 0.45);
  box-shadow: 0 14px 40px rgba(3, 8, 20, 0.6), 0 0 24px rgba(63, 224, 255, 0.12);
}

.article-card a:hover::before {
  opacity: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.card-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--accent-2);
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: 4px;
  padding: 0.1rem 0.5rem;
}

.card-meta time,
.article-card time {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.article-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.article-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-arrow {
  margin-top: auto;
  align-self: flex-end;
  color: var(--accent);
  transition: transform 0.3s;
}

.article-card a:hover .card-arrow {
  transform: translateX(5px);
}

.empty {
  color: var(--muted);
  padding: 3rem 0;
  text-align: center;
  grid-column: 1 / -1;
}

/* ---------- 特徴カード ---------- */

.features {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) 5rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}

.feature-card {
  padding: 1.6rem 1.6rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(63, 224, 255, 0.09);
  border: 1px solid rgba(63, 224, 255, 0.25);
}

.feature-card h3 {
  margin: 0.9rem 0 0.4rem;
  font-size: 1.02rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- CTA バンド ---------- */

.cta-band {
  max-width: 1080px;
  margin: 0 auto 5rem;
  padding: 3.5rem clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(60% 120% at 20% 0%, rgba(63, 224, 255, 0.12), transparent),
    radial-gradient(60% 120% at 80% 100%, rgba(139, 92, 246, 0.14), transparent),
    var(--surface);
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 3.2vw, 1.7rem);
}

.cta-band p {
  margin: 0 0 1.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- About ページ ---------- */

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem clamp(1rem, 4vw, 2.5rem) 2rem;
}

.page > section {
  margin-bottom: 5rem;
}

.page-hero {
  text-align: center;
  padding: 3rem 0 1rem;
}

.page-hero h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.page-lead {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  text-align: left;
}

.page-lead strong {
  color: var(--text);
}

/* 比較表 */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 0.9rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .col-zp {
  color: var(--text);
  background: rgba(63, 224, 255, 0.05);
}

.compare-table thead .col-zp {
  color: var(--accent);
  font-weight: 800;
}

.compare-table .col-zp strong {
  font-family: var(--font-mono);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.table-note {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* FAQ */
.faq {
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  padding: 1.2rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.faq-item dt {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.faq-item dt::before {
  content: 'Q. ';
  color: var(--accent);
  font-family: var(--font-mono);
}

.faq-item dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.faq-item dd::before {
  content: 'A. ';
  color: var(--accent-2);
  font-family: var(--font-mono);
}

/* ロードマップ */
.roadmap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.roadmap li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.92rem;
}

.roadmap-tag {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid rgba(63, 224, 255, 0.35);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
}

/* ---------- 記事詳細 ---------- */

.article-detail {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.detail-head {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.detail-head time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.detail-head h1 {
  margin: 0.6rem 0 1rem;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.45;
}

.detail-author {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.detail-head .summary {
  margin: 0;
  color: var(--muted);
  border-left: 2px solid var(--accent-2);
  padding-left: 1rem;
}

.detail-body {
  margin-top: 2.5rem;
  font-size: 1rem;
  line-height: 2;
}

.detail-body p {
  margin: 0 0 1.6em;
}

.back {
  margin-top: 4rem;
}

/* ---------- 404 ---------- */

.error-page {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.6rem;
  padding: 4rem 1.5rem;
}

.error-code {
  margin: 0;
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 800;
  line-height: 1;
}

/* ---------- フッター ---------- */

.site-footer {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-logo {
  margin: 0 0 0.4rem;
}

.footer-tagline {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  margin-top: 1.4rem;
}

.footer-nav a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.25s;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-copy {
  margin: 1.6rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---------- 認証フォーム / マイページ ---------- */

.rss-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.rss-link:hover { color: var(--accent); }

.user-nav { margin-top: 1rem; }

.code-block {
  padding: 1rem 1.2rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
}

.new-secret {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border: 1px dashed rgba(74, 222, 128, 0.5);
  border-radius: 12px;
  background: rgba(74, 222, 128, 0.06);
}

.new-secret p { margin: 0 0 0.6rem; font-size: 0.85rem; }
#gen-key { width: auto; padding: 0.7rem 1.8rem; cursor: pointer; border: none; margin-top: 0.6rem; }

.nav-cta {
  padding: 0.35rem 1rem;
  border: 1px solid rgba(63, 224, 255, 0.45);
  border-radius: 999px;
  color: var(--accent) !important;
}

.auth-card {
  max-width: 460px;
  margin: 4rem auto;
  padding: 2.2rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.auth-card h1 {
  margin: 0 0 0.8rem;
  font-size: 1.4rem;
}

.auth-lead {
  color: var(--muted);
  font-size: 0.9rem;
}

form label {
  display: block;
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

form input,
form select,
form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

form input[type='file'] {
  padding: 0.5rem;
  font-size: 0.8rem;
}

form button[type='submit'] {
  margin-top: 1.4rem;
  width: 100%;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.form-msg {
  min-height: 1.2em;
  margin: 0.8rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-msg.ok { color: #4ade80; }
.form-msg.err { color: #f87171; }

.auth-alt {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ハニーポット（不可視） */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile { margin-top: 1rem; }

.mypage-head {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.mypage-head h1 { margin: 0; font-size: 1.3rem; }
.mypage-head .auth-lead { margin: 0.3rem 0 0; }

.profile-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
}

.logout-form { margin-left: auto; }
.logout-form button { width: auto; margin: 0; }

.inquiry-form { max-width: 560px; }
.inquiry-form button { width: auto; padding: 0.8rem 2.4rem; }

.inquiry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.inquiry-item {
  padding: 1.1rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.inquiry-item p { margin: 0.4rem 0 0; font-size: 0.88rem; color: var(--muted); white-space: pre-wrap; }
.inquiry-meta { display: flex; gap: 0.8rem; align-items: center; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.3rem; }

.status-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.st-open { color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.4); }
.st-closed { color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.4); }

/* ---------- 記事管理 / エディタ ---------- */

.mypage-head-actions { margin-left: auto; display: flex; gap: 0.8rem; align-items: center; }

.manage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0 2rem;
}

.manage-head h1 { margin: 0; font-size: 1.4rem; }
.manage-head-actions { display: flex; gap: 0.8rem; }

.manage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }

.manage-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.manage-title { display: block; color: var(--text); font-weight: 700; margin: 0.4rem 0 0.3rem; font-size: 1.02rem; }
.manage-title:hover { color: var(--accent); }
.manage-meta { display: flex; gap: 1rem; font-size: 0.78rem; color: var(--muted); font-family: var(--font-mono); flex-wrap: wrap; }
.manage-actions { display: flex; gap: 0.6rem; }

.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.8rem; }

.status-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.1em;
}

.sb-published { color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.4); }
.sb-scheduled { color: var(--accent); border: 1px solid rgba(63, 224, 255, 0.4); }
.sb-draft { color: var(--muted); border: 1px solid var(--border); }
.sb-archived { color: #f87171; border: 1px solid rgba(248, 113, 113, 0.4); }

.sched-time { color: var(--accent); }

/* エディタ */
.editor-label { margin-top: 1.4rem; }

.editor-wrap {
  margin-top: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.editor-wrap:focus-within { border-color: var(--accent); }

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  padding: 0.5rem 0.7rem;
  background: var(--bg-elevated); /* 不透明。スクロール時に本文が透けない */
  border-bottom: 1px solid var(--border);
}

.editor-toolbar button {
  position: relative;
  width: 34px;
  height: 32px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: none;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}

.editor-toolbar button:hover { background: rgba(255, 255, 255, 0.08); }
.editor-toolbar button.active { border-color: var(--accent); color: var(--accent); }

.editor-toolbar select {
  position: relative;
  width: auto;
  margin: 0;
  padding: 0.3rem 0.5rem;
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
}

.tb-sep { width: 1px; height: 20px; background: var(--border); margin: 0 0.4rem; }

/* ツールバーのホバーツールチップ */
.editor-toolbar [data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.7rem;
  background: #161c2e;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  z-index: 30;
  pointer-events: none;
}

.color-picker { position: relative; }
.color-bar { display: block; width: 16px; height: 3px; background: var(--gradient); border-radius: 2px; margin-top: 1px; }
.color-menu {
  display: none;
  position: absolute;
  top: 38px;
  left: 0;
  gap: 0.3rem;
  padding: 0.45rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 9px;
  z-index: 10;
}
.color-picker.open .color-menu { display: flex; }
.color-menu button { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); }

.editor-body {
  min-height: 340px;
  padding: 1.2rem 1.4rem;
  font-size: 0.98rem;
  line-height: 1.9;
  outline: none;
}

.editor-body h2 { font-size: 1.3rem; margin: 1.2em 0 0.5em; }
.editor-body h3 { font-size: 1.1rem; margin: 1em 0 0.4em; }
.editor-body blockquote { border-left: 3px solid var(--accent-2); margin: 1em 0; padding-left: 1em; color: var(--muted); }
.editor-body img { max-width: 100%; border-radius: 10px; }
.editor-body a { text-decoration: underline; }

/* 公開設定パネル */
.publish-panel {
  margin: 2rem 0 0;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.publish-panel legend { padding: 0 0.6rem; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.1em; }

.publish-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.8rem;
}

.publish-option input { position: absolute; opacity: 0; width: 0; }

.po-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  height: 100%;
}

.publish-option input:checked + .po-card {
  border-color: var(--accent);
  background: rgba(63, 224, 255, 0.07);
  box-shadow: 0 0 18px rgba(63, 224, 255, 0.15);
}

.po-icon { font-size: 1.15rem; }
.po-title { font-weight: 700; font-size: 0.92rem; }
.po-desc { font-size: 0.72rem; color: var(--muted); }

.schedule-field {
  display: none;
  margin-top: 1.1rem;
  padding: 1rem 1.2rem;
  border: 1px dashed rgba(63, 224, 255, 0.4);
  border-radius: 12px;
  background: rgba(63, 224, 255, 0.04);
}

.schedule-field.visible { display: block; }
.schedule-field label { margin: 0; }
.schedule-field input { max-width: 260px; color-scheme: dark; }
.schedule-hint { margin: 0.6rem 0 0; font-size: 0.76rem; color: var(--muted); }

.editor-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }
.editor-actions button { width: auto; margin: 0; padding: 0.8rem 2.4rem; cursor: pointer; }
.editor-actions .form-msg { margin: 0; }

.btn-danger {
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: none;
}
.btn-danger:hover { background: rgba(248, 113, 113, 0.1); }

.field-row label { flex: 1; }

/* ---------- 運営管理画面 ---------- */

.admin-title { font-size: 1.4rem; margin: 1rem 0; }

.admin-nav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.8rem;
}

.admin-nav a {
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  border: 1px solid transparent;
}

.admin-nav a.active,
.admin-nav a:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}

.admin-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.admin-stat {
  padding: 1.2rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.admin-stat strong {
  display: block;
  font-size: 1.6rem;
  font-family: var(--font-mono);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.admin-stat span { font-size: 0.75rem; color: var(--muted); }

.admin-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.admin-table th,
.admin-table td {
  padding: 0.6rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table thead th { color: var(--muted); font-size: 0.75rem; }

.admin-inquiry {
  padding: 1.2rem 1.4rem;
  margin-bottom: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.admin-inquiry.closed { opacity: 0.6; }
.admin-inquiry header { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.admin-inquiry .inquiry-from { font-size: 0.78rem; color: var(--muted); }
.admin-inquiry p { font-size: 0.88rem; color: var(--muted); white-space: pre-wrap; }
.admin-inquiry form { margin-top: 0.6rem; }
.admin-inquiry button { width: auto; margin: 0; padding: 0.45rem 1.2rem; font-size: 0.8rem; cursor: pointer; }

/* ---------- レスポンシブ / アクセシビリティ ---------- */

@media (max-width: 640px) {
  .pc-only {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* 共有ボタン */
.share-row { display: flex; gap: 0.8rem; align-items: center; margin-top: 2.5rem; font-size: 0.85rem; color: var(--muted); flex-wrap: wrap; }
.share-row a { padding: 0.35rem 1.1rem; border: 1px solid var(--border); border-radius: 999px; font-size: 0.8rem; }
.share-row a:hover { border-color: var(--accent); }

/* パネル（ログイン後エリアの共通カード） */
.panel {
  padding: 2rem clamp(1.2rem, 3vw, 2.2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.panel h2 { margin-top: 0; }
.inquiry-form { max-width: none; }
.inquiry-form button { margin-top: 1.2rem; }

/* 運営: グラフ・モーダル */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.chart-card { padding: 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.chart-card h3 { margin: 0 0 1rem; font-size: 0.85rem; color: var(--muted); }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 130px; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 2px; }
.bar { width: 100%; min-height: 2px; background: var(--gradient); border-radius: 3px 3px 0 0; }
.bar-col span { font-size: 0.55rem; color: var(--muted); font-family: var(--font-mono); white-space: nowrap; }
.admin-dialog { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border); border-radius: 14px; padding: 1.8rem; max-width: 420px; }
.admin-dialog::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); }
.dialog-actions { display: flex; gap: 0.8rem; margin-top: 1.2rem; }
.dialog-actions button { cursor: pointer; }
.row-actions { display: flex; gap: 0.4rem; }
.row-actions form { margin: 0; }

/* 記事詳細: アイキャッチ・タグ */
.detail-hero { margin: 1.8rem 0 0; }
.detail-hero img { width: 100%; border-radius: 14px; border: 1px solid var(--border); }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4rem 0 0; padding: 0; }
.tag-list li { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); border: 1px solid rgba(63, 224, 255, 0.35); border-radius: 999px; padding: 0.15rem 0.8rem; }

.funnel span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); }
