/*
Theme Name: GeneratePress Child
Theme URI: https://strollingplanet.jp/
Description: Child theme for GeneratePress.
Author: Strolling Planet
Template: generatepress
Version: 1.0.0
*/

/* ==================================================
   Design tokens
================================================== */

:root {
  --sp-void: #06060f;
  --sp-deep: #0c0d22;
  --sp-panel: #13142e;
  --sp-panel-2: #1a1c3d;

  --sp-nebula: #7b5cff;
  --sp-nebula-2: #b06bff;
  --sp-plasma: #ff5ca8;
  --sp-cyan: #3df0ff;
  --sp-aurora: #5effc9;
  --sp-gold: #ffcf6b;

  --sp-star: #eef0ff;
  --sp-text: #cdd0f0;
  --sp-text-soft: #8b8fc4;
  --sp-read: #e8e9f5;
  --sp-read-soft: #b9bce0;
  --sp-read-bg: #0b0c1c;

  --sp-border: rgba(123, 92, 255, 0.22);
  --sp-border-strong: rgba(176, 107, 255, 0.5);
  --sp-border-soft: rgba(180, 185, 255, 0.1);

  --sp-glow: 0 0 30px rgba(123, 92, 255, 0.35);
  --sp-shadow-card: 0 22px 55px rgba(123, 92, 255, 0.3);

  --sp-font-body: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  --sp-font-display: "Orbitron", system-ui, sans-serif;
}

/* ==================================================
   Base
================================================== */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--sp-void);
  color: var(--sp-text);
  font-family: var(--sp-font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: var(--sp-font-body);
}

a {
  transition: 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
}

.sp-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ==================================================
   Cosmic background
================================================== */

.sp-cosmos {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(123, 92, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(255, 92, 168, 0.16), transparent 55%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(61, 240, 255, 0.1), transparent 60%),
    linear-gradient(180deg, var(--sp-void), var(--sp-deep) 40%, var(--sp-void));
}

.sp-stars,
.sp-stars-2 {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.sp-stars {
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 60% 70%, #fff, transparent),
    radial-gradient(1px 1px at 80% 10%, #fff, transparent),
    radial-gradient(1px 1px at 40% 80%, #fff, transparent),
    radial-gradient(2px 2px at 33% 50%, #fff, transparent),
    radial-gradient(1px 1px at 90% 50%, #fff, transparent);
  background-size: 550px 550px;
  background-repeat: repeat;
  opacity: 0.62;
  animation: sp-drift 200s linear infinite;
}

.sp-stars-2 {
  background-image:
    radial-gradient(1px 1px at 25% 15%, var(--sp-cyan), transparent),
    radial-gradient(2px 2px at 70% 60%, #fff, transparent),
    radial-gradient(1px 1px at 50% 35%, var(--sp-nebula-2), transparent);
  background-size: 400px 400px;
  background-repeat: repeat;
  opacity: 0.46;
  animation: sp-twinkle 6s ease-in-out infinite alternate;
}

.sp-planets {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 340vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
}

.sp-bg-planet {
  position: absolute;
  border-radius: 50%;
  animation: sp-bob 11s ease-in-out infinite;
}

.sp-bg-planet::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.06) 0 2px,
    transparent 2px 16px
  );
  opacity: 0.6;
}

.sp-bg-planet-1 {
  width: 120px;
  height: 120px;
  top: 14vh;
  left: -44px;
  background: radial-gradient(circle at 32% 28%, var(--sp-nebula-2), var(--sp-nebula) 45%, #1a0d4d 80%);
  box-shadow: 0 0 50px rgba(123, 92, 255, 0.4), inset -14px -10px 34px rgba(0, 0, 0, 0.6);
  opacity: 0.5;
}

.sp-bg-planet-2 {
  width: 70px;
  height: 70px;
  top: 42vh;
  right: 6%;
  background: radial-gradient(circle at 35% 30%, var(--sp-cyan), #073445 78%);
  box-shadow: 0 0 34px rgba(61, 240, 255, 0.35), inset -8px -6px 20px rgba(0, 0, 0, 0.6);
  opacity: 0.46;
}

.sp-bg-planet-3 {
  width: 150px;
  height: 150px;
  top: 118vh;
  right: -56px;
  background: radial-gradient(circle at 32% 28%, var(--sp-plasma), #430a28 78%);
  box-shadow: 0 0 60px rgba(255, 92, 168, 0.35), inset -18px -12px 40px rgba(0, 0, 0, 0.6);
  opacity: 0.46;
}

.sp-bg-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(180, 185, 255, 0.18);
  transform: rotateX(74deg);
}

@keyframes sp-drift {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-550px);
  }
}

@keyframes sp-twinkle {
  from {
    opacity: 0.22;
  }

  to {
    opacity: 0.62;
  }
}

@keyframes sp-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-22px);
  }
}

