/* ========================================
   myfansガイド — 共通スタイルシート
   ======================================== */

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

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-accent: #e94560;
  --color-accent-hover: #d63851;
  --color-accent-light: #fff5f7;
  --color-text: #222222;
  --color-text-sub: #666666;
  --color-text-muted: #999999;
  --color-border: #eeeeee;
  --color-border-light: #f0f0f0;
  --font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  --max-width: 960px;
  --header-height: 60px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
}

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

/* --- Desktop Navigation --- */
.nav {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav > li {
  position: relative;
}

.nav > li > a {
  display: block;
  padding: 8px 16px;
  color: var(--color-text-sub);
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.nav > li > a:hover,
.nav > li > a.active {
  color: var(--color-accent);
  background: var(--color-accent-light);
  text-decoration: none;
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  z-index: 101;
  list-style: none;
}

.nav > li:hover .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 8px 16px;
  color: var(--color-text-sub);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s;
}

.dropdown a:hover {
  background: var(--color-bg-alt);
  color: var(--color-accent);
  text-decoration: none;
}

/* --- Hamburger (mobile) --- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Navigation --- */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  padding: 20px;
  overflow-y: auto;
  z-index: 99;
}

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

.mobile-nav-category {
  margin-bottom: 16px;
}

.mobile-nav-category-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: var(--color-text);
  font-size: 15px;
  border-bottom: 1px solid var(--color-border-light);
  text-decoration: none;
}

.mobile-nav a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-bg) 100%);
  padding: 60px 20px;
  text-align: center;
}

.hero-label {
  font-size: 12px;
  color: var(--color-accent);
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 16px;
  color: var(--color-text-sub);
  margin-bottom: 24px;
}

/* --- CTA Button --- */
.cta-button {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 14px 36px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.cta-button:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.cta-note {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* --- Section --- */
.section {
  padding: 60px 20px;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-sub);
  font-size: 14px;
  margin-bottom: 40px;
}

/* --- Stats Cards --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.stat-card {
  background: var(--color-bg-alt);
  padding: 24px 16px;
  border-radius: 12px;
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--color-accent);
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-sub);
  margin-top: 4px;
}

/* --- Feature Cards --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.8;
}

/* --- Comparison Table --- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--color-border-light);
}

.compare-table th {
  background: var(--color-bg-alt);
  font-weight: 700;
  font-size: 13px;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
}

.compare-table .highlight {
  color: var(--color-accent);
  font-weight: 700;
}

.compare-link {
  text-align: right;
  margin-top: 12px;
  font-size: 14px;
}

/* --- Target Cards (fan/creator) --- */
.target-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.target-card {
  border: 2px solid var(--color-border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.target-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.1);
}

.target-card-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.target-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.target-card p {
  font-size: 13px;
  color: var(--color-text-sub);
  margin-bottom: 16px;
}

.target-card .cta-button {
  font-size: 13px;
  padding: 10px 24px;
}

.target-card-creator .cta-button {
  background: var(--color-text);
}

.target-card-creator .cta-button:hover {
  background: #444;
}

/* --- FAQ --- */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-family);
  line-height: 1.6;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  content: "\2212";
}

.faq-answer {
  display: none;
  padding: 0 0 18px 0;
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  display: block;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-bg) 100%);
  padding: 60px 20px;
  text-align: center;
}

.cta-section h2 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
}

.cta-section p {
  color: var(--color-text-sub);
  font-size: 14px;
  margin-bottom: 20px;
}

/* --- Footer --- */
.footer {
  background: var(--color-bg-alt);
  padding: 24px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
}

.footer a {
  color: var(--color-text-muted);
  margin: 0 8px;
}

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

/* ========================================
   Spoke Page (Article) Styles
   ======================================== */

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 10px 20px;
  background: var(--color-bg-alt);
  font-size: 12px;
  color: var(--color-text-muted);
}

.breadcrumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb span {
  margin: 0 6px;
}

/* --- Article Header --- */
.article-header {
  padding: 32px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.article-category {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.article-header h1 {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 8px;
}

.article-meta {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* --- Table of Contents --- */
.toc {
  max-width: var(--max-width);
  margin: 0 auto 32px;
  padding: 0 20px;
}

.toc-box {
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent);
  border-radius: 8px;
  padding: 20px 24px;
}

.toc-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: 6px;
}

.toc-list a {
  font-size: 14px;
  color: var(--color-text-sub);
}

.toc-list a:hover {
  color: var(--color-accent);
}

/* --- Article Body --- */
.article-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.article-body h2 {
  font-size: 20px;
  font-weight: 900;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent);
  margin: 40px 0 16px;
}

.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 12px;
}

.article-body p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-sub);
}

.article-body ul,
.article-body ol {
  margin: 0 0 16px 24px;
  color: var(--color-text-sub);
  font-size: 15px;
  line-height: 1.9;
}

.article-body li {
  margin-bottom: 6px;
}

/* Screenshot placeholder */
.screenshot {
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 20px 0;
}

/* Info box */
.info-box {
  background: var(--color-accent-light);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--color-text-sub);
}

/* --- Article CTA --- */
.article-cta {
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-bg));
  border: 1px solid #fdd;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin: 32px 0;
}

.article-cta h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 12px;
}

/* --- Related Articles --- */
.related {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
  border-top: 1px solid var(--color-border);
}

.related h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.related-list {
  list-style: none;
}

.related-list li {
  margin-bottom: 10px;
}

.related-list a {
  font-size: 14px;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.related-list a::before {
  content: "\2192";
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hero h1 {
    font-size: 22px;
  }

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

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .target-grid {
    grid-template-columns: 1fr;
  }

  .compare-table {
    font-size: 12px;
  }

  .compare-table th,
  .compare-table td {
    padding: 8px;
  }

  .article-header h1 {
    font-size: 22px;
  }
}
