.aside {
  /* 旧: 320px 固定 + 1180px/1140px で 280px/260px の段階切替。
     同じ値域 (260〜320px) のまま viewport に滑らかに追従させる */
  width: clamp(260px, 23vw, 320px);
}
@media (max-width: 768px) {
  .aside {
    display: none;
  }
}


.aside--sticky {
  position: sticky;
  top: 20px;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .aside--sticky  {
      position: static; /* モバイル表示では通常の配置に戻す */
      height: auto;
      overflow-y: visible;
  }
}


.sidebar-nav {
  margin-bottom: 8%;
}

.sidebar-nav__accordion {
  position: relative;
  width: 100%;
  padding: 10px 10px 10px 10px;
  text-align: center;
  background-color: var(--colorLightGray);
  border: none;
  cursor: pointer;
  margin-bottom: 2%;
}

.sidebar-nav__accordion-text {
  display: block;
  font-size: clamp(17px, 1.4vw, 20px);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: bold;
}
.sidebar-nav__accordion-text.type_merit {
  font-size: clamp(16px, 1.6vw, 18px);
}
.sidebar-nav__accordion-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--colorAccent);
  text-align: center;
  font-size: 0;
}

.sidebar-nav__accordion-icon::before {
  content: attr(data-icon);
  font-size: clamp(12px, 1.15vw, 14px);
  line-height: 18px;
  vertical-align: middle;
  display: inline-block;
}
.sidebar-nav__accordion-icon[data-icon="+"]::before {
  line-height: 19px;
}
.sidebar-nav__accordion-icon[data-icon="-"]::before {
  line-height: 18px;
}


/*  ---------------------------------------*/

.sidebar-menu {
  display: none;
  margin-bottom: 5%;  
}
.sidebar-menu__link{
  position: relative;
  color: #2C3E50;
  text-decoration: none;
  display: block;
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: bold;
  padding: 0.5em 2em 0.5em 1em;
  white-space: normal;
  word-break: break-all;
  overflow-wrap: break-word;
}
.sidebar-menu__link::after {
  /* content: '›'; */
  content: '\203A';
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-55%);
  transition: 0.3s ease;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: normal;
}
.sidebar-menu__link:hover {
  padding-right: calc(1em + 5px);
  background-color: var(--colorPaleGray);
}


/* activeクラスのスタイル */
.sidebar-menu__link.active {
  background-color: var(--colorPaleGray);
  /* background-color: var(--colorLightBase);
  color:#fff; */
  /* color:var(--colorLightBase); */
}

.sidebar-menu__item.active {
  border-left: 3px solid var(--colorLightBase);
}

.arrow {
  position: absolute;
  right: 10px;
  transition: transform 0.3s;
}

.sidebar-menu li:hover .arrow {
  transform: translateX(5px);
}

.sidebar-menu .sidebar-menu__link.active::after {
  color: var(--colorLightBase);
}

/* 
@media (max-width: 768px) {
  .search-options {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-slider .slide {
    width: 45%;
  }
}

@media (max-width: 480px) {
  .search-options {
    grid-template-columns: 1fr;
  }
  .article-slider .slide {
    width: 100%;
    max-width: none;
  }
} */


.sidebar-banners .banner-item {
  margin-bottom: 20px;
}

.sidebar-banners .banner-item a {
  display: block;
  transition: opacity 0.3s ease; /* ← トランジション追加 */
  opacity: 1;
}

/* hover可能な環境のみ適用 */
@media (hover: hover) {
  .sidebar-banners .banner-item a:hover {
    opacity: 0.8;
  }
}

/* 寄付方法セクション */
.sidebar-payment-methods {
  margin-top: 8%;
  padding: 15px;
  background-color: var(--colorPaleGray);
  border-radius: 10px;
}

.sidebar-payment-methods__title {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--colorBlack);
}