@keyframes sp-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sp-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

/* ==================================================
   GeneratePress layout reset for custom pages
================================================== */

.home .site.grid-container,
.single .site.grid-container {
  max-width: none;
}

.home .site-content,
.single .site-content {
  display: block;
  padding: 0;
}

.home .content-area,
.home .site-main,
.single .content-area,
.single .site-main {
  width: 100%;
}

.home.right-sidebar .site-content,
.single.right-sidebar .site-content {
  display: block;
}

.home .widget-area,
.single .widget-area {
  display: none;
}

/* ==================================================
   GeneratePress header / footer override
================================================== */

.site-header {
  background: rgba(6, 6, 15, 0.88);
  border-bottom: 1px solid var(--sp-border);
  backdrop-filter: blur(16px);
}

.inside-header {
  max-width: 1160px;
  min-height: 76px;
  padding-left: 28px;
  padding-right: 28px;
}

.main-title a {
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.main-title a:hover {
  color: var(--sp-cyan);
}

.main-navigation,
.main-navigation ul ul {
  background: transparent;
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items {
  color: var(--sp-text);
  font-weight: 700;
  text-decoration: none;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a {
  color: var(--sp-cyan);
}

.mobile-menu-control-wrapper .menu-toggle,
.mobile-menu-control-wrapper .menu-toggle:hover,
.mobile-menu-control-wrapper .menu-toggle:focus {
  color: var(--sp-text);
  background: rgba(123, 92, 255, 0.08);
}

.site-footer,
.site-info {
  background: rgba(6, 6, 15, 0.96);
  color: var(--sp-text-soft);
  border-top: 1px solid var(--sp-border);
}

.inside-site-info {
  padding-top: 26px;
  padding-bottom: 26px;
}

.site-info a {
  color: var(--sp-cyan);
  text-decoration: none;
}

.site-info a:hover {
  color: #fff;
}

/* ==================================================
   Common parts
================================================== */

.sp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--sp-cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  background: rgba(61, 240, 255, 0.05);
  border: 1px solid var(--sp-border);
}

.sp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sp-aurora);
  box-shadow: 0 0 10px var(--sp-aurora);
}

.sp-post-tag {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 5px 13px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(123, 92, 255, 0.34);
  border: 1px solid var(--sp-border-strong);
  backdrop-filter: blur(4px);
}

/* ==================================================
   Blog home
================================================== */

.sp-blog-main {
  position: relative;
  min-height: 100vh;
}

.sp-blog-hero {
  padding: 72px 0 46px;
}

.sp-blog-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: center;
}

.sp-blog-hero h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.sp-blog-hero h1 span {
  background: linear-gradient(120deg, var(--sp-cyan), var(--sp-nebula-2) 50%, var(--sp-plasma));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sp-blog-lead {
  max-width: 620px;
  margin: 0;
  color: var(--sp-text-soft);
  font-size: 1rem;
  line-height: 1.9;
}

.sp-blog-hero-planet {
  display: grid;
  place-items: center;
}

.sp-mini-orbit {
  position: relative;
  width: 210px;
  height: 210px;
}

.sp-mini-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(180, 185, 255, 0.25);
  transform: rotateX(74deg);
  animation: sp-spin 18s linear infinite;
}

.sp-mini-planet {
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  font-size: 3rem;
  background: radial-gradient(circle at 32% 28%, var(--sp-nebula-2), var(--sp-nebula) 42%, #241266 78%, #0a0626);
  box-shadow:
    0 0 60px rgba(123, 92, 255, 0.5),
    inset -20px -16px 48px rgba(0, 0, 0, 0.65);
  animation: sp-float 7s ease-in-out infinite;
}

.sp-blog-content {
  padding: 24px 0 96px;
}

.sp-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  align-items: start;
}

