/**
 * 記事ページ共通CSS
 * カードローン本舗の記事ページで使用する共通スタイル
 */

/* ========================================
   レイアウト調整
======================================== */

/* メインコンテナとサイドバーのレイアウト */
.l-main {
  display: block !important;
  width: 100% !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 10px 40px 0 !important;
}

@media screen and (min-width: 768px) {
  .l-main {
    display: flex !important;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
  }
  
  .l-article {
    flex: none;
    width: 920px;
  }
  
  .l-sidebar {
    flex: none;
    width: 300px;
    margin-left: 0;
  }
}

@media screen and (max-width: 767px) {
  .l-main {
    padding: 0 15px !important;
  }
  
  .l-sidebar {
    width: 100%;
    max-width: none;
    margin: 30px 0 0;
  }
}

/* ========================================
   サイドバーコンポーネント
======================================== */

.l-sidebar {
  width: 300px;
}

@media screen and (max-width: 767px) {
  .l-sidebar {
    width: 100% !important;
    max-width: none !important;
    margin: 30px 0 0 !important;
  }
}

.l-sidebar__banner {
  margin-bottom: 20px;
  text-align: center;
  overflow: hidden;
}

.l-sidebar__banner img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 300px;
  margin: 0 auto;
}

.l-sidebar__section {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  .l-sidebar__banner {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .l-sidebar__section {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

.l-sidebar__header {
  background: #f8f9fa;
  color: #333;
  padding: 12px 15px;
  font-size: 15px;
  font-weight: bold;
  border-bottom: 1px solid #e0e0e0;
}

.l-sidebar__content {
  padding: 10px 0;
}

.l-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.l-sidebar__list-item {
  padding: 8px 15px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.l-sidebar__list-item:last-child {
  border-bottom: none;
}

.l-sidebar__list-item a {
  display: block;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.6;
  transition: color 0.3s;
  padding-left: 20px;
  position: relative;
}

.l-sidebar__list-item a::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-weight: bold;
  transition: color 0.3s;
}

.l-sidebar__list-item a:hover {
  color: #0066cc;
  text-decoration: underline;
}

.l-sidebar__list-item a:hover::before {
  color: #0066cc;
}


/* ========================================
   記事コンテンツスタイル
======================================== */

/* 記事タイトル（h1） */
.c-entry h1 {
  font-size: 26px;
  line-height: 1.6;
  color: #333;
  font-weight: bold;
  margin: 15px 0 20px;
  padding: 0;
  background: none;
  border: none;
}

/* アイキャッチ画像 */
.c-entry__eyecatch {
  margin-bottom: 30px;
  text-align: center;
}

.c-entry__eyecatch img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 記事内画像 */
.c-entry__image {
  margin: 30px 0;
  text-align: center;
}

.c-entry__image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 記事メタ情報 */
.c-entry__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  font-size: 14px;
  color: #666;
  flex-wrap: wrap;
  position: relative;
}

.c-entry__date,
.c-entry__update {
  display: flex;
  align-items: center;
  gap: 5px;
}

.c-entry__pr {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* PR含むボタンのスタイル調整 */

.c-entry .c-entry__pr .c-pr01 {
  margin: 0;
  display: inline-block;
}

.c-entry .c-entry__pr .c-pr01__button {
  background: #e9ecef;
  color: #666;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: normal;
  cursor: pointer;
  border: 1px solid #dee2e6;
  list-style: none;
  transition: all 0.2s;
  display: inline-block;
  line-height: 1.4;
  outline: none;
  user-select: none;
}

.c-entry .c-entry__pr .c-pr01__button:hover {
  background: #dee2e6;
  border-color: #ced4da;
}

.c-entry .c-entry__pr .c-pr01__button::-webkit-details-marker {
  display: none;
}

/* ポップアップ本体のスタイル */
.c-entry .c-entry__pr .c-pr01__body {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: auto !important;
  right: 0 !important;
  transform: none !important;
  translate: none !important;
  background: #fff !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 6px !important;
  padding: 12px 16px !important;
  min-width: 280px !important;
  max-width: 360px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #495057 !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12) !important;
  z-index: 9999 !important;
  white-space: normal !important;
  text-align: left !important;
}

/* detailsが閉じている時は非表示 */
.c-entry .c-entry__pr .c-pr01:not([open]) .c-pr01__body {
  display: none;
}

/* ポップアップの矢印を削除 */
.c-entry .c-entry__pr .c-pr01__body::before,
.c-entry .c-entry__pr .c-pr01__body::after {
  display: none;
}

/* 見出し */
.c-entry__content {
  counter-reset: h2-counter;
}

.c-entry__content h2 {
  font-size: 24px;
  color: #333;
  margin: 40px 0 20px;
  padding: 15px;
  background: #f0f7ff;
  border-left: 4px solid #2a7ad1;
  counter-increment: h2-counter;
  position: relative;
}

.c-entry__content h2::before {
  content: counter(h2-counter) ". ";
  color: #2a7ad1;
  font-weight: bold;
  margin-right: 5px;
}

.c-entry__content h3 {
  font-size: 20px;
  color: #333;
  margin: 30px 0 15px;
  padding: 10px 0;
  border-bottom: 2px solid #2a7ad1;
}

/* 本文 */
.c-entry__content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ハイライトボックス */
.c-entry__content .highlight-box {
  background: #fff8dc;
  border: 2px solid #cca12d;
  border-radius: 10px;
  padding: 20px;
  margin: 30px 0;
}

/* ポイントリスト */
.c-entry__content .point-list {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

.c-entry__content .point-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.6;
}

.c-entry__content .point-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2a7ad1;
  font-weight: bold;
  font-size: 18px;
}

/* ========================================
   レスポンシブ調整
======================================== */

@media screen and (max-width: 767px) {
  .c-entry h1 {
    font-size: 22px;
    margin: 20px 0 20px;
    padding: 0;
  }
  
  .c-entry__content h2 {
    font-size: 20px;
  }
  
  .c-entry__content h3 {
    font-size: 18px;
  }
  
  .c-entry__meta {
    font-size: 12px;
    gap: 15px;
    padding-right: 70px; /* PR含むボタンのスペース確保 */
  }
  
  .c-entry .c-entry__pr .c-pr01__button {
    font-size: 11px;
    padding: 2px 8px;
  }
  
  .c-entry .c-entry__pr .c-pr01__body {
    left: auto !important;
    right: -10px !important;
    transform: none !important;
    max-width: calc(100vw - 40px) !important;
    min-width: 250px !important;
  }
  
  /* モバイルでも矢印を非表示 */
  .c-entry .c-entry__pr .c-pr01__body::before,
  .c-entry .c-entry__pr .c-pr01__body::after {
    display: none;
  }
}

/* ========================================
   パンくずリスト
======================================== */

/* パンくずリストエリア */
.p-area {
  position: relative;
  z-index: 10;
}

.bread-area {
  display: block !important;
  padding: 8px 0;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  font-size: 14px;
}

/* 既存のCSSの矢印を無効化 */
.breadcrumbs li:before {
  content: none !important;
  display: none !important;
}

.breadcrumbs li::before {
  content: none !important;
  display: none !important;
}

@media screen and (min-width: 768px) {
  .bread-area {
    margin-top: 0; /* ヘッダーは既に適切な位置にあるため余白不要 */
  }
}

@media screen and (max-width: 767px) {
  .bread-area {
    margin-top: 50px; /* モバイルヘッダーの高さ分 */
    padding: 12px 0;
    font-size: 14px;
  }
  
  .breadcrumbs {
    font-size: 14px !important;
  }
  
  .breadcrumbs a {
    font-size: 14px !important;
  }
}

.bread-area .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  font-size: 14px !important;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  line-height: 1.5;
  position: relative;
}


/* すべての既存の矢印をリセット */
.breadcrumbs li:after {
  content: none !important;
}

/* 区切り線 - 最初の項目の後だけに表示 */
.breadcrumbs li:first-child:after {
  content: "" !important;
  display: inline-block !important;
  width: 5px;
  height: 5px;
  border-top: 1.5px solid #999;
  border-right: 1.5px solid #999;
  transform: rotate(45deg);
  margin: 0 12px;
  vertical-align: middle;
}

.breadcrumbs li:last-child {
  color: #666;
  word-break: break-all;
  font-weight: 500;
  font-size: 14px;
}

.breadcrumbs a {
  color: #2a7ad1;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 14px !important;
}

.breadcrumbs a:hover {
  background: #f0f7ff;
  color: #1967c6;
}

@media screen and (max-width: 767px) {
  .bread-area .inner {
    padding: 0 15px;
  }
  
  .breadcrumbs ol {
    display: block;
  }
  
  .breadcrumbs li {
    display: inline;
  }
  
  .breadcrumbs li:first-child {
    display: inline;
  }
  
  /* モバイルでも矢印は最初の項目の後だけ */
  .breadcrumbs li:after {
    content: none !important;
  }
  
  .breadcrumbs li:first-child:after {
    content: "" !important;
    display: inline-block !important;
    width: 4px;
    height: 4px;
    border-top: 1px solid #999;
    border-right: 1px solid #999;
    transform: rotate(45deg);
    margin: 0 8px 2px;
    vertical-align: middle;
  }
  
  .breadcrumbs li:last-child {
    display: inline;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    word-break: break-all;
  }
  
  .breadcrumbs a {
    padding: 1px 2px;
  }
}

/* ========================================
   目次スタイル
======================================== */

.c-toc {
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  margin: 30px 0;
  padding: 0;
  position: relative;
}

.c-toc__header {
  background: #e9ecef;
  padding: 15px 20px;
  border-bottom: 2px solid #dee2e6;
  position: relative;
  cursor: default;
}

.c-toc__title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.c-toc__content {
  padding: 20px;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.c-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc-counter;
}

/* entry.min.cssのflexレイアウトを上書き */
.c-entry .c-toc__list {
  display: block !important;
  flex-wrap: initial !important;
  counter-reset: toc-counter !important;
}

/* entry.min.cssのolのcounter-resetを無効化 */
.c-entry .c-toc ol {
  counter-reset: none !important;
}

.c-entry .c-toc__sublist {
  display: block !important;
  flex-wrap: initial !important;
  counter-reset: none !important;
}

/* entry.min.cssのカウンター設定を完全に上書き */
.c-entry .c-toc__list > .c-toc__item {
  counter-increment: toc-counter !important;
}

.c-entry .c-toc__list > .c-toc__item::before {
  content: counter(toc-counter, decimal) !important;
  counter-increment: none !important;
}

.c-toc__item {
  counter-increment: toc-counter;
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  display: block !important;
  width: 100% !important;
}

.c-toc__item::before {
  content: counter(toc-counter);
  position: absolute;
  left: 0;
  color: #2a7ad1;
  font-weight: bold;
}

.c-toc__link {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.8;
  transition: color 0.3s;
  display: block;
}

.c-toc__link:hover {
  color: #2a7ad1;
  text-decoration: underline;
}

/* h3用のサブリスト */
.c-toc__sublist {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0 0 0 0;
}

.c-toc__subitem {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  display: block !important;
  width: 100% !important;
}

.c-toc__subitem::before {
  content: "";
  display: none;
}

/* entry.min.cssのol>li::beforeスタイルを上書き */
.c-entry .c-toc__sublist > li::before {
  content: "" !important;
  display: none !important;
}

.c-toc__subitem .c-toc__link {
  font-size: 14px;
  color: #2a7ad1;
}

.c-toc__subitem .c-toc__link:hover {
  color: #2a7ad1;
}

@media screen and (max-width: 767px) {
  .c-toc {
    margin: 20px 0;
  }
  
  .c-toc__header {
    padding: 12px 15px;
  }
  
  .c-toc__title {
    font-size: 16px;
  }
  
  .c-toc__content {
    padding: 15px;
  }
  
  .c-toc__link {
    font-size: 14px;
  }
  
  .c-toc__subitem {
    padding-left: 25px;
  }
  
  .c-toc__subitem::before {
    display: none;
  }
  
  .c-toc__subitem .c-toc__link {
    font-size: 13px;
  }
}

/* トグルボタンスタイル */
.c-toc__toggle {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease;
}

.c-toc__toggle:hover {
  transform: translateY(-50%) scale(1.1);
}

.c-toc__toggle:focus {
  outline: 2px solid #2a7ad1;
  outline-offset: 2px;
}

/* プラス・マイナスアイコン */
.c-toc__toggle-horizontal,
.c-toc__toggle-vertical {
  position: absolute;
  background: #666;
  transition: all 0.3s ease;
}

.c-toc__toggle-horizontal {
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.c-toc__toggle-vertical {
  top: 50%;
  left: 50%;
  width: 2px;
  height: 16px;
  transform: translate(-50%, -50%);
}

/* 開閉状態のスタイル */
.c-toc.is-closed .c-toc__content {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.c-toc.is-closed .c-toc__toggle-vertical {
  transform: translate(-50%, -50%) rotate(0deg);
}

.c-toc.is-opened .c-toc__toggle-vertical {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

/* モバイル調整 */
@media screen and (max-width: 767px) {
  .c-toc__toggle {
    right: 15px;
  }
}

/* ========================================
   フローティング目次
======================================== */

/* フローティング目次コンテナ */
.c-toc-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* フローティングボタン（SP/PC共通基本スタイル） */
.c-toc-floating__button {
  position: relative;
  width: 50px;
  height: 50px;
  background: #2a7ad1;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-toc-floating__button:hover {
  background: #1e5fa8;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.c-toc-floating__button:focus {
  outline: 2px solid #2a7ad1;
  outline-offset: 2px;
}

/* 目次アイコン（三本線） */
.c-toc-floating__icon {
  width: 24px;
  height: 20px;
  position: relative;
}

.c-toc-floating__icon::before,
.c-toc-floating__icon::after,
.c-toc-floating__icon span {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

.c-toc-floating__icon::before {
  top: 0;
}

.c-toc-floating__icon span {
  top: 50%;
  transform: translateY(-50%);
}

.c-toc-floating__icon::after {
  bottom: 0;
}

/* PC版スタイル */
@media screen and (min-width: 768px) {
  .c-toc-floating__panel {
    position: absolute;
    bottom: 0;
    right: 60px;
    width: 300px;
    max-height: 70vh;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    transform-origin: bottom right;
  }
  
  .c-toc-floating__panel.is-closed {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
  }
  
  .c-toc-floating__panel-header {
    background: #f8f9fa;
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .c-toc-floating__panel-close {
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 0;
    transition: transform 0.3s ease;
  }
  
  .c-toc-floating__panel-close:hover {
    transform: rotate(90deg);
  }
  
  .c-toc-floating__panel-close::before,
  .c-toc-floating__panel-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: #666;
    transform: translate(-50%, -50%) rotate(45deg);
  }
  
  .c-toc-floating__panel-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  
  .c-toc-floating__panel-content {
    max-height: calc(70vh - 50px);
    overflow-y: auto;
    padding: 15px;
  }
  
  /* スクロールバーのスタイリング */
  .c-toc-floating__panel-content::-webkit-scrollbar {
    width: 6px;
  }
  
  .c-toc-floating__panel-content::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  
  .c-toc-floating__panel-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
  }
  
  .c-toc-floating__panel-content::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
  
  /* フローティング目次のリスト（既存のスタイルを継承） */
  .c-toc-floating__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: floating-toc-counter;
  }
  
  .c-toc-floating__item {
    counter-increment: floating-toc-counter;
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
  }
  
  .c-toc-floating__item::before {
    content: counter(floating-toc-counter);
    position: absolute;
    left: 0;
    color: #2a7ad1;
    font-weight: bold;
    font-size: 13px;
  }
  
  .c-toc-floating__link {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.6;
    transition: all 0.3s;
    display: block;
  }
  
  .c-toc-floating__link:hover {
    color: #2a7ad1;
    padding-left: 5px;
  }
  
  .c-toc-floating__link.is-active {
    color: #2a7ad1;
    font-weight: bold;
    background: linear-gradient(to right, #e3f2fd 0%, transparent 100%);
    margin-left: -10px;
    padding-left: 10px;
    border-radius: 4px;
  }
  
  /* サブリスト */
  .c-toc-floating__sublist {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0 0 0 15px;
  }
  
  .c-toc-floating__subitem {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
  }
  
  .c-toc-floating__subitem::before {
    content: '・';
    position: absolute;
    left: 0;
    color: #999;
  }
  
  .c-toc-floating__subitem .c-toc-floating__link {
    font-size: 12px;
    color: #666;
  }
  
  .c-toc-floating__subitem .c-toc-floating__link:hover {
    color: #2a7ad1;
  }
  
  .c-toc-floating__subitem .c-toc-floating__link.is-active {
    color: #2a7ad1;
    font-weight: normal;
  }
}

/* SP版スタイル */
@media screen and (max-width: 767px) {
  .c-toc-floating {
    bottom: 20px;
    right: 20px;
  }
  
  /* オーバーレイ */
  .c-toc-floating__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .c-toc-floating__overlay.is-visible {
    opacity: 1;
    visibility: visible;
  }
  
  /* モーダルパネル */
  .c-toc-floating__modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 80vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
  }
  
  .c-toc-floating__modal.is-visible {
    transform: translateY(0);
  }
  
  .c-toc-floating__modal-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .c-toc-floating__modal-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
  }
  
  .c-toc-floating__modal-close {
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 0;
  }
  
  .c-toc-floating__modal-close::before,
  .c-toc-floating__modal-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: #666;
    transform: translate(-50%, -50%) rotate(45deg);
  }
  
  .c-toc-floating__modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  
  .c-toc-floating__modal-content {
    max-height: calc(80vh - 60px);
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
  }
  
  /* SP版のリストスタイル（PC版と同様だが少し調整） */
  .c-toc-floating__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: floating-toc-counter;
  }
  
  .c-toc-floating__item {
    counter-increment: floating-toc-counter;
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
  }
  
  .c-toc-floating__item::before {
    content: counter(floating-toc-counter);
    position: absolute;
    left: 0;
    color: #2a7ad1;
    font-weight: bold;
    font-size: 14px;
  }
  
  .c-toc-floating__link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.8;
    display: block;
    padding: 5px 0;
  }
  
  .c-toc-floating__link:active {
    color: #2a7ad1;
    background: #e3f2fd;
  }
  
  .c-toc-floating__sublist {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0 0 0 20px;
  }
  
  .c-toc-floating__subitem {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
  }
  
  .c-toc-floating__subitem::before {
    content: '・';
    position: absolute;
    left: 0;
    color: #999;
  }
  
  .c-toc-floating__subitem .c-toc-floating__link {
    font-size: 13px;
    color: #666;
  }
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.c-toc-floating.is-show {
  animation: fadeIn 0.3s ease;
}

