/* RankBase: ranking layout fix (quick) */
.section-ranking{
  max-width: 900px;
  margin: 0 auto;
}

.section-ranking .ranking-item{
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 18px;
  margin: 18px 0;
}

.section-ranking .ranking-title-full{
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.4;
}

.section-ranking .ranking-item-content{
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.section-ranking .ranking-item-image-tag{
  flex: 0 0 160px;
}

.section-ranking .ranking-item-image-tag img{
  width: 160px;
  height: auto;
  display: block;
  border-radius: 8px;
}

.section-ranking .ranking-item-description{
  flex: 1 1 auto;
  min-width: 0;
}

.section-ranking .ranking-item-description p{
  margin: 0 0 10px;
  line-height: 1.8;
  word-break: normal;
  overflow-wrap: anywhere;
  writing-mode: horizontal-tb !important; /* 縦書き化を強制解除 */
}

/* ボタンの最低限 */
.section-ranking a.btn{
  display: inline-block;
  margin: 6px 8px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}
.section-ranking a.btn-orange{ background:#ff8a00; color:#fff; }
.section-ranking a.btn-blue{ background:#1e6bff; color:#fff; }
.section-ranking a.btn-red{ background:#e60023; color:#fff; }

/* スマホ */
@media (max-width: 640px){
  .section-ranking .ranking-item-content{ display:block; }
  .section-ranking .ranking-item-image-tag{ margin:0 0 12px; }
  .section-ranking .ranking-item-image-tag img{ width: 100%; max-width: 360px; }
}
/* ===== RankBase Portal (scoped) ===== */
.rb-portal{
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 18px 60px;
  isolation: isolate; /* 背景レイヤを安全に分離 */
}

/* 固定背景（大きめグラデーションサークル） */
.rb-portal .rb-bg{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(520px 520px at 85% 10%, rgba(120, 170, 255, .22), rgba(255,255,255,0) 62%),
    radial-gradient(680px 680px at 10% 85%, rgba(255, 170, 210, .18), rgba(255,255,255,0) 60%),
    radial-gradient(520px 520px at 70% 85%, rgba(180, 240, 210, .16), rgba(255,255,255,0) 62%);
}

/* Hero */
.rb-hero{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.06);
  padding: 22px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}
.rb-hero__inner{
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 14px;
  align-items: start;
}
.rb-logo{
  margin: 0 0 6px;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: .02em;
}
.rb-lead{
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  opacity: .85;
}
.rb-note{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 14px 14px 12px;
}
.rb-note__title{
  font-weight: 800;
  font-size: 13px;
  margin: 0 0 8px;
  opacity: .75;
}
.rb-note__list{
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
  font-size: 13px;
  opacity: .85;
}

/* Section title */
.rb-section__title{
  margin: 14px 0 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  font-size: 16px;
  letter-spacing: .02em;
}

/* Grid: 2カラム基準（整う） */
.rb-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Card */
.rb-card{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.06);
  overflow: hidden;
  display: grid;
  grid-template-rows: 190px auto;
  backdrop-filter: blur(8px);
}

/* iPhoneケースだけ横いっぱい */
.rb-card--featured{
  grid-column: 1 / -1;
  grid-template-rows: 240px auto;
}

/* 後で画像を入れる想定の領域（今はダミー） */
.rb-card__media{
  position: relative;
  background:
    radial-gradient(280px 220px at 75% 20%, rgba(0,0,0,.06), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.25));
}

/* Body */
.rb-card__body{
  padding: 16px 16px 18px;
}

/* Badge */
.rb-card__badge{
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  font-size: 12px;
  font-weight: 800;
  opacity: .85;
  margin-bottom: 10px;
}
.rb-badge--accent{ background: rgba(255,170,80,.18); }
.rb-badge--high{ background: rgba(120,170,255,.20); }

/* 題字を“枠に収める” */
.rb-card__title{
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: .02em;
}
.rb-card__title > span{
  display: inline-block;
  max-width: 100%;
  padding: 10px 12px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  overflow-wrap: anywhere; /* 長い文字も枠内で折り返す */
}

/* Description */
.rb-card__desc{
  margin: 0 0 16px;
  line-height: 1.9;
  font-size: 14px;
  opacity: .85;
  overflow-wrap: anywhere;
}

/* Footer */
.rb-card__footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* CTA（ここだけクリック可能） */
.rb-cta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(0,0,0,.08);
  text-decoration: none !important;
  font-weight: 800;
}
.rb-cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0,0,0,.08);
}
.rb-arrow{ font-weight: 900; opacity: .75; }

.rb-mini{
  font-size: 12px;
  letter-spacing: .06em;
  opacity: .6;
  font-weight: 800;
}

/* レスポンシブ */
@media (max-width: 900px){
  .rb-hero__inner{ grid-template-columns: 1fr; }
  .rb-logo{ font-size: 38px; }
}
@media (max-width: 700px){
  .rb-grid{ grid-template-columns: 1fr; }
  .rb-card--featured{ grid-column: auto; }
  .rb-card{ grid-template-rows: 180px auto; }
  .rb-card--featured{ grid-template-rows: 200px auto; }
}
/* ===== RB: fixed gradient bg + slow drift animation ===== */
.rb-portal .rb-bg{
  /* 既存の fixed/inset/z-index/pointer-events はそのままでOK */
  will-change: transform;
}

/* ふわっと漂うレイヤー（右上） */
.rb-portal .rb-bg::before{
  content:"";
  position:absolute;
  inset:-20%;
  background:
    radial-gradient(560px 560px at 85% 12%,
      rgba(120,170,255,.22),
      rgba(255,255,255,0) 62%);
  filter: blur(0.2px);
  transform: translate3d(0,0,0);
  animation: rbFloatA 22s ease-in-out infinite alternate;
  will-change: transform;
}

/* ふわっと漂うレイヤー（左下&#12316;中央） */
.rb-portal .rb-bg::after{
  content:"";
  position:absolute;
  inset:-25%;
  background:
    radial-gradient(720px 720px at 12% 88%,
      rgba(255,170,210,.18),
      rgba(255,255,255,0) 60%),
    radial-gradient(600px 600px at 72% 86%,
      rgba(180,240,210,.16),
      rgba(255,255,255,0) 62%);
  transform: translate3d(0,0,0);
  animation: rbFloatB 28s ease-in-out infinite alternate;
  will-change: transform;
}

/* 動きは“超ゆっくり・小さめ”が品よく見えます */
@keyframes rbFloatA{
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-18px, 10px,0) scale(1.03); }
  100% { transform: translate3d(12px,-14px,0) scale(1.02); }
}
@keyframes rbFloatB{
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(14px,-12px,0) scale(1.02); }
  100% { transform: translate3d(-16px, 16px,0) scale(1.03); }
}