.sp-article-area {
  min-width: 0;
}

/* Category filter */

.sp-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--sp-border);
}

.sp-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--sp-text-soft);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(123, 92, 255, 0.06);
  border: 1px solid var(--sp-border);
}

.sp-filter-chip:hover {
  color: #fff;
  border-color: var(--sp-cyan);
  box-shadow: 0 0 18px rgba(61, 240, 255, 0.18);
}

.sp-filter-chip.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, var(--sp-nebula), var(--sp-plasma));
  box-shadow: 0 0 22px rgba(123, 92, 255, 0.42);
}

/* Lead post */

.sp-lead-post {
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(26, 28, 61, 0.76), rgba(12, 13, 34, 0.82));
  border: 1px solid var(--sp-border);
  transition: 0.35s ease;
}

.sp-lead-post:hover {
  transform: translateY(-5px);
  border-color: var(--sp-nebula);
  box-shadow: 0 28px 70px rgba(123, 92, 255, 0.32);
}

.sp-lead-post-link {
  display: grid;
  grid-template-columns: 330px 1fr;
  color: inherit;
  text-decoration: none;
}

.sp-lead-thumb {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
  font-size: 2rem;
  background: radial-gradient(circle at 35% 30%, var(--sp-nebula-2), #1a0d4d 78%);
}

.sp-lead-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-lead-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 25% 35%, #fff, transparent),
    radial-gradient(1px 1px at 70% 60%, #fff, transparent),
    radial-gradient(2px 2px at 85% 25%, var(--sp-cyan), transparent);
  background-size: 110px 110px;
  opacity: 0.45;
}

.sp-lead-body {
  padding: 34px;
}

.sp-lead-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  color: var(--sp-cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sp-lead-body h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.5;
}

.sp-lead-body p {
  margin: 0 0 18px;
  color: var(--sp-text-soft);
  font-size: 0.94rem;
  line-height: 1.9;
}

/* Post grid */

.sp-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.sp-post-card {
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(26, 28, 61, 0.76), rgba(12, 13, 34, 0.82));
  border: 1px solid var(--sp-border);
  transition: 0.35s ease;
}

.sp-post-card:hover {
  transform: translateY(-7px);
  border-color: var(--sp-nebula);
  box-shadow: var(--sp-shadow-card);
}

.sp-post-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.sp-post-thumb {
  position: relative;
  height: 170px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.7rem;
  background: radial-gradient(circle at 35% 30%, var(--sp-cyan), #073445 78%);
}

.sp-post-card:nth-child(4n + 1) .sp-post-thumb {
  background: radial-gradient(circle at 35% 30%, var(--sp-nebula-2), #1a0d4d 78%);
}

.sp-post-card:nth-child(4n + 2) .sp-post-thumb {
  background: radial-gradient(circle at 35% 30%, var(--sp-cyan), #073445 78%);
}

.sp-post-card:nth-child(4n + 3) .sp-post-thumb {
  background: radial-gradient(circle at 35% 30%, var(--sp-plasma), #430a28 78%);
}

.sp-post-card:nth-child(4n) .sp-post-thumb {
  background: radial-gradient(circle at 35% 30%, var(--sp-gold), #5a3a0a 78%);
}

.sp-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-post-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 25% 35%, #fff, transparent),
    radial-gradient(1px 1px at 70% 60%, #fff, transparent),
    radial-gradient(2px 2px at 85% 25%, var(--sp-cyan), transparent);
  background-size: 100px 100px;
  opacity: 0.42;
}

.sp-post-body {
  padding: 22px;
}

.sp-post-body h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.55;
}

.sp-post-card:hover .sp-post-body h2 {
  color: var(--sp-cyan);
}

.sp-post-body p {
  margin: 0 0 16px;
  color: var(--sp-text-soft);
  font-size: 0.9rem;
  line-height: 1.8;
}

.sp-post-meta {
  display: flex;
  gap: 16px;
  color: var(--sp-text-soft);
  font-size: 0.78rem;
}

.sp-post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Blog sidebar */

.sp-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sp-widget {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(26, 28, 61, 0.76), rgba(12, 13, 34, 0.82));
  border: 1px solid var(--sp-border);
  backdrop-filter: blur(10px);
}

.sp-widget h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.sp-widget h2 i {
  color: var(--sp-cyan);
}

.sp-side-category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  color: var(--sp-text);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--sp-border-soft);
}

.sp-side-category-list a:last-child {
  border-bottom: none;
}

.sp-side-category-list a:hover {
  color: var(--sp-cyan);
  padding-left: 5px;
}

.sp-side-category-list b {
  min-width: 30px;
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--sp-text-soft);
  font-size: 0.72rem;
  text-align: center;
  background: rgba(123, 92, 255, 0.12);
}

