/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: #1a202c;
  background: #f8fafc;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0066ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* === Header === */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 64px;
}
.logo {
  font-size: 20px; font-weight: 800; color: #0066ff;
  letter-spacing: -0.02em;
}
.nav { display: flex; gap: 24px; }
.nav a {
  color: #475569; font-size: 14px; font-weight: 500;
}
.nav a:hover { color: #0066ff; text-decoration: none; }
@media (max-width: 640px) {
  .nav { gap: 12px; }
  .nav a { font-size: 12px; }
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, #0066ff 0%, #004bb5 100%);
  color: #fff;
  padding: 80px 0 64px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 6px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 16px;
}
.hero-title {
  font-size: 40px; font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.hero-title-sub {
  display: inline-block;
  font-size: 0.65em;
  font-weight: 700;
  opacity: 0.92;
  margin-top: 6px;
}
.hero-sub {
  font-size: 16px; margin: 0 0 32px;
  opacity: 0.95;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.hero-meta {
  display: flex; gap: 24px; justify-content: center;
  flex-wrap: wrap; font-size: 13px; opacity: 0.9;
}
@media (max-width: 640px) {
  .hero { padding: 56px 0 48px; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 14px; }
  .hero-meta { gap: 12px; font-size: 12px; }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700; font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: #ff6b35; color: #fff;
  box-shadow: 0 4px 12px rgba(255,107,53,0.35);
}
.btn-primary:hover { background: #ff5722; box-shadow: 0 6px 16px rgba(255,107,53,0.45); }
.btn-secondary {
  background: #fff; color: #0066ff;
  border-color: #fff;
}
.btn-secondary:hover { background: #f0f7ff; }
.btn-ghost {
  background: transparent; color: #475569;
  border-color: #cbd5e1;
}
.btn-ghost:hover { background: #f1f5f9; transform: none; }
.btn-cta {
  background: #ff6b35; color: #fff !important;
  padding: 12px 24px;
  font-size: 14px;
}
.btn-cta:hover { background: #ff5722; }

/* === Sections === */
section { padding: 64px 0; }
.section-title {
  font-size: 32px; font-weight: 800;
  text-align: center; margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.section-sub {
  text-align: center; color: #64748b;
  margin: 0 0 40px; font-size: 15px;
}
@media (max-width: 640px) {
  section { padding: 48px 0; }
  .section-title { font-size: 24px; }
}

/* === Operator Info === */
.operator-info { padding: 32px 0; background: #f8fafc; }
.operator-card {
  max-width: 820px; margin: 0 auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0066ff;
  border-radius: 8px;
  padding: 20px 24px;
}
.operator-title {
  font-size: 14px; font-weight: 700;
  color: #0066ff; margin: 0 0 8px;
  letter-spacing: 0.05em;
}
.operator-name {
  font-size: 16px; font-weight: 700;
  color: #1a202c; margin: 0 0 8px;
}
.operator-desc {
  font-size: 13px; line-height: 1.7;
  color: #475569; margin: 0;
}
@media (max-width: 640px) {
  .operator-info { padding: 24px 0; }
  .operator-card { padding: 16px 18px; }
}

/* === Ranking === */
.ranking { background: #fff; }
.ranking-list { display: flex; flex-direction: column; gap: 24px; }
.rank-card {
  display: grid;
  grid-template-columns: 80px 1fr 200px;
  gap: 24px;
  padding: 24px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease;
  align-items: center;
}
.rank-card:hover { border-color: #0066ff; box-shadow: 0 8px 24px rgba(0,102,255,0.1); }
.rank-card.rank-1 { border-color: #ff6b35; background: linear-gradient(135deg, #fffbf7 0%, #fff 100%); }
.rank-badge {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800;
  background: #e2e8f0; color: #475569;
  margin: 0 auto;
}
.rank-1 .rank-badge { background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%); color: #fff; }
.rank-2 .rank-badge { background: linear-gradient(135deg, #c0c0c0 0%, #808080 100%); color: #fff; }
.rank-3 .rank-badge { background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%); color: #fff; }
.rank-info h3 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.rank-tagline { color: #ff6b35; font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.rank-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; }
.rank-meta-item { display: flex; flex-direction: column; }
.rank-meta-label { color: #94a3b8; font-size: 11px; }
.rank-meta-value { color: #1a202c; font-weight: 700; font-size: 15px; }
.rank-meta-value.highlight { color: #ff6b35; }
.rank-pros { font-size: 13px; color: #475569; margin: 0; }
.rank-pros li { margin: 2px 0; }
.rank-cta { display: flex; flex-direction: column; gap: 8px; }
.rank-cta .btn-cta { width: 100%; }
.rank-note { font-size: 11px; color: #94a3b8; text-align: center; }

@media (max-width: 768px) {
  .rank-card { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .rank-badge { margin: 0; }
  .rank-info h3 { font-size: 20px; }
}

/* === Compare table === */
.compare { background: #f1f5f9; }
.filters {
  background: #fff; padding: 24px; border-radius: 12px;
  margin-bottom: 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px; align-items: start;
}
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-label {
  font-size: 13px; font-weight: 700; color: #1a202c;
}
.filter-options { display: flex; flex-direction: column; gap: 6px; }
.filter-options label {
  font-size: 13px; color: #475569;
  display: flex; align-items: center; gap: 6px;
  cursor: pointer;
}
.filter-options input[type="checkbox"] { accent-color: #0066ff; }
#sort {
  padding: 8px 10px;
  border: 1px solid #cbd5e1; border-radius: 6px;
  font-size: 13px; background: #fff;
}
#reset-filter { align-self: end; }

.compare-table-wrap { overflow-x: auto; background: #fff; border-radius: 12px; padding: 4px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare-table th, .compare-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
}
.compare-table th {
  background: #f8fafc;
  font-weight: 700; color: #475569;
  font-size: 12px;
  position: sticky; top: 0;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover { background: #f8fafc; }
.compare-table .name-cell { font-weight: 700; color: #1a202c; }
.compare-table .name-cell .small { display: block; font-size: 11px; color: #94a3b8; font-weight: 500; }
.compare-table .highlight { color: #ff6b35; font-weight: 700; }
.compare-table .price-yen::after { content: "円"; font-size: 11px; margin-left: 1px; }
.filter-empty {
  text-align: center; color: #64748b; padding: 32px 0;
}

/* === Guide === */
.guide { background: #fff; }
.guide-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.guide-card {
  background: #f8fafc; padding: 28px;
  border-radius: 12px; border-left: 4px solid #0066ff;
}
.guide-card h3 { margin: 12px 0 8px; font-size: 18px; }
.guide-card p { margin: 0; font-size: 14px; color: #475569; }
.guide-num {
  display: inline-block; font-size: 28px; font-weight: 800;
  color: #0066ff; letter-spacing: 0.05em;
}
@media (max-width: 768px) {
  .guide-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* === Details === */
.details { background: #f1f5f9; }
.details-list { display: flex; flex-direction: column; gap: 24px; }
.detail-card {
  background: #fff; padding: 28px;
  border-radius: 12px; border: 1px solid #e2e8f0;
}
.detail-head {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}
.detail-head h3 { margin: 0; font-size: 22px; }
.detail-tagline { color: #ff6b35; font-size: 13px; font-weight: 600; margin-top: 2px; }
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-bottom: 16px;
}
.detail-pros, .detail-cons {
  list-style: none; padding: 0; margin: 0; font-size: 14px;
}
.detail-pros li::before { content: "✓ "; color: #10b981; font-weight: 700; }
.detail-cons li::before { content: "! "; color: #f59e0b; font-weight: 700; }
.detail-pros li, .detail-cons li { padding: 4px 0; color: #475569; }
.detail-section-title {
  font-size: 13px; font-weight: 700; color: #475569;
  margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.05em;
}
.detail-cta { text-align: center; padding-top: 8px; }

@media (max-width: 640px) {
  .detail-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* === FAQ === */
.faq { background: #fff; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-list details {
  background: #f8fafc;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 12px;
  border-left: 3px solid #0066ff;
  cursor: pointer;
}
.faq-list summary {
  font-weight: 700; font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute; right: 0; top: -2px;
  font-size: 22px; color: #0066ff;
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p {
  margin: 12px 0 0; font-size: 14px;
  color: #475569; line-height: 1.8;
}

/* === Footer === */
.site-footer {
  background: #1e293b; color: #cbd5e1;
  padding: 32px 0;
  font-size: 13px;
}
.site-footer p { margin: 4px 0; }
.footer-meta { color: #64748b; font-size: 12px; }

/* === Loading === */
.loading {
  text-align: center; padding: 32px;
  color: #94a3b8;
}