/* OS設定で「アニメーション減らす」の人には停止 */
@media (prefers-reduced-motion: reduce){
  .rb-portal .rb-bg::before,
  .rb-portal .rb-bg::after{
    animation: none !important;
  }
}
/* =========================
   RankBase h3 redesign
   ========================= */
.rb-portal h3{
  margin: 0 0 14px;
  padding: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  line-height: 1.4;
  color: #111;

  /* Cocoon感を消す */
  border: none !important;
  background: none !important;
}

/* h3の下に“静かな区切り”を入れる */
.rb-portal h3::after{
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.18),
    rgba(0,0,0,0)
  );
}
/* =========================
   RankBase h2 redesign
   ========================= */
.rb-portal h2{
  margin: 48px 0 28px;
  padding: 18px 22px;

  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600;
  letter-spacing: .02em;
  color: #111;

  background: rgba(0,0,0,.035);
  border-radius: 14px;

  /* Cocoon完全無効化 */
  border: none !important;
  box-shadow: none !important;
}

/* h2の装飾ライン（主張しすぎない） */
.rb-portal h2::before{
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-bottom: 10px;

  background: linear-gradient(
    90deg,
    rgba(0,0,0,.35),
    rgba(0,0,0,0)
  );
}
/* =========================
   明確なグラデーションサークル（カード右上）
   ========================= */

/* 全カード共通で右上に“リング”を出す */
.rb-card{
  position: relative; /* これがないと疑似要素が安定しません */
}

.rb-card::after{
  content:"";
  position:absolute;
  top:-170px;
  right:-170px;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  pointer-events:none;

  /* ぼんやり→輪郭が出るように “リング” を作る */
  background:
    radial-gradient(circle at 50% 50%,
      rgba(255,255,255,.00) 48%,
      rgba(0,0,0,.0) 52%,
      rgba(0,0,0,.0) 58%,
      rgba(255,255,255,.00) 70%
    ),
    radial-gradient(circle at 40% 35%,
      rgba(0,0,0,.2),
      rgba(0,0,0,.00) 60%
    );

  opacity: .95;
  mix-blend-mode: normal;
  z-index: 0;
}

/* カード内は常に前面 */
.rb-card > *{
  position: relative;
  z-index: 1;
}

/* featured（iPhoneケース）のリングは少し大きく */
.rb-card--featured::after{
  top:-210px;
  right:-210px;
  width: 640px;
  height: 640px;
  opacity: .95;
}
/* =========================
   固定背景：右→左に流れる（scroll感が出る）
   ========================= */

/* 背景全体をゆっくり横に流す */
.rb-portal .rb-bg,
.rb-page .rb-bg{
  animation: rbBgDriftX 34s linear infinite;
  will-change: transform;
}

@keyframes rbBgDriftX{
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-60px,0,0); }
}

/* ふわっと漂う疑似要素の動きはそのまま重ねる */
/* =========================================================
   RankBase Fixed Pages Template (global)
   ========================================================= */

/* wrapper */
.rb-page{
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 18px 60px;
  isolation: isolate;
}

/* fixed background + drift */
.rb-page .rb-bg{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(520px 520px at 85% 10%, rgba(120,170,255,.22), rgba(255,255,255,0) 62%),
    radial-gradient(680px 680px at 10% 85%, rgba(255,170,210,.18), rgba(255,255,255,0) 60%),
    radial-gradient(520px 520px at 70% 85%, rgba(180,240,210,.16), rgba(255,255,255,0) 62%);

  animation: rbBgDriftX 34s linear infinite;
  will-change: transform;
}

@keyframes rbBgDriftX{
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-60px,0,0); }
}

/* hero */
.rb-page-hero{
  margin-bottom: 18px;
}

.rb-page-title{
  margin: 0 0 10px;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
  letter-spacing: .02em;

  border: none !important;
  background: none !important;
  padding: 0 !important;
}
.rb-page-title > span{
  display: inline-block;
  max-width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  overflow-wrap: anywhere;
}

.rb-page-lead{
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  opacity: .85;
}

/* card base */
.rb-page .rb-card{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.06);
  overflow: hidden;
  backdrop-filter: blur(8px);
  position: relative;
}

/* featured */
.rb-page .rb-card--featured{
  display: grid;
  grid-template-rows: 220px auto;
}

/* media placeholder */
.rb-page .rb-card__media{
  position: relative;
  background:
    radial-gradient(280px 220px at 75% 20%, rgba(0,0,0,.07), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.22));
}

/* body padding */
.rb-page .rb-card__body{
  padding: 18px 18px 20px;
}

/* badge */
.rb-page .rb-card__badge{
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  font-size: 12px;
  font-weight: 800;
  opacity: .85;
  margin-bottom: 10px;
}

/* right-top ring (clearer) */
.rb-page .rb-card::after{
  content:"";
  position:absolute;
  top:-170px;
  right:-170px;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  pointer-events:none;

  background:
    radial-gradient(circle at 50% 50%,
      rgba(255,255,255,0) 48%,
      rgba(0,0,0,.12) 52%,
      rgba(0,0,0,.06) 58%,
      rgba(255,255,255,0) 70%
    ),
    radial-gradient(circle at 40% 35%,
      rgba(0,0,0,.10),
      rgba(0,0,0,0) 60%
    );

  opacity: .95;
  z-index: 0;
}

.rb-page .rb-card > *{
  position: relative;
  z-index: 1;
}

/* content typography (Cocoon h2/h3 reset inside rb-page only) */
.rb-page .rb-content h2,
.rb-page .rb-content h3{
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

.rb-page .rb-content h2{
  margin: 34px 0 18px;
  padding: 16px 18px;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 650;
  letter-spacing: .02em;
  color: #111;

  background: rgba(0,0,0,.035);
  border-radius: 14px;
}
.rb-page .rb-content h2::before{
  content:"";
  display:block;
  width: 40px;
  height: 3px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,0));
}

.rb-page .rb-content h3{
  margin: 22px 0 12px;
  padding: 0;
  font-size: clamp(16px, 2.0vw, 20px);
  font-weight: 600;
  line-height: 1.45;
  color: #111;
}
.rb-page .rb-content h3::after{
  content:"";
  display:block;
  width: 32px;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,0));
}

.rb-page .rb-content p,
.rb-page .rb-content li{
  line-height: 1.95;
  font-size: 14px;
  opacity: .88;
  overflow-wrap: anywhere;
}

