:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;

  /* ノウハウ用のテーマ（reviews とは別色でカテゴリを区別） */
  --howto-accent: #0d9488;       /* teal-600 */
  --howto-accent-dark: #0f766e;  /* teal-700 */
  --howto-accent-soft: #ccfbf1;  /* teal-100 */
  --howto-accent-tint: rgba(13, 148, 136, 0.08);

  /* 比較カテゴリ用のテーマ（reviews / howto と区別するため紫系） */
  --compare-accent: #7c3aed;       /* violet-600 */
  --compare-accent-dark: #6d28d9;  /* violet-700 */
  --compare-accent-soft: #ede9fe;  /* violet-100 */
  --compare-accent-tint: rgba(124, 58, 237, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  background: #eef2ff;
  color: #3730a3;
  border-radius: 6px;
  padding: 2px 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner,
.site-footer-inner,
.site-main {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  font-weight: 900;
  letter-spacing: 0.03em;
}

.site-nav {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

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

.site-main {
  padding: 42px 0 80px;
}

.site-main.narrow {
  max-width: 820px;
}

.hero {
  padding: 48px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.20), transparent 36%),
    linear-gradient(135deg, #ffffff, #eef4ff);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(30, 64, 175, 0.08);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
}

.hero p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.card,
.content-section,
.ad-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
}

.card h2,
.content-section h2,
.content-section h1 {
  margin-top: 0;
}

.card p,
.content-section p {
  color: var(--muted);
  line-height: 1.9;
}

.ad-box {
  margin-top: 22px;
  border-style: dashed;
  text-align: center;
}

.ad-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-weight: 800;
}

.ad-message {
  color: var(--muted);
  line-height: 1.7;
}

.content-section {
  margin-top: 22px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 28px 0;
  background: #fff;
}

@media (max-width: 780px) {
  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .hero {
    padding: 28px;
  }

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


/* 追加ページ用 */
.compact-hero {
  padding: 38px;
}

.link-section .quick-links,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-links a,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; /* タップターゲット最小サイズ（WCAG 2.5.5） */
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}

.button-muted {
  background: #6b7280;
}

.notice-box {
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
}

.notice-box p {
  margin-bottom: 0;
}

.contact-card {
  margin: 20px 0;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.simple-form {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.simple-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.simple-form input,
.simple-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}

.form-note,
.last-updated {
  color: var(--muted);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.app-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
}

.app-card p {
  color: var(--muted);
  line-height: 1.8;
}

.app-card a {
  color: var(--accent);
  font-weight: 800;
  display: inline-block;
  min-height: 44px;
  padding: 11px 0;
  line-height: 22px;
}

.app-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.terms-section h2 {
  margin-top: 28px;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.footer-nav a {
  display: inline-block;
  min-height: 44px;
  padding: 11px 6px;
  line-height: 22px;
}

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

@media (max-width: 780px) {
  /* タップターゲット間隔をしっかり確保（WCAG タップターゲット監査対応） */
  .site-nav,
  .footer-nav {
    gap: 10px;
  }

  .quick-links {
    gap: 12px;
  }

  .site-nav {
    flex-wrap: wrap;
  }

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

  .footer-layout {
    flex-direction: column;
  }
}


/* スマホ用ハンバーガーメニュー */
.menu-toggle {
  display: none;
  width: 48px;  /* タップターゲット 44px 以上 */
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav a {
  border-radius: 12px;
}

@media (max-width: 780px) {
  .site-header-inner {
    min-height: 60px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .site-logo {
    max-width: calc(100% - 60px);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    flex-direction: column;
    gap: 6px;  /* スマホ縦並びでもタップしやすく */
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.10);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    display: block;
    padding: 14px 16px;  /* タップしやすい高さに */
    min-height: 48px;
  }

  .site-nav a:hover {
    background: rgba(37, 99, 235, 0.08);
  }

  /* フッターナビもスマホでタップしやすく */
  .footer-nav {
    gap: 4px;
  }

  .footer-nav a {
    padding: 12px 8px;
    min-height: 48px;
  }
}

/* お問い合わせフォーム */
.form-message {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 14px;
  line-height: 1.8;
}

.form-message ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.form-message-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.form-message-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.contact-form {
  gap: 10px;
}

.contact-form label {
  margin-top: 8px;
}

.required-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 12px;
  font-weight: 800;
}

.robot-check {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  width: fit-content;
  margin: 12px 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.robot-check input {
  width: 20px;
  height: 20px;
}

.recaptcha-area {
  margin: 12px 0 4px;
}

.contact-submit {
  width: fit-content;
  margin-top: 8px;
}

.form-hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 480px) {
  .robot-check,
  .contact-submit {
    width: 100%;
  }

  .robot-check {
    justify-content: flex-start;
  }
}


/* 多言語・審査向け強化（ドロップダウン式言語切替） */
.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.language-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;  /* タップターゲット最小 */
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.language-current:hover,
.language-switcher.is-open .language-current {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-dark);
}

.language-current-icon {
  display: inline-flex;
  color: var(--muted);
}

.language-current:hover .language-current-icon,
.language-switcher.is-open .language-current-icon {
  color: var(--accent);
}

.language-current-label {
  white-space: nowrap;
}

.language-caret {
  display: inline-flex;
  transition: transform 0.18s ease;
}

.language-switcher.is-open .language-caret {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 200;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
  max-height: min(70vh, 420px);
  overflow-y: auto;
}

.language-menu[hidden] {
  display: none;
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;  /* タップターゲット改善 */
  min-height: 44px;
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.language-option:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-dark);
}