/* SP版は常時表示 */
@media screen and (max-width: 767px) {
  .c-toc-floating {
    opacity: 1;
    pointer-events: auto;
  }
}

/* PC版は初期状態で非表示 */
@media screen and (min-width: 768px) {
  .c-toc-floating {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .c-toc-floating.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ========================================
   ユーティリティクラス
======================================== */

/* 記事内で使える装飾用クラス */
.article-marker {
  background: linear-gradient(transparent 60%, #ffeb3b 60%);
  font-weight: bold;
}

.article-emphasis {
  color: #d50000;
  font-weight: bold;
}

.article-info-box {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 15px;
  margin: 20px 0;
}

.article-warning-box {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 15px;
  margin: 20px 0;
}

.article-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.article-table th,
.article-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.article-table th {
  background: #f5f5f5;
  font-weight: bold;
}

.article-table tr:nth-child(even) {
  background: #fafafa;
}

/* テキスト下線装飾 */
.text-underline-yellow {
  text-decoration: underline;
  text-decoration-color: #FFD700;
  text-decoration-thickness: 5px;
  text-decoration-skip-ink: none;
  text-underline-offset: 2px;
}

.text-underline-red {
  text-decoration: underline;
  text-decoration-color: #FF0000;
  text-decoration-thickness: 5px;
  text-decoration-skip-ink: none;
  text-underline-offset: 2px;
}

/* ========================================
   在籍確認なしカードローンテーブル
======================================== */

/* テーブルラッパー（モバイルでスクロール可能） */
.enrollment-check-table-wrapper {
  width: 100%;
  margin: 30px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 8px;
}

/* テーブル本体 */
.enrollment-check-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
  table-layout: auto;
}

/* テーブルヘッダー（項目名） */
.enrollment-check-table thead th {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 12px 8px;
  text-align: center;
  font-weight: bold;
  color: #333;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* 各列の幅調整 */
.enrollment-check-table thead th:nth-child(1) { width: auto; min-width: 120px; } /* 会社名 */
.enrollment-check-table thead th:nth-child(2) { width: auto; min-width: 100px; } /* 金利 */
.enrollment-check-table thead th:nth-child(3) { width: auto; min-width: 120px; } /* 申込対象年齢 */
.enrollment-check-table thead th:nth-child(4) { width: auto; min-width: 100px; } /* 融資スピード */
.enrollment-check-table thead th:nth-child(5) { width: auto; min-width: 60px; } /* 郵送物 */
.enrollment-check-table thead th:nth-child(6) { width: auto; min-width: 80px; } /* 無利息期間 */

/* セクションヘッダー（おススメ！など） */
.enrollment-check-table__section-header {
  background: #fffacd !important;
  border: 1px solid #ddd !important;
  font-weight: bold;
  text-align: center;
  padding: 10px !important;
  color: #333;
  font-size: 16px;
  white-space: normal !important;
  line-height: 1.6 !important;
}

/* セクションヘッダーのバリエーション */
.enrollment-check-table__section-header--recommend {
  background: #fff8dc !important;
  color: #d73502;
}

.enrollment-check-table__section-header--lowrate {
  background: #e6f3ff !important;
  color: #0066cc;
}

.enrollment-check-table__section-header--megabank {
  background: #f0f8ff !important;
  color: #2e5987;
}

.enrollment-check-table__section-header--regional {
  background: #f5f5f5 !important;
  color: #555;
}

.enrollment-check-table__section-header--consumer {
  background: #ffefd5 !important;
  color: #d2691e;
}

.enrollment-check-table__section-header--credit {
  background: #f0fff0 !important;
  color: #228b22;
}

/* データセル */
.enrollment-check-table td {
  border: 1px solid #ddd;
  padding: 10px 8px;
  text-align: center;
  vertical-align: middle;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}

/* 各列の幅を継承 */
.enrollment-check-table td:nth-child(1) { width: auto; min-width: 120px; } /* 会社名 */
.enrollment-check-table td:nth-child(2) { width: auto; min-width: 100px; white-space: nowrap; } /* 金利 */
.enrollment-check-table td:nth-child(3) { width: auto; min-width: 120px; } /* 申込対象年齢 */
.enrollment-check-table td:nth-child(4) { width: auto; min-width: 100px; } /* 融資スピード */
.enrollment-check-table td:nth-child(5) { width: auto; min-width: 60px; } /* 郵送物 */
.enrollment-check-table td:nth-child(6) { width: auto; min-width: 80px; } /* 無利息期間 */

/* 会社名セル（左寄せ） */
.enrollment-check-table td:first-child {
  text-align: left;
  font-weight: bold;
  white-space: nowrap;
}

/* 行ストライプ */
.enrollment-check-table tbody tr:nth-child(even) {
  background: #fafafa;
}

/* ホバー効果 */
.enrollment-check-table tbody tr:hover {
  background: #f0f7ff;
}

/* 装飾クラス */
.enrollment-check-table .marker-yellow {
  background: linear-gradient(transparent 60%, #ffeb3b 60%);
  font-weight: bold;
  padding: 2px 4px;
}

.enrollment-check-table .text-red {
  color: #d50000;
  font-weight: bold;
}

.enrollment-check-table .text-blue {
  color: #0066cc;
  font-weight: bold;
}

.enrollment-check-table .text-small {
  font-size: 12px;
  color: #666;
  display: block;
  margin-top: 4px;
  line-height: 1.4;
}

/* モバイル専用調整 */
@media screen and (max-width: 767px) {
  .enrollment-check-table-wrapper {
    margin: 20px 0;
    padding: 0 5px;
    border-radius: 0;
    box-shadow: none;
    border-top: 2px solid #ddd;
    border-bottom: 2px solid #ddd;
  }
  
  .enrollment-check-table {
    font-size: 12px;
    min-width: 600px;
  }
  
  .enrollment-check-table thead th {
    padding: 8px 5px;
    font-size: 12px;
  }
  
  .enrollment-check-table td {
    padding: 8px 5px;
    font-size: 12px;
  }
  
  .enrollment-check-table__section-header {
    font-size: 14px;
    padding: 8px !important;
  }
  
  /* スクロールインジケーター */
  .enrollment-check-table-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.1));
    pointer-events: none;
  }
  
  /* モバイルでのスクロールヒント */
  .enrollment-check-table-scroll-hint {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #999;
    margin-top: 5px;
  }
}

/* PC版調整 */
@media screen and (min-width: 768px) {
  .enrollment-check-table-wrapper {
    overflow-x: visible;
  }
  
  .enrollment-check-table {
    min-width: auto;
  }
  
  .enrollment-check-table-scroll-hint {
    display: none;
  }
}

/* テーブル下の注意文言 */
.table-notes-box {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 15px 0 25px;
}

.table-notes-item {
  font-size: 14px !important;
  color: #666 !important;
  line-height: 1.5 !important;
  margin: 0 0 4px 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  font-weight: normal !important;
}

.table-notes-item:last-child {
  margin-bottom: 0 !important;
}

/* モバイルでのテーブル注意文言調整 */
@media screen and (max-width: 767px) {
  .table-notes-box {
    padding: 10px 14px;
    margin: 12px 0 20px;
  }
  
  .table-notes-item {
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin-bottom: 3px !important;
  }
}

/* ========================================
   個別会社詳細テーブル
======================================== */

/* テーブルラッパー */
.company-detail-table-wrapper {
  width: 100%;
  margin: 25px 0;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e0e0e0;
}

/* テーブル本体 */
.company-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.company-detail-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
}

