@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
/* ==========================================
   MetaFit-Hub トップページ カスタムCSS
   ========================================== */

:root {
  --mfh-brand: #06496b;
  --mfh-brand-dark: #043a56;
  --mfh-brand-darker: #022840;
  --mfh-accent: #1ab3a0;
  --mfh-accent2: #e8f4f9;
  --mfh-border: #c8dde8;
  --mfh-bg: #f4f9fb;
  --mfh-text: #0d1b24;
  --mfh-text-sub: #4a6575;
}

/* 全ブロック共通 */
.mfh-section {
  padding: 20px 16px;
  background: #fff;
}

.mfh-section-bg {
  padding: 20px 16px;
  background: var(--mfh-bg);
}

.mfh-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.mfh-sec-head h2 {
  font-size: 15px;
  font-weight: 500;
  color: var(--mfh-text);
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mfh-sec-head h2::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 15px;
  background: var(--mfh-brand);
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: -3px;
}

.mfh-see-all {
  font-size: 12px;
  color: var(--mfh-brand);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

.mfh-divider {
  height: 8px;
  background: var(--mfh-bg);
  margin: 0;
}

/* Cocoonのデフォルトスタイルを無効化（トップページのみ） */
.home .entry-title,
.home .breadcrumb,
.home .sns-share {
  display: none;
}

.home .article-body {
  padding: 0 !important;
  margin: 0 !important;
}
/* ==========================================
   ブロック1：ヒーロー
   ========================================== */
.mfh-hero {
  background: var(--mfh-brand);
  overflow: hidden;
}

.mfh-hero-inner {
  display: flex;
  align-items: stretch;
  min-height: 220px;
}

.mfh-hero-left {
  flex: 1;
  padding: 24px 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.mfh-hero-right {
  width: 140px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.mfh-hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.mfh-hero-right::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(to right, #06496b, transparent);
}

.mfh-eyebrow {
  font-size: 10px;
  color: var(--mfh-accent);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.mfh-hero-h1 {
  font-size: 18px !important;
  font-weight: 500 !important;
  color: #fff !important;
  line-height: 1.4 !important;
  margin-bottom: 10px !important;
  border: none !important;
  padding: 0 !important;
}

.mfh-hero-h1 em {
  font-style: normal;
  color: #7dd8ec;
}

.mfh-hero-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* 検索バー */
.mfh-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 0.5px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.4);
}

.mfh-search-wrap input {
  background: none;
  border: none;
  outline: none;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  width: 100%;
}

.mfh-search-wrap input::placeholder {
  color: rgba(255,255,255,0.35);
}

/* クイックリンク */
.mfh-ql-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.mfh-ql-btn {
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none !important;
  color: rgba(255,255,255,0.85) !important;
}

.mfh-ql-btn svg {
  flex-shrink: 0;
  color: #7dd8ec;
}

.mfh-ql-btn span {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

.mfh-ql-btn:hover {
  background: rgba(255,255,255,0.13);
}

/* PC表示では画像を大きく */
@media (min-width: 768px) {
  .mfh-hero-inner {
    min-height: 320px;
  }
  .mfh-hero-right {
    width: 280px;
  }
  .mfh-hero-h1 {
    font-size: 26px !important;
  }
  .mfh-hero-sub {
    font-size: 13px;
  }
}
/* ==========================================
   ブロック2：4効果バー
   ========================================== */
.mfh-benefits {
  background: var(--mfh-brand-dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 0.5px solid rgba(255,255,255,0.08);
}

.mfh-benefit-item {
  padding: 12px 6px;
  text-align: center;
  border-right: 0.5px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.mfh-benefit-item:last-child {
  border-right: none;
}

.mfh-benefit-item svg {
  color: #7dd8ec;
  flex-shrink: 0;
}

.mfh-benefit-item span {
  font-size: 9px;
  color: rgba(255,255,255,0.55);
  line-height: 1.3;
  display: block;
}

@media (min-width: 768px) {
  .mfh-benefit-item span {
    font-size: 11px;
  }
  .mfh-benefit-item {
    padding: 16px 8px;
    gap: 8px;
  }
}
/* ==========================================
   ブロック3：流れるティッカー
   ========================================== */
.mfh-ticker {
  background: var(--mfh-brand);
  overflow: hidden;
  padding: 8px 0;
  border-top: 0.5px solid rgba(255,255,255,0.1);
}

.mfh-ticker-track {
  display: flex;
  width: max-content;
  animation: mfh-ticker 25s linear infinite;
}

.mfh-ticker:hover .mfh-ticker-track {
  animation-play-state: paused;
}

@keyframes mfh-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.mfh-ticker-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 20px;
  white-space: nowrap;
}

.mfh-ticker-item svg {
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.mfh-ticker-item span {
  font-size: 11px;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  letter-spacing: 0.3px;
}
/* ==========================================
   レイアウト：NerdWallet方式
   ヒーローは全幅、コンテンツは中央寄せ
   ========================================== */

/* ヒーロー系は全幅のまま */
.mfh-hero-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* カード・セクション系はmax-width制限 */
.mfh-section,
.mfh-section-bg,
.mfh-trust-section,
.mfh-feature-section,
.mfh-rank-section {
  max-width: 900px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px;
  padding-right: 24px;
}

/* PC表示でヒーロー内のコンテンツだけ幅制限 */
@media (min-width: 768px) {
  .mfh-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
  }
}
/* ==========================================
   ブロック4：カテゴリ横スクロール
   ========================================== */
.mfh-cat-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mfh-cat-scroll::-webkit-scrollbar {
  display: none;
}

.mfh-cat-pill {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 0.5px solid var(--mfh-border);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 68px;
  background: #fff;
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.mfh-cat-pill svg {
  color: #999;
}

.mfh-cat-pill span {
  font-size: 11px;
  color: var(--mfh-text-sub);
  text-align: center;
}

.mfh-cat-pill.on,
.mfh-cat-pill:hover {
  border-color: var(--mfh-brand);
  background: var(--mfh-accent2);
}

.mfh-cat-pill.on svg,
.mfh-cat-pill:hover svg {
  color: var(--mfh-brand);
}

.mfh-cat-pill.on span,
.mfh-cat-pill:hover span {
  color: var(--mfh-brand);
}
/* ==========================================
   ブロック4：カテゴリ修正
   ========================================== */

/* 「カテゴリから探す」見出しを目立たせる */
.mfh-sec-head h2 {
  font-size: 17px !important;
  font-weight: 700 !important;
}

/* カテゴリカードを大きく・枠を濃く */
.mfh-cat-pill {
  min-width: 80px !important;
  padding: 14px 16px !important;
  border: 1.5px solid var(--mfh-border) !important;
  border-radius: 14px !important;
}

.mfh-cat-pill svg {
  width: 26px !important;
  height: 26px !important;
}

.mfh-cat-pill span {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--mfh-text) !important;
}

.mfh-cat-pill.on {
  border: 2px solid var(--mfh-brand) !important;
  background: var(--mfh-accent2) !important;
}

.mfh-cat-pill.on span {
  color: var(--mfh-brand) !important;
}

/* セクション全体の文字サイズUP */
.mfh-section {
  padding: 24px 20px !important;
}

/* 見出しの左ライン太く */
.mfh-sec-head h2::before {
  width: 4px !important;
  height: 18px !important;
}
/* ==========================================
   トップページの目次を非表示
   ========================================== */
.home .toc-box,
.home #toc_container,
.home .ez-toc-container {
  display: none !important;
}
/* ==========================================
   ブロック5：カルーセル（修正版）
   ========================================== */
.mfh-carousel-section {
  background: #fff;
  padding: 24px 0 16px;
  overflow: hidden;
}

.mfh-carousel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  margin-bottom: 16px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.mfh-carousel-title {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--mfh-text) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mfh-carousel-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--mfh-brand);
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: -3px;
}

.mfh-carousel-outer {
  width: 100%;
  overflow: hidden;
}

.mfh-carousel-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 8px;
  /* 最初のメインカードが中央に来るよう左パディングで調整 */
  padding-left: calc(50vw - 110px);
  padding-right: calc(50vw - 110px);
}

.mfh-carousel-track::-webkit-scrollbar {
  display: none;
}

.mfh-slide {
  flex-shrink: 0;
  scroll-snap-align: center;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none !important;
  display: block;
}

.mfh-slide-main {
  width: 220px;
  height: 200px;
}

.mfh-slide-sub {
  width: 130px;
  height: 200px;
  opacity: 0.75;
}

.mfh-slide-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.mfh-c1 { background: #043a56; }
.mfh-c2 { background: #0a3d2e; }
.mfh-c3 { background: #06496b; }
.mfh-c4 { background: #2c1a4a; }
.mfh-c5 { background: #3a1a0a; }

.mfh-slide-ill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.15;
  color: #fff;
}

.mfh-slide-body {
  position: relative;
  z-index: 2;
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
}

.mfh-slide-cat {
  display: inline-block;
  background: rgba(26,179,160,0.3);
  color: #7dd8ec;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  margin-bottom: 6px;
}

.mfh-slide-title {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #fff !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mfh-slide-sub .mfh-slide-title {
  font-size: 11px !important;
}

.mfh-slide-meta {
  display: flex;
  gap: 5px;
  margin-top: 7px;
}

.mfh-slide-meta span {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
}

.mfh-cdots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}

.mfh-cdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mfh-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.mfh-cdot.on {
  background: var(--mfh-brand);
  width: 18px;
  border-radius: 3px;
}

.mfh-cnav {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.mfh-cnb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--mfh-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--mfh-brand);
  line-height: 1;
}

.mfh-cnb:hover {
  background: var(--mfh-accent2);
}
/* ==========================================
   ブロック5 v2：NerdWallet風カルーセル
   ========================================== */
.mfh-car2-section {
  background: #fff;
  padding: 28px 0 20px;
  overflow: hidden;
}

.mfh-car2-head {
  text-align: center;
  padding: 0 24px;
  margin-bottom: 20px;
}

.mfh-car2-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--mfh-text) !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
}

.mfh-car2-head .mfh-see-all {
  font-size: 13px;
  color: var(--mfh-brand);
  text-decoration: underline !important;
}

.mfh-car2-outer {
  width: 100%;
  overflow: hidden;
}

.mfh-car2-track {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px calc(50vw - 240px);
}

.mfh-car2-track::-webkit-scrollbar { display: none; }

/* 全カード共通 */
.mfh-car2-slide {
  flex-shrink: 0;
  scroll-snap-align: center;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0.6;
  transform: scale(0.92);
  position: relative;
}

/* アクティブカード */
.mfh-car2-slide.mfh-car2-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* メインカード（3:2） */
.mfh-car2-main {
  width: 480px;
  height: 320px;
}

/* サイドカード（1:2） */
.mfh-car2-side {
  width: 160px;
  height: 320px;
}

/* 両端カード（9:16） */
.mfh-car2-edge {
  width: 160px;
  height: 284px;
}

/* 画像背景 */
.mfh-car2-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--mfh-brand-dark);
  display: flex;
  align-items: flex-end;
  position: relative;
}

