/* ============================================================
   SHINA396.COM — Global Stylesheet
   Theme: Witch's House × Rainy Starry Sky
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@600;700&family=Share+Tech+Mono&family=Noto+Sans+JP:wght@400;700&display=swap');

/* ── CSS Variables ── */
:root {
  --orange:      #f97316;
  --orange-dark: #c2410c;
  --sky:         #7dd3fc;
  --sky-dark:    #38bdf8;
  --navy:        #0c2440;
  --muted:       #6b7280;
  --bg:          #060f24;
  --glass:       rgba(255,255,255,0.90);
  --glass-hover: rgba(255,255,255,0.96);
  --border-grad: linear-gradient(135deg, var(--orange), rgba(255,255,255,0.6) 40%, var(--sky) 70%, var(--orange));

  /* Dark-bg text colors */
  --text-on-dark:       #ddeeff;
  --text-muted-on-dark: #8aaecc;
  --text-sky-on-dark:   #7dd3fc;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text-on-dark);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ============================================================
   BACKGROUND SYSTEM — Witch's House × Rainy Starry Sky
   ============================================================ */

.bg-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Sky gradient: deep navy top → light blue bottom */
.bg-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #050e1f 0%,
    #0a1f48 12%,
    #0e2d70 28%,
    #174e9e 45%,
    #3a7dbf 62%,
    #88c0e0 78%,
    #cae8f8 90%,
    #eef8ff 100%
  );
}

/* Grid — very subtle blue tint */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(80,160,220,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80,160,220,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* Scan line — disabled (no motion) */
.bg-scan { display: none; }

/* Orbs — static blue glows, no motion */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}
.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(20,80,180,0.3), transparent 70%);
  top: -100px; left: -100px;
}
.orb-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(249,115,22,0.08), transparent 70%);
  top: 20%; right: -60px;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(30,100,200,0.22), transparent 70%);
  bottom: 20%; left: 10%;
}
.orb-4 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(100,180,240,0.18), transparent 70%);
  bottom: -60px; right: 8%;
}

/* Individual stars — generated via JS */
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  animation: star-blink ease-in-out infinite alternate;
}

/* Moon */
.bg-moon {
  position: absolute;
  top: 56px;
  right: 140px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(220,240,255,0.18);
  box-shadow:
    inset -10px -3px 0 2px rgba(200,230,255,0.2),
    0 0 40px 14px rgba(140,200,255,0.07),
    0 0 80px 30px rgba(100,170,240,0.04);
}

/* Rain */
.bg-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.rain-drop {
  position: absolute;
  top: -40px;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(160,210,255,0.22) 50%,
    rgba(190,225,255,0.38) 100%
  );
  animation: rain-fall linear infinite;
  border-radius: 1px;
}