.company-detail-table tbody tr:last-child {
  border-bottom: none;
}

/* 見出しセル */
.company-detail-table th {
  background: #f8f9fa;
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  color: #333;
  width: 38%;
  border-right: 1px solid #e9ecef;
  vertical-align: middle;
}

/* データセル */
.company-detail-table td {
  padding: 14px 18px;
  color: #555;
  line-height: 1.6;
  vertical-align: middle;
}

/* モバイル対応 */
@media screen and (max-width: 767px) {
  .company-detail-table-wrapper {
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e0e0e0;
  }
  
  .company-detail-table {
    font-size: 14px;
  }
  
  .company-detail-table th {
    padding: 12px 15px;
    width: 36%;
    font-size: 13px;
  }
  
  .company-detail-table td {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  /* 長いテキストの折り返し */
  .company-detail-table td {
    word-break: break-word;
  }
}

/* ========================================
   アイフルのおすすめポイントボックス
======================================== */
.aiful-recommend-box {
  background-color: #E3F2FD;
  border-radius: 8px;
  overflow: hidden;
  margin: 30px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.aiful-recommend-header {
  background-color: #1976D2;
  color: #FFFFFF !important;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.aiful-recommend-content {
  padding: 20px;
}

.aiful-recommend-content p {
  margin: 12px 0;
  line-height: 1.8;
  color: #333333 !important;
  font-size: 15px;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .aiful-recommend-box {
    margin: 20px 0;
  }
  
  .aiful-recommend-header {
    font-size: 15px;
    padding: 10px 15px;
  }
  
  .aiful-recommend-content {
    padding: 15px;
  }
  
  .aiful-recommend-content p {
    font-size: 14px;
    margin: 10px 0;
  }
}

/* ========================================
   アイフル詳細説明セクション
======================================== */
.aiful-detail-section {
  margin: 40px 0;
}

.aiful-detail-section p {
  line-height: 1.8;
  margin: 20px 0;
  color: #333;
}

.aiful-detail-section .highlight-title {
  font-size: 18px;
  font-weight: bold;
  color: #ff4444;
  text-align: left;
  margin: 30px 0;
}

/* 引用ボックス */
.quote-box {
  background-color: #f8f8f8;
  border-left: 4px solid #1976D2;
  padding: 20px;
  margin: 30px 0;
  border-radius: 4px;
}

.quote-box p {
  margin: 10px 0;
  line-height: 1.8;
  color: #333;
  font-style: italic;
}

.quote-box .quote-source {
  text-align: left;
  font-size: 14px;
  color: #666;
  margin-top: 15px;
  font-style: normal;
}

/* 注記テキスト */
.note-text {
  font-size: 13px;
  color: #666;
  margin-top: 30px;
  text-align: left;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .aiful-detail-section {
    margin: 30px 0;
  }
  
  .aiful-detail-section .highlight-title {
    font-size: 16px;
    margin: 20px 0;
  }
  
  .quote-box {
    padding: 15px;
    margin: 20px 0;
  }
  
  .note-text {
    font-size: 12px;
  }
}

/* ========================================
   CVボタンセクション
======================================== */
.cv-button-section {
  text-align: center;
  margin: 40px 0;
  padding: 20px;
}

.cv-button-text {
  color: #ff4444;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

.cv-button {
  display: inline-block;
  background: linear-gradient(180deg, #ff6363 0%, #ff4444 100%);
  color: #fff !important;
  text-decoration: none;
  padding: 18px 60px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
  box-shadow: 0 6px 16px rgba(255, 68, 68, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 2px solid #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.cv-button:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cv-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 68, 68, 0.4);
  background: linear-gradient(180deg, #ff7373 0%, #ff5555 100%);
}

.cv-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(255, 68, 68, 0.3);
  transition: all 0.1s;
}

.cv-button:active:before {
  width: 300px;
  height: 300px;
}

/* リップルエフェクト */
.cv-button-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: cv-button-ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes cv-button-ripple-animation {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

.cv-button-main {
  display: inline-block;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}

.cv-button-subtext {
  color: #666;
  font-size: 14px;
  margin-top: 15px;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .cv-button-section {
    padding: 15px;
    margin: 30px 0;
  }
  
  .cv-button-text {
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .cv-button {
    padding: 15px 45px;
    font-size: 16px;
  }
  
  .cv-button:active:before {
    width: 200px;
    height: 200px;
  }
  
  .cv-button-subtext {
    font-size: 13px;
    margin-top: 10px;
  }
}

/* ========================================
   ランキング表示用調整
======================================== */

/* 記事ページ用ランキング調整 */
/* SP・PC共通の設定 */
#kariire-pickup-sokujitsu-all .c-ranking__bottom {
  margin-left: 0;
}

/* PC表示用の設定 */
@media screen and (min-width: 768px) {
  /* CVボタンの重なりを防ぐためにポイントリストに右パディングを追加 */
  #kariire-pickup-sokujitsu-all .c-ranking__pointlists {
    padding-right: 270px; /* CVボタンの幅240px + 余白30px */
  }
  
  /* c-ranking__bottomのマージン調整とポジション設定 */
  #kariire-pickup-sokujitsu-all .c-ranking__bottom {
    position: relative; /* CVボタンの絶対配置の基準点にする（PC表示のみ） */
  }
}

/* SP表示用の設定 */
@media screen and (max-width: 767px) {
  /* CVボタンが正しく表示されるようにする */
  #kariire-pickup-sokujitsu-all .c-ranking__cv {
    display: block;
    position: static;
    width: 100%;
  }
}

/* ========================================
   スクロールトップボタン
======================================== */

/* スクロールトップボタンのスタイル */
.c-scroll-to-top {
  position: fixed;
  bottom: 90px; /* フローティング目次ボタン（30px）の上に30pxの間隔を空けて配置 */
  right: 30px; /* PC版の目次ボタンと同じ右位置 */
  width: 50px;
  height: 50px;
  background: #2a7ad1; /* 目次ボタンと同じ色 */
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 999; /* フローティング目次(1000)より低く設定 */
}

/* ボタンが表示された時 */
.c-scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ホバー時のエフェクト */
.c-scroll-to-top:hover {
  background: #1e5fa8; /* 目次ボタンと同じホバー色 */
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* アクティブ時（クリック時） */
.c-scroll-to-top:active {
  transform: scale(1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* SVGアイコンのスタイル */
.c-scroll-to-top svg {
  width: 24px;
  height: 24px;
}

/* フォーカス時のアクセシビリティ対応 */
.c-scroll-to-top:focus {
  outline: 2px solid #2a7ad1;
  outline-offset: 2px;
}

/* SP表示での調整 */
@media screen and (max-width: 767px) {
  .c-scroll-to-top {
    bottom: 80px; /* SP版も同じ位置関係を保つ */
    right: 20px;
    width: 50px;
    height: 50px;
  }
  
  .c-scroll-to-top svg {
    width: 24px;
    height: 24px;
  }
}