/* オーバーレイ（グラデーション） */
.mfh-car2-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0,0,0,0.75) 100%
  );
}

/* テキスト */
.mfh-car2-body {
  position: relative;
  z-index: 2;
  padding: 14px;
  width: 100%;
}

.mfh-car2-cat {
  display: inline-block;
  background: rgba(26,179,160,0.35);
  color: #7dd8ec;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  margin-bottom: 7px;
}

.mfh-car2-text {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #fff !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mfh-car2-text-lg {
  font-size: 16px !important;
  -webkit-line-clamp: 3;
}

.mfh-car2-meta {
  font-size: 11px !important;
  color: rgba(255,255,255,0.6) !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
}

/* ドット */
.mfh-car2-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
}

.mfh-car2-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mfh-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.mfh-car2-dot.on {
  background: var(--mfh-brand);
  width: 18px;
  border-radius: 3px;
}

/* ナビボタン */
.mfh-car2-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

.mfh-car2-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--mfh-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: var(--mfh-brand);
  line-height: 1;
  transition: background 0.2s;
}

.mfh-car2-btn:hover {
  background: var(--mfh-accent2);
}

/* スマホ対応 */
@media (max-width: 767px) {
  .mfh-car2-main {
    width: 280px;
    height: 200px;
  }
  .mfh-car2-side {
    width: 100px;
    height: 200px;
  }
  .mfh-car2-edge {
    width: 100px;
    height: 178px;
  }
  .mfh-car2-track {
    padding: 8px calc(50vw - 140px);
  }
  .mfh-car2-text-lg {
    font-size: 13px !important;
  }
}
/* ==========================================
   カルーセル v3：NerdWallet完全再現
   ========================================== */