/* Fog at bottom */
.bg-fog {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(
    0deg,
    rgba(180,220,255,0.25) 0%,
    rgba(200,230,255,0.1) 50%,
    transparent 100%
  );
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* Star individual blink — each star gets its own duration/delay via inline style */
@keyframes star-blink {
  0%   { opacity: var(--op-min, 0.08); }
  100% { opacity: var(--op-max, 0.95); }
}

@keyframes rain-fall {
  to { transform: translateY(115vh); }
}
@keyframes holo-shimmer {
  0%,100% { background-position: -200% center; }
  50%     { background-position: 200% center; }
}
@keyframes holo-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes emblem-float {
  0%,100% { transform: translateY(0px); }
  50%     { transform: translateY(-10px); }
}
@keyframes about-emblem-float {
  0%,100% { transform: translate(-50%, -50%) translateY(0px); }
  50%     { transform: translate(-50%, -50%) translateY(-10px); }
}
@keyframes emblem-glow {
  0%,100% { filter: drop-shadow(0 0 8px rgba(80,160,240,0.5)); }
  50%     { filter: drop-shadow(0 0 22px rgba(100,180,255,0.85)) drop-shadow(0 0 40px rgba(249,115,22,0.25)); }
}
@keyframes corner-pulse {
  0%,100% { opacity: 0.4; }
  50%     { opacity: 1; }
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%     { opacity: 0; }
}
@keyframes glitch {
  0%,90%,100% { clip-path: none; transform: translate(0); }
  91%  { clip-path: inset(20% 0 60% 0); transform: translate(-3px,0); }
  92%  { clip-path: inset(50% 0 20% 0); transform: translate(3px,0); }
  93%  { clip-path: none; transform: translate(0); }
  94%  { clip-path: inset(10% 0 80% 0); transform: translate(-2px,1px); }
  95%  { clip-path: none; transform: translate(0); }
}
@keyframes slide-up {
  from { opacity:0; transform: translateY(24px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes float-tag {
  0%,100% { transform: translateY(0px); }
  50%     { transform: translateY(-4px); }
}
@keyframes underline-expand {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */

.site-wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   STATUS BAR
   ============================================================ */

.status-bar {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text-sky-on-dark);
  letter-spacing: 0.08em;
  background: rgba(120,60,200,0.1);
  border-bottom: 1px solid rgba(140,80,220,0.2);
  padding: 6px 24px;
  display: flex;
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 100;
  overflow: hidden;
  white-space: nowrap;
}
.status-bar .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sky);
  animation: blink 1.4s ease-in-out infinite;
  margin-right: 4px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8,5,18,0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(140,80,220,0.2);
  box-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-emblem {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Bebas Neue', cursive;
  font-size: 22px;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #c4b0ff, var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glitch 14s ease-in-out infinite;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(220,210,255,0.8);
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.site-nav a:hover { color: var(--orange); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.active { color: var(--orange); }
.site-nav a.active::after { transform: scaleX(1); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: rgba(220,210,255,0.8);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   GLASS CARD
   ============================================================ */

.card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  animation: slide-up 0.45s ease both;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 1px;
  background: var(--border-grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), #a855f7, var(--sky));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card .shimmer {
  display: none;
}
.card:hover {
  transform: translateY(-4px);
  background: var(--glass-hover);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 24px rgba(140,80,255,0.15);
}
.card:hover::after { opacity: 1; }

.card-corner {
  position: absolute;
  width: 12px; height: 12px;
  animation: corner-pulse 3s ease-in-out infinite;
}
.card-corner.tl { top: 4px; left: 4px; border-top: 2px solid var(--sky); border-left: 2px solid var(--sky); }
.card-corner.tr { top: 4px; right: 4px; border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); }
.card-corner.bl { bottom: 4px; left: 4px; border-bottom: 2px solid var(--orange); border-left: 2px solid var(--orange); }
.card-corner.br { bottom: 4px; right: 4px; border-bottom: 2px solid var(--sky); border-right: 2px solid var(--sky); }

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  padding: 80px 0 60px;
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-emblem {
  flex-shrink: 0;
  width: 260px;
  filter: drop-shadow(0 0 18px rgba(249,115,22,0.45)) drop-shadow(0 0 40px rgba(56,189,248,0.25));
  animation: emblem-float 4s ease-in-out infinite;
}
.hero-content { flex: 1; }

.hero-eyebrow {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text-sky-on-dark);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.hero-name {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(64px, 10vw, 100px);
  line-height: 0.9;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.hero-name .name-main {
  background: linear-gradient(135deg, #c4b0ff, var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-name .name-orange {
  color: #ffffff;
  -webkit-text-stroke: 2px var(--orange);
  text-shadow:
    0 0  10px rgba(249,115,22,0.9),
    0 0  28px rgba(249,115,22,0.6),
    0 0  60px rgba(249,115,22,0.3),
    2px 2px 0  rgba(180,60,0,0.2);
}
.hero-tagline {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-muted-on-dark);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.hero-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-on-dark);
  opacity: 0.75;
  max-width: 480px;
  margin-bottom: 28px;
}

/* SNS Buttons */
.sns-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-sns {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid rgba(140,80,220,0.4);
  background: rgba(40,20,80,0.5);
  color: var(--text-on-dark);
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
}
.btn-sns:hover {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(249,115,22,0.35);
}
.btn-sns svg { width: 14px; height: 14px; }

/* ============================================================
   SECTION TITLES
   ============================================================ */

.section-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text-sky-on-dark);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 36px;
  letter-spacing: 0.1em;
  color: var(--text-on-dark);
  margin-bottom: 32px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--orange), #a855f7);
}

/* ============================================================
   CONTENT HUB GRID (HOME)
   ============================================================ */

.hub-section { padding: 48px 0; }
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.hub-card {
  padding: 28px 24px;
  cursor: pointer;
}
.hub-card .card-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}
.hub-card .card-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 28px;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.hub-card .card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.hub-card .card-arrow {
  display: inline-flex;
  align-items: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-top: 16px;
  gap: 6px;
  transition: gap 0.2s;
}
.hub-card:hover .card-arrow { gap: 10px; }

