/* ============================================================
   DMM経済圏 - 共通スタイルシート
   Design System: Dark Cyber × DMM Red
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Inter:wght@400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-root:       #05050f;
  --bg-base:       #080818;
  --bg-card:       #0d0d22;
  --bg-card-hover: #111130;
  --bg-surface:    #13132e;

  --red-primary:   #e60012;
  --red-dark:      #b0000e;
  --red-light:     #ff3344;
  --red-glow:      rgba(230, 0, 18, 0.35);

  --cyan-primary:  #00c8ff;
  --cyan-dark:     #0090c0;
  --cyan-glow:     rgba(0, 200, 255, 0.25);

  --gold:          #f0c040;
  --gold-glow:     rgba(240, 192, 64, 0.2);

  --text-primary:  #eeeef8;
  --text-secondary:#a0a0c0;
  --text-muted:    #5a5a7a;

  --border-red:    rgba(230, 0, 18, 0.25);
  --border-cyan:   rgba(0, 200, 255, 0.2);
  --border-white:  rgba(255, 255, 255, 0.06);

  --grad-red:      linear-gradient(135deg, #e60012 0%, #ff3344 100%);
  --grad-cyber:    linear-gradient(135deg, #e60012 0%, #9000c8 100%);
  --grad-surface:  linear-gradient(135deg, #0d0d22 0%, #13132e 100%);
  --grad-dark:     linear-gradient(180deg, #080818 0%, #05050f 100%);

  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow-red:  0 0 30px rgba(230, 0, 18, 0.3);
  --shadow-glow-cyan: 0 0 20px rgba(0, 200, 255, 0.2);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --transition-fast:   0.15s ease;
  --transition-base:   0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-main: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en:   'Inter', 'Noto Sans JP', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-root);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Subtle grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 200, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--grad-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cyber {
  background: linear-gradient(135deg, #e60012 0%, #00c8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 24, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-red);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--grad-red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-en);
  box-shadow: var(--shadow-glow-red);
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.logo-text span {
  color: var(--red-primary);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-white);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  gap: 10px;
  flex: 1;
  max-width: 300px;
  transition: border-color var(--transition-fast);
}

.header-search:focus-within {
  border-color: var(--border-red);
}

.header-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.875rem;
  padding: 10px 0;
  width: 100%;
}

.header-search input::placeholder { color: var(--text-muted); }

.search-icon {
  color: var(--text-muted);
  font-size: 14px;
  flex-shrink: 0;
}

.btn-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.btn-menu span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230, 0, 18, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230, 0, 18, 0.12);
  border: 1px solid rgba(230, 0, 18, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red-light);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red-primary);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-white);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  font-family: var(--font-en);
  color: var(--red-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.service-grid-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.service-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-white);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  transition: transform var(--transition-base), border-color var(--transition-base);
  cursor: default;
}

.service-preview-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-red);
}

.service-preview-card .icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: block;
}

.service-preview-card .name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--transition-fast);
}

.btn:hover::after { background: rgba(255, 255, 255, 0.08); }

.btn-primary {
  background: var(--grad-red);
  color: #fff;
  padding: 14px 28px;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(230, 0, 18, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(230, 0, 18, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  padding: 13px 28px;
  font-size: 0.95rem;
  border: 1px solid var(--border-white);
}

.btn-outline:hover {
  border-color: var(--border-red);
  color: var(--red-light);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}

.btn-cyan {
  background: linear-gradient(135deg, #00c8ff, #0090c0);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 200, 255, 0.3);
}

/* ---- Section ---- */
.section {
  padding: 72px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-header {
  margin-bottom: 44px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-primary);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--red-primary);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-desc {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ---- Service Cards ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-red);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  border-color: var(--border-red);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow-red);
}

.service-card:hover::before { opacity: 1; }

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(230, 0, 18, 0.1);
  border: 1px solid rgba(230, 0, 18, 0.2);
}

.service-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(230, 0, 18, 0.12);
  color: var(--red-light);
  border: 1px solid rgba(230, 0, 18, 0.25);
  align-self: flex-start;
}

.service-card-badge.free {
  background: rgba(0, 200, 100, 0.1);
  color: #00c864;
  border-color: rgba(0, 200, 100, 0.25);
}

.service-card-badge.new {
  background: rgba(240, 192, 64, 0.1);
  color: var(--gold);
  border-color: rgba(240, 192, 64, 0.25);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.service-card-price {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.service-card-price strong {
  color: var(--gold);
  font-size: 1rem;
  font-family: var(--font-en);
}

/* ---- Article Cards ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.articles-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  border-color: var(--border-red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.article-card-thumb {
  aspect-ratio: 16/9;
  background: var(--grad-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.article-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13, 13, 34, 0.8) 100%);
}

.article-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(230, 0, 18, 0.1);
  color: var(--red-light);
  border: 1px solid rgba(230, 0, 18, 0.2);
  align-self: flex-start;
}

.article-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
}

.article-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 10px;
  border-top: 1px solid var(--border-white);
}

/* ---- Point Banner ---- */
.point-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.point-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  pointer-events: none;
}

.point-banner-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.step-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--grad-cyber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-en);
}

.step-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
}

.step-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: var(--border-white);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-white);
  padding: 60px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo-text {
  font-size: 1.2rem;
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-white);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

/* ---- Article Page ---- */
.page-hero {
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-white);
  padding: 48px 0 36px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-muted); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--red-light); }
.breadcrumb .sep { color: var(--text-muted); }

