.rmv-store {
  --rmv-base-pink: #ff008c;
  --rmv-base-pink-light: #fff5fb;
  --rmv-base-pink-lighter: #ffe6f5;
  --rmv-accent-blue: #4facfe;
  --rmv-accent-green: #00b894;
  --rmv-accent-yellow: #ffd166;
  --rmv-accent-red: #ff4b5c;
  --rmv-text-main: #2c3e50;
  --rmv-text-secondary: #5a6c7d;
  --rmv-bg-gray: #f8f9fa;
  --rmv-border-color: #e8ecef;
  --rmv-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --rmv-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --rmv-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --rmv-radius-sm: 8px;
  --rmv-radius-md: 12px;
  --rmv-radius-lg: 16px;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo,
    sans-serif;
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  line-height: 1.85;
  font-size: 16px;
  color: var(--rmv-text-main);
  background: #fff;
  isolation: isolate;
}

@media (min-width: 768px) {
  .rmv-store {
    padding: 48px 32px 80px;
    font-size: 17px;
  }
}

.rmv-store * {
  box-sizing: border-box;
}

.rmv-store h1,
.rmv-store h2,
.rmv-store h3,
.rmv-store h4 {
  margin: 48px 0 24px !important;
  font-weight: 700;
  line-height: 1.4;
}

.rmv-store h1 {
  font-size: 1.9rem;
}

.rmv-store h2 {
  position: relative;
  padding: 16px 24px 16px 28px !important;
  border-radius: var(--rmv-radius-md) !important;
  color: #fff !important;
  background: var(--rmv-base-pink) !important;
  box-shadow: var(--rmv-shadow-md) !important;
  font-size: 1.4rem;
  margin-top: 64px;
}

.rmv-store h2::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 5px;
  height: 50%;
  background: #fff;
  border-radius: 999px;
  transform: translateY(-50%);
  opacity: 0.8;
}

.rmv-store h2 span {
  margin-left: 0rem !important;
}

.rmv-store h3 {
  border: none;
  position: relative;
  padding-left: 20px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--rmv-base-pink-lighter);
  font-size: 1.25rem;
}

.rmv-store h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 24px;
  background: var(--rmv-base-pink);
  border-radius: 3px;
}

.rmv-store h4 {
  border: none;
  font-size: 1.1rem;
  padding-left: 14px;
  border-left: 4px solid var(--rmv-accent-blue);
  margin-top: 32px;
}

.rmv-store p {
  margin: 0 0 20px;
  color: var(--rmv-text-secondary);
}

.rmv-store .shop_cp_text {
  font-size: 14px;
  color: var(--rmv-text-secondary);
}

.rmv-store ul,
.rmv-store ol {
  margin: 16px 0 24px 0em;
  padding-left: 0px !important;
}
.rmv-store ul li,
.rmv-store ol li {
  margin: 10px 0;
  line-height: 1.8;
  color: var(--rmv-text-secondary);
}

.rmv-store ul li {
  list-style: none;
  position: relative;
  padding-left: 1.5em;
}

.rmv-store ol {
  counter-reset: numbered;
}

.rmv-store ol > li {
  list-style: none;
  position: relative;
  padding-left: 2em;
}

