/* ===========================================
   yame.click - 解約ガイドサイト共通CSS
   モバイルファースト・高速表示最適化
   =========================================== */

/* リセット・基本設定 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  color: #333;
  background-color: #f8f9fa;
}

/* リンク */
a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #004499;
  text-decoration: underline;
}

/* 画像 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===========================================
   ヘッダー
   =========================================== */
.site-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.site-logo:hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}

.site-tagline {
  font-size: 0.75rem;
  opacity: 0.9;
  display: block;
}

/* ナビゲーション */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: #fff;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.main-nav a:hover {
  background: rgba(255,255,255,0.2);
  text-decoration: none;
}

/* ===========================================
   メインコンテンツ
   =========================================== */
.main-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* 記事ヘッダー */
.article-header {
  text-align: center;
  margin-bottom: 2rem;
}

.article-header h1 {
  font-size: 1.75rem;
  line-height: 1.4;
  color: #222;
  margin-bottom: 0.5rem;
}

.article-meta {
  color: #666;
  font-size: 0.875rem;
}

.update-date {
  display: inline-block;
  background: #e8f4fd;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  color: #0066cc;
}

/* ===========================================
   目次
   =========================================== */
.toc {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.toc-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #667eea;
}

.toc ol {
  list-style: decimal;
  padding-left: 1.5rem;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  color: #333;
}

.toc a:hover {
  color: #667eea;
}

/* ===========================================
   セクション
   =========================================== */
.section {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section h2 {
  font-size: 1.375rem;
  color: #222;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #667eea;
}

.section h3 {
  font-size: 1.125rem;
  color: #333;
  margin: 1.5rem 0 0.75rem;
}

.section p {
  margin-bottom: 1rem;
}

/* ===========================================
   手順リスト（ステップバイステップ）
   =========================================== */
.steps {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
}

.step {
  position: relative;
  padding: 1rem 1rem 1rem 4rem;
  margin-bottom: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.step::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  background: #667eea;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
}

.step-title {
  font-weight: bold;
  color: #222;
  display: block;
  margin-bottom: 0.25rem;
}

.step-desc {
  color: #666;
  font-size: 0.9375rem;
}

/* スクリーンショット */
.step-image {
  margin-top: 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

/* ===========================================
   注意事項ボックス
   =========================================== */
.notice {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.notice-warning {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
}

.notice-info {
  background: #e7f3ff;
  border-left: 4px solid #0066cc;
}

.notice-danger {
  background: #f8d7da;
  border-left: 4px solid #dc3545;
}

.notice-success {
  background: #d4edda;
  border-left: 4px solid #28a745;
}

.notice-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* ===========================================
   FAQ（よくある質問）
   =========================================== */
.faq-list {
  list-style: none;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 0;
}

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

.faq-question {
  font-weight: bold;
  color: #222;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.faq-question::before {
  content: "Q";
  background: #667eea;
  color: #fff;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.faq-answer {
  color: #555;
  padding-left: 2rem;
}

.faq-answer::before {
  content: "A";
  background: #28a745;
  color: #fff;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ===========================================
   おすすめ乗り換え先（収益化ポイント）
   =========================================== */
.recommend-box {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border: 2px solid #ff6b6b;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.recommend-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: #e53935;
  margin-bottom: 1rem;
  text-align: center;
}

.recommend-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recommend-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.recommend-item:last-child {
  margin-bottom: 0;
}

.recommend-logo {
  width: 60px;
  height: 60px;
  background: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
}

.recommend-info {
  flex: 1;
}

.recommend-name {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.recommend-desc {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.recommend-badge {
  display: inline-block;
  background: #ff6b6b;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: bold;
}

.recommend-btn {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.recommend-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255,107,107,0.4);
  color: #fff;
  text-decoration: none;
}

/* ===========================================
   関連記事
   =========================================== */
.related-articles {
  margin-top: 2rem;
}

.related-title {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.related-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
}

.related-card a {
  display: block;
  padding: 1rem;
  color: #333;
}

.related-card a:hover {
  text-decoration: none;
}

.related-card-title {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.related-card-desc {
  font-size: 0.875rem;
  color: #666;
}

/* ===========================================
   トップページ専用
   =========================================== */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  margin: -2rem -1rem 2rem;
  border-radius: 0 0 20px 20px;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-desc {
  font-size: 1rem;
  opacity: 0.9;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.service-card a {
  display: block;
  padding: 1.5rem;
  color: #333;
}

.service-card a:hover {
  text-decoration: none;
}

.service-icon {
  width: 64px;
  height: 64px;
  background: #f0f0f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.service-icon.netflix { background: #e50914; color: #fff; }
.service-icon.hulu { background: #1ce783; color: #fff; }
.service-icon.amazon { background: #00a8e1; color: #fff; }
.service-icon.unext { background: #0a0a0a; color: #fff; }
.service-icon.disney { background: #113ccf; color: #fff; }

.service-name {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.875rem;
  color: #666;
}

.service-arrow {
  margin-top: 1rem;
  color: #667eea;
  font-weight: bold;
}

/* ===========================================
   フッター
   =========================================== */
.site-footer {
  background: #2d3748;
  color: #a0aec0;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-links a {
  color: #a0aec0;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  text-align: center;
  font-size: 0.75rem;
}

/* ===========================================
   パンくずリスト
   =========================================== */
.breadcrumb {
  font-size: 0.875rem;
  padding: 1rem 0;
  color: #666;
}

.breadcrumb a {
  color: #666;
}

.breadcrumb a:hover {
  color: #667eea;
}

.breadcrumb span {
  margin: 0 0.5rem;
}

/* ===========================================
   テーブル
   =========================================== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.info-table th,
.info-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.info-table th {
  background: #f8f9fa;
  font-weight: bold;
  white-space: nowrap;
}

.info-table tr:nth-child(even) {
  background: #fafafa;
}

/* ===========================================
   ボタン
   =========================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102,126,234,0.4);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: #fff;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-secondary:hover {
  background: #667eea;
  color: #fff;
  text-decoration: none;
}

/* ===========================================
   レスポンシブ対応
   =========================================== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .main-nav ul {
    justify-content: center;
  }

  .article-header h1 {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

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

  .recommend-item {
    flex-direction: column;
    text-align: center;
  }

  .step {
    padding-left: 3.5rem;
  }

  .step::before {
    left: 0.5rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .section {
    padding: 1rem;
  }

  .main-nav a {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
}

/* ===========================================
   印刷用スタイル
   =========================================== */
@media print {
  .site-header,
  .site-footer,
  .recommend-box,
  .related-articles {
    display: none;
  }

  body {
    background: #fff;
  }

  .section {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ===========================================
   アニメーション（控えめ）
   =========================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section {
  animation: fadeIn 0.4s ease-out;
}

/* ===========================================
   アクセシビリティ
   =========================================== */
:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* スキップリンク */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #667eea;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
}

.skip-link:focus {
  top: 0;
}