.mfh-nw-section {
  background: #fff;
  padding: 28px 0 20px;
  overflow: hidden;
}

.mfh-nw-head {
  text-align: center;
  padding: 0 24px;
  margin-bottom: 24px;
}

.mfh-nw-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--mfh-text) !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
}

.mfh-nw-all {
  font-size: 13px !important;
  color: var(--mfh-brand) !important;
  text-decoration: underline !important;
}

/* ステージ：カードを並べる舞台 */
.mfh-nw-stage {
  position: relative;
  height: 340px; /* センターカードの高さ */
  overflow: visible;
}

.mfh-nw-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 全カード共通 */
.mfh-nw-card {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* 各ポジションのサイズ・位置・透過度 */
/* center: 3:2 → 480×320 */
[data-pos="center"] {
  left: 50%;
  width: 480px;
  height: 320px;
  transform: translate(-50%, -50%);
  opacity: 1;
  z-index: 5;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

/* left1/right1: 1:2 → 140×280 */
[data-pos="left1"] {
  left: calc(50% - 310px - 140px);
  width: 140px;
  height: 280px;
  transform: translateY(-50%);
  opacity: 0.55;
  z-index: 4;
}

[data-pos="right1"] {
  left: calc(50% + 310px);
  width: 140px;
  height: 280px;
  transform: translateY(-50%);
  opacity: 0.55;
  z-index: 4;
}

/* left2/right2: 9:16 → 100×178 */
[data-pos="left2"] {
  left: calc(50% - 310px - 140px - 110px);
  width: 100px;
  height: 178px;
  transform: translateY(-50%);
  opacity: 0.35;
  z-index: 3;
}

[data-pos="right2"] {
  left: calc(50% + 310px + 140px);
  width: 100px;
  height: 178px;
  transform: translateY(-50%);
  opacity: 0.35;
  z-index: 3;
}

/* 非表示 */
[data-pos="hidden"] {
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

/* 内部リンク */
.mfh-nw-inner {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #1a3a56;
  text-decoration: none !important;
  position: relative;
}

/* オーバーレイ */
.mfh-nw-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.8) 100%);
}