.hub-orange .card-label { color: var(--orange); }
.hub-orange .card-title { color: var(--orange-dark); }
.hub-orange .card-arrow { color: var(--orange); }

.hub-purple .card-label { color: #a855f7; }
.hub-purple .card-title { color: #7c3aed; }
.hub-purple .card-arrow { color: #a855f7; }

.hub-sky .card-label { color: var(--sky-dark); }
.hub-sky .card-title { color: var(--sky-dark); }
.hub-sky .card-arrow { color: var(--sky-dark); }

.hub-green .card-label { color: #16a34a; }
.hub-green .card-title { color: #15803d; }
.hub-green .card-arrow { color: #16a34a; }

/* ============================================================
   PROFILE STRIP (HOME)
   ============================================================ */

.profile-strip {
  margin: 0 0 48px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.profile-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 28px;
  overflow: hidden;
}
.profile-name {
  font-family: 'Bebas Neue', cursive;
  font-size: 24px;
  letter-spacing: 0.1em;
  color: var(--navy);
}
.profile-handle {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}
.profile-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.tag {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(140,80,220,0.3);
  background: rgba(140,80,220,0.08);
  color: #7c3aed;
  animation: float-tag 3s ease-in-out infinite;
}
.tag:nth-child(2) { animation-delay: 0.4s; }
.tag:nth-child(3) { animation-delay: 0.8s; }
.tag:nth-child(4) { animation-delay: 1.2s; }

.profile-specs {
  margin-left: auto;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.profile-specs span { color: #7c3aed; }

/* ============================================================
   RECENT POSTS (HOME)
   ============================================================ */

.posts-section { padding: 0 0 80px; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.post-mini {
  padding: 20px;
  cursor: pointer;
}
.post-mini .post-cat {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.post-mini .post-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--navy);
}
.post-mini .post-date {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}
.cat-diary { color: var(--orange); }
.cat-game  { color: #a855f7; }
.cat-music { color: #0284c7; }
.cat-design{ color: #16a34a; }

/* ============================================================
   BLOG PAGE — HERO（リデザイン）
   ============================================================ */

.blog-hero { padding: 56px 0 44px; }

/* 全体フレーム */
.blog-title-frame {
  display: block;
  position: relative;
  margin: 12px 0 20px;
  text-align: center;
}

/* 上部バー：幾何学コーナー＋DIARYタグ */
.blog-title-topbar,
.blog-title-bottombar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.blog-title-topbar { margin-bottom: 2px; }
.blog-title-bottombar { margin-top: 0; }

/* 上部ダッシュライン */
.blog-title-topdash {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(125,211,252,0.3), transparent);
}

/* DIARYタグ（下部・大きめ） */
.blog-diary-tag {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: 0.35em;
  color: var(--sky);
  opacity: 0.85;
  flex: 1;
  text-align: center;
}

/* 幾何学コーナー（STEADICAMのテクニカルフレーム） */
.btc {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.btc.tl { border-top: 1.5px solid rgba(125,211,252,0.55); border-left: 1.5px solid rgba(125,211,252,0.55); }
.btc.tr { border-top: 1.5px solid rgba(125,211,252,0.55); border-right: 1.5px solid rgba(125,211,252,0.55); }
.btc.bl { border-bottom: 1.5px solid rgba(249,115,22,0.45); border-left: 1.5px solid rgba(249,115,22,0.45); }
.btc.br { border-bottom: 1.5px solid rgba(249,115,22,0.45); border-right: 1.5px solid rgba(249,115,22,0.45); }

/* メインエリア：スピードライン背景（Neon X） */
.blog-title-main {
  position: relative;
  overflow: hidden;
  line-height: 1;
}
.blog-title-main::before {
  content: '';
  position: absolute;
  inset: -10px -30px;
  background:
    linear-gradient(108deg,
      transparent 0%,   transparent 28%,
      rgba(249,115,22,0.055) 28%, rgba(249,115,22,0.055) 29%,
      transparent 29%,  transparent 42%,
      rgba(249,115,22,0.035) 42%, rgba(249,115,22,0.035) 43%,
      transparent 43%,  transparent 57%,
      rgba(125,211,252,0.04) 57%, rgba(125,211,252,0.04) 58%,
      transparent 58%,  transparent 72%,
      rgba(125,211,252,0.03) 72%, rgba(125,211,252,0.03) 73%,
      transparent 73%
    );
  pointer-events: none;
  z-index: 0;
}

/* BLOG 本文字（SHEKAI×Neon Xのインパクト） */
.blog-main-word {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(60px, 11vw, 112px);
  line-height: 0.88;
  letter-spacing: 0.06em;
  display: block;
  color: #ffffff;
  text-shadow:
    0 0  12px rgba(249,115,22,0.9),
    0 0  30px rgba(249,115,22,0.65),
    0 0  70px rgba(249,115,22,0.35),
    0 0 130px rgba(249,115,22,0.15),
    3px 3px 0   rgba(180,60,0,0.25);
  position: relative;
  z-index: 1;
}

/* 下部グラデーションライン（MOTION PIXELのセパレーター） */
.blog-title-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    var(--orange) 0%,
    rgba(125,211,252,0.5) 60%,
    transparent 100%
  );
}
.blog-hero-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--text-muted-on-dark);
  margin-top: 12px;
  letter-spacing: 0.08em;
}
.blog-hero-sub .cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
}

/* ============================================================
   FILTER BAR
   ============================================================ */

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(140,80,220,0.15);
}
.filter-btn {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  padding: 7px 18px;
  border-radius: 20px;
  border: 1px solid rgba(140,80,220,0.3);
  background: rgba(40,20,70,0.5);
  color: var(--text-on-dark);
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.filter-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
  box-shadow: 0 4px 14px rgba(249,115,22,0.3);
}

/* ============================================================
   BLOG ARTICLE GRID
   ============================================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.article-card.featured {
  grid-column: 1 / -1;
  display: flex;
  gap: 24px;
}
.article-card.featured .article-thumb {
  width: 280px;
  flex-shrink: 0;
  height: 180px;
}
.article-thumb {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #3b1a6b 0%, #0c0820 100%);
  position: relative;
  flex-shrink: 0;
}
.article-thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', cursive;
  font-size: 32px;
  color: rgba(255,255,255,0.12);
  letter-spacing: 0.1em;
}
.article-card {
  padding: 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-card .article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-card .article-cat {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
}
.article-card .article-date {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}
.article-card .article-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
}
.article-card.featured .article-title { font-size: 20px; }
.article-card .article-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}
.badge-diary { background: rgba(249,115,22,0.1);  color: var(--orange); }
.badge-blog  { background: rgba(56,189,248,0.12); color: #0284c7; }
/* 今後カテゴリーを追加する場合はここに追記 */

.cat-diary { color: var(--orange); }
.cat-blog  { color: #0284c7; }

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 0 80px;
}
.page-btn {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  width: 36px; height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(140,80,220,0.3);
  background: rgba(40,20,70,0.5);
  color: var(--text-on-dark);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.page-btn:hover { border-color: var(--orange); color: var(--orange); }
.page-btn.active { background: var(--orange); border-color: var(--orange); color: white; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-hero {
  padding: 64px 0 48px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.about-emblem-wrap {
  flex-shrink: 0;
  position: relative;
  width: 240px; height: 240px;
  overflow: visible;
}
.about-emblem {
  width: 420px; height: 420px;
  object-fit: contain;
  position: absolute;
  top: 50%; left: 50%;
  filter: drop-shadow(0 0 18px rgba(249,115,22,0.45)) drop-shadow(0 0 40px rgba(56,189,248,0.25));
  animation: about-emblem-float 4s ease-in-out infinite;
}
.holo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(140,80,220,0.25);
  animation: holo-rotate 8s linear infinite;
}
.holo-ring-1 { inset: -16px; }
.holo-ring-2 { inset: -28px; border-color: rgba(249,115,22,0.15); animation-direction: reverse; animation-duration: 12s; }

.about-name {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(52px, 8vw, 80px);
  line-height: 0.9;
  letter-spacing: 0.05em;
}
.about-name .t-navy {
  background: linear-gradient(135deg, #c4b0ff, var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-name .t-orange {
  color: #ffffff;
  -webkit-text-stroke: 2px var(--orange);
  text-shadow:
    0 0  10px rgba(249,115,22,0.9),
    0 0  28px rgba(249,115,22,0.6),
    0 0  60px rgba(249,115,22,0.3),
    2px 2px 0  rgba(180,60,0,0.2);
}

.about-handle {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: #ffffff;
  margin: 8px 0 10px;
  opacity: 0.85;
}
.about-intro {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.9;
  color: #ffffff;
  opacity: 0.9;
  margin-bottom: 18px;
}

.profile-table { width: 100%; }
.profile-table td {
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(140,80,220,0.12);
  color: var(--navy);
}
.profile-table td:first-child {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #7c3aed;
  width: 120px;
  letter-spacing: 0.1em;
}

/* about-hero 内のテーブルは背景が暗いので文字を白に上書き */
.about-hero .profile-table td {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.08);
}
.about-hero .profile-table td:first-child {
  color: var(--sky);
}
/* about-hero 内のタグも視認性を上げる */
.about-hero .tag {
  color: #ffffff;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
}

/* ダーク背景カード内のテーブル・タグ文字を白に上書き */
.article-card-page .profile-table td {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.08);
}
.article-card-page .profile-table td:first-child {
  color: var(--sky);
}
.article-card-page .tag {
  color: #ffffff;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
}
.article-card-page .about-name .t-navy {
  color: #ffffff;
}

/* Activities grid */
.activities-section { padding: 0 0 64px; }
.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.activity-card { padding: 28px 24px; }
.activity-card .act-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.activity-card .act-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 22px;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 8px;
}
.activity-card .act-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* SNS links */
.sns-section { padding: 0 0 80px; }
.sns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sns-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
}
.sns-card .sns-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.sns-card .sns-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
}
.sns-card .sns-handle {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  border-top: 1px solid rgba(140,80,220,0.15);
  padding: 28px 24px;
  background: rgba(5,3,12,0.6);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text-muted-on-dark);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted-on-dark);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--orange); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: rgba(8,5,18,0.96);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-bottom: 1px solid rgba(140,80,220,0.2);
    gap: 4px;
  }
  .nav-toggle { display: flex; }

  /* ステータスバー：スマホでは一部非表示 */
  .status-bar { gap: 14px; padding: 6px 16px; font-size: 10px; }
  .status-bar .status-node,
  .status-bar .status-time { display: none; }

  /* サイトラップの余白を縮小 */
  .site-wrap { padding: 0 16px; }

  /* ヒーロー */
  .hero { flex-direction: column; gap: 24px; padding: 40px 0 32px; text-align: center; }
  .hero-emblem { width: 180px; margin: 0 auto; }
  .hero-desc { margin: 0 auto 24px; }
  .sns-buttons { justify-content: center; }

  /* コンテンツハブ */
  .hub-grid { grid-template-columns: 1fr; }

  /* プロフィールストリップ */
  .profile-strip { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .profile-specs { margin-left: 0; }
  .profile-handle { font-size: 11px; word-break: break-all; }

  /* 最近の記事 */
  .posts-grid { grid-template-columns: 1fr; }

  /* ブログ */
  .blog-main-word { letter-spacing: 0.03em; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-card.featured { flex-direction: column; }
  .article-card.featured .article-thumb { width: 100%; height: 140px; }
  .filter-bar { gap: 6px; }
  .filter-btn { font-size: 12px; padding: 6px 14px; }

  /* About */
  .about-hero { flex-direction: column; gap: 24px; text-align: center; }
  .about-emblem-wrap { margin: 0 auto; }
  .profile-tags { justify-content: center; }
  .activities-grid { grid-template-columns: 1fr; }
  .sns-grid { grid-template-columns: 1fr 1fr; }

  /* セクションタイトル */
  .section-title { font-size: 28px; }

  /* フッター */
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 14px; }
}