.rmv-store ol > li::before {
  counter-increment: numbered;
  content: counter(numbered);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5em;
  height: 1.5em;
  background: var(--rmv-base-pink);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* =========================
   WP Block Table – Rakuten Mobile Pink Card Style
   ========================= */

.rmv-store figure.wp-block-table {
  margin: 32px 0;
  padding: 0;
  background: transparent;
}

/* テーブル本体をカード化 */
.rmv-store figure.wp-block-table > table,
.rmv-store figure.wp-block-table table.has-fixed-layout {
  background: #fff !important;
  border-collapse: collapse;
  border-radius: var(--rmv-radius-md);
  overflow: hidden;
  border: 1px solid #f3c2d6;
  box-shadow: 0 8px 20px rgba(226, 0, 116, 0.12); /* 楽天ピンク影 */
  margin: 0;
}

/* =========================
   Header（楽天モバイルピンク）
   ========================= */

.rmv-store thead th {
  background: #ff008c !important; /* Rakuten Mobile Pink */
  color: #fff;
  font-weight: 700;
  padding: 14px 12px;
  border: 1px solid #ff008c;
  text-align: left;
}
.rmv-store thead {
  border-bottom: 1px solid;
  border-color: #ff008c;
}

/* =========================
   Cell style
   ========================= */

.rmv-store th,
.rmv-store td {
  padding: 14px 12px;
  border: 1px solid #f3c2d6;
  vertical-align: middle;
}

/* セル背景を完全に白で固定（WPテーマ対策） */
.rmv-store figure.wp-block-table td {
  background: #fff !important;
  color: var(--rmv-text-secondary);
}

/* 偶数行：ごく薄いピンクグレー */
.rmv-store figure.wp-block-table tbody tr:nth-child(even) td {
  background: #fff5f9 !important;
}

/* =========================
   Hover effect
   ========================= */

.rmv-store figure.wp-block-table tbody tr:hover td {
  background: #ffe3ef !important;
  transition: background 0.15s ease;
}

/* =========================
   余計な影・装飾の抑制
   ========================= */

.rmv-store figure.wp-block-table table {
  box-shadow: none;
}

.rmv-store a {
  color: var(--rmv-base-pink);
  font-weight: 600;
  text-decoration: none;
}
.rmv-store a.rakuten-campaign-button {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.rmv-store a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.rmv-store a.cta-button {
  color: #ffffff;
}

.highlight {
  background: #fff4a3;
  padding: 0 4px;
  font-weight: 600;
}
.emphasis,
strong {
  font-weight: 700;
  color: var(--rmv-base-pink);
}

.keyword {
  padding: 2px 10px;
  border-radius: 999px;
  background: #e3f2fd;
  border: 1px solid #90caf9;
  font-size: 0.85rem;
  color: #1565c0;
  font-weight: 600;
}

.box-column,
.box-tips,
.box-memo,
.box-caution,
.box-warning,
.box-success {
  margin: 28px 0;
  padding: 24px 20px 20px;
  border-radius: var(--rmv-radius-md);
  position: relative;
  box-shadow: var(--rmv-shadow-sm);
  background: #fff;
}

.box-column {
  border: 2px solid #b3e5fc;
  background: #f5fbff;
}
.box-tips {
  border: 2px solid #b8f2e6;
  background: #fff5fb;
}
.box-memo {
  border: 2px solid #e0e0e0;
  background: #fafafa;
}
.box-caution {
  border: 2px solid #ffe08a;
  background: #fffbea;
}
.box-warning {
  border: 2px solid #ffb3c1;
  background: #fff0f3;
}
.box-success {
  border: 2px solid #b2f2bb;
  background: #effff3;
}

.box-column::before,
.box-tips::before,
.box-memo::before,
.box-caution::before,
.box-warning::before,
.box-success::before {
  position: absolute;
  top: -12px;
  left: 20px;
  padding: 4px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  color: #fff;
}

.box-memo::before {
  content: "📝 メモ";
  background: #757575;
}
.box-caution::before {
  content: "⚠️ 注意";
  background: #ffd166;
  color: #8d5b00;
}
.box-warning::before {
  content: "‼️ 重要";
  background: #ff4b5c;
}
.box-success::before {
  content: "✓ ポイント";
  background: #2ecc71;
}

.toc-wrap {
  margin: 32px 0 40px;
  padding: 28px 24px;
  border-radius: var(--rmv-radius-lg);
  background: var(--rmv-base-pink-light);
  border: 2px solid var(--rmv-base-pink-lighter);
  box-shadow: var(--rmv-shadow-md);
}

.toc-title {
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--rmv-base-pink);
}

.intro-text {
  margin-bottom: 18px;
}
.section-intro {
  font-weight: 600;
  color: var(--rmv-text-main);
}

@media (max-width: 767px) {
  /* メインエリア：余白を減らして横幅を最大限使う */
  .rmv-store {
    padding: 16px 12px 48px;
    font-size: 15px;
  }

  /* 見出し全体の余白を詰める */
  .rmv-store h1,
  .rmv-store h2,
  .rmv-store h3,
  .rmv-store h4 {
    margin: 0px 0 6px;
  }

  /* 見出しフォントサイズ調整 */
  .rmv-store h1 {
    font-size: 1.2rem;
  }

  .rmv-store h2 {
    font-size: 1.1rem;
    padding: 12px 16px 12px 22px !important;
    margin-top: 10px;
  }

  .rmv-store h2::before {
    left: 10px;
    width: 4px;
  }
  .rmv-store h2::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 5px;
    height: 50%;
    background: #fff;
    border-radius: 999px;
    transform: translateY(-50%);
    opacity: 0.8;
  }

  .rmv-store h3 {
    font-size: 1.1rem;
    padding-left: 16px;
  }

  .rmv-store h3::before {
    width: 5px;
    height: 20px;
  }

  .rmv-store h4 {
    font-size: 1rem;
    padding-left: 10px;
  }

  /* リスト全体のインデントを縮める */
  .rmv-store ul,
  .rmv-store ol {
    margin: 12px 0 20px 0em;
  }

  .rmv-store ul li {
    padding-left: 1.2em;
  }

  .rmv-store ul li::before {
    font-size: 0.55rem;
    top: 0.25em;
  }

  .rmv-store ol > li {
    padding-left: 1.6em;
  }

  .rmv-store ol > li::before {
    width: 1.3em;
    height: 1.3em;
    font-size: 0.75rem;
  }

  /* ボックス系：左右余白を少し詰める */
  .box-column,
  .box-tips,
  .box-memo,
  .box-caution,
  .box-warning,
  .box-success {
    padding: 20px 16px 16px;
  }

  .box-column::before,
  .box-tips::before,
  .box-memo::before,
  .box-caution::before,
  .box-warning::before,
  .box-success::before {
    left: 16px;
  }

  /* 目次 */
  .toc-wrap {
    padding: 2px 2px;
    margin: 24px 0 32px;
  }
}