.article-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(230, 0, 18, 0.12);
  color: var(--red-light);
  border: 1px solid rgba(230, 0, 18, 0.25);
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-meta .date::before { content: '📅 '; }
.article-meta .update::before { content: '🔄 '; }

/* Article Layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
  padding: 48px 0 80px;
}

/* Article Body */
.article-body {
  min-width: 0;
}

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 900;
  margin: 48px 0 20px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-left: 4px solid var(--red-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  letter-spacing: -0.02em;
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-body h3::before {
  content: '';
  display: block;
  width: 4px;
  height: 18px;
  background: var(--grad-cyber);
  border-radius: 2px;
  flex-shrink: 0;
}

.article-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 16px;
}

.article-body strong { color: var(--text-primary); font-weight: 700; }

.article-body ul {
  list-style: none;
  margin: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-body ul li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  line-height: 1.7;
}

.article-body ul li::before {
  content: '›';
  position: absolute;
  left: 4px;
  color: var(--red-primary);
  font-weight: 700;
}

.article-body ol {
  list-style: none;
  counter-reset: ol-counter;
  margin: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-body ol li {
  counter-increment: ol-counter;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding-left: 40px;
  position: relative;
  line-height: 1.7;
}

.article-body ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: var(--grad-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-en);
}

/* Highlight Boxes */
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border-white);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
}

.info-box.primary {
  border-color: var(--border-red);
  background: rgba(230, 0, 18, 0.05);
}

.info-box.cyan {
  border-color: var(--border-cyan);
  background: rgba(0, 200, 255, 0.04);
}

.info-box.warning {
  border-color: rgba(240, 192, 64, 0.3);
  background: rgba(240, 192, 64, 0.05);
}

.info-box-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.info-box.primary .info-box-label { color: var(--red-light); }
.info-box.cyan .info-box-label { color: var(--cyan-primary); }
.info-box.warning .info-box-label { color: var(--gold); }

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.875rem;
}

.comparison-table th {
  background: var(--bg-surface);
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-red);
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-white);
  color: var(--text-secondary);
}

.comparison-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

.comparison-table .highlight {
  color: var(--gold);
  font-weight: 700;
}

.comparison-table .good { color: #00c864; }
.comparison-table .bad { color: var(--red-light); }

/* Step Guide */
.step-guide {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.step-guide-item {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-white);
  border-radius: var(--radius-md);
  padding: 20px;
  align-items: flex-start;
  transition: border-color var(--transition-fast);
}

.step-guide-item:hover { border-color: var(--border-red); }

.step-guide-num {
  width: 36px;
  height: 36px;
  background: var(--grad-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-en);
  flex-shrink: 0;
}

.step-guide-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-guide-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* TOC */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border-white);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 0 0 32px;
}

.toc-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc ol {
  counter-reset: toc-counter;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.toc ol li {
  counter-increment: toc-counter;
  padding-left: 28px;
  position: relative;
}

.toc ol li::before {
  content: counter(toc-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background: rgba(230, 0, 18, 0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red-light);
  font-family: var(--font-en);
}

.toc ol li a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.toc ol li a:hover { color: var(--red-light); }

/* Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-white);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sidebar-widget-title {
  padding: 14px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-white);
}

.sidebar-article-list {
  display: flex;
  flex-direction: column;
}

.sidebar-article-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-white);
  transition: background var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.sidebar-article-item:last-child { border-bottom: none; }

.sidebar-article-item:hover { background: rgba(255, 255, 255, 0.03); }

.sidebar-article-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.sidebar-article-item h4 {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
}

.sidebar-article-item p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* CTA Box */
.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-red);
}

.cta-box h3 {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.cta-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Rating Stars */
.rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.star {
  color: var(--gold);
  font-size: 1.1rem;
}

.star.empty { color: var(--text-muted); }

.rating-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-left: 6px;
}

/* Price Badge */
.price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: rgba(230, 0, 18, 0.1);
  border: 1px solid rgba(230, 0, 18, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
}

.price-badge .amount {
  font-size: 2rem;
  font-weight: 900;
  color: var(--red-primary);
  font-family: var(--font-en);
  line-height: 1;
}

.price-badge .unit {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- Mobile Nav ---- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  z-index: 200;
  flex-direction: column;
  padding: 80px 24px 40px;
  gap: 8px;
  overflow-y: auto;
}

.mobile-nav.open { display: flex; }

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-nav a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.mobile-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--border-white);
}

/* ---- Search Results ---- */
.search-overlay {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-white);
  z-index: 90;
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.search-overlay.active { display: block; }

.search-result-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.search-result-item:hover { background: var(--bg-card); }

.search-result-item h4 { font-size: 0.9rem; font-weight: 700; }
.search-result-item p { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: var(--grad-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: var(--shadow-glow-red);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-base), transform var(--transition-base);
  z-index: 50;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-search { display: none; }
  .btn-menu { display: flex; }

  .hero { padding: 48px 0 36px; }
  .section { padding: 48px 0; }

  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .articles-grid { grid-template-columns: 1fr; }
  .articles-grid.two-col { grid-template-columns: 1fr; }

  .point-banner {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
  .point-banner-steps { grid-template-columns: 1fr; gap: 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .page-hero { padding: 28px 0 24px; }
  .article-layout { padding: 28px 0 48px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat-number { font-size: 1.4rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .service-preview-card { padding: 12px 8px; }
  .service-preview-card .icon { font-size: 1.4rem; }
}