.sidebar-payment-methods__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-payment-methods__item {
  font-size: clamp(13px, 1.15vw, 15px);
  line-height: 1.8;
  color: var(--colorLightBlack);
  padding: 4px 0;
  position: relative;
  padding-left: 1em;
}

.sidebar-payment-methods__item::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--colorLightBlack);
}

.sidebar-payment-methods__text {
  display: inline-block;
  margin-right: 8px;
  font-weight: bold;
}

.sidebar-payment-methods__icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.sidebar-payment-methods__icon {
  height: 16px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

/* cpriver サイドバーバナー */
.cpriver-sidebar-banners {
  margin-bottom: 20px;
}

.cpriver-sidebar-banner {
  display: block;
  margin-bottom: 20px;
  transition: opacity 0.3s ease;
}

.cpriver-sidebar-banner:last-child {
  margin-bottom: 0;
}

.cpriver-sidebar-banner img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-sizing: border-box;
}

/* border は標準バナー (自治体の方へ / 企業様へ) のみに付与 */
.cpriver-sidebar-banner[href="/local-government"] img,
.cpriver-sidebar-banner[href="/company"] img {
  border: 2px solid var(--colorLightBase);
}

@media (hover: hover) {
  .cpriver-sidebar-banner:hover {
    opacity: 0.8;
  }
}

/* cpriver サイドバー */
.cpriver-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 0 20px;
  height: 70px;
  background-color: #09478a;
  border-radius: 10px;
  border: 1.5px solid #09478a;
  color: #fff;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 16px;
  transition: opacity 0.2s ease;
}

@media (hover: hover) {
  .cpriver-sidebar-header:hover {
    opacity: 0.85;
  }
}

.cpriver-sidebar-header__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cpriver-sidebar-header__icon::after {
  content: '\203A';
  color: #09478a;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -4px;
}

.cpriver-sidebar-section {
  margin-bottom: 12px;
}

.cpriver-accordion-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 12px 40px 12px 16px;
  background-color: #09478a;
  border-radius: 6px;
  border: none;
  color: #fff;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  margin-bottom: 20px;
}

.cpriver-accordion-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #fff;
  color: #09478a;
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: bold;
  line-height: 20px;
  text-align: center;
}

.cpriver-accordion-content {
  background-color: #fff;
  border: 4px solid #f3f3f3;
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 0;
  margin-bottom: 40px;
}

.cpriver-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cpriver-menu-link {
  display: flex;
  align-items: flex-start;
  color: #333;
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: bold;
  line-height: 1.6;
  padding: 8px 0;
}

.cpriver-menu-link__bullet {
  flex-shrink: 0;
}

.cpriver-menu-link__text {
  flex: 1;
  font-weight: bold;
}

.cpriver-menu-link:hover {
  text-decoration: underline;
}

.cpriver-menu-link--sub {
  padding-left: 1em;
}

/* フッター内のサイドバーコンテンツ（SP表示用） */
.footer-sidebar-content {
  display: none;
}

@media (max-width: 768px) {
  .footer-sidebar-content {
    display: block;
    margin: 30px 0;
  }

  .footer-sidebar-content .sidebar-banners {
    margin-bottom: 20px;
  }
}


/* ============================================================
 * cpriver サイドバー リデザイン (cprv-sb-* 名前空間) — C: Editorial Minimal
 * ============================================================ */

.cprv-sidebar {
  --cprv-ink: #111827;
  --cprv-ink-2: #1F2937;
  --cprv-muted: #6B7280;
  --cprv-blue: #1F4DBF;
  --cprv-blue-deep: #0B2D7A;
  --cprv-accent: #15B49C;
  --cprv-hairline: rgba(15, 23, 42, 0.08);
  --cprv-hairline-soft: rgba(15, 23, 42, 0.05);
  --cprv-hover-bg: #F7F9FC;
}