/* テキスト */
.mfh-nw-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  z-index: 2;
}

.mfh-nw-cat {
  display: inline-block;
  background: rgba(26,179,160,0.35);
  color: #7dd8ec;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  margin-bottom: 6px;
}

.mfh-nw-text {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #fff !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-pos="center"] .mfh-nw-text {
  font-size: 17px !important;
}

.mfh-nw-meta {
  font-size: 11px !important;
  color: rgba(255,255,255,0.65) !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
}

/* ドット */
.mfh-nw-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
}

.mfh-nw-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mfh-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s;
}

.mfh-nw-dot.on {
  background: var(--mfh-brand);
  width: 20px;
  border-radius: 4px;
}

/* ナビ */
.mfh-nw-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.mfh-nw-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--mfh-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  color: var(--mfh-brand);
  line-height: 1;
  transition: background 0.2s;
  user-select: none;
}

.mfh-nw-btn:hover { background: var(--mfh-accent2); }

/* スマホ */
@media (max-width: 767px) {
  .mfh-nw-stage { height: 220px; }

  [data-pos="center"] {
    width: 260px;
    height: 174px;
  }
  [data-pos="left1"],
  [data-pos="right1"] {
    width: 90px;
    height: 180px;
  }
  [data-pos="left1"] {
    left: calc(50% - 175px - 90px);
  }
  [data-pos="right1"] {
    left: calc(50% + 175px);
  }
  [data-pos="left2"] {
    left: calc(50% - 175px - 90px - 70px);
    width: 65px;
    height: 116px;
  }
  [data-pos="right2"] {
    left: calc(50% + 175px + 90px);
    width: 65px;
    height: 116px;
  }
  [data-pos="center"] .mfh-nw-text {
    font-size: 13px !important;
  }
}
/* ==========================================
   カルーセル v3：NerdWallet完全再現（修正版）
   ========================================== */
.mfh-nw-section {
  background: #fff;
  padding: 28px 0 24px;
  overflow: hidden;
}

.mfh-nw-head {
  text-align: center;
  padding: 0 24px;
  margin-bottom: 28px;
}

.mfh-nw-title {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--mfh-text) !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}

.mfh-nw-all {
  font-size: 13px !important;
  color: var(--mfh-brand) !important;
  text-decoration: underline !important;
}