.sp-contact-widget {
  background:
    radial-gradient(circle at 80% 10%, rgba(176, 107, 255, 0.28), transparent 55%),
    linear-gradient(120deg, #160a4d, #0a0626);
}

.sp-contact-widget p {
  margin: 0 0 18px;
  color: var(--sp-text);
  font-size: 0.88rem;
  line-height: 1.8;
}

.sp-widget-button {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  color: #061018;
  font-weight: 900;
  text-decoration: none;
  background: linear-gradient(120deg, var(--sp-cyan), var(--sp-nebula));
}

.sp-widget-button:hover {
  color: #061018;
  box-shadow: 0 0 24px rgba(61, 240, 255, 0.32);
}

/* Pagination / empty */

.sp-pagination {
  margin-top: 44px;
}

.sp-pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sp-pagination .page-numbers {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 13px;
  color: var(--sp-text-soft);
  text-decoration: none;
  border: 1px solid var(--sp-border);
  background: rgba(123, 92, 255, 0.05);
}

.sp-pagination .page-numbers.current {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, var(--sp-nebula), var(--sp-plasma));
  box-shadow: 0 0 18px rgba(123, 92, 255, 0.42);
}

.sp-pagination .page-numbers:hover {
  color: #fff;
  border-color: var(--sp-cyan);
}

.sp-empty-box {
  padding: 38px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(26, 28, 61, 0.76), rgba(12, 13, 34, 0.82));
  border: 1px solid var(--sp-border);
}

.sp-empty-box h2 {
  margin: 0 0 12px;
  color: #fff;
}

/* ==================================================
   Single article
================================================== */

.sp-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sp-cyan), var(--sp-nebula), var(--sp-plasma));
  box-shadow: 0 0 10px var(--sp-cyan);
}

.sp-single-main {
  position: relative;
  min-height: 100vh;
}

/* Breadcrumb */

.sp-breadcrumb {
  padding: 24px 0 4px;
  color: var(--sp-text-soft);
  font-size: 0.8rem;
}

.sp-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sp-breadcrumb li:not(:last-child)::after {
  content: "›";
  color: var(--sp-text-soft);
  font-size: 0.9rem;
}

.sp-breadcrumb a {
  color: var(--sp-text-soft);
  text-decoration: none;
}

.sp-breadcrumb a:hover {
  color: var(--sp-cyan);
}

.sp-breadcrumb li[aria-current="page"] {
  color: #c8c9e8;
}

/* Article header */

.sp-single-article {
  position: relative;
}

.sp-article-head {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px 0 28px;
  text-align: center;
}

.sp-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  background: rgba(123, 92, 255, 0.22);
  border: 1px solid var(--sp-border-strong);
  box-shadow: 0 0 16px rgba(123, 92, 255, 0.35);
}

.sp-cat-badge:hover {
  color: #fff;
  border-color: var(--sp-cyan);
}

.sp-entry-title,
.sp-article-head h1 {
  max-width: 860px;
  margin: 20px auto 22px;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.sp-entry-summary {
  max-width: 760px;
  margin: -8px auto 22px;
  color: var(--sp-text-soft);
  font-size: 0.98rem;
  line-height: 1.9;
}

.sp-article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 22px;
  color: var(--sp-text-soft);
  font-size: 0.84rem;
}

.sp-article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sp-author-mini a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--sp-text-soft);
  text-decoration: none;
}