/* ----- トップ4カードの tabular block ラッパー ----- */
.cprv-sidebar .cprv-sb-stack {
  border: 1px solid var(--cprv-hairline-soft);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 28px;
}

/* ----- 共通カード (自治体情報 / 各セクション) ----- */
.cprv-sidebar .cprv-sb-card {
  display: block;
  width: 100%;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--cprv-hairline-soft);
  border-radius: 0;
  margin: 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.cprv-sidebar .cprv-sb-stack > .cprv-sb-card:last-child,
.cprv-sidebar .cprv-sb-stack > .cprv-sb-card.cprv-sb-card--open:last-child {
  border-bottom: 0;
}

.cprv-sidebar .cprv-sb-card:hover {
  background: var(--cprv-hover-bg);
}

.cprv-sidebar .cprv-sb-card__btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--cprv-ink);
}

.cprv-sidebar .cprv-sb-card__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #EFF5FE 0%, #E0EAFA 100%);
  color: var(--cprv-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(31, 95, 191, 0.08);
}

.cprv-sidebar .cprv-sb-card__label {
  flex: 1;
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.002em;
}

.cprv-sidebar .cprv-sb-card__toggle {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #F2F6FD;
  color: var(--cprv-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease;
}

.cprv-sidebar .cprv-sb-card:hover .cprv-sb-card__toggle {
  background: #E5EDFA;
}

/* アコーディオン展開時のリスト */
.cprv-sidebar .cprv-sb-card__list {
  list-style: none;
  margin: 0;
  padding: 0 18px 12px 56px;
  background: #FBFBFC;
  border-top: 1px solid var(--cprv-hairline-soft);
}

.cprv-sidebar .cprv-sb-card__list li + li {
  border-top: 1px solid var(--cprv-hairline-soft);
}

.cprv-sidebar .cprv-sb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  margin: 0 -8px;
  color: var(--cprv-ink-2);
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.cprv-sidebar .cprv-sb-item__text { flex: 1; font-weight:bold}

.cprv-sidebar .cprv-sb-item__arrow {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: var(--cprv-muted);
  opacity: 0.8;
  transition: transform 0.18s ease, color 0.18s ease;
}

.cprv-sidebar .cprv-sb-item:hover {
  color: var(--cprv-blue-deep);
  background: rgba(31, 77, 191, 0.08);
}
.cprv-sidebar .cprv-sb-item:hover .cprv-sb-item__arrow {
  transform: translateX(3px);
  color: var(--cprv-blue);
}
.cprv-sidebar .cprv-sb-item.is-active { color: var(--cprv-blue-deep); }

/* ----- まずはここから (フィーチャーカード) — 青グラデ版 ----- */
.cprv-sidebar .cprv-sb-feature {
  background: linear-gradient(180deg, #F2F7FE 0%, #E7EFFB 100%);
  border: 1px solid #D5E1F4;
  border-radius: 16px;
  margin-bottom: 28px;
  box-shadow:
    0 1px 2px rgba(15, 32, 60, 0.04),
    0 10px 28px rgba(31, 95, 191, 0.08);
  overflow: hidden;
}

.cprv-sidebar .cprv-sb-feature__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--cprv-ink);
}

.cprv-sidebar .cprv-sb-feature__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  color: var(--cprv-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px var(--cprv-hairline), 0 4px 12px rgba(31, 95, 191, 0.14);
}

.cprv-sidebar .cprv-sb-feature__label {
  flex: 1;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.cprv-sidebar .cprv-sb-feature__badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  background: transparent;
  color: var(--cprv-accent);
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: clamp(9.5px, 0.9vw, 10.5px);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-left: auto;
  box-shadow: none;
}

.cprv-sidebar .cprv-sb-feature__toggle {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--cprv-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease;
}

.cprv-sidebar .cprv-sb-feature__btn:hover .cprv-sb-feature__toggle {
  background: #fff;
}