/* links */
.rb-page .rb-content a{
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.20);
}
.rb-page .rb-content a:hover{
  opacity: .7;
}

/* responsive */
@media (max-width: 700px){
  .rb-page{ padding: 18px 14px 44px; }
  .rb-page .rb-card--featured{ grid-template-rows: 180px auto; }
}

/* prefers reduced motion */
@media (prefers-reduced-motion: reduce){
  .rb-page .rb-bg{ animation: none !important; }
}
/* =========================================================
   RB Fixed Pages: stable template + stronger gradient + drift
   ========================================================= */

/* 0) まず「切れない」前提（あなたのFIXを維持） */
.rb-page .rb-card,
.rb-page .rb-note,
.rb-page .rb-hero{
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}
.rb-page .rb-card{ display: block !important; }
.rb-page .rb-card__media{ display: none !important; }
.rb-page .entry-content,
.rb-page .article-body,
.rb-page .content-in{
  overflow: visible !important;
}

/* 1) 固定ページ全体の余白・読みやすさ */
.rb-page{
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 18px 80px;
  isolation: isolate;
}

/* 2) 背景：fixedは事故りやすいので absolute + “横流し” */
.rb-page .rb-bg{
  position: absolute;
  inset: -18vh -18vw;
  z-index: -1;
  pointer-events: none;

  /* ぼんやり→「明確」に（コントラストUP） */
  background:
    radial-gradient(720px 720px at 88% 14%, rgba(120,170,255,.32), rgba(255,255,255,0) 62%),
    radial-gradient(860px 860px at 18% 88%, rgba(255,170,210,.26), rgba(255,255,255,0) 60%),
    radial-gradient(740px 740px at 72% 86%, rgba(180,240,210,.22), rgba(255,255,255,0) 62%);
  will-change: transform;
  animation: rbBgDrift 42s linear infinite;
}

/* “右→左” にゆっくり流す（気づく程度に） */
@keyframes rbBgDrift{
  0%   { transform: translate3d(40px, 0, 0); }
  100% { transform: translate3d(-40px, 0, 0); }
}

/* 動き苦手な人向け */
@media (prefers-reduced-motion: reduce){
  .rb-page .rb-bg{ animation: none !important; }
}

/* 3) ヒーロー（共通カード感） */
.rb-page-hero{
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.06);
  padding: 22px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

/* 4) 本文カード（長文OK） */
.rb-page-body{
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.06);
  backdrop-filter: blur(8px);
}
.rb-page-body .rb-card__body{
  padding: 20px 22px 24px;
}

/* 5) h1（Cocoon感ゼロ） */
.rb-page-title{
  margin: 10px 0 10px;
  border: none !important;
  background: none !important;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: .02em;
}
.rb-page-title > span{
  display: inline-block;
  max-width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
  overflow-wrap: anywhere;
}

/* lead */
.rb-page-lead{
  margin: 0;
  line-height: 1.9;
  opacity: .82;
}

/* 6) h2（Cocoon感ゼロ） */
.rb-page .rb-content h2{
  margin: 28px 0 10px;
  padding: 0;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
  letter-spacing: .02em;
}
.rb-page .rb-content h2::after{
  content:"";
  display:block;
  width: 44px;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, rgba(0,0,0,.22), rgba(0,0,0,0));
}

/* 本文 */
.rb-page .rb-content p{
  margin: 0 0 12px;
  line-height: 2.0;
  opacity: .88;
  overflow-wrap: anywhere;
}

/* スマホ */
@media (max-width: 700px){
  .rb-page-body .rb-card__body{ padding: 18px 16px 22px; }
}

/* =========================
   RankBase Footer Nav
   ========================= */

/* navでもulでも効くように */
.rb-footer-nav{
  display: flex;
  flex-wrap: wrap;              /* 狭いと折り返す */
  justify-content: center;      /* 中央寄せ */
  align-items: center;
  gap: 10px 12px;               /* 行/列の間隔 */
  margin: 18px auto 8px;
  padding: 10px 12px;
  max-width: 1100px;

  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 999px;         /* ピル形 */
  backdrop-filter: blur(8px);
}

/* ul/li形式にも対応 */
.rb-footer-nav ul{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 12px;
  margin: 0;
  padding: 0;
}
.rb-footer-nav li{ margin: 0; padding: 0; }

/* リンク（タップしやすい） */
.rb-footer-nav a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;

  text-decoration: none !important;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .01em;

  color: #111;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(0,0,0,.08);

  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

/* hover / focus */
.rb-footer-nav a:hover,
.rb-footer-nav a:focus-visible{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0,0,0,.08);
  background: rgba(255,255,255,.92);
  outline: none;
}

/* “今いるページ”を強調したい場合（手動で class="is-current" を付ける） */
.rb-footer-nav a.is-current{
  background: rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.10);
}

/* スマホ：角丸を少し弱めて、窮屈感を減らす */
@media (max-width: 640px){
  .rb-footer-nav{
    border-radius: 18px;
    padding: 12px 10px;
  }
  .rb-footer-nav a{
    padding: 10px 12px;
    font-size: 13px;
  }
}
/* カスタム CSS をここに入力してください *//* =========================
   RB: h3 boxed (inside rb-portal/rb-page)
   ========================= */

/* h3を“囲い見出し”に（Cocoonの装飾は完全無効） */
.rb-portal h3,
.rb-page .rb-content h3{
  margin: 18px 0 12px;
  padding: 12px 14px;
  font-size: clamp(16px, 2.0vw, 20px);
  font-weight: 800;
  line-height: 1.35;
  color: #111;

  background: rgba(255,255,255,.74);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,.05);
  backdrop-filter: blur(8px);

  border-left: 4px solid rgba(0,0,0,.14);
}

/* 下の線演出は不要なので無効化（あなたの既存定義を上書き） */
.rb-portal h3::after,
.rb-page .rb-content h3::after{
  content: none !important;
}

/* h3直後のpを少し詰めると綺麗 */
.rb-portal h3 + p,
.rb-page .rb-content h3 + p{
  margin-top: 8px;
}

/* スマホは角丸を少し弱めて余白を詰める */
@media (max-width: 640px){
  .rb-portal h3,
  .rb-page .rb-content h3{
    padding: 11px 12px;
    border-radius: 12px;
  }
}
.rb-portal .rb-content h2{
  margin: 26px 0 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,.05);
  font-weight: 900;
}
.rb-portal .rb-content h2::before,
.rb-portal .rb-content h2::after{
  content: none !important;
}
/* rb-portalを使うページでは自動タイトルを隠す（Cocoon側） */
body.page .entry-title{
  display: none;
}
/* rb-portal内のリスト（関連市場など）をカード化 */
.rb-portal .rb-content ul{
  list-style: none;
  margin: 10px 0 0;
  padding: 12px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,.05);
  backdrop-filter: blur(8px);

  display: grid;
  gap: 10px;
}