.sp-author-mini a:hover {
  color: var(--sp-cyan);
}

.sp-author-mini img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--sp-border);
}

/* Eyecatch */

.sp-eyecatch {
  height: 360px;
  margin: 26px 0 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--sp-border);
  position: relative;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  background: radial-gradient(circle at 38% 30%, var(--sp-nebula), #160a4d 70%);
}

.sp-eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-eyecatch::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 25% 35%, #fff, transparent),
    radial-gradient(2px 2px at 80% 30%, var(--sp-cyan), transparent),
    radial-gradient(1px 1px at 55% 75%, #fff, transparent);
  background-size: 120px 120px;
  opacity: 0.35;
}

.sp-eyecatch span {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.sp-eyecatch span i {
  font-size: 2.4rem;
  opacity: 0.7;
}

/* Article layout */

.sp-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 48px;
  padding: 40px 0 70px;
  align-items: start;
}

.sp-article-main {
  min-width: 0;
}

.sp-article-body {
  background: var(--sp-read-bg);
  border: 1px solid var(--sp-border);
  border-radius: 20px;
  padding: 46px 52px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.sp-article-body > *:first-child {
  margin-top: 0;
}

.sp-article-body p {
  margin: 0 0 24px;
  color: var(--sp-read);
  font-size: 1.04rem;
  line-height: 2.05;
  letter-spacing: 0.01em;
}

.sp-article-body h2 {
  position: relative;
  margin: 48px 0 20px;
  padding-left: 18px;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.6;
  scroll-margin-top: 96px;
}

.sp-article-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--sp-cyan), var(--sp-nebula));
}

.sp-article-body h3 {
  margin: 34px 0 14px;
  color: var(--sp-cyan);
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.6;
  scroll-margin-top: 96px;
}

.sp-article-body h4 {
  margin: 28px 0 12px;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.6;
}

.sp-article-body strong {
  color: #fff;
  font-weight: 800;
  background: linear-gradient(transparent 64%, rgba(123, 92, 255, 0.32) 64%);
}

.sp-article-body a {
  color: var(--sp-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(61, 240, 255, 0.4);
}

.sp-article-body a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.sp-article-body ul,
.sp-article-body ol {
  margin: 0 0 24px;
  padding-left: 4px;
  list-style: none;
}

.sp-article-body li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 30px;
  color: var(--sp-read);
  font-size: 1.04rem;
  line-height: 1.9;
}

.sp-article-body ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.68em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sp-cyan);
  box-shadow: 0 0 8px var(--sp-cyan);
}

.sp-article-body ol {
  counter-reset: sp-counter;
}

.sp-article-body ol li {
  counter-increment: sp-counter;
}

.sp-article-body ol li::before {
  content: counter(sp-counter);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(123, 92, 255, 0.25);
  border: 1px solid var(--sp-nebula);
}

.sp-article-body blockquote,
.sp-article-body .callout {
  margin: 30px 0;
  padding: 20px 22px;
  border-radius: 12px;
  color: var(--sp-read-soft);
  background: rgba(61, 240, 255, 0.06);
  border: 1px solid var(--sp-border);
  border-left: 4px solid var(--sp-cyan);
}

.sp-article-body blockquote p,
.sp-article-body .callout p {
  margin-bottom: 0;
  color: var(--sp-read-soft);
  font-size: 0.98rem;
  line-height: 1.9;
}

.sp-article-body figure {
  margin: 34px 0;
}

.sp-article-body figure img {
  border-radius: 14px;
  border: 1px solid var(--sp-border);
}

.sp-article-body figcaption {
  margin-top: 10px;
  color: var(--sp-text-soft);
  font-size: 0.82rem;
  text-align: center;
}

.sp-article-body table {
  width: 100%;
  margin: 30px 0;
  border-collapse: collapse;
  overflow: hidden;
  color: var(--sp-read);
  font-size: 0.92rem;
}

.sp-article-body th,
.sp-article-body td {
  padding: 12px 14px;
  border: 1px solid var(--sp-border-soft);
}

.sp-article-body th {
  color: #fff;
  background: rgba(123, 92, 255, 0.18);
}