.cprv-sidebar .cprv-sb-feature__list {
  list-style: none;
  margin: 0;
  padding: 4px 12px 10px;
  background: #fff;
  border-top: 1px solid #DDE6F2;
}

.cprv-sidebar .cprv-sb-feature__list li + li {
  border-top: 1px solid var(--cprv-hairline-soft);
}

.cprv-sidebar .cprv-sb-feature__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  color: var(--cprv-ink-2);
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.cprv-sidebar .cprv-sb-feature__item-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cprv-muted);
  transition: color 0.15s ease;
}

.cprv-sidebar .cprv-sb-feature__item-text {
  flex: 1;
  word-break: break-word;
  font-weight: 700;
}

.cprv-sidebar .cprv-sb-feature__item-arrow {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: var(--cprv-muted);
  opacity: 0.8;
  transition: transform 0.18s ease, color 0.18s ease;
}

.cprv-sidebar .cprv-sb-feature__item-count {
  flex-shrink: 0;
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(31, 77, 191, 0.08);
  color: var(--cprv-blue-deep);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

.cprv-sidebar .cprv-sb-feature__item:hover {
  color: var(--cprv-blue-deep);
  background: rgba(31, 77, 191, 0.08);
}
.cprv-sidebar .cprv-sb-feature__item:hover .cprv-sb-feature__item-icon { color: var(--cprv-blue); }
.cprv-sidebar .cprv-sb-feature__item:hover .cprv-sb-feature__item-arrow {
  transform: translateX(3px);
  color: var(--cprv-blue);
}
.cprv-sidebar .cprv-sb-feature__item.is-active { color: var(--cprv-blue-deep); }

/* ----- 企業への寄付メリット CTA — Refined Trust 薄ブルーカード ----- */
.cprv-sidebar .cprv-sb-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #EAF1FA 0%, #DBE7FA 100%);
  border: 1px solid #CDDCEF;
  border-radius: 16px;
  text-decoration: none;
  color: var(--cprv-ink);
  box-shadow:
    0 1px 2px rgba(15, 32, 60, 0.04),
    0 8px 22px rgba(31, 95, 191, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cprv-sidebar .cprv-sb-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 2px rgba(15, 32, 60, 0.05),
    0 14px 32px rgba(31, 95, 191, 0.14);
}

.cprv-sidebar .cprv-sb-cta__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  color: var(--cprv-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(31, 95, 191, 0.14);
}

.cprv-sidebar .cprv-sb-cta__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cprv-sidebar .cprv-sb-cta__title {
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--cprv-ink);
  letter-spacing: -0.005em;
}

.cprv-sidebar .cprv-sb-cta__subtitle {
  font-size: clamp(11px, 0.9vw, 12px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--cprv-muted);
  letter-spacing: 0.02em;
}

.cprv-sidebar .cprv-sb-cta__arrow {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2D6FD3 0%, #1F5FBF 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(31, 95, 191, 0.35);
  transition: transform 0.18s ease;
}

.cprv-sidebar .cprv-sb-cta:hover .cprv-sb-cta__arrow {
  transform: translateX(3px);
}

/* SVG デフォルト寸法（指定なし svg が 300x150 になる事故を回避） */
.cprv-sidebar svg { width: 22px; height: 22px; vertical-align: middle; }
.cprv-sidebar .cprv-sb-card__toggle svg,
.cprv-sidebar .cprv-sb-feature__toggle svg { width: 16px; height: 16px; }
.cprv-sidebar .cprv-sb-feature__item-icon svg { width: 16px; height: 16px; }
.cprv-sidebar .cprv-sb-feature__item-arrow,
.cprv-sidebar .cprv-sb-item__arrow,
.cprv-sidebar .cprv-sb-cta__arrow svg { width: 14px; height: 14px; }

/* 下部バナー余白の微調整 */
.cprv-sidebar .cprv-sb-banners--bottom {
  margin-top: 16px;
}
