/*
Theme Name: Cocoon Child
Template: cocoon-master
Version: 1.0.0
*/

/* ============================================
   Global: Smooth Scroll
   ============================================ */
html { scroll-behavior: smooth; }
.portal-section { scroll-margin-top: 20px; }

/* ============================================
   見出し余白（H2）
   ============================================ */
.entry-content h2 {
  margin-top: 2.4em;
  margin-bottom: 0.9em;
}

.entry-content h2:first-of-type {
  margin-top: 1.6em;
}

/* ============================================
   見出し余白（H3）
   ============================================ */
.entry-content h3 {
  margin-top: 2em;
  margin-bottom: 0.7em;
}

/* ============================================
   【１】Pick Upボックス（オレンジ基軸の配色）
   オレンジ系のトーンで統一し、グラデーションでアクセント
   ============================================ */
.blank-box.bb-pickup {
  background: linear-gradient(135deg, #fffbf5 0%, #fff4e6 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.blank-box.bb-pickup::before {
  content: '\f005';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 60px;
  color: rgba(245, 158, 11, 0.08);
  pointer-events: none;
}

.blank-box.bb-pickup .bb-label {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}

/* bb-greenやbb-blueの色指定を上書き（オレンジ統一） */
.blank-box.bb-tab.bb-pickup.bb-green,
.blank-box.bb-tab.bb-pickup.bb-blue {
  background: linear-gradient(135deg, #fffbf5 0%, #fff4e6 100%);
  border-color: #f59e0b;
}

/* ダークモード対応 */
body.dark-mode .blank-box.bb-pickup {
  background: linear-gradient(135deg, #2a2416 0%, #332817 100%);
  border-color: #d97706;
}

body.dark-mode .blank-box.bb-pickup::before {
  color: rgba(245, 158, 11, 0.15);
}

/* ============================================
   エディターメモボックス（ピラティス調査室より）
   ティールグリーン系 - CTAより控えめ
   ============================================ */
.editor-memo-box {
  background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 100%);
  border: 1px solid #14b8a6;
  border-radius: 8px;
  padding: 20px 16px 16px 20px;
  margin: 16px 0;
  position: relative;
  font-size: 14px;
  line-height: 1.7;
}

.editor-memo-box__label {
  position: absolute;
  top: -10px;
  left: 16px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.editor-memo-box__label::before {
  content: '\f002';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 10px;
}

.editor-memo-box__content {
  color: #134e4a;
}

.editor-memo-box__content p {
  margin: 0 0 8px;
}

.editor-memo-box__content p:last-child {
  margin-bottom: 0;
}

/* ダークモード */
body.dark-mode .editor-memo-box {
  background: linear-gradient(135deg, #042f2e 0%, #064e3b 100%);
  border-color: #0d9488;
}

body.dark-mode .editor-memo-box__content {
  color: #99f6e4;
}

/* エディターメモボックス直後の段落に余白を追加
   （「ピラティス調査室より」と「いかがでしたか？」の間隔調整） */
.editor-memo-box + p {
  margin-top: 1.5em;
}

/* 口コミセクション内の余白調整
   「口コミ→ピラティス調査室より」セットが連続する場合の間隔改善 */
.editor-memo-box + .google-review-card {
  margin-top: 2em;
}

/* ============================================
   【２】Googleレビューウィジェット風デザイン
   【１】星評価とアバター画像対応
   ============================================ */
.google-review-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s ease;
}

.google-review-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.google-review-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.google-review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f3f4;
  border: 1px solid #dadce0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.google-review-card__avatar a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.google-review-card__avatar-initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.google-review-card__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.google-review-card__meta {
  flex: 1;
}

.google-review-card__author {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 15px;
  margin-bottom: 2px;
}

.google-review-card__author a {
  color: #1a73e8;
  text-decoration: none;
}

.google-review-card__author a:hover {
  text-decoration: underline;
}

.google-review-card__date {
  font-size: 12px;
  color: #70757a;
}

/* 星評価（Unicode星マーク使用） */
.google-review-card__rating {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-bottom: 10px;
  font-size: 0;
}

.google-review-card__rating .gr-star {
  font-size: 18px;
  line-height: 1;
}

.google-review-card__rating .gr-star.filled {
  color: #fbbc04;
}

.google-review-card__rating .gr-star.empty {
  color: #dadce0;
}

.google-review-card__content {
  font-size: 14px;
  line-height: 1.7;
  color: #3c4043;
}

.google-review-card__footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f3f4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.google-review-card__google-icon {
  width: 20px;
  height: 20px;
}

.google-review-card__source {
  font-size: 12px;
  color: #70757a;
}

/* ダークモード対応 */
body.dark-mode .google-review-card {
  background: #1d1f22;
  border-color: #333;
}

body.dark-mode .google-review-card__author {
  color: #eee;
}

body.dark-mode .google-review-card__author a {
  color: #8ab4f8;
}

body.dark-mode .google-review-card__content {
  color: #bbb;
}

/* ============================================
   【２】リストボックス共通（orange/blue）
   !importantでCocoonデフォルトを上書き
   ============================================ */
.list-box-orange,
.list-box-blue {
  border-radius: 8px !important;
  max-width: 100% !important;
  padding: 1.5em 2em !important;
  margin: 1.5em 0 !important;
}

.list-box-orange { background: #fffbf5 !important; border: 1px solid #f59e0b !important; }
.list-box-blue   { background: #f0f7ff !important; border: 1px solid #3b82f6 !important; }

.list-box-orange .list-box-title,
.list-box-blue .list-box-title {
  font-weight: 700;
  margin: 0 0 10px;
}

.list-box-title-center {
  text-align: center;
}

.list-box-orange .list-box-title { color: #b45309; }
.list-box-blue .list-box-title   { color: inherit; }

/* list-box-orange 内のセンタータイトルを本文色に（特徴セクション用） */
.list-box-orange .list-box-title.list-box-title-center {
  color: inherit;
}

/* 女性専用スタジオボックス（pilates K固有） */
.women-only-box .lead-box-title {
  color: #333;
}

.list-box-orange ul, .list-box-orange ol,
.list-box-blue ul, .list-box-blue ol,
.entry-content .list-box-orange ul, .entry-content .list-box-orange ol,
.entry-content .list-box-blue ul, .entry-content .list-box-blue ol,
.article .list-box-orange ul, .article .list-box-orange ol,
.article .list-box-blue ul, .article .list-box-blue ol {
  margin: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

.list-box-orange li, .list-box-blue li,
.entry-content .list-box-orange li, .entry-content .list-box-blue li,
.article .list-box-orange li, .article .list-box-blue li {
  position: relative !important;
  padding: 12px 0 12px 38px !important;
  color: #333 !important;
  line-height: 1.7 !important;
  list-style: none !important;
  margin: 0 !important;
}

.list-box-orange li { border-bottom: 1px dashed #fde68a !important; }
.list-box-blue li   { border-bottom: 1px dashed #bfdbfe !important; }

.list-box-orange li:last-child, .list-box-blue li:last-child,
.entry-content .list-box-orange li:last-child, .entry-content .list-box-blue li:last-child {
  border-bottom: none !important;
}

.list-box-orange li::before, .list-box-blue li::before,
.entry-content .list-box-orange li::before, .entry-content .list-box-blue li::before,
.article .list-box-orange li::before, .article .list-box-blue li::before {
  position: absolute !important;
  left: 0 !important;
  top: 12px !important;
  width: 24px !important;
  height: 24px !important;
  color: #fff !important;
  border-radius: 50% !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.list-box-orange li::before {
  content: '✓' !important;
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  font-size: 12px !important;
}

.list-box-blue li::before {
  content: 'i' !important;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  font-size: 14px !important;
  font-style: italic !important;
}

/* 番号付きリスト */
.list-box-orange ol {
  counter-reset: list-counter !important;
}

.list-box-orange ol li::before,
.entry-content .list-box-orange ol li::before {
  content: counter(list-counter) !important;
  counter-increment: list-counter !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}

/* ダークモード対応 */
body.dark-mode .list-box-orange { background: #2a2416 !important; border-color: #d97706 !important; }
body.dark-mode .list-box-blue   { background: #1a2332 !important; border-color: #3b82f6 !important; }

body.dark-mode .list-box-orange li,
body.dark-mode .list-box-blue li {
  color: #ddd !important;
}

body.dark-mode .list-box-orange li { border-bottom-color: #3d3420 !important; }
body.dark-mode .list-box-blue li   { border-bottom-color: #2a3a50 !important; }

body.dark-mode .list-box-orange .list-box-title {
  color: #eee;
}

body.dark-mode .women-only-box .lead-box-title {
  color: #eee;
}

body.dark-mode .list-box-blue .list-box-title {
  color: inherit;
}

/* フォールバックタイトル用（後方互換性） */
.list-box-blue .bad-review-fallback-title {
  font-weight: 700;
  text-align: center;
  margin: 0 0 10px;
  color: inherit;
}

/* ============================================
   著者プロフィールカード
   ============================================ */
.author-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 20px 24px;
  margin: 2em 0;
}

.author-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.author-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #dadce0;
}

.author-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-card__meta {
  display: flex;
  flex-direction: column;
}

/* (wpautop無効化により削除済み: author-card__meta空タグ対策CSS) */

.author-card__label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.author-card__name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.author-card__body {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

/* ダークモード対応 */
body.dark-mode .author-card {
  background: #1d1f22;
  border-color: #333;
}

body.dark-mode .author-card__name {
  color: #eee;
}

body.dark-mode .author-card__body {
  color: #bbb;
}

/* ============================================
   テーブル共通スタイル（ストライプデザイン）
   【５】2カラムテーブル: 30%:70%、折り返し表示
   ============================================ */

/* スクロール可能テーブルのラッパー（比較/料金テーブルは除外→独自角丸ルール優先） */
.scrollable-table:not(:has(.area-comparison-table)):not(:has(.area-pricing-table)),
.entry-content .scrollable-table:not(:has(.area-comparison-table)):not(:has(.area-pricing-table)) {
  position: relative;
  margin: 1.5em 0;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}
.scrollable-table:has(.area-comparison-table),
.scrollable-table:has(.area-pricing-table) {
  position: relative;
  margin: 9px 0 1.5em 0 !important;
  outline: none !important;
  padding: 0 !important;
}

/* スクロールヒント */
.scroll-hint {
  display: none;
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: linear-gradient(135deg, rgba(234,88,12,0.92) 0%, rgba(251,146,60,0.92) 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px 8px 12px;
  border-radius: 24px;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(234,88,12,0.3);
  backdrop-filter: blur(4px);
  animation: scrollHintSlide 2s ease-in-out infinite;
  letter-spacing: 0.03em;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.scroll-hint::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  margin-left: 6px;
  vertical-align: middle;
}

@keyframes scrollHintSlide {
  0%, 100% { opacity: 0.95; transform: translateY(-50%) translateX(0); }
  50% { opacity: 1; transform: translateY(-50%) translateX(-6px); }
}

/* PC: テーブル幅100%、コンテンツ折り返し */
.entry-content table:not(.area-comparison-table):not(.area-pricing-table),
.basic-info-table,
.pricing-table,
.trial-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-radius: 10px;
  overflow: hidden;
  table-layout: fixed;
}

.entry-content table:not(.area-comparison-table):not(.area-pricing-table) thead th,
.basic-info-table thead th,
.pricing-table thead th,
.trial-table thead th {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border: none;
}

.entry-content table:not(.area-comparison-table):not(.area-pricing-table) tbody td,
.entry-content table:not(.area-comparison-table):not(.area-pricing-table) tbody th,
.basic-info-table tbody td,
.basic-info-table tbody th,
.pricing-table tbody td,
.pricing-table tbody th,
.trial-table tbody td,
.trial-table tbody th {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.entry-content table:not(.area-comparison-table):not(.area-pricing-table) tbody tr:nth-child(odd),
.basic-info-table tbody tr:nth-child(odd),
.pricing-table tbody tr:nth-child(odd),
.trial-table tbody tr:nth-child(odd) {
  background: #fffbf5;
}

.entry-content table:not(.area-comparison-table):not(.area-pricing-table) tbody tr:nth-child(even),
.basic-info-table tbody tr:nth-child(even),
.pricing-table tbody tr:nth-child(even),
.trial-table tbody tr:nth-child(even) {
  background: #fff;
}

.entry-content table:not(.area-comparison-table):not(.area-pricing-table) tbody tr:hover,
.basic-info-table tbody tr:hover,
.pricing-table tbody tr:hover,
.trial-table tbody tr:hover {
  background: #fef3e2;
  transition: background 0.2s ease;
}

/* 【５】1列目が項目のテーブル（30%:70%比率） */
.entry-content table:not(.area-comparison-table):not(.area-pricing-table) tbody th,
.basic-info-table tbody th,
.pricing-table tbody th,
.trial-table tbody th {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 600;
  text-align: left;
  width: 30%;
  white-space: normal;
  word-wrap: break-word;
}

.entry-content table:not(.area-comparison-table):not(.area-pricing-table) tbody td,
.basic-info-table tbody td,
.pricing-table tbody td,
.trial-table tbody td {
  width: 70%;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* 1列目項目テーブルのストライプをtdのみに */
.entry-content table:not(.area-comparison-table):not(.area-pricing-table) tbody tr:nth-child(odd) td,
.basic-info-table tbody tr:nth-child(odd) td,
.pricing-table tbody tr:nth-child(odd) td,
.trial-table tbody tr:nth-child(odd) td {
  background: #fffbf5;
}

.entry-content table:not(.area-comparison-table):not(.area-pricing-table) tbody tr:nth-child(even) td,
.basic-info-table tbody tr:nth-child(even) td,
.pricing-table tbody tr:nth-child(even) td,
.trial-table tbody tr:nth-child(even) td {
  background: #fff;
}

.entry-content table:not(.area-comparison-table):not(.area-pricing-table) tbody tr:hover td,
.basic-info-table tbody tr:hover td,
.pricing-table tbody tr:hover td,
.trial-table tbody tr:hover td {
  background: #fef3e2;
}

/* 最終行の border 削除 */
.entry-content table tbody tr:last-child td,
.entry-content table tbody tr:last-child th,
.basic-info-table tbody tr:last-child td,
.basic-info-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td,
.pricing-table tbody tr:last-child th,
.trial-table tbody tr:last-child td,
.trial-table tbody tr:last-child th {
  border-bottom: none;
}

/* テーブルキャプション: 視覚的に非表示、スクリーンリーダー・構造化データ用に保持 */
.basic-info-table caption,
.price-table caption,
.pricing-table caption,
.trial-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* スマホ: 横スクロール */
@media screen and (max-width: 768px) {
  .scrollable-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* スクロールヒント: デフォルト非表示、JS (IntersectionObserver) で表示制御 */
  .scrollable-table .scroll-hint {
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
  }

  .scrollable-table .scroll-hint.hint-visible {
    opacity: 1;
    visibility: visible;
  }

  .scrollable-table.scrolled .scroll-hint {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  
  .entry-content table,
  .basic-info-table,
  .pricing-table,
  .trial-table {
    table-layout: auto;
    min-width: 500px;
  }
  
  .entry-content table tbody th,
  .basic-info-table tbody th,
  .pricing-table tbody th,
  .trial-table tbody th {
    width: auto;
    min-width: 120px;
    white-space: nowrap;
  }
  
  .entry-content table tbody td,
  .basic-info-table tbody td,
  .pricing-table tbody td,
  .trial-table tbody td {
    width: auto;
    min-width: 200px;
  }

  .list-box-orange,
  .list-box-blue {
    padding: 1em 1.2em;
  }
  
  .list-box-orange ul,
  .list-box-orange ol,
  .list-box-blue ul,
  .list-box-blue ol {
    padding-left: 0;
  }

  /* 2列テーブル（項目名/内容）専用: 横スクロール不要化 */
  .basic-info-table {
    table-layout: auto !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .basic-info-table tbody th {
    width: 1% !important;
    white-space: nowrap !important;
    min-width: 0 !important;
    font-size: 14px !important;
  }

  .basic-info-table tbody td {
    width: auto !important;
    min-width: 0 !important;
    white-space: normal !important;
    word-break: break-all !important;  /* 日本語も強制改行 */
    overflow-wrap: anywhere !important;
    font-size: 14px !important;
  }

  /* モバイル: colgroup の inline width を無効化（table-layout: auto で自動調整させる） */
  .basic-info-table col:first-child,
  .basic-info-table col:last-child {
    width: auto !important;
  }

  /* 料金プラン・体験レッスンテーブル: 横スクロール不要化 */
  .pricing-table,
  .trial-table {
    table-layout: auto !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  /* theadのヘッダー行 */
  .pricing-table thead th,
  .trial-table thead th {
    padding: 10px 8px !important;
    font-size: 13px !important;
    white-space: normal !important;
    word-break: keep-all !important;
  }

  /* 3カラムテーブル（pricing-table）: 1列目・2列目は最小幅、3列目は残り幅 */
  .pricing-table tbody td:first-child {
    width: 1% !important;
    white-space: nowrap !important;
    min-width: 0 !important;
  }

  .pricing-table tbody td:nth-child(2) {
    width: 1% !important;
    white-space: nowrap !important;
    min-width: 0 !important;
    text-align: right !important;
  }

  .pricing-table tbody td:last-child {
    width: auto !important;
    min-width: 0 !important;
    white-space: normal !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
  }

  /* 2カラムテーブル（trial-table）: 1列目は最小幅、2列目は残り幅 */
  .trial-table tbody td:first-child {
    width: 1% !important;
    white-space: nowrap !important;
    min-width: 0 !important;
  }

  .trial-table tbody td:last-child {
    width: auto !important;
    min-width: 0 !important;
    white-space: normal !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
  }

  /* セル内のパディング調整（スマホ用） */
  .pricing-table tbody td,
  .trial-table tbody td {
    padding: 10px 8px !important;
    font-size: 13px !important;
  }
}

/* ダークモード対応 */
body.dark-mode :is(.entry-content table, .basic-info-table, .pricing-table, .trial-table) {
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.dark-mode :is(.entry-content table, .basic-info-table, .pricing-table, .trial-table) :is(thead, tbody) th {
  background: linear-gradient(135deg, #d97706, #b45309);
}

body.dark-mode :is(.entry-content table, .basic-info-table, .pricing-table, .trial-table) tbody tr:nth-child(odd) td {
  background: #2a2c2f;
}

body.dark-mode :is(.entry-content table, .basic-info-table, .pricing-table, .trial-table) tbody tr:nth-child(even) td {
  background: #1d1f22;
}

body.dark-mode :is(.entry-content table, .basic-info-table, .pricing-table, .trial-table) tbody tr:hover td {
  background: #363840;
}

body.dark-mode :is(.entry-content table, .basic-info-table, .pricing-table, .trial-table) tbody td {
  border-bottom-color: #333;
  color: #ddd;
}

/* テーブル内ボタンを縦中央配置 */
table tr:has(.btn-wrap) > td {
  vertical-align: middle !important;
}

table td .btn-wrap {
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

table td .btn-wrap > a {
  width: 100%;
  display: inline-block;
  text-align: center;
}

/* ============================================
   CTAボックス（グリーン系ボタンで目立たせる）
   ============================================ */
.cta-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 2px solid #3a6b5c;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin: 2em 0;
}

.cta-box__text,
.cta-text {
  font-size: 18px;
  font-weight: 700;
  color: #3a6b5c;
  margin: 0 0 16px;
}

.cta-text .cta-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}

.cta-btn-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
  position: relative;
  z-index: 2;
}

.cta-btn-icon i,
.cta-btn-icon .fa {
  margin-right: 0;
}

.cta-box__btn .btn i,
.cta-btn .btn i,
.pilates-cta a i,
.cta-box__btn .btn .fa,
.cta-btn .btn .fa,
.pilates-cta a .fa {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}

.cta-box__btn .btn .cta-btn-icon i,
.cta-btn .btn .cta-btn-icon i,
.pilates-cta a .cta-btn-icon i,
.cta-box__btn .btn .cta-btn-icon .fa,
.cta-btn .btn .cta-btn-icon .fa,
.pilates-cta a .cta-btn-icon .fa {
  margin-right: 0;
}

.cta-btn-text {
  display: inline-flex;
  align-items: center;
  margin-left: 0;
  padding-left: 0;
  position: relative;
  z-index: 2;
}

.cta-btn-icon + .cta-btn-text {
  margin-left: 0;
}

.cta-box__btn,
.cta-btn {
  margin: 0;
}

/* ピラティス向けCTAボタン（グリーン系） */
.pilates-cta {
  margin: 2em 0;
}

.pilates-cta a,
.cta-box__btn .btn,
.cta-btn .btn {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 24px;
  background: linear-gradient(135deg, #3a6b5c, #2f5a4e);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(58,107,92,0.3);
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* CTAボタンのシマーライン（GPU合成: translateX） */
.pilates-cta a::before,
.cta-box__btn .btn::before,
.cta-btn .btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.4) 46%, rgba(255,255,255,0.12) 54%, transparent 65%);
  will-change: transform;
  animation: ctaBtnShimmer 4s linear infinite 1.5s;
  pointer-events: none;
  z-index: 1;
}

@keyframes ctaBtnShimmer {
  0%   { transform: translateX(-100%); }
  17%  { transform: translateX(-100%); }
  28%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* CTAボタン - 文末の矢印アイコン（Font Awesome） */
.pilates-cta a::after,
.cta-box__btn .btn::after,
.cta-btn .btn::after {
  content: '\f105'; /* fa-angle-right（大きめの >） */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 18px;
  margin-left: 10px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.pilates-cta a:hover,
.cta-box__btn .btn:hover,
.cta-btn .btn:hover {
  background: linear-gradient(135deg, #2f5a4e, #254a40);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58,107,92,0.4);
  color: #fff;
}

/* ホバー時に矢印が右にスライド */
.pilates-cta a:hover::after,
.cta-box__btn .btn:hover::after,
.cta-btn .btn:hover::after {
  transform: translateX(6px);
}

/* 赤ボタンもグリーンに統一（後方互換性） */
.cta-box__btn .btn-red,
.cta-btn .btn-red {
  background: linear-gradient(135deg, #3a6b5c, #2f5a4e);
}

.cta-box__btn .btn-red:hover,
.cta-btn .btn-red:hover {
  background: linear-gradient(135deg, #2f5a4e, #254a40);
}

/* 光るボタン効果（CTAボタン以外用） */
.btn-shiny:not(.cta-box__btn .btn):not(.cta-btn .btn):not(.pilates-cta a) {
  position: relative;
  overflow: hidden;
}

.btn-shiny:not(.cta-box__btn .btn):not(.cta-btn .btn):not(.pilates-cta a)::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.4) 46%, rgba(255,255,255,0.12) 54%, transparent 65%);
  will-change: transform;
  animation: btnShimmer 4s linear infinite 1.5s;
  pointer-events: none;
}

@keyframes btnShimmer {
  0%   { transform: translateX(-100%); }
  17%  { transform: translateX(-100%); }
  28%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}


/* ダークモード対応 */
body.dark-mode .cta-box {
  background: linear-gradient(135deg, #1a2e28 0%, #1e332c 100%);
  border-color: #4a8b7c;
}

body.dark-mode .cta-box__text,
body.dark-mode .cta-text {
  color: #6ee7b7;
}

/* ==============================================
   PC/スマホ表示切り替え用クラス
   ============================================== */
.sp-only {
  display: none;
}

@media screen and (max-width: 768px) {
  .sp-only {
    display: inline;
  }

  /* CTAボタンのスマホ対応（改行を許可＋アイコン位置固定） */
  .pilates-cta a,
  .cta-box__btn .btn,
  .cta-btn .btn {
    white-space: normal;
    line-height: 1.5;
    padding-left: 36px;  /* 虫眼鏡アイコンのスペースを確保 */
    padding-right: 32px; /* 矢印のスペースを確保 */
  }

  /* スマホ時の矢印アイコン - 右端に上下中央揃えで固定 */
  .pilates-cta a::after,
  .cta-box__btn .btn::after,
  .cta-btn .btn::after {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }

  /* スマホ時のホバー効果（矢印） */
  .pilates-cta a:hover::after,
  .cta-box__btn .btn:hover::after,
  .cta-btn .btn:hover::after {
    transform: translateY(-50%) translateX(4px);
  }

  /* スマホ時の虫眼鏡アイコン - 左端に上下中央揃えで固定 */
  .cta-btn-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0;
  }
}

/* timeline-box: 削除済み（[step_flow] ショートコードに移行） */

/* ============================================
   フローステップ（新レイアウト）
   ============================================ */
.flow-steps {
  position: relative;
  margin: 1.8em 0;
  padding-left: 90px;
}

.flow-steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 24px; /* ラベルの中心位置に合わせる */
  bottom: 24px;
  width: 4px;
  background: linear-gradient(180deg, #f59e0b 0%, #fbbf24 50%, #fcd34d 100%);
  border-radius: 4px;
}

.flow-step {
  position: relative;
  margin-bottom: 18px;
}

.flow-step:last-child {
  margin-bottom: 0;
}

.flow-step__label {
  position: absolute;
  left: -90px;
  top: 12px; /* タイトルの中心と合わせる（padding 14px + タイトル中心 - ラベル中心） */
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(245,158,11,0.35);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.flow-step__body {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
  padding: 14px 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.flow-step__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.flow-step__text {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

@media screen and (max-width: 768px) {
  .flow-steps {
    padding-left: 0;
  }

  .flow-steps::before {
    display: none;
  }

  .flow-step__label {
    position: static;
    display: inline-block;
    margin-bottom: 8px;
  }
}

body.dark-mode .flow-step__body {
  background: #1d1f22;
  border-color: #333;
}

body.dark-mode .flow-step__title {
  color: #eee;
}

body.dark-mode .flow-step__text {
  color: #bbb;
}

/* ============================================
   ステップフロー（ショートコード対応）
   [step_flow][step title="タイトル"]内容[/step][/step_flow]
   ============================================ */
.step-flow {
  position: relative;
  margin: 2em 0;
}

/* 縦線（全体を一本で描画、JSで動的に位置調整） */
.step-flow::before {
  content: '';
  position: absolute;
  left: 25px; /* マーカーの中心 (50px / 2) */
  top: var(--line-top, 88px); /* JSで動的に設定、フォールバック値 */
  bottom: var(--line-bottom, 88px); /* JSで動的に設定、フォールバック値 */
  width: 3px;
  background: linear-gradient(180deg, #f59e0b 0%, #fbbf24 50%, #fcd34d 100%);
  border-radius: 3px;
  transform: translateX(-50%);
  z-index: 1;
}

.step-flow__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  padding-bottom: 24px;
}

.step-flow__item:last-child {
  padding-bottom: 0;
}

/* 丸いマーカー（番号入り） */
.step-flow__marker {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  margin-top: 38px !important; /* タイトルの中心と揃える */
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(245,158,11,0.4);
  position: relative;
  z-index: 2;
}

.step-flow__number {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

/* コンテンツエリア */
.step-flow__content {
  flex: 1;
  min-width: 0;
}

.step-flow__label {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.step-flow__title {
  margin: 0 0 4px !important;
  font-size: 17px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
}

.step-flow__body {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  padding: 16px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

.step-flow__body p {
  margin: 0;
}

.step-flow__body p + p {
  margin-top: 0.8em;
}

/* リンクは通常のテキストリンクスタイルを継承 */

/* ホバー効果 */
.step-flow__item:hover .step-flow__marker {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(245,158,11,0.5);
  transition: all 0.3s ease;
}

.step-flow__item:hover .step-flow__body {
  border-color: #fde68a;
  box-shadow: 0 4px 20px rgba(245,158,11,0.15);
  transition: all 0.3s ease;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  /* スマホ用縦線（top/bottomはJSのCSS変数に委譲） */
  .step-flow::before {
    left: 20px;
    width: 2px;
  }

  .step-flow__item {
    gap: 14px;
    padding-bottom: 20px;
  }

  .step-flow__marker {
    width: 40px;
    height: 40px;
    margin-top: 18px;
  }

  .step-flow__number {
    font-size: 16px;
  }

  .step-flow__label {
    font-size: 10px;
    padding: 3px 10px;
    margin-bottom: 6px;
  }

  .step-flow__title {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .step-flow__body {
    padding: 12px 14px;
    font-size: 13px;
  }
}

/* ダークモード対応 */
body.dark-mode .step-flow__title {
  color: #eee;
}

body.dark-mode .step-flow__body {
  background: #1d1f22;
  border-color: #333;
  color: #bbb;
}

body.dark-mode .step-flow__item:hover .step-flow__body {
  border-color: #4a3a20;
}

/* HowTo ステップ画像 */
.howto-step-image {
  margin: 12px 0 4px;
  text-align: center;
}

.howto-step-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media screen and (max-width: 768px) {
  .howto-step-image img {
    border-radius: 8px;
  }
}

body.dark-mode .howto-step-image img {
  opacity: 0.9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ============================================
   【４】【７】FAQアイテム（横並び: Q 30% / A 70%）
   ============================================ */
.faq-item-row {
  display: grid;
  grid-template-columns: 30% 70%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid #f3f4f6;
}

.faq-item-row__q {
  background: linear-gradient(135deg, #fffbf5 0%, #fff8f0 100%);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-right: 1px solid #fde68a;
}

.faq-item-row__a {
  background: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.faq-item-row__icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item-row__q .faq-item-row__icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 2px 6px rgba(245,158,11,0.3);
}

.faq-item-row__a .faq-item-row__icon {
  background: linear-gradient(135deg, #3a6b5c, #2f5a4e);
  color: #fff;
  box-shadow: 0 2px 6px rgba(58,107,92,0.3);
}

.faq-item-row__q .faq-item-row__text {
  font-weight: 600;
  color: #333;
  line-height: 1.6;
  font-size: 14px;
  padding-top: 4px;
}

.faq-item-row__a .faq-item-row__text {
  color: #555;
  line-height: 1.7;
  font-size: 14px;
  padding-top: 4px;
}

/* ホバー効果 */
.faq-item-row:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s ease;
}

/* スマホ対応：縦並びに変更 */
@media screen and (max-width: 768px) {
  .faq-item-row {
    grid-template-columns: 1fr;
  }

  .faq-item-row__q {
    border-right: none;
    border-bottom: 1px solid #fde68a;
  }

  /* Q/Aアイコンの左右位置を揃える */
  .faq-item-row__a {
    padding-left: 16px;  /* 20px → 16px に統一 */
  }

  /* アイコンとテキストの垂直位置を調整 */
  .faq-item-row__q .faq-item-row__text,
  .faq-item-row__a .faq-item-row__text {
    padding-top: 6px;  /* 4px → 6px */
  }
}

/* ── 男性セクション テーブル ── */
.male-table-wrapper {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  width: 100%;
  margin: 16px 0 0;
}
.male-availability-table {
  width: 100%;
  margin: 0 !important;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 14px;
  background: #fff;
  table-layout: fixed;
}
/* カラム幅配分: スタジオ24% / 男性利用条件26% / 形式34% / 更衣室16% */
.male-availability-table col:nth-child(1) { width: 24%; }
.male-availability-table col:nth-child(2) { width: 26%; }
.male-availability-table col:nth-child(3) { width: 34%; }
.male-availability-table col:nth-child(4) { width: 16%; }
.male-availability-table thead th {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-weight: 600;
  padding: 12px 14px;
  text-align: center !important;
  border: none;
  font-size: 13px;
}
.male-availability-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  text-align: center !important;
  font-size: 13.5px;
  vertical-align: middle;
}
/* 形式セル: バッジ間にスペース */
.male-availability-table tbody td:nth-child(3) .tag-chip {
  margin: 1px 2px;
}
/* スタジオ名セル — <wbr> でのみ折り返し、CJK自動改行を抑止 */
.male-availability-table tbody td:first-child {
  font-weight: 600;
  font-size: 13px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.male-availability-table tbody td:first-child a {
  color: #1e40af;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #93c5fd;
  padding: 1px 3px;
  border-radius: 3px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.male-availability-table tbody td:first-child a:hover {
  color: #1e3a8a;
  background: rgba(59, 130, 246, 0.08);
  border-bottom-color: #1e40af;
}
/* ゼブラストライプ */
.male-availability-table tbody tr:nth-child(odd) td {
  background: #fff;
}
.male-availability-table tbody tr:nth-child(even) td {
  background: #f0fdf4;
}
.male-availability-table tbody tr:hover td {
  background: #d1fae5;
  transition: background 0.2s ease;
}
/* 条件付き行（tag-conditional）をやや目立たせる */
.male-availability-table tbody td:has(.tag-conditional) {
  line-height: 1.6;
}
/* ダークモード */
body.dark-mode .male-table-wrapper {
  border-color: #374151;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.dark-mode .male-availability-table {
  background: #1e293b;
}
body.dark-mode .male-availability-table thead th {
  background: linear-gradient(135deg, #065f46, #047857);
}
body.dark-mode .male-availability-table tbody td {
  border-bottom-color: #334155;
  color: #e2e8f0;
}
body.dark-mode .male-availability-table tbody tr:nth-child(odd) td {
  background: #1e293b;
}
body.dark-mode .male-availability-table tbody tr:nth-child(even) td {
  background: #1a2e1a;
}
body.dark-mode .male-availability-table tbody tr:hover td {
  background: #064e3b;
}
body.dark-mode .male-availability-table tbody td:first-child a {
  color: #93c5fd;
  border-bottom-color: #3b82f6;
}
body.dark-mode .male-availability-table tbody td:first-child a:hover {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.12);
  border-bottom-color: #93c5fd;
}
/* モバイル */
@media (max-width: 599px) {
  .male-availability-table {
    font-size: 12.5px;
  }
  .male-availability-table thead th {
    padding: 10px 8px;
    font-size: 11.5px;
  }
  .male-availability-table tbody td {
    padding: 8px 6px;
    font-size: 12px;
  }
  .male-availability-table tbody td:first-child {
    font-size: 11.5px;
  }
}

/* 男性セクションFAQ */
.male-faq-section {
  margin: 24px 0;
}

.male-faq-section .faq-item-row {
  margin-bottom: 12px;
}

/* ダークモード対応 */
body.dark-mode .faq-item-row {
  background: #1d1f22;
  border-color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

body.dark-mode .faq-item-row__q {
  background: linear-gradient(135deg, #2a2416 0%, #2d2618 100%);
  border-right-color: #3d3420;
  border-bottom-color: #3d3420;
}

body.dark-mode .faq-item-row__a {
  background: #1d1f22;
}

body.dark-mode .faq-item-row__q .faq-item-row__text {
  color: #eee;
}

body.dark-mode .faq-item-row__a .faq-item-row__text {
  color: #bbb;
}

/* ============================================
   その他の装飾（既存のblockquoteなど）
   ============================================ */
blockquote {
  margin: 1.2em 0;
  padding: 1em 1.2em;
  background: #fffdf2;
  border-left: 4px solid #f1c232;
  border-radius: 6px;
}

blockquote cite {
  display: block;
  margin-top: 0.6em;
  font-size: 0.9em;
  color: #666;
}

body.dark-mode blockquote {
  background: #2a2820;
  border-left-color: #d4a504;
}

body.dark-mode blockquote cite {
  color: #999;
}

/* ============================================
   編集部メモ（悪い口コミセクション用）
   ============================================ */
.editor-note,
blockquote:has(strong:first-child) {
  position: relative;
  margin: 1.5em 0;
  padding: 1.2em 1.4em 1.2em 3.5em;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #7dd3fc;
  border-left: 4px solid #0ea5e9;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.editor-note::before,
blockquote:has(strong:first-child)::before {
  content: '\f05a';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 1em;
  top: 1.2em;
  font-size: 18px;
  color: #0ea5e9;
}

.editor-note p,
blockquote:has(strong:first-child) p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #334155;
}

.editor-note strong,
blockquote:has(strong:first-child) strong {
  color: #0369a1;
  font-weight: 700;
}

/* ダークモード対応 */
body.dark-mode .editor-note,
body.dark-mode blockquote:has(strong:first-child) {
  background: linear-gradient(135deg, #0c2536 0%, #0f3451 100%);
  border-color: #0369a1;
  border-left-color: #38bdf8;
}

body.dark-mode .editor-note::before,
body.dark-mode blockquote:has(strong:first-child)::before {
  color: #38bdf8;
}

body.dark-mode .editor-note p,
body.dark-mode blockquote:has(strong:first-child) p {
  color: #cbd5e1;
}

body.dark-mode .editor-note strong,
body.dark-mode blockquote:has(strong:first-child) strong {
  color: #7dd3fc;
}

.campaign-box {
  background: #fffbf5;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px 14px;
}

.campaign-box ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

body.dark-mode .campaign-box {
  background: #2a2416;
  border-color: #3d3420;
}

/* キャンペーン価格テーブル用 強調テキスト */
.cp-price {
  color: #c0392b;
  font-weight: 700;
  font-size: 1.05em;
}

body.dark-mode .cp-price {
  color: #e74c3c;
}

/* キャンペーン特典リスト（視認性改善） */
.campaign-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.campaign-list-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  padding: 10px 12px;
}

.campaign-list-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.campaign-list-title {
  font-weight: 700;
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}

.campaign-list-text {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

@media screen and (max-width: 768px) {
  .campaign-list-item {
    grid-template-columns: 1fr;
  }

  .campaign-list-thumb {
    max-width: 220px;
    margin: 0 auto;
  }
}

body.dark-mode .campaign-list-item {
  background: #1d1f22;
  border-color: #333;
}

body.dark-mode .campaign-list-title {
  color: #eee;
}

body.dark-mode .campaign-list-text {
  color: #bbb;
}

/* ============================================
   キャンペーンバナー（PC/SP切り替え）
   ============================================ */
.campaign-banner {
  margin: 1.2em 0;
  text-align: center;
}

.campaign-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.campaign-banner .campaign-banner-sp {
  display: none;
}

@media screen and (max-width: 768px) {
  .campaign-banner .campaign-banner-pc {
    display: none;
  }

  .campaign-banner .campaign-banner-sp {
    display: block;
  }
}

/* ============================================
   キャンペーン概要カード（プレミアムデザイン）
   ============================================ */
.campaign-overview {
  margin: 1.5em 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(245, 158, 11, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.18);
  background: #fff;
}

/* --- ヘッダー --- */
.campaign-overview__header {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  padding: 28px 24px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.campaign-overview__header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.campaign-overview__header::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

/* 「開催中」バッジ */
.campaign-overview__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 1;
}

.campaign-overview__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
  animation: campaignBadgePulse 1.8s ease-in-out infinite;
}

@keyframes campaignBadgePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

/* タイトル */
.campaign-overview__title {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 3px 8px rgba(0, 0, 0, 0.15);
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.13) !important; /* Cocoon h3 装飾無効化 + フロストガラス */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  width: fit-content;
  padding: 8px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18) !important; /* Cocoon h3 ボーダー無効化 */
}

/* --- 期間表示 --- */
.campaign-overview__period {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.campaign-overview__date {
  color: #fff;
  text-align: center;
}

.campaign-overview__date-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 2px;
  letter-spacing: 0.04em;
}

.campaign-overview__date-value {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.campaign-overview__date-arrow {
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
}

/* --- 特典グリッド --- */
.campaign-overview__benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

/* pilates K: 8特典対応 4カラム×2行グリッド */
.campaign-overview--wide .campaign-overview__benefits {
  grid-template-columns: repeat(4, 1fr);
}

.campaign-overview--wide .campaign-overview__benefit-label {
  font-size: 14px;
}

.campaign-overview--wide .campaign-overview__benefit-note {
  font-size: 13px;
}

.campaign-overview__benefit {
  padding: 24px 16px;
  text-align: center;
  border-right: 1px solid #fef3e2;
  position: relative;
}

.campaign-overview__benefit:last-child {
  border-right: none;
}

.campaign-overview__benefit-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #d97706;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.campaign-overview__benefit-label {
  font-size: 12px;
  font-weight: 600;
  color: #78350f;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.campaign-overview__benefit-value {
  font-size: 28px;
  font-weight: 800;
  color: #b45309;
  line-height: 1.1;
  margin-bottom: 6px;
}

.campaign-overview__benefit-value small {
  font-size: 14px;
  font-weight: 600;
}

.campaign-overview__benefit-note {
  font-size: 11px;
  color: #92400e;
  line-height: 1.6;
}

.campaign-overview__benefit-note s {
  color: #a8a29e;
  font-size: 11px;
}

/* --- スマホ対応 --- */
@media screen and (max-width: 768px) {
  .campaign-overview__header {
    padding: 22px 16px 20px;
  }

  .campaign-overview__title {
    font-size: 18px;
  }

  .campaign-overview__period {
    padding: 10px 16px;
    gap: 10px;
  }

  .campaign-overview__date-value {
    font-size: 13px;
  }

  .campaign-overview__date-arrow {
    font-size: 16px;
  }

  .campaign-overview__benefits {
    grid-template-columns: 1fr;
  }

  .campaign-overview__benefit {
    border-right: none;
    border-bottom: 1px solid #fef3e2;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
  }

  .campaign-overview__benefit:last-child {
    border-bottom: none;
  }

  .campaign-overview__benefit-icon {
    margin: 0;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
  }

  .campaign-overview__benefit-content {
    flex: 1;
  }

  .campaign-overview__benefit-value {
    font-size: 22px;
  }
}

/* --- ダークモード --- */
body.dark-mode .campaign-overview {
  background: #1d1f22;
  border-color: rgba(217, 119, 6, 0.25);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-mode .campaign-overview__header {
  background: linear-gradient(135deg, #b45309 0%, #92400e 50%, #78350f 100%);
}

body.dark-mode .campaign-overview__benefit {
  border-right-color: #2a2416;
  border-bottom-color: #2a2416;
}

body.dark-mode .campaign-overview__benefit-icon {
  background: linear-gradient(135deg, #2a2416, #332817);
  color: #fbbf24;
}

body.dark-mode .campaign-overview__benefit-label {
  color: #fbbf24;
}

body.dark-mode .campaign-overview__benefit-value {
  color: #fde68a;
}

body.dark-mode .campaign-overview__benefit-note {
  color: #d4a574;
}

body.dark-mode .campaign-overview__benefit-note s {
  color: #6b7280;
}

/* ============================================
   体験レッスン料金カード（テーブル + モダンCSS）
   ============================================ */
.campaign-pricing {
  margin: 1em 0 1.5em;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.campaign-pricing table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
}

.campaign-pricing thead th {
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #d97706;
  border-bottom: none;
  text-align: left;
  letter-spacing: 0.02em;
}

.campaign-pricing thead th:last-child {
  text-align: right;
}

.campaign-pricing thead th i {
  margin-right: 5px;
  color: #fff;
  font-size: 11px;
}

.campaign-pricing tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
  color: #374151;
}

.campaign-pricing tbody tr:last-child td {
  border-bottom: none;
}

.campaign-pricing tbody td:first-child {
  font-weight: 600;
}

.campaign-pricing tbody td:nth-child(2) {
  color: #9ca3af;
  font-size: 13px;
}

.campaign-pricing tbody td:last-child {
  text-align: right;
}

.campaign-pricing__sale {
  font-size: 18px;
  font-weight: 800;
  color: #b45309;
}

/* --- 料金カード スマホ対応 --- */
@media screen and (max-width: 768px) {
  .campaign-pricing thead th {
    padding: 10px 14px;
    font-size: 11px;
  }

  .campaign-pricing tbody td {
    padding: 12px 14px;
    font-size: 13px;
  }

  .campaign-pricing__sale {
    font-size: 15px;
  }
}

/* --- 料金カード ダークモード --- */
body.dark-mode .campaign-pricing {
  background: #1d1f22;
  border-color: #374151;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

body.dark-mode .campaign-pricing thead th {
  background: #92400e;
  color: #fff;
}

body.dark-mode .campaign-pricing thead th i {
  color: #fff;
}

body.dark-mode .campaign-pricing tbody td {
  color: #e5e7eb;
  border-bottom-color: #2d3038;
}

body.dark-mode .campaign-pricing tbody td:nth-child(2) {
  color: #6b7280;
}

body.dark-mode .campaign-pricing__sale {
  color: #fbbf24;
}

/* ============================================
   キャンペーン更新履歴アコーディオン
   ============================================ */
.campaign-history-toggle {
  margin: 24px 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.campaign-history-toggle summary {
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  color: #374151;
  background: #f9fafb;
  cursor: pointer;
  list-style: none;
}

.campaign-history-toggle summary::before {
  content: "\25B6\00A0";
  font-size: 12px;
}

.campaign-history-toggle[open] summary::before {
  content: "\25BC\00A0";
}

.campaign-history-toggle summary::-webkit-details-marker {
  display: none;
}

.campaign-history {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.campaign-history td {
  padding: 10px 16px;
  border-top: 1px solid #e5e7eb;
}

.campaign-history td:first-child {
  white-space: nowrap;
  color: #6b7280;
  width: 140px;
}

body.dark-mode .campaign-history-toggle {
  border-color: #374151;
}

body.dark-mode .campaign-history-toggle summary {
  background: #1f2937;
  color: #d1d5db;
}

body.dark-mode .campaign-history td {
  border-color: #374151;
}

body.dark-mode .campaign-history td:first-child {
  color: #9ca3af;
}

/* ============================================
   入会特典ボックス（フラットアクセント）
   ============================================ */
.campaign-enrollment {
  margin: 1em 0 0.5em;
  padding: 16px 24px 12px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fbbf24;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}

.campaign-enrollment .campaign-enrollment__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.campaign-enrollment__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
}

.campaign-enrollment__item + .campaign-enrollment__item {
  border-top: 1px solid rgba(217, 119, 6, 0.12);
}

.campaign-enrollment__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
}

/* --- 入会特典 スマホ対応 --- */
@media screen and (max-width: 768px) {
  .campaign-enrollment {
    padding: 16px 18px;
  }

  .campaign-enrollment__item {
    font-size: 13px;
  }
}

/* --- 入会特典 ダークモード --- */
body.dark-mode .campaign-enrollment {
  background: linear-gradient(135deg, #1d1a14 0%, #2a2010 100%);
  border-color: #92400e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .campaign-enrollment__item {
  color: #d1d5db;
  border-top-color: rgba(180, 83, 9, 0.2);
}

body.dark-mode .campaign-enrollment__check {
  background: #92400e;
}

/* ============================================
   コミットメント条件（blank-box アラートボックス）
   bb-pickup パターン準拠・赤系注意喚起
   ============================================ */
.blank-box.bb-commitment {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #ef4444;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.blank-box.bb-commitment::before {
  content: '\f071';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 60px;
  color: rgba(239, 68, 68, 0.06);
  pointer-events: none;
}

.blank-box.bb-commitment .bb-label {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
  font-size: 14px;
}

.blank-box.bb-commitment .bb-label i {
  margin-right: 6px;
}

.blank-box.bb-commitment p {
  margin: 0 0 12px;
  line-height: 1.8;
  color: #374151;
}

.bb-commitment__penalty {
  margin: 16px 0;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 8px;
  text-align: center;
}

.bb-commitment__penalty-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}

.bb-commitment__penalty-value {
  font-size: 24px;
  font-weight: 700;
  color: #dc2626;
}

.bb-commitment__penalty-note {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}

.bb-commitment__tip {
  margin-top: 16px !important;
  margin-bottom: 0 !important;
  padding: 12px 16px;
  background: #ecfdf5;
  border-radius: 8px;
  font-size: 14px;
  color: #065f46;
}

.bb-commitment__tip i {
  color: #10b981;
  margin-right: 4px;
}

/* --- コミットメント条件 スマホ対応 --- */
@media screen and (max-width: 768px) {
  .bb-commitment__penalty-value {
    font-size: 20px;
  }
}

/* --- コミットメント条件 ダークモード --- */
body.dark-mode .blank-box.bb-commitment {
  background: linear-gradient(135deg, #1c1111 0%, #2a1515 100%);
  border-color: #991b1b;
}

body.dark-mode .blank-box.bb-commitment::before {
  color: rgba(239, 68, 68, 0.08);
}

body.dark-mode .blank-box.bb-commitment .bb-label {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}

body.dark-mode .blank-box.bb-commitment p {
  color: #d1d5db;
}

body.dark-mode .bb-commitment__penalty {
  background: #1f2937;
  border-color: #7f1d1d;
}

body.dark-mode .bb-commitment__penalty-label {
  color: #9ca3af;
}

body.dark-mode .bb-commitment__penalty-value {
  color: #f87171;
}

body.dark-mode .bb-commitment__tip {
  background: #0a2118;
  color: #6ee7b7;
}

body.dark-mode .bb-commitment__tip i {
  color: #34d399;
}

/* ============================================
   月額料金プランテーブル
   ============================================ */
.campaign-monthly-pricing {
  margin: 1em 0 0.5em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.campaign-monthly-pricing table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 400px;
}

.campaign-monthly-pricing thead th {
  padding: 12px 16px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-weight: 700;
  text-align: center;
  font-size: 14px;
}

.campaign-monthly-pricing thead th:first-child {
  text-align: left;
  border-radius: 8px 0 0 0;
}

.campaign-monthly-pricing thead th:last-child {
  border-radius: 0 8px 0 0;
}

.campaign-monthly-pricing thead th small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
}

.campaign-monthly-pricing thead th i {
  margin-right: 4px;
  font-size: 12px;
}

.campaign-monthly-pricing tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}

.campaign-monthly-pricing tbody td:first-child {
  text-align: left;
  font-weight: 600;
}

.campaign-monthly-pricing__note {
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
}

/* --- 月額料金 スマホ対応 --- */
@media screen and (max-width: 768px) {
  .campaign-monthly-pricing thead th {
    padding: 10px 12px;
    font-size: 13px;
  }

  .campaign-monthly-pricing tbody td {
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* --- 月額料金 ダークモード --- */
body.dark-mode .campaign-monthly-pricing table {
  background: #1f2937;
}

body.dark-mode .campaign-monthly-pricing thead th {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
}

body.dark-mode .campaign-monthly-pricing tbody td {
  border-color: #374151;
  color: #d1d5db;
}

body.dark-mode .campaign-monthly-pricing__note {
  color: #9ca3af;
}

/* ============================================
   競合ブランド比較テーブル
   ============================================ */
.campaign-brand-compare {
  margin: 1em 0 0.5em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.campaign-brand-compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 500px;
}

.campaign-brand-compare thead th {
  padding: 12px 14px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 700;
  text-align: center;
  border-bottom: 2px solid #d1d5db;
}

.campaign-brand-compare thead th:first-child {
  text-align: left;
  background: #e5e7eb;
}

.campaign-brand-compare thead th.campaign-brand-compare__highlight {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
}

.campaign-brand-compare tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
  vertical-align: middle;
}

.campaign-brand-compare tbody td:first-child {
  text-align: left;
  font-weight: 600;
  background: #f9fafb;
  white-space: nowrap;
}

.campaign-brand-compare tbody td.campaign-brand-compare__highlight {
  background: #fffbeb;
  font-weight: 600;
}

.campaign-brand-compare__note {
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
}

/* --- ブランド比較 スマホ対応 --- */
@media screen and (max-width: 768px) {
  .campaign-brand-compare thead th {
    padding: 10px 10px;
    font-size: 12px;
  }

  .campaign-brand-compare tbody td {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* --- ブランド比較 ダークモード --- */
body.dark-mode .campaign-brand-compare thead th {
  background: #374151;
  color: #d1d5db;
  border-color: #4b5563;
}

body.dark-mode .campaign-brand-compare thead th:first-child {
  background: #1f2937;
}

body.dark-mode .campaign-brand-compare thead th.campaign-brand-compare__highlight {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  color: #fff;
}

body.dark-mode .campaign-brand-compare tbody td {
  border-color: #374151;
  color: #d1d5db;
}

body.dark-mode .campaign-brand-compare tbody td:first-child {
  background: #111827;
}

body.dark-mode .campaign-brand-compare tbody td.campaign-brand-compare__highlight {
  background: #1d1a14;
}

body.dark-mode .campaign-brand-compare__note {
  color: #9ca3af;
}

/* ============================================
   入会タイミングガイド
   .entry-content スコープでCocoon上書きを防止
   ============================================ */
.entry-content .campaign-timing-guide {
  margin: 1em 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.entry-content .campaign-timing-guide__item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  align-items: flex-start;
}

.entry-content .campaign-timing-guide__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 12px;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.entry-content .campaign-timing-guide__icon i {
  display: block;
  line-height: 1;
}

.entry-content .campaign-timing-guide__content {
  flex: 1;
  min-width: 0;
}

.entry-content .campaign-timing-guide__content h3 {
  margin: 0 0 6px;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  border: none;
  background: none;
}

.entry-content .campaign-timing-guide__content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

/* --- タイミングガイド スマホ対応 --- */
@media screen and (max-width: 768px) {
  .entry-content .campaign-timing-guide__item {
    padding: 16px;
    gap: 12px;
  }

  .entry-content .campaign-timing-guide__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 16px;
  }

  .entry-content .campaign-timing-guide__content h3 {
    font-size: 15px;
  }

  .entry-content .campaign-timing-guide__content p {
    font-size: 13px;
  }
}

/* --- タイミングガイド ダークモード --- */
body.dark-mode .entry-content .campaign-timing-guide__item {
  background: #1f2937;
  border-color: #374151;
}

body.dark-mode .entry-content .campaign-timing-guide__icon {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
}

body.dark-mode .entry-content .campaign-timing-guide__content h3 {
  color: #f3f4f6;
}

body.dark-mode .entry-content .campaign-timing-guide__content p {
  color: #9ca3af;
}

/* --- 条件チェックマーク・警告アイコン色 --- */
.campaign-condition-ok {
  color: #10b981;
}

.campaign-condition-warn {
  color: #f59e0b;
}

body.dark-mode .campaign-condition-ok {
  color: #34d399;
}

body.dark-mode .campaign-condition-warn {
  color: #fbbf24;
}

/* ============================================
   スタジオフォトスライダー（Swiper）
   ============================================ */
.studio-photo-slider {
  margin: 1.5em 0 2em;
  position: relative;
}

.studio-photo-slider__swiper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Swiper必須構造 */
.studio-photo-slider__swiper .swiper-wrapper {
  display: flex;
  transition-property: transform;
}

.studio-photo-slider__swiper .swiper-slide {
  flex-shrink: 0;
  width: 100%;
  position: relative;
}

.studio-photo-slide__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* ナビゲーションボタン */
.studio-photo-slider .swiper-button-prev,
.studio-photo-slider .swiper-button-next {
  color: #f59e0b;
  background: rgba(255,255,255,0.9);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.studio-photo-slider .swiper-button-prev::after,
.studio-photo-slider .swiper-button-next::after {
  font-size: 18px;
  font-weight: 700;
}

/* ページネーション */
.studio-photo-slider .swiper-pagination {
  position: relative;
  margin-top: 12px;
}

.studio-photo-slider .swiper-pagination-bullet {
  background: #f59e0b;
  opacity: 0.4;
  width: 10px;
  height: 10px;
}

.studio-photo-slider .swiper-pagination-bullet-active {
  opacity: 1;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .studio-photo-slider .swiper-button-prev,
  .studio-photo-slider .swiper-button-next {
    width: 32px;
    height: 32px;
  }
  
  .studio-photo-slider .swiper-button-prev::after,
  .studio-photo-slider .swiper-button-next::after {
    font-size: 14px;
  }
}

.embed-placeholder {
  border: 1px dashed #cbd5e1;
  padding: 14px;
  text-align: center;
  border-radius: 8px;
  background: #f8fafc;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.instagram-embed {
  max-width: 540px;
  margin: 12px auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.entry-content blockquote.instagram-media {
  display: block;
  margin: 12px auto !important;
  max-width: 540px;
  width: 100%;
  float: none !important;
}

.entry-content blockquote.instagram-media > div {
  margin-left: auto !important;
  margin-right: auto !important;
}

.entry-content blockquote.instagram-media,
.entry-content .instagram-embed {
  text-align: center;
}

.embed-center {
  text-align: center;
  margin: 12px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.embed-center iframe {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.alert-box {
  text-align: center;
  margin: 12px auto;
}

.entry-content iframe[src*="google.com/maps"],
.entry-content p > iframe[src*="google.com/maps"],
.entry-content .wp-block-embed__wrapper iframe[src*="google.com/maps"] {
  display: block !important;
  max-width: 100%;
  margin: 0 auto !important;
  float: none !important;
}

.entry-content iframe {
  display: block !important;
  max-width: 100%;
  margin: 0 auto !important;
  float: none !important;
}

.entry-content p > blockquote.instagram-media {
  margin-left: auto !important;
  margin-right: auto !important;
}

.entry-content .wp-block-embed,
.entry-content .wp-block-embed__wrapper {
  text-align: center;
}

.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.campaign-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.campaign-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.campaign-card-title {
  font-weight: 600;
  font-size: 0.95em;
  margin-top: 6px;
}

.campaign-card-text {
  font-size: 0.85em;
  color: #555;
  margin-top: 4px;
}

.lead-box-title,
.grade-block-title {
  text-align: center;
  margin: 0 0 8px;
}

.infographic {
  text-align: center;
  margin: 16px 0;
}

.infographic img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.infographic figcaption {
  font-size: 0.9em;
  color: #555;
  margin-top: 8px;
}

/* ============================================
   強調アンダーライン（オレンジテーマ調整）
   ============================================ */
/* Cocoonの標準黄色マーカーを上書き */
.marker-under,
span.marker-under,
strong .marker-under,
.marker-under strong {
  background: linear-gradient(transparent 60%, #ffcf8f 60%);
  padding: 0 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* より目立たせたい場合の濃いバージョン */
.marker-under-strong,
strong.marker-under {
  background: linear-gradient(transparent 50%, #ffb366 50%);
  padding: 0 3px;
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* 青系補色マーカー（特に強調したい場合） */
.marker-under-blue {
  background: linear-gradient(transparent 60%, #a5d8ff 60%);
  padding: 0 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ピンク系マーカー（アクセント用） */
.marker-under-pink {
  background: linear-gradient(transparent 60%, #ffc9c9 60%);
  padding: 0 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ダークモード対応 */
body.dark-mode .marker-under,
body.dark-mode span.marker-under,
body.dark-mode strong .marker-under,
body.dark-mode .marker-under strong {
  background: linear-gradient(transparent 60%, rgba(255,179,102,0.4) 60%);
}

body.dark-mode .marker-under-strong,
body.dark-mode strong.marker-under {
  background: linear-gradient(transparent 50%, rgba(255,179,102,0.5) 50%);
}

/* ============================================
   評価星の表示
   ============================================ */
.rating-star {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-size: 16px;
}

.rating-number {
  margin-left: 6px;
  font-weight: 700;
  color: #333;
  font-size: 18px;
}

body.dark-mode .rating-number {
  color: #eee;
}

/* ============================================
   サイドバー目次 - プレミアムデザイン
   現在読んでいる箇所をハイライト表示
   ============================================ */

/* 目次ウィジェットの親コンテナをリセット（二重装飾防止） */
.sidebar .widget:has(#toc-2),
#sidebar .widget:has(#toc-2),
.widget_toc,
.sidebar-scroll .widget:has(#toc-2) {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.sidebar .widget:has(#toc-2)::before,
#sidebar .widget:has(#toc-2)::before,
.widget_toc::before {
  display: none !important;
}


/* 目次ウィジェット全体のスタイル */
#toc-2,
.sidebar #toc-2,
#sidebar #toc-2,
.sidebar-scroll #toc-2 {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%) !important;
  border-radius: 16px !important;
  box-shadow: 
    0 4px 24px rgba(245, 158, 11, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(245, 158, 11, 0.15) !important;
  overflow: hidden !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* 装飾的な背景パターン */
#toc-2::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Cocoon標準の目次タイトルを非表示 */
#toc-2 > .toc-checkbox,
#toc-2 > label.toc-title,
#toc-2 > .toc-title {
  display: none !important;
}


/* 目次リストコンテナ */
#toc-2 .toc-content,
.sidebar #toc-2 .toc-content,
#sidebar #toc-2 .toc-content {
  padding: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%) !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* .toc-contentがない場合の対応 */
#toc-2 > ul,
#toc-2 > ol,
.sidebar #toc-2 > ul,
.sidebar #toc-2 > ol {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%) !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* 目次リスト全体 */
#toc-2 ul,
#toc-2 ol,
.sidebar #toc-2 ul,
.sidebar #toc-2 ol {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* 目次内のすべての要素の下部余白をリセット */
#toc-2 *:last-child {
  margin-bottom: 0 !important;
}

#toc-2 .toc-content > ul,
#toc-2 .toc-content > ol {
  padding-bottom: 12px !important;
}

/* 各目次項目 */
#toc-2 li {
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 最後の目次項目の余白調整 */
#toc-2 li:last-child,
#toc-2 ul li:last-child,
#toc-2 ol li:last-child,
#toc-2 .toc-content li:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#toc-2 li:last-child > a,
#toc-2 ul > li:last-child > a,
#toc-2 ol > li:last-child > a {
  padding-bottom: 14px !important;
}

/* 目次リンク */
#toc-2 li a {
  display: block;
  padding: 10px 18px 10px 24px;
  color: #4a5568;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

/* リンク左側のドット装飾 */
#toc-2 li a::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #cbd5e0;
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* ホバー時のスタイル */
#toc-2 li a:hover {
  background: rgba(245, 158, 11, 0.06);
  color: #d97706;
  border-left-color: rgba(245, 158, 11, 0.3);
}

#toc-2 li a:hover::before {
  background: #f59e0b;
  transform: translateY(-50%) scale(1.2);
}

/* ============================================
   現在読んでいる箇所のハイライト（メイン機能）
   ============================================ */
#toc-2 li.current {
  background: linear-gradient(90deg, 
    rgba(245, 158, 11, 0.12) 0%, 
    rgba(245, 158, 11, 0.06) 60%,
    transparent 100%
  );
}

#toc-2 li.current > a {
  color: #b45309;
  font-weight: 600;
  border-left-color: #f59e0b;
  padding-left: 26px;
}

/* 現在位置のドット装飾 - オレンジグロー */
#toc-2 li.current > a::before {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 
    0 0 0 3px rgba(245, 158, 11, 0.2),
    0 0 12px rgba(245, 158, 11, 0.4);
  animation: tocPulse 2s ease-in-out infinite;
}

@keyframes tocPulse {
  0%, 100% { 
    box-shadow: 
      0 0 0 3px rgba(245, 158, 11, 0.2),
      0 0 12px rgba(245, 158, 11, 0.4);
  }
  50% { 
    box-shadow: 
      0 0 0 5px rgba(245, 158, 11, 0.15),
      0 0 20px rgba(245, 158, 11, 0.5);
  }
}

/* 現在位置のサイドバー（左端のライン） */
#toc-2 li.current::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  border-radius: 0 4px 4px 0;
}

/* ============================================
   サブ階層（H3以降）のスタイル
   ============================================ */
#toc-2 li li a {
  padding-left: 36px;
  font-size: 12px;
  color: #718096;
}

#toc-2 li li a::before {
  left: 24px;
  width: 4px;
  height: 4px;
}

#toc-2 li li.current > a {
  color: #b45309;
  font-weight: 600;
}

#toc-2 li li.current > a::before {
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 
    0 0 0 2px rgba(245, 158, 11, 0.2),
    0 0 8px rgba(245, 158, 11, 0.3);
}

/* H4以降のさらに深い階層 */
#toc-2 li li li a {
  padding-left: 48px;
  font-size: 11px;
}

#toc-2 li li li a::before {
  left: 36px;
}

/* ============================================
   目次下部のプログレスバー
   記事の読了進捗をビジュアル表示
   ============================================ */
#toc-2 .toc-progress {
  height: 4px !important;
  background: #f3f4f6 !important;
  border-radius: 0 0 16px 16px !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

#toc-2 .toc-progress-bar {
  height: 100% !important;
  background: linear-gradient(90deg, #f59e0b, #fbbf24) !important;
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 0 2px 2px 0;
}

/* ============================================
   スクロールバーのカスタマイズ（目次内）
   ============================================ */
#toc-2 .toc-content::-webkit-scrollbar {
  width: 4px;
}

#toc-2 .toc-content::-webkit-scrollbar-track {
  background: transparent;
}

#toc-2 .toc-content::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.3);
  border-radius: 4px;
}

#toc-2 .toc-content::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.5);
}

/* ============================================
   ダークモード対応
   ============================================ */
body.dark-mode #toc-2 {
  background: linear-gradient(180deg, #1d1f22 0%, #252830 100%);
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-mode #toc-2 .toc-content,
body.dark-mode #toc-2 > ul,
body.dark-mode #toc-2 > ol {
  background: linear-gradient(180deg, #1d1f22 0%, #252830 100%);
}

body.dark-mode #toc-2::before {
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
}

body.dark-mode #toc-2::after {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

body.dark-mode #toc-2 .toc-title {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

body.dark-mode #toc-2 li a {
  color: #a0aec0;
}

body.dark-mode #toc-2 li a::before {
  background: #4a5568;
}

body.dark-mode #toc-2 li a:hover {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
}

body.dark-mode #toc-2 li a:hover::before {
  background: #f59e0b;
}

body.dark-mode #toc-2 li.current {
  background: linear-gradient(90deg, 
    rgba(245, 158, 11, 0.15) 0%, 
    rgba(245, 158, 11, 0.08) 60%,
    transparent 100%
  );
}

body.dark-mode #toc-2 li.current > a {
  color: #fbbf24;
}

body.dark-mode #toc-2 li li a {
  color: #718096;
}

body.dark-mode #toc-2 li li.current > a {
  color: #fbbf24;
}

body.dark-mode #toc-2 .toc-progress {
  background: #2d3748;
}

/* ============================================
   レスポンシブ対応
   ============================================ */
@media screen and (max-width: 1023px) {
  /* タブレット以下ではサイドバー目次が非表示になるため、
     スタイルは適用されません（Cocoonの仕様） */
}

/* ============================================
   サイドバーウィジェット共通 - プレミアムデザイン
   検索・人気記事・カテゴリー等を統一
   ============================================ */

/* ウィジェット共通スタイル */
.sidebar .widget,
#sidebar .widget {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);
  border-radius: 16px;
  box-shadow: 
    0 4px 24px rgba(245, 158, 11, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.15);
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
}

/* 装飾的な背景パターン */
.sidebar .widget::before,
#sidebar .widget::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ウィジェットタイトル共通 */
.sidebar .widget-title,
.sidebar .widget_title,
#sidebar .widget-title,
#sidebar .widget_title,
.sidebar-title,
.widget_search .widget-title,
.widget_categories .widget-title,
.widget_recent_entries .widget-title,
.popular-entry-card-widget .widget-title {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 18px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
  border-bottom: none;
  position: relative;
  border-radius: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* ============================================
   検索ウィジェット
   ============================================ */
.widget_search {
  overflow: visible;
}

.widget_search .search-box,
.widget_search form {
  padding: 0px 18px 0;
  z-index: 1;
}

.widget_search form {
  margin-bottom: 0 !important;
}

/* 入力エリアラッパー: 虫眼鏡ボタンの位置指定コンテキスト */
.widget_search .search-input-wrap {
  position: relative;
}

.widget_search input[type="text"],
.widget_search input[type="search"],
.widget_search .search-edit {
  width: 100%;
  padding: 12px 44px 12px 16px;
  border: 2px solid #f3f4f6;
  border-radius: 12px;
  font-size: 14px;
  background: #fff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.widget_search input[type="text"]:focus,
.widget_search input[type="search"]:focus,
.widget_search .search-edit:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.widget_search input[type="text"]::placeholder,
.widget_search input[type="search"]::placeholder,
.widget_search .search-edit::placeholder {
  color: #a0aec0;
}

.widget_search .search-submit,
.widget_search button[type="submit"]:not(.search-filter-btn) {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #f59e0b;
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
}

.widget_search .search-submit:hover,
.widget_search button[type="submit"]:not(.search-filter-btn):hover {
  color: #d97706;
  transform: translateY(-50%) scale(1.1);
}

/* 検索例ヒントテキスト */
.widget_search .search-hints {
  padding: 4px 18px 14px 22px !important;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.widget_search .search-hints i {
  position: relative;
  top: -1.5px;
}

.search-hints__label {
  font-weight: 600;
  color: #9ca3af;
}

body.dark-mode .widget_search .search-hints {
  color: #6b7280;
}

body.dark-mode .search-hints__label {
  color: #6b7280;
}

/* ============================================
   検索フォーム: タグ絞り込みチェックボックス
   ============================================ */
.widget_search .search-tag-filter {
  padding: 0 18px 14px;
  position: relative;
  z-index: 1;
}

.widget_search .search-tag-filter__title {
  margin: 0;
  padding: 12px 0 6px;
  border-top: 1px solid #e5e7eb;
  font-size: 10.5px;
  font-weight: 500;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.03em;
}

.widget_search .search-tag-filter__title i {
  font-size: 9.5px;
}

/* AND/ORモード切り替え: ピル型セグメントコントロール */
.widget_search .search-tag-filter__mode {
  display: flex;
  gap: 0;
  margin: 6px 0 10px;
  background: #f3f4f6;
  border-radius: 6px;
  padding: 3px;
}

.widget_search .search-tag-filter__mode label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 5px 0;
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-align: center;
}

.widget_search .search-tag-filter__mode input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.widget_search .search-tag-filter__mode label:has(input:checked) {
  background: #f59e0b;
  color: #fff;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3);
}

.widget_search .search-tag-filter__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* 検索実行ボタン */
.widget_search .search-tag-filter__submit {
  padding-top: 10px;
}

.widget_search .search-filter-btn {
  width: 100%;
  padding: 10px 0;
  background: #f59e0b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  position: static;
}

.widget_search .search-filter-btn:hover {
  background: #d97706;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.widget_search .search-filter-btn i {
  font-size: 12px;
}

.widget_search .search-tag-filter__item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  color: #4a5568;
  line-height: 1.3;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 34px;
}

.widget_search .search-tag-filter__item:hover {
  background: #fff5eb;
  border-color: #f59e0b;
}

.widget_search .search-tag-filter__item input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border: 2px solid #d1d5db;
  border-radius: 3px;
  background: #fff;
  position: relative;
  transition: all 0.2s ease;
}

/* チェック済み: ソリッドオレンジ + 白チェックマーク */
.widget_search .search-tag-filter__item input[type="checkbox"]:checked {
  background: #f59e0b;
  border-color: #f59e0b;
}

.widget_search .search-tag-filter__item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ラベル全体がオレンジ時: チェックボックス枠を白に */
.widget_search .search-tag-filter__item:has(input:checked) input[type="checkbox"] {
  border-color: rgba(255, 255, 255, 0.7);
}

.widget_search .search-tag-filter__name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* チェック時のハイライト */
.widget_search .search-tag-filter__item:has(input:checked) {
  background: #f59e0b;
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.widget_search .search-tag-filter__item:has(input:checked):hover {
  background: #d97706;
}

/* ダークモード */
body.dark-mode .widget_search .search-tag-filter__title {
  border-top-color: #4a5568;
  color: #6b7280;
}

body.dark-mode .widget_search .search-tag-filter__mode {
  background: #374151;
}

body.dark-mode .widget_search .search-tag-filter__mode label {
  color: #9ca3af;
}

body.dark-mode .widget_search .search-tag-filter__mode label:has(input:checked) {
  background: #b45309;
  color: #fff;
}

body.dark-mode .widget_search .search-tag-filter__item {
  background: #2d3748;
  border-color: #4a5568;
  color: #a0aec0;
}

body.dark-mode .widget_search .search-tag-filter__item input[type="checkbox"] {
  background: #374151;
  border-color: #4a5568;
}

body.dark-mode .widget_search .search-tag-filter__item input[type="checkbox"]:checked {
  background: #b45309;
  border-color: #b45309;
}

body.dark-mode .widget_search .search-tag-filter__item:hover {
  background: #374151;
  border-color: #f59e0b;
}

body.dark-mode .widget_search .search-tag-filter__item:has(input:checked) {
  background: #b45309;
  color: #fff;
}

body.dark-mode .widget_search .search-tag-filter__item:has(input:checked):hover {
  background: #92400e;
}

body.dark-mode .widget_search .search-filter-btn {
  background: #b45309;
}

body.dark-mode .widget_search .search-filter-btn:hover {
  background: #92400e;
}

/* レスポンシブ: 360px以下で1列化 */
@media screen and (max-width: 360px) {
  .widget_search .search-tag-filter__grid {
    grid-template-columns: 1fr;
  }
}

/* スライドインサイドバー用調整 */
.sidebar-menu-content .widget_search .search-tag-filter {
  padding: 0 12px 12px;
}

.sidebar-menu-content .widget_search .search-tag-filter__grid {
  gap: 5px;
}

.sidebar-menu-content .widget_search .search-tag-filter__item {
  padding: 6px 7px;
  min-height: 30px;
  font-size: 10.5px;
}

.sidebar-menu-content .widget_search .search-tag-filter__mode {
  padding: 2px;
}

.sidebar-menu-content .widget_search .search-tag-filter__mode label {
  font-size: 10px;
}

.sidebar-menu-content .widget_search .search-filter-btn {
  padding: 8px 0;
  font-size: 12px;
}

/* スライドインサイドバーの検索ウィジェットをモバイルで非表示
   （フッターバー検索ポップアップに一本化） */
@media screen and (max-width: 768px) {
  .sidebar-menu-content .widget_search {
    display: none !important;
  }
}

/* ============================================
   検索結果ページ: 全体デザイン
   ============================================ */

/* --- Cocoonデフォルトの検索結果ヘッダー + 検索フォームを非表示 ---
   独自のインライン検索フォーム + サマリーで代替するため */
body.search .archive-title {
  display: none;
}

body.search .content > .search-form,
body.search .content > .search-box:not(.search-result-inline-form),
body.search .main > .search-form,
body.search .main > .search-box:not(.search-result-inline-form),
body.search #content > .search-form,
body.search #content > .search-box:not(.search-result-inline-form),
body.search #main > .search-form,
body.search #main > .search-box:not(.search-result-inline-form) {
  display: none;
}

/* --- 検索結果ページ: インライン検索フォーム --- */
.search-result-inline-form {
  margin: 0 0 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: visible;
}

.search-result-inline-form__title {
  padding: 14px 16px 0;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-result-inline-form__title .fas {
  color: #f59e0b;
  font-size: 14px;
}

.search-result-inline-form .search-box,
.search-result-inline-form form {
  padding: 16px 16px 0;
}

.search-result-inline-form .search-hints {
  padding: 4px 16px 10px 20px !important;
}

.search-result-inline-form .search-tag-filter {
  padding: 0 16px 16px;
}

/* 検索結果ページ下部の再検索フォーム（ページネーション後に配置） */
.search-result-inline-form--bottom {
  margin: 24px 0 0;
}

/* --- 検索結果サマリー（チップ + 件数） --- */
.search-result-summary {
  margin: 0 0 20px;
  padding: 0;
}

.search-result-summary__conditions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.search-result-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.search-result-chip--keyword {
  background: #fff7ed;
  color: #92400e;
  border: 1px solid #fed7aa;
}

.search-result-chip--tag {
  background: #fffbeb;
  color: #78350f;
  border: 1px solid #fde68a;
}

.search-result-chip--mode {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  font-size: 11px;
}

.search-result-chip i {
  font-size: 10px;
  opacity: 0.7;
}

.search-result-summary__count {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

.search-result-summary__total {
  font-weight: 700;
  color: #d97706;
  font-size: 15px;
}

.search-result-summary__range {
  font-weight: 600;
  color: #4b5563;
}

.search-result-summary__empty {
  color: #9ca3af;
}

.search-result-summary__hint {
  margin: 4px 0 0;
  padding: 0;
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.4;
}

/* --- 記事カード --- */
:is(body.search, body.home, body.category, body.tag) .entry-card-wrap {
  display: block;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: all 0.25s ease;
  background: #fff;
}

:is(body.search, body.home, body.category, body.tag) .entry-card-wrap:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12);
  transform: translateY(-2px);
}

:is(body.search, body.home, body.category, body.tag) .entry-card {
  border: none;
  box-shadow: none;
  margin: 0;
  border-radius: 0;
}

:is(body.search, body.home, body.category, body.tag) .entry-card-thumb {
  overflow: hidden;
}

:is(body.search, body.home, body.category, body.tag) .entry-card-thumb img {
  transition: transform 0.3s ease;
}

:is(body.search, body.home, body.category, body.tag) .entry-card-wrap:hover .entry-card-thumb img {
  transform: scale(1.03);
}

:is(body.search, body.home, body.category, body.tag) .entry-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.5;
  margin-bottom: 6px;
}

:is(body.search, body.home, body.category, body.tag) .entry-card-snippet {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.7;
}

:is(body.search, body.home, body.category, body.tag) .cat-label {
  background: #f59e0b;
  color: #fff;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
}

/* --- ページネーション --- */
:is(body.search, body.home, body.category, body.tag) .pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

:is(body.search, body.home, body.category, body.tag) .pagination .page-numbers {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  text-decoration: none;
}

:is(body.search, body.home, body.category, body.tag) .pagination .page-numbers:hover {
  background: #fff7ed;
  border-color: #f59e0b;
  color: #d97706;
}

:is(body.search, body.home, body.category, body.tag) .pagination .page-numbers.current {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
  font-weight: 700;
}

/* --- 検索結果なし --- */
body.search .not-found {
  text-align: center;
  padding: 48px 20px;
}

body.search .not-found .entry-title {
  font-size: 18px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 12px;
}

body.search .not-found .entry-content p {
  color: #9ca3af;
  font-size: 14px;
}

/* --- 検索結果ページ: レスポンシブ --- */
@media screen and (max-width: 768px) {
  .search-result-inline-form {
    margin: 0 0 16px;
    border-radius: 10px;
  }

  .search-result-inline-form .search-box,
  .search-result-inline-form form {
    padding: 12px 12px 0;
  }

  .search-result-inline-form .search-tag-filter {
    padding: 0 12px 12px;
  }

  .search-result-summary__conditions {
    gap: 6px;
  }

  .search-result-chip {
    padding: 4px 10px;
    font-size: 11px;
  }

  .search-result-summary__count {
    font-size: 12px;
  }

  .search-result-summary__total {
    font-size: 14px;
  }
}

/* --- 検索結果インラインフォーム: ダークモード --- */
body.dark-mode .search-result-inline-form {
  background: #1f2937;
  border-color: #374151;
}

body.dark-mode .search-result-inline-form__title {
  color: #e5e7eb;
}

/* --- 検索結果サマリー: ダークモード --- */
body.dark-mode .search-result-chip--keyword {
  background: #292017;
  color: #fbbf24;
  border-color: #92400e;
}

body.dark-mode .search-result-chip--tag {
  background: #292017;
  color: #fbbf24;
  border-color: #78350f;
}

body.dark-mode .search-result-chip--mode {
  background: #374151;
  color: #9ca3af;
  border-color: #4b5563;
}

body.dark-mode .search-result-summary__count {
  color: #9ca3af;
}

body.dark-mode .search-result-summary__total {
  color: #f59e0b;
}

body.dark-mode .search-result-summary__range {
  color: #d1d5db;
}

body.dark-mode .search-result-summary__empty {
  color: #6b7280;
}

body.dark-mode .search-result-summary__hint {
  color: #6b7280;
}

body.dark-mode:is(.search, .home, .category, .tag) .entry-card-wrap {
  background: #1f2937;
  border-color: #374151;
}

body.dark-mode:is(.search, .home, .category, .tag) .entry-card-wrap:hover {
  border-color: #b45309;
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.15);
}

body.dark-mode:is(.search, .home, .category, .tag) .entry-card {
  background: transparent;
}

body.dark-mode:is(.search, .home, .category, .tag) .entry-card-title {
  color: #e5e7eb;
}

body.dark-mode:is(.search, .home, .category, .tag) .entry-card-snippet {
  color: #9ca3af;
}

body.dark-mode:is(.search, .home, .category, .tag) .cat-label {
  background: #b45309;
}

body.dark-mode:is(.search, .home, .category, .tag) .pagination .page-numbers {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

body.dark-mode:is(.search, .home, .category, .tag) .pagination .page-numbers:hover {
  background: #292017;
  border-color: #b45309;
  color: #f59e0b;
}

body.dark-mode:is(.search, .home, .category, .tag) .pagination .page-numbers.current {
  background: #b45309;
  color: #fff;
  border-color: #b45309;
}

body.dark-mode.search .not-found .entry-title {
  color: #9ca3af;
}

body.dark-mode.search .not-found .entry-content p {
  color: #6b7280;
}

/* ============================================
   人気記事ウィジェット
   ============================================ */
.popular-entry-card-widget .widget-body,
.widget_recent_entries .widget-body {
  padding: 12px 0;
  position: relative;
  z-index: 1;
}

/* 人気記事がない場合のメッセージ */
.popular-entry-card-widget .no-post-message,
.widget_recent_entries .no-post-message {
  padding: 20px 18px;
  color: #718096;
  font-size: 14px;
  text-align: center;
}

/* 人気記事リスト */
.popular-entry-card-widget .popular-entry-cards,
.widget_recent_entries ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 各記事カード */
.popular-entry-card-widget .popular-entry-card,
.widget_recent_entries li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.popular-entry-card-widget .popular-entry-card:last-child,
.widget_recent_entries li:last-child {
  border-bottom: none;
}

.popular-entry-card-widget .popular-entry-card:hover,
.widget_recent_entries li:hover {
  background: rgba(245, 158, 11, 0.04);
}

/* サムネイル */
.popular-entry-card-widget .popular-entry-card-thumb,
.widget_recent_entries .post-thumbnail {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.popular-entry-card-widget .popular-entry-card-thumb img,
.widget_recent_entries .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.popular-entry-card-widget .popular-entry-card:hover .popular-entry-card-thumb img,
.widget_recent_entries li:hover .post-thumbnail img {
  transform: scale(1.05);
}

/* 記事タイトル */
.popular-entry-card-widget .popular-entry-card-content {
  flex: 1;
  min-width: 0;
}

.popular-entry-card-widget .popular-entry-card-title,
.widget_recent_entries a {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.3s ease;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.popular-entry-card-widget .popular-entry-card-title:hover,
.widget_recent_entries a:hover {
  color: #d97706;
}

/* ランキング番号 */
.popular-entry-card-widget .popular-entry-card .ranking-number {
  position: absolute;
  top: 8px;
  left: 14px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
  z-index: 2;
}

/* 1位は特別デザイン */
.popular-entry-card-widget .popular-entry-card:first-child .ranking-number {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

/* ============================================
   カテゴリーウィジェット（6階層対応）
   階層構造:
   1. エリア/ブランド（ルート）
   2. 関東/zen place pilates（地方/ブランド名）
   3. 東京都（都道府県）
   4. 東京23区/多摩地域（エリア区分）
   5. 品川区/中央区（区）
   6. 目黒/銀座二丁目（駅名/地名）
   ============================================ */
.widget_categories .widget-body,
.widget_categories > ul {
  padding: 6px 0 12px;
  margin: 0;
  position: relative;
  z-index: 1;
}

.widget_categories ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget_categories li {
  margin: 0;
  position: relative;
}

/* 全階層の共通リンクスタイル */
.widget_categories li a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px 9px 16px;
  color: #4a5568;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  border-left: 3px solid transparent !important;
  position: relative;
  transition: background 0.04s ease, color 0.04s ease;
}

/* フレックス子要素の順序を明示的に指定（親テーマとの競合防止） */
.widget_categories li a .list-item-caption {
  order: 0;
}

.widget_categories li a .cat-nav-icon {
  order: 1 !important;
}

.widget_categories li a .post-count,
.widget_categories li a .count {
  order: 2 !important;
}

/* 全階層の共通ホバー */
.widget_categories li a:hover {
  background: #fbbf24 !important;
  color: #78350f;
}

/* ============================================
   第1階層（ルート: エリア、ブランド）
   ラベル風デザイン
   ============================================ */
.widget_categories > ul > li > a,
.widget_categories .widget-body > ul > li > a {
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  background: linear-gradient(135deg, #fffbf5 0%, #fff4e6 100%);
  border-left: 3px solid #fbbf24 !important;
  margin-bottom: 1px;
}

.widget_categories > ul > li > a:hover,
.widget_categories .widget-body > ul > li > a:hover {
  background: #fbbf24 !important;
  color: #78350f;
}

/* 第1階層はドットなし */
.widget_categories > ul > li > a::before,
.widget_categories .widget-body > ul > li > a::before {
  display: none;
}

/* L1アイコン - ブランド (fa-store) */
.widget_categories li.cat-group-brand > a .list-item-caption::before {
  content: "\f54e";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 6px;
  font-size: 12px;
  color: #14b8a6;
}

/* L1アイコン - エリア (fa-map-marker-alt) */
.widget_categories li.cat-group-area > a .list-item-caption::before {
  content: "\f3c5";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 6px;
  font-size: 12px;
  color: #d97706;
}

/* L1アイコン - 路線 (fa-train) */
.widget_categories li.cat-group-route > a .list-item-caption::before {
  content: "\f238";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 6px;
  font-size: 12px;
  color: #6366f1;
}

/* ============================================
   第2階層（地方/ブランド名: 関東、zen place pilates）
   ============================================ */
.widget_categories li li a {
  padding: 8px 14px 8px 24px;
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
}

.widget_categories li li a::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: #f59e0b;
  border-radius: 1px;
  transition: transform 0.04s ease;
}

.widget_categories li li a:hover::before {
  background: #d97706;
  transform: translateY(-50%) scale(1.2);
  border-radius: 50%;
}

/* ============================================
   第3階層（都道府県: 東京都、神奈川県）
   ============================================ */
.widget_categories li li li a {
  padding: 7px 14px 7px 36px;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
}

.widget_categories li li li a::before {
  left: 24px;
  width: 4px;
  height: 4px;
  background: #d97706;
  border-radius: 50%;
}

.widget_categories li li li a:hover::before {
  background: #f59e0b;
}

/* ============================================
   第4階層（エリア区分: 東京23区、多摩地域）
   ============================================ */
.widget_categories li li li li a {
  padding: 6px 14px 6px 48px;
  font-size: 11.5px;
  font-weight: 500;
  color: #6b7280;
}

.widget_categories li li li li a::before {
  left: 36px;
  width: 4px;
  height: 4px;
  background: #9ca3af;
  border-radius: 50%;
}

.widget_categories li li li li a:hover {
  color: #d97706;
}

.widget_categories li li li li a:hover::before {
  background: #f59e0b;
}

/* ============================================
   第5階層（区: 品川区、中央区、港区）
   ============================================ */
.widget_categories li li li li li a {
  padding: 5px 14px 5px 60px;
  font-size: 11px;
  font-weight: 400;
  color: #9ca3af;
}

.widget_categories li li li li li a::before {
  left: 48px;
  width: 3px;
  height: 3px;
  background: #d1d5db;
  border-radius: 50%;
}

.widget_categories li li li li li a:hover {
  color: #d97706;
}

.widget_categories li li li li li a:hover::before {
  background: #f59e0b;
}

/* ============================================
   第6階層（最下層：駅名/地名 - 実際の記事があるエリア）
   ★ クリックしやすく目立たせるデザイン
   ============================================ */
.widget_categories li li li li li li a {
  padding: 6px 14px 6px 72px;
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
}

.widget_categories li li li li li li a::before {
  left: 60px;
  width: 6px;
  height: 6px;
  background: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.widget_categories li li li li li li a:hover {
  color: #78350f;
  background: #fbbf24 !important;
}

.widget_categories li li li li li li a:hover::before {
  background: #d97706;
  transform: translateY(-50%) scale(1.2);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.7);
}

/* ============================================
   リーフカテゴリ（最末端：子カテゴリなし）
   L5でもL6でも末端なら強調表示
   ※ ブランド系(cat-in-brand)は除外（独自ティール配色を維持）
   ============================================ */
.widget_categories li.cat-leaf:not(.cat-in-brand):not(.cat-in-route) > a {
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
}

.widget_categories li.cat-leaf:not(.cat-in-brand):not(.cat-in-route) > a::before {
  width: 6px;
  height: 6px;
  background: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.widget_categories li.cat-leaf:not(.cat-in-brand):not(.cat-in-route) > a:hover {
  color: #78350f;
  background: #fbbf24 !important;
}

.widget_categories li.cat-leaf:not(.cat-in-brand):not(.cat-in-route) > a:hover::before {
  background: #d97706;
  transform: translateY(-50%) scale(1.2);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.7);
}

/* ============================================
   現在のカテゴリをハイライト（今ここ表示）
   WordPressが自動付与: .current-cat, .current-cat-parent
   ============================================ */

/* 現在のカテゴリ（直接該当）- 最も濃いハイライト */
.widget_categories .current-cat > a {
  background: #e78b09 !important;
  color: #78350f !important;
  font-weight: 700 !important;
  position: relative;
  border-left: 3px solid #d97706 !important;
}

/* ハイライト済みカテゴリ: ソリッドカラー化によりtransition有効（ベースの0.04sが適用） */

/* 「今ここ」ラベル - 記事数バッジの左に配置 */
.widget_categories .current-cat > a::after {
  content: '👈 今ここ';
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(245, 158, 11, 0.3);
  z-index: 2;
}

/* 「今ここ」ラベル - アコーディオン付き（navIconあり）の場合は右にずらす */
.widget_categories .current-cat.cat-accordion-open > a::after,
.widget_categories .current-cat.cat-accordion-closed > a::after {
  right: 80px;
}

/* 現在のカテゴリのドット */
.widget_categories .current-cat > a::before {
  background: #d97706 !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6) !important;
}

/* 親カテゴリのハイライト（ソリッドカラー）
   上層ほど薄く、下層ほど濃く表示 */

/* 第2階層の親（エリア/ブランド直下） - 最も薄い */
.widget_categories > ul > li.current-cat-parent > a,
.widget_categories .widget-body > ul > li.current-cat-parent > a {
  font-weight: 600 !important;
  background: #fff7d9 !important;
  border-left: 3px solid #fef3c7 !important;
}

/* 第3階層の親 */
.widget_categories li li.current-cat-parent > a {
  font-weight: 600 !important;
  background: #feeda9 !important;
  border-left: 3px solid #fde68a !important;
}

/* 第4階層の親 */
.widget_categories li li li.current-cat-parent > a {
  font-weight: 700 !important;
  background: #fcdd6c !important;
  border-left: 3px solid #fcd34d !important;
}

/* 第5階層の親 */
.widget_categories li li li li.current-cat-parent > a {
  font-weight: 700 !important;
  background: #fcc939 !important;
  border-left: 3px solid #fbbf24 !important;
}

/* 第6階層の親（current-catの直接の親） - 最も濃い */
.widget_categories li li li li li.current-cat-parent > a {
  font-weight: 700 !important;
  background: #f8af18 !important;
  border-left: 3px solid #f59e0b !important;
}

/* エリア系 - current-cat-parent ホバー効果（ライトモード）
   全レベル統一: #fbbf24 */
.widget_categories > ul > li.current-cat-parent > a:hover,
.widget_categories .widget-body > ul > li.current-cat-parent > a:hover,
.widget_categories li li.current-cat-parent > a:hover,
.widget_categories li li li.current-cat-parent > a:hover,
.widget_categories li li li li.current-cat-parent > a:hover,
.widget_categories li li li li li.current-cat-parent > a:hover {
  background: #fbbf24 !important;
  color: #78350f !important;
}

/* ============================================
   ブランドカテゴリ専用カラー（ティール/シアン系）
   常に適用（エリア表示時も含む）
   ============================================ */

/* ブランド - 基本スタイル（ドット）- 詳細度を上げて常に適用 */
aside.widget_categories li.cat-group-brand > a::before,
aside.widget_categories li.cat-in-brand > a::before,
.sidebar .widget_categories li.cat-group-brand > a::before,
.sidebar .widget_categories li.cat-in-brand > a::before {
  background: #14b8a6 !important;
}

/* ブランド - 記事数バッジ - 詳細度を上げて常に適用 */
aside.widget_categories li.cat-group-brand > a .post-count,
aside.widget_categories li.cat-group-brand > a .count,
aside.widget_categories li.cat-in-brand > a .post-count,
aside.widget_categories li.cat-in-brand > a .count,
.sidebar .widget_categories li.cat-group-brand > a .post-count,
.sidebar .widget_categories li.cat-group-brand > a .count,
.sidebar .widget_categories li.cat-in-brand > a .post-count,
.sidebar .widget_categories li.cat-in-brand > a .count {
  background: linear-gradient(135deg, #14b8a6, #0d9488) !important;
}

/* ブランド - テキストカラー（通常時は黒/濃いグレー、エリアと同じ） */
aside.widget_categories li.cat-group-brand > a,
aside.widget_categories li.cat-in-brand > a,
.sidebar .widget_categories li.cat-group-brand > a,
.sidebar .widget_categories li.cat-in-brand > a,
aside.widget_categories li.cat-group-brand > a .list-item-caption,
aside.widget_categories li.cat-in-brand > a .list-item-caption,
.sidebar .widget_categories li.cat-group-brand > a .list-item-caption,
.sidebar .widget_categories li.cat-in-brand > a .list-item-caption {
  color: #333 !important;
}

/* ブランド - ホバー時にティール系（cat-group-brandのみ） */
aside.widget_categories li.cat-group-brand > a:hover,
.sidebar .widget_categories li.cat-group-brand > a:hover,
aside.widget_categories li.cat-group-brand > a:hover .list-item-caption,
.sidebar .widget_categories li.cat-group-brand > a:hover .list-item-caption {
  color: #0f766e !important;
}

/* ブランド - 現在のカテゴリ（今ここ）- 2階層用に調整 */
.widget_categories li.cat-in-brand.current-cat > a,
.widget_categories li.cat-group-brand.current-cat > a {
  background: #c4f7e4 !important;
  color: #0f766e !important;
  border-left: 3px solid #14b8a6 !important;
}

/* ブランド - 「今ここ」ラベル */
.widget_categories li.cat-in-brand.current-cat > a::after,
.widget_categories li.cat-group-brand.current-cat > a::after {
  background: linear-gradient(135deg, #14b8a6, #0d9488) !important;
}

/* ブランド - 現在のカテゴリのドット */
.widget_categories li.cat-in-brand.current-cat > a::before,
.widget_categories li.cat-group-brand.current-cat > a::before {
  background: #0d9488 !important;
  box-shadow: 0 0 8px rgba(20, 184, 166, 0.6) !important;
}

/* ブランド - 親カテゴリのハイライト（2階層構成用）
   ブランド → zen place pilates のみを想定 */

/* ブランドグループ自体（トップレベル親） */
.widget_categories li.cat-group-brand.current-cat-parent > a {
  font-weight: 600 !important;
  background: #def9f5 !important;
  border-left: 3px solid #5eead4 !important;
}

/* ブランド - current-cat-parent ホバー効果（ライトモード） */
.widget_categories li.cat-group-brand.current-cat-parent > a:hover {
  background: #2dd4bf !important;
  color: #0f766e !important;
}

.widget_categories li.cat-group-brand.current-cat-parent > a:hover .list-item-caption {
  color: #0f766e !important;
}

/* ブランド - テキストカラー（通常時は黒/濃いグレー） */
.widget_categories li.cat-in-brand > a,
.widget_categories li.cat-group-brand li > a,
.widget_categories li.cat-in-brand > a .list-item-caption,
.widget_categories li.cat-group-brand li > a .list-item-caption {
  color: #333 !important;
}

/* ブランド全体（zen place pilates含む）- ホバー時ティール背景＋テキスト色 */
.widget_categories li.cat-in-brand > a:hover {
  background: #2dd4bf !important;
}

.widget_categories li.cat-in-brand > a:hover,
.widget_categories li.cat-in-brand > a:hover .list-item-caption {
  color: #0f766e !important;
}


/* ============================================
   記事数バッジ（階層別スタイル）
   ============================================ */
.widget_categories li a .post-count,
.widget_categories li a .count {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(245, 158, 11, 0.25);
  flex-shrink: 0;
}

/* 第1階層のバッジ（大きめ・濃い色） */
.widget_categories > ul > li > a .post-count,
.widget_categories > ul > li > a .count,
.widget_categories .widget-body > ul > li > a .post-count,
.widget_categories .widget-body > ul > li > a .count {
  font-size: 10px;
  padding: 3px 8px;
  min-width: 22px;
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 2px 4px rgba(180, 83, 9, 0.3);
}

/* 第2階層のバッジ */
.widget_categories li li a .post-count,
.widget_categories li li a .count {
  font-size: 9px;
  padding: 2px 7px;
}

/* 第3階層以降のバッジ（小さめ・薄い色） */
.widget_categories li li li a .post-count,
.widget_categories li li li a .count {
  font-size: 9px;
  padding: 2px 6px;
  min-width: 16px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* 第4階層以降のバッジ（さらに小さく） */
.widget_categories li li li li a .post-count,
.widget_categories li li li li a .count,
.widget_categories li li li li li a .post-count,
.widget_categories li li li li li a .count,
.widget_categories li li li li li li a .post-count,
.widget_categories li li li li li li a .count {
  font-size: 8px;
  padding: 1px 5px;
  min-width: 14px;
  background: #fbbf24;
  box-shadow: none;
}

/* カテゴリーなしメッセージ */
.widget_categories .no-category-message {
  padding: 20px 18px;
  color: #718096;
  font-size: 14px;
  text-align: center;
}

/* ============================================
   タグクラウドウィジェット
   ============================================ */
.widget_tag_cloud .tagcloud,
.widget_tag_cloud .widget-body {
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.widget_tag_cloud .tagcloud a,
.widget_tag_cloud a {
  display: inline-block;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  color: #4a5568;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.widget_tag_cloud .tagcloud a:hover,
.widget_tag_cloud a:hover {
  background: #f59e0b;
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25);
}

/* ============================================
   カスタムタググリッドウィジェット（特徴から探す）
   2カラムグリッドで手動順序のタグを表示
   ============================================ */
.widget_pilates_tag_grid .tag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px 18px;
  position: relative;
  z-index: 1;
}

.widget_pilates_tag_grid .tag-grid__item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  color: #4a5568;
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
  line-height: 1.4;
  transition: all 0.25s ease;
  min-height: 40px;
}

.widget_pilates_tag_grid .tag-grid__item:hover {
  background: #f59e0b;
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25);
}

.widget_pilates_tag_grid .tag-grid__name {
  white-space: nowrap;
}

.widget_pilates_tag_grid .tag-grid__name::before {
  content: '\f02b';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 10px;
  margin-right: 5px;
  color: #d97706;
  opacity: 0.7;
}

.widget_pilates_tag_grid .tag-grid__item:hover .tag-grid__name::before {
  color: #fff;
  opacity: 1;
}

.widget_pilates_tag_grid .tag-grid__count {
  font-size: 10px;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 10px;
  line-height: 1.6;
  flex-shrink: 0;
}

.widget_pilates_tag_grid .tag-grid__item:hover .tag-grid__count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ダークモード */
body.dark-mode .widget_pilates_tag_grid .tag-grid__item {
  background: #2d3748;
  border-color: rgba(245, 158, 11, 0.25);
  color: #a0aec0;
}

body.dark-mode .widget_pilates_tag_grid .tag-grid__item:hover {
  background: #b45309;
  color: #fff;
}

body.dark-mode .widget_pilates_tag_grid .tag-grid__name::before {
  color: #f59e0b;
}

body.dark-mode .widget_pilates_tag_grid .tag-grid__count {
  background: #4a5568;
  color: #a0aec0;
}

body.dark-mode .widget_pilates_tag_grid .tag-grid__item:hover .tag-grid__count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* タググリッド：モバイル対応 */
@media screen and (max-width: 768px) {
  .widget_pilates_tag_grid .tag-grid__item {
    padding: 8px 8px;
  }

  .widget_pilates_tag_grid .tag-grid__count {
    font-size: 8px;
    padding: 1px 4px;
    min-width: 14px;
  }
}

/* タググリッド：極小幅で1列化 */
@media screen and (max-width: 360px) {
  .widget_pilates_tag_grid .tag-grid {
    grid-template-columns: 1fr;
  }
  .widget_pilates_tag_grid .tag-grid__item {
    padding: 8px 10px;
  }
}

/* タググリッド：スライドインサイドバー用調整（2カラム維持） */
.sidebar-menu-content .widget_pilates_tag_grid .tag-grid {
  padding: 14px 10px;
  gap: 6px;
}

.sidebar-menu-content .widget_pilates_tag_grid .tag-grid__item {
  padding: 6px 7px;
  min-height: 34px;
  font-size: 10.5px;
}

.sidebar-menu-content .widget_pilates_tag_grid .tag-grid__name {
  font-size: 10.5px;
}

.sidebar-menu-content .widget_pilates_tag_grid .tag-grid__name::before {
  font-size: 9px;
  margin-right: 4px;
}

.sidebar-menu-content .widget_pilates_tag_grid .tag-grid__count {
  font-size: 8px;
  padding: 1px 4px;
}

/* ============================================
   コンテンツナビウィジェット
   キャンペーン情報・比較記事など非スタジオカテゴリ
   ============================================ */
.widget_pilates_content_nav .content-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
}

.widget_pilates_content_nav .content-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  color: #4a5568;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
  transition: all 0.25s ease;
}

.widget_pilates_content_nav .content-nav-item:hover {
  background: #f59e0b;
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25);
}

.widget_pilates_content_nav .content-nav-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 6px;
  color: #d97706;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.widget_pilates_content_nav .content-nav-item:hover .content-nav-item__icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.widget_pilates_content_nav .content-nav-item__name {
  flex: 1;
  min-width: 0;
}

.widget_pilates_content_nav .content-nav-item__count {
  font-size: 10px;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 10px;
  line-height: 1.6;
  flex-shrink: 0;
}

.widget_pilates_content_nav .content-nav-item:hover .content-nav-item__count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* コンテンツナビ：ダークモード */
body.dark-mode .widget_pilates_content_nav .content-nav-item {
  background: #2d3748;
  border-color: rgba(245, 158, 11, 0.25);
  color: #a0aec0;
}

body.dark-mode .widget_pilates_content_nav .content-nav-item:hover {
  background: #b45309;
  color: #fff;
}

body.dark-mode .widget_pilates_content_nav .content-nav-item__icon {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

body.dark-mode .widget_pilates_content_nav .content-nav-item:hover .content-nav-item__icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

body.dark-mode .widget_pilates_content_nav .content-nav-item__count {
  background: #4a5568;
  color: #a0aec0;
}

body.dark-mode .widget_pilates_content_nav .content-nav-item:hover .content-nav-item__count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* コンテンツナビ：モバイル対応 */
@media screen and (max-width: 768px) {
  .widget_pilates_content_nav .content-nav-item {
    padding: 8px 10px;
    font-size: 12px;
  }

  .widget_pilates_content_nav .content-nav-item__icon {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
}

/* コンテンツナビ：スライドインサイドバー用 */
.sidebar-menu-content .widget_pilates_content_nav .content-nav-list {
  padding: 14px 10px;
  gap: 5px;
}

.sidebar-menu-content .widget_pilates_content_nav .content-nav-item {
  padding: 8px 10px;
  font-size: 12px;
  gap: 8px;
}

.sidebar-menu-content .widget_pilates_content_nav .content-nav-item__icon {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

.sidebar-menu-content .widget_pilates_content_nav .content-nav-item__count {
  font-size: 8px;
  padding: 1px 4px;
}

/* ============================================
   アーカイブウィジェット
   ============================================ */
.widget_archive .widget-body,
.widget_archive > ul {
  padding: 12px 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.widget_archive ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget_archive li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px 11px 26px;
  color: #4a5568;
  text-decoration: none;
  font-size: 13px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.widget_archive li a::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #cbd5e0;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.widget_archive li a:hover {
  background: rgba(245, 158, 11, 0.06);
  color: #d97706;
  border-left-color: rgba(245, 158, 11, 0.3);
}

.widget_archive li a:hover::before {
  background: #f59e0b;
}

/* ============================================
   ダークモード - サイドバーウィジェット
   ============================================ */
body.dark-mode .sidebar .widget,
body.dark-mode #sidebar .widget {
  background: linear-gradient(180deg, #1d1f22 0%, #252830 100%);
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-mode .sidebar .widget::before,
body.dark-mode #sidebar .widget::before {
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
}

body.dark-mode .sidebar .widget-title,
body.dark-mode #sidebar .widget-title {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* 検索ボックス - ダークモード */
body.dark-mode .widget_search input[type="text"],
body.dark-mode .widget_search input[type="search"],
body.dark-mode .widget_search .search-edit {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.dark-mode .widget_search input[type="text"]:focus,
body.dark-mode .widget_search input[type="search"]:focus,
body.dark-mode .widget_search .search-edit:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

body.dark-mode .widget_search input::placeholder {
  color: #718096;
}

/* 人気記事 - ダークモード */
body.dark-mode .popular-entry-card-widget .popular-entry-card,
body.dark-mode .widget_recent_entries li {
  border-bottom-color: rgba(245, 158, 11, 0.15);
}

body.dark-mode .popular-entry-card-widget .popular-entry-card:hover,
body.dark-mode .widget_recent_entries li:hover {
  background: rgba(245, 158, 11, 0.08);
}

body.dark-mode .popular-entry-card-widget .popular-entry-card-title,
body.dark-mode .widget_recent_entries a {
  color: #e2e8f0;
}

body.dark-mode .popular-entry-card-widget .popular-entry-card-title:hover,
body.dark-mode .widget_recent_entries a:hover {
  color: #fbbf24;
}

body.dark-mode .popular-entry-card-widget .no-post-message,
body.dark-mode .widget_recent_entries .no-post-message {
  color: #a0aec0;
}

/* カテゴリー - ダークモード（6階層対応） */

/* 全階層の基本ダークモードスタイル */
body.dark-mode .widget_categories li a {
  color: #a0aec0;
}

body.dark-mode .widget_categories li a:hover {
  background: #7c4a1a !important;
  color: #fde68a;
}

/* 第1階層（ルート）- ダークモード */
body.dark-mode .widget_categories > ul > li > a,
body.dark-mode .widget_categories .widget-body > ul > li > a {
  background: linear-gradient(135deg, #2a2416 0%, #332817 100%);
  border-left-color: #d97706 !important;
  color: #fbbf24;
}

body.dark-mode .widget_categories > ul > li > a:hover,
body.dark-mode .widget_categories .widget-body > ul > li > a:hover {
  background: #7c4a1a !important;
  color: #fde68a;
}

/* 第2階層 - ダークモード */
body.dark-mode .widget_categories li li a::before {
  background: #d97706;
}

body.dark-mode .widget_categories li li a:hover::before {
  background: #f59e0b;
}

/* 第3階層 - ダークモード */
body.dark-mode .widget_categories li li li a {
  color: #9ca3af;
}

body.dark-mode .widget_categories li li li a::before {
  background: #b45309;
}

/* 第4階層 - ダークモード */
body.dark-mode .widget_categories li li li li a {
  color: #6b7280;
}

body.dark-mode .widget_categories li li li li a::before {
  background: #78716c;
}

/* 第5階層 - ダークモード */
body.dark-mode .widget_categories li li li li li a {
  color: #57534e;
}

body.dark-mode .widget_categories li li li li li a::before {
  background: #57534e;
}

/* 第6階層（最下層）- ダークモード */
body.dark-mode .widget_categories li li li li li li a {
  color: #fbbf24;
}

body.dark-mode .widget_categories li li li li li li a::before {
  background: #f59e0b;
}

body.dark-mode .widget_categories li li li li li li a:hover {
  background: #7c4a1a !important;
  color: #fde68a;
}

/* リーフカテゴリ - ダークモード */
body.dark-mode .widget_categories li.cat-leaf:not(.cat-in-brand):not(.cat-in-route) > a {
  color: #fbbf24;
}

body.dark-mode .widget_categories li.cat-leaf:not(.cat-in-brand):not(.cat-in-route) > a::before {
  background: #f59e0b;
}

body.dark-mode .widget_categories li.cat-leaf:not(.cat-in-brand):not(.cat-in-route) > a:hover {
  background: #7c4a1a !important;
  color: #fde68a;
}

/* 現在のカテゴリ - ダークモード - 最も濃いハイライト */
body.dark-mode .widget_categories .current-cat > a {
  background: #c66508 !important;
  color: #fffbeb !important;
  border-left-color: #f59e0b !important;
}

body.dark-mode .widget_categories .current-cat > a::after {
  background: linear-gradient(135deg, #d97706, #b45309);
}

/* 親カテゴリ - ダークモード */
/* 親カテゴリのハイライト - ダークモード */
body.dark-mode .widget_categories > ul > li.current-cat-parent > a,
body.dark-mode .widget_categories .widget-body > ul > li.current-cat-parent > a {
  background: #2f1c0b !important;
  border-left-color: #78350f !important;
}

body.dark-mode .widget_categories li li.current-cat-parent > a {
  background: #432509 !important;
  border-left-color: #92400e !important;
}

body.dark-mode .widget_categories li li li.current-cat-parent > a {
  background: #5b2f0c !important;
  border-left-color: #b45309 !important;
}

body.dark-mode .widget_categories li li li li.current-cat-parent > a {
  background: #723b0b !important;
  border-left-color: #d97706 !important;
}

body.dark-mode .widget_categories li li li li li.current-cat-parent > a {
  background: #904b0a !important;
  border-left-color: #f59e0b !important;
}

/* エリア系 - current-cat-parent ホバー効果（ダークモード）全レベル統一 */
body.dark-mode .widget_categories > ul > li.current-cat-parent > a:hover,
body.dark-mode .widget_categories .widget-body > ul > li.current-cat-parent > a:hover,
body.dark-mode .widget_categories li li.current-cat-parent > a:hover,
body.dark-mode .widget_categories li li li.current-cat-parent > a:hover,
body.dark-mode .widget_categories li li li li.current-cat-parent > a:hover,
body.dark-mode .widget_categories li li li li li.current-cat-parent > a:hover {
  background: #7c4a1a !important;
  color: #fde68a !important;
}

/* ブランドカテゴリ - ダークモード（常に適用） */
/* ブランド - ダークモード テキストカラー（通常時はライトグレー） */
body.dark-mode aside.widget_categories li.cat-group-brand > a,
body.dark-mode aside.widget_categories li.cat-in-brand > a,
body.dark-mode .sidebar .widget_categories li.cat-group-brand > a,
body.dark-mode .sidebar .widget_categories li.cat-in-brand > a {
  color: #e5e7eb !important;
}

/* ブランド - ダークモード ホバー時にティール系（ブランド全体） */
body.dark-mode aside.widget_categories li.cat-group-brand > a:hover,
body.dark-mode aside.widget_categories li.cat-in-brand > a:hover,
body.dark-mode .sidebar .widget_categories li.cat-group-brand > a:hover,
body.dark-mode .sidebar .widget_categories li.cat-in-brand > a:hover {
  color: #5eead4 !important;
}

body.dark-mode aside.widget_categories li.cat-group-brand > a::before,
body.dark-mode aside.widget_categories li.cat-in-brand > a::before,
body.dark-mode .sidebar .widget_categories li.cat-group-brand > a::before,
body.dark-mode .sidebar .widget_categories li.cat-in-brand > a::before {
  background: #14b8a6 !important;
}

body.dark-mode aside.widget_categories li.cat-group-brand > a .post-count,
body.dark-mode aside.widget_categories li.cat-group-brand > a .count,
body.dark-mode aside.widget_categories li.cat-in-brand > a .post-count,
body.dark-mode aside.widget_categories li.cat-in-brand > a .count,
body.dark-mode .sidebar .widget_categories li.cat-group-brand > a .post-count,
body.dark-mode .sidebar .widget_categories li.cat-group-brand > a .count,
body.dark-mode .sidebar .widget_categories li.cat-in-brand > a .post-count,
body.dark-mode .sidebar .widget_categories li.cat-in-brand > a .count {
  background: linear-gradient(135deg, #14b8a6, #0d9488) !important;
}

body.dark-mode .widget_categories li.cat-in-brand.current-cat > a,
body.dark-mode .widget_categories li.cat-group-brand.current-cat > a {
  background: #107169 !important;
  color: #ccfbf1 !important;
  border-left-color: #14b8a6 !important;
}

body.dark-mode .widget_categories li.cat-in-brand.current-cat > a::after,
body.dark-mode .widget_categories li.cat-group-brand.current-cat > a::after {
  background: linear-gradient(135deg, #0d9488, #115e59) !important;
}

/* ブランド - 親カテゴリのハイライト（ダークモード・2階層用） */
body.dark-mode .widget_categories li.cat-group-brand.current-cat-parent > a {
  background: #0e433f !important;
  border-left-color: #0d9488 !important;
}

/* ブランド - current-cat-parent ホバー効果（ダークモード） */
body.dark-mode .widget_categories li.cat-group-brand.current-cat-parent > a:hover {
  background: #1e4d4a !important;
  color: #5eead4 !important;
}

body.dark-mode .widget_categories li.cat-group-brand > a:hover {
  background: #1e4d4a !important;
}

/* zen place pilates - ダークモード基本ホバー */
body.dark-mode .widget_categories li.cat-in-brand > a:hover {
  background: #1e4d4a !important;
}

/* 全階層ホバー時 - ダークモード */
body.dark-mode .widget_categories li li a:hover,
body.dark-mode .widget_categories li li li a:hover,
body.dark-mode .widget_categories li li li li a:hover,
body.dark-mode .widget_categories li li li li li a:hover,
body.dark-mode .widget_categories li li li li li li a:hover {
  color: #fde68a;
}

body.dark-mode .widget_categories li li a:hover::before,
body.dark-mode .widget_categories li li li a:hover::before,
body.dark-mode .widget_categories li li li li a:hover::before,
body.dark-mode .widget_categories li li li li li a:hover::before,
body.dark-mode .widget_categories li li li li li li a:hover::before {
  background: #f59e0b;
}

/* 記事数バッジ - ダークモード */
body.dark-mode .widget_categories > ul > li > a .post-count,
body.dark-mode .widget_categories > ul > li > a .count,
body.dark-mode .widget_categories .widget-body > ul > li > a .post-count,
body.dark-mode .widget_categories .widget-body > ul > li > a .count {
  background: linear-gradient(135deg, #b45309, #92400e);
}

body.dark-mode .widget_categories .no-category-message {
  color: #a0aec0;
}

/* タグクラウド - ダークモード */
body.dark-mode .widget_tag_cloud .tagcloud a,
body.dark-mode .widget_tag_cloud a {
  background: #2d3748;
  border-color: rgba(245, 158, 11, 0.3);
  color: #a0aec0;
}

body.dark-mode .widget_tag_cloud .tagcloud a:hover,
body.dark-mode .widget_tag_cloud a:hover {
  background: #b45309;
  color: #fff;
}

/* アーカイブ - ダークモード */
body.dark-mode .widget_archive li a {
  color: #a0aec0;
}

body.dark-mode .widget_archive li a::before {
  background: #4a5568;
}

body.dark-mode .widget_archive li a:hover {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
}

body.dark-mode .widget_archive li a:hover::before {
  background: #f59e0b;
}

/* ============================================
   アイキャッチ画像の枠線を非表示
   ============================================ */
.eye-catch img,
.eye-catch .wp-post-image,
.article .eye-catch img,
.entry-content .eye-catch img,
.wp-post-image {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* 記事一覧のサムネイルにも適用 */
.entry-card-thumb img,
.widget-entry-card-thumb img,
.related-entry-card-thumb img,
.popular-entry-card-thumb img,
.navi-entry-card-thumb img {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* figureやfigcaption要素のボーダーも除去 */
.eye-catch,
.eye-catch figure,
article .eye-catch {
  border: none !important;
  box-shadow: none !important;
}

/* ============================================
   PR表記 - 控えめで上品なデザイン
   Cocoon実際のクラス: .pr-label, .pr-label-l（大）, .pr-label-s（小）
   ============================================ */

/* PR表記ボックス（本文上部・大）- .pr-label-l */
.pr-label.pr-label-l,
.pr-label-l,
div.pr-label-l,
.article .pr-label-l,
.article-header .pr-label-l,
.entry-content .pr-label-l,
header .pr-label-l {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  padding: 14px 20px !important;
  margin: 0 0 24px 0 !important;
  position: relative !important;
  font-size: 12.5px !important;
  line-height: 1.8 !important;
  color: #64748b !important;
  text-align: center !important;
  box-shadow: none !important;
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
}

/* アイコンを非表示 */
.pr-label.pr-label-l::before,
.pr-label-l::before,
div.pr-label-l::before {
  content: none !important;
  display: none !important;
}

/* PR表記（小・左上）- .pr-label-s */
.pr-label.pr-label-s,
.pr-label-s,
span.pr-label-s,
div.pr-label-s,
.article-header .pr-label-s,
header .pr-label-s {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: linear-gradient(135deg, #64748b, #475569) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  letter-spacing: 0.3px !important;
  box-shadow: 0 1px 3px rgba(100, 116, 139, 0.2) !important;
  border: none !important;
}

/* 小ラベルにもアイコン追加 */
.pr-label-s::before,
span.pr-label-s::before {
  content: '\f05a' !important;
  font-family: 'Font Awesome 5 Free' !important;
  font-weight: 900 !important;
  font-size: 9px !important;
  opacity: 0.9 !important;
  margin-right: 4px !important;
}

/* ============================================
   スマホ対応
   ============================================ */
@media screen and (max-width: 768px) {
  .pr-label.pr-label-l,
  .pr-label-l {
    padding: 12px 16px !important;
    font-size: 11.5px !important;
    margin-bottom: 20px !important;
  }
}

/* ============================================
   ダークモード対応
   ============================================ */
body.dark-mode .pr-label.pr-label-l,
body.dark-mode .pr-label-l {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #64748b !important;
}

body.dark-mode .pr-label-s,
body.dark-mode span.pr-label-s {
  background: linear-gradient(135deg, #475569, #334155) !important;
}

/* ==================================================
   14. カテゴリ・タグのレスポンシブ表示切り替え
   PC: タイトル上＋コンテンツ下部に表示 / スマホ: コンテンツ下部のみに表示
   ================================================== */

/* スマホ時: タイトル上のカテゴリ・タグを非表示 */
@media screen and (max-width: 768px) {
  .entry-header .entry-categories,
  .entry-header .entry-tags,
  .entry-categories-tags.ctdt-two-rows,
  .cat-link-box,
  .article-header .cat-link,
  .article-header .tag-link {
    display: none !important;
  }
}

/* カテゴリ・タグ（コンテンツ下部） - PC・スマホ共通で表示 */
.mobile-categories-tags {
  display: block;
  margin: 2em 0;
  padding: 1.5em 0 0;
  border-top: 1px solid #e5e7eb;
}

.mobile-categories-tags .entry-categories,
.mobile-categories-tags .entry-tags {
  margin-bottom: 0.8em;
}

.mobile-categories-tags .entry-categories:last-child,
.mobile-categories-tags .entry-tags:last-child {
  margin-bottom: 0;
}

/* 記事内カテゴリ・タグリンク - 統一デザイン（上部・下部共通）
   上部: .entry-categories-tags > .entry-categories/.entry-tags > .cat-link/.tag-link
   下部: .mobile-categories-tags > .entry-categories/.entry-tags > .cat-link/.tag-link
   !important でCocoon親テーマの高詳細度セレクタを確実に上書き */
.mobile-categories-tags .entry-tags,
.mobile-categories-tags .entry-categories,
.entry-header .entry-tags,
.entry-header .entry-categories,
.entry-categories-tags .entry-tags,
.entry-categories-tags .entry-categories {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.mobile-categories-tags .tag-link,
.mobile-categories-tags .cat-link,
.entry-header .tag-link,
.entry-header .cat-link,
.article-header .tag-link,
.article-header .cat-link,
.entry-categories-tags .tag-link,
.entry-categories-tags .cat-link,
.cat-link-box .tag-link,
.cat-link-box .cat-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 6px 10px !important;
  background: #fff !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
  border-radius: 8px !important;
  color: #4a5568 !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  transition: all 0.25s ease !important;
}

.mobile-categories-tags .tag-link:hover,
.mobile-categories-tags .cat-link:hover,
.entry-header .tag-link:hover,
.entry-header .cat-link:hover,
.article-header .tag-link:hover,
.article-header .cat-link:hover,
.entry-categories-tags .tag-link:hover,
.entry-categories-tags .cat-link:hover,
.cat-link-box .tag-link:hover,
.cat-link-box .cat-link:hover {
  background: #f59e0b !important;
  border-color: transparent !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25) !important;
}

/* タグ・カテゴリアイコンをオレンジ系に統一 */
.mobile-categories-tags .tag-link .tag-icon,
.mobile-categories-tags .cat-link .cat-icon,
.entry-header .tag-link .tag-icon,
.entry-header .cat-link .cat-icon,
.article-header .tag-link .tag-icon,
.article-header .cat-link .cat-icon,
.entry-categories-tags .tag-link .tag-icon,
.entry-categories-tags .cat-link .cat-icon,
.cat-link-box .tag-link .tag-icon,
.cat-link-box .cat-link .cat-icon {
  color: #d97706 !important;
  font-size: 10px !important;
  opacity: 0.7 !important;
}

.mobile-categories-tags .tag-link:hover .tag-icon,
.mobile-categories-tags .cat-link:hover .cat-icon,
.entry-header .tag-link:hover .tag-icon,
.entry-header .cat-link:hover .cat-icon,
.article-header .tag-link:hover .tag-icon,
.article-header .cat-link:hover .cat-icon,
.entry-categories-tags .tag-link:hover .tag-icon,
.entry-categories-tags .cat-link:hover .cat-icon,
.cat-link-box .tag-link:hover .tag-icon,
.cat-link-box .cat-link:hover .cat-icon {
  color: #fff !important;
  opacity: 1 !important;
}

/* ダークモード */
body.dark-mode .mobile-categories-tags .tag-link,
body.dark-mode .mobile-categories-tags .cat-link,
body.dark-mode .entry-header .tag-link,
body.dark-mode .entry-header .cat-link,
body.dark-mode .article-header .tag-link,
body.dark-mode .article-header .cat-link,
body.dark-mode .entry-categories-tags .tag-link,
body.dark-mode .entry-categories-tags .cat-link,
body.dark-mode .cat-link-box .tag-link,
body.dark-mode .cat-link-box .cat-link {
  background: #2d3748 !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
  color: #a0aec0 !important;
}

body.dark-mode .mobile-categories-tags .tag-link:hover,
body.dark-mode .mobile-categories-tags .cat-link:hover,
body.dark-mode .entry-header .tag-link:hover,
body.dark-mode .entry-header .cat-link:hover,
body.dark-mode .article-header .tag-link:hover,
body.dark-mode .article-header .cat-link:hover,
body.dark-mode .entry-categories-tags .tag-link:hover,
body.dark-mode .entry-categories-tags .cat-link:hover,
body.dark-mode .cat-link-box .tag-link:hover,
body.dark-mode .cat-link-box .cat-link:hover {
  background: #b45309 !important;
  color: #fff !important;
}

body.dark-mode .mobile-categories-tags .tag-link .tag-icon,
body.dark-mode .mobile-categories-tags .cat-link .cat-icon,
body.dark-mode .entry-header .tag-link .tag-icon,
body.dark-mode .entry-header .cat-link .cat-icon,
body.dark-mode .article-header .tag-link .tag-icon,
body.dark-mode .article-header .cat-link .cat-icon,
body.dark-mode .entry-categories-tags .tag-link .tag-icon,
body.dark-mode .entry-categories-tags .cat-link .cat-icon,
body.dark-mode .cat-link-box .tag-link .tag-icon,
body.dark-mode .cat-link-box .cat-link .cat-icon {
  color: #f59e0b !important;
}

body.dark-mode .mobile-categories-tags {
  border-top-color: #333;
}

/* ============================================
   カテゴリリンク - パステル調スタイル
   淡い背景＋ボーダー＋濃いテキスト（記事内で主張しすぎない配色）
   タグはそのまま白背景を維持
   ============================================ */
.mobile-categories-tags .cat-link,
.entry-header .cat-link,
.article-header .cat-link,
.entry-categories-tags .cat-link,
.cat-link-box .cat-link {
  background: #fff7ed !important;
  border: 1px solid #f59e0b !important;
  color: #92400e !important;
  font-weight: 600 !important;
}

.mobile-categories-tags .cat-link .cat-icon,
.entry-header .cat-link .cat-icon,
.article-header .cat-link .cat-icon,
.entry-categories-tags .cat-link .cat-icon {
  color: #d97706 !important;
  opacity: 0.8 !important;
}

/* カテゴリ - ホバー時はタグと同じ挙動（ソリッド塗り＋白文字） */
.mobile-categories-tags .cat-link:hover,
.entry-header .cat-link:hover,
.article-header .cat-link:hover,
.entry-categories-tags .cat-link:hover {
  background: #f59e0b !important;
  background-color: #f59e0b !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: #fff !important;
  opacity: 1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25) !important;
}

.mobile-categories-tags .cat-link:hover .cat-icon,
.entry-header .cat-link:hover .cat-icon,
.article-header .cat-link:hover .cat-icon,
.entry-categories-tags .cat-link:hover .cat-icon {
  color: #fff !important;
  opacity: 1 !important;
}

/* カテゴリ - ダークモード */
body.dark-mode .mobile-categories-tags .cat-link,
body.dark-mode .entry-header .cat-link,
body.dark-mode .article-header .cat-link,
body.dark-mode .entry-categories-tags .cat-link {
  background: rgba(180, 83, 9, 0.15) !important;
  border: 1px solid #b45309 !important;
  color: #fbbf24 !important;
}

body.dark-mode .mobile-categories-tags .cat-link .cat-icon,
body.dark-mode .entry-header .cat-link .cat-icon,
body.dark-mode .article-header .cat-link .cat-icon,
body.dark-mode .entry-categories-tags .cat-link .cat-icon {
  color: #f59e0b !important;
}

body.dark-mode .mobile-categories-tags .cat-link:hover,
body.dark-mode .entry-header .cat-link:hover,
body.dark-mode .article-header .cat-link:hover,
body.dark-mode .entry-categories-tags .cat-link:hover {
  background: #b45309 !important;
  background-color: #b45309 !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: #fff !important;
  opacity: 1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(180, 83, 9, 0.3) !important;
}

/* ============================================
   投稿カテゴリバッジ - ブランド/路線/エリア色分け
   詳細度を 0-3-0 にして .mobile-categories-tags .cat-link (0-2-0) に勝つ
   ============================================ */

/* ブランド - パステルティール */
.mobile-categories-tags .cat-link.cat-brand,
.entry-header .cat-link.cat-brand,
.article-header .cat-link.cat-brand,
.entry-categories-tags .cat-link.cat-brand {
  background: #f0fdfa !important;
  border-color: #14b8a6 !important;
  color: #0f766e !important;
  font-weight: 400 !important;
}
.mobile-categories-tags .cat-link.cat-brand .cat-icon,
.entry-header .cat-link.cat-brand .cat-icon,
.article-header .cat-link.cat-brand .cat-icon,
.entry-categories-tags .cat-link.cat-brand .cat-icon {
  color: #14b8a6 !important;
}
.mobile-categories-tags .cat-link.cat-brand:hover,
.entry-header .cat-link.cat-brand:hover,
.article-header .cat-link.cat-brand:hover,
.entry-categories-tags .cat-link.cat-brand:hover {
  background: #14b8a6 !important;
  background-color: #14b8a6 !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: #fff !important;
  opacity: 1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(20, 184, 166, 0.25) !important;
}

/* 路線 - パステルインディゴ */
.mobile-categories-tags .cat-link.cat-route,
.entry-header .cat-link.cat-route,
.article-header .cat-link.cat-route,
.entry-categories-tags .cat-link.cat-route {
  background: #eef2ff !important;
  border-color: #818cf8 !important;
  color: #4338ca !important;
  font-weight: 400 !important;
}
.mobile-categories-tags .cat-link.cat-route .cat-icon,
.entry-header .cat-link.cat-route .cat-icon,
.article-header .cat-link.cat-route .cat-icon,
.entry-categories-tags .cat-link.cat-route .cat-icon {
  color: #6366f1 !important;
}
.mobile-categories-tags .cat-link.cat-route:hover,
.entry-header .cat-link.cat-route:hover,
.article-header .cat-link.cat-route:hover,
.entry-categories-tags .cat-link.cat-route:hover {
  background: #6366f1 !important;
  background-color: #6366f1 !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: #fff !important;
  opacity: 1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.25) !important;
}

/* エリア - パステルアンバー（デフォルトと同じ、明示的に定義） */
.mobile-categories-tags .cat-link.cat-area,
.entry-header .cat-link.cat-area,
.article-header .cat-link.cat-area,
.entry-categories-tags .cat-link.cat-area {
  background: #fff7ed !important;
  border-color: #f59e0b !important;
  color: #92400e !important;
  font-weight: 400 !important;
}
.mobile-categories-tags .cat-link.cat-area .cat-icon,
.entry-header .cat-link.cat-area .cat-icon,
.article-header .cat-link.cat-area .cat-icon,
.entry-categories-tags .cat-link.cat-area .cat-icon {
  color: #f59e0b !important;
}
.mobile-categories-tags .cat-link.cat-area:hover,
.entry-header .cat-link.cat-area:hover,
.article-header .cat-link.cat-area:hover,
.entry-categories-tags .cat-link.cat-area:hover {
  background: #f59e0b !important;
  background-color: #f59e0b !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: #fff !important;
  opacity: 1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25) !important;
}

/* ダークモード - ブランド */
body.dark-mode .mobile-categories-tags .cat-link.cat-brand,
body.dark-mode .entry-header .cat-link.cat-brand,
body.dark-mode .article-header .cat-link.cat-brand,
body.dark-mode .entry-categories-tags .cat-link.cat-brand {
  background: rgba(20, 184, 166, 0.12) !important;
  border-color: #0d9488 !important;
  color: #5eead4 !important;
  font-weight: 400 !important;
}
body.dark-mode .mobile-categories-tags .cat-link.cat-brand .cat-icon,
body.dark-mode .entry-header .cat-link.cat-brand .cat-icon,
body.dark-mode .article-header .cat-link.cat-brand .cat-icon,
body.dark-mode .entry-categories-tags .cat-link.cat-brand .cat-icon {
  color: #2dd4bf !important;
}
body.dark-mode .mobile-categories-tags .cat-link.cat-brand:hover,
body.dark-mode .entry-header .cat-link.cat-brand:hover,
body.dark-mode .article-header .cat-link.cat-brand:hover,
body.dark-mode .entry-categories-tags .cat-link.cat-brand:hover {
  background: #0d9488 !important;
  background-color: #0d9488 !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: #fff !important;
  opacity: 1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(13, 148, 136, 0.3) !important;
}

/* ダークモード - 路線 */
body.dark-mode .mobile-categories-tags .cat-link.cat-route,
body.dark-mode .entry-header .cat-link.cat-route,
body.dark-mode .article-header .cat-link.cat-route,
body.dark-mode .entry-categories-tags .cat-link.cat-route {
  background: rgba(99, 102, 241, 0.12) !important;
  border-color: #6366f1 !important;
  color: #a5b4fc !important;
  font-weight: 400 !important;
}
body.dark-mode .mobile-categories-tags .cat-link.cat-route .cat-icon,
body.dark-mode .entry-header .cat-link.cat-route .cat-icon,
body.dark-mode .article-header .cat-link.cat-route .cat-icon,
body.dark-mode .entry-categories-tags .cat-link.cat-route .cat-icon {
  color: #818cf8 !important;
}
body.dark-mode .mobile-categories-tags .cat-link.cat-route:hover,
body.dark-mode .entry-header .cat-link.cat-route:hover,
body.dark-mode .article-header .cat-link.cat-route:hover,
body.dark-mode .entry-categories-tags .cat-link.cat-route:hover {
  background: #4f46e5 !important;
  background-color: #4f46e5 !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: #fff !important;
  opacity: 1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.3) !important;
}

/* ダークモード - エリア */
body.dark-mode .mobile-categories-tags .cat-link.cat-area,
body.dark-mode .entry-header .cat-link.cat-area,
body.dark-mode .article-header .cat-link.cat-area,
body.dark-mode .entry-categories-tags .cat-link.cat-area {
  background: rgba(180, 83, 9, 0.15) !important;
  border-color: #b45309 !important;
  color: #fbbf24 !important;
  font-weight: 400 !important;
}
body.dark-mode .mobile-categories-tags .cat-link.cat-area:hover,
body.dark-mode .entry-header .cat-link.cat-area:hover,
body.dark-mode .article-header .cat-link.cat-area:hover,
body.dark-mode .entry-categories-tags .cat-link.cat-area:hover {
  background: #b45309 !important;
  background-color: #b45309 !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: #fff !important;
  opacity: 1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(180, 83, 9, 0.3) !important;
}

/* キャンペーン情報 (cat-1145) - パステルローズ
   詳細度 0-3-0 で .cat-link.cat-brand (0-3-0) と同等 → CSS順序で勝つ */
.mobile-categories-tags .cat-link.cat-link-1145,
.entry-header .cat-link.cat-link-1145,
.article-header .cat-link.cat-link-1145,
.entry-categories-tags .cat-link.cat-link-1145 {
  background: #fff1f2 !important;
  border-color: #f43f5e !important;
  color: #9f1239 !important;
  font-weight: 400 !important;
}
.mobile-categories-tags .cat-link.cat-link-1145 .cat-icon,
.entry-header .cat-link.cat-link-1145 .cat-icon,
.article-header .cat-link.cat-link-1145 .cat-icon,
.entry-categories-tags .cat-link.cat-link-1145 .cat-icon {
  color: #f43f5e !important;
}
.cat-link-1145 .cat-icon::before {
  content: "\f0a1" !important; /* fa-bullhorn */
}
.mobile-categories-tags .cat-link.cat-link-1145:hover,
.entry-header .cat-link.cat-link-1145:hover,
.article-header .cat-link.cat-link-1145:hover,
.entry-categories-tags .cat-link.cat-link-1145:hover {
  background: #f43f5e !important;
  background-color: #f43f5e !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: #fff !important;
  opacity: 1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(244, 63, 94, 0.25) !important;
}

/* ダークモード - キャンペーン情報 */
body.dark-mode .mobile-categories-tags .cat-link.cat-link-1145,
body.dark-mode .entry-header .cat-link.cat-link-1145,
body.dark-mode .article-header .cat-link.cat-link-1145,
body.dark-mode .entry-categories-tags .cat-link.cat-link-1145 {
  background: rgba(244, 63, 94, 0.12) !important;
  border-color: #e11d48 !important;
  color: #fda4af !important;
  font-weight: 400 !important;
}
body.dark-mode .mobile-categories-tags .cat-link.cat-link-1145 .cat-icon,
body.dark-mode .entry-header .cat-link.cat-link-1145 .cat-icon,
body.dark-mode .article-header .cat-link.cat-link-1145 .cat-icon,
body.dark-mode .entry-categories-tags .cat-link.cat-link-1145 .cat-icon {
  color: #fb7185 !important;
}
body.dark-mode .mobile-categories-tags .cat-link.cat-link-1145:hover,
body.dark-mode .entry-header .cat-link.cat-link-1145:hover,
body.dark-mode .article-header .cat-link.cat-link-1145:hover,
body.dark-mode .entry-categories-tags .cat-link.cat-link-1145:hover {
  background: #e11d48 !important;
  background-color: #e11d48 !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: #fff !important;
  opacity: 1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.3) !important;
}

/* エリア比較 (cat-1150) - パステルスカイブルー */
.mobile-categories-tags .cat-link.cat-link-1150,
.entry-header .cat-link.cat-link-1150,
.article-header .cat-link.cat-link-1150,
.entry-categories-tags .cat-link.cat-link-1150 {
  background: #f0f9ff !important;
  border-color: #0ea5e9 !important;
  color: #0369a1 !important;
  font-weight: 400 !important;
}
.mobile-categories-tags .cat-link.cat-link-1150 .cat-icon,
.entry-header .cat-link.cat-link-1150 .cat-icon,
.article-header .cat-link.cat-link-1150 .cat-icon,
.entry-categories-tags .cat-link.cat-link-1150 .cat-icon {
  color: #0ea5e9 !important;
}
.cat-link-1150 .cat-icon::before {
  content: "\f24e" !important; /* fa-balance-scale */
}
.mobile-categories-tags .cat-link.cat-link-1150:hover,
.entry-header .cat-link.cat-link-1150:hover,
.article-header .cat-link.cat-link-1150:hover,
.entry-categories-tags .cat-link.cat-link-1150:hover {
  background: #0ea5e9 !important;
  background-color: #0ea5e9 !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: #fff !important;
  opacity: 1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(14, 165, 233, 0.3) !important;
}

/* ダークモード - エリア比較 */
body.dark-mode .mobile-categories-tags .cat-link.cat-link-1150,
body.dark-mode .entry-header .cat-link.cat-link-1150,
body.dark-mode .article-header .cat-link.cat-link-1150,
body.dark-mode .entry-categories-tags .cat-link.cat-link-1150 {
  background: rgba(14, 165, 233, 0.12) !important;
  border-color: #0284c7 !important;
  color: #7dd3fc !important;
  font-weight: 400 !important;
}
body.dark-mode .mobile-categories-tags .cat-link.cat-link-1150 .cat-icon,
body.dark-mode .entry-header .cat-link.cat-link-1150 .cat-icon,
body.dark-mode .article-header .cat-link.cat-link-1150 .cat-icon,
body.dark-mode .entry-categories-tags .cat-link.cat-link-1150 .cat-icon {
  color: #38bdf8 !important;
}
body.dark-mode .mobile-categories-tags .cat-link.cat-link-1150:hover,
body.dark-mode .entry-header .cat-link.cat-link-1150:hover,
body.dark-mode .article-header .cat-link.cat-link-1150:hover,
body.dark-mode .entry-categories-tags .cat-link.cat-link-1150:hover {
  background: #0284c7 !important;
  background-color: #0284c7 !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: #fff !important;
  opacity: 1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3) !important;
}

/* アイキャッチ・カード上のカテゴリラベルをオレンジに統一 */
.cat-label {
  background: #f59e0b !important;
  color: #fff !important;
}

body.dark-mode .cat-label {
  background: #b45309 !important;
  color: rgba(255, 255, 255, 0.95) !important;
}

/* ============================================
   ブランドカテゴリ - 強制オーバーライド（最後に配置）
   オレンジ系のデフォルトスタイルを確実に上書き
   ============================================ */

/* ブランド - バッジを確実にティール系に */
.widget_categories li.cat-group-brand > a > .post-count,
.widget_categories li.cat-group-brand > a > .count,
.widget_categories li.cat-in-brand > a > .post-count,
.widget_categories li.cat-in-brand > a > .count,
.widget_categories .cat-group-brand .post-count,
.widget_categories .cat-group-brand .count,
.widget_categories .cat-in-brand .post-count,
.widget_categories .cat-in-brand .count {
  background: linear-gradient(135deg, #14b8a6, #0d9488) !important;
  box-shadow: 0 1px 2px rgba(20, 184, 166, 0.25) !important;
}

/* ブランド - ドットを確実にティール系に */
.widget_categories li.cat-group-brand > a::before,
.widget_categories li.cat-in-brand > a::before {
  background: #14b8a6 !important;
}

/* ブランド - 今ここ */
.widget_categories li.cat-in-brand.current-cat > a,
.widget_categories li.cat-group-brand.current-cat > a {
  background: #c4f7e4 !important;
  color: #0f766e !important;
  border-left: 3px solid #2dd4bf !important;
}

/* ブランド - 親カテゴリハイライト */
.widget_categories li.cat-group-brand.current-cat-parent > a {
  background: #def9f5 !important;
  border-left: 3px solid #5eead4 !important;
  font-weight: 600 !important;
}

/* ブランド - テキストカラー（通常時は黒/濃いグレー） */
.widget_categories li.cat-group-brand > a,
.widget_categories li.cat-in-brand > a,
.widget_categories li.cat-group-brand > a .list-item-caption,
.widget_categories li.cat-in-brand > a .list-item-caption {
  color: #333 !important;
}

/* ブランド - ホバー時にティール系（ブランド全体） */
.widget_categories li.cat-group-brand > a:hover,
.widget_categories li.cat-group-brand > a:hover .list-item-caption,
.widget_categories li.cat-in-brand > a:hover,
.widget_categories li.cat-in-brand > a:hover .list-item-caption {
  color: #0f766e !important;
}

/* ブランド - ハイライト済みアイテムのホバー背景（specificity override） */
.widget_categories li.cat-group-brand.current-cat-parent > a:hover,
.widget_categories li.cat-in-brand.current-cat-parent > a:hover,
.widget_categories li.cat-in-brand.current-cat-ancestor > a:hover,
.widget_categories li.cat-in-brand.current-cat > a:hover,
.widget_categories li.cat-group-brand.current-cat > a:hover {
  background: #2dd4bf !important;
}

/* ブランド - ダークモード強制オーバーライド */
body.dark-mode .widget_categories li.cat-group-brand > a > .post-count,
body.dark-mode .widget_categories li.cat-group-brand > a > .count,
body.dark-mode .widget_categories li.cat-in-brand > a > .post-count,
body.dark-mode .widget_categories li.cat-in-brand > a > .count,
body.dark-mode .widget_categories .cat-group-brand .post-count,
body.dark-mode .widget_categories .cat-group-brand .count,
body.dark-mode .widget_categories .cat-in-brand .post-count,
body.dark-mode .widget_categories .cat-in-brand .count {
  background: linear-gradient(135deg, #14b8a6, #0d9488) !important;
}

body.dark-mode .widget_categories li.cat-group-brand > a::before,
body.dark-mode .widget_categories li.cat-in-brand > a::before {
  background: #14b8a6 !important;
}

body.dark-mode .widget_categories li.cat-in-brand.current-cat > a,
body.dark-mode .widget_categories li.cat-group-brand.current-cat > a {
  background: #107169 !important;
  color: #a7f3d0 !important;
}

body.dark-mode .widget_categories li.cat-group-brand.current-cat-parent > a {
  background: #0e433f !important;
  border-left-color: #0d9488 !important;
}

body.dark-mode .widget_categories li.cat-group-brand > a,
body.dark-mode .widget_categories li.cat-in-brand > a {
  color: #e5e7eb !important;
}

body.dark-mode .widget_categories li.cat-group-brand > a:hover,
body.dark-mode .widget_categories li.cat-in-brand > a:hover {
  color: #5eead4 !important;
}

/* ダークモード - ハイライト済みブランドアイテムのホバー背景 */
body.dark-mode .widget_categories li.cat-group-brand.current-cat-parent > a:hover,
body.dark-mode .widget_categories li.cat-in-brand.current-cat-parent > a:hover,
body.dark-mode .widget_categories li.cat-in-brand.current-cat-ancestor > a:hover,
body.dark-mode .widget_categories li.cat-in-brand.current-cat > a:hover,
body.dark-mode .widget_categories li.cat-group-brand.current-cat > a:hover {
  background: #1e4d4a !important;
}

/* ============================================
   路線カテゴリ - 強制オーバーライド（インディゴ配色）
   ============================================ */

/* 路線 - バッジを確実にインディゴ系に */
.widget_categories li.cat-group-route > a > .post-count,
.widget_categories li.cat-group-route > a > .count,
.widget_categories li.cat-in-route > a > .post-count,
.widget_categories li.cat-in-route > a > .count,
.widget_categories .cat-group-route .post-count,
.widget_categories .cat-group-route .count,
.widget_categories .cat-in-route .post-count,
.widget_categories .cat-in-route .count {
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  box-shadow: 0 1px 2px rgba(99, 102, 241, 0.25) !important;
}

/* 路線 - ドットを確実にインディゴ系に */
.widget_categories li.cat-group-route > a::before,
.widget_categories li.cat-in-route > a::before {
  background: #6366f1 !important;
}

/* 路線 - 今ここ */
.widget_categories li.cat-in-route.current-cat > a,
.widget_categories li.cat-group-route.current-cat > a {
  background: #e0e7ff !important;
  color: #3730a3 !important;
  border-left: 3px solid #818cf8 !important;
}

/* 路線 - 親カテゴリハイライト */
.widget_categories li.cat-group-route.current-cat-parent > a {
  background: #eef2ff !important;
  border-left: 3px solid #a5b4fc !important;
  font-weight: 600 !important;
}

/* 路線 - テキストカラー */
.widget_categories li.cat-group-route > a,
.widget_categories li.cat-in-route > a,
.widget_categories li.cat-group-route > a .list-item-caption,
.widget_categories li.cat-in-route > a .list-item-caption {
  color: #333 !important;
}

/* 路線 - ホバー時にインディゴ系 */
.widget_categories li.cat-group-route > a:hover,
.widget_categories li.cat-group-route > a:hover .list-item-caption,
.widget_categories li.cat-in-route > a:hover,
.widget_categories li.cat-in-route > a:hover .list-item-caption {
  color: #4338ca !important;
}

/* 路線 - ハイライト済みアイテムのホバー背景 */
.widget_categories li.cat-group-route.current-cat-parent > a:hover,
.widget_categories li.cat-in-route.current-cat-parent > a:hover,
.widget_categories li.cat-in-route.current-cat-ancestor > a:hover,
.widget_categories li.cat-in-route.current-cat > a:hover,
.widget_categories li.cat-group-route.current-cat > a:hover {
  background: rgba(99, 102, 241, 0.2) !important;
}

/* 路線 - 「今ここ」ラベル */
.widget_categories li.cat-in-route.current-cat > a::after,
.widget_categories li.cat-group-route.current-cat > a::after {
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  box-shadow: 0 1px 2px rgba(99, 102, 241, 0.3) !important;
}

/* 路線 - 現在のカテゴリのドット */
.widget_categories li.cat-in-route.current-cat > a::before,
.widget_categories li.cat-group-route.current-cat > a::before {
  background: #4f46e5 !important;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.6) !important;
}

/* ============================================
   路線カテゴリ - ダークモード
   ============================================ */

body.dark-mode .widget_categories li.cat-group-route > a > .post-count,
body.dark-mode .widget_categories li.cat-group-route > a > .count,
body.dark-mode .widget_categories li.cat-in-route > a > .post-count,
body.dark-mode .widget_categories li.cat-in-route > a > .count,
body.dark-mode .widget_categories .cat-group-route .post-count,
body.dark-mode .widget_categories .cat-group-route .count,
body.dark-mode .widget_categories .cat-in-route .post-count,
body.dark-mode .widget_categories .cat-in-route .count {
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
}

body.dark-mode .widget_categories li.cat-group-route > a::before,
body.dark-mode .widget_categories li.cat-in-route > a::before {
  background: #818cf8 !important;
}

body.dark-mode .widget_categories li.cat-in-route.current-cat > a,
body.dark-mode .widget_categories li.cat-group-route.current-cat > a {
  background: #312e81 !important;
  color: #e0e7ff !important;
  border-left-color: #6366f1 !important;
}

body.dark-mode .widget_categories li.cat-group-route.current-cat-parent > a {
  background: #1e1b4b !important;
  border-left-color: #4f46e5 !important;
}

body.dark-mode .widget_categories li.cat-group-route > a,
body.dark-mode .widget_categories li.cat-in-route > a {
  color: #e5e7eb !important;
}

body.dark-mode .widget_categories li.cat-group-route > a:hover,
body.dark-mode .widget_categories li.cat-in-route > a:hover {
  color: #a5b4fc !important;
  background: #312e81 !important;
}

body.dark-mode .widget_categories li.cat-group-route.current-cat-parent > a:hover,
body.dark-mode .widget_categories li.cat-in-route.current-cat-parent > a:hover,
body.dark-mode .widget_categories li.cat-in-route.current-cat-ancestor > a:hover,
body.dark-mode .widget_categories li.cat-in-route.current-cat > a:hover,
body.dark-mode .widget_categories li.cat-group-route.current-cat > a:hover {
  background: #3730a3 !important;
}

/* 路線 - 「今ここ」ラベル（ダークモード） */
body.dark-mode .widget_categories li.cat-in-route.current-cat > a::after,
body.dark-mode .widget_categories li.cat-group-route.current-cat > a::after {
  background: linear-gradient(135deg, #6366f1, #4338ca) !important;
}

/* ============================================
   カテゴリウィジェット アコーディオン（L2地方 + L3都道府県 トグル）
   ハイライト済みはデフォルト展開、それ以外は折りたたみ
   ============================================ */

/* アコーディオン対象のli要素をフレックスレイアウトに */
.widget_categories li.cat-accordion-open,
.widget_categories li.cat-accordion-closed {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
}

.widget_categories li.cat-accordion-open > a:not(.cat-nav-icon),
.widget_categories li.cat-accordion-closed > a:not(.cat-nav-icon) {
  flex: 1;
  min-width: 0;
}

.widget_categories li.cat-accordion-open > ul,
.widget_categories li.cat-accordion-closed > ul {
  width: 100%;
}

/* トグルボタン（▶ / ▼） */
.widget_categories .cat-accordion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  border-radius: 3px;
  user-select: none;
  -webkit-user-select: none;
}

/* ▶ をCSSの疑似要素で描画 */
.widget_categories .cat-accordion-toggle::before {
  content: '\25B6';
  font-size: 8px;
  color: #9ca3af;
  transition: color 0.15s ease;
}

.widget_categories .cat-accordion-toggle:hover {
  background: rgba(245, 158, 11, 0.1);
}

.widget_categories .cat-accordion-toggle:hover::before {
  color: #d97706;
}

/* 展開状態: ▶ を90度回転して ▼ に */
.widget_categories li.cat-accordion-open > .cat-accordion-toggle {
  transform: rotate(90deg);
}

.widget_categories li.cat-accordion-open > .cat-accordion-toggle::before {
  color: #f59e0b;
}

/* 折りたたみ: 子リストを非表示 */
.widget_categories li.cat-accordion-closed > ul {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}

/* 展開: 子リストを表示（max-heightはJSが動的に設定） */
.widget_categories li.cat-accordion-open > ul {
  overflow: hidden;
  opacity: 1;
  transition: max-height 0.4s ease, opacity 0.25s ease 0.05s;
}

/* ダークモード */
body.dark-mode .widget_categories .cat-accordion-toggle::before {
  color: #6b7280;
}

body.dark-mode .widget_categories .cat-accordion-toggle:hover {
  background: rgba(251, 191, 36, 0.1);
}

body.dark-mode .widget_categories .cat-accordion-toggle:hover::before {
  color: #fbbf24;
}

body.dark-mode .widget_categories li.cat-accordion-open > .cat-accordion-toggle::before {
  color: #fbbf24;
}

/* 路線カテゴリ - アコーディオントグル色（インディゴ） */
.widget_categories .cat-in-route .cat-accordion-toggle:hover {
  background: rgba(99, 102, 241, 0.1);
}

.widget_categories .cat-in-route .cat-accordion-toggle:hover::before {
  color: #4f46e5;
}

.widget_categories .cat-in-route.cat-accordion-open > .cat-accordion-toggle::before {
  color: #6366f1;
}

/* 路線 - ダークモード アコーディオントグル */
body.dark-mode .widget_categories .cat-in-route .cat-accordion-toggle:hover {
  background: rgba(99, 102, 241, 0.15);
}

body.dark-mode .widget_categories .cat-in-route .cat-accordion-toggle:hover::before {
  color: #818cf8;
}

body.dark-mode .widget_categories .cat-in-route.cat-accordion-open > .cat-accordion-toggle::before {
  color: #a5b4fc;
}

/* モバイル: タッチターゲット拡大 */
@media screen and (max-width: 768px) {
  .widget_categories .cat-accordion-toggle {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
}

/* スライドインサイドバー用 */
.sidebar-menu-content .widget_categories .cat-accordion-toggle {
  width: 26px;
  height: 26px;
}

/* ============================================
   カテゴリ遷移アイコン（→）
   アコーディオン付きカテゴリのページ遷移用ボタン
   リンクテキスト=トグル、このアイコン=カテゴリページへ遷移
   ============================================ */
.widget_categories .cat-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #d97706;
  font-size: 9px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-left: auto;
  margin-right: 8px;
  border: 1.5px solid #f59e0b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12),
              0 0 0 2px rgba(245, 158, 11, 0.08);
  line-height: 1;
  z-index: 1;
  position: relative;
  box-sizing: border-box;
}

/* アコーディオン行のnavIconを固定位置に配置（バッジ幅差に依存しない垂直整列） */
.widget_categories li.cat-accordion-open > a .cat-nav-icon,
.widget_categories li.cat-accordion-closed > a .cat-nav-icon {
  position: absolute;
  right: 54px;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
  margin-right: 0;
}

.widget_categories li.cat-accordion-open > a .cat-nav-icon:hover,
.widget_categories li.cat-accordion-closed > a .cat-nav-icon:hover {
  transform: translateY(-50%) scale(1.15);
}

/* 遷移アイコンの疑似要素を非表示（ドット装飾・「今ここ」ラベル抑制） */
.widget_categories .cat-nav-icon::before,
.widget_categories .cat-nav-icon::after {
  display: none !important;
}

.widget_categories .cat-nav-icon:hover {
  background: #f59e0b;
  color: #fff;
  border-color: #d97706;
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
              0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* ハイライト行のnavIcon - より強いコントラスト */
.widget_categories .current-cat-parent > a .cat-nav-icon,
.widget_categories .current-cat > a .cat-nav-icon {
  background: #fff;
  border-color: #d97706;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18),
              0 0 0 2px rgba(245, 158, 11, 0.15);
}

/* トグル化されたリンクのカーソル（通常のポインタ維持） */
.widget_categories li.cat-accordion-open > a:not(.cat-nav-icon),
.widget_categories li.cat-accordion-closed > a:not(.cat-nav-icon) {
  cursor: pointer;
}

/* ブランドカテゴリの遷移アイコン（ティール系） */
.widget_categories li.cat-in-brand .cat-nav-icon,
.widget_categories li.cat-group-brand .cat-nav-icon {
  background: #fff;
  color: #0d9488;
  border: 1.5px solid #14b8a6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12),
              0 0 0 2px rgba(20, 184, 166, 0.08);
}

.widget_categories li.cat-in-brand .cat-nav-icon:hover,
.widget_categories li.cat-group-brand .cat-nav-icon:hover {
  background: #14b8a6;
  color: #fff;
  border-color: #0d9488;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
              0 0 0 3px rgba(20, 184, 166, 0.2);
}

/* ダークモード - 遷移アイコン */
body.dark-mode .widget_categories .cat-nav-icon {
  background: #1f2937;
  color: #fbbf24;
  border: 1.5px solid #fbbf24;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3),
              0 0 0 2px rgba(251, 191, 36, 0.1);
}

body.dark-mode .widget_categories .cat-nav-icon:hover {
  background: #d97706;
  color: #fff;
  border-color: #b45309;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4),
              0 0 0 3px rgba(217, 119, 6, 0.25);
}

/* ダークモード - ハイライト行 */
body.dark-mode .widget_categories .current-cat-parent > a .cat-nav-icon,
body.dark-mode .widget_categories .current-cat > a .cat-nav-icon {
  background: #111827;
  border-color: #f59e0b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4),
              0 0 0 2px rgba(245, 158, 11, 0.15);
}

/* ダークモード - ブランド（ティール） */
body.dark-mode .widget_categories li.cat-in-brand .cat-nav-icon,
body.dark-mode .widget_categories li.cat-group-brand .cat-nav-icon {
  background: #1f2937;
  color: #5eead4;
  border: 1.5px solid #5eead4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3),
              0 0 0 2px rgba(94, 234, 212, 0.1);
}

body.dark-mode .widget_categories li.cat-in-brand .cat-nav-icon:hover,
body.dark-mode .widget_categories li.cat-group-brand .cat-nav-icon:hover {
  background: #0d9488;
  color: #fff;
  border-color: #115e59;
}

/* モバイル: タッチターゲット拡大 */
@media screen and (max-width: 768px) {
  .widget_categories .cat-nav-icon {
    width: 28px;
    height: 28px;
    font-size: 10px;
    margin-right: 10px;
  }

  /* モバイル: アコーディオンnavIcon固定位置（バッジ32px + gap10px + padding14px = 56px） */
  .widget_categories li.cat-accordion-open > a .cat-nav-icon,
  .widget_categories li.cat-accordion-closed > a .cat-nav-icon {
    right: 56px;
  }
}

/* スライドインサイドバー用 */
.sidebar-menu-content .widget_categories .cat-nav-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

/* ============================================
   サイドバー誘導ツールチップ（スマホ専用）
   初回訪問時にフッターバーの「サイドバー」ボタンへ
   注目を集める吹き出し表示
   ============================================ */

/* ツールチップ本体 */
.sidebar-tooltip {
  position: fixed;
  bottom: 64px;
  right: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  padding: 12px 36px 12px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  white-space: nowrap;
}

/* フェードイン状態 */
.sidebar-tooltip.is-visible {
  animation: sidebarTooltipIn 0.4s ease-out forwards;
  pointer-events: auto;
}

/* フェードアウト状態 */
.sidebar-tooltip.is-hiding {
  animation: sidebarTooltipOut 0.3s ease-in forwards;
  pointer-events: none;
}

/* フッターバー非表示時にツールチップも隠す */
.sidebar-tooltip.is-bar-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease;
}

/* 下向き三角（サイドバーボタンを指す） */
.sidebar-tooltip::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 28px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #d97706;
}

/* アイコン */
.sidebar-tooltip__icon {
  margin-right: 6px;
}

/* 閉じるボタン */
.sidebar-tooltip__close {
  position: absolute;
  top: 4px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s ease;
  line-height: 1;
}

.sidebar-tooltip__close:hover {
  color: #fff;
}

/* フェードインアニメーション */
@keyframes sidebarTooltipIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* フェードアウトアニメーション */
@keyframes sidebarTooltipOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* サイドバーボタンのパルス光（ボタン本体に直接適用） */
.pulse-hint {
  animation: sidebarBtnPulse 1.2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes sidebarBtnPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    background-color: transparent;
  }
  50% {
    box-shadow:
      0 0 16px 8px rgba(245, 158, 11, 0.6),
      0 0 32px 16px rgba(245, 158, 11, 0.25);
    background-color: rgba(245, 158, 11, 0.2);
  }
}

/* PC非表示 */
@media screen and (min-width: 769px) {
  .sidebar-tooltip {
    display: none !important;
  }
}

/* ダークモード対応 */
body.dark-mode .sidebar-tooltip {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.4);
}

body.dark-mode .sidebar-tooltip::after {
  border-top-color: #b45309;
}

/* ============================================
   フッターバー検索ポップアップ（スライドイン方式）
   モバイル専用 - CSSチェックボックストグルで制御
   ============================================ */

/* オーバーレイ（背景暗転） */
.footer-search-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#footer-search-popup-input:checked ~ .footer-search-popup-overlay {
  opacity: 1;
  visibility: visible;
}

.footer-search-popup-overlay__close {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* ポップアップコンテンツ（右からスライドイン） */
.footer-search-popup-content {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 400px;
  height: 100%;
  background: #fff;
  z-index: 100001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#footer-search-popup-input:checked ~ .footer-search-popup-content {
  transform: translateX(0);
}

/* ヘッダー */
.footer-search-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.footer-search-popup-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-search-popup-title i {
  font-size: 15px;
}

.footer-search-popup-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.footer-search-popup-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.footer-search-popup-close-btn i {
  font-size: 16px;
  color: #fff;
}

/* ボディ（検索フォーム） */
.footer-search-popup-body {
  padding: 18px 16px;
}

.footer-search-popup-body .search-box,
.footer-search-popup-body form {
  margin: 0;
}

.footer-search-popup-body .search-hints {
  padding: 6px 0 12px 4px !important;
}

.footer-search-popup-body .search-tag-filter {
  padding: 0;
}

.footer-search-popup-body .search-tag-filter__grid {
  gap: 6px;
}

.footer-search-popup-body .search-tag-filter__item {
  padding: 7px 8px;
  min-height: 34px;
  font-size: 11px;
}

.footer-search-popup-body .search-filter-btn {
  padding: 10px 0;
  font-size: 13px;
}

/* PC非表示 */
@media screen and (min-width: 769px) {
  .footer-search-popup-overlay,
  .footer-search-popup-content {
    display: none !important;
  }
}

/* ダークモード */
body.dark-mode .footer-search-popup-content {
  background: #1f2937;
}

body.dark-mode .footer-search-popup-header {
  background: linear-gradient(135deg, #d97706, #b45309);
}

/* ============================================
   検索誘導ツールチップ（スマホ専用）
   初回訪問時にフッターバーの「検索」ボタンへ
   注目を集める吹き出し表示（グリーン系でサイドバーと差別化）
   ============================================ */

/* ツールチップ本体（leftはJSで動的に設定） */
.search-tooltip {
  position: fixed;
  bottom: 64px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  padding: 12px 36px 12px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  white-space: nowrap;
}

/* フェードイン状態 */
.search-tooltip.is-visible {
  animation: searchTooltipIn 0.4s ease-out forwards;
  pointer-events: auto;
}

/* フェードアウト状態 */
.search-tooltip.is-hiding {
  animation: searchTooltipOut 0.3s ease-in forwards;
  pointer-events: none;
}

/* フッターバー非表示時にツールチップも隠す */
.search-tooltip.is-bar-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease;
}

/* 下向き三角（検索ボタンを指す） */
.search-tooltip::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: var(--arrow-left, 50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #059669;
}

/* アイコン */
.search-tooltip__icon {
  margin-right: 6px;
}

.search-tooltip__icon i {
  font-size: 12px;
}

/* 閉じるボタン */
.search-tooltip__close {
  position: absolute;
  top: 4px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s ease;
  line-height: 1;
}

.search-tooltip__close:hover {
  color: #fff;
}

/* フェードインアニメーション */
@keyframes searchTooltipIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* フェードアウトアニメーション */
@keyframes searchTooltipOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* PC非表示 */
@media screen and (min-width: 769px) {
  .search-tooltip {
    display: none !important;
  }
}

/* ダークモード対応 */
body.dark-mode .search-tooltip {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.4);
}

body.dark-mode .search-tooltip::after {
  border-top-color: #047857;
}

/* ============================================
   ヘッダーキャッチフレーズ調整
   Cocoonのキャッチフレーズは .tagline クラスを使用
   ロゴとの重なりを防ぎ、視認性を向上
   ============================================ */
.tagline {
  font-size: 15px;
  letter-spacing: 0.08em;
  padding: 8px 0;
  margin-bottom: 20px;
  opacity: 0.85;
}

@media screen and (max-width: 768px) {
  .tagline {
    font-size: clamp(9px, 3.2vw, 12px);
    margin-bottom: 12px;
  }
}

/* ============================================
   Contact Form 7 - プレミアムデザイン
   既存のウィジェットデザインシステムに統一
   ============================================ */

/* --- 1. フォームコンテナ（カードスタイル） --- */
.wpcf7 {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);
  border-radius: 16px;
  box-shadow:
    0 4px 24px rgba(245, 158, 11, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.15);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}

.wpcf7::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- 2. フォームグループ間隔 --- */
.wpcf7-form p {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.wpcf7-form p:last-of-type {
  margin-bottom: 0;
}

/* --- 3. ラベルスタイリング --- */
.wpcf7-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.wpcf7-form .required-mark {
  color: #ef4444;
  font-size: 12px;
  font-weight: 600;
  margin-left: 4px;
}

/* --- 4. テキスト入力・テキストエリア --- */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #f3f4f6;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #1a1a1a;
  transition: all 0.3s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.wpcf7-form textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.7;
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: #a0aec0;
}

/* フォーカス状態 -- オレンジグロウ */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* セレクト（ドロップダウン）カスタム矢印 */
.wpcf7-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a0aec0' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 40px;
}

/* --- 5. チェックボックス・ラジオボタン --- */
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item,
.wpcf7-form .wpcf7-radio .wpcf7-list-item {
  display: block;
  margin-bottom: 8px;
}

.wpcf7-form .wpcf7-checkbox .wpcf7-list-item label,
.wpcf7-form .wpcf7-radio .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
  padding: 6px 0;
}

.wpcf7-form .wpcf7-checkbox input[type="checkbox"],
.wpcf7-form .wpcf7-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #f59e0b;
  cursor: pointer;
}

/* --- 6. 送信ボタン -- CTAスタイル統一 --- */
.wpcf7-form input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 8px auto 0;
  padding: 16px 24px;
  background: linear-gradient(135deg, #3a6b5c, #2f5a4e);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(58, 107, 92, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.wpcf7-form input[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: ctaBtnShine 3s ease-in-out infinite;
  z-index: 1;
}

.wpcf7-form input[type="submit"]:hover {
  background: linear-gradient(135deg, #2f5a4e, #254a40);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 107, 92, 0.4);
}

.wpcf7-form input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(58, 107, 92, 0.3);
}

.wpcf7-form.submitting input[type="submit"],
.wpcf7-form input[type="submit"].disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.wpcf7-form.submitting input[type="submit"]::before {
  animation: none;
}

/* --- 7. バリデーション -- エラー/成功状態 --- */
.wpcf7-form .wpcf7-not-valid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.wpcf7-form .wpcf7-not-valid-tip {
  display: block;
  color: #ef4444;
  font-size: 12px;
  font-weight: 500;
  margin-top: 6px;
  padding-left: 4px;
  animation: cf7FadeIn 0.3s ease;
}

@keyframes cf7FadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wpcf7-response-output {
  border-radius: 12px !important;
  padding: 16px 20px !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  margin: 20px 0 0 !important;
  animation: cf7FadeIn 0.3s ease;
}

.wpcf7-form.sent .wpcf7-response-output {
  border: 2px solid #10b981 !important;
  background: #ecfdf5 !important;
  color: #065f46 !important;
}

.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output {
  border: 2px solid #ef4444 !important;
  background: #fef2f2 !important;
  color: #991b1b !important;
}

.wpcf7-form.spam .wpcf7-response-output {
  border: 2px solid #f59e0b !important;
  background: #fffbeb !important;
  color: #92400e !important;
}

/* --- 8. ローディングスピナー --- */
.wpcf7-spinner {
  margin: 12px auto 0;
  width: 32px;
  height: 32px;
  border: 3px solid #f3f4f6;
  border-top: 3px solid #3a6b5c;
  border-radius: 50%;
  animation: cf7Spin 0.8s linear infinite;
  background: none;
}

@keyframes cf7Spin {
  to { transform: rotate(360deg); }
}

/* --- 9. ダークモード完全対応 --- */
body.dark-mode .wpcf7 {
  background: linear-gradient(180deg, #1d1f22 0%, #252830 100%);
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-mode .wpcf7::before {
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
}

body.dark-mode .wpcf7-form label {
  color: #e2e8f0;
}

body.dark-mode .wpcf7-form input[type="text"],
body.dark-mode .wpcf7-form input[type="email"],
body.dark-mode .wpcf7-form input[type="tel"],
body.dark-mode .wpcf7-form input[type="url"],
body.dark-mode .wpcf7-form input[type="number"],
body.dark-mode .wpcf7-form select,
body.dark-mode .wpcf7-form textarea {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.dark-mode .wpcf7-form input::placeholder,
body.dark-mode .wpcf7-form textarea::placeholder {
  color: #718096;
}

body.dark-mode .wpcf7-form input[type="text"]:focus,
body.dark-mode .wpcf7-form input[type="email"]:focus,
body.dark-mode .wpcf7-form input[type="tel"]:focus,
body.dark-mode .wpcf7-form input[type="url"]:focus,
body.dark-mode .wpcf7-form input[type="number"]:focus,
body.dark-mode .wpcf7-form select:focus,
body.dark-mode .wpcf7-form textarea:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

body.dark-mode .wpcf7-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23718096' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
}

body.dark-mode .wpcf7-form .wpcf7-checkbox .wpcf7-list-item label,
body.dark-mode .wpcf7-form .wpcf7-radio .wpcf7-list-item label {
  color: #e2e8f0;
}

body.dark-mode .wpcf7-form .wpcf7-not-valid {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15) !important;
}

body.dark-mode .wpcf7-form .wpcf7-not-valid-tip {
  color: #fca5a5;
}

body.dark-mode .wpcf7-form.sent .wpcf7-response-output {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.1) !important;
  color: #6ee7b7 !important;
}

body.dark-mode .wpcf7-form.failed .wpcf7-response-output,
body.dark-mode .wpcf7-form.aborted .wpcf7-response-output,
body.dark-mode .wpcf7-form.invalid .wpcf7-response-output {
  border-color: #f87171 !important;
  background: rgba(248, 113, 113, 0.1) !important;
  color: #fca5a5 !important;
}

body.dark-mode .wpcf7-form.spam .wpcf7-response-output {
  border-color: #fbbf24 !important;
  background: rgba(251, 191, 36, 0.1) !important;
  color: #fde68a !important;
}

body.dark-mode .wpcf7-spinner {
  border-color: #4a5568;
  border-top-color: #6ee7b7;
}

body.dark-mode .wpcf7-form .required-mark {
  color: #fca5a5;
}

/* --- 10. レスポンシブ --- */
@media screen and (max-width: 768px) {
  .wpcf7 {
    padding: 24px 16px;
    border-radius: 12px;
  }

  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form input[type="tel"],
  .wpcf7-form input[type="url"],
  .wpcf7-form input[type="number"],
  .wpcf7-form select,
  .wpcf7-form textarea {
    font-size: 16px;
    padding: 14px 16px;
  }

  .wpcf7-form textarea {
    min-height: 120px;
  }

  .wpcf7-form input[type="submit"] {
    max-width: 100%;
    font-size: 15px;
    padding: 14px 20px;
  }
}

/* --- 11. アクセシビリティ -- キーボードフォーカス --- */
.wpcf7-form input:focus-visible,
.wpcf7-form select:focus-visible,
.wpcf7-form textarea:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

.wpcf7-form input[type="submit"]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(58, 107, 92, 0.5);
}

/* ============================================
   SEO: CLS対策 - aspect-ratio 指定
   ============================================ */
/* スタジオフォト画像 */
.studio-photo-slide__image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Googleマップ iframe */
.entry-content iframe[src*="google.com/maps"] {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  max-height: 450px;
}

/* Googleレビューアバター */
.google-review-card__avatar-img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ============================================
   SEO: 近隣スタジオカードスライダー
   ============================================ */
.nearby-studios-section {
  margin: 2.5em 0;
  padding: 24px 0;
  background: linear-gradient(180deg, #fffbf0 0%, #fff 100%);
  border-radius: 12px;
}

.nearby-studios-slider {
  position: relative;
  overflow: hidden;
  padding: 0 8px;
}

.nearby-studios-slider .swiper-wrapper {
  display: flex;
  transition-property: transform;
}

.nearby-studios-slider .swiper-slide {
  flex-shrink: 0;
  width: 220px;
}

/* カード本体 */
.nearby-studio-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #f0e6d6;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.nearby-studio-card:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

/* 画像ラッパー */
.nearby-studio-card__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f4f6;
}

.nearby-studio-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

/* 画像srcが空の場合はプレースホルダーを表示 */
.nearby-studio-card__image[src=""] {
  opacity: 0;
}

/* CSSフォールバックプレースホルダー */
.nearby-studio-card__image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.nearby-studio-card__placeholder-text {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.02em;
  padding: 0 12px;
  text-align: center;
  line-height: 1.4;
}

/* カードボディ */
.nearby-studio-card__body {
  padding: 12px 14px 14px;
}

.nearby-studio-card__name {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nearby-studio-card__station {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nearby-studio-card__rating {
  font-size: 12px;
  color: #92400e;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nearby-studio-card__stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

/* 近隣スタジオカード内 Cocoon [star] ショートコード調整 */
.nearby-studio-card__rating .rating-star {
  font-size: 12px;
  gap: 2px;
}
.nearby-studio-card__rating .rating-number {
  font-size: 12px;
  font-weight: 600;
  color: #92400e;
  margin-left: 2px;
}
body.dark-mode .nearby-studio-card__rating .rating-number {
  color: #fbbf24;
}

/* ナビゲーションボタン */
.nearby-studios-slider .swiper-button-prev,
.nearby-studios-slider .swiper-button-next {
  color: #f59e0b;
  background: rgba(255, 255, 255, 0.95);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background 0.2s, box-shadow 0.2s;
}

.nearby-studios-slider .swiper-button-prev:hover,
.nearby-studios-slider .swiper-button-next:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.nearby-studios-slider .swiper-button-prev::after,
.nearby-studios-slider .swiper-button-next::after {
  font-size: 16px;
  font-weight: 700;
}

/* スクロールバー（進捗表示・4件以上のスライダー用） */
.nearby-studios-slider .swiper-scrollbar {
  position: relative;
  margin: 16px 8px 0;
  height: 4px;
  background: #f3f4f6;
  border-radius: 4px;
}

.nearby-studios-slider .swiper-scrollbar-drag {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  border-radius: 4px;
  cursor: pointer;
}

/* ============================================
   近隣スタジオ 静的グリッドレイアウト（1-3件用）
   ============================================ */
.nearby-studios-grid {
  display: grid;
  gap: 16px;
  padding: 0 16px;
}

.nearby-studios-grid .nearby-studio-card-wrap {
  min-width: 0;
}

/* wpautop が挿入する不要な p要素 をグリッドから除外 */
.nearby-studios-grid > p {
  display: none !important;
}

/* 1件: 3カラムグリッド維持（カードサイズ統一） */
.nearby-studios-grid--count-1 {
  grid-template-columns: repeat(3, 1fr);
}

/* 2件: 3カラムグリッド維持（カードサイズ統一） */
.nearby-studios-grid--count-2 {
  grid-template-columns: repeat(3, 1fr);
}

/* 3件: 3カラム均等 */
.nearby-studios-grid--count-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .nearby-studios-section {
    padding: 16px 0;
    border-radius: 0;
    margin-left: -16px;
    margin-right: -16px;
  }

  .nearby-studios-slider .swiper-slide {
    width: 180px;
  }

  .nearby-studio-card__body {
    padding: 10px 12px 12px;
  }

  .nearby-studio-card__name {
    font-size: 12px;
  }

  .nearby-studios-slider .swiper-button-prev,
  .nearby-studios-slider .swiper-button-next {
    width: 30px;
    height: 30px;
  }

  .nearby-studios-slider .swiper-button-prev::after,
  .nearby-studios-slider .swiper-button-next::after {
    font-size: 13px;
  }

  /* グリッド: スマホ対応 */
  .nearby-studios-grid--count-2,
  .nearby-studios-grid--count-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .nearby-studios-grid {
    padding: 0 12px;
  }
}

/* ダークモード対応 */
body.dark-mode .nearby-studios-section {
  background: linear-gradient(180deg, #1a1a2e 0%, #111827 100%);
}

body.dark-mode .nearby-studio-card {
  background: #1f2937;
  border-color: #374151;
}

body.dark-mode .nearby-studio-card:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.1);
}

body.dark-mode .nearby-studio-card__name {
  color: #f3f4f6;
}

body.dark-mode .nearby-studio-card__station {
  color: #9ca3af;
}

body.dark-mode .nearby-studio-card__rating {
  color: #fbbf24;
}

body.dark-mode .nearby-studio-card__image-wrap {
  background: #374151;
}

body.dark-mode .nearby-studios-slider .swiper-button-prev,
body.dark-mode .nearby-studios-slider .swiper-button-next {
  background: rgba(31, 41, 55, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================
   SEO: もっと探すリンク（explore-more-links）
   近隣スタジオセクション内のカテゴリ・タグ導線
   ============================================ */
.explore-more-links {
  margin: 20px 16px 8px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #f0e6d6;
  border-radius: 10px;
}

.explore-more-links__area,
.explore-more-links__tags {
  margin-bottom: 12px;
}

.explore-more-links__area:last-child,
.explore-more-links__tags:last-child {
  margin-bottom: 0;
}

.explore-more-links__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.explore-more-links__label i {
  margin-right: 4px;
}

.explore-more-links__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.explore-more-links__items a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 20px;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  line-height: 1.4;
}

/* エリアリンク: オレンジ系 */
.explore-more-links__area .explore-more-links__items a {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.explore-more-links__area .explore-more-links__items a:hover {
  background: #ffedd5;
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.12);
  transform: translateY(-1px);
  text-decoration: none;
  color: #c2410c;
}

/* タグリンク: ティール系 */
.explore-more-links__tags .explore-more-links__items a {
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.explore-more-links__tags .explore-more-links__items a:hover {
  background: #ccfbf1;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.12);
  transform: translateY(-1px);
  text-decoration: none;
  color: #0f766e;
}

/* explore-onlyモード（近隣スタジオなし時） */
.nearby-studios-section--explore-only {
  padding: 0;
  background: transparent;
}

.nearby-studios-section--explore-only .explore-more-links {
  margin: 0;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #fffbf0 0%, #fff 100%);
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .explore-more-links {
    margin: 16px 12px 4px;
    padding: 14px 16px;
  }

  .explore-more-links__items a {
    font-size: 12px;
    padding: 5px 12px;
  }

  .nearby-studios-section--explore-only {
    margin-left: -16px;
    margin-right: -16px;
  }

  .nearby-studios-section--explore-only .explore-more-links {
    margin: 0 12px;
  }
}

/* ダークモード対応 */
body.dark-mode .explore-more-links {
  background: #1f2937;
  border-color: #374151;
}

body.dark-mode .explore-more-links__label {
  color: #9ca3af;
}

body.dark-mode .explore-more-links__area .explore-more-links__items a {
  background: rgba(194, 65, 12, 0.1);
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.3);
}

body.dark-mode .explore-more-links__area .explore-more-links__items a:hover {
  background: rgba(194, 65, 12, 0.2);
  color: #fdba74;
}

body.dark-mode .explore-more-links__tags .explore-more-links__items a {
  background: rgba(15, 118, 110, 0.1);
  color: #5eead4;
  border-color: rgba(94, 234, 212, 0.3);
}

body.dark-mode .explore-more-links__tags .explore-more-links__items a:hover {
  background: rgba(15, 118, 110, 0.2);
  color: #99f6e4;
}

body.dark-mode .nearby-studios-section--explore-only .explore-more-links {
  background: linear-gradient(180deg, #1a1a2e 0%, #1f2937 100%);
  border-color: #374151;
}

body.dark-mode .nearby-studios-slider .swiper-scrollbar {
  background: #374151;
}

body.dark-mode .nearby-studios-slider .swiper-scrollbar-drag {
  background: linear-gradient(90deg, #d97706, #b45309);
}

/* ============================================
   信頼性注記（情報鮮度注記 + 記事末尾免責）
   PR宣言（.pr-label-l）風の控えめなデザインに統一
   ============================================ */

/* --- 情報鮮度注記（基本情報 Google Map 直後） --- */
.info-freshness-note {
  margin: 2em 0 2em;
  padding: 14px 20px;
  font-size: 12.5px;
  line-height: 1.8;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  text-align: center;
}

/* --- 記事末尾免責注記（まとめCTA直後） --- */
.content-disclaimer {
  margin: 2em 0 0;
  padding: 14px 20px;
  font-size: 12.5px;
  line-height: 1.8;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  text-align: center;
}

/* PC改行（スマホ非表示） */
.info-freshness-note .pc-only,
.content-disclaimer .pc-only,
.content-trust-signal .pc-only {
  display: inline;
}

@media screen and (max-width: 768px) {
  .info-freshness-note .pc-only,
  .content-disclaimer .pc-only,
  .content-trust-signal .pc-only {
    display: none;
  }
}

/* --- ダークモード対応 --- */
body.dark-mode .info-freshness-note {
  color: #94a3b8;
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .content-disclaimer {
  color: #94a3b8;
  background: #1e293b;
  border-color: #334155;
}

/* --- 冒頭信頼性シグナル（author_profile直後） --- */
.content-trust-signal {
  margin: 0 0 2em;
  padding: 14px 20px;
  font-size: 12.5px;
  line-height: 1.8;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  text-align: center;
}

body.dark-mode .content-trust-signal {
  color: #94a3b8;
  background: #1e293b;
  border-color: #334155;
}

/* --- AEO要約ブロック --- */
.aeo-summary-block {
  position: relative;
  margin: 1.8em 0;
  padding: 20px 20px 16px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #f59e0b;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.8;
}

.aeo-summary-label {
  position: absolute;
  top: -10px;
  left: 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 10px;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.aeo-summary-label::before {
  content: '\f0eb';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 10px;
}

.aeo-summary-label i {
  font-size: 10px;
}

.aeo-summary-block .aeo-summary-text {
  margin: 0;
  padding: 0;
  color: #78350f;
}

.aeo-summary-block strong {
  color: #92400e;
}

@media screen and (max-width: 768px) {
  .aeo-summary-block {
    padding: 18px 16px 14px;
    font-size: 14px;
  }

  .aeo-summary-label {
    font-size: 11px;
    padding: 2px 10px;
  }
}

body.dark-mode .aeo-summary-block {
  background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
  border-color: #d97706;
}

body.dark-mode .aeo-summary-label {
  background: linear-gradient(135deg, #d97706, #b45309);
}

body.dark-mode .aeo-summary-block .aeo-summary-text {
  color: #fef3c7;
}

body.dark-mode .aeo-summary-block strong {
  color: #fbbf24;
}

/* mark.aeo-marker: グローバル（リード文・AEOブロック両方で使用） */
mark.aeo-marker {
  background: linear-gradient(transparent 60%, #fde68a 60%);
  padding: 0 2px;
  color: inherit;
  font-weight: bold;
}

body.dark-mode mark.aeo-marker {
  background: linear-gradient(transparent 60%, rgba(217, 119, 6, 0.35) 60%);
}

/* ============================================
   エリアまとめ記事 AEOサマリーブロック
   ============================================ */

.aeo-area-summary {
  position: relative;
  margin: 1.8em 0;
  padding: 20px 20px 0;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #f59e0b;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.8;
}

.aeo-area-summary-label {
  position: absolute;
  top: -10px;
  left: 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 10px;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.aeo-area-summary-label i {
  font-size: 10px;
}

.aeo-area-summary .aeo-area-summary-text {
  margin: 0 0 12px;
  padding: 0;
  color: #78350f;
}

.aeo-area-summary strong {
  color: #92400e;
}

/* mark.aeo-marker はグローバル定義を継承 */

.aeo-area-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0 0 -4px;
  padding: 10px 0 0;
  border-top: 1px dashed #f59e0b;
  font-size: 14px;
  line-height: 1.6;
}

.aeo-area-facts dt {
  font-weight: 700;
  color: #92400e;
  white-space: nowrap;
}

/* FA icons via ::before (WPが<i>タグをdt内でサニタイズするため) */
.aeo-area-facts dt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 12px;
  width: 16px;
  display: inline-block;
  text-align: center;
  color: #b45309;
  margin-right: 6px;
}

.aeo-area-facts dt:nth-of-type(1)::before { content: "\f157"; } /* fa-yen-sign: 月額最安 */
.aeo-area-facts dt:nth-of-type(2)::before { content: "\f51e"; } /* fa-coins: 1回あたり最安 */
.aeo-area-facts dt:nth-of-type(3)::before { content: "\f005"; } /* fa-star: Google口コミ1位 */
.aeo-area-facts dt:nth-of-type(4)::before { content: "\f521"; } /* fa-crown: 編集部総合1位 */
.aeo-area-facts dt:nth-of-type(5)::before { content: "\f3ff"; } /* fa-ticket-alt: 体験無料 */
.aeo-area-facts dt:nth-of-type(6)::before { content: "\f44b"; } /* fa-dumbbell: マシン対応 */

.aeo-area-facts dd {
  margin: 0;
  color: #78350f;
}

@media screen and (max-width: 768px) {
  .aeo-area-summary {
    padding: 18px 16px 0;
    font-size: 14px;
  }

  .aeo-area-summary-label {
    font-size: 11px;
    padding: 2px 10px;
  }

  .aeo-area-facts {
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  .aeo-area-facts {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .aeo-area-facts dt {
    margin-top: 6px;
  }

  .aeo-area-facts dt:first-child {
    margin-top: 0;
  }
}

body.dark-mode .aeo-area-summary {
  background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
  border-color: #d97706;
}

body.dark-mode .aeo-area-summary-label {
  background: linear-gradient(135deg, #d97706, #b45309);
}

body.dark-mode .aeo-area-summary .aeo-area-summary-text {
  color: #fef3c7;
}

body.dark-mode .aeo-area-summary strong {
  color: #fbbf24;
}

/* dark-mode mark.aeo-marker はグローバル定義を継承 */

body.dark-mode .aeo-area-facts dt {
  color: #fbbf24;
}

body.dark-mode .aeo-area-facts dt::before {
  color: #f59e0b;
}

body.dark-mode .aeo-area-facts dd {
  color: #fef3c7;
}

body.dark-mode .aeo-area-facts {
  border-top-color: #d97706;
}

/* --- AEO Area Summary Toggle (<details>) --- */
.aeo-area-toggle {
  margin: 1.8em 0;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  overflow: hidden;
}

.aeo-area-toggle summary {
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  color: #92400e;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.aeo-area-toggle summary::before {
  content: "\25B6\00A0";
  font-size: 12px;
}

.aeo-area-toggle[open] summary::before {
  content: "\25BC\00A0";
}

.aeo-area-toggle summary::-webkit-details-marker {
  display: none;
}

.aeo-area-toggle .aeo-area-summary {
  margin: 0;
  border: none;
  border-radius: 0;
  padding-bottom: 4px;
}

.aeo-area-toggle .aeo-area-summary-label {
  display: none;
}

.aeo-authority-note {
  font-size: 13px;
  color: #78350f;
  margin: 8px 20px 12px;
  padding-top: 8px;
  border-top: 1px dashed #f59e0b;
  line-height: 1.7;
}

.aeo-authority-note a {
  color: #b45309;
  text-decoration: underline;
}

body.dark-mode .aeo-area-toggle {
  border-color: #d97706;
}

body.dark-mode .aeo-area-toggle summary {
  color: #fbbf24;
  background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
}

body.dark-mode .aeo-authority-note {
  color: #fef3c7;
  border-top-color: #d97706;
}

body.dark-mode .aeo-authority-note a {
  color: #fbbf24;
}

/* ============================================
   統合評価サマリーブロック (IRS)
   ============================================ */
.integrated-review-summary {
  margin: 1.5em 0;
  padding: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.irs-title {
  margin: 0;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.irs-title i {
  font-size: 14px;
}

.irs-section {
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.irs-section:last-of-type {
  border-bottom: none;
}

/* 評価データテーブル
   .entry-content table とのspecificity競合を防ぐため
   .integrated-review-summary を親セレクタとして付与 */
.integrated-review-summary .irs-rating-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  box-shadow: none;
  border-radius: 0;
  table-layout: fixed;
  min-width: 0;
  overflow: hidden;
}

.integrated-review-summary .irs-rating-table caption {
  font-size: 0;
  height: 0;
  overflow: hidden;
}

.integrated-review-summary .irs-rating-table th {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  padding: 12px 16px;
  text-align: left;
  width: 30%;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  white-space: normal;
  word-wrap: break-word;
}

.integrated-review-summary .irs-rating-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  width: 70%;
  background: #fff;
}

.integrated-review-summary .irs-rating-table tbody tr:nth-child(odd),
.integrated-review-summary .irs-rating-table tbody tr:nth-child(even),
.integrated-review-summary .irs-rating-table tbody tr:hover {
  background: transparent;
}

.integrated-review-summary .irs-rating-table tbody tr:nth-child(odd) td { background: #fffbf5; }
.integrated-review-summary .irs-rating-table tbody tr:nth-child(even) td { background: #fff; }
.integrated-review-summary .irs-rating-table tbody tr:hover td { background: #fef3e2; }

.integrated-review-summary .irs-rating-table tbody tr:last-child td,
.integrated-review-summary .irs-rating-table tbody tr:last-child th {
  border-bottom: none;
}

.integrated-review-summary .irs-rating-table td a i {
  font-size: 11px;
  margin-left: 4px;
}

/* 口コミ要約 2カラムグリッド */
.irs-sentiment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.irs-sentiment-good {
  background: #fafffe;
  border-radius: 6px;
  padding: 12px;
  border-left: 3px solid #22c55e;
}

.irs-sentiment-bad {
  background: #fffafa;
  border-radius: 6px;
  padding: 12px;
  border-left: 3px solid #f87171;
}

.irs-sentiment-label {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 13px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 4px;
}

.irs-sentiment-good .irs-sentiment-label {
  color: #166534;
}

.irs-sentiment-bad .irs-sentiment-label {
  color: #991b1b;
}

.irs-sentiment-label i {
  font-size: 13px;
}

.irs-sentiment-good .irs-sentiment-label i {
  color: #22c55e;
}

.irs-sentiment-bad .irs-sentiment-label i {
  color: #f87171;
}

.irs-sentiment-content {
  font-size: 14px;
  line-height: 1.6;
}

.irs-sentiment-content ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.irs-sentiment-content ul li {
  padding-left: 1em;
  position: relative;
}

.irs-sentiment-content ul li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  font-weight: 700;
}

.irs-sentiment-good .irs-sentiment-content ul li::before {
  color: #22c55e;
}

.irs-sentiment-bad .irs-sentiment-content ul li::before {
  color: #f87171;
}

/* 代表的口コミ */
.irs-representative-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #c2410c;
}

.irs-representative-label i {
  font-size: 14px;
  color: #f97316;
}

.irs-representative-review .editor-memo-box {
  margin: 12px 0 0;
  font-size: 13px;
}

.irs-review-content {
  margin-top: 0;
}

/* データソース注記 */
.irs-source-note {
  margin: 0;
  padding: 10px 16px;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  background: #f9fafb;
  border-top: 1px solid #f3f4f6;
}

.irs-source-note a {
  color: #94a3b8;
  text-decoration: underline;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .irs-sentiment-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .irs-section {
    padding: 12px;
  }

  .irs-section.irs-rating {
    overflow: hidden;
    padding: 0;
  }

  /* 基本情報テーブルと同じ方式：テーブル構造維持で自動リサイズ */
  .integrated-review-summary .irs-rating-table {
    table-layout: auto !important;
    min-width: 0 !important;
    width: 100% !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .integrated-review-summary .irs-rating-table tbody th {
    width: 1% !important;
    white-space: nowrap !important;
    min-width: 0 !important;
    font-size: 14px !important;
    padding: 10px 12px !important;
  }

  .integrated-review-summary .irs-rating-table tbody td {
    width: auto !important;
    min-width: 0 !important;
    white-space: normal !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    font-size: 14px !important;
    padding: 10px 12px !important;
  }

  .irs-source-note {
    font-size: clamp(10px, 2.8vw, 12px);
    padding: 8px 12px;
  }
}

/* ダークモード */
body.dark-mode .integrated-review-summary {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

body.dark-mode .irs-title {
  background: linear-gradient(135deg, #c2410c, #9a3412);
}

body.dark-mode .irs-section {
  border-bottom-color: #334155;
}

body.dark-mode .integrated-review-summary .irs-rating-table th {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  border-bottom-color: #333;
}

body.dark-mode .integrated-review-summary .irs-rating-table td {
  border-bottom-color: #333;
  color: #ddd;
}

body.dark-mode .integrated-review-summary .irs-rating-table tbody tr:nth-child(odd),
body.dark-mode .integrated-review-summary .irs-rating-table tbody tr:nth-child(even),
body.dark-mode .integrated-review-summary .irs-rating-table tbody tr:hover {
  background: transparent;
}

body.dark-mode .integrated-review-summary .irs-rating-table tbody tr:nth-child(odd) td { background: #2a2c2f; }
body.dark-mode .integrated-review-summary .irs-rating-table tbody tr:nth-child(even) td { background: #1e293b; }
body.dark-mode .integrated-review-summary .irs-rating-table tbody tr:hover td { background: #363840; }

body.dark-mode .irs-sentiment-good {
  background: #052e16;
  border-left-color: #16a34a;
}

body.dark-mode .irs-sentiment-bad {
  background: #450a0a;
  border-left-color: #ef4444;
}

body.dark-mode .irs-sentiment-good .irs-sentiment-label {
  color: #86efac;
}

body.dark-mode .irs-sentiment-good .irs-sentiment-label i {
  color: #86efac;
}

body.dark-mode .irs-sentiment-bad .irs-sentiment-label {
  color: #fca5a5;
}

body.dark-mode .irs-sentiment-bad .irs-sentiment-label i {
  color: #fca5a5;
}

body.dark-mode .irs-sentiment-content {
  color: #cbd5e1;
}

body.dark-mode .irs-sentiment-good .irs-sentiment-content ul li::before {
  color: #16a34a;
}

body.dark-mode .irs-sentiment-bad .irs-sentiment-content ul li::before {
  color: #ef4444;
}

body.dark-mode .irs-representative-label {
  background: #1e1b18;
  border-color: #78350f;
  color: #fb923c;
}

body.dark-mode .irs-representative-label i {
  color: #fb923c;
}

body.dark-mode .irs-source-note {
  background: #0f172a;
  border-top-color: #334155;
  color: #64748b;
}

body.dark-mode .irs-source-note a {
  color: #64748b;
}

@media screen and (max-width: 768px) {
  body.dark-mode .integrated-review-summary .irs-rating-table th {
    border-bottom-color: #333 !important;
  }

  body.dark-mode .integrated-review-summary .irs-rating-table td {
    border-bottom-color: #333 !important;
  }
}

/* ==========================================
   路線マップ SVG
   ========================================== */
.route-map {
  max-width: 100%;
  overflow-x: auto;
  margin: 1.5em 0;
  padding: 1em;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.route-map svg {
  width: 100%;
  height: auto;
  display: block;
}

@media screen and (max-width: 768px) {
  .route-map {
    padding: 0.75em;
    margin: 1em 0;
  }
}

/* ==========================================
   インタラクティブ路線マップ + 駅別アコーディオン
   ========================================== */

/* セクション全体 */
.route-interactive-map {
  margin-top: 20px;
  position: relative;
}

/* SVGラッパー */
.route-imap__svg-wrap {
  background: #fafbfc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 12px 8px;
}

.route-imap__svg {
  max-width: 100%;
  margin: 0 auto;
}

.route-imap__svg svg {
  width: 100%;
  height: auto;
  display: block;
}

.route-imap__hint {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin: 8px 0 0;
  padding: 0;
}

/* --- ポップオーバー --- */
.route-popover {
  position: relative;
  z-index: 200;
}

.route-popover__overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}

.route-popover__overlay.is-active {
  display: block;
}

.route-popover__card {
  position: absolute;
  z-index: 210;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
  width: 310px;
  max-height: 420px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.route-popover__card.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.route-popover__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  border-radius: 14px 14px 0 0;
}

.route-popover__station {
  font-size: 16px;
  font-weight: 700;
  color: #222;
}

.route-popover__close {
  width: 28px;
  height: 28px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.route-popover__close:hover {
  background: #e0e0e0;
}

.route-popover__body {
  padding: 8px 0;
}

/* ポップオーバー内スタジオ */
.route-popover__studio {
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  transition: background 0.15s;
}

.route-popover__studio:hover {
  background: #fafafa;
}

.route-popover__studio + .route-popover__studio {
  border-top: 1px solid #f0f0f0;
}

.route-popover__brand-bar {
  width: 4px;
  border-radius: 2px;
  flex-shrink: 0;
  align-self: stretch;
}

.route-popover__studio-info {
  flex: 1;
  min-width: 0;
}

.route-popover__brand-name {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.route-popover__studio-name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
  line-height: 1.3;
}

.route-popover__studio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

.route-popover__rating {
  color: #F5A623;
  font-weight: 600;
}

.route-popover__walk {
  color: #888;
}

.route-popover__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  transition: opacity 0.15s;
}

.route-popover__link:hover {
  opacity: 0.8;
}

/* --- 駅別アコーディオン（SEO層） --- */
.route-station-list {
  margin-top: 24px;
}

.route-station-list__title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

.route-station-list__title i {
  margin-right: 6px;
  color: var(--cat-accent, #6366f1);
}

.route-station {
  border-bottom: 1px solid #e5e7eb;
}

.route-station > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 4px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.route-station > summary:hover {
  background: #f9fafb;
}

.route-station > summary::-webkit-details-marker {
  display: none;
}

.route-station__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.route-station__name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  flex: 1;
}

.route-station__count {
  font-size: 12px;
  color: #666;
  flex-shrink: 0;
}

.route-station__arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
}

.route-station__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: translate(-50%, -60%) rotate(45deg);
  transition: transform 0.2s ease;
}

.route-station[open] > summary .route-station__arrow::after {
  transform: translate(-50%, -40%) rotate(-135deg);
}

.route-station__body {
  padding: 0 0 12px 20px;
  border-left: 3px solid #e5e7eb;
  margin-left: 5px;
}

/* スタジオカード */
.route-studio-card {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.route-studio-card:hover {
  border-color: var(--cat-accent, #6366f1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.route-studio-card__bar {
  width: 4px;
  border-radius: 2px;
  flex-shrink: 0;
  align-self: stretch;
}

.route-studio-card__info {
  flex: 1;
  min-width: 0;
}

.route-studio-card__brand {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.route-studio-card__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  margin-bottom: 3px;
}

.route-studio-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #666;
}

.route-studio-card__rating {
  color: #F5A623;
  font-weight: 600;
}

.route-studio-card__reviews {
  color: #999;
  font-weight: 400;
}

.route-studio-card__walk {
  color: #888;
}

/* --- モバイル: ポップオーバー → ボトムシート --- */
@media screen and (max-width: 767px) {
  .route-popover__card {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-height: 70vh;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.15);
  }

  .route-popover__card.is-visible {
    transform: translateY(0);
  }

  .route-popover__overlay.is-active {
    background: rgba(0, 0, 0, 0.3);
  }

  .route-popover__header {
    border-radius: 18px 18px 0 0;
    padding: 16px 20px 12px;
  }

  .route-popover__header::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: #ddd;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
  }

  .route-popover__studio {
    padding: 12px 20px;
  }

  .route-imap__svg-wrap {
    padding: 12px 8px 6px;
  }
}

/* --- ダークモード --- */
body.dark-mode .route-interactive-map {
  color: #e5e7eb;
}

body.dark-mode .route-imap__svg-wrap {
  background: #1d1f22;
  border-color: #3a3c40;
}

body.dark-mode .route-imap__hint {
  color: #6b7280;
}

body.dark-mode .route-popover__card {
  background: #2a2c30;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.dark-mode .route-popover__header {
  background: #2a2c30;
  border-bottom-color: #3a3c40;
}

body.dark-mode .route-popover__station {
  color: #f3f4f6;
}

body.dark-mode .route-popover__close {
  background: #3a3c40;
  color: #9ca3af;
}

body.dark-mode .route-popover__studio:hover {
  background: #333538;
}

body.dark-mode .route-popover__studio + .route-popover__studio {
  border-top-color: #3a3c40;
}

body.dark-mode .route-popover__studio-name {
  color: #f3f4f6;
}

body.dark-mode .route-popover__studio-meta {
  color: #9ca3af;
}

body.dark-mode .route-station-list__title {
  color: #e5e7eb;
  border-bottom-color: #3a3c40;
}

body.dark-mode .route-station {
  border-bottom-color: #3a3c40;
}

body.dark-mode .route-station > summary:hover {
  background: #2a2c30;
}

body.dark-mode .route-station__name {
  color: #f3f4f6;
}

body.dark-mode .route-station__count {
  color: #6b7280;
}

body.dark-mode .route-station__arrow::after {
  border-color: #6b7280;
}

body.dark-mode .route-station__body {
  border-left-color: #3a3c40;
}

body.dark-mode .route-studio-card {
  background: #2a2c30;
  border-color: #3a3c40;
}

body.dark-mode .route-studio-card:hover {
  border-color: var(--cat-accent, #818cf8);
}

body.dark-mode .route-studio-card__name {
  color: #f3f4f6;
}

body.dark-mode .route-studio-card__meta {
  color: #9ca3af;
}

body.dark-mode .route-studio-card__reviews {
  color: #6b7280;
}

body.dark-mode .route-studio-card__walk {
  color: #6b7280;
}

body.dark-mode .route-map {
  background: #1e1e1e;
  border-color: #333;
}

body.dark-mode .route-map .station-name,
body.dark-mode .route-map .station-name-active {
  fill: #e0e0e0;
}

body.dark-mode .route-map .studio-name {
  fill: #aaa;
}

/* ==========================================
   L1 路線インデックス: サマリーテーブル
   ========================================== */
.route-overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 1em 0;
}
.route-overview-table th {
  background: var(--cat-accent-bg, #eef2ff);
  color: var(--cat-accent-dark, #4338ca);
  font-weight: 600;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
}
.route-overview-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 12px;
  vertical-align: middle;
}
.route-overview-table td a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}
.route-overview-table td a:hover {
  color: var(--cat-accent, #6366f1);
  text-decoration: underline;
}
.route-color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* ==========================================
   L1 路線インデックス: Key Takeaway
   ========================================== */
.route-key-insight {
  background: #eef2ff;
  border-left: 4px solid #6366f1;
  padding: 14px 18px;
  border-radius: 8px;
  margin: 1em 0;
  font-size: 14px;
  line-height: 1.7;
}

/* ==========================================
   L1 路線インデックス: 地域タブ
   ========================================== */
.route-region-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 8px;
  margin: 1.5em 0 1em;
}
.route-region-tabs__nav [role="tab"] {
  padding: 8px 16px;
  border-radius: 8px 8px 0 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.route-region-tabs__nav [role="tab"]:hover {
  background: #f3f4f6;
  color: #4338ca;
}
.route-region-tabs__nav [role="tab"][aria-selected="true"] {
  background: #6366f1;
  color: #fff;
  font-weight: 600;
}
.route-region-panel {
  display: none;
}
.route-region-panel.is-active {
  display: block;
}

/* ==========================================
   L1 路線インデックス: 路線カードグリッド
   ========================================== */
.route-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 1em 0;
}
.route-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.route-card:hover {
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
  transform: translateY(-2px);
}
.route-card__color {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.route-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.route-card__name {
  font-weight: 600;
  font-size: 15px;
  color: #111;
}
.route-card__count {
  font-size: 13px;
  color: #6366f1;
  font-weight: 600;
  white-space: nowrap;
}
.route-card__map {
  margin: 0;
}
.route-card__svg-preview {
  max-height: 120px;
  overflow: hidden;
  border-radius: 6px;
  background: #fafafa;
  margin: 8px 0;
}
.route-card__svg-preview svg {
  width: 100%;
  height: auto;
}
.route-card__stations {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}
.route-card__metrics {
  font-size: 12px;
  color: #555;
  margin-top: 6px;
}

/* Tier 2 テキストリンク */
.route-card-grid__tier2 {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.route-card-grid__tier2-label {
  font-size: 13px;
  color: #888;
  font-weight: 500;
  margin-right: 4px;
}
.route-card-grid__tier2 a {
  padding: 4px 12px;
  background: #f3f4f6;
  border-radius: 20px;
  font-size: 13px;
  color: #4338ca;
  text-decoration: none;
  transition: background 0.2s;
}
.route-card-grid__tier2 a:hover {
  background: #e0e7ff;
}

/* ==========================================
   L1 路線インデックス: スマホ対応
   ========================================== */
@media screen and (max-width: 768px) {
  .route-card-grid {
    grid-template-columns: 1fr;
  }
  .route-region-tabs__nav {
    gap: 4px;
  }
  .route-region-tabs__nav [role="tab"] {
    padding: 6px 12px;
    font-size: 13px;
  }
  .route-overview-table {
    font-size: 12px;
  }
  .route-overview-table th,
  .route-overview-table td {
    padding: 8px 8px;
  }
  .route-card__svg-preview {
    max-height: 100px;
  }
  .route-key-insight {
    padding: 12px 14px;
    font-size: 13px;
  }
}

/* ==========================================
   L1 路線インデックス: ダークモード
   ========================================== */
body.dark-mode .route-overview-table th {
  background: #2a2c2f;
  color: #e0e0e0;
}
body.dark-mode .route-overview-table td {
  border-color: #3a3c40;
  color: #ccc;
}
body.dark-mode .route-overview-table td a {
  color: #d1d5db;
}
body.dark-mode .route-overview-table td a:hover {
  color: #a5b4fc;
}
body.dark-mode .route-key-insight {
  background: #1e1e2e;
  border-color: #818cf8;
  color: #d1d5db;
}
body.dark-mode .route-card {
  background: #2a2c2f;
  border-color: #3a3c40;
}
body.dark-mode .route-card:hover {
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}
body.dark-mode .route-card__name {
  color: #e0e0e0;
}
body.dark-mode .route-card__count {
  color: #a5b4fc;
}
body.dark-mode .route-card__svg-preview {
  background: #1e1e1e;
}
body.dark-mode .route-card__stations {
  color: #9ca3af;
}
body.dark-mode .route-card__metrics {
  color: #9ca3af;
}
body.dark-mode .route-region-tabs__nav {
  border-color: #3a3c40;
}
body.dark-mode .route-region-tabs__nav [role="tab"] {
  color: #9ca3af;
}
body.dark-mode .route-region-tabs__nav [role="tab"]:hover {
  background: #374151;
  color: #e0e0e0;
}
body.dark-mode .route-region-tabs__nav [role="tab"][aria-selected="true"] {
  background: #4f46e5;
}
body.dark-mode .route-card-grid__tier2-label {
  color: #9ca3af;
}
body.dark-mode .route-card-grid__tier2 a {
  background: #374151;
  color: #a5b4fc;
}
body.dark-mode .route-card-grid__tier2 a:hover {
  background: #4b5563;
}

/* =============================================
   pilates K smart 比較表
   サイト共通のオレンジ/アンバーパレットで統一
   smart列 = 主役（オレンジ強調）、通常列 = 控えめ
   ============================================= */

/* テーブル本体 */
.pilates-k-smart-comparison-table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.10);
  border: 1px solid #fde68a;
  table-layout: fixed;
}

/* ヘッダー共通リセット */
.pilates-k-smart-comparison-table thead th {
  padding: 14px 16px;
  letter-spacing: 0.02em;
  border: none;
  text-align: center;
}

/* 項目列ヘッダー */
.pilates-k-smart-comparison-table thead th:first-child {
  background: #78716c;
  color: #fff;
  font-weight: 600;
  font-size: 0.92em;
  width: 22%;
}

/* smart 列ヘッダー（主役 — サイトプライマリのオレンジ） */
.pilates-k-smart-comparison-table thead th:nth-child(2) {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 700;
  font-size: 1em;
}

/* 通常 pilates K 列ヘッダー（控えめグレー） */
.pilates-k-smart-comparison-table thead th:nth-child(3) {
  background: #a8a29e;
  color: #fff;
  font-weight: 600;
  font-size: 0.92em;
}

/* ボディセル共通 */
.pilates-k-smart-comparison-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid #fef3e2;
  vertical-align: middle;
}

/* 項目列セル */
.pilates-k-smart-comparison-table tbody td:first-child {
  background: #fffbf5;
  font-weight: 600;
  color: #44403c;
  font-size: 0.92em;
  text-align: center;
}

/* smart 列セル（暖色ハイライト） */
.pilates-k-smart-comparison-table tbody td:nth-child(2) {
  background: #fffbf5;
  color: #78350f;
  font-weight: 600;
}

/* smart 列の strong（価格・スペック強調） */
.pilates-k-smart-comparison-table tbody td:nth-child(2) strong {
  color: #b45309;
  font-weight: 700;
}

/* 通常列セル（控えめ） */
.pilates-k-smart-comparison-table tbody td:nth-child(3) {
  color: #78716c;
  background: #fff;
}

/* ストライプ（偶数行） */
.pilates-k-smart-comparison-table tbody tr:nth-child(even) td:first-child {
  background: #fff7ed;
}
.pilates-k-smart-comparison-table tbody tr:nth-child(even) td:nth-child(2) {
  background: #fff7ed;
}
.pilates-k-smart-comparison-table tbody tr:nth-child(even) td:nth-child(3) {
  background: #fafaf9;
}

/* ホバー */
.pilates-k-smart-comparison-table tbody tr:hover td {
  background: #fef3e2;
  transition: background 0.2s ease;
}

/* 最終行ボーダー消去 */
.pilates-k-smart-comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* スマホ */
@media screen and (max-width: 768px) {
  .pilates-k-smart-comparison-table {
    font-size: 13px;
  }
  .pilates-k-smart-comparison-table thead th {
    padding: 11px 10px;
    font-size: 0.85em;
  }
  .pilates-k-smart-comparison-table tbody td {
    padding: 10px;
  }
}

/* ============================================
   カテゴリページ — カスタムヘッダー
   タグページ(.tag-page-header)と統一されたフォーマット
   カテゴリタイプ別アクセントカラー対応
   ============================================ */

/* --- CSSカスタムプロパティ: カテゴリタイプ別カラー --- */
/* エリア(デフォルト): Amber系 — サイトメインカラーと統一 */
.cat-page-header {
  --cat-accent: #f59e0b;
  --cat-accent-dark: #d97706;
  --cat-accent-light: rgba(245, 158, 11, 0.06);
  --cat-accent-bg: #fffbeb;
  --cat-accent-border: rgba(245, 158, 11, 0.15);
  --cat-accent-chip-bg: rgba(245, 158, 11, 0.08);
}
/* 路線: Indigo系 — サイドバー路線バッジと統一 */
.cat-page-header--route {
  --cat-accent: #6366f1;
  --cat-accent-dark: #4f46e5;
  --cat-accent-light: rgba(99, 102, 241, 0.06);
  --cat-accent-bg: #eef2ff;
  --cat-accent-border: rgba(99, 102, 241, 0.15);
  --cat-accent-chip-bg: rgba(99, 102, 241, 0.08);
}
/* ブランド: Teal系 — サイドバーブランドバッジと統一 */
.cat-page-header--brand {
  --cat-accent: #14b8a6;
  --cat-accent-dark: #0d9488;
  --cat-accent-light: rgba(20, 184, 166, 0.06);
  --cat-accent-bg: #f0fdfa;
  --cat-accent-border: rgba(20, 184, 166, 0.15);
  --cat-accent-chip-bg: rgba(20, 184, 166, 0.08);
}

.cat-page-header {
  background: linear-gradient(180deg, #ffffff 0%, var(--cat-accent-bg) 100%);
  border-radius: 16px 16px 0 0;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--cat-accent-border);
  border-bottom: none;
  padding: 28px 24px 20px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.cat-page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, var(--cat-accent-light) 0%, transparent 70%);
  pointer-events: none;
}

/* タイトル行 */
.cat-page-header__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cat-page-header__icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--cat-accent), var(--cat-accent-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.cat-page-header__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.3;
}

.cat-page-header__count {
  background: linear-gradient(135deg, var(--cat-accent), var(--cat-accent-dark));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* リード文 */
.cat-page-header__lead {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
}

.cat-page-header__updated {
  display: block;
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

.cat-page-header__eyecatch {
  margin: 0 0 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--cat-accent-border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.cat-page-header__eyecatch-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .cat-page-header {
    padding: 20px 16px 16px;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
  }

  .cat-page-header__title-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .cat-page-header__icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
    border-radius: 10px;
  }

  .cat-page-header__title {
    font-size: 18px;
  }

  .cat-page-header__count {
    font-size: 12px;
    padding: 3px 10px;
  }

  .cat-page-header__lead {
    font-size: 13px;
  }

  .cat-page-header__eyecatch {
    margin-bottom: 12px;
    border-radius: 10px;
  }
}

/* ダークモード */
body.dark-mode .cat-page-header {
  background: linear-gradient(180deg, #1d1f22 0%, #222530 100%);
  border-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: transparent;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-mode .cat-page-header::before {
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

body.dark-mode .cat-page-header__title {
  color: #f3f4f6;
}

body.dark-mode .cat-page-header__lead {
  color: #9ca3af;
}

body.dark-mode .cat-page-header__updated {
  color: #6b7280;
}

body.dark-mode .cat-page-header__eyecatch {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

/* ============================================
   カテゴリページ — フッター
   関連カテゴリ・子カテゴリ絞り込み・上位カテゴリ・FAQ
   ============================================ */
/* カテゴリタイプ別カスタムプロパティ（フッター用） */
.cat-page-footer {
  --cat-accent: #f59e0b;
  --cat-accent-dark: #d97706;
  --cat-accent-bg: #fffbeb;
  --cat-accent-border: rgba(245, 158, 11, 0.15);
}
.cat-page-footer--route {
  --cat-accent: #6366f1;
  --cat-accent-dark: #4f46e5;
  --cat-accent-bg: #eef2ff;
  --cat-accent-border: rgba(99, 102, 241, 0.15);
}
.cat-page-footer--brand {
  --cat-accent: #14b8a6;
  --cat-accent-dark: #0d9488;
  --cat-accent-bg: #f0fdfa;
  --cat-accent-border: rgba(20, 184, 166, 0.15);
}

.cat-page-footer {
  background: linear-gradient(180deg, #ffffff 0%, var(--cat-accent-bg, #f8fafc) 100%);
  border-radius: 16px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--cat-accent-border, rgba(245, 158, 11, 0.15));
  padding: 28px 32px;
  margin-top: 32px;
}

/* 関連カテゴリ */
.cat-page-footer__related,
.cat-page-footer__child-filter,
.cat-page-footer__parent-nav {
  margin-bottom: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 10px;
}

.cat-page-footer__related-label,
.cat-page-footer__child-label,
.cat-page-footer__parent-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.cat-page-footer__related-label i,
.cat-page-footer__child-label i,
.cat-page-footer__parent-label i {
  margin-right: 4px;
  color: var(--cat-accent, #f59e0b);
}

.cat-page-footer__related-items,
.cat-page-footer__child-items,
.cat-page-footer__parent-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-page-footer__related-chip,
.cat-page-footer__child-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid var(--cat-accent-border, rgba(245, 158, 11, 0.15));
  border-radius: 20px;
  color: #4a5568;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}

.cat-page-footer__related-chip:hover,
.cat-page-footer__child-chip:hover {
  background: var(--cat-accent, #f59e0b);
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.cat-page-footer__chip-count {
  font-size: 10px;
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 10px;
  color: #9ca3af;
  line-height: 1.6;
}

.cat-page-footer__related-chip:hover .cat-page-footer__chip-count,
.cat-page-footer__child-chip:hover .cat-page-footer__chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.cat-page-footer__parent-chip {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}

.cat-page-footer__parent-chip:hover {
  background: #f3f4f6;
  border-color: var(--cat-accent, #f59e0b);
  color: var(--cat-accent-dark, #d97706);
  text-decoration: none;
  transform: translateY(-1px);
}

/* FAQ セクション */
.cat-page-footer__faq {
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid #f3f4f6;
}

.cat-page-footer__faq-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-page-footer__faq-title i {
  color: var(--cat-accent, #f59e0b);
  font-size: 16px;
}

.cat-page-faq-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #f3f4f6;
}

.cat-page-faq-item:last-child {
  margin-bottom: 0;
}

.cat-page-faq-item__q,
.cat-page-faq-item__a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
}

.cat-page-faq-item__q {
  background: var(--cat-accent-bg, #fffbeb);
  border-bottom: 1px solid var(--cat-accent-border, rgba(245, 158, 11, 0.15));
}

.cat-page-faq-item__icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.cat-page-faq-item__q .cat-page-faq-item__icon {
  background: linear-gradient(135deg, var(--cat-accent), var(--cat-accent-dark));
  color: #fff;
}

.cat-page-faq-item__a .cat-page-faq-item__icon {
  background: linear-gradient(135deg, #3a6b5c, #2f5a4e);
  color: #fff;
}

.cat-page-faq-item__q .cat-page-faq-item__text {
  font-weight: 600;
  color: #333;
  line-height: 1.6;
  font-size: 14px;
  padding-top: 3px;
}

.cat-page-faq-item__a .cat-page-faq-item__text {
  color: #555;
  line-height: 1.7;
  font-size: 14px;
  padding-top: 3px;
}

@media screen and (max-width: 768px) {
  .cat-page-footer {
    padding: 20px 16px;
    border-radius: 12px;
    margin-top: 24px;
  }

  .cat-page-footer__related,
  .cat-page-footer__child-filter,
  .cat-page-footer__parent-nav {
    padding: 12px;
  }

  .cat-page-footer__related-chip,
  .cat-page-footer__child-chip {
    font-size: 12px;
    padding: 5px 12px;
  }

  .cat-page-footer__parent-chip {
    font-size: 12px;
    padding: 5px 12px;
  }

  .cat-page-faq-item__q,
  .cat-page-faq-item__a {
    padding: 12px 14px;
  }

  .cat-page-faq-item__q .cat-page-faq-item__text,
  .cat-page-faq-item__a .cat-page-faq-item__text {
    font-size: 13px;
  }
}

body.dark-mode .cat-page-footer {
  background: linear-gradient(180deg, #1d1f22 0%, #252830 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-mode .cat-page-footer__related,
body.dark-mode .cat-page-footer__child-filter,
body.dark-mode .cat-page-footer__parent-nav {
  background: #1a1c20;
}

body.dark-mode .cat-page-footer__related-label,
body.dark-mode .cat-page-footer__child-label,
body.dark-mode .cat-page-footer__parent-label {
  color: #9ca3af;
}

body.dark-mode .cat-page-footer__related-chip,
body.dark-mode .cat-page-footer__child-chip {
  background: #2d3748;
  border-color: rgba(255, 255, 255, 0.1);
  color: #a0aec0;
}

body.dark-mode .cat-page-footer__related-chip:hover,
body.dark-mode .cat-page-footer__child-chip:hover {
  background: var(--cat-accent-dark, #d97706);
  color: #fff;
}

body.dark-mode .cat-page-footer__chip-count {
  background: #4a5568;
  color: #a0aec0;
}

body.dark-mode .cat-page-footer__parent-chip {
  background: #2d3748;
  border-color: #4a5568;
  color: #a0aec0;
}

body.dark-mode .cat-page-footer__parent-chip:hover {
  background: #374151;
  color: #f3f4f6;
}

body.dark-mode .cat-page-footer__faq {
  border-top-color: #333;
}

body.dark-mode .cat-page-footer__faq-title {
  color: #f3f4f6;
}

body.dark-mode .cat-page-faq-item {
  background: #1d1f22;
  border-color: #333;
}

body.dark-mode .cat-page-faq-item__q {
  background: #1e2530;
  border-bottom-color: #2a3040;
}

body.dark-mode .cat-page-faq-item__a {
  background: #1d1f22;
}

body.dark-mode .cat-page-faq-item__q .cat-page-faq-item__text {
  color: #eee;
}

body.dark-mode .cat-page-faq-item__a .cat-page-faq-item__text {
  color: #bbb;
}

/* ============================================
   カテゴリページ — 横断比較サマリー
   統計カード + TOP10カードリスト + ブランド分布
   ============================================ */
/* カテゴリタイプ別カスタムプロパティ（比較サマリー用） */
.cat-comparison-summary {
  --cat-accent: #f59e0b;
  --cat-accent-dark: #d97706;
  --cat-accent-bg: #fffbeb;
  --cat-accent-border: rgba(245, 158, 11, 0.15);
}
.cat-comparison-summary--route {
  --cat-accent: #6366f1;
  --cat-accent-dark: #4f46e5;
  --cat-accent-bg: #eef2ff;
  --cat-accent-border: rgba(99, 102, 241, 0.15);
}
.cat-comparison-summary--brand {
  --cat-accent: #14b8a6;
  --cat-accent-dark: #0d9488;
  --cat-accent-bg: #f0fdfa;
  --cat-accent-border: rgba(20, 184, 166, 0.15);
}

.cat-comparison-summary {
  background: linear-gradient(180deg, var(--cat-accent-bg, #fffbeb) 0%, #fafbfc 100%);
  border-radius: 0 0 16px 16px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--cat-accent-border, rgba(245, 158, 11, 0.15));
  border-top: 1px dashed var(--cat-accent-border, rgba(245, 158, 11, 0.15));
  padding: 24px 24px 28px;
  margin-top: 0;
  margin-bottom: 28px;
}

.cat-comparison-summary__title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-comparison-summary__title i {
  color: var(--cat-accent, #f59e0b);
}

.cat-comparison-summary__subtitle {
  margin: 20px 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #374151;
}

/* 統計カード（グリッド） */
.cat-comparison-summary__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.cat-stat-card {
  background: #fff;
  border: 1px solid var(--cat-accent-border, rgba(245, 158, 11, 0.15));
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cat-stat-card__value {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--cat-accent-dark, #d97706);
  line-height: 1.2;
  margin-bottom: 4px;
}

.cat-stat-card__value small {
  font-size: 14px;
  font-weight: 600;
  color: var(--cat-accent, #f59e0b);
}

.cat-stat-card__label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

/* TOP10 カードリスト */
.cat-top10 {
  margin-top: 4px;
}

.cat-top10__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-top10-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cat-top10-card:hover {
  border-color: var(--cat-accent, #f59e0b);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}

/* 順位バッジ */
.cat-top10-card__rank {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  font-size: 15px;
  font-weight: 800;
  color: #6b7280;
}

.cat-top10-card__rank--medal {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
}
.cat-top10-card__rank--medal img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* 中央情報 */
.cat-top10-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cat-top10-card__brand {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--cat-accent), var(--cat-accent-dark));
  padding: 1px 8px;
  border-radius: 4px;
  width: fit-content;
  line-height: 1.6;
}

.cat-top10-card__name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-top10-card:hover .cat-top10-card__name {
  color: var(--cat-accent-dark, #d97706);
}

.cat-top10-card__detail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 3px;
  line-height: 1.3;
}

.cat-top10-card__detail-item {
  white-space: nowrap;
}

.cat-top10-card__detail-item i {
  margin-right: 3px;
  font-size: 10px;
  color: #d1d5db;
}

/* 右側メトリクス */
.cat-top10-card__meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.cat-top10-card__rating {
  font-size: 16px;
  font-weight: 800;
  color: #1f2937;
  white-space: nowrap;
}

.cat-top10-card__star {
  color: var(--cat-accent, #f59e0b);
  font-size: 14px;
}

.cat-top10-card__price {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}

/* ブランド分布チップ */
.cat-brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #0f766e;
}

.cat-brand-chip__count {
  background: #14b8a6;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

/* ---- カテゴリナビゲーション「他のカテゴリで探す」---- */
.cat-nav-switcher {
  margin: 16px 0;
  padding: 16px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #f3f4f6;
}

.cat-nav-switcher__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-nav-switcher__group {
  margin-bottom: 12px;
}
.cat-nav-switcher__group:last-child {
  margin-bottom: 0;
}

.cat-nav-switcher__group-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 8px;
}

.cat-nav-switcher__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-nav-switcher__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cat-nav-switcher__chip--child {
  background: var(--cat-accent-chip-bg, rgba(245, 158, 11, 0.08));
  color: var(--cat-accent-dark, #d97706);
  border: 1px solid var(--cat-accent-border, rgba(245, 158, 11, 0.15));
}
.cat-nav-switcher__chip--child:hover {
  background: var(--cat-accent, #f59e0b);
  color: #fff;
  border-color: var(--cat-accent, #f59e0b);
}

.cat-nav-switcher__chip--type {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
}
.cat-nav-switcher__chip--type:hover {
  border-color: currentColor;
}

.cat-nav-switcher__chip--area { color: #d97706; }
.cat-nav-switcher__chip--area:hover { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.cat-nav-switcher__chip--route { color: #4f46e5; }
.cat-nav-switcher__chip--route:hover { background: #6366f1; color: #fff; border-color: #6366f1; }
.cat-nav-switcher__chip--brand { color: #0d9488; }
.cat-nav-switcher__chip--brand:hover { background: #14b8a6; color: #fff; border-color: #14b8a6; }

.cat-nav-switcher__chip--current {
  opacity: 0.4;
  pointer-events: none;
}

.cat-nav-switcher__chip-count {
  background: var(--cat-accent, #f59e0b);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

/* ---- 並び替え条件コントロール ---- */
.cat-sort-controls {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #f3f4f6;
}

.cat-sort-controls__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 10px;
}

.cat-sort-controls__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cat-sort-controls__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
  flex: 1;
}

.cat-sort-controls__label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}

.cat-sort-controls__select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--cat-accent-border, rgba(245, 158, 11, 0.15));
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  background: #fff;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
}

.cat-sort-controls__select:focus {
  border-color: var(--cat-accent, #f59e0b);
  box-shadow: 0 0 0 2px var(--cat-accent-light, rgba(245, 158, 11, 0.06));
}

.cat-sort-controls__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 9px 20px;
  background: var(--cat-accent, #f59e0b);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-sort-controls__btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.cat-sort-controls__note {
  margin: 8px 0 0;
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.5;
}

/* 非表示カード */
.cat-top10-card--hidden {
  display: none;
}

/* 評価なしスタジオ — グレー表示 */
.cat-top10-card__rating--none { color: #d1d5db; font-weight: 500; }
.cat-top10-card__rating--none .cat-top10-card__star { color: #e5e7eb; }

/* スタジオ一覧 件数バッジ */
.cat-comparison-summary__studio-count {
  font-size: 13px; font-weight: 600; color: #9ca3af; margin-left: 8px;
}

/* すべて表示ボタン */
.cat-top10__show-all {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  background: var(--cat-accent-light, rgba(245, 158, 11, 0.06));
  border: 1px dashed var(--cat-accent-border, rgba(245, 158, 11, 0.15));
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cat-accent-dark, #d97706);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-top10__show-all:hover {
  background: var(--cat-accent, #f59e0b);
  color: #fff;
  border-style: solid;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .cat-comparison-summary {
    padding: 16px 16px 20px;
    border-radius: 0 0 12px 12px;
  }

  .cat-comparison-summary__title {
    font-size: 16px;
  }

  .cat-comparison-summary__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .cat-stat-card {
    padding: 12px;
  }

  .cat-stat-card__value {
    font-size: 20px;
  }

  .cat-top10-card {
    padding: 12px;
    gap: 10px;
  }

  .cat-top10-card__rank {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .cat-top10-card__rank--medal {
    width: 30px;
    height: 30px;
  }

  .cat-top10-card__name {
    font-size: 13px;
  }

  .cat-top10-card__rating {
    font-size: 14px;
  }

  .cat-top10-card__detail {
    gap: 6px;
    font-size: 10px;
  }

  .cat-sort-controls__row {
    flex-direction: column;
    gap: 8px;
  }
  .cat-sort-controls__item {
    min-width: 100%;
  }

  .cat-nav-switcher {
    padding: 12px;
  }
  .cat-nav-switcher__chips {
    gap: 6px;
  }
  .cat-nav-switcher__chip {
    padding: 5px 10px;
    font-size: 12px;
  }
}

/* ダークモード */
body.dark-mode .cat-comparison-summary {
  background: linear-gradient(180deg, #222530 0%, #252830 100%);
  border-color: rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-mode .cat-comparison-summary__title {
  color: #f3f4f6;
}

body.dark-mode .cat-comparison-summary__subtitle {
  color: #e5e7eb;
}

body.dark-mode .cat-stat-card {
  background: #2a2c30;
  border-color: #3a3c40;
}

body.dark-mode .cat-stat-card__value {
  color: #fbbf24;
}

body.dark-mode .cat-stat-card__value small {
  color: #93bbfd;
}

body.dark-mode .cat-stat-card__label {
  color: #9ca3af;
}

body.dark-mode .cat-top10-card {
  background: #2a2c2f;
  border-color: #3a3c40;
}

body.dark-mode .cat-top10-card:hover {
  border-color: var(--cat-accent, #fbbf24);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

body.dark-mode .cat-top10-card__rank {
  background: #3a3c40;
  border-color: #4a4c50;
  color: #9ca3af;
}

body.dark-mode .cat-top10-card__name {
  color: #f3f4f6;
}

body.dark-mode .cat-top10-card:hover .cat-top10-card__name {
  color: #93bbfd;
}

body.dark-mode .cat-top10-card__detail {
  color: #6b7280;
}

body.dark-mode .cat-top10-card__detail-item i {
  color: #4b5563;
}

body.dark-mode .cat-top10-card__rating {
  color: #f3f4f6;
}

body.dark-mode .cat-top10-card__price {
  color: #9ca3af;
}

body.dark-mode .cat-top10-card__rating--none { color: #4b5563; }
body.dark-mode .cat-top10-card__rating--none .cat-top10-card__star { color: #374151; }
body.dark-mode .cat-comparison-summary__studio-count { color: #6b7280; }

body.dark-mode .cat-brand-chip {
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(94, 234, 212, 0.3);
  color: #5eead4;
}

body.dark-mode .cat-brand-chip__count {
  background: #0d9488;
}

body.dark-mode .cat-nav-switcher {
  background: #2a2c30;
  border-color: #3a3c40;
}
body.dark-mode .cat-nav-switcher__title {
  color: #e5e7eb;
}
body.dark-mode .cat-nav-switcher__group-label {
  color: #6b7280;
}
body.dark-mode .cat-nav-switcher__chip--child {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .cat-nav-switcher__chip--type {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .cat-sort-controls {
  background: #2a2c30;
  border-color: #3a3c40;
}
body.dark-mode .cat-sort-controls__title {
  color: #e5e7eb;
}
body.dark-mode .cat-sort-controls__label {
  color: #9ca3af;
}
body.dark-mode .cat-sort-controls__select {
  background-color: #1d1f22;
  border-color: #3a3c40;
  color: #e5e7eb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239ca3af'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
}
body.dark-mode .cat-sort-controls__btn {
  background: var(--cat-accent-dark, #d97706);
}
body.dark-mode .cat-sort-controls__note {
  color: #6b7280;
}
body.dark-mode .cat-top10__show-all {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #9ca3af;
}
body.dark-mode .cat-top10__show-all:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
}

/* ============================================
   カテゴリページ — Cocoonメインループ非表示
   比較サマリーカードが全スタジオ一覧を担うため
   ============================================ */
body.category .entry-card-wrap,
body.category .pagination,
body.category .pagination-next,
body.category .pager-post-navi {
  display: none !important;
}
body.category #list.list {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* ============================================
   タグページ — Cocoonメインループ非表示
   比較サマリーカードが全スタジオ一覧を担うため
   ============================================ */
body.tag .entry-card-wrap,
body.tag .pagination,
body.tag .pagination-next,
body.tag .pager-post-navi {
  display: none !important;
}
body.tag #list.list {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
body.category .cat-comparison-summary {
  margin-bottom: 0 !important;
}
body.category .cat-page-footer {
  margin-top: 16px !important;
}

/* ============================================
   カテゴリページ — 記事一覧セクション見出し
   ============================================ */
/* カテゴリタイプ別カスタムプロパティ（記事一覧見出し用） */
.cat-article-list-heading {
  --cat-accent: #f59e0b;
  --cat-accent-dark: #d97706;
}
.cat-article-list-heading--route {
  --cat-accent: #6366f1;
  --cat-accent-dark: #4f46e5;
}
.cat-article-list-heading--brand {
  --cat-accent: #14b8a6;
  --cat-accent-dark: #0d9488;
}

.cat-article-list-heading {
  margin: 28px 0 16px;
  padding: 0 4px;
}

.cat-article-list-heading__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #374151;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cat-accent, #f59e0b);
}

.cat-article-list-heading__title i {
  color: var(--cat-accent, #f59e0b);
  font-size: 15px;
}

.cat-article-list-heading__title strong {
  color: var(--cat-accent-dark, #d97706);
}

.cat-article-list-heading__count {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  margin-left: auto;
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  .cat-article-list-heading {
    margin: 20px 0 12px;
  }

  .cat-article-list-heading__title {
    font-size: 14px;
  }
}

body.dark-mode .cat-article-list-heading__title {
  color: #e5e7eb;
  border-bottom-color: var(--cat-accent, #fbbf24);
}

body.dark-mode .cat-article-list-heading__title strong {
  color: #93bbfd;
}

body.dark-mode .cat-article-list-heading__count {
  color: #6b7280;
}

/* ============================================
   カテゴリページ — スティッキーフィルターバー
   ============================================ */
/* カテゴリタイプ別カスタムプロパティ（スティッキーフィルター用） */
.cat-sticky-filter {
  --cat-accent-chip-bg: rgba(245, 158, 11, 0.08);
  --cat-accent-dark: #d97706;
  --cat-accent-border: rgba(245, 158, 11, 0.2);
}

.cat-sticky-filter {
  display: none;
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 12px;
  margin: 0 -16px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cat-sticky-filter::-webkit-scrollbar {
  display: none;
}

.cat-sticky-filter.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cat-sticky-filter__group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  margin-right: 12px;
}

.cat-sticky-filter__group:last-child {
  margin-right: 0;
}

.cat-sticky-filter__label {
  flex-shrink: 0;
  font-size: 13px;
  color: #9ca3af;
}

.cat-sticky-filter__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cat-sticky-filter__chip--sibling {
  background: var(--cat-accent-chip-bg, rgba(245, 158, 11, 0.08));
  color: var(--cat-accent-dark, #d97706);
  border: 1px solid var(--cat-accent-border, rgba(26, 115, 232, 0.2));
}

.cat-sticky-filter__chip--sibling:hover,
.cat-sticky-filter__chip--sibling:active {
  background: var(--cat-accent-border, rgba(26, 115, 232, 0.2));
  color: var(--cat-accent-dark, #d97706);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.cat-sticky-filter__chip--child {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.cat-sticky-filter__chip--child:hover,
.cat-sticky-filter__chip--child:active {
  background: #dbeafe;
  color: #1e40af;
  box-shadow: 0 1px 4px rgba(59, 130, 246, 0.3);
}

@media screen and (max-width: 768px) {
  .cat-sticky-filter {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
  }
}

body.dark-mode .cat-sticky-filter {
  background: rgba(29, 31, 34, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .cat-sticky-filter__label {
  color: #6b7280;
}

body.dark-mode .cat-sticky-filter__chip--sibling {
  background: rgba(96, 165, 250, 0.12);
  color: #93bbfd;
  border-color: rgba(96, 165, 250, 0.25);
}

body.dark-mode .cat-sticky-filter__chip--sibling:hover,
body.dark-mode .cat-sticky-filter__chip--sibling:active {
  background: rgba(96, 165, 250, 0.22);
  color: #bfdbfe;
}

body.dark-mode .cat-sticky-filter__chip--child {
  background: rgba(59, 130, 246, 0.12);
  color: #93bbfd;
  border-color: rgba(59, 130, 246, 0.3);
}

body.dark-mode .cat-sticky-filter__chip--child:hover,
body.dark-mode .cat-sticky-filter__chip--child:active {
  background: rgba(59, 130, 246, 0.22);
  color: #bfdbfe;
}

/* ============================================
   タグページ — カスタムヘッダー
   リード文・関連タグ・エリアフィルター・FAQ
   ============================================ */
.tag-page-header {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);
  border-radius: 16px 16px 0 0;
  box-shadow:
    0 4px 24px rgba(245, 158, 11, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-bottom: none;
  padding: 28px 24px 20px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.tag-page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* タイトル行 */
.tag-page-header__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tag-page-header__icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.tag-page-header__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.3;
}

.tag-page-header__count {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* リード文 */
.tag-page-header__lead {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
}

/* 関連タグ */
.tag-page-header__related {
  margin-bottom: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 10px;
}

.tag-page-header__related-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.tag-page-header__related-label i {
  margin-right: 4px;
  color: #f59e0b;
}

.tag-page-header__related-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-page-header__related-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 20px;
  color: #4a5568;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}

.tag-page-header__related-chip:hover {
  background: #f59e0b;
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25);
  text-decoration: none;
}

.tag-page-header__chip-count {
  font-size: 10px;
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 10px;
  color: #9ca3af;
  line-height: 1.6;
}

.tag-page-header__related-chip:hover .tag-page-header__chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* エリアフィルター */
.tag-page-header__area-filter {
  margin-bottom: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 10px;
}

.tag-page-header__area-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.tag-page-header__area-label i {
  margin-right: 4px;
  color: #ef4444;
}

.tag-page-header__area-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-page-header__area-chip {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}

.tag-page-header__area-chip:hover {
  background: #fef3e2;
  border-color: #f59e0b;
  color: #92400e;
  text-decoration: none;
  transform: translateY(-1px);
}

.tag-page-header__area-empty {
  font-size: 13px;
  color: #9ca3af;
}

/* FAQ セクション */
.tag-page-header__faq {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
}

.tag-page-header__faq-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-page-header__faq-title i {
  color: #f59e0b;
  font-size: 16px;
}

.tag-page-faq-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #f3f4f6;
}

.tag-page-faq-item:last-child {
  margin-bottom: 0;
}

.tag-page-faq-item__q,
.tag-page-faq-item__a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
}

.tag-page-faq-item__q {
  background: #fffbf5;
  border-bottom: 1px solid #fde68a;
}

.tag-page-faq-item__icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.tag-page-faq-item__q .tag-page-faq-item__icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

.tag-page-faq-item__a .tag-page-faq-item__icon {
  background: linear-gradient(135deg, #3a6b5c, #2f5a4e);
  color: #fff;
}

.tag-page-faq-item__q .tag-page-faq-item__text {
  font-weight: 600;
  color: #333;
  line-height: 1.6;
  font-size: 14px;
  padding-top: 3px;
}

.tag-page-faq-item__a .tag-page-faq-item__text {
  color: #555;
  line-height: 1.7;
  font-size: 14px;
  padding-top: 3px;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .tag-page-header {
    padding: 20px 16px 16px;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
  }

  .tag-page-header__title-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .tag-page-header__icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
    border-radius: 10px;
  }

  .tag-page-header__title {
    font-size: 18px;
  }

  .tag-page-header__count {
    font-size: 12px;
    padding: 3px 10px;
  }

  .tag-page-header__lead {
    font-size: 13px;
  }

  .tag-page-header__related,
  .tag-page-header__area-filter {
    padding: 12px;
  }

  .tag-page-header__related-chip {
    font-size: 12px;
    padding: 5px 12px;
  }

  .tag-page-header__area-chip {
    font-size: 12px;
    padding: 5px 12px;
  }

  .tag-page-faq-item__q,
  .tag-page-faq-item__a {
    padding: 12px 14px;
  }

  .tag-page-faq-item__q .tag-page-faq-item__text,
  .tag-page-faq-item__a .tag-page-faq-item__text {
    font-size: 13px;
  }
}

/* ダークモード */
body.dark-mode .tag-page-header {
  background: linear-gradient(180deg, #1d1f22 0%, #222530 100%);
  border-color: rgba(245, 158, 11, 0.2);
  border-bottom-color: transparent;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-mode .tag-page-header::before {
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
}

body.dark-mode .tag-page-header__title {
  color: #f3f4f6;
}

body.dark-mode .tag-page-header__lead {
  color: #9ca3af;
}

body.dark-mode .tag-page-header__related {
  background: #1a1c20;
}

body.dark-mode .tag-page-header__related-label {
  color: #9ca3af;
}

body.dark-mode .tag-page-header__related-chip {
  background: #2d3748;
  border-color: rgba(245, 158, 11, 0.25);
  color: #a0aec0;
}

body.dark-mode .tag-page-header__related-chip:hover {
  background: #b45309;
  color: #fff;
}

body.dark-mode .tag-page-header__chip-count {
  background: #4a5568;
  color: #a0aec0;
}

body.dark-mode .tag-page-header__related-chip:hover .tag-page-header__chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

body.dark-mode .tag-page-header__area-filter {
  background: #1a1c20;
}

body.dark-mode .tag-page-header__area-label {
  color: #9ca3af;
}

body.dark-mode .tag-page-header__area-chip {
  background: #2d3748;
  border-color: #4a5568;
  color: #a0aec0;
}

body.dark-mode .tag-page-header__area-chip:hover {
  background: #374151;
  border-color: #f59e0b;
  color: #fbbf24;
}

body.dark-mode .tag-page-header__faq {
  border-top-color: #333;
}

body.dark-mode .tag-page-header__faq-title {
  color: #f3f4f6;
}

body.dark-mode .tag-page-faq-item {
  background: #1d1f22;
  border-color: #333;
}

body.dark-mode .tag-page-faq-item__q {
  background: #2a2416;
  border-bottom-color: #3d3420;
}

body.dark-mode .tag-page-faq-item__a {
  background: #1d1f22;
}

body.dark-mode .tag-page-faq-item__q .tag-page-faq-item__text {
  color: #eee;
}

body.dark-mode .tag-page-faq-item__a .tag-page-faq-item__text {
  color: #bbb;
}

/* ============================================
   タグページ — フッター（関連タグ・エリア・FAQ）
   ページネーション下に表示
   ============================================ */
.tag-page-footer {
  background: linear-gradient(180deg, #ffffff 0%, #fefcf8 100%);
  border-radius: 16px;
  box-shadow:
    0 4px 24px rgba(245, 158, 11, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.12);
  padding: 28px 32px;
  margin-top: 32px;
}

@media screen and (max-width: 768px) {
  .tag-page-footer {
    padding: 20px 16px;
    border-radius: 12px;
    margin-top: 24px;
  }
}

body.dark-mode .tag-page-footer {
  background: linear-gradient(180deg, #1d1f22 0%, #252830 100%);
  border-color: rgba(245, 158, 11, 0.15);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ============================================
   タグページ — 横断比較サマリーテーブル
   ============================================ */
.tag-comparison-summary {
  background: linear-gradient(180deg, #fffdf9 0%, #fffbf2 100%);
  border-radius: 0 0 16px 16px;
  box-shadow:
    0 4px 24px rgba(245, 158, 11, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-top: 1px dashed rgba(245, 158, 11, 0.2);
  padding: 24px 24px 28px;
  margin-top: 0;
  margin-bottom: 28px;
}

.tag-comparison-summary__title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-comparison-summary__title i {
  color: #f59e0b;
}

.tag-comparison-summary__subtitle {
  margin: 20px 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #374151;
}

/* 統計カード（グリッド） */
.tag-comparison-summary__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.tag-stat-card {
  background: #fffbf5;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}

.tag-stat-card__value {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #b45309;
  line-height: 1.2;
  margin-bottom: 4px;
}

.tag-stat-card__value small {
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
}

.tag-stat-card__label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

/* TOP5 カードリスト */
.tag-top5 {
  margin-top: 4px;
}

.tag-top5__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tag-top5-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tag-top5-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}

/* 順位バッジ */
.tag-top5-card__rank {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  font-size: 15px;
  font-weight: 800;
  color: #6b7280;
}

.tag-top5-card__rank--medal {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
}
.tag-top5-card__rank--medal img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* 中央情報 */
.tag-top5-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tag-top5-card__brand {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  padding: 1px 8px;
  border-radius: 4px;
  width: fit-content;
  line-height: 1.6;
}

.tag-top5-card__name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-top5-card:hover .tag-top5-card__name {
  color: #b45309;
}

.tag-top5-card__detail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 3px;
  line-height: 1.3;
}

.tag-top5-card__detail-item {
  white-space: nowrap;
}

.tag-top5-card__detail-item i {
  margin-right: 3px;
  font-size: 10px;
  color: #d1d5db;
}

/* 右側メトリクス */
.tag-top5-card__meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.tag-top5-card__rating {
  font-size: 16px;
  font-weight: 800;
  color: #1f2937;
  white-space: nowrap;
}

.tag-top5-card__star {
  color: #f59e0b;
  font-size: 14px;
}

.tag-top5-card__price {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}

/* ブランド分布チップ */
.tag-brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #0f766e;
}

.tag-brand-chip__count {
  background: #14b8a6;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .tag-comparison-summary {
    padding: 16px 16px 20px;
    border-radius: 0 0 12px 12px;
  }

  .tag-comparison-summary__title {
    font-size: 16px;
  }

  .tag-comparison-summary__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .tag-stat-card {
    padding: 12px;
  }

  .tag-stat-card__value {
    font-size: 20px;
  }

  .tag-top5-card {
    padding: 12px;
    gap: 10px;
  }

  .tag-top5-card__rank {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .tag-top5-card__rank--medal {
    width: 30px;
    height: 30px;
  }

  .tag-top5-card__name {
    font-size: 13px;
  }

  .tag-top5-card__rating {
    font-size: 14px;
  }

  .tag-top5-card__detail {
    gap: 6px;
    font-size: 10px;
  }
}

/* ダークモード */
body.dark-mode .tag-comparison-summary {
  background: linear-gradient(180deg, #222530 0%, #252830 100%);
  border-color: rgba(245, 158, 11, 0.2);
  border-top-color: rgba(245, 158, 11, 0.15);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-mode .tag-comparison-summary__title {
  color: #f3f4f6;
}

body.dark-mode .tag-comparison-summary__subtitle {
  color: #e5e7eb;
}

body.dark-mode .tag-stat-card {
  background: #2a2416;
  border-color: #3d3420;
}

body.dark-mode .tag-stat-card__value {
  color: #fbbf24;
}

body.dark-mode .tag-stat-card__value small {
  color: #f59e0b;
}

body.dark-mode .tag-stat-card__label {
  color: #9ca3af;
}

body.dark-mode .tag-top5-card {
  background: #2a2c2f;
  border-color: #3a3c40;
}

body.dark-mode .tag-top5-card:hover {
  border-color: #d97706;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

body.dark-mode .tag-top5-card__rank {
  background: #3a3c40;
  border-color: #4a4c50;
  color: #9ca3af;
}

body.dark-mode .tag-top5-card__brand {
  background: linear-gradient(135deg, #d97706, #b45309);
}

body.dark-mode .tag-top5-card__name {
  color: #f3f4f6;
}

body.dark-mode .tag-top5-card:hover .tag-top5-card__name {
  color: #fbbf24;
}

body.dark-mode .tag-top5-card__detail {
  color: #6b7280;
}

body.dark-mode .tag-top5-card__detail-item i {
  color: #4b5563;
}

body.dark-mode .tag-top5-card__rating {
  color: #f3f4f6;
}

body.dark-mode .tag-top5-card__price {
  color: #9ca3af;
}

body.dark-mode .tag-brand-chip {
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(94, 234, 212, 0.3);
  color: #5eead4;
}

body.dark-mode .tag-brand-chip__count {
  background: #0d9488;
}

/* ============================================
   記事一覧セクション見出し
   ============================================ */
.tag-article-list-heading {
  margin: 28px 0 16px;
  padding: 0 4px;
}

.tag-article-list-heading__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #374151;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #f59e0b;
}

.tag-article-list-heading__title i {
  color: #f59e0b;
  font-size: 15px;
}

.tag-article-list-heading__title strong {
  color: #b45309;
}

.tag-article-list-heading__count {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  margin-left: auto;
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  .tag-article-list-heading {
    margin: 20px 0 12px;
  }

  .tag-article-list-heading__title {
    font-size: 14px;
  }
}

body.dark-mode .tag-article-list-heading__title {
  color: #e5e7eb;
  border-bottom-color: #d97706;
}

body.dark-mode .tag-article-list-heading__title strong {
  color: #fbbf24;
}

body.dark-mode .tag-article-list-heading__count {
  color: #6b7280;
}

/* ========================================
   スマホ向けスティッキーフィルターバー
   ======================================== */
.tag-sticky-filter {
  display: none;              /* デスクトップでは非表示 */
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 12px;
  margin: 0 -16px;            /* 親のpaddingを打ち消して全幅化 */
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tag-sticky-filter::-webkit-scrollbar {
  display: none;
}

/* IntersectionObserverで制御：ヘッダーが画面外になったら表示 */
.tag-sticky-filter.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tag-sticky-filter__group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  margin-right: 12px;
}

.tag-sticky-filter__group:last-child {
  margin-right: 0;
}

.tag-sticky-filter__label {
  flex-shrink: 0;
  font-size: 13px;
  color: #9ca3af;
}

.tag-sticky-filter__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tag-sticky-filter__chip--tag {
  background: #fef3e2;
  color: #b45309;
  border: 1px solid #fde68a;
}

.tag-sticky-filter__chip--tag:hover,
.tag-sticky-filter__chip--tag:active {
  background: #fde68a;
  color: #92400e;
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.3);
}

.tag-sticky-filter__chip--area {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.tag-sticky-filter__chip--area:hover,
.tag-sticky-filter__chip--area:active {
  background: #dbeafe;
  color: #1e40af;
  box-shadow: 0 1px 4px rgba(59, 130, 246, 0.3);
}

/* スマホでのみ表示 */
@media screen and (max-width: 768px) {
  .tag-sticky-filter {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
  }
}

/* タブレット縦（任意：769px-1023pxでも表示したい場合は調整） */

/* ダークモード */
body.dark-mode .tag-sticky-filter {
  background: rgba(29, 31, 34, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .tag-sticky-filter__label {
  color: #6b7280;
}

body.dark-mode .tag-sticky-filter__chip--tag {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

body.dark-mode .tag-sticky-filter__chip--tag:hover,
body.dark-mode .tag-sticky-filter__chip--tag:active {
  background: rgba(245, 158, 11, 0.25);
  color: #fde68a;
}

body.dark-mode .tag-sticky-filter__chip--area {
  background: rgba(59, 130, 246, 0.12);
  color: #93bbfd;
  border-color: rgba(59, 130, 246, 0.3);
}

body.dark-mode .tag-sticky-filter__chip--area:hover,
body.dark-mode .tag-sticky-filter__chip--area:active {
  background: rgba(59, 130, 246, 0.22);
  color: #bfdbfe;
}

/* ==================================================
 * タグページ拡張CSS（カテゴリページ構成統一）
 * - 最終更新日
 * - 並び替えコントロール
 * - スタジオ一覧のshow-more/hidden
 * - 評価なしスタジオ
 * - ナビスイッチャー
 * ================================================== */

/* --- 最終更新日 --- */
.tag-page-header__updated {
  display: block;
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

/* --- 並び替えコントロール --- */
.tag-sort-controls {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #f3f4f6;
}

.tag-sort-controls__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 10px;
}

.tag-sort-controls__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tag-sort-controls__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
  flex: 1;
}

.tag-sort-controls__label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}

.tag-sort-controls__select {
  padding: 8px 32px 8px 12px;
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  background: #fff;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
}

.tag-sort-controls__select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.06);
}

.tag-sort-controls__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 9px 20px;
  background: #f59e0b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-sort-controls__btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.tag-sort-controls__note {
  margin: 8px 0 0;
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.5;
}

/* --- スタジオ一覧のhidden/show-all --- */
.tag-top5-card--hidden {
  display: none !important;
}

.tag-top5__show-all {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px dashed rgba(245, 158, 11, 0.15);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #d97706;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-top5__show-all:hover {
  background: #f59e0b;
  color: #fff;
  border-style: solid;
}

/* --- 評価なしスタジオ --- */
.tag-top5-card__rating--none {
  color: #d1d5db;
  font-weight: 500;
}

.tag-top5-card__rating--none .tag-top5-card__star {
  color: #e5e7eb;
}

/* --- ナビスイッチャー --- */
.tag-nav-switcher {
  margin: 16px 0;
  padding: 16px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #f3f4f6;
}

.tag-nav-switcher__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tag-nav-switcher__group {
  margin-bottom: 12px;
}

.tag-nav-switcher__group:last-child {
  margin-bottom: 0;
}

.tag-nav-switcher__group-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-nav-switcher__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-nav-switcher__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-nav-switcher__chip--tag {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.tag-nav-switcher__chip--tag:hover {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
}

.tag-nav-switcher__chip--area {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
}

.tag-nav-switcher__chip--area:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

.tag-nav-switcher__chip-count {
  background: #f59e0b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

/* --- レスポンシブ（768px以下） --- */
@media screen and (max-width: 768px) {
  .tag-sort-controls__row {
    flex-direction: column;
    gap: 8px;
  }

  .tag-sort-controls__item {
    min-width: 0;
  }

  .tag-nav-switcher {
    padding: 12px;
  }

  .tag-nav-switcher__chips {
    gap: 6px;
  }

  .tag-nav-switcher__chip {
    padding: 5px 10px;
    font-size: 12px;
  }
}

/* --- ダークモード --- */
body.dark-mode .tag-page-header__updated {
  color: #6b7280;
}

body.dark-mode .tag-sort-controls {
  background: #1f2937;
  border-color: #374151;
}

body.dark-mode .tag-sort-controls__title {
  color: #e5e7eb;
}

body.dark-mode .tag-sort-controls__label {
  color: #9ca3af;
}

body.dark-mode .tag-sort-controls__select {
  background: #111827;
  border-color: #374151;
  color: #e5e7eb;
}

body.dark-mode .tag-sort-controls__select:focus {
  border-color: #f59e0b;
}

body.dark-mode .tag-sort-controls__btn {
  background: #d97706;
}

body.dark-mode .tag-top5__show-all {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

body.dark-mode .tag-top5__show-all:hover {
  background: #d97706;
  color: #fff;
}

body.dark-mode .tag-top5-card__rating--none {
  color: #4b5563;
}

body.dark-mode .tag-top5-card__rating--none .tag-top5-card__star {
  color: #374151;
}

body.dark-mode .tag-nav-switcher {
  background: #1f2937;
  border-color: #374151;
}

body.dark-mode .tag-nav-switcher__title {
  color: #e5e7eb;
}

body.dark-mode .tag-nav-switcher__group-label {
  color: #6b7280;
}

body.dark-mode .tag-nav-switcher__chip--tag {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}

body.dark-mode .tag-nav-switcher__chip--tag:hover {
  background: #d97706;
  color: #fff;
}

body.dark-mode .tag-nav-switcher__chip--area {
  background: #111827;
  border-color: #374151;
  color: #9ca3af;
}

body.dark-mode .tag-nav-switcher__chip--area:hover {
  background: #1f2937;
  color: #e5e7eb;
}

body.dark-mode .tag-nav-switcher__chip-count {
  background: #d97706;
}

/* ============================
   Geoサジェスト
   ============================ */
.geo-suggest {
  margin: 2em 0;
}
.geo-suggest__header {
  margin-bottom: 0.8em;
}
/* Cocoon TOC自動IDによるデフォルトh2スタイル（border-left等）を上書き */
.geo-suggest h2.geo-suggest__title {
  font-size: 1.25em;
  font-weight: 700;
  color: #333;
  margin: 0 0 0.2em;
  padding: 0;
  border: none;
  background: none;
}
.geo-suggest__content {
  min-height: 80px;
}
.geo-suggest__fallback {
  text-align: center;
  padding: 1em 0;
}
.geo-suggest__explore-all {
  text-align: center;
  margin-top: 1em;
  padding-top: 0.5em;
}
.geo-suggest__explore-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.55em 1.3em;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 999px;
  color: #b45309;
  font-size: 0.85em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.geo-suggest__explore-link:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  text-decoration: none;
}
.geo-suggest__explore-arrow::after {
  content: '\f061';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 0.85em;
}
body.dark-mode .geo-suggest h2.geo-suggest__title {
  color: #e0e0e0;
}
body.dark-mode .geo-suggest__explore-link {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}
body.dark-mode .geo-suggest__explore-link:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.4);
}
/* bottom位置の見出し風ラベル（divベース、TOC非登録） */
.geo-suggest__visual-label {
  font-size: 1.1em;
  font-weight: 700;
  color: #555;
  margin: 0 0 0.3em;
  padding: 0.3em 0;
  border-bottom: 2px solid rgba(245, 158, 11, 0.3);
  display: inline-block;
}
body.dark-mode .geo-suggest__visual-label {
  color: #ccc;
  border-bottom-color: rgba(245, 158, 11, 0.4);
}

/* エリア選択UI */
.geo-suggest__area-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.4em;
}
.geo-suggest__area-selector > button {
  flex-shrink: 0;
  white-space: nowrap;
}
/* ピル型ボタン — エリア変更（amber系） */
.geo-suggest__area-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.4em 1em;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  color: #b45309;
  font-size: 0.82em;
  cursor: pointer;
  transition: all 0.2s;
}
.geo-suggest__area-toggle:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
}
.geo-suggest__area-toggle::before {
  content: '\f3c5';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 0.9em;
}
/* ピル型ボタン — 現在地リセット（teal系） */
.geo-suggest__reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.4em 1em;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: 999px;
  color: #0f766e;
  font-size: 0.82em;
  cursor: pointer;
  transition: all 0.2s;
}
.geo-suggest__reset-btn:hover {
  background: rgba(20, 184, 166, 0.15);
  border-color: rgba(20, 184, 166, 0.4);
}
.geo-suggest__reset-btn::before {
  content: '\f124';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 0.9em;
}
/* ピル型ボタン — 精度向上（blue-gray系） */
.geo-suggest__precise-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.4em 1em;
  background: rgba(100, 116, 139, 0.08);
  border: 1px solid rgba(100, 116, 139, 0.25);
  border-radius: 999px;
  color: #475569;
  font-size: 0.82em;
  cursor: pointer;
  transition: all 0.2s;
}
.geo-suggest__precise-btn:hover {
  background: rgba(100, 116, 139, 0.15);
  border-color: rgba(100, 116, 139, 0.4);
}
.geo-suggest__precise-btn::before {
  content: '\f05b';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 0.9em;
}
/* ローディング状態 */
.geo-suggest__precise-btn--loading {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
}
.geo-suggest__precise-btn--loading::before {
  display: none;
}
.geo-suggest__area-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 0.2em;
}
/* カスケードセレクター行（L3/L4/L5横並び） */
.geo-suggest__cascade-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 0.2em;
}
.geo-suggest__pref-select,
.geo-suggest__city-select,
.geo-suggest__ward-select {
  padding: 6px 10px;
  border: 1px solid #d4a574;
  border-radius: 6px;
  font-size: 0.9em;
  background: #fff;
  min-width: 120px;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}
.geo-suggest__pref-select:focus,
.geo-suggest__city-select:focus,
.geo-suggest__ward-select:focus {
  border-color: #f59e0b;
  outline: none;
  box-shadow: 0 0 0 2px rgba(245,158,11,0.2);
}
/* 「この条件で探す」ボタン */
.geo-suggest__apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.6em 1.6em;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.4em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
  letter-spacing: 0.03em;
}
.geo-suggest__apply-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}
.geo-suggest__apply-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.2);
}
.geo-suggest__apply-btn:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}
.geo-suggest__apply-btn i {
  font-size: 0.85em;
}
body.dark-mode .geo-suggest__apply-btn {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}
body.dark-mode .geo-suggest__apply-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #b45309, #92400e);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4);
}
body.dark-mode .geo-suggest__apply-btn:disabled {
  background: #374151;
  color: #6b7280;
  box-shadow: none;
}
@media screen and (max-width: 768px) {
  .geo-suggest__apply-btn {
    width: 100%;
    justify-content: center;
    padding: 0.65em 1em;
  }
}

/* disabled状態（グレーアウト） */
.geo-suggest__city-select:disabled,
.geo-suggest__ward-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
  color: #999;
}
/* ダークモード */
body.dark-mode .geo-suggest__area-toggle {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}
body.dark-mode .geo-suggest__reset-btn {
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.3);
  color: #5eead4;
}
body.dark-mode .geo-suggest__precise-btn {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}
body.dark-mode .geo-suggest__pref-select,
body.dark-mode .geo-suggest__city-select,
body.dark-mode .geo-suggest__ward-select {
  background: #2d2d2d;
  color: #e0e0e0;
  border-color: #555;
}
body.dark-mode .geo-suggest__city-select:disabled,
body.dark-mode .geo-suggest__ward-select:disabled {
  background: #1a1a1a;
  opacity: 0.4;
  color: #666;
}
@media screen and (max-width: 768px) {
  .geo-suggest__cascade-row {
    flex-wrap: wrap;
  }
  .geo-suggest__pref-select,
  .geo-suggest__city-select,
  .geo-suggest__ward-select {
    flex: 1;
    min-width: 0;
  }
}
@media screen and (max-width: 480px) {
  .geo-suggest__area-selector {
    gap: 0.4em;
  }
  .geo-suggest__area-toggle,
  .geo-suggest__reset-btn,
  .geo-suggest__precise-btn {
    font-size: 0.78em;
    padding: 0.35em 0.8em;
  }
}

/* インフォグラフィック画像下の余白 */
.howto-step-image + p {
  margin-top: 1.5em;
}

/* ============================================
   エリアおすすめ記事 — 比較一覧テーブル
   ============================================ */
/* 注: 基本スタイルは L13160+ の統合ブロックに集約 */

/* --- ランキングバッジ --- */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
  margin-right: 6px;
  line-height: 1;
}

.rank-badge .fas {
  font-size: 10px;
  margin-right: 1px;
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
  color: #1f2937;
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
}

.rank-badge.rank-other {
  background: transparent;
  border: 1.5px solid #d1d5db;
  color: #6b7280;
  font-size: 12px;
}

/* --- 星レーティング --- */
.star-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 52px;
}

.star-score {
  font-size: 16px;
  font-weight: 800;
  color: #d97706;
  line-height: 1;
}

.star-icons {
  display: flex;
  gap: 1px;
}

.star-icons .fas,
.star-icons .far {
  font-size: 10px;
  color: #f59e0b;
}

.star-icons .far {
  color: #d1d5db;
}

/* --- タグチップ --- */
td:has(> .tag-chip) {
  white-space: nowrap;
}
.tag-chip {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.6;
}

.tag-chip.tag-group {
  background: #dbeafe;
  color: #1d4ed8;
}

.tag-chip.tag-personal {
  background: #fef3c7;
  color: #92400e;
}

.tag-chip.tag-women {
  background: #fce7f3;
  color: #be185d;
}

.tag-chip.tag-coed {
  background: #d1fae5;
  color: #065f46;
}

.tag-chip.tag-conditional {
  background: #fff7ed;
  color: #c2410c;
}

.tag-chip.tag-machine {
  background: #ede9fe;
  color: #5b21b6;
}

.tag-chip.tag-mat {
  background: #e0e7ff;
  color: #3730a3;
}

/* --- 編集部評価 信頼性ボックス --- */
.editorial-trust-note {
  margin: 12px 0 24px;
  padding: 14px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 12.5px;
  color: #666;
  line-height: 1.7;
}

.editorial-trust-note a {
  color: #3a6b5c;
  text-decoration: underline;
}

.trust-note-title {
  font-weight: 700;
  font-size: 13px;
  color: #374151;
  margin: 0 0 8px;
}

.trust-note-title .fas {
  margin-right: 4px;
  color: #d97706;
}

.trust-note-criteria {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 8px;
}

.criteria-item {
  font-size: 12px;
  color: #374151;
}

.trust-note-link {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

/* --- 駅直結チップ --- */
.tag-chip.tag-direct {
  background: #fee2e2;
  color: #dc2626;
  font-weight: 700;
}

/* --- 口コミ評価 件数表示 --- */
.review-count {
  font-size: 10px;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
}

/* --- 料金比較テーブル --- */
/* PC: 横スクロール不要 → overflow:hidden で角丸クリップのみ
   SP: 横スクロール有効 → @media 内で overflow-x:auto に切替
   ※ trial-flow-table はPCでも横スクロールが必要なので除外 */
.scrollable-table:has(.area-pricing-table):not(:has(.trial-flow-table)) {
  overflow: hidden !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  width: 100%;
}
/* 体験料金テーブル: PC でテキスト折り返し許可（Cocoon parent の nowrap を上書き） */
.area-trial-table th,
.area-trial-table td {
  white-space: normal !important;
}
/* 体験料金テーブル: スタジオ名カラム — nowrap + <wbr> で制御された折り返し */
.area-trial-table thead th:nth-child(2),
.area-trial-table tbody td:nth-child(2) {
  width: auto;
  min-width: auto;
  max-width: none;
  white-space: nowrap !important;
}
/* PC: area-scroll-outer は料金テーブルでは不要（scroll-gradient/hint 非表示）
   ※ trial-flow-table はPCでもスクロールUIが必要なので除外 */
.area-scroll-outer:has(.area-pricing-table):not(:has(.trial-flow-table)) {
  display: contents;
}
.area-pricing-table {
  width: 100% !important;
  margin: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  overflow: visible !important;
  font-size: 14px;
  background: #fff;
}
.area-pricing-table thead th {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 600;
  padding: 12px 14px;
  text-align: center;
  border: none;
  font-size: 13px;
}
/* overflow:hidden でクリップされるので個別の角丸は不要 */
.area-pricing-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  text-align: center;
  font-size: 13.5px;
  vertical-align: middle;
}
/* 料金セル(2列目以降)は左揃え */
.area-pricing-table tbody td:not(:first-child) {
  text-align: left;
}
/* スタジオ名セル: 1列目（rank-col なし） */
.area-pricing-table tbody td:first-child {
  text-align: center;
  font-weight: 600;
  font-size: 13px;
}
/* スタジオ名セル: 2列目（rank-col あり）— 詳細度 0,2,3 > 上記 0,2,2 */
.area-pricing-table tbody td.rank-col + td {
  text-align: center;
  font-weight: 600;
  font-size: 13px;
}
/* ── 選び方セクション比較テーブル ── */
.area-pricing-table.htc-compare {
  table-layout: fixed;
  width: 100%;
}
.area-pricing-table.htc-compare tbody td {
  text-align: center;
  vertical-align: middle;
  word-break: break-word;
  overflow-wrap: break-word;
}
/* スタジオ名リンク */
.area-pricing-table tbody td:first-child a,
.area-pricing-table tbody td.rank-col + td a {
  color: #1e40af;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #93c5fd;
  padding: 1px 3px;
  border-radius: 3px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.area-pricing-table tbody td:first-child a:hover,
.area-pricing-table tbody td.rank-col + td a:hover {
  color: #1e3a8a;
  background: rgba(59, 130, 246, 0.08);
  border-bottom-color: #1e40af;
}
.area-pricing-table .price-tier {
  justify-content: center;
}
/* ゼブラストライプ: JS(.zebra-odd/.zebra-even)優先、フォールバックでnth-child */
.area-pricing-table tbody tr:nth-child(odd) td {
  background: #fff;
}
.area-pricing-table tbody tr:nth-child(even) td {
  background: #fff4e6;
}
.area-pricing-table tbody tr.zebra-odd td {
  background: #fff;
}
.area-pricing-table tbody tr.zebra-even td {
  background: #fff4e6;
}
.area-pricing-table tbody tr:hover {
  transition: background 0.2s ease;
}
.area-pricing-table tbody tr:hover td {
  background: #fde7c6;
}

/* --- 体験料金テーブル（area-trial-table） --- */
.area-pricing-table.area-trial-table tbody td,
.area-pricing-table.area-trial-table tbody td:not(:first-child) {
  text-align: center;
}
.area-trial-table tbody td:first-child:not(.rank-col) {
  min-width: 100px;
}
.area-trial-table tbody td.rank-col + td {
  min-width: 100px;
}

/* --- 入会金テーブル（area-admission-table） --- */
.area-pricing-table.area-admission-table tbody td,
.area-pricing-table.area-admission-table tbody td:not(:first-child) {
  text-align: center;
}
.area-admission-table tbody td:first-child:not(.rank-col) {
  min-width: 100px;
}
.area-admission-table tbody td.rank-col + td {
  min-width: 100px;
}

/* --- 体験フロー比較テーブル（trial-flow-table） --- */
.trial-flow-table {
  min-width: 900px;
}
.trial-flow-table th,
.trial-flow-table td {
  white-space: normal !important;
}
/* スタジオ名カラム — <wbr> でのみ折り返し、CJK自動改行を抑止 */
.trial-flow-table tbody td:first-child {
  min-width: 110px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
/* 予約方法・来店目安: center */
.trial-flow-table tbody td:nth-child(2),
.trial-flow-table tbody td:nth-child(3) {
  text-align: center;
}
/* 当日入会特典 */
.trial-flow-table tbody td:nth-child(6) {
  font-size: 12.5px;
}
/* 補足 small */
.trial-flow-table small {
  color: #6b7280;
  font-size: 11.5px;
}
body.dark-mode .trial-flow-table small {
  color: #9ca3af;
}

/* --- テーブル注意ブロック（editor-memo-box 警告版） --- */
.table-caution {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #ef4444;
  border-radius: 8px;
  padding: 18px 16px 14px 20px;
  margin: 12px 0 1.5em;
  position: relative;
  font-size: 13.5px;
  line-height: 1.7;
  color: #7f1d1d;
}
.table-caution p {
  margin: 0;
}
.table-caution__label {
  position: absolute;
  top: -10px;
  left: 16px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.table-caution__label::before {
  content: '\f071';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 10px;
}
body.dark-mode .table-caution {
  background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 100%);
  border-color: #dc2626;
  color: #fecaca;
}

/* セミパーソナルバッジ */
.tag-chip.tag-semi {
  background: #d1fae5;
  color: #065f46;
}
body.dark-mode .tag-chip.tag-semi {
  background: #064e3b;
  color: #6ee7b7;
}

/* --- 料金 目的別おすすめボックス --- */
.price-recommend-box {
  background: #fffbf5;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.price-recommend-box h4 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #92400e;
  font-weight: 700;
}
.price-recommend-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.price-recommend-box li {
  padding: 8px 0;
  border-bottom: 1px dotted #fde68a;
  font-size: 14px;
  line-height: 1.6;
}
.price-recommend-box li:last-child {
  border-bottom: none;
}
.price-recommend-box a {
  color: #1e40af;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #93c5fd;
  padding: 1px 4px;
  border-radius: 3px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.price-recommend-box a:hover {
  color: #1e3a8a;
  background: rgba(59, 130, 246, 0.08);
  border-bottom-color: #1e40af;
}
.price-recommend-box h4 .price-recommend-sub {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: #78716c;
  margin-top: 4px;
}
body.dark-mode .price-recommend-box {
  background: #1c1917;
  border-color: #78350f;
  border-left-color: #d97706;
}
body.dark-mode .price-recommend-box h4 {
  color: #fbbf24;
}
body.dark-mode .price-recommend-box li {
  border-color: #78350f;
}
body.dark-mode .area-pricing-table tbody td:first-child a,
body.dark-mode .area-pricing-table tbody td.rank-col + td a {
  color: #93c5fd;
  border-bottom-color: #3b82f6;
}
body.dark-mode .area-pricing-table tbody td:first-child a:hover,
body.dark-mode .area-pricing-table tbody td.rank-col + td a:hover {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.12);
  border-bottom-color: #93c5fd;
}
body.dark-mode .price-recommend-box a {
  color: #93c5fd;
  border-bottom-color: #3b82f6;
}
body.dark-mode .price-recommend-box a:hover {
  background: rgba(59, 130, 246, 0.12);
  border-bottom-color: #93c5fd;
}
body.dark-mode .price-recommend-box h4 .price-recommend-sub {
  color: #78716c;
}

/* --- 料金クイックサマリー --- */
.price-quick-facts-wrap {
  position: relative;
  margin: 1.5em 0;
  padding: 0;
  background: linear-gradient(135deg, rgba(240,249,255,0.15) 0%, rgba(224,242,254,0.12) 100%);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(125,211,252,0.3);
  border-radius: 12px;
  overflow: visible;
}
.price-quick-facts-wrap[style*="background-image"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  z-index: 0;
}
.price-quick-facts-wrap[style*="background-image"] > *:not(.price-quick-facts-label) {
  position: relative;
  z-index: 1;
}
.price-quick-facts-label {
  position: absolute;
  top: 0;
  left: 16px;
  transform: translateY(-50%);
  z-index: 2;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  line-height: 1.6;
  margin: 0;
}
.price-quick-facts-label i {
  font-size: 10px;
  margin-right: 3px;
}
.price-quick-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0 !important;
  padding: 22px 20px 16px;
  font-size: 14px;
  line-height: 1.7;
}
.price-quick-facts dt {
  font-weight: 700;
  color: #0369a1;
  white-space: nowrap;
}
.price-quick-facts dt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 12px;
  width: 16px;
  display: inline-block;
  text-align: center;
  color: #0284c7;
  margin-right: 6px;
}
.price-quick-facts dt:nth-of-type(1)::before { content: "\f51e"; } /* fa-coins: 都度払い */
.price-quick-facts dt:nth-of-type(2)::before { content: "\f157"; } /* fa-yen-sign: 月額 */
.price-quick-facts dt:nth-of-type(3)::before { content: "\f1e0"; } /* fa-share-alt: 通い放題 */
.price-quick-facts dt:nth-of-type(4)::before { content: "\f007"; } /* fa-user: パーソナル */
.price-quick-facts dt:nth-of-type(5)::before { content: "\f0c0"; } /* fa-users: セミパーソナル */
.price-quick-facts dt:nth-of-type(6)::before { content: "\f3ff"; } /* fa-ticket-alt: 体験無料 */
.price-quick-facts dd {
  margin: 0;
  color: #0c4a6e;
}
.price-quick-facts dd a {
  color: #1e40af;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #93c5fd;
  padding: 1px 3px;
  border-radius: 3px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.price-quick-facts dd a:hover {
  color: #1e3a8a;
  background: rgba(59, 130, 246, 0.08);
  border-bottom-color: #1e40af;
}
@media screen and (max-width: 480px) {
  .price-quick-facts {
    grid-template-columns: 1fr;
    gap: 2px 0;
    padding: 20px 16px 14px;
    font-size: 13px;
  }
  .price-quick-facts dt {
    margin-top: 6px;
  }
  .price-quick-facts dt:first-child {
    margin-top: 0;
  }
}
body.dark-mode .price-quick-facts-wrap {
  background: linear-gradient(135deg, #0c1929 0%, #172554 100%);
  border-color: #1e40af;
}
body.dark-mode .price-quick-facts-label {
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
}
body.dark-mode .price-quick-facts dt {
  color: #7dd3fc;
}
body.dark-mode .price-quick-facts dt::before {
  color: #38bdf8;
}
body.dark-mode .price-quick-facts dd {
  color: #bae6fd;
}
body.dark-mode .price-quick-facts dd a {
  color: #93c5fd;
  border-bottom-color: #3b82f6;
}
body.dark-mode .price-quick-facts dd a:hover {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.12);
  border-bottom-color: #93c5fd;
}

/* --- PC・SP共通: 比較テーブル横スクロール + 角丸 --- */
.scrollable-table:has(.area-comparison-table),
.scrollable-table.area-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
.scrollable-table.area-scroll {
  margin-top: 9px;
}
/* スクロールバーとテーブルの間の余白（横スクロール時のみ） */
.scrollable-table.area-scroll:not(.no-hscroll)::after {
  content: '';
  display: block;
  height: 12px;
}

.area-comparison-table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  overflow: visible !important;
  width: 100%;
  min-width: 1000px;
}

.area-comparison-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  padding: 12px 10px;
  text-align: center;
  white-space: nowrap;
  border: none;
  letter-spacing: 0.02em;
}

.area-comparison-table tbody td {
  padding: 10px 10px;
  border: none;
  font-size: 13px;
  vertical-align: middle;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
}
/* 料金セル(5列目): tdは左揃え、thは中央揃え・最小幅確保 */
.area-comparison-table tbody td:nth-child(5) {
  text-align: left;
  min-width: 330px;
}
.area-comparison-table thead th:nth-child(5) {
  text-align: center;
  min-width: 330px;
}

.area-comparison-table tbody tr:nth-child(odd) td {
  background: #fff;
}
.area-comparison-table tbody tr:nth-child(even) td {
  background: #fff4e6;
}
.area-comparison-table tbody tr:hover td {
  background: #fde7c6;
}

/* 順位列スタイル */
.area-comparison-table thead th.rank-col,
.area-comparison-table tbody td.rank-col,
.area-pricing-table thead th.rank-col,
.area-pricing-table tbody td.rank-col {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  padding: 6px 4px;
  text-align: center;
  box-sizing: border-box;
}

/* 1列目 sticky（順位列） */
.area-comparison-table thead th:first-child,
.area-comparison-table tbody td:first-child {
  position: sticky !important;
  left: 0 !important;
  z-index: 4;
  box-shadow: none;
}

.area-comparison-table thead th:first-child {
  z-index: 6;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.area-comparison-table tbody tr:nth-child(odd) td:first-child {
  background: #fff;
}
.area-comparison-table tbody tr:nth-child(even) td:first-child {
  background: #fff4e6;
}
.area-comparison-table tbody tr:hover td:first-child {
  background: #fde7c6;
}

/* 2列目 sticky（スタジオ名列） */
.area-comparison-table thead th:nth-child(2),
.area-comparison-table tbody td:nth-child(2) {
  position: sticky !important;
  left: 40px !important;
  z-index: 3;
  font-weight: 600;
}

.area-comparison-table thead th:nth-child(2) {
  z-index: 5;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.area-comparison-table tbody tr:nth-child(odd) td:nth-child(2) {
  background: #fff;
}
.area-comparison-table tbody tr:nth-child(even) td:nth-child(2) {
  background: #fff4e6;
}
.area-comparison-table tbody tr:hover td:nth-child(2) {
  background: #fde7c6;
}

/* 比較一覧テーブル内リンク */
.area-comparison-table tbody td a {
  color: #1e40af;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #93c5fd;
  padding: 1px 3px;
  border-radius: 3px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.area-comparison-table tbody td a:hover {
  color: #1e3a8a;
  background: rgba(59, 130, 246, 0.08);
  border-bottom-color: #1e40af;
}
body.dark-mode .area-comparison-table tbody td a {
  color: #93c5fd;
  border-bottom-color: #3b82f6;
}
body.dark-mode .area-comparison-table tbody td a:hover {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.12);
  border-bottom-color: #93c5fd;
}

/* --- 料金テーブル: 1,2列目 sticky（モバイルスクロール時） --- */
.area-pricing-table thead th:first-child,
.area-pricing-table tbody td:first-child {
  position: sticky !important;
  left: 0 !important;
  z-index: 4;
}
.area-pricing-table thead th:first-child {
  z-index: 6;
}
.area-pricing-table tbody td:first-child {
  background: #fff;
}
.area-pricing-table tbody tr.zebra-even td:first-child {
  background: #fff4e6;
}
.area-pricing-table tbody tr:hover td:first-child {
  background: #fde7c6;
}
.area-pricing-table thead th:nth-child(2),
.area-pricing-table tbody td:nth-child(2) {
  position: sticky !important;
  left: 40px !important;
  z-index: 3;
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  white-space: nowrap;
}
.area-pricing-table thead th:nth-child(2) {
  z-index: 5;
}
.area-pricing-table tbody td:nth-child(2) {
  background: #fff;
}
.area-pricing-table tbody tr.zebra-even td:nth-child(2) {
  background: #fff4e6;
}
.area-pricing-table tbody tr:hover td:nth-child(2) {
  background: #fde7c6;
}
body.dark-mode .area-pricing-table tbody tr:nth-child(odd) td,
body.dark-mode .area-pricing-table tbody tr.zebra-odd td {
  background: #1e293b;
}
body.dark-mode .area-pricing-table tbody tr:nth-child(even) td,
body.dark-mode .area-pricing-table tbody tr.zebra-even td {
  background: #283548;
}
body.dark-mode .area-pricing-table tbody tr:hover td {
  background: #334155;
}
@media screen and (max-width: 768px) {
  body.dark-mode .scrollable-table:has(.area-pricing-table) {
    border-color: #374151 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
  }
}

/* 編集部ランクアイコン */
.rank-emoji {
  display: block;
  margin-bottom: 2px;
  text-align: center;
  line-height: 0;
}
.rank-emoji img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
}
.rank-emoji--1st img { width: 32px; height: 32px; }
.rank-emoji--2nd img { width: 25px; height: 25px; }

/* h2 見出しランクメダル 1-3位（::before 疑似要素） */
h2.h2-rank-1st::before,
h2.h2-rank-2nd::before,
h2.h2-rank-3rd::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  margin-top: -2px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
h2.h2-rank-1st::before {
  width: 64px; height: 64px;
  background-image: url("https://my-pilates.life/wp-content/uploads/2026/03/medal-1st-v7.png");
}
h2.h2-rank-2nd::before {
  width: 50px; height: 50px;
  background-image: url("https://my-pilates.life/wp-content/uploads/2026/03/medal-2nd-v6.png");
}
h2.h2-rank-3rd::before {
  width: 56px; height: 56px;
  background-image: url("https://my-pilates.life/wp-content/uploads/2026/03/medal-3rd-v6.png");
}
@media screen and (max-width: 768px) {
  h2.h2-rank-1st::before { width: 50px; height: 50px; }
  h2.h2-rank-2nd::before { width: 40px; height: 40px; }
  h2.h2-rank-3rd::before { width: 44px; height: 44px; }
}

/* ジャンプリンク（比較テーブル ↔ 個別セクション） */
.comparison-anchor {
  display: block;
  height: 0;
  visibility: hidden;
  scroll-margin-top: 20px;
}
/* htc-compare テーブル: スタジオリンク（最終カラム） */
.htc-compare tbody td:last-child a {
  color: #1e40af;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #93c5fd;
  padding: 1px 3px;
  border-radius: 3px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.htc-compare tbody td:last-child a:hover {
  color: #1e3a8a;
  background: rgba(59, 130, 246, 0.08);
  border-bottom-color: #1e40af;
}
/* trial-flow-table: スタジオ名リンク（1列目） */
.trial-flow-table tbody td:first-child a {
  color: #1e40af;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #93c5fd;
  padding: 1px 3px;
  border-radius: 3px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.trial-flow-table tbody td:first-child a:hover {
  color: #1e3a8a;
  background: rgba(59, 130, 246, 0.08);
  border-bottom-color: #1e40af;
}
h2[id^="studio-"] {
  scroll-margin-top: 20px;
}
.back-to-comparison {
  text-align: center;
  margin: 1em 0 0.5em;
  font-size: 13px;
}
.back-to-comparison a {
  color: #64748b;
  text-decoration: none;
  padding: 6px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  display: inline-block;
  transition: all 0.2s;
}
.back-to-comparison a:hover {
  color: #ea580c;
  border-color: #ea580c;
  background: #fff7ed;
}
body.dark-mode .htc-compare tbody td:last-child a {
  color: #93c5fd; border-bottom-color: #3b82f6;
}
body.dark-mode .htc-compare tbody td:last-child a:hover {
  color: #bfdbfe; background: rgba(59, 130, 246, 0.12); border-bottom-color: #93c5fd;
}
body.dark-mode .trial-flow-table tbody td:first-child a {
  color: #93c5fd; border-bottom-color: #3b82f6;
}
body.dark-mode .trial-flow-table tbody td:first-child a:hover {
  color: #bfdbfe; background: rgba(59, 130, 246, 0.12); border-bottom-color: #93c5fd;
}
body.dark-mode .back-to-comparison a { color: #94a3b8; border-color: #475569; }
body.dark-mode .back-to-comparison a:hover { color: #fb923c; border-color: #fb923c; background: rgba(251,146,60,0.1); }

/* エリアテーブル: スクロールヒント（JS制御のスムーズフェード） */
/* 既定は非表示。javascript.js の IntersectionObserver が hint-visible を付与して表示 */
.scrollable-table.area-scroll .scroll-hint {
  display: flex;
  align-items: center;
  animation: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
}
.scrollable-table.area-scroll .scroll-hint.hint-visible {
  opacity: 1;
  visibility: visible;
}

/* 外側ラッパー（JSで生成） */
.area-scroll-outer {
  position: relative;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* 右端グラデーション（outer子要素、CSSだけで右端固定） */
.scroll-gradient {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.15));
  pointer-events: none;
  z-index: 8;
  transition: opacity 0.4s ease;
}
.scroll-gradient.at-end {
  opacity: 0;
}
.scroll-gradient.no-scroll,
.scroll-hint.no-scroll,
.scroll-proxy-top.no-scroll {
  display: none !important;
}

/* カスタムスクロールバー（クラスベースで :has() 回避） */
.scrollable-table.area-scroll {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.scrollable-table.area-scroll::-webkit-scrollbar {
  height: 6px;
}
.scrollable-table.area-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.scrollable-table.area-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
.scrollable-table.area-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

@media screen and (max-width: 768px) {
  .area-comparison-table thead th,
  .area-comparison-table tbody td {
    padding: 8px 6px;
    font-size: 11.5px;
  }

  .rank-badge {
    width: 22px;
    height: 22px;
    font-size: 10px;
    margin-right: 4px;
  }

  .rank-badge .fas {
    font-size: 8px;
  }

  .star-score {
    font-size: 14px;
  }

  .star-icons .fas,
  .star-icons .far {
    font-size: 9px;
  }

  .tag-chip {
    font-size: 10px;
    padding: 1px 6px;
  }

  .area-comparison-table thead th:nth-child(2),
  .area-comparison-table tbody td:nth-child(2) {
    left: 36px !important;
    min-width: 110px !important;
    max-width: 120px;
    font-size: 11.5px;
  }

  .rank-emoji img {
    width: 22px;
    height: 22px;
  }

  /* モバイル: テーブル横スクロール */
  .area-pricing-table {
    min-width: 800px;
  }
  /* モバイル: 料金テーブルも横スクロール有効 + area-scroll-outer 復活 */
  .scrollable-table:has(.area-pricing-table) {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    width: 100%;
  }
  .area-scroll-outer:has(.area-pricing-table):not(:has(.trial-flow-table)) {
    display: block;
  }

  /* モバイル: スタジオ名カラム縮小（スクロール領域を確保） */
  .area-pricing-table thead th:nth-child(2),
  .area-pricing-table tbody td:nth-child(2) {
    left: 36px !important;
    min-width: 110px !important;
    max-width: 120px;
    font-size: 11.5px;
  }
  .area-pricing-table thead th.rank-col,
  .area-pricing-table tbody td.rank-col {
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    padding: 6px 4px;
  }

  .area-trial-table tbody td.rank-col + td,
  .area-admission-table tbody td.rank-col + td {
    min-width: 110px !important;
  }
}

/* --- ダークモード --- */
body.dark-mode .scrollable-table:has(.area-comparison-table),
body.dark-mode .scrollable-table.area-scroll {
  border-color: #374151 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}
body.dark-mode .area-comparison-table thead th {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.dark-mode .area-comparison-table tbody tr:nth-child(odd) {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
body.dark-mode .area-comparison-table tbody tr:nth-child(odd) td {
  background: #1a1a2e;
}
body.dark-mode .area-comparison-table tbody tr:nth-child(even) {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
body.dark-mode .area-comparison-table tbody tr:nth-child(even) td {
  background: #1e1e34;
}
body.dark-mode .area-comparison-table tbody tr:hover td {
  background: #22223a;
}
body.dark-mode .area-comparison-table tbody tr:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .area-comparison-table tbody td {
  color: #e0e0e0;
}

body.dark-mode .rank-badge.rank-other {
  border-color: #4b5563;
  color: #9ca3af;
}

body.dark-mode .star-score {
  color: #fbbf24;
}

body.dark-mode .star-icons .fas {
  color: #fbbf24;
}

body.dark-mode .star-icons .far {
  color: #4b5563;
}

body.dark-mode .area-comparison-table tbody tr:nth-child(odd) td:first-child {
  background: #1a1a2e;
}
body.dark-mode .area-comparison-table tbody tr:nth-child(even) td:first-child {
  background: #1e1e34;
}
body.dark-mode .area-comparison-table tbody tr:hover td:first-child {
  background: #22223a;
}

body.dark-mode .area-comparison-table tbody tr:nth-child(odd) td:nth-child(2) {
  background: #1a1a2e;
}
body.dark-mode .area-comparison-table tbody tr:nth-child(even) td:nth-child(2) {
  background: #1e1e34;
}
body.dark-mode .area-comparison-table tbody tr:hover td:nth-child(2) {
  background: #22223a;
}

body.dark-mode .tag-chip.tag-group {
  background: #1e3a5f;
  color: #93c5fd;
}

body.dark-mode .tag-chip.tag-personal {
  background: #422006;
  color: #fbbf24;
}

body.dark-mode .tag-chip.tag-women {
  background: #4a1d3f;
  color: #f9a8d4;
}

body.dark-mode .tag-chip.tag-coed {
  background: #064e3b;
  color: #6ee7b7;
}

body.dark-mode .tag-chip.tag-conditional {
  background: #431407;
  color: #fdba74;
}

body.dark-mode .tag-chip.tag-machine {
  background: #2e1065;
  color: #c4b5fd;
}

body.dark-mode .tag-chip.tag-mat {
  background: #1e1b4b;
  color: #a5b4fc;
}

body.dark-mode .editorial-trust-note {
  background: #2a2a3e;
  color: #aaa;
}

body.dark-mode .editorial-trust-note a {
  color: #6ee7b7;
}

body.dark-mode .trust-note-title {
  color: #e5e7eb;
}

body.dark-mode .criteria-item {
  color: #d1d5db;
}

body.dark-mode .trust-note-link {
  color: #9ca3af;
}

body.dark-mode .tag-chip.tag-direct {
  background: #7f1d1d;
  color: #fca5a5;
}

body.dark-mode .review-count {
  color: #9ca3af;
}

/* --- テーブル上部スクロールバー (scroll-proxy) --- */
.scroll-proxy-top {
  margin-bottom: 10px;
  height: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.scroll-proxy-top::-webkit-scrollbar {
  height: 6px;
}
.scroll-proxy-top::-webkit-scrollbar-track {
  background: transparent;
}
.scroll-proxy-top::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
.scroll-proxy-top::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.scroll-proxy-inner {
  height: 1px;
}
body.dark-mode .scroll-proxy-top {
  scrollbar-color: #4b5563 #1a1a2e;
}

/* --- ソートピルボタン --- */
.sort-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.sort-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: #374151;
  transition: all 0.2s ease;
  user-select: none;
}
.sort-pill:hover {
  border-color: #f59e0b;
  color: #b45309;
}
.sort-pill.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}
body.dark-mode .sort-pill {
  background: #1a1a2e;
  border-color: #4b5563;
  color: #d1d5db;
}
body.dark-mode .sort-pill:hover {
  border-color: #fbbf24;
  color: #fbbf24;
}
body.dark-mode .sort-pill.active {
  background: linear-gradient(135deg, #b45309, #92400e);
  color: #fff;
  border-color: transparent;
}

/* --- 編集部評価ブレークダウン --- */
.editorial-breakdown {
  margin: 12px 0 20px;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.breakdown-title {
  color: #fff;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.breakdown-total {
  font-size: 22px;
  font-weight: 800;
  color: #f59e0b;
}
.breakdown-total small {
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
}
.breakdown-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.breakdown-label {
  width: 90px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  flex-shrink: 0;
}
.breakdown-bar-bg {
  flex: 1;
  height: 10px;
  background: #e2e8f0;
  border-radius: 5px;
  overflow: visible;
  position: relative;
}
.breakdown-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  border-radius: 5px;
  transition: width 1s ease-out;
  position: relative;
}

.breakdown-crown {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  color: #f4a100;
  font-size: 1.6em;
  z-index: 20;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
  filter: drop-shadow(0 0 6px rgba(244, 161, 0, 0.6));
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.breakdown-crown.is-visible {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.breakdown-value {
  width: 28px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}
body.dark-mode .editorial-breakdown {
  background: #1a1a2e;
  border-color: #334155;
}
body.dark-mode .breakdown-title {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
}
body.dark-mode .breakdown-total {
  color: #fbbf24;
}
body.dark-mode .breakdown-label {
  color: #94a3b8;
}
body.dark-mode .breakdown-bar-bg {
  background: #334155;
}
body.dark-mode .breakdown-value {
  color: #e5e7eb;
}

@media screen and (max-width: 768px) {
  .sort-pills {
    gap: 6px;
  }
  .sort-pill {
    padding: 4px 12px;
    font-size: 12px;
  }
  .editorial-breakdown {
    padding: 12px 14px;
  }
  .breakdown-label {
    width: 70px;
    font-size: 11px;
  }
}

/* --- 料金セクションCTA（ゴールドカード型） --- */
.pricing-section-cta.pricing-section-cta {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 80%, #fde68a 100%);
  border: 1px solid #d4a94b;
  border-radius: 16px;
  padding: 24px 20px 20px;
  margin: 2em 0;
  position: relative;
  box-shadow: 0 2px 12px rgba(180, 131, 54, 0.15);
}
.pricing-section-cta .cta-box__text {
  color: #92400e;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
  text-align: center;
}
.pricing-section-cta .pricing-cta-card {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e5d5b0;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}
.pricing-section-cta .pricing-cta-card:last-child {
  margin-bottom: 0;
}
.pricing-section-cta .pricing-cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(180, 131, 54, 0.25);
  border-color: #b48336;
}
/* ランクメダル（左端） */
.pricing-section-cta .pricing-cta-card__rank {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  position: relative;
  z-index: 1;
  line-height: 0;
}
.pricing-section-cta .pricing-cta-card__rank img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.pricing-section-cta .pricing-cta-card--1st .pricing-cta-card__rank img { width: 32px; height: 32px; }
.pricing-section-cta .pricing-cta-card--2nd .pricing-cta-card__rank img { width: 25px; height: 25px; }
/* 中央情報エリア */
.pricing-section-cta .pricing-cta-card__info {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.pricing-section-cta .pricing-cta-card__name {
  font-weight: 700;
  font-size: 15px;
  color: #1c1917;
  margin: 0 0 2px;
}
.pricing-section-cta .pricing-cta-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #78716c;
}
.pricing-section-cta .pricing-cta-card__score {
  color: #d97706;
  font-weight: 700;
}
.pricing-section-cta .pricing-cta-card__score .fas.fa-star {
  font-size: 11px;
  margin-right: 2px;
}
.pricing-section-cta .pricing-cta-card__catch {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 右端ボタンエリア */
.pricing-section-cta .pricing-cta-card__action {
  flex-shrink: 0;
  margin-left: 12px;
  position: relative;
  z-index: 1;
}
.pricing-section-cta .pricing-cta-card__btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.pricing-section-cta .pricing-cta-card--1st .pricing-cta-card__btn {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 2px 8px rgba(220,38,38,0.3);
}
.pricing-section-cta .pricing-cta-card--1st .pricing-cta-card__btn:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  box-shadow: 0 4px 12px rgba(220,38,38,0.4);
}
.pricing-section-cta .pricing-cta-card--2nd .pricing-cta-card__btn,
.pricing-section-cta .pricing-cta-card--3rd .pricing-cta-card__btn {
  background: linear-gradient(135deg, #57534e, #44403c);
  box-shadow: 0 2px 8px rgba(87,83,78,0.3);
}
.pricing-section-cta .pricing-cta-card--2nd .pricing-cta-card__btn:hover,
.pricing-section-cta .pricing-cta-card--3rd .pricing-cta-card__btn:hover {
  background: linear-gradient(135deg, #44403c, #292524);
  box-shadow: 0 4px 12px rgba(87,83,78,0.4);
}
/* 無料バッジ */
.pricing-section-cta .pricing-cta-card__trial-free {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .pricing-section-cta.pricing-section-cta {
    padding: 18px 14px 14px;
  }
  .pricing-section-cta .pricing-cta-card {
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .pricing-section-cta .pricing-cta-card__rank {
    width: 28px;
    height: 28px;
    margin-right: 8px;
  }
  .pricing-section-cta .pricing-cta-card__rank img {
    width: 24px;
    height: 24px;
  }
  .pricing-section-cta .pricing-cta-card__info {
    flex: 1;
  }
  .pricing-section-cta .pricing-cta-card__name {
    font-size: 14px;
  }
  .pricing-section-cta .pricing-cta-card__action {
    width: 100%;
    margin: 8px 0 0;
    text-align: center;
  }
  .pricing-section-cta .pricing-cta-card__btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* ダークモード */
body.dark-mode .pricing-section-cta.pricing-section-cta {
  background: linear-gradient(135deg, #292218 0%, #2c2418 80%, #3d3020 100%);
  border-color: #6b5a3a;
}
body.dark-mode .pricing-section-cta .cta-box__text {
  color: #fbbf24;
}
body.dark-mode .pricing-section-cta .pricing-cta-card {
  background: #1c1917;
  border-color: #44403c;
}
body.dark-mode .pricing-section-cta .pricing-cta-card__name {
  color: #f5f5f4;
}
body.dark-mode .pricing-section-cta .pricing-cta-card__catch {
  color: #a8a29e;
}

/* --- TOP3 CTA（比較テーブル直後） --- */
.top3-cta {
  margin: 15% 0 28px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
  border: 1px solid #b48336;
  border-radius: 20px;
  padding: clamp(60px, 10%, 90px) 20px 24px;
  text-align: center;
  position: relative;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35), 0 8px 40px rgba(245, 158, 11, 0.18), 0 2px 8px rgba(0, 0, 0, 0.10);
}
/* メタリックゴールド：光の帯（コンポジタースレッドで実行 = ジャンク耐性） */
/* .top3-sweep-clip で border-radius クリップ → ::before を transform で移動 */
.top3-sweep-clip {
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.top3-sweep-clip::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: linear-gradient(
    var(--sweep-angle, 120deg),
    transparent 44%,
    rgba(212, 175, 55, 0.06) 46%,
    rgba(255, 255, 255, 0.35) 48%,
    rgba(255, 255, 255, 0.88) 49.5%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.88) 50.5%,
    rgba(255, 255, 255, 0.35) 52%,
    rgba(212, 175, 55, 0.06) 54%,
    transparent 56%
  );
  will-change: transform;
  animation: top3-sweep-move 4s linear infinite;
  animation-delay: 1s;
}
@keyframes top3-sweep-move {
  0%   { transform: translate(-40%, -40%); }
  15%  { transform: translate(40%, 40%); }
  100% { transform: translate(40%, 40%); }
}
/* キラキラパーティクル（カード背面に表示） */
.top3-sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  line-height: 1;
  animation: top3-sparkle-pop var(--dur, 1s) ease-in-out forwards;
}
.top3-sparkle--star {
  text-shadow:
    0 0 3px currentColor,
    0 0 8px currentColor,
    0 0 14px rgba(255,240,200,0.5);
}
.top3-sparkle--cross {
  text-shadow:
    0 0 2px currentColor,
    0 0 5px currentColor;
}
@keyframes top3-sparkle-pop {
  0% { opacity: 0; transform: scale(0) rotate(0deg); }
  15% { opacity: var(--peak, 0.9); transform: scale(1.4) rotate(20deg); }
  35% { opacity: calc(var(--peak, 0.9) * 0.6); transform: scale(0.7) rotate(45deg); }
  55% { opacity: var(--peak, 0.9); transform: scale(1.15) rotate(65deg); }
  100% { opacity: 0; transform: scale(0) rotate(120deg); }
}
/* まとめセクション内の豪華CTA: リード文との余白を広げる */
.top3-cta.top3-cta--final {
  margin-top: 15%;
}
/* リボンバナー画像 */
.top3-cta__ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-55%);
  width: 60%;
  z-index: 5;
  pointer-events: none;
}
.top3-cta__ribbon-img {
  width: 100%;
  height: auto;
  display: block;
}
/* コーナー装飾画像 */
.top3-cta__corner {
  position: absolute;
  width: 130px;
  height: auto;
  pointer-events: none;
  z-index: 4;
  opacity: 1;
}
.top3-cta__corner--tl { top: -3.4px; left: -3.6px; }
.top3-cta__corner--tr { top: -3.4px; right: -3.6px; transform: scaleX(-1); }
.top3-cta__corner--bl { bottom: -3.4px; left: -3.6px; transform: scaleY(-1); }
.top3-cta__corner--br { bottom: -3.4px; right: -3.6px; transform: scale(-1,-1); }
.top3-cta__heading {
  font-size: 15px;
  color: #a16207;
  margin-bottom: 18px;
  position: relative;
  z-index: 3;
  word-break: keep-all;
  overflow-wrap: break-word;
  padding: 0 8px;
}
.top3-cta__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  position: relative;
  z-index: 3;
}
/* --- TOP3 カード共通 --- */
.top3-cta__card {
  background: linear-gradient(165deg, #ffffff 0%, #fffdf7 60%, #fef9ee 100%);
  border: 1.5px solid #e5ddd0;
  border-radius: 14px;
  padding: 22px 16px 18px;
  text-align: center;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.04),
    0 4px 16px rgba(180,131,54,0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s cubic-bezier(0.22,1,0.36,1);
  cursor: pointer;
}
.top3-cta__card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.top3-cta__card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 24px rgba(180,131,54,0.12),
    0 16px 48px rgba(0,0,0,0.06);
}
/* 1位 — 流れるゴールドボーダー（GPU合成版） */
.top3-cta__card--1st {
  border: none;
  background: linear-gradient(165deg, #ffffff 0%, #fffdf7 60%, #fef9ee 100%);
  box-shadow:
    0 2px 12px rgba(245,158,11,0.18),
    0 8px 32px rgba(212,160,23,0.12);
  overflow: hidden;
  isolation: isolate;
}
/* グラデーション層: 3倍サイズ → transform で移動（GPU合成） */
.top3-cta__card--1st::before {
  content: '';
  position: absolute;
  top: calc(-100% - 4px);
  left: calc(-100% - 4px);
  width: calc(300% + 8px);
  height: calc(300% + 8px);
  z-index: -2;
  background: linear-gradient(
    135deg,
    #b8860b 0%, #b8860b 33%,
    #d4a017 40%, #ffd700 46%, #fff8dc 50%,
    #ffd700 54%, #d4a017 60%,
    #b8860b 67%, #b8860b 100%
  );
  animation: top3-border-flow 4s linear infinite 1s;
  will-change: transform;
}
/* 内側マスク: border: 1px でブラウザに均一描画させる */
.top3-cta__card--1st::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(165deg, #ffffff 0%, #fffdf7 60%, #fef9ee 100%);
  background-clip: padding-box;
  z-index: -1;
}
@keyframes top3-border-flow {
  0%   { transform: translate(-33.33%, -33.33%); }
  17%  { transform: translate(-33.33%, -33.33%); }
  28%  { transform: translate(33.33%, 33.33%); }
  100% { transform: translate(33.33%, 33.33%); }
}
.top3-cta__card--1st:hover {
  background: linear-gradient(165deg, #fffef8 0%, #fff9e6 60%, #fef3d4 100%);
  box-shadow:
    0 8px 24px rgba(245,158,11,0.22),
    0 16px 48px rgba(212,160,23,0.15),
    0 0 0 1px rgba(245,158,11,0.1);
}
.top3-cta__card--1st:hover::after {
  background: linear-gradient(165deg, #fffef8 0%, #fff9e6 60%, #fef3d4 100%);
  background-clip: padding-box;
}
/* 2位 — シルバーアクセント */
.top3-cta__card--2nd {
  border-color: #9e9e9e;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.04),
    0 4px 16px rgba(120,113,108,0.08);
}
.top3-cta__card--2nd:hover {
  background: linear-gradient(165deg, #fafafa 0%, #f5f5f5 60%, #eeeeee 100%);
}
/* 3位 — ブロンズアクセント */
.top3-cta__card--3rd {
  border-color: #cd7f32;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.04),
    0 4px 16px rgba(205,127,50,0.08);
}
.top3-cta__card--3rd:hover {
  background: linear-gradient(165deg, #fffcf5 0%, #fef7eb 60%, #fdf0dc 100%);
}
/* --- メダル — 画像アイコン --- */
.top3-cta__medal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;   /* 最大サイズで固定 → 高さ揃え */
  margin: 0 auto 6px;
  line-height: 0;
  overflow: visible;
}
.top3-cta__medal img {
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}
.top3-cta__card--1st .top3-cta__medal img { width: 64px; height: 64px; transform: translateY(-6px); }
.top3-cta__card--2nd .top3-cta__medal img { width: 50px; height: 50px; transform: translateY(-3px); }
.top3-cta__card--3rd .top3-cta__medal img { width: 56px; height: 56px; }
/* --- スタジオ名 --- */
.top3-cta__name {
  font-size: 14px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 4px;
  line-height: 1.45;
  letter-spacing: 0.01em;
}
/* --- キャッチコピー --- */
.top3-cta__catch {
  font-size: 11px;
  color: #78716c;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
/* --- スコア --- */
.top3-cta__score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  color: #b45309;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1;
}
.top3-cta__score .fas.fa-star {
  font-size: 14px;
  color: #f59e0b;
  filter: drop-shadow(0 1px 2px rgba(245,158,11,0.3));
}
.top3-cta__score small {
  color: #b0a89e;
  font-weight: 400;
  font-size: 11px;
  margin-left: 1px;
}
/* --- 料金 --- */
.top3-cta__price {
  font-size: 13px;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 12px;
  line-height: 1.3;
}
.top3-cta__price small {
  font-weight: 400;
  color: #78716c;
  font-size: 11px;
}
/* --- CTAボタン（1位: コーラルレッド — ゴールド背景との補色対比） --- */
.top3-cta__btn {
  display: block;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  padding: 11px 10px;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 2px 8px rgba(220,38,38,0.3), 0 1px 2px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.03em;
}
/* 上部光沢 */
.top3-cta__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}
/* シマーライン（1位CTAのみ — 背景sweep と同期: 4s linear, 1s delay） */
.top3-cta__card--1st .top3-cta__btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.4) 46%, rgba(255,255,255,0.12) 54%, transparent 65%);
  will-change: transform;
  animation: top3-btn-shimmer 4s linear infinite 1.5s;
  pointer-events: none;
  z-index: 1;
}
@keyframes top3-btn-shimmer {
  0%   { transform: translateX(-100%); }
  17%  { transform: translateX(-100%); }
  28%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
.top3-cta__btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
  box-shadow: 0 6px 20px rgba(220,38,38,0.4), 0 2px 4px rgba(0,0,0,0.1);
}
.top3-cta__btn:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 1px 4px rgba(220,38,38,0.25);
}
/* 2位・3位: ダークグレー（背景との対比は既に良好） */
.top3-cta__card--2nd .top3-cta__btn,
.top3-cta__card--3rd .top3-cta__btn {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  box-shadow: 0 2px 8px rgba(75,85,99,0.25), 0 1px 2px rgba(0,0,0,0.08);
}
.top3-cta__card--2nd .top3-cta__btn:hover,
.top3-cta__card--3rd .top3-cta__btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #78716c 0%, #57534e 100%);
  box-shadow: 0 6px 20px rgba(75,85,99,0.4), 0 2px 4px rgba(0,0,0,0.1);
}
/* --- マイクロテキスト --- */
.top3-cta__micro {
  font-size: 10px;
  color: #a8a29e;
  margin-top: 8px;
  letter-spacing: 0.02em;
}
body.dark-mode .top3-cta {
  background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
  border-color: #92400e;
}
body.dark-mode .top3-cta__heading { color: #d97706; }
body.dark-mode .top3-cta__card {
  background: linear-gradient(165deg, #1c1917 0%, #211f1c 60%, #292524 100%);
  border-color: #44403c;
}
body.dark-mode .top3-cta__card--1st {
  background: linear-gradient(165deg, #1c1917 0%, #211f1c 60%, #292524 100%);
}
body.dark-mode .top3-cta__card--1st::after {
  background: linear-gradient(165deg, #1c1917 0%, #211f1c 60%, #292524 100%);
  background-clip: padding-box;
}
body.dark-mode .top3-cta__card--2nd { border-color: #57534e; }
body.dark-mode .top3-cta__card--3rd { border-color: #78716c; }
body.dark-mode .top3-cta__medal img { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
body.dark-mode .top3-cta__name { color: #f5f5f4; }
body.dark-mode .top3-cta__catch { color: #a8a29e; }
body.dark-mode .top3-cta__price { color: #fbbf24; }
body.dark-mode .top3-cta__corner { opacity: 0.3; }
@media screen and (max-width: 768px) {
  .top3-cta { padding: 70px 14px 20px; }
  .top3-cta__ribbon { /* 比率はベーススタイルで管理 */ }
  .top3-cta__heading { font-size: 13px; }
  .top3-cta__corner { width: 100px; opacity: 1; }
  .top3-cta__corner--tl { top: -3.4px; left: -3.6px; }
  .top3-cta__corner--tr { top: -3.4px; right: -3.6px; }
  .top3-cta__corner--bl { bottom: -3.4px; left: -3.6px; }
  .top3-cta__corner--br { bottom: -3.4px; right: -3.6px; }
  .top3-cta__grid { grid-template-columns: 1fr; gap: 10px; }
  .top3-cta__card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 14px 16px;
  }
  .top3-cta__medal {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 50px; height: 50px;  /* モバイル最大サイズで固定 */
  }
  .top3-cta__card--1st .top3-cta__medal img { width: 50px; height: 50px; transform: translateY(-5px); }
  .top3-cta__card--2nd .top3-cta__medal img { width: 40px; height: 40px; transform: translateY(-2px); }
  .top3-cta__card--3rd .top3-cta__medal img { width: 44px; height: 44px; }
  .top3-cta__card-body { flex: 1; }
  .top3-cta__btn { text-align: center; }
  .top3-cta__score { font-size: 15px; }
}

/* --- 小テーブル（選び方等）はスクロール不要 --- */
.scrollable-table:not(:has(.area-comparison-table)):not(:has(.area-pricing-table)) {
  overflow-x: visible;
}

/* --- スタジオステータスバッジ --- */
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}
.status-closed {
  background: #fee2e2;
  color: #991b1b;
}
.studio-notice {
  padding: 12px 16px;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.7;
}
.notice-closed {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
}
body.dark-mode .status-closed {
  background: #7f1d1d;
  color: #fca5a5;
}
body.dark-mode .notice-closed {
  background: #451a1a;
  border-left-color: #dc2626;
  color: #e5e7eb;
}

/* --- 料金ティア表示 (3カラム grid: badge 3 | price 4 | marker 3) --- */
.price-tier {
  display: grid;
  grid-template-columns: 3fr 4fr 3fr;
  align-items: baseline;
  margin: 2px 0;
  white-space: nowrap;
}
.price-type-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  background: #dbeafe;
  color: #1e40af;
  text-align: center;
  justify-self: end;
}
.price-type-machine { background: #ede9fe; color: #6d28d9; }
.price-type-personal { background: #fef3c7; color: #92400e; }
.price-type-semi { background: #d1fae5; color: #065f46; }
.price-type-unlimited { background: #fce7f3; color: #9d174d; }
.price-value { font-weight: 700; font-size: 13px; text-align: center; }
.price-cheapest-marker { font-size: 9px; color: #d97706; font-weight: 700; text-align: left; white-space: nowrap; }

body.dark-mode .price-type-badge { background: #1e3a5f; color: #93c5fd; }
body.dark-mode .price-type-machine { background: #2e1065; color: #c4b5fd; }
body.dark-mode .price-type-personal { background: #451a03; color: #fde68a; }
body.dark-mode .price-type-semi { background: #064e3b; color: #a7f3d0; }
body.dark-mode .price-type-unlimited { background: #500724; color: #fbcfe8; }
body.dark-mode .price-cheapest-marker { color: #fbbf24; }

/* --- 体験無料バッジ --- */
.trial-free {
  color: #059669;
  font-weight: 700;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 4px;
}
body.dark-mode .trial-free {
  color: #34d399;
  background: #064e3b;
}

/* --- 入会金テーブル: 0円ハイライト --- */
.price-zero {
  color: #059669;
  font-size: 1.1em;
}
body.dark-mode .price-zero {
  color: #34d399;
}

/* --- テーブル但し書き --- */
.table-footnotes {
  margin: 8px 0 16px;
  padding: 0 4px;
}
.footnote-item {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
  margin: 4px 0;
}
body.dark-mode .footnote-item {
  color: #9ca3af;
}

/* ============================================
   エリアおすすめ記事 — 早わかりサマリー（ダッシュボード型）
   ============================================ */
.area-summary-box {
  position: relative;
  margin: 2.5em 0 2em;
  padding: 0;
  background-image: linear-gradient(135deg, #fffbf0 0%, #fff7e6 50%, #fff 100%);
  background-size: cover;
  background-position: center;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.6;
  overflow: visible;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.area-summary-box[style*="background-image"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  z-index: 0;
}

.area-summary-box[style*="background-image"] > * {
  position: relative;
  z-index: 1;
}

.summary-header {
  padding: 24px 24px 12px;
  position: relative;
  text-align: center;
}

.summary-badge {
  position: absolute;
  top: -14px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.35);
  letter-spacing: 0.03em;
}

.summary-badge .fas {
  font-size: 11px;
}

.summary-title {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.4;
}

.summary-subtitle {
  display: inline-block;
  margin: 8px 0 0;
  padding: 6px 16px;
  font-size: 15px;
  color: #92400e;
  font-weight: 700;
  background: rgba(254, 243, 199, 0.45);
  border: 1px solid rgba(217,119,6,0.25);
  border-radius: 20px;
}

/* --- ジャンプリンクラッパー --- */
a.summary-jump-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.summary-metrics > a.summary-jump-link {
  display: flex;
}

.summary-metrics > a.summary-jump-link > .metric-card {
  flex: 1;
}

a.summary-jump-link:hover {
  text-decoration: none;
  color: inherit;
}

/* --- ヒーローカード（編集部イチオシ） --- */
.summary-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 22px 20px 12px;
  padding: 20px 20px 16px;
  overflow: visible;
  background: linear-gradient(135deg, rgba(255,251,235,0.45) 0%, rgba(254,243,199,0.45) 100%);
  border: 1px solid rgba(217,119,6,0.25);
  border-radius: 14px;
  cursor: pointer;
}

.summary-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #d97706;
}

.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-label {
  position: absolute;
  top: -12px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 20px;
  line-height: 1.4;
  z-index: 2;
}
.hero-label::before {
  content: "\f005";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 10px;
}

.hero-name {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
}

.hero-score {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.hero-score-num {
  font-size: 28px;
  font-weight: 800;
  color: #d97706;
  line-height: 1;
}

.hero-score-max {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
}

/* --- メトリクス3列 --- */
.summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 20px 20px;
}

.metric-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 14px;
  text-align: center;
  background: rgba(248,250,252,0.40);
  border: 1px solid rgba(107,114,128,0.20);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}


.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.metric-icon {
  font-size: 18px;
  margin-bottom: 6px;
  line-height: 1;
}

.metric-num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.metric-num small {
  font-size: 13px;
  font-weight: 500;
}

.metric-label {
  order: -1;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  margin: -16px -16px 12px;
  padding: 8px 16px;
  border-radius: 14px 14px 0 0;
  background: #6b7280;
}

.metric-detail {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  margin-top: 6px;
  line-height: 1.4;
}

/* メトリクス色バリエーション */
.metric-card.metric-cheapest {
  background: rgba(236, 253, 245, 0.40);
  border-color: rgba(5,150,105,0.25);
}

.metric-card.metric-cheapest .metric-icon,
.metric-card.metric-cheapest .metric-num {
  color: #059669;
}

.metric-card.metric-cheapest .metric-label { background: linear-gradient(135deg, #059669 0%, #047857 100%); }

.metric-card.metric-trial {
  background: rgba(239, 246, 255, 0.40);
  border-color: rgba(37,99,235,0.25);
}

.metric-card.metric-trial .metric-icon,
.metric-card.metric-trial .metric-num {
  color: #2563eb;
}

.metric-card.metric-trial .metric-label { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }

.metric-card.metric-review {
  background: rgba(254, 243, 199, 0.40);
  border-color: rgba(217,119,6,0.25);
}

.metric-card.metric-review .metric-icon,
.metric-card.metric-review .metric-num {
  color: #d97706;
}

.metric-card.metric-review .metric-label { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

/* マシン対応カード非表示 + カード順序制御 */
a.summary-jump-link:has(.metric-machine) { display: none; }
a.summary-jump-link:has(.metric-cheapest) { order: 1; }
a.summary-jump-link:has(.metric-review) { order: 2; }
a.summary-jump-link:has(.metric-trial) { order: 3; }

/* --- SP対応 --- */
@media screen and (max-width: 480px) {
  .summary-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 16px 16px;
  }

  .summary-header {
    padding: 20px 16px 8px;
  }

  .summary-title {
    font-size: 17px;
  }

  .summary-subtitle {
    font-size: 13px;
    padding: 5px 12px;
  }

  .summary-badge {
    font-size: 11.5px;
    padding: 5px 12px;
    top: -12px;
    left: 14px;
  }

  .summary-hero {
    flex-direction: column;
    text-align: center;
    margin: 22px 16px 12px;
    padding: 20px 16px 14px;
  }

  .hero-label {
    font-size: 11px;
    padding: 4px 12px;
    top: -11px;
    left: 12px;
  }

  .hero-name {
    font-size: 16px;
  }

  .hero-score-num {
    font-size: 24px;
  }

  .metric-num {
    font-size: 24px;
  }
}

/* --- ダークモード --- */
body.dark-mode .area-summary-box {
  background: #1a1a2e;
  border-color: #374151;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.dark-mode .summary-title {
  color: #e5e7eb;
}

body.dark-mode .summary-subtitle {
  color: #fbbf24;
  background: #422006;
}

body.dark-mode .summary-hero {
  background: linear-gradient(135deg, #422006 0%, #78350f 100%);
}

body.dark-mode .hero-label {
  color: #fbbf24;
}

body.dark-mode .hero-name {
  color: #e5e7eb;
}

body.dark-mode .hero-score-num {
  color: #fbbf24;
}

body.dark-mode .metric-label {
  color: #fff;
}

body.dark-mode .metric-card.metric-cheapest .metric-label { background: #047857; }
body.dark-mode .metric-card.metric-trial .metric-label { background: #1d4ed8; }
body.dark-mode .metric-card.metric-review .metric-label { background: #b45309; }

body.dark-mode .metric-detail {
  color: #d1d5db;
}

body.dark-mode .metric-card.metric-cheapest {
  background: #064e3b;
}

body.dark-mode .metric-card.metric-cheapest .metric-icon,
body.dark-mode .metric-card.metric-cheapest .metric-num {
  color: #6ee7b7;
}

body.dark-mode .metric-card.metric-trial {
  background: #1e3a5f;
}

body.dark-mode .metric-card.metric-trial .metric-icon,
body.dark-mode .metric-card.metric-trial .metric-num {
  color: #93c5fd;
}

body.dark-mode .metric-card.metric-review {
  background: #451a03;
}

body.dark-mode .metric-card.metric-review .metric-icon,
body.dark-mode .metric-card.metric-review .metric-num {
  color: #fbbf24;
}

/* ============================================
   ポータルトップページ
   ============================================ */

/* --- Layout --- */
.portal-top {
  max-width: 100%;
  margin: 0 auto;
}

.portal-page .content-in {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.portal-page #sidebar,
.portal-page .sidebar {
  display: none;
}

.portal-page .main {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* === トップページ限定: ヘッダー+Hero融合（SUUMOスタイル） === */
body.portal-page #header-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent !important;
}

body.portal-page #header-container,
body.portal-page #header-container-in,
body.portal-page #header,
body.portal-page #navi {
  border: none !important;
  box-shadow: none !important;
}

body.portal-page #header {
  background: transparent !important;
}

body.portal-page #navi {
  display: none;
}

body.portal-page #header-in {
  position: relative;
}

body.portal-page #content {
  border-top: none !important;
  margin-top: 0;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}

body.portal-page .tagline {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  color: #374151;
  font-size: 12px;
  margin: 0;
  padding: 0;
  text-shadow: 0 1px 3px rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
  text-align: center;
}

/* 管理バー表示時: タグラインを管理バーの下に移動 */
body.admin-bar.portal-page .tagline {
  top: 36px;
}

body.portal-page .logo-header img {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

/* スクロール時の固定ヘッダー: 白背景に戻す */
body.portal-page .fixed-header #header-container {
  position: fixed;
  background: rgba(255,255,255,0.97) !important;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
}

body.portal-page .fixed-header .tagline {
  color: #6b7280;
  text-shadow: none;
}

body.portal-page .fixed-header .logo-header img {
  filter: none;
}

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

.portal-section {
  padding: 48px 0;
}

.portal-section:nth-child(even) {
  background: #f9fafb;
}

.portal-section__heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 3px solid #f59e0b;
  color: #1f2937;
}

.portal-section__heading > i.fas,
.portal-section__heading > i.far {
  margin-right: 8px;
  color: #f59e0b;
  font-size: 1.1em;
}

/* --- SP only / PC only --- */
.sp-only { display: none; }

@media screen and (max-width: 768px) {
  .sp-only { display: inline; }
  .pc-only { display: none !important; }

  .portal-section {
    padding: 32px 0;
  }

  .portal-container {
    padding: 0 16px;
  }

  .portal-section__heading {
    font-size: 1.25rem;
    margin-bottom: 20px;
  }
}

/* --- Portal Chip (共通) --- */
.portal-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.portal-chip:hover {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
}

/* ===== Section 1: Hero ===== */
.portal-hero {
  background: url('images/hero-bg.png') center center / cover no-repeat,
              linear-gradient(135deg, #fffbf5 0%, #fff4e6 50%, #fef3c7 100%);
  padding: 180px 0 56px;
  text-align: center;
  position: relative;
}

.portal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.25) 35%,
    rgba(255,255,255,0.5) 100%
  );
  pointer-events: none;
}

.portal-hero > .portal-container {
  position: relative;
  z-index: 1;
}

.portal-hero__title {
  font-size: 2rem;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 12px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 4px rgba(255,255,255,0.8);
}

.portal-hero__subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin: 0 0 32px;
}

.portal-hero__search {
  max-width: 600px;
  margin: 0 auto 24px;
}

.portal-hero__search-inner {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  padding: 4px 4px 4px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.portal-hero__search-inner:focus-within {
  border-color: #f59e0b;
  box-shadow: 0 4px 20px rgba(245,158,11,0.15);
}

.portal-hero__search-icon {
  color: #9ca3af;
  font-size: 1rem;
  margin-right: 12px;
  flex-shrink: 0;
}

.portal-hero__search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #1f2937;
  background: transparent;
  min-width: 0;
}

.portal-hero__search-input::placeholder {
  color: #9ca3af;
}

.portal-hero__search-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.portal-hero__search-btn:hover {
  opacity: 0.9;
}

.portal-hero__chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.portal-hero__badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.portal-badge {
  text-align: center;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  min-width: 120px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.portal-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.portal-badge__number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #d97706;
  line-height: 1.2;
}

/* --- ブランドチップ列 --- */
.portal-hero__brand-chips {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.portal-hero__brand-chips-label {
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
}

.portal-brand-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(217,119,6,0.2);
  font-size: 0.72rem;
  color: #92400e;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.portal-brand-chip:hover {
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.4);
  color: #92400e;
  text-decoration: none;
}

.portal-badge__label {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 2px;
}

@media screen and (max-width: 768px) {
  .portal-hero {
    padding: 140px 0 36px;
  }

  .portal-hero__title {
    font-size: 1.5rem;
  }

  .portal-hero__subtitle {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }

  .portal-hero__search-inner {
    border-radius: 12px;
    padding: 4px 4px 4px 14px;
  }

  .portal-hero__search-btn {
    border-radius: 10px;
    padding: 10px 18px;
  }

  .portal-hero__badges {
    gap: 12px;
  }

  .portal-badge {
    flex: 0 0 calc(50% - 8px);
    background: rgba(255,255,255,0.75);
    border-radius: 12px;
    padding: 12px 10px;
    min-width: auto;
  }

  .portal-badge__number {
    font-size: 1.2rem;
  }

  .portal-hero__brand-chips {
    gap: 6px;
    margin-top: 12px;
  }

  .portal-hero__brand-chips-label {
    flex-basis: 100%;
    text-align: center;
    font-size: 0.7rem;
  }

  .portal-brand-chip {
    padding: 3px 10px;
    font-size: 0.68rem;
  }
}

/* ===== Section 2: Area Map ===== */
.portal-area__layout {
  display: grid;
  grid-template-columns: 170px 1fr 170px;
  gap: 20px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.portal-area__map {
  order: 2;
}

.portal-area__map svg {
  width: 100%;
  height: auto;
  display: block;
}

.portal-area__side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-area__side--left {
  order: 1;
}

.portal-area__side--right {
  order: 3;
}

.portal-area__region {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  text-decoration: none;
  color: #374151;
  transition: background 0.2s, border-color 0.2s;
}

.portal-area__region:hover {
  background: #fef3c7;
  border-color: #f59e0b;
}

.portal-area__region-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.portal-area__region-count {
  color: #d97706;
  font-weight: 700;
  font-size: 0.9rem;
}

.portal-area__popular {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.portal-area__popular-label {
  font-weight: 700;
  color: #d97706;
  font-size: 0.9rem;
  white-space: nowrap;
}

.portal-area__popular-label i {
  margin-right: 4px;
}

.portal-area__popular-link {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #fbbf24;
  color: #92400e;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.portal-area__popular-link:hover {
  background: #f59e0b;
  color: #fff;
}

@media screen and (max-width: 768px) {
  .portal-area__layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .portal-area__map {
    order: 0;
    max-width: 320px;
    margin: 0 auto 16px;
    width: 100%;
  }

  .portal-area__side {
    order: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .portal-area__side--left {
    order: 2;
  }

  .portal-area__side--right {
    order: 1;
  }

  .portal-area__region {
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
  }

  .portal-area__popular {
    order: 3;
    gap: 8px;
  }
}

/* ===== Section 3: Brand ===== */
.portal-brand__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.portal-brand__card {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid #e5e7eb;
  text-decoration: none;
  color: #374151;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.portal-brand__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-color, #f59e0b);
}

.portal-brand__card:hover {
  border-color: var(--brand-color, #f59e0b);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.portal-brand__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.portal-brand__meta {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.portal-brand__rating {
  color: #f59e0b;
  font-weight: 700;
}

.portal-brand__rating i {
  font-size: 0.8rem;
  margin-right: 2px;
}

.portal-brand__count {
  color: #6b7280;
}

.portal-brand__price {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 16px;
}

.portal-brand__cta {
  font-size: 0.85rem;
  color: var(--brand-color, #f59e0b);
  font-weight: 600;
  margin-top: auto;
}

.portal-brand__cta i {
  font-size: 0.7rem;
  margin-left: 4px;
}

@media screen and (max-width: 768px) {
  .portal-brand__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .portal-brand__card {
    padding: 16px 14px;
  }

  .portal-brand__name {
    font-size: 0.95rem;
  }

  .portal-brand__meta {
    flex-direction: column;
    gap: 4px;
  }
}

/* ===== Section 4: Route ===== */
.portal-route__tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0;
}

.portal-route__tab {
  padding: 8px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b7280;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  white-space: nowrap;
}

.portal-route__tab:hover {
  color: #f59e0b;
}

.portal-route__tab.is-active {
  color: #d97706;
  border-bottom-color: #f59e0b;
  font-weight: 700;
}

.portal-route__panel {
  display: none;
}

.portal-route__panel.is-active {
  display: block;
}

.portal-route__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.portal-route__line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  transition: background 0.2s;
  font-size: 0.9rem;
}

.portal-route__line:hover {
  background: #f3f4f6;
}

.portal-route__line-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.portal-route__line-name {
  font-weight: 500;
}

.portal-route__line-count {
  color: #9ca3af;
  font-size: 0.8rem;
  margin-left: auto;
}

@media screen and (max-width: 768px) {
  .portal-route__tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .portal-route__tabs::-webkit-scrollbar {
    display: none;
  }

  .portal-route__grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .portal-route__line {
    border-bottom: 1px solid #f3f4f6;
    border-radius: 0;
  }
}

/* ===== Section 5: Ranking ===== */
.portal-ranking__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ranking;
}

.portal-ranking__item {
  margin-bottom: 4px;
}

.portal-ranking__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: #374151;
  transition: all 0.2s;
  border: 1px solid #f3f4f6;
}

.portal-ranking__link:hover {
  border-color: #fbbf24;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.portal-ranking__rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.portal-ranking__item--top .portal-ranking__rank {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

.portal-ranking__thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.portal-ranking__info {
  flex: 1;
  min-width: 0;
}

.portal-ranking__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1f2937;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-ranking__detail {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.portal-ranking__stars {
  color: #f59e0b;
  font-size: 0.8rem;
}

.portal-ranking__rating-num {
  font-weight: 700;
  color: #d97706;
  font-size: 0.9rem;
}

.portal-ranking__review-count {
  color: #9ca3af;
  font-size: 0.8rem;
}

.portal-ranking__sub {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: #6b7280;
}

@media screen and (max-width: 768px) {
  .portal-ranking__link {
    gap: 10px;
    padding: 12px;
  }

  .portal-ranking__thumb {
    width: 60px;
    height: 45px;
  }

  .portal-ranking__name {
    font-size: 0.85rem;
  }

  .portal-ranking__sub {
    flex-direction: column;
    gap: 2px;
  }
}

/* ===== Section 6: Conditions ===== */
.portal-conditions__groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portal-conditions__group {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.portal-conditions__group-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #4b5563;
  white-space: nowrap;
  min-width: 110px;
  padding-top: 6px;
}

.portal-conditions__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.portal-chip--condition {
  background: #fff;
  border: 1px solid #d1d5db;
}

.portal-chip--condition:hover {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
}

@media screen and (max-width: 768px) {
  .portal-conditions__group {
    flex-direction: column;
    gap: 8px;
  }

  .portal-conditions__group-label {
    min-width: auto;
    padding-top: 0;
  }
}

/* ===== Section 7: FAQ ===== */
.portal-faq__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-faq__item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.portal-faq__question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1f2937;
  list-style: none;
  transition: background 0.2s;
}

.portal-faq__question::-webkit-details-marker {
  display: none;
}

.portal-faq__question::after {
  content: '\f078';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-left: auto;
  transition: transform 0.2s;
}

details[open] .portal-faq__question::after {
  transform: rotate(180deg);
}

.portal-faq__question:hover {
  background: #fefce8;
}

.portal-faq__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f59e0b;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.portal-faq__icon--a {
  background: #14b8a6;
}

.portal-faq__answer {
  display: flex;
  gap: 12px;
  padding: 0 20px 16px;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.7;
}

.portal-faq__answer p {
  margin: 0;
}

/* ===== Section 8: About ===== */
.portal-about__card {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.portal-about__avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #dadce0;
}

.portal-about__body {
  flex: 1;
}

.portal-about__lead {
  font-size: 1rem;
  color: #374151;
  margin: 0 0 16px;
  line-height: 1.7;
}

.portal-about__features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.portal-about__features li {
  font-size: 0.9rem;
  color: #374151;
}

.portal-about__features i {
  color: #f59e0b;
  margin-right: 6px;
}

.portal-about__links {
  display: flex;
  gap: 16px;
}

.portal-about__links a {
  font-size: 0.85rem;
  color: #6b7280;
  text-decoration: underline;
}

.portal-about__links a:hover {
  color: #f59e0b;
}

@media screen and (max-width: 768px) {
  .portal-about__card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
  }

  .portal-about__features {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .portal-about__links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ===== Section 9: Mega Footer ===== */
.portal-mega-footer {
  background: #1f2937 !important;
  color: #d1d5db;
  padding: 40px 0 32px;
}

.portal-mega-footer__block {
  margin-bottom: 24px;
}

.portal-mega-footer__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f59e0b;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portal-mega-footer__links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.portal-mega-footer__links a:hover {
  color: #fbbf24;
}

.portal-mega-footer__region {
  margin-bottom: 6px;
  line-height: 1.8;
}

.portal-mega-footer__region-label {
  font-weight: 600;
  color: #9ca3af;
  font-size: 0.8rem;
  margin-right: 8px;
}

.portal-mega-footer__region a::after {
  content: ' | ';
  color: #4b5563;
}

.portal-mega-footer__region a:last-child::after {
  content: '';
}

.portal-mega-footer__links--inline a {
  display: inline-block;
  margin: 0 6px 4px 0;
}

.portal-mega-footer__links--inline a::after {
  content: ' | ';
  color: #4b5563;
  margin-left: 6px;
}

.portal-mega-footer__links--inline a:last-child::after {
  content: '';
}

/* ===== Japan Map SVG Interaction ===== */
.portal-japan-map .jm-region {
  transition: fill 0.2s;
}

.portal-area__region.is-hover {
  background: #fef3c7;
  border-color: #f59e0b;
}

/* ===== Dark Mode ===== */
body.portal-page.dark-mode #header-container {
  background: transparent !important;
}

body.portal-page.dark-mode .tagline {
  color: rgba(255,255,255,0.8);
}

body.portal-page.dark-mode .fixed-header #header-container {
  background: rgba(15,23,42,0.95) !important;
}

body.dark-mode .portal-hero::before {
  background: linear-gradient(
    to bottom,
    rgba(15,23,42,0) 0%,
    rgba(15,23,42,0.4) 35%,
    rgba(15,23,42,0.7) 100%
  );
}

body.dark-mode .portal-hero {
  background: linear-gradient(135deg, #1e293b 0%, #1a1f2e 50%, #1e293b 100%);
}

body.dark-mode .portal-hero__title {
  color: #f1f5f9;
}

body.dark-mode .portal-hero__subtitle {
  color: #94a3b8;
}

body.dark-mode .portal-hero__search-inner {
  background: #334155;
  border-color: #475569;
}

body.dark-mode .portal-hero__search-input {
  color: #f1f5f9;
}

body.dark-mode .portal-hero__search-input::placeholder {
  color: #94a3b8;
}

body.dark-mode .portal-badge {
  background: rgba(30,41,59,0.7);
  border-color: rgba(100,116,139,0.3);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

body.dark-mode .portal-hero__brand-chips-label {
  color: #94a3b8;
}

body.dark-mode .portal-brand-chip {
  background: rgba(51,65,85,0.6);
  border-color: rgba(100,116,139,0.3);
  color: #e2e8f0;
}

body.dark-mode .portal-brand-chip:hover {
  background: rgba(245,158,11,0.15);
  border-color: rgba(245,158,11,0.3);
}

body.dark-mode .portal-section:nth-child(even) {
  background: #0f172a;
}

body.dark-mode .portal-section__heading {
  color: #f1f5f9;
}

body.dark-mode .portal-chip {
  background: #334155;
  border-color: #475569;
  color: #e2e8f0;
}

body.dark-mode .portal-chip:hover {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
}

body.dark-mode .portal-area__region {
  color: #e2e8f0;
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .portal-area__region:hover {
  background: rgba(245,158,11,0.15);
  border-color: #f59e0b;
}

body.dark-mode .portal-area__popular-link {
  background: #334155;
  border-color: #92400e;
  color: #fbbf24;
}

body.dark-mode .portal-brand__card {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .portal-brand__card:hover {
  border-color: var(--brand-color, #f59e0b);
}

body.dark-mode .portal-brand__name {
  color: #f1f5f9;
}

body.dark-mode .portal-brand__price,
body.dark-mode .portal-brand__count {
  color: #94a3b8;
}

body.dark-mode .portal-route__tab {
  color: #94a3b8;
}

body.dark-mode .portal-route__tab.is-active {
  color: #fbbf24;
}

body.dark-mode .portal-route__line {
  color: #e2e8f0;
}

body.dark-mode .portal-route__line:hover {
  background: rgba(255,255,255,0.05);
}

body.dark-mode .portal-route__line-count {
  color: #64748b;
}

body.dark-mode .portal-ranking__link {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark-mode .portal-ranking__link:hover {
  border-color: #fbbf24;
}

body.dark-mode .portal-ranking__name {
  color: #f1f5f9;
}

body.dark-mode .portal-ranking__sub {
  color: #94a3b8;
}

body.dark-mode .portal-chip--condition {
  background: #334155;
  border-color: #475569;
  color: #e2e8f0;
}

body.dark-mode .portal-faq__item {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .portal-faq__question {
  color: #f1f5f9;
}

body.dark-mode .portal-faq__question:hover {
  background: rgba(245,158,11,0.1);
}

body.dark-mode .portal-faq__answer {
  color: #cbd5e1;
}

body.dark-mode .portal-about__card {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .portal-about__lead {
  color: #e2e8f0;
}

body.dark-mode .portal-about__features li {
  color: #cbd5e1;
}

body.dark-mode .portal-about__links a {
  color: #94a3b8;
}

body.dark-mode .portal-mega-footer {
  background: #0f172a !important;
}

body.dark-mode .jm-region {
  fill: #334155;
}

body.dark-mode .jm-region:hover,
body.dark-mode .jm-region.is-hover {
  fill: #f59e0b;
}

body.dark-mode .jm-label {
  fill: #94a3b8;
}

body.dark-mode .jm-label-bg {
  fill: #1e293b;
}

/* ==================================================
   個別スタジオ紹介セクション — 新コンポーネント
   ================================================== */

/* --- studio-highlights（ポイント箇条書き） --- */
.studio-highlights {
  margin: 8px 0 16px;
  padding: 14px 18px;
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  border-radius: 8px;
}
.highlights-title {
  font-weight: 700;
  font-size: 14px;
  color: #166534;
  margin: 0 0 8px;
}
.highlights-title i { margin-right: 6px; }
.studio-highlights ul {
  margin: 0;
  padding: 0 0 0 20px;
  list-style: none;
}
.studio-highlights li {
  font-size: 14px;
  line-height: 1.8;
  position: relative;
  padding-left: 4px;
}
.studio-highlights li::before {
  content: '\2713';
  color: #22c55e;
  font-weight: 700;
  position: absolute;
  left: -18px;
}
body.dark-mode .studio-highlights { background: #052e16; border-color: #16a34a; }
body.dark-mode .highlights-title { color: #86efac; }
body.dark-mode .studio-highlights li { color: #d1d5db; }

/* --- price-highlight（料金ハイライト） --- */
.price-highlight {
  margin: 8px 0 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-radius: 8px;
  font-size: 15px;
  color: #92400e;
}
.price-highlight i { margin-right: 6px; color: #f59e0b; }
.price-highlight small { font-size: 12px; color: #a16207; margin-left: 4px; }
body.dark-mode .price-highlight { background: linear-gradient(135deg, #451a03, #78350f); color: #fde68a; }
body.dark-mode .price-highlight small { color: #fbbf24; }

/* --- campaign-highlight-box（キャンペーンボックス） --- */
.campaign-highlight-box {
  margin: 8px 0 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 1px solid #fca5a5;
  border-radius: 10px;
}
.campaign-badge {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.campaign-badge i { margin-right: 4px; }
body.dark-mode .campaign-highlight-box { background: linear-gradient(135deg, #450a0a, #7f1d1d); border-color: #dc2626; }
body.dark-mode .campaign-badge { background: #dc2626; }

/* --- review-heading-badge（口コミ見出しバッジ） --- */
.review-heading-badge {
  font-size: 13px;
  font-weight: 600;
  color: #f59e0b;
  margin-left: 8px;
  white-space: nowrap;
}
body.dark-mode .review-heading-badge { color: #fbbf24; }

/* --- recommend-persona（こんな人におすすめ） --- */
.recommend-persona {
  margin: 16px 0;
  padding: 14px 18px;
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
}
.persona-title {
  font-weight: 700;
  font-size: 14px;
  color: #1e40af;
  margin: 0 0 8px;
}
.persona-title i { margin-right: 6px; }
.recommend-persona ul {
  margin: 0;
  padding: 0 0 0 20px;
  list-style: none;
}
.recommend-persona li {
  font-size: 14px;
  line-height: 1.8;
  position: relative;
  padding-left: 4px;
}
.recommend-persona li::before {
  content: '\2192';
  color: #3b82f6;
  font-weight: 700;
  position: absolute;
  left: -18px;
}
body.dark-mode .recommend-persona { background: #172554; border-color: #2563eb; }
body.dark-mode .persona-title { color: #93c5fd; }
body.dark-mode .recommend-persona li { color: #d1d5db; }

/* --- info-card（統一カードスタイル） --- */
.info-card {
  border-radius: 8px;
  padding: 20px 16px 16px 20px;
  margin: 16px 0;
  position: relative;
  font-size: 14px;
  line-height: 1.7;
}
.info-card__label {
  position: absolute;
  top: -10px;
  left: 16px;
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.info-card__content ul {
  margin: 0;
  padding: 0 0 0 20px;
  list-style: none;
}
.info-card__content li {
  font-size: 14px;
  line-height: 1.8;
  position: relative;
  padding-left: 4px;
}
/* --- info-card--green（このスタジオのポイント） --- */
.info-card--green {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #22c55e;
}
.info-card--green .info-card__label {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
.info-card--green .info-card__content li::before {
  content: '\2713';
  color: #22c55e;
  font-weight: 700;
  position: absolute;
  left: -18px;
}
/* --- info-card--blue（こんな人におすすめ） --- */
.info-card--blue {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #3b82f6;
}
.info-card--blue .info-card__label {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.info-card--blue .info-card__content li::before {
  content: '\2192';
  color: #3b82f6;
  font-weight: 700;
  position: absolute;
  left: -18px;
}
/* --- persona-checklist（こんな人におすすめ / カード枠なし水平タグ） --- */
.persona-checklist {
  margin: 32px 0 16px;
  padding: 14px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}
.persona-checklist__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  padding: 5px 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  letter-spacing: 0.05em;
  margin: 0 0 10px;
}
.persona-checklist__title i {
  color: #fff;
  margin-right: 0;
}
.persona-checklist__list {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  gap: 4px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.persona-checklist__list li {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  color: #1e293b;
  padding: 5px 0;
}
.persona-checklist__list li::before {
  content: '\2713';
  color: #3b82f6;
  font-weight: 700;
  margin-right: 5px;
}
@media screen and (max-width: 768px) {
  .persona-checklist__list li {
    font-size: 12px;
    white-space: normal;
  }
}
body.dark-mode .persona-checklist { border-color: #475569; }
body.dark-mode .persona-checklist__title { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; }
body.dark-mode .persona-checklist__list li { color: #d1d5db; }
body.dark-mode .persona-checklist__list li::before { color: #60a5fa; }

/* --- info-card ダークモード --- */
body.dark-mode .info-card--green { background: linear-gradient(135deg, #052e16, #064e3b); border-color: #16a34a; }
body.dark-mode .info-card--green .info-card__content li { color: #d1d5db; }
body.dark-mode .info-card--green .info-card__content li::before { color: #4ade80; }
body.dark-mode .info-card--blue { background: linear-gradient(135deg, #172554, #1e3a5f); border-color: #2563eb; }
body.dark-mode .info-card--blue .info-card__content li { color: #d1d5db; }
body.dark-mode .info-card--blue .info-card__content li::before { color: #60a5fa; }
/* --- info-card ポイントブロック PC 2カラム --- */
@media (min-width: 768px) {
  .info-card__content ul {
    column-count: 2;
    column-gap: 24px;
  }
  .info-card__content li {
    break-inside: avoid;
  }
}
/* --- info-card--red（キャンペーン実施中） --- */
.info-card--red {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #f87171;
}
.info-card--red .info-card__label {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
.info-card--red .info-card__content p { margin: 4px 0; }
body.dark-mode .info-card--red { background: linear-gradient(135deg, #450a0a, #7f1d1d); border-color: #dc2626; }
body.dark-mode .info-card--red .info-card__content p { color: #d1d5db; }
/* --- blogcard 統一（角丸・ホバー・トーン調整） --- */
.entry-content .blogcard-wrap .blogcard {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.entry-content .blogcard-wrap .blogcard:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}
.entry-content .blogcard-wrap .blogcard-thumbnail {
  overflow: hidden;
  border-radius: 8px 0 0 8px;
}
.entry-content .blogcard-wrap .blogcard-thumbnail img {
  border-radius: 8px 0 0 8px;
  object-fit: cover;
}
.entry-content .blogcard-wrap .blogcard-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: #1f2937;
}
.entry-content .blogcard-wrap .blogcard-snippet {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}
.entry-content .blogcard-wrap .blogcard-footer {
  font-size: 12px;
  color: #9ca3af;
}
/* --- blogcard ダークモード --- */
body.dark-mode .entry-content .blogcard-wrap .blogcard {
  border-color: #374151;
  background: #1f2937;
}
body.dark-mode .entry-content .blogcard-wrap .blogcard-title {
  color: #e5e7eb;
}
body.dark-mode .entry-content .blogcard-wrap .blogcard-snippet {
  color: #9ca3af;
}
body.dark-mode .entry-content .blogcard-wrap .blogcard-footer {
  color: #6b7280;
}

/* --- pilates-link（カスタム内部リンクカード） --- */
.pilates-link {
  display: flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  overflow: visible;
  position: relative;
  margin: 24px 0 16px;
  padding: 20px 12px 12px;
  gap: 14px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.pilates-link:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none !important;
}
.pilates-link__thumb {
  flex: 0 0 180px;
  height: 100px;
  overflow: hidden;
  border-radius: 6px;
}
.pilates-link__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pilates-link__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.pilates-link__badge {
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 3px 12px;
  border-radius: 6px;
  background: #6b7280;
  line-height: 1.5;
  z-index: 1;
}
.pilates-link__title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pilates-link__desc {
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pilates-link__cta {
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  margin-top: 2px;
}
.pilates-link__arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.pilates-link:hover .pilates-link__arrow {
  transform: translateX(4px);
}
/* --- pilates-link: campaign バリアント --- */
.pilates-link--campaign {
  border-color: #fca5a5;
  background: linear-gradient(135deg, #fff5f5 0%, #fff 60%);
}
.pilates-link--campaign .pilates-link__badge {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
.pilates-link--campaign .pilates-link__cta {
  color: #dc2626;
}
/* --- pilates-link: review バリアント --- */
.pilates-link--review {
  border-color: #93c5fd;
  background: linear-gradient(135deg, #eff6ff 0%, #fff 60%);
}
.pilates-link--review .pilates-link__badge {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}
/* --- pilates-link モバイル --- */
@media (max-width: 599px) {
  .pilates-link {
    padding: 10px;
    gap: 10px;
  }
  .pilates-link__thumb {
    flex: 0 0 110px;
    height: 72px;
  }
  .pilates-link__title {
    font-size: 14px;
  }
  .pilates-link__desc {
    font-size: 12px;
    -webkit-line-clamp: 1;
  }
}
/* --- pilates-link ダークモード --- */
body.dark-mode .pilates-link {
  background: #1f2937;
  border-color: #374151;
}
body.dark-mode .pilates-link__thumb {
  background: #374151;
}
body.dark-mode .pilates-link__title {
  color: #e5e7eb;
}
body.dark-mode .pilates-link__desc {
  color: #9ca3af;
}
body.dark-mode .pilates-link__cta {
  color: #60a5fa;
}
body.dark-mode .pilates-link--campaign {
  background: linear-gradient(135deg, #1c1917 0%, #1f2937 60%);
  border-color: #991b1b;
}
body.dark-mode .pilates-link--campaign .pilates-link__cta {
  color: #f87171;
}
body.dark-mode .pilates-link--review {
  background: linear-gradient(135deg, #172554 0%, #1f2937 60%);
  border-color: #1e40af;
}

/* --- review-summary（口コミサマリー） --- */
.review-summary {
  font-size: 14px;
  color: #374151;
  margin: 4px 0 16px;
  line-height: 1.6;
}
.review-summary i { color: #f59e0b; margin-right: 2px; }
body.dark-mode .review-summary { color: #d1d5db; }
body.dark-mode .review-summary i { color: #fbbf24; }

/* --- cta-trial-badges（CTA体験バッジ） --- */
.cta-trial-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.trial-badge {
  display: inline-block;
  background: #f59e0b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.trial-note {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
body.dark-mode .trial-badge { background: #b45309; }
body.dark-mode .trial-note { background: #dc2626; }

/* --- モバイル対応 --- */
@media screen and (max-width: 768px) {
  .studio-highlights,
  .recommend-persona { padding: 12px 14px; }
  .studio-highlights li,
  .recommend-persona li { font-size: 13px; }
  .price-highlight { font-size: 14px; padding: 8px 12px; }
  .price-highlight small { font-size: 11px; }
  .campaign-highlight-box { padding: 12px 16px; }
}

/* ---------------------------------------------------------------------------
   P1: AEO 直接回答ブロック
   --------------------------------------------------------------------------- */
.area-direct-answer {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 12px 20px 8px;
  margin: 16px 0 8px;
  font-size: 15px;
  line-height: 1.8;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.area-direct-answer__dl {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
}
.area-direct-answer__dl dt {
  font-weight: 700;
  color: #0369a1;
  min-width: 6em;
  margin: 0;
  padding: 0;
}
.area-direct-answer__dl dt::after { content: "："; }
.area-direct-answer__dl dd {
  margin: 0 1.5em 0 0;
  padding: 0;
}
body.dark-mode .area-direct-answer {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
body.dark-mode .area-direct-answer__dl dt { color: #7dd3fc; }

/* ---------------------------------------------------------------------------
   P3: area-comparison/pricing-table caption を視覚的に非表示（AEO/a11y用に残す）
   --------------------------------------------------------------------------- */
.area-comparison-table caption,
.area-pricing-table caption {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* ---------------------------------------------------------------------------
   P6: 新規停止スタジオ テーブル区切り行
   --------------------------------------------------------------------------- */
.area-pricing-table .table-note-row td,
.male-availability-table .table-note-row td {
  background: #f5f5f5 !important;
  text-align: center;
  font-style: italic;
  color: #666;
  border-top: 2px dashed #ccc;
  padding: 8px;
  font-size: 13px;
}
.male-availability-table .table-note-row:hover td {
  background: #f5f5f5 !important;
}
body.dark-mode .area-pricing-table .table-note-row td,
body.dark-mode .male-availability-table .table-note-row td {
  background: #374151 !important;
  color: #9ca3af;
  border-top-color: #4b5563;
}
body.dark-mode .male-availability-table .table-note-row:hover td {
  background: #374151 !important;
}

/* note行stickyカバー（JSで td 内に挿入、CSS sticky で自動追従） */
.note-row-sticky {
  position: sticky;
  left: 0;
  z-index: 10;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  color: #666;
  font-size: 13px;
  height: 100%;
  box-sizing: border-box;
  /* td の padding と相殺して全面カバー */
  margin: -8px;
  padding: 8px;
}
body.dark-mode .note-row-sticky {
  background: #374151;
  color: #9ca3af;
}

/* ============================================
   簡易CTA: 逆対角コーナー装飾 + コーラルレッドボタン
   豪華CTA(top3-cta)の「子分」デザイン
   ============================================ */
.mini-cta__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #b45309;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.mini-cta__label i {
  color: #d97706;
  margin-right: 4px;
}
/* ミニリボン画像（外枠に跨る配置） */
.mini-cta__label:has(.mini-cta__ribbon-img) {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-bottom: 0;
  z-index: 3;
}
.mini-cta__label .mini-cta__ribbon-img {
  display: block;
  width: 200px;
  height: auto;
}
/* リボン画像がある場合、上マージン拡張+ボックス内パディング */
.mini-cta:has(.mini-cta__ribbon-img) {
  margin-top: 3.5em;
  padding-top: 44px;
}
body.dark-mode .mini-cta__label {
  color: #fbbf24;
}
body.dark-mode .mini-cta__label i {
  color: #f59e0b;
}
.mini-cta {
  text-align: center;
  padding: 28px 24px;
  margin: 2em 0;
  background: linear-gradient(135deg, #fffbeb 0%, #fff8e1 40%, #fff 100%);
  border: 1px solid #d4a843;
  border-radius: 16px;
  position: relative;
  overflow: visible;
  box-shadow: 0 2px 12px rgba(180,131,54,0.12);
}
/* コーナー装飾（右上・左下の逆対角） */
.mini-cta__corner {
  position: absolute;
  width: 80px;
  height: auto;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}
.mini-cta__corner--tr { top: -2px; right: -2px; transform: scaleX(-1); }
.mini-cta__corner--bl { bottom: -2px; left: -2px; transform: scaleY(-1); }
/* ボタン: 口コミ紹介記事CTAと同構造、色のみコーラルレッド */
.mini-cta__btn {
  display: block;
  width: 80%;
  margin: 0 auto;
  padding: 16px 24px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(220,38,38,0.3);
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
/* 虫眼鏡アイコン */
.mini-cta__btn i {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}
/* シマーライン（GPU合成: translateX） */
.mini-cta__btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.4) 46%, rgba(255,255,255,0.12) 54%, transparent 65%);
  will-change: transform;
  animation: top3-btn-shimmer 4s linear infinite 1.5s;
  pointer-events: none;
  z-index: 1;
}
/* 右矢印（::after 自動付与） */
.mini-cta__btn::after {
  content: '\f105';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 18px;
  margin-left: 10px;
  display: inline-block;
  transition: transform 0.3s ease;
}
/* ホバー */
.mini-cta__btn:hover {
  background: linear-gradient(135deg, #f87171, #ef4444);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220,38,38,0.4);
  color: #fff;
}
.mini-cta__btn:hover::after {
  transform: translateX(6px);
}
.mini-cta__reassure {
  font-size: 12px;
  color: #78716c;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}
.mini-cta__reassure i {
  color: #dc2626;
  margin-right: 3px;
}

/* --- mini-cta SP対応 --- */
@media (max-width: 768px) {
  .mini-cta__btn {
    width: 100%;
    white-space: normal;
    line-height: 1.5;
    padding-left: 36px;
    padding-right: 32px;
  }
  .mini-cta__btn::after {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }
  .mini-cta__btn:hover::after {
    transform: translateY(-50%) translateX(4px);
  }
  .mini-cta__btn i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0;
  }
  .mini-cta__corner { width: 60px; }
}

/* --- mini-cta ダークモード --- */
body.dark-mode .mini-cta {
  background: linear-gradient(135deg, #2a2215 0%, #1e1e1e 100%);
  border-color: #6b5a30;
}
body.dark-mode .mini-cta__reassure {
  color: #9ca3af;
}