.sp-page-links {
  margin-top: 30px;
  color: var(--sp-text-soft);
}

/* Tags */

.sp-entry-tags {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 22px;
  border-radius: 16px;
  background: rgba(19, 20, 46, 0.78);
  border: 1px solid var(--sp-border);
}

.sp-entry-tags > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  color: var(--sp-cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.sp-entry-tags div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sp-entry-tags a {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--sp-text);
  font-size: 0.82rem;
  text-decoration: none;
  background: rgba(123, 92, 255, 0.12);
  border: 1px solid var(--sp-border);
}

.sp-entry-tags a:hover {
  color: #fff;
  border-color: var(--sp-cyan);
}

/* TOC */

.sp-article-side {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sp-toc,
.sp-mobile-toc {
  background: rgba(19, 20, 46, 0.92);
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  padding: 22px;
  backdrop-filter: blur(8px);
}

.sp-mobile-toc {
  display: none;
  margin-top: 24px;
  text-align: left;
}

.sp-toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--sp-cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.sp-toc a,
.sp-mobile-toc a {
  display: block;
  padding: 8px 0 8px 14px;
  color: var(--sp-text-soft);
  font-size: 0.86rem;
  line-height: 1.5;
  text-decoration: none;
  border-left: 2px solid var(--sp-border);
}

.sp-toc a:hover,
.sp-mobile-toc a:hover {
  color: #fff;
}

.sp-toc a.is-active,
.sp-mobile-toc a.is-active {
  color: #fff;
  border-left-color: var(--sp-cyan);
  box-shadow: -1px 0 0 var(--sp-cyan);
}

.sp-toc a.is-sub,
.sp-mobile-toc a.is-sub {
  padding-left: 28px;
  font-size: 0.8rem;
}

/* Article side card */

.sp-side-card {
  padding: 20px;
  border-radius: 16px;
  background: rgba(19, 20, 46, 0.92);
  border: 1px solid var(--sp-border);
}

.sp-side-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--sp-cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.sp-side-card a {
  display: block;
  padding: 9px 0;
  color: var(--sp-text-soft);
  font-size: 0.86rem;
  text-decoration: none;
  border-bottom: 1px solid var(--sp-border-soft);
}

.sp-side-card a:last-child {
  border-bottom: none;
}

.sp-side-card a:hover {
  color: var(--sp-cyan);
}

/* Action buttons */

.sp-action-bar {
  display: flex;
  gap: 10px;
}

.sp-action-bar button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 0;
  border-radius: 12px;
  color: var(--sp-read-soft);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  background: rgba(19, 20, 46, 0.92);
  border: 1px solid var(--sp-border);
}

.sp-action-bar button:hover {
  color: #fff;
  border-color: var(--sp-cyan);
}

/* Author box */

.sp-author-box {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 58px;
  padding: 26px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(26, 28, 61, 0.8), rgba(12, 13, 34, 0.8));
  border: 1px solid var(--sp-border);
}

.sp-author-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(123, 92, 255, 0.5);
}

.sp-author-name {
  margin-bottom: 8px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}

.sp-author-name a {
  color: #fff;
  text-decoration: none;
}

.sp-author-name a:hover {
  color: var(--sp-cyan);
}

.sp-author-box p {
  margin: 0;
  color: var(--sp-read-soft);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* Related posts */

.sp-related {
  padding-bottom: 84px;
}

.sp-related-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.sp-related-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--sp-gold);
  font-size: 1.4rem;
  background: rgba(19, 20, 46, 0.92);
  border: 1px solid var(--sp-border);
  box-shadow: var(--sp-glow);
}

.sp-related-head p {
  margin: 0 0 3px;
  color: var(--sp-cyan);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.28em;
}

.sp-related-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
}

.sp-related-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--sp-border), transparent);
}

.sp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.sp-related-card {
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(26, 28, 61, 0.62), rgba(12, 13, 34, 0.72));
  border: 1px solid var(--sp-border);
  transition: 0.35s ease;
}

.sp-related-card:hover {
  transform: translateY(-7px);
  border-color: var(--sp-nebula);
  box-shadow: 0 18px 44px rgba(123, 92, 255, 0.32);
}