.mfh-nw-stage {
  position: relative;
  height: 400px;
  overflow: visible;
}

.mfh-nw-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ── サイズ定義 ──────────────────
   gap: 12px 固定
   center:  560 × 374
   side:    180 × 374
   edge:    140 × 320
   
   コンテンツ幅 = edge非表示で
   center(560) + gap(12)×2 + side(180)×2 = 944px
   → 両サイドsideまでがコンテンツ幅内
   → edgeは画面端にはみ出す
──────────────────────────────── */

.mfh-nw-card {
  position: absolute;
  top: 50%;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* center */
[data-pos="center"] {
  width: 560px;
  height: 374px;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  z-index: 5;
  box-shadow: 0 12px 48px rgba(0,0,0,0.28);
}

/* left1 / right1（sideカード） */
[data-pos="left1"] {
  width: 180px;
  height: 374px;
  left: calc(50% - 280px - 12px - 180px);
  transform: translateY(-50%);
  opacity: 0.6;
  z-index: 4;
}

[data-pos="right1"] {
  width: 180px;
  height: 374px;
  left: calc(50% + 280px + 12px);
  transform: translateY(-50%);
  opacity: 0.6;
  z-index: 4;
}

/* left2 / right2（edgeカード：はみ出し） */
[data-pos="left2"] {
  width: 140px;
  height: 320px;
  left: calc(50% - 280px - 12px - 180px - 12px - 140px);
  transform: translateY(-50%);
  opacity: 0.35;
  z-index: 3;
}

[data-pos="right2"] {
  width: 140px;
  height: 320px;
  left: calc(50% + 280px + 12px + 180px + 12px);
  transform: translateY(-50%);
  opacity: 0.35;
  z-index: 3;
}

[data-pos="hidden"] {
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  left: 50%;
  width: 140px;
  height: 320px;
  transform: translateY(-50%);
}

.mfh-nw-inner {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #1a3a56;
  text-decoration: none !important;
  position: relative;
}

.mfh-nw-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 25%, rgba(0,0,0,0.82) 100%);
}

.mfh-nw-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  z-index: 2;
}

.mfh-nw-cat {
  display: inline-block;
  background: rgba(26,179,160,0.35);
  color: #7dd8ec;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  margin-bottom: 7px;
}

.mfh-nw-text {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #fff !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-pos="center"] .mfh-nw-text {
  font-size: 18px !important;
}

[data-pos="left1"] .mfh-nw-text,
[data-pos="right1"] .mfh-nw-text {
  font-size: 13px !important;
}

.mfh-nw-meta {
  font-size: 11px !important;
  color: rgba(255,255,255,0.65) !important;
  margin: 7px 0 0 !important;
  padding: 0 !important;
}

/* ドット */
.mfh-nw-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.mfh-nw-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mfh-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s;
}

.mfh-nw-dot.on {
  background: var(--mfh-brand);
  width: 22px;
  border-radius: 4px;
}

/* ナビ */
.mfh-nw-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.mfh-nw-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--mfh-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  color: var(--mfh-brand);
  line-height: 1;
  transition: background 0.2s;
  user-select: none;
}

.mfh-nw-btn:hover { background: var(--mfh-accent2); }

/* ── スマホ ── */
@media (max-width: 767px) {
  .mfh-nw-stage { height: 260px; }

  [data-pos="center"] {
    width: 300px;
    height: 200px;
  }
  [data-pos="left1"] {
    width: 100px;
    height: 200px;
    left: calc(50% - 150px - 10px - 100px);
  }
  [data-pos="right1"] {
    width: 100px;
    height: 200px;
    left: calc(50% + 150px + 10px);
  }
  [data-pos="left2"] {
    width: 80px;
    height: 160px;
    left: calc(50% - 150px - 10px - 100px - 10px - 80px);
  }
  [data-pos="right2"] {
    width: 80px;
    height: 160px;
    left: calc(50% + 150px + 10px + 100px + 10px);
  }
  [data-pos="hidden"] {
    width: 80px;
    height: 160px;
  }
  [data-pos="center"] .mfh-nw-text {
    font-size: 14px !important;
  }
  [data-pos="left1"] .mfh-nw-text,
  [data-pos="right1"] .mfh-nw-text {
    font-size: 11px !important;
  }
}
