/* ============================================================
   DESIGN TOKENS — rakusiru-finance 準拠
   ============================================================ */
:root {
  --red:        #e05a00;
  --red-dk:     #b84400;
  --orange:     #ff6600;
  --bg:         #f4f4f0;
  --surface:    #ffffff;
  --gray-50:    #fafafa;
  --gray-100:   #f0f0f0;
  --border:     #dddddd;
  --text:       #1a1a1a;
  --text-sub:   #555555;
  --text-muted: #999999;
  --link:       #0066cc;
  --font: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  --shadow:     0 1px 4px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12);
  --r:    3px;
  --r-md: 6px;
  /* ブランドカラー（比較用・固定値） */
  --netflix: #e50914;
  --prime:   #00a8e1;
  --disney:  #113ccf;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; font-size: 14px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 8px;
}
@media (min-width: 640px) { .container { padding: 0 16px; } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--red);
  border-bottom: 3px solid var(--red-dk);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 8px;
}
.logo {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
  text-decoration: none;
}
.logo:hover { text-decoration: none; color: rgba(255,255,255,0.9); }
.logo span {
  font-size: 11px;
  font-weight: 400;
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,0.8);
}
.header-right { display: flex; align-items: center; gap: 8px; }
.header-btn {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 5px 12px;
  border-radius: var(--r);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
}
.header-btn:hover { background: rgba(255,255,255,0.25); }
.header-btn.primary { background: #fff; color: var(--red); font-weight: 700; }
.header-btn.primary:hover { background: #f5f5f5; }

.search-bar { background: #b84400; padding: 8px 16px 10px; }
.search-inner { display: flex; gap: 6px; max-width: 600px; }
.search-inner input {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: var(--r) 0 0 var(--r);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
}
.search-inner button {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  transition: background 0.15s;
}
.search-inner button:hover { background: #e55a00; }

/* ============================================================
   NAVIGATION BAR
   ============================================================ */
.nav-bar {
  background: #222;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-bar::-webkit-scrollbar { display: none; }
.nav-item {
  color: #ddd;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  border-right: 1px solid #333;
  transition: background 0.15s;
  text-decoration: none;
  display: block;
}
.nav-item:hover { background: #333; color: #fff; text-decoration: none; }
.nav-item.active { color: var(--orange); font-weight: 700; }

/* ドロップダウン */
.nav-dropdown-wrap { position: relative; }
.nav-item-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  border-right: 1px solid #333;
  font-family: var(--font);
}
.nav-item-caret { font-size: 9px; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #2a2a2a;
  border: 1px solid #333;
  border-top: 2px solid var(--orange);
  box-shadow: var(--shadow-md);
  z-index: 200;
  display: none;
  flex-direction: column;
}
.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap:focus-within .nav-dropdown { display: flex; }
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 13px;
  color: #ddd;
  border-bottom: 1px solid #333;
  white-space: nowrap;
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: #333; color: #fff; text-decoration: none; }
.nav-dropdown-label {
  margin-left: auto;
  font-size: 10px;
  color: #fff;
  background: var(--red);
  padding: 1px 7px;
  border-radius: 20px;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--link); }
.breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  color: #fff;
  padding: 32px 0;
}
.hero-inner { max-width: 720px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}
.hero-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}
.hero-title-sub {
  display: block;
  font-size: 16px;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 6px;
  letter-spacing: 0.02em;
}
.hero-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 20px;
}
.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-md);
  padding: 10px 20px;
  min-width: 90px;
}
.hero-stat-num {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: #ffd700;
}
.hero-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
  white-space: nowrap;
}

@media (max-width: 479px) {
  .hero { padding: 20px 0; }
  .hero-title { font-size: 21px; }
  .hero-title-sub { font-size: 13px; }
  .hero-desc { font-size: 12px; }
  .hero-stats { gap: 10px; }
  .hero-stat { padding: 8px 14px; min-width: 76px; }
  .hero-stat-num { font-size: 20px; }
}

/* ============================================================
   LAYOUT: 2-COLUMN
   ============================================================ */
.layout {
  padding: 12px 0 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}
@media (min-width: 768px) {
  .layout { grid-template-columns: 1fr 260px; }
}
.layout-main { display: flex; flex-direction: column; gap: 12px; }
.layout-side  { display: flex; flex-direction: column; gap: 12px; }

/* ============================================================
   SECTION CARD（共通）
   ============================================================ */
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 2px solid var(--red);
  background: var(--gray-50);
}
.section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  margin: 0;
  line-height: inherit;
}
.update-date { font-size: 11px; color: var(--text-muted); }

