@charset "utf-8";
/* ============================================================
   RIRIWEB 子ページ CSS
   「WordPressが勝手に海外サイトへリダイレクトされる原因と復旧方法」
   ============================================================ */
html { font-size: 18px; } 
/* ----- CSS Variables ----- */
:root {
  --black:       #0c0c0e;
  --dark:        #111214;
  --dark-alt:    #171a1f;
  --surface:     #1c2028;
  --surface-2:   #242830;
  --border:      rgba(255,255,255,0.08);
  --border-2:    rgba(255,255,255,0.14);

  --white:       #f4f4f0;
  --off-white:   #c8c9c2;
  --muted:       #7a7f8a;

  --accent:      #e8441a;       /* ブランドレッド */
  --accent-2:    #f26a3a;       /* オレンジ */
  --accent-glow: rgba(232, 68, 26, 0.2);

  --yellow:      #f5c842;
  --green:       #2fcc71;

  --font-display: 'Syne', sans-serif;
  --font-body:    'Noto Serif JP', serif;

  --radius:      6px;
  --radius-lg:   12px;
  --max-w:       860px;
  --transition:  0.22s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.75; }

img { max-width: 100%; display: block; }

/* ----- Utility ----- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  /* position: sticky; */
  /* top: 0; */
  z-index: 100;
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.breadcrumb {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--white); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 80px 24px 72px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(232,68,26,0.12) 0%, transparent 70%),
    var(--dark);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  position: relative;
}
.hero-title em {
  font-style: normal;
  color: var(--accent-2);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.hero-sub {
  font-size: 1rem;
  color: var(--off-white);
  line-height: 1.9;
  margin-bottom: 24px;
  position: relative;
}
.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  position: relative;
}
.meta-tag {
  font-size: 0.78rem;
  background: var(--surface);
  border: 1px solid var(--border-2);
  padding: 4px 14px;
  border-radius: 100px;
  color: var(--off-white);
}
.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
}

/* ----- Buttons ----- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white) !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
  opacity: 1;
}
.btn-primary.large {
  font-size: 1.05rem;
  padding: 16px 40px;
}
.btn-secondary {
  display: inline-block;
  color: var(--white) !important;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  background: var(--surface);
  transition: border-color var(--transition), background var(--transition);
}
.btn-secondary:hover { border-color: var(--white); background: var(--surface-2); opacity: 1; }
.btn-phone {
  display: inline-block;
  color: var(--white) !important;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}
.btn-phone small { font-size: 0.72rem; font-weight: 400; color: var(--muted); }

/* ============================================================
   ALERT
   ============================================================ */
.alert-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(245, 200, 66, 0.08);
  border: 1px solid rgba(245, 200, 66, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 40px 0 0;
}
.alert-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.alert-content { font-size: 0.9rem; line-height: 1.75; color: var(--off-white); }
.alert-content strong { color: var(--yellow); }

/* ============================================================
   TOC
   ============================================================ */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 28px 0 0;
}
.toc-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.toc-list {
  list-style: none;
  counter-reset: toc-counter;
}
.toc-list li {
  counter-increment: toc-counter;
  border-bottom: 1px solid var(--border);
  padding: 9px 0;
}
.toc-list li:last-child { border-bottom: none; }
.toc-list li::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--accent);
  margin-right: 12px;
  font-weight: 700;
}
.toc-list a { color: var(--off-white); font-size: 0.9rem; }
.toc-list a:hover { color: var(--white); }

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.content-section.alt-bg { background: var(--dark-alt); }

.section-label {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.05em;
  margin-bottom: -24px;
  pointer-events: none;
  user-select: none;
}
.section-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.45;
  margin-bottom: 16px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 12px;
}
.section-lead {
  color: var(--off-white);
  font-size: 0.97rem;
  line-height: 1.9;
  margin-bottom: 40px;
}

/* ============================================================
   SYMPTOM CARDS (Section 1)
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.symptom-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px 20px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.symptom-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
}
.card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.symptom-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; line-height: 1.45; }
.symptom-card p { font-size: 0.85rem; color: var(--off-white); line-height: 1.75; margin-bottom: 14px; }
.card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--accent-glow);
  color: var(--accent-2);
  border: 1px solid rgba(232,68,26,0.3);
  padding: 2px 10px;
  border-radius: 100px;
}

/* ============================================================
   CAUSE LIST (Section 2)
   ============================================================ */
.cause-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}
.cause-item {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition);
}
.cause-item:hover { border-color: var(--border-2); }
.cause-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  padding-top: 4px;
  min-width: 40px;
}
.cause-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.cause-body p { font-size: 0.88rem; color: var(--off-white); line-height: 1.8; }