/* アイキャッチ画像を幅いっぱい・センター寄せにするスタイル */

.eye-catch-wrap {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.eye-catch {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  line-height: 0; /* 画像下の余白を削除 */
}

.eye-catch-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  object-fit: cover; /* 画像のアスペクト比を維持しながらフィット */
}

/* =========================
   Mobile optimization
   ========================= */
@media (max-width: 767px) {
  .rmv-store h2 {
    font-size: 1.1rem;
    padding: 12px 16px 12px 22px;
    margin-top: 10px;
  }
}

/* レスポンシブ対応（オプション） */
@media screen and (max-width: 768px) {
  .eye-catch-wrap {
    width: 100%;
  }
}

.toc-title::after {
  content: none;
}

a span.initial-nav-text {
  color: var(--rmv-text-secondary);
  text-decoration-line: none;
}

a span.initial-nav-icon {
  color: var(--rmv-text-secondary);
  text-decoration-line: none;
}

a.internal-link {
  color: #0066cc;
  text-decoration-line: underline;
}

.initial-nav {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border-radius: 12px;
  margin-bottom: 5px;
}

.initial-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 15px;
  columns: var(--rmv-text-secondary);
}

.initial-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  padding: 15px 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: white;
  border: 2px solid #e0e0e0;
  position: relative;
  overflow: hidden;
}

.initial-nav-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(191, 0, 0, 0.15);
  border-color: #bf0000;
  background: linear-gradient(135deg, #fff, #fff5f5);
}

.initial-nav-item.active {
  background: linear-gradient(135deg, #bf0000, #d32f2f);
  color: white;
  border-color: #bf0000;
  box-shadow: 0 6px 20px rgba(191, 0, 0, 0.3);
}

.initial-nav-icon {
  font-size: 20px;
  margin-bottom: 5px;
  display: block;
}

.initial-nav-text {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.floating-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to right, #fff5f5, #ffe9e9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
  display: none;
}

.floating-nav.show {
  transform: translateY(0);
}

.nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 12px;
  max-width: 800px;
  margin: 0 auto;
  background: transparent;
}

@media (max-width: 768px) {
  .floating-nav {
    display: block;
  }

  .nav-item {
    font-size: 11px;
    font-weight: bold;
    padding: 6px 4px;
  }

  .nav-item::before {
    height: 2px;
  }
}
/* FAQ */
.faq-list {
  background: white;
  border-radius: 4px;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  padding: 1rem;
  cursor: pointer;
  font-weight: bold;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "Q. ";
  color: #bf0000;
  font-weight: bold;
}

.faq-item[open] summary {
  background: #f8f9fa;
}

.faq-item p {
  padding: 0 1rem 1rem 1rem;
  margin: 0;
}

.rakuten-campaigns-section {
  margin: 0 0;
}

.section-heading {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #bf0000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ã‚­ãƒ£ãƒ³ãƒšãƒ¼ãƒ³ã‚«ãƒ¼ãƒ‰ */
.campaign-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.campaign-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
  transition: box-shadow 0.3s;
}

.campaign-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.campaign-card.featured {
  border-color: #bf0000;
  border-width: 2px;
  padding: 10px 10px 10px 10px;
}

.campaign-badge {
  position: absolute;
  top: -10px;
  right: 15px;
  background: #bf0000;
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: bold;
}

.campaign-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.campaign-header i {
  font-size: 1.5rem;
  color: #bf0000;
}

.campaign-header h3 {
  font-size: 1.3rem;
  margin: 0;
}

.campaign-points {
  text-align: center;
  margin: 0.5rem 0;
}

.points-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #bf0000;
}

.points-unit {
  font-size: 1rem;
  color: #666;
  margin-left: 0.3rem;
}

.campaign-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.campaign-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.campaign-features li::before {
  content: "✔︎";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
}

.show-details-btn {
  width: 100%;
  padding: 0.8rem;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.3s;
}

.show-details-btn:hover {
  background: #e9ecef;
}

.show-details-btn.active {
  background: #bf0000;
  color: white;
  border-color: #bf0000;
}

/* ã‚­ãƒ£ãƒ³ãƒšãƒ¼ãƒ³è©³ç´° */
.campaign-details {
  margin-top: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
}

.details-inner {
  padding: 2rem;
}

.detail-block {
  margin-bottom: 2rem;
}

.detail-block h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
}