.language-option.is-active {
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-dark);
}

.language-option-name {
  white-space: nowrap;
}

.language-option-code {
  font-size: 11px;
  font-weight: 900;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.language-option:hover .language-option-code,
.language-option.is-active .language-option-code {
  color: var(--accent);
}

.mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.mini-card h3,
.app-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.simple-list {
  line-height: 1.9;
  color: var(--muted);
}

.footer-description {
  max-width: 480px;
  margin: 8px 0 0;
  line-height: 1.7;
  font-size: 13px;
}

.compact-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 780px) {
  .language-switcher {
    width: 100%;
    margin-top: 6px;
    padding: 10px 0 2px;
    border-left: 0;
    border-top: 1px solid var(--line);
    justify-content: flex-start;
  }

  .language-current {
    width: 100%;
    justify-content: space-between;
    min-height: 48px;
  }

  .language-menu {
    position: static;
    right: auto;
    margin-top: 8px;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    max-height: none;
  }

  .language-option {
    padding: 14px;
    min-height: 48px;
  }

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


/* =========================================================
   おすすめ紹介（reviews）関連スタイル
   ========================================================= */

/* 広告・アフィリエイト開示表示 */
.affiliate-disclosure {
  margin: 18px 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* 紹介記事カード一覧 */
.review-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.review-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
}

/* カード内部：本文（左）とサムネイル（右）の横並び */
.review-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.review-card-body {
  flex: 1 1 auto;
  min-width: 0; /* 長い文字列で flex が伸びるのを防ぐ */
}

/* サムネイル（リンク先記事の代表画像） */
.review-card-thumb {
  flex: 0 0 160px;
  width: 160px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #f5f5f5;
  display: block;
  align-self: center;
}

.review-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
  transition: transform 0.25s ease;
}

.review-card-thumb:hover img {
  transform: scale(1.04);
}

.review-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* カテゴリラベル */
.category-label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

/* 公開日 */
.review-date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.review-card-title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.4;
}

.review-card-title a:hover {
  color: var(--accent);
}

.review-card-desc {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* 「詳しく見る」リンク */
.review-readmore {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 0;
  color: var(--accent);
  font-weight: 800;
}

.review-readmore:hover {
  color: var(--accent-dark);
}

/* ページネーション */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
}

.pagination-link:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: rgba(37, 99, 235, 0.06);
}

.pagination-link.is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pagination-link.is-disabled {
  color: #cbd5e1;
  background: #f8fafc;
  cursor: default;
}

/* 紹介記事 本文 */
.review-article h1 {
  margin-top: 6px;
  line-height: 1.3;
}

.review-article h2 {
  margin-top: 30px;
  font-size: 22px;
}

.review-lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
}

.review-article .step-list {
  line-height: 1.9;
  color: var(--muted);
  padding-left: 20px;
}

.review-article .step-list li {
  margin-bottom: 6px;
}

/* まとめボックス */
.summary-box {
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}

.summary-box p {
  margin: 0;
  line-height: 1.9;
  color: inherit;
}

/* アフィリエイト広告枠 */
.affiliate-box {
  margin: 18px 0;
  padding: 20px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  background: #fafafa;
  text-align: center;
}

.affiliate-label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
}