.section-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lead-text {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.75;
}
.lead-text strong { color: var(--text); }

/* ============================================================
   NOTE BOX（補足コールアウト）
   ============================================================ */
.note-box {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-left: 4px solid var(--text-muted);
  border-radius: var(--r-md);
  padding: 14px;
}
.note-box-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.note-box p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.75;
}
.note-box p strong { color: var(--text); }
.note-box--accent { background: #fff8f0; border-left-color: var(--orange); }

/* ============================================================
   SECTION 1: サービスカード（3-up）
   ============================================================ */
.svc-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) { .svc-cards { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.svc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #fff;
}
.svc-netflix .svc-head { background: #141414; }
.svc-prime   .svc-head { background: #0f171e; }
.svc-disney  .svc-head { background: linear-gradient(135deg, #0c1f3f, #122a8f); }
.svc-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 900;
  flex-shrink: 0;
}
.svc-netflix .svc-logo { background: var(--netflix); color: #fff; }
.svc-prime   .svc-logo { background: var(--prime); color: #0f171e; }
.svc-disney  .svc-logo { background: #fff; color: var(--disney); font-size: 14px; }
.svc-name { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.2; }
.svc-catch { font-size: 11px; color: rgba(255,255,255,0.8); margin-top: 3px; }

.svc-body {
  padding: 12px 14px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.svc-price { display: flex; align-items: baseline; gap: 6px; }
.svc-price-num { font-size: 22px; font-weight: 700; color: var(--red); line-height: 1; }
.svc-price-unit { font-size: 11px; color: var(--text-muted); }
.svc-points { display: flex; flex-direction: column; gap: 5px; }
.svc-points li {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.55;
  padding-left: 14px;
  position: relative;
}
.svc-points li::before { content: '✓'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.svc-best {
  font-size: 11px;
  color: var(--text-sub);
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 7px 9px;
  line-height: 1.5;
  margin-top: auto;
}
.svc-best strong { color: var(--text); }

/* ============================================================
   SECTION 2: 比較テーブル
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13px;
}
.compare-table caption {
  font-size: 11px;
  color: var(--text-muted);
  text-align: left;
  margin-bottom: 6px;
  padding: 0 4px;
}
.compare-table th,
.compare-table td {
  padding: 8px 10px;
  border: 1px solid var(--border);
  vertical-align: middle;
  line-height: 1.5;
  text-align: left;
}
.compare-table thead th {
  background: var(--gray-100);
  font-weight: 700;
  font-size: 12px;
  color: var(--text-sub);
  white-space: nowrap;
}
.compare-table tbody th[scope="row"] {
  background: var(--gray-50);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.compare-table tbody tr:hover { background: var(--gray-50); }
.compare-table tr.recommended { background: #fff9e6; }
.compare-table .highlight { color: var(--red); font-weight: 700; }

/* ============================================================
   SECTION 3: ジャンル強みカード
   ============================================================ */
.genre-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) { .genre-cards { grid-template-columns: repeat(3, 1fr); } }
.genre-card {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
}
.genre-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.gc-badge {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--r);
}
.gc-netflix { background: var(--netflix); }
.gc-prime   { background: var(--prime); color: #0f171e; }
.gc-disney  { background: var(--disney); }
.genre-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.g-tag {
  font-size: 11px;
  background: #e8f0fe;
  color: #1a56cc;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid #b8d0f8;
}
.genre-note { font-size: 12px; color: var(--text-sub); line-height: 1.65; }

/* ============================================================
   SECTION 4: メリット・デメリット
   ============================================================ */
.pc-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.pc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.pc-head--netflix { background: #141414; }
.pc-head--prime   { background: #0f171e; }
.pc-head--disney  { background: linear-gradient(135deg, #0c1f3f, #122a8f); }
.pc-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}
.pc-head--netflix .pc-logo { background: var(--netflix); }
.pc-head--prime   .pc-logo { background: var(--prime); color: #0f171e; }
.pc-head--disney  .pc-logo { background: #fff; color: var(--disney); font-size: 11px; }

.pc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--surface);
}
@media (min-width: 560px) { .pc-grid { grid-template-columns: 1fr 1fr; } }
.pc-col { padding: 12px 14px; }
.pc-col.pc-merit { border-bottom: 1px solid var(--gray-100); }
@media (min-width: 560px) {
  .pc-col.pc-merit { border-bottom: none; border-right: 1px solid var(--gray-100); }
}
.pc-col-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.pc-merit .pc-col-title { color: #2e7d32; }
.pc-demerit .pc-col-title { color: #c62828; }
.pc-col ul { display: flex; flex-direction: column; gap: 6px; }
.pc-col li {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
}
.pc-merit li::before { content: '＋'; position: absolute; left: 0; color: #2e7d32; font-weight: 700; }
.pc-demerit li::before { content: '－'; position: absolute; left: 0; color: #c62828; font-weight: 700; }

/* ============================================================
   SECTION 5: タイプ別おすすめ
   ============================================================ */
.rec-list { display: flex; flex-direction: column; gap: 0; }
.rec-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: start;
}
.rec-item:last-child { border-bottom: none; }
.rec-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.3;
  min-height: 36px;
}
.rec-netflix { background: var(--netflix); }
.rec-prime   { background: var(--prime); color: #0f171e; }
.rec-disney  { background: var(--disney); }
.rec-combo   { background: var(--orange); }
.rec-content h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.rec-content p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
}
@media (max-width: 479px) {
  .rec-item { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION 6: 警告ボックス・チェックリスト
   ============================================================ */
.warning-box {
  background: #fff3e0;
  border: 1px solid #ffcc80;
  border-left: 4px solid var(--orange);
  border-radius: var(--r-md);
  padding: 14px;
}
.warning-box h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.checklist { display: flex; flex-direction: column; gap: 6px; }
.checklist li {
  font-size: 13px;
  color: var(--text-sub);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.65;
}
.checklist li span { flex-shrink: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-body { gap: 0; padding: 0; }
.faq-item { border-bottom: 1px solid var(--gray-100); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 36px;
  line-height: 1.5;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::before {
  content: 'Q';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}
.faq-q::after {
  content: '▼';
  position: absolute;
  right: 14px;
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.2s;
}
details[open] .faq-q::after { transform: rotate(-180deg); }
details[open] .faq-q { color: var(--red); }
.faq-a { padding: 0 14px 14px 46px; }
.faq-a p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.75;
}

/* ============================================================
   DISCLAIMER BOX
   ============================================================ */
.disclaimer-box {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 14px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.sidebar-widget-head {
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--red);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.sidebar-widget-head--warn {
  border-left-color: #c84f14;
  color: #c84f14;
}
.sidebar-widget-body { padding: 12px; }

/* 目次 */
.toc-list { display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.toc-list li { counter-increment: toc; }
.toc-link {
  display: block;
  font-size: 12px;
  color: var(--link);
  padding: 4px 6px;
  border-radius: var(--r);
  transition: background 0.15s;
}
.toc-link:hover { background: var(--gray-50); text-decoration: none; }

/* 料金早見表 */
.price-list { display: flex; flex-direction: column; gap: 0; }
.price-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}
.price-list li:last-child { border-bottom: none; }
.price-name { display: flex; align-items: center; gap: 8px; color: var(--text-sub); }
.price-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-netflix { background: var(--netflix); }
.dot-prime   { background: var(--prime); }
.dot-disney  { background: var(--disney); }
.price-val { font-size: 14px; font-weight: 700; color: var(--red); }
.price-note { font-size: 10px; color: var(--text-muted); margin-top: 8px; }

/* 関連記事 */
.related-list { display: flex; flex-direction: column; gap: 0; }
.related-list li { border-bottom: 1px solid var(--gray-100); }
.related-list li:last-child { border-bottom: none; }
.related-list a {
  display: block;
  font-size: 12px;
  color: var(--link);
  padding: 7px 0;
  line-height: 1.5;
  transition: color 0.15s;
}
.related-list a:hover { text-decoration: underline; }

.sidebar-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #222;
  color: #aaa;
  text-align: center;
  padding: 20px 16px;
  font-size: 12px;
  line-height: 1.7;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 10px;
}
.footer-links a {
  color: #aaa;
  font-size: 12px;
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; text-decoration: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 479px) {
  .svc-cards { grid-template-columns: 1fr; }
  .genre-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE SAFETY — モバイル横はみ出し防止（自動追加）
   グリッド/フレックス項目は min-width:auto のため内部のワイド要素
   （比較テーブル等）で縮まず横スクロールが発生する。min-width:0 で解消。
   ============================================================ */
.layout > *,
.layout__inner > *,
.left-col, .right-col,
.left-col > *, .right-col > *,
.layout-main, .layout-side {
  min-width: 0;
}
.table-wrap { max-width: 100%; }