/* liの余計な余白を消す */
.rb-portal .rb-content li{
  margin: 0;
  padding: 0;
}

/* リスト内リンクを“ボタン風”に */
.rb-portal .rb-content ul a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.78);

  font-weight: 800;
  border-bottom: none !important; /* 上の下線ルールを打ち消す */
}

/* 右矢印を自動で付ける */
.rb-portal .rb-content ul a::after{
  content: "→";
  font-weight: 900;
  opacity: .55;
}

.rb-portal .rb-content ul a:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0,0,0,.08);
}
/* rb-portal内リンク：品よく統一 */
.rb-portal .rb-content a{
  color: inherit;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(0,0,0,.18);
}
.rb-portal .rb-content a:hover{
  opacity: .75;
  border-bottom-color: rgba(0,0,0,.30);
}
/* rb-portal内の単発リンク行（ホーム等）を整える */
.rb-portal .rb-content > p a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.72);
  font-weight: 800;
  border-bottom: none !important;
}
@media (min-width: 720px){
  .rb-portal .rb-content ul{
    grid-template-columns: 1fr 1fr;
  }
}
/* 共通クラウン */
.rank-crown{
  width: 28px;
  height: 28px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 10px;
  flex-shrink: 0;
}

/* 1位：光る・少し浮く */
.rank-1 .rank-crown{
  background-image: url("/wp-content/themes/cocoon-child-master/images/rb/crown-1.svg");
  filter: drop-shadow(0 0 6px rgba(245,197,66,.9));
  transform: scale(1.15);
}

/* 2位・3位は控えめ */
.rank-2 .rank-crown{
  background-image: url("/wp-content/themes/cocoon-child-master/images/rb/crown-2.svg");
}
.rank-3 .rank-crown{
  background-image: url("/wp-content/themes/cocoon-child-master/images/rb/crown-3.svg");
}
/* =========================================================
   RB Ranking: 1位 = Throne (no HTML change)
   既存 .section-ranking / .ranking-item を上書き
   ========================================================= */

/* 1位カードを“王座化” */
.section-ranking .ranking-item:nth-child(1){
  border: 1px solid rgba(245,197,66,.55);
  background:
    radial-gradient(560px 560px at 85% 10%, rgba(255, 232, 160, .55), rgba(255,255,255,0) 62%),
    radial-gradient(720px 720px at 10% 90%, rgba(255, 200, 120, .25), rgba(255,255,255,0) 60%),
    rgba(255,255,255,.86);

  box-shadow:
    0 30px 70px rgba(0,0,0,.12),
    0 0 0 2px rgba(245,197,66,.22);

  transform: translateY(-2px);
  overflow: hidden;
}

/* 1位：上に“光る帯” */
.section-ranking .ranking-item:nth-child(1)::after{
  content:"";
  position:absolute;
  inset:-1px;
  pointer-events:none;
  background:
    linear-gradient(110deg,
      rgba(255,255,255,0) 0%,
      rgba(255, 236, 170, .55) 22%,
      rgba(255,255,255,0) 46%,
      rgba(255, 236, 170, .40) 70%,
      rgba(255,255,255,0) 100%);
  opacity: .9;
  mix-blend-mode: screen;
  animation: rbThroneShine 3.6s ease-in-out infinite;
}

@keyframes rbThroneShine{
  0%   { transform: translateX(-40%); opacity: .55; }
  50%  { transform: translateX(10%);  opacity: .95; }
  100% { transform: translateX(40%);  opacity: .55; }
}

/* 1位：順位バッジ（左上）を“王冠＋金バッジ”に */
.section-ranking{
  counter-reset: rbRank;
}
.section-ranking .ranking-item{
  counter-increment: rbRank;
}
.section-ranking .ranking-item::before{
  content: counter(rbRank);
  position: absolute;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 1000;
  font-size: 16px;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 10px 20px rgba(0,0,0,.10);
  z-index: 5;
}

/* 1位だけ金＋発光 */
.section-ranking .ranking-item:nth-child(1)::before{
  background: rgba(255, 214, 120, .70);
  border-color: rgba(245,197,66,.65);
  box-shadow:
    0 12px 26px rgba(0,0,0,.16),
    0 0 18px rgba(245,197,66,.55);
}

/* 1位：タイトル帯を“王座帯”に */
.section-ranking .ranking-item:nth-child(1) .ranking-title-full{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(245,197,66,.45);
  box-shadow: 0 16px 34px rgba(0,0,0,.10);
  font-size: 19px;
}

/* 1位：クラウン（SVG）をタイトルに付ける */
.section-ranking .ranking-item:nth-child(1) .ranking-title-full{
  position: relative;
  padding-left: 56px;
}
.section-ranking .ranking-item:nth-child(1) .ranking-title-full::before{
  content:"";
  position:absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%) scale(1.12);
  width: 30px;
  height: 30px;
  background: url("/wp-content/themes/cocoon-child-master/images/rb/crown-1.svg") center/contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(245,197,66,.85));
  opacity: .98;
}

/* 1位：画像も少し“主役”にする */
.section-ranking .ranking-item:nth-child(1) .ranking-item-image-tag img{
  box-shadow:
    0 18px 42px rgba(0,0,0,.14),
    0 0 0 2px rgba(245,197,66,.22);
}

/* 1位：ボタンを“ご褒美感”に（既存 btn-orange があれば上書き） */
.section-ranking .ranking-item:nth-child(1) a.btn{
  border-color: rgba(245,197,66,.35);
}
.section-ranking .ranking-item:nth-child(1) a.btn-orange{
  background: linear-gradient(180deg, rgba(255, 200, 80, 1), rgba(230, 150, 0, 1));
  color: #111;
  box-shadow:
    0 14px 30px rgba(0,0,0,.14),
    0 0 16px rgba(245,197,66,.30);
}

/* 動きが苦手な人向け */
@media (prefers-reduced-motion: reduce){
  .section-ranking .ranking-item:nth-child(1)::after{
    animation: none !important;
  }
}
/* =========================================================
   Crown Upgrade (1st / 2nd / 3rd)
   ========================================================= */

/* 共通：クラウンの形を強調 */
.section-ranking .ranking-item .ranking-title-full::before{
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
  opacity: 1;
}