@media (max-width: 480px) {
  .sns-grid { grid-template-columns: 1fr; }
  .sns-buttons { flex-direction: column; align-items: stretch; }
  .btn-sns { justify-content: center; }
  .hub-card { padding: 22px 18px; }
  .profile-strip { padding: 16px; }
  .status-bar { font-size: 9px; }
}

/* ============================================================
   ARTICLE PAGE（個別記事ページ）
   ============================================================ */

.article-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 0 100px;
}

/* 戻るボタン */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--sky);
  letter-spacing: 0.1em;
  text-decoration: none;
  margin-bottom: 28px;
  transition: opacity 0.2s;
}
.article-back:hover { opacity: 0.6; }
.article-back::before { content: '←'; }

/* アイキャッチ画像 */
.article-eyecatch {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, #1e1060 0%, #0c2440 100%);
}
.article-eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 記事カード本体 — 白ガラスではなくダーク背景に上書き */
.article-card-page {
  padding: 36px 40px 48px;
  background: rgba(6, 15, 36, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* カテゴリ＋日付 */
.article-page-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.article-page-date {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* タイトル */
.article-page-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(26px, 4.5vw, 44px);
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin-bottom: 8px;
}
.article-page-subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* 本文エリア */
.article-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  line-height: 2.05;
  color: #ffffff;
}
.article-body p {
  margin-bottom: 22px;
}
.article-body h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(18px, 3vw, 26px);
  letter-spacing: 0.08em;
  color: var(--sky);
  margin: 48px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
  line-height: 1.3;
}
.article-body h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.06em;
  margin: 30px 0 10px;
}

/* インライン画像 */
.article-figure {
  margin: 32px 0;
}
.article-figure img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  display: block;
}
.article-figure figcaption {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
  letter-spacing: 0.08em;
}

/* フッター区切り */
.article-footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 40px 0 28px;
}
.article-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

/* カードをリンクにした場合のリセット */
a.card { text-decoration: none; color: inherit; }
a.article-card { cursor: pointer; }

/* レスポンシブ */
@media (max-width: 768px) {
  .article-page { padding: 24px 0 60px; }
  .article-card-page { padding: 24px 20px 36px; }
  .article-page-title { font-size: clamp(22px, 6vw, 32px); }
  .article-body { font-size: 14px; }
}