.code-block {
  background: #0a0d10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: #8ecf7a;
  line-height: 1.7;
  margin-top: 12px;
  overflow-x: auto;
}
.code-comment { color: #5a6b7a; }

/* Entry grid */
.subsection { margin-top: 48px; }
.subsection-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.entry-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 0.87rem;
  color: var(--off-white);
  line-height: 1.7;
}
.entry-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.entry-item strong { display: block; color: var(--white); margin-bottom: 4px; }

/* ============================================================
   CHECK STEPS (Section 3)
   ============================================================ */
.check-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.check-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: border-color var(--transition);
}
.check-step:hover { border-color: var(--border-2); }
.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(232,68,26,0.3);
  padding: 3px 10px;
  border-radius: 100px;
  flex-shrink: 0;
}
.step-header h3 { font-size: 0.97rem; font-weight: 700; }
.check-step p { font-size: 0.88rem; color: var(--off-white); line-height: 1.8; }

.warning-box {
  background: rgba(232,68,26,0.06);
  border: 1px solid rgba(232,68,26,0.25);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  font-size: 0.88rem;
  color: var(--off-white);
  line-height: 1.75;
}
.warning-box strong { color: var(--accent-2); }

/* ============================================================
   RECOVERY STEPS (Section 4)
   ============================================================ */
.recovery-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.recovery-step {
  display: flex;
  gap: 0;
}
.rs-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 60px;
}
.rs-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--white);
  background: var(--accent);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rs-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin: 6px 0;
  min-height: 32px;
}
.rs-right {
  flex: 1;
  padding: 0 0 36px 16px;
}
.rs-right h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; padding-top: 6px; }
.rs-right p { font-size: 0.88rem; color: var(--off-white); line-height: 1.8; }
.rs-tools {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px 12px;
  border-radius: var(--radius);
}

/* ============================================================
   PREVENTION GRID (Section 5)
   ============================================================ */
.prevention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.prevention-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: border-color var(--transition), transform var(--transition);
}
.prevention-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.pv-icon { font-size: 1.8rem; margin-bottom: 12px; }
.prevention-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.prevention-card p { font-size: 0.85rem; color: var(--off-white); line-height: 1.75; margin-bottom: 12px; }
.pv-level {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ============================================================
   PRO LIST (Section 6)
   ============================================================ */
.pro-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}
.pro-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  line-height: 1.75;
}
.pro-item.danger { background: rgba(232,68,26,0.06); border: 1px solid rgba(232,68,26,0.25); }
.pro-item.warning { background: rgba(245,200,66,0.05); border: 1px solid rgba(245,200,66,0.2); }
.pro-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 3px; }
.pro-item strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }

/* CTA Box */
.cta-box {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
}
.cta-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cta-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-text {
  font-size: 0.9rem;
  color: var(--off-white);
  line-height: 1.8;
  margin-bottom: 20px;
}
.cta-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-2);
  margin-bottom: 28px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* ============================================================
   RELATED
   ============================================================ */
.related-section {
  padding: 60px 24px;
  border-top: 1px solid var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
}
.related-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 18px;
  color: var(--white) !important;
  transition: border-color var(--transition), transform var(--transition);
}
.related-card:hover { border-color: var(--border-2); transform: translateY(-2px); opacity: 1; }
.related-icon { font-size: 1.5rem; flex-shrink: 0; }
.related-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.related-name { font-size: 0.88rem; font-weight: 700; line-height: 1.45; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  color: var(--white);
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); opacity: 1; }
.footer-copy { font-size: 0.75rem; color: var(--muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .hero { padding: 60px 20px 56px; }
  .card-grid { grid-template-columns: 1fr; }
  .prevention-grid { grid-template-columns: 1fr; }
  .cause-item { flex-direction: column; gap: 10px; }
  .cause-num { font-size: 1.5rem; }
  .cta-box { padding: 28px 20px; }
  .cta-title { font-size: 1.3rem; }
  .rs-left { width: 44px; }
  .related-grid { grid-template-columns: 1fr; }
  .entry-grid { grid-template-columns: 1fr; }
  .step-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .breadcrumb { display: none; }
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge   { animation: fadeUp 0.5s ease both; }
.hero-title   { animation: fadeUp 0.6s 0.1s ease both; }
.hero-sub     { animation: fadeUp 0.6s 0.2s ease both; }
.hero-meta    { animation: fadeUp 0.6s 0.3s ease both; }
.hero-cta     { animation: fadeUp 0.6s 0.4s ease both; }