/* ========== 1位：ゴールド王冠（派手） ========== */
.section-ranking .ranking-item:nth-child(1) .ranking-title-full::before{
  background: url("/wp-content/themes/cocoon-child-master/images/rb/crown.svg") center/contain no-repeat;
  filter:
    drop-shadow(0 0 6px rgba(255,215,120,.95))
    drop-shadow(0 0 14px rgba(255,200,80,.85));
  transform: translateY(-50%) scale(1.25);
}

/* ========== 2位：シルバー王冠（上品） ========== */
.section-ranking .ranking-item:nth-child(2){
  border-color: rgba(180,180,180,.55);
  background:
    radial-gradient(500px 500px at 90% 10%, rgba(220,220,220,.35), transparent 60%),
    rgba(255,255,255,.92);
}

.section-ranking .ranking-item:nth-child(2) .ranking-title-full{
  padding-left: 52px;
}

.section-ranking .ranking-item:nth-child(2) .ranking-title-full::before{
  background: url("/wp-content/themes/cocoon-child-master/images/rb/crown.svg") center/contain no-repeat;
  filter:
    grayscale(1)
    brightness(1.25)
    drop-shadow(0 0 6px rgba(200,200,200,.7));
  transform: translateY(-50%) scale(1.05);
}

/* ========== 3位：カッパー王冠（控えめ） ========== */
.section-ranking .ranking-item:nth-child(3){
  border-color: rgba(184,115,51,.45);
  background:
    radial-gradient(420px 420px at 90% 10%, rgba(184,115,51,.22), transparent 60%),
    rgba(255,255,255,.96);
}

.section-ranking .ranking-item:nth-child(3) .ranking-title-full{
  padding-left: 50px;
}

.section-ranking .ranking-item:nth-child(3) .ranking-title-full::before{
  background: url("/wp-content/themes/cocoon-child-master/images/rb/crown.svg") center/contain no-repeat;
  filter:
    sepia(1)
    saturate(2)
    hue-rotate(-20deg)
    brightness(0.95)
    drop-shadow(0 1px 4px rgba(120,80,40,.4));
  transform: translateY(-50%) scale(0.95);
}
/* =========================
   2位：Silver (stronger)
   ========================= */
.section-ranking .ranking-item:nth-child(2){
  border: 1px solid rgba(170,170,170,.75);
  box-shadow:
    0 18px 40px rgba(0,0,0,.08),
    0 0 0 1px rgba(255,255,255,.7) inset;
  background:
    radial-gradient(520px 520px at 88% 10%, rgba(230,230,230,.85), rgba(255,255,255,0) 62%),
    radial-gradient(520px 520px at 10% 90%, rgba(200,200,200,.40), rgba(255,255,255,0) 62%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,248,248,.92));
}

/* 2位の“題字帯”も銀っぽくして主役感UP */
.section-ranking .ranking-item:nth-child(2) .ranking-title-full{
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(242,242,242,.92));
  border: 1px solid rgba(170,170,170,.55);
  box-shadow:
    0 10px 22px rgba(0,0,0,.06),
    0 0 0 1px rgba(255,255,255,.8) inset;
}

/* 2位のクラウン発光も少し強く（1位ほどではない） */
.section-ranking .ranking-item:nth-child(2) .ranking-title-full::before{
  filter:
    grayscale(1)
    brightness(1.30)
    drop-shadow(0 0 8px rgba(235,235,235,.95))
    drop-shadow(0 0 16px rgba(210,210,210,.65));
  transform: translateY(-50%) scale(1.12);
}
/* =========================
   3位：Copper title band
   ========================= */
.section-ranking .ranking-item:nth-child(3) .ranking-title-full{
  background:
    radial-gradient(240px 120px at 12% 50%, rgba(184,115,51,.18), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(255,245,235,.92), rgba(250,240,232,.86));
  border: 1px solid rgba(184,115,51,.40);
  box-shadow:
    0 10px 22px rgba(0,0,0,.06),
    0 0 0 1px rgba(255,255,255,.75) inset;
}
/* =========================
   RankBase ranking: crown fix + mobile fix
   ========================= */

/* まず「飛び」を止める：疑似要素の基準を ranking-item にする */
.section-ranking .ranking-item{
  position: relative; /* ←これが無いと左上に飛びがち */
  overflow: hidden;
}

/* 1〜3位 共通：左上クラウン（疑似要素） */
.section-ranking .ranking-item:nth-child(-n+3)::before{
  content:"";
  position:absolute;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  z-index: 5;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.18));
}

/* 画像URLは “themes 側” に合わせる */
.section-ranking .ranking-item:nth-child(1)::before{
  background-image: url("/wp-content/themes/cocoon-child-master/images/rb/crown-1.svg");
}
.section-ranking .ranking-item:nth-child(2)::before{
  background-image: url("/wp-content/themes/cocoon-child-master/images/rb/crown-2.svg");
}
.section-ranking .ranking-item:nth-child(3)::before{
  background-image: url("/wp-content/themes/cocoon-child-master/images/rb/crown-3.svg");
}


/* タイトルがクラウンに被らないように余白を確保 */
.section-ranking .ranking-title-full{
  position: relative;
  padding-left: 74px; /* ←クラウン分 */
}

/* 2位：銀を「派手目」に（背景+枠+微グロー） */
.section-ranking .ranking-item:nth-child(2){
  border-color: rgba(140,140,140,.55);
  background:
    radial-gradient(520px 260px at 20% 0%, rgba(255,255,255,.95), rgba(255,255,255,0) 60%),
    linear-gradient(135deg, rgba(245,245,245,.95), rgba(230,230,230,.75));
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
}
.section-ranking .ranking-item:nth-child(2) .ranking-title-full{
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(230,230,230,.70));
  border: 1px solid rgba(150,150,150,.35);
}

/* 3位：カッパーを題字にも入れる */
.section-ranking .ranking-item:nth-child(3){
  border-color: rgba(170,110,60,.45);
  background:
    radial-gradient(520px 260px at 20% 0%, rgba(255,255,255,.92), rgba(255,255,255,0) 60%),
    linear-gradient(135deg, rgba(255,245,238,.92), rgba(235,210,192,.72));
  box-shadow: 0 18px 40px rgba(0,0,0,.07);
}
.section-ranking .ranking-item:nth-child(3) .ranking-title-full{
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(235,205,185,.78));
  border: 1px solid rgba(170,110,60,.28);
}

/* -------------------------
   スマホで“左半分寄り”になるのを強制解消
   ------------------------- */

/* ranking-item 内のレイアウトを確実に100%にする */
.section-ranking .ranking-item-content,
.section-ranking .ranking-item-description,
.section-ranking .ranking-item-image-tag{
  width: 100%;
  max-width: 100%;
}