.sp-related-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.sp-related-thumb {
  height: 145px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  background: radial-gradient(circle at 35% 30%, var(--sp-nebula-2), #1a0d4d);
}

.sp-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-related-body {
  padding: 18px;
}

.sp-related-body span {
  color: var(--sp-cyan);
  font-size: 0.72rem;
  font-weight: 900;
}

.sp-related-body h3 {
  margin: 8px 0 10px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.55;
}

.sp-related-card:hover h3 {
  color: var(--sp-cyan);
}

.sp-related-body p {
  margin: 0;
  color: var(--sp-text-soft);
  font-size: 0.76rem;
}

/* ==================================================
   Responsive
================================================== */

@media (max-width: 980px) {
  .sp-blog-hero-inner {
    grid-template-columns: 1fr;
  }

  .sp-blog-hero-planet {
    display: none;
  }

  .sp-blog-layout {
    grid-template-columns: 1fr;
  }

  .sp-sidebar {
    position: static;
  }

  .sp-lead-post-link {
    grid-template-columns: 1fr;
  }

  .sp-lead-thumb {
    min-height: 220px;
  }

  .sp-article-layout {
    grid-template-columns: 1fr;
  }

  .sp-article-side {
    position: static;
  }

  .sp-article-side .sp-toc {
    display: none;
  }

  .sp-mobile-toc {
    display: block;
  }

  .sp-action-bar {
    display: none;
  }

  .sp-article-body {
    padding: 34px 28px;
  }

  .sp-eyecatch {
    height: 260px;
  }

  .sp-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .sp-wrap {
    padding: 0 20px;
  }

  .inside-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .main-title a {
    font-size: 1.05rem;
  }

  .sp-blog-hero {
    padding: 56px 0 32px;
  }

  .sp-blog-hero h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .sp-category-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 16px;
  }

  .sp-filter-chip {
    white-space: nowrap;
  }

  .sp-post-grid {
    grid-template-columns: 1fr;
  }

  .sp-lead-body {
    padding: 26px 22px;
  }

  .sp-post-body {
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .sp-breadcrumb {
    padding-top: 18px;
  }

  .sp-breadcrumb li[aria-current="page"] {
    display: none;
  }

  .sp-article-head {
    padding: 28px 0 22px;
  }

  .sp-entry-title,
  .sp-article-head h1 {
    font-size: 1.62rem;
    line-height: 1.55;
  }

  .sp-entry-summary {
    font-size: 0.92rem;
  }

  .sp-article-meta {
    gap: 10px 16px;
    font-size: 0.78rem;
  }

  .sp-mobile-toc {
    margin-top: 22px;
    padding: 18px;
  }

  .sp-eyecatch {
    height: 220px;
    border-radius: 16px;
  }

  .sp-article-layout {
    padding-top: 26px;
  }

  .sp-article-body {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .sp-article-body p,
  .sp-article-body li {
    font-size: 0.98rem;
    line-height: 1.95;
  }

  .sp-article-body h2 {
    font-size: 1.32rem;
  }

  .sp-article-body h3 {
    font-size: 1.12rem;
  }

  .sp-entry-tags {
    flex-direction: column;
  }

  .sp-author-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .sp-related-head {
    align-items: flex-start;
  }

  .sp-related-line {
    display: none;
  }

  .sp-related-grid {
    grid-template-columns: 1fr;
  }
}


/* ==================================================
   Mobile TOC compact mode
================================================== */

@media (max-width: 980px) {
  .sp-mobile-toc {
    overflow: hidden;
    padding: 0;
  }

  .sp-mobile-toc .sp-toc-title {
    position: relative;
    margin: 0;
    padding: 18px 46px 18px 18px;
    cursor: pointer;
    user-select: none;
  }

  .sp-mobile-toc .sp-toc-title::after {
    content: "開く";
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: var(--sp-text-soft);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .sp-mobile-toc.is-open .sp-toc-title::after {
    content: "閉じる";
    color: var(--sp-cyan);
  }

  .sp-mobile-toc .sp-toc-links {
    display: none;
    padding: 0 18px 18px;
  }

  .sp-mobile-toc.is-open .sp-toc-links {
    display: block;
  }

  .sp-mobile-toc a {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}