.affiliate-placeholder {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* 一覧へ戻るリンク */
.back-link {
  margin-top: 30px;
}

/* トップページの紹介導線セクション */
.reviews-promo .quick-links {
  margin-top: 16px;
}

@media (max-width: 780px) {
  .review-card {
    padding: 18px;
  }

  .review-card-inner {
    gap: 14px;
  }

  .review-card-thumb {
    flex-basis: 100px;
    width: 100px;
    border-radius: 10px;
  }

  .review-article h2 {
    font-size: 20px;
  }

  .pagination-link {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
  }
}

/* 極小画面（横幅 420px 以下）ではサムネイルを本文上に回り込ませる */
@media (max-width: 420px) {
  .review-card-inner {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
  }

  .review-card-thumb {
    flex-basis: auto;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 4 / 3;
  }
}

/* =========================================================
   SEO パンくずリスト
   ========================================================= */
.breadcrumb {
  max-width: 1120px;
  margin: 16px auto 0;
  padding: 0 20px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.breadcrumb li + li::before {
  content: '›';
  color: var(--muted);
  opacity: 0.75;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
}

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

.breadcrumb span[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 780px) {
  .breadcrumb {
    margin-top: 12px;
    padding: 0 16px;
    font-size: 12px;
  }
}


/* =========================================================
   Cookie 同意バナー
   （旧 common/cookie-consent/style.css から統合 — HTTP リクエスト削減）
   ========================================================= */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  background: rgba(18, 18, 24, 0.96);
  color: #fff;
  z-index: 99999;
  padding: 16px;
  box-sizing: border-box;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-content {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.cookie-text strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.cookie-text p {
  margin: 0;
  color: #e8e8ef;
  line-height: 1.75;
  font-size: 14px;
}

.cookie-buttons {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.cookie-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  min-height: 44px;             /* タップターゲット最小 */
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

.cookie-btn:active {
  transform: translateY(0);
  opacity: 0.85;
}

.cookie-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* 旧色: #23c55e (白文字とのコントラスト比 ≈ 2.0:1 で WCAG AA 不合格)
   新色: #15803d (コントラスト比 ≈ 5.4:1 で WCAG AA 合格) */
.cookie-btn-accept {
  background: #15803d;
  color: #ffffff;
}

.cookie-btn-accept:hover {
  background: #166534;
}

.cookie-btn-reject {
  background: #374151;  /* こちらも #4b5563 より少し濃くしてコントラストを安定化 */
  color: #ffffff;
}

.cookie-btn-reject:hover {
  background: #1f2937;
}

@media (max-width: 720px) {
  .cookie-content {
    display: block;
  }

  .cookie-buttons {
    margin-top: 14px;
    gap: 12px;
  }

  .cookie-btn {
    flex: 1;
  }
}


/* =========================================================
   トップページ「おすすめコンテンツ」カードのリンク
   （アクセシブルな最低タップ領域）
   ========================================================= */
.app-card a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}


/* =========================================================
   ノウハウ（howto）関連スタイル
   レビュー（青）とは別の teal/emerald 系で視覚的に区別
   ========================================================= */

/* 一覧ページのヒーロー */
.howto-hero {
  background:
    radial-gradient(circle at top right, rgba(13, 148, 136, 0.18), transparent 40%),
    linear-gradient(135deg, #ffffff, #f0fdfa);
  border: 1px solid #99f6e4;
}

.howto-hero .eyebrow {
  color: var(--howto-accent);
}

/* 一覧（記事カード） */
.howto-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.howto-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--howto-accent);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.howto-card:hover {
  border-color: var(--howto-accent);
  border-left-color: var(--howto-accent-dark);
  box-shadow: 0 20px 50px rgba(13, 148, 136, 0.12);
  transform: translateY(-1px);
}

.howto-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.howto-category-label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--howto-accent-soft);
  color: var(--howto-accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.howto-date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.howto-card-title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.4;
}

.howto-card-title a {
  color: var(--text);
}

.howto-card-title a:hover {
  color: var(--howto-accent);
}

.howto-card-desc {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.8;
}

.howto-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 11px 0;
  color: var(--howto-accent);
  font-weight: 800;
}

.howto-readmore:hover {
  color: var(--howto-accent-dark);
}

.howto-readmore:focus-visible {
  outline: 2px solid var(--howto-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 詳細ページ */
.howto-article h1 {
  margin-top: 6px;
  line-height: 1.3;
}

.howto-article h2 {
  margin-top: 36px;
  padding-top: 6px;
  font-size: 22px;
  color: var(--text);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.howto-article h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 24px;
}

.howto-article h3 {
  margin: 6px 0 8px;
  font-size: 17px;
}

.howto-article p,
.howto-article ul,
.howto-article ol {
  line-height: 1.9;
}

.howto-lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  padding: 18px 20px;
  background: var(--howto-accent-tint);
  border-radius: 14px;
  border-left: 4px solid var(--howto-accent);
}

/* この記事のゴール */
.howto-goal {
  margin: 22px 0;
  padding: 18px 22px;
  border-radius: 16px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
}

.howto-goal-label {
  margin: 0 0 8px;
  color: var(--howto-accent-dark);
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 13px;
  text-transform: uppercase;
}

.howto-goal ul {
  margin: 0;
  color: var(--text);
}

/* 手順（番号付きステップ） */
.howto-steps {
  counter-reset: howto-step;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.howto-steps > li {
  counter-increment: howto-step;
  position: relative;
  padding: 18px 20px 18px 60px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.howto-steps > li::before {
  content: counter(howto-step);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--howto-accent);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
}

.howto-steps > li h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.howto-steps > li p {
  margin: 0 0 12px;
  color: var(--muted);
}

.howto-steps > li > *:last-child {
  margin-bottom: 0;
}

/* コンパクト版（手順差し替え用ガイドなど短い箇所向け） */
.howto-steps-compact {
  margin-top: 8px;
}

.howto-steps-compact > li {
  padding: 12px 16px 12px 48px;
  margin-bottom: 8px;
  font-size: 14px;
}

.howto-steps-compact > li::before {
  width: 26px;
  height: 26px;
  font-size: 13px;
  top: 13px;
  left: 12px;
}

/* コードブロック */
.howto-code {
  position: relative;
  margin: 14px 0 4px;
  padding: 16px 18px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.howto-code code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  white-space: pre;
}

.howto-code::before {
  content: attr(data-lang);
  position: absolute;
  top: 8px;
  right: 12px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
}

.howto-code:empty::before,
.howto-code:not([data-lang])::before {
  content: none;
}

/* インラインコード（記事本文中の <code>） */
.howto-article code {
  background: #ecfeff;
  color: var(--howto-accent-dark);
}

/* Tipsボックス */
.howto-tip {
  margin: 22px 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: #fefce8;
  border: 1px solid #fde68a;
  color: #713f12;
}

.howto-tip-label {
  margin: 0 0 6px;
  font-weight: 900;
  color: #854d0e;
}

.howto-tip p {
  margin: 0;
  line-height: 1.8;
}

.howto-tip ol,
.howto-tip ul {
  margin: 8px 0 0;
}

/* ノウハウ用ボタン（一覧へ戻る） */
.button-link-howto {
  background: var(--howto-accent);
}

.button-link-howto:hover {
  background: var(--howto-accent-dark);
}

.button-link-howto:focus-visible {
  outline: 2px solid var(--howto-accent-dark);
  outline-offset: 3px;
}

@media (max-width: 780px) {
  .howto-card {
    padding: 18px;
  }

  .howto-article h2 {
    font-size: 20px;
  }

  .howto-steps > li {
    padding: 16px 16px 16px 54px;
  }

  .howto-steps > li::before {
    left: 12px;
    top: 16px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .howto-code {
    font-size: 12px;
    padding: 14px;
  }
}


/* =========================================================
   ノウハウ記事（シリーズ）専用追加スタイル
   楽天API × AI 記事シリーズで使われている独自パーツを定義
   ========================================================= */

/* ワークフロー全体像ボックス（番号付き工程の概要表示） */
.workflow-box {
  margin: 22px 0;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
  border: 1px solid #99f6e4;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.08);
}

.workflow-box ol {
  counter-reset: workflow-step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.workflow-box ol > li {
  counter-increment: workflow-step;
  position: relative;
  padding: 12px 14px 12px 52px;
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 12px;
  color: var(--text);
  line-height: 1.7;
  font-weight: 600;
}

.workflow-box ol > li::before {
  content: counter(workflow-step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--howto-accent);
  color: #fff;
  font-weight: 900;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.30);
}

/* 記事シリーズの前後ナビ */
.article-series-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 44px 0 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.article-series-nav a,
.article-series-nav .disabled-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 11px 18px;
  font-weight: 800;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1.4;
}

.article-series-nav a {
  color: var(--howto-accent-dark);
  background: var(--howto-accent-soft);
  border-color: var(--howto-accent-soft);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.article-series-nav a:hover {
  background: var(--howto-accent);
  color: #fff;
  border-color: var(--howto-accent);
  transform: translateY(-1px);
}

.article-series-nav a:focus-visible {
  outline: 2px solid var(--howto-accent-dark);
  outline-offset: 3px;
}

.article-series-nav .disabled-link {
  color: var(--muted);
  background: #f3f4f6;
  border-color: var(--line);
  opacity: 0.65;
  cursor: not-allowed;
  user-select: none;
}

.article-series-nav .next-link {
  margin-left: auto;
}

@media (max-width: 480px) {
  .article-series-nav {
    gap: 8px;
  }
  .article-series-nav a,
  .article-series-nav .disabled-link {
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* =========================================================
   比較カテゴリ（/compare/）
   reviews/howto と区別するため violet 系で識別
   ========================================================= */

/* ヒーロー */
.compare-hero {
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.18), transparent 40%),
    linear-gradient(135deg, #ffffff, #f5f3ff);
  border: 1px solid #ddd6fe;
}

.compare-hero .eyebrow {
  color: var(--compare-accent);
}

/* 一覧（記事カード） */
.compare-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.compare-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--compare-accent);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.compare-card:hover {
  border-color: var(--compare-accent);
  border-left-color: var(--compare-accent-dark);
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.12);
  transform: translateY(-1px);
}

/* カード内部：本文（左）とサムネイル（右）の横並び */
.compare-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.compare-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

.compare-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.compare-category-label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--compare-accent-soft);
  color: var(--compare-accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.compare-date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.compare-card-title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.4;
}

.compare-card-title a {
  color: var(--text);
}

.compare-card-title a:hover {
  color: var(--compare-accent);
}

.compare-card-desc {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.8;
}

.compare-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 11px 0;
  color: var(--compare-accent);
  font-weight: 800;
}

.compare-readmore:hover {
  color: var(--compare-accent-dark);
}

.compare-readmore:focus-visible {
  outline: 2px solid var(--compare-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* カード右側のサムネイル（リンク先記事の代表画像） */
.compare-card-thumb {
  flex: 0 0 160px;
  width: 160px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #f5f5f5;
  display: block;
  align-self: center;
}

.compare-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
  transition: transform 0.25s ease;
}

.compare-card-thumb:hover img {
  transform: scale(1.04);
}

/* 詳細ページ */
.compare-article h1 {
  margin-top: 6px;
  font-size: 26px;
  line-height: 1.35;
}

.compare-article h2 {
  margin-top: 32px;
  font-size: 22px;
  border-left: 4px solid var(--compare-accent);
  padding-left: 12px;
  line-height: 1.4;
}

.compare-article h2:first-of-type {
  margin-top: 18px;
}

.compare-article p,
.compare-article ul,
.compare-article ol {
  line-height: 1.85;
}

.compare-lead {
  margin: 14px 0 22px;
  padding: 16px 18px;
  background: var(--compare-accent-tint);
  border-radius: 12px;
  color: var(--text);
  line-height: 1.85;
}

/* 「先に結論」ボックス */
.compare-summary-pre {
  margin: 20px 0;
  padding: 18px 20px;
  background: var(--compare-accent-soft);
  border-left: 4px solid var(--compare-accent);
  border-radius: 12px;
}

.compare-summary-pre-label {
  margin: 0 0 8px;
  font-weight: 900;
  color: var(--compare-accent-dark);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.compare-summary-pre ul {
  margin: 0;
  padding-left: 1.2em;
}

/* 「用途別おすすめ」ボックス */
.compare-pick {
  margin: 20px 0;
  padding: 18px 20px;
  background: #fefce8;
  border-left: 4px solid #ca8a04;
  border-radius: 12px;
}

.compare-pick-label {
  margin: 0 0 8px;
  font-weight: 900;
  color: #854d0e;
  font-size: 14px;
}

.compare-pick ul {
  margin: 0;
  padding-left: 1.2em;
}

/* 比較表 */
.compare-table-wrap {
  margin: 18px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  font-size: 14px;
  min-width: 480px;
}

.compare-table thead th {
  background: var(--compare-accent-soft);
  color: var(--compare-accent-dark);
  font-weight: 900;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.compare-table tbody th {
  background: #fafafa;
  color: var(--text);
  font-weight: 800;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: top;
}

.compare-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.7;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

/* 比較用ボタン（一覧へ戻る） */
.button-link-compare {
  background: var(--compare-accent);
}

.button-link-compare:hover {
  background: var(--compare-accent-dark);
}

.button-link-compare:focus-visible {
  outline: 2px solid var(--compare-accent-dark);
  outline-offset: 3px;
}

@media (max-width: 780px) {
  .compare-card {
    padding: 18px;
  }

  .compare-card-inner {
    gap: 14px;
  }

  .compare-card-thumb {
    flex-basis: 100px;
    width: 100px;
    border-radius: 10px;
  }

  .compare-article h2 {
    font-size: 20px;
  }

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

@media (max-width: 420px) {
  .compare-card-inner {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
  }

  .compare-card-thumb {
    flex-basis: auto;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 4 / 3;
  }
}