@media (max-width: 640px){
  /* flex/float の残りを完全に殺す */
  .section-ranking .ranking-item-content{
    display: block !important;
  }
  .section-ranking .ranking-item-image-tag{
    float: none !important;
    margin: 0 0 12px !important;
  }
  .section-ranking .ranking-item-description{
    float: none !important;
  }

  /* タイトルのクラウン余白はスマホ用に少し詰める */
  .section-ranking .ranking-title-full{
    padding-left: 64px;
  }

  /* ボタンを横並び寄せ（崩れ防止） */
  .section-ranking .ranking-item-description{
    display: block;
  }
  .section-ranking a.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 8px 8px 0 0;
  }
}
.rb-crown{
  position: absolute;
  top: 12px;
  left: 12px;

  width: 44px;
  height: 44px;

  border-radius: 0 !important;   /* ← これが最重要 */
  background: none !important;
  box-shadow: none !important;

  display: flex;
  align-items: center;
  justify-content: center;
}
.rb-crown img,
.rb-crown svg{
  width: 100%;
  height: 100%;
  display: block;

  border-radius: 0 !important;
}
/* 1位：王者 */
.rb-crown--gold{
  filter:
    drop-shadow(0 0 6px rgba(255,200,80,.9))
    drop-shadow(0 0 14px rgba(255,170,40,.6));
}

/* 2位：シルバー */
.rb-crown--silver{
  filter:
    drop-shadow(0 0 6px rgba(220,220,220,.9));
  opacity: .9;
}

/* 3位：カッパー */
.rb-crown--bronze{
  filter:
    drop-shadow(0 0 6px rgba(200,140,90,.8));
  opacity: .85;
}
/* クラウン疑似要素は “丸バッジ” を完全無効化 */
.section-ranking .ranking-item:nth-child(-n+3)::before{
  content: "";
  border-radius: 0 !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
/* =========================================================
   RB Compare Grid (ranking -> card grid)
   ========================================================= */

/* 比較モード：このクラスを付けたセクションだけグリッド化 */
.rb-compare.section-ranking{
  max-width: 1100px;
}

/* ranking-item をグリッドのカードとして扱う */
.rb-compare .ranking-item{
  margin: 0 !important;
  height: 100%;
}

/* カード一覧の“親”がdiv等で包まれてない場合があるので、
   ranking-item 自体を inline-block で組むのではなく、
   section に grid を敷いて「子要素すべて」を並べる */
.rb-compare{
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 1位は横長で目立たせる（比較の“主役”） */
.rb-compare .ranking-item:nth-child(1){
  grid-column: 1 / -1;
}

/* 画像＋本文を“カード内レイアウト”に最適化 */
.rb-compare .ranking-item-content{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: start;
}
.rb-compare .ranking-item-image-tag{
  flex: none !important;
  width: auto !important;
}
.rb-compare .ranking-item-image-tag img{
  width: 100%;
  max-width: 140px;
  border-radius: 12px;
}

/* ボタンは下に揃えて押しやすく */
.rb-compare .ranking-item-description{
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
}
.rb-compare .ranking-item-description p{
  margin-bottom: 10px;
}
.rb-compare .ranking-item-description .btn{
  white-space: nowrap;
}

/* タイトルは2行くらいで整える（長すぎる時の暴れ防止） */
.rb-compare .ranking-title-full{
  font-size: 16px;
  line-height: 1.4;
}

/* タブレット */
@media (max-width: 980px){
  .rb-compare{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* スマホ：縦1列 */
@media (max-width: 640px){
  .rb-compare{
    grid-template-columns: 1fr;
  }
  .rb-compare .ranking-item:nth-child(1){
    grid-column: auto;
  }
  .rb-compare .ranking-item-content{
    grid-template-columns: 1fr;
  }
  .rb-compare .ranking-item-image-tag img{
    max-width: 420px;
  }
}
/* =========================================================
   RB SERP Answer Box
   ========================================================= */
.rb-serp{
  margin: 12px 0 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(0,0,0,.06);
  backdrop-filter: blur(8px);
}
.rb-serp__lead{
  margin: 0 0 10px;
  line-height: 1.9;
  font-size: 14px;
  opacity: .92;
}
.rb-serp__list{
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
  font-size: 13px;
  opacity: .88;
}
.rb-serp__list b{
  font-weight: 900;
}

/* =========================
   RB Featured Card: 16:9で上部をきっちり埋める
   ========================= */

/* featuredカード全体 */
.rb-portal .rb-card.rb-card--featured{
  overflow: hidden;
  border-radius: 22px;
}

/* 画像エリアを 16:9 に固定（ここが最重要） */
.rb-portal .rb-card.rb-card--featured .rb-card__media{
  position: relative;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;

  /* 変な余白がある場合の保険 */
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0;
}

/* imgを枠いっぱいにして cover */
.rb-portal .rb-card.rb-card--featured .rb-card__media img{
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;

  object-fit: cover;
  object-position: center;
  display: block;

  /* Cocoon/WordPressが付ける余計な余白対策 */
  margin: 0 !important;
}

/* 画像の下側（本文側）との境界を自然に */
.rb-portal .rb-card.rb-card--featured .rb-card__body{
  padding-top: 18px;
}

/* スマホだけ少し縦に（見栄え良い） */
@media (max-width: 640px){
  .rb-portal .rb-card.rb-card--featured .rb-card__media{
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }
  .rb-portal .rb-card.rb-card--featured{
    border-radius: 18px;
  }
}
.rb-portal .rb-card.rb-card--featured{
  padding: 0 !important;
}
/* =========================
   RB Featured: 空のmediaが原因の白余白を消す（HTML変更なし）
   ========================= */

/* featuredカード全体 */
.rb-portal .rb-card.rb-card--featured{
  overflow: hidden;
  border-radius: 22px;
}

/* ① 空の .rb-card__media が“白い空白”の犯人なので消す */
.rb-portal .rb-card.rb-card--featured .rb-card__media{
  display: none !important;
}

/* ② featuredカード直下にいる img をヒーローとして全幅表示 */
.rb-portal .rb-card.rb-card--featured > img{
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  line-height: 0;
  object-fit: cover;
  object-position: center;

  /* 上だけ丸める（カードと自然に繋がる） */
  border-radius: 22px 22px 0 0;
}

/* ③ 画像と本文の間の“変な余白”がある場合の保険 */
.rb-portal .rb-card.rb-card--featured .rb-card__body{
  margin-top: 0 !important;
  padding-top: 18px; /* お好みで */
}
/* =========================
   RB Portal CTA（市場を見る）: 矢印二重を根絶して馴染ませる
   ========================= */

/* CTA本体 */
.rb-portal .rb-card .rb-cta{
  display: inline-flex !important;
  align-items: center;
  gap: 8px;

  padding: 9px 14px !important;
  border-radius: 999px !important;

  background: rgba(255,255,255,.60) !important;
  border: 1px solid rgba(0,0,0,.10) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.06) !important;

  font-size: 14px !important;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
  width: fit-content !important;
}

/* 既存矢印（背景/アイコン/疑似要素）を“全部”殺す */
.rb-portal .rb-card .rb-cta .rb-arrow{
  display: inline-block;
  width: auto;
  height: auto;
  background: none !important;
  border: 0 !important;
  font-size: 0 !important;   /* 文字やアイコンフォント対策 */
  line-height: 0 !important;
}

.rb-portal .rb-card .rb-cta .rb-arrow::before,
.rb-portal .rb-card .rb-cta .rb-arrow::after{
  content: none !important;  /* 既存の疑似要素対策 */
}

/* CTAに矢印を“1つだけ”付ける（アンカー側に付与） */
.rb-portal .rb-card .rb-cta::after{
  content: "→";
  display: inline-block;
  margin-left: 6px;
  font-size: 16px;
  line-height: 1;
  opacity: .85;
  transform: translateX(0);
  transition: transform .18s ease, opacity .18s ease;
}

.rb-portal .rb-card .rb-cta:hover{
  background: rgba(255,255,255,.80) !important;
  border-color: rgba(0,0,0,.14) !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.08) !important;
}

.rb-portal .rb-card .rb-cta:hover::after{
  transform: translateX(2px);
  opacity: 1;
}

/* ===== Market Bands (image ribbon) : FORCE FIX ===== */
.rb-band{
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin: 48px 0;
}

/* 背景画像レイヤー（重要：background-image を必ず指定） */
.rb-band__bg{
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image: var(--rb-band-image) !important; /* ★これが無いと出ない */
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;

  opacity: .28; /* 0.22〜0.35で調整 */
  filter: saturate(1.05) contrast(1.05);
}

/* 文字レイヤー */
.rb-band__inner{
  position: relative;
  z-index: 1;
  padding: 24px;
  background: transparent;
}

/* うっすら白ベール（読みやすさ用） */
.rb-band__bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255,255,255,.70),
    rgba(255,255,255,.20)
  );
}

/* バリエーション */
.rb-band--primary .rb-band__bg{ opacity: .22; }
.rb-band--secondary .rb-band__bg{ opacity: .18; background-position: center 35% !important; }

/* 親に高さを保証 */
.rb-band{
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin: 48px 0;
  min-height: 140px; /* まずこれで潰れ防止 */
}

/* 背景（あなたのHTMLのクラス名は rb-band__bg） */
.rb-band__bg{
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image: var(--rb-band-image) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;

  opacity: .35 !important; /* まず見えるように濃く */
  filter: none !important;  /* 一旦切って確認 */
}

/* 文字の入る箱を前面に */
.rb-band__inner{
  position: relative;
  z-index: 1;
  padding: 24px;
  background: transparent !important;
}

/* うっすら白ベール（見えたら後で入れ直す） */
.rb-band__bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.25);
}
/* FAQ 全体 */
.rb-faq {
  margin-top: 1.5rem;
}

/* Q（質問） */
.rb-faq dt {
  font-weight: 700;                 /* 太字 */
  font-size: 1.05rem;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4em;
  line-height: 1.6;
}

/* Qアイコン */
.rb-faq dt::before {
  content: "❓";                     /* さりげない */
  font-size: 0.95em;
  line-height: 1.6;
  opacity: 0.8;
}

/* A（回答） */
.rb-faq dd {
  margin-left: 1.4em;
  margin-bottom: 0.8rem;
  color: #555;
  line-height: 1.7;
}
/* ===== Hero 2カラム（タイトルは左を維持） ===== */
.rb-hero__inner{
  display:flex;
  gap:24px;
  align-items:flex-start;
  justify-content:space-between;
}

.rb-hero__main{
  flex: 1 1 auto;
  min-width: 0;
  text-align:left; /* 念のため固定 */
}

.rb-hero__side{
  flex: 0 0 360px; /* 右カード幅 */
  min-width: 0;
}

/* SPは縦積み */
@media (max-width: 768px){
  .rb-hero__inner{ display:block; }
  .rb-hero__side{ margin-top:16px; }
}

/* ===== 右カード（rb-info-box） ===== */
.rb-info-box{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  padding:14px;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

.rb-info-box__title{
  margin:0 0 10px;
  font-weight:700;
  font-size:16px;
}

/* 余白が広すぎる問題を潰す：ul/liのデフォ余白を消す */
.rb-info-box__list{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px; /* ←リンク間の詰め具合 */
}

/* ボタン風リンク */
.rb-info-box__list a{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  background:rgba(0,0,0,.03);
  text-decoration:none;
  color:inherit;
  border:1px solid rgba(0,0,0,.05);
}

.rb-info-box__list a:hover{
  transform: translateY(-1px);
}

.rb-intent-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rb-intent-link {
  display: block;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f7f8fa;
  transition: background .2s ease;
  text-decoration: none;
}

.rb-intent-link:hover {
  background: #eef2f8;
}

.rb-intent-title {
  display: block;
  font-weight: 700;
  font-size: 16px;
  color: #222;
}

.rb-intent-sub {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #666;
}





/* 比較表用CSS提案 */

/* 比較表のラッパー - モバイル対応のため横スクロールを有効化 */
.rb-comparison-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  -webkit-overflow-scrolling: touch; /* iOS でのスムーズスクロール */
}

/* 比較表本体 */
.rb-comparison-table {
  width: 100%;
  min-width: 600px; /* 最小幅を設定してモバイルで横スクロール */
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ヘッダー行 */
.rb-comparison-table thead {
  background-color: #f5f5f5;
  border-bottom: 2px solid #ddd;
}

/* ヘッダーセル */
.rb-comparison-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: bold;
  font-size: 0.95rem;
  color: #333;
  white-space: nowrap;
  border: 1px solid #ddd;
}

/* データセル */
.rb-comparison-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

/* 偶数行の背景色 */
.rb-comparison-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* ホバー効果 */
.rb-comparison-table tbody tr:hover {
  background-color: #f0f0f0;
  transition: background-color 0.2s ease;
}

/* 製品名列を強調 */
.rb-comparison-table td:first-child {
  font-weight: 600;
  color: #222;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .rb-comparison-wrapper {
    margin: 1.5rem 0;
  }
  
  .rb-comparison-table {
    font-size: 0.85rem;
    min-width: 500px;
  }
  
  .rb-comparison-table th,
  .rb-comparison-table td {
    padding: 0.5rem 0.75rem;
  }
  
  .rb-comparison-table th {
    font-size: 0.85rem;
  }
}

/* 小型モバイル対応 */
@media (max-width: 480px) {
  .rb-comparison-table {
    font-size: 0.8rem;
    min-width: 450px;
  }
  
  .rb-comparison-table th,
  .rb-comparison-table td {
    padding: 0.4rem 0.5rem;
  }
}



/* ===== ヘッダーリンク帯共通化 ===== */
.rb-band{
  margin: 24px 0;
  display: flex;
  justify-content: center;
}

.rb-band .rb-info-box{
  max-width: 820px;
  width: 100%;
}



.rb-comparison__scroll{ overflow-x:auto; }
.rb-comparison-table{ min-width: 760px; }
.rb-comparison__hint{ font-size:12px; opacity:.7; margin: 0 0 6px; }

.rb-comparison-table .is-rank1{
  background: rgba(255, 215, 0, .12);
  font-weight: 700;
}

.rb-rank-badge{
  display:inline-block;
  font-size:12px;
  font-weight:700;
  opacity:.8;
  margin-bottom:4px;
}

.rb-comp-img{
  max-width: 84px;
  height: auto;
  display:block;
  margin: 6px auto;
}

.rb-comp-name{ font-size: 13px; line-height: 1.35; }

.rb-buy{
  display:inline-block;
  padding:8px 10px;
  border-radius:10px;
  text-decoration:none;
  border:1px solid rgba(0,0,0,.12);
  margin:4px 6px 0 0;
  font-weight:700;
  font-size:13px;
  white-space:nowrap;
}

.rb-comparison-container {
  margin: 28px 0;
  overflow-x: auto;
}

.rb-comparison-scroll {
  font-size: 12px;
  color: #777;
  margin-bottom: 6px;
}

.rb-comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  background: #fff;
}

.rb-comparison-table th,
.rb-comparison-table td {
  border: 1px solid #e3e3e3;
  padding: 10px 12px;
  text-align: center;
  font-size: 14px;
}

.rb-th-row {
  background: #f7f7f7;
  font-weight: 600;
  text-align: left;
}

.rb-col-best {
  background: #fff8e1;
  font-weight: 600;
}

.rb-highlight {
  font-weight: 700;
  color: #d6422b;
}

/* =========================
   Child Nav (monitor) intent box
   ========================= */
.rb-info-box.rb-info-box--intent{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-left:6px solid rgba(0,0,0,.18);
  border-radius:14px;
  padding:18px 18px 14px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
  margin:28px 0;
}

/* 見出し */
.rb-info-box--intent .rb-info-box__title{
  margin:0 0 14px;
  font-size:18px;
  line-height:1.3;
  font-weight:700;
}

/* リスト全体 */
.rb-info-box--intent .rb-intent-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px;
}

/* 1項目（aをボタンに） */
.rb-info-box--intent .rb-intent-list li{
  margin:0;
  padding:0;
}

.rb-info-box--intent .rb-intent-list a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  text-decoration:none;
  color:inherit;

  background:rgba(0,0,0,.02);
  border:1px solid rgba(0,0,0,.10);
  border-radius:12px;
  padding:12px 14px;
  transition:transform .06s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

/* 右矢印っぽいアイコン */
.rb-info-box--intent .rb-intent-list a::after{
  content:"›";
  font-size:20px;
  line-height:1;
  opacity:.45;
}

/* hover */
.rb-info-box--intent .rb-intent-list a:hover{
  background:rgba(0,0,0,.03);
  border-color:rgba(0,0,0,.18);
  box-shadow:0 10px 22px rgba(0,0,0,.08);
  transform:translateY(-1px);
}

/* 1行目（親へ戻る）だけ強調 */
.rb-info-box--intent .rb-intent-list li:first-child a{
  background:rgba(0,0,0,.06);
  border-color:rgba(0,0,0,.22);
  font-weight:700;
}

/* モバイル最適化 */
@media (max-width: 640px){
  .rb-info-box.rb-info-box--intent{
    padding:16px 14px 12px;
    border-radius:12px;
  }
  .rb-info-box--intent .rb-info-box__title{
    font-size:17px;
  }
  .rb-info-box--intent .rb-intent-list a{
    padding:12px 12px;
  }
}

/* =========================
   RankBase 比較表
========================= */

.rb-comparison {
  width: 100%;
  margin: 40px 0;
}

/* タイトル */
.rb-compare__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-left: 10px;
  border-left: 4px solid #444;
}

/* テーブルをページ幅いっぱい */
.rb-compare {
  width: 100%;
}

.rb-compare__scroll {
  width: 100%;
  overflow-x: auto;
}

/* テーブル */
.rb-compare__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  background: #fff;
}

/* ヘッダー */
.rb-compare__table thead th {
  background: #f3f4f6;
  font-weight: 600;
  text-align: center;
  padding: 12px 10px;
  white-space: nowrap;
}

/* セル */
.rb-compare__table td {
  text-align: center;
  padding: 12px 10px;
}

/* 製品列 */
.rb-compare__rowhead {
  text-align: left;
  font-weight: 600;
  padding-left: 12px;
  white-space: nowrap;
}

/* 枠線 */
.rb-compare__table th,
.rb-compare__table td {
  border: 1px solid #e5e7eb;
}

/* スマホ */
@media (max-width: 768px) {

  .rb-compare__table {
    min-width: 700px;
  }

}
/* =========================
   RankBase 比較表：レイアウト崩れ修正
   （タイトルが左に回り込む / テーブルが切れる対策）
========================= */

/* 親を必ずブロック化 */
.rb-comparison,
.rb-compare,
.rb-compare__scroll {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* タイトル：回り込み・横並びを完全に無効化 */
.rb-compare__title {
  float: none !important;
  clear: both !important;
  width: 100% !important;
  margin: 0 0 16px !important;
}

/* スクロール領域：横スクロールはここだけ */
.rb-compare__scroll {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
}

/* テーブル：幅は100%、ただし狭い画面では横に伸ばしてスクロール */
.rb-compare__table {
  border-collapse: collapse;
  width: 100% !important;
  max-width: 100% !important;
  table-layout: auto;
}

/* ヘッダーが縦折り返ししないように */
.rb-compare__table thead th {
  white-space: nowrap;
}

/* スマホ：表が潰れるので“最低幅”を持たせて横スクロール */
@media (max-width: 768px) {
  .rb-compare__table {
    min-width: 900px; /* 列数が多いのでこれくらいが安定 */
  }
}