.rmv-article {
  --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-article {
    padding: 48px 32px 80px;
    font-size: 17px;
  }
}

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

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

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

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

.rmv-article 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-article 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-article h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 24px;
  background: var(--rmv-base-pink);
  border-radius: 3px;
}

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

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

.rmv-article ul,
.rmv-article ol {
  margin: 16px 0 24px 0em;
}

.rmv-article ul li,
.rmv-article ol li {
  margin: 10px 0;
  line-height: 1.8;
  color: var(--rmv-text-secondary);
}

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

.rmv-article ul li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0.2em;
  font-size: 0.6rem;
  color: var(--rmv-base-pink);
}

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

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

.rmv-article 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;
}

.rmv-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
  border-radius: var(--rmv-radius-md);
  overflow: hidden;
  box-shadow: var(--rmv-shadow-sm);
}

.rmv-article th,
.rmv-article td {
  border: 1px solid var(--rmv-border-color);
  padding: 14px 12px;
}

.rmv-article thead th {
  background: var(--rmv-base-pink-lighter);
  font-weight: 700;
}

.rmv-article tbody tr:nth-child(even) {
  background: #fafbfc;
}

.rmv-article tbody tr:hover {
  background: var(--rmv-base-pink-light);
}

.rmv-article a {
  color: var(--rmv-base-pink);
  font-weight: 600;
  text-decoration: none;
}

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

.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: #f3fff9;
}
.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-column::before {
  content: "💡 コラム";
  background: #4facfe;
}
.box-tips::before {
  content: "✨ Tips";
  background: #00b894;
}
.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);
}

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

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

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

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

  .rmv-article h2::before {
    left: 10px;
    width: 4px;
  }

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

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

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

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

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

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

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

  .rmv-article 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; /* 画像のアスペクト比を維持しながらフィット */
}

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

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

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

.rmv-embedded-stores {
  margin: 32px 0;
  font-family: inherit;
}

.store-list-header {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--rmv-base-pink-light, #fff5fb);
  border-radius: var(--rmv-radius-md, 12px);
  border: 2px solid var(--rmv-base-pink-lighter, #ffe6f5);
}

.store-list-header h2 {
  margin: 0 0 8px !important;
  padding: 0 !important;
  background: none !important;
  color: var(--rmv-base-pink, #ff008c) !important;
  font-size: 1.4rem !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.store-list-header h2::before {
  display: none !important;
}

.store-header-title {
  margin: 0 0 8px;
  padding: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--rmv-base-pink, #ff008c);
}

.store-count-summary {
  margin: 0 !important;
  font-size: 0.95rem;
  color: var(--rmv-text-secondary, #5a6c7d);
}

.store-count-summary strong {
  color: var(--rmv-base-pink, #ff008c);
  font-size: 1.2em;
}

/* 系列セクション */
.embedded-chain-section {
  margin: 40px 0;
  padding: 24px;
  background: #fff;
  border-radius: var(--rmv-radius-lg, 16px);
  box-shadow: var(--rmv-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.08));
  border: 1px solid var(--rmv-border-color, #e8ecef);
}

.embedded-chain-title {
  margin: 0 0 20px;
  padding: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rmv-text-main, #2c3e50);
  border-bottom: 3px solid var(--rmv-base-pink-lighter, #ffe6f5);
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-count-badge {
  margin-left: auto;
  padding: 4px 12px;
  background: var(--rmv-base-pink, #ff008c);
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* 店舗リスト */
.embedded-store-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  gap: 16px;
}

.embedded-store-item {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.embedded-store-item::before {
  display: none !important;
}

/* 店舗カード */
.store-card {
  background: var(--rmv-bg-gray, #f8f9fa);
  border-radius: var(--rmv-radius-md, 12px);
  padding: 20px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.store-card:hover {
  box-shadow: var(--rmv-shadow-md, 0 4px 16px rgba(0, 0, 0, 0.1));
  border-color: var(--rmv-base-pink-lighter, #ffe6f5);
  transform: translateY(-2px);
}

.store-card-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #fff;
}

.store-name {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--rmv-text-main, #2c3e50) !important;
  border: none !important;
}

.store-name::before {
  display: none !important;
}

/* 情報行 */
.store-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.store-info-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  background: #fff;
  border-radius: var(--rmv-radius-sm, 8px);
}

.info-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.info-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-label {
  font-weight: 600;
  color: var(--rmv-text-secondary, #5a6c7d);
  font-size: 0.85rem;
}

.postal-code {
  color: var(--rmv-text-secondary, #5a6c7d);
  font-size: 0.9rem;
}

.address-text {
  color: var(--rmv-text-main, #2c3e50);
}

.map-link,
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--rmv-base-pink, #ff008c) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  margin-top: 4px;
}

.map-link:hover,
.phone-link:hover {
  opacity: 0.7;
  text-decoration: underline !important;
}

/* フッターボタン */
.store-card-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.store-detail-button {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: var(--rmv-base-pink, #ff008c);
  color: #fff !important;
  text-align: center;
  border-radius: var(--rmv-radius-sm, 8px);
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.store-detail-button:hover {
  background: #e6007a;
  transform: translateY(-1px);
  box-shadow: var(--rmv-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.08));
  opacity: 1 !important;
  text-decoration: none !important;
}

/* フッターリンク */
.store-list-footer {
  margin-top: 32px;
  padding: 20px;
  text-align: center;
  background: var(--rmv-bg-gray, #f8f9fa);
  border-radius: var(--rmv-radius-md, 12px);
}

.all-stores-link {
  margin: 0 !important;
}

.all-stores-link a {
  color: var(--rmv-base-pink, #ff008c) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  font-size: 1rem;
}

.all-stores-link a:hover {
  text-decoration: underline !important;
  opacity: 0.8;
}

/* モバイル最適化 */
@media (max-width: 767px) {
  .rmv-embedded-stores {
    margin: 24px 0;
  }

  .store-section-title {
    margin: 32px 0 16px;
  }

  .store-section-title-h2 {
    font-size: 1.2rem;
    padding: 12px 16px 12px 22px;
  }

  .store-section-title-h2::before {
    left: 10px;
    width: 4px;
  }

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

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

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

  .store-section-title-div {
    font-size: 1.2rem;
  }

  .store-header-title {
    font-size: 1.2rem;
  }

  .store-list-header {
    padding: 16px;
  }

  .embedded-chain-section {
    padding: 16px;
    margin: 24px 0;
  }

  .embedded-chain-title {
    font-size: 1.05rem;
    flex-wrap: wrap;
  }

  .store-count-badge {
    font-size: 0.8rem;
  }

  .store-card {
    padding: 16px;
  }

  .store-name {
    font-size: 1rem !important;
  }

  .info-content {
    font-size: 0.9rem;
  }

  .store-detail-button {
    padding: 10px 16px;
    font-size: 0.95rem;
  }
}

/* タブレット */
@media (min-width: 768px) {
  .embedded-store-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================================================
   アコーディオン機能
   ================================================================ */
/* 親要素を問わずセレクタを指定 */
.accordion-header {
  background: #f8f9fa !important;
  border: 1px solid #e0e0e0 !important;
  padding: 1rem 1.5rem !important;
  cursor: pointer;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--rmv-text-main, #2c3e50) !important;
}

.accordion-header:hover {
  background: #efefef !important;
  border-color: var(--rmv-base-pink, #ff008c) !important;
}

.accordion-header.active {
  background: linear-gradient(135deg, #fff0f7 0%, #fffbf5 100%) !important;
  border-color: var(--rmv-base-pink, #ff008c) !important;
}

.accordion-header::after {
  content: "▼";
  display: inline-block;
  transition: transform 0.3s ease;
  color: var(--rmv-base-pink, #ff008c);
  font-size: 0.8rem;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.accordion-header.active::after {
  transform: rotate(-180deg);
}

/* デフォルト状態：隠す */
.accordion-content {
  display: none !important;
  overflow: hidden !important;
  transition: all 0.3s ease;
  visibility: hidden !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* アクティブ時：表示する */
.accordion-content.active {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* モバイル対応 */
@media (max-width: 767px) {
  .accordion-header {
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
  }

  .accordion-header::after {
    font-size: 0.7rem !important;
  }
}

.rakuten-campaign-button {
  display: block;
  width: 90%;
  margin: 0 auto 1.5rem;
  background: #ff008c;
  color: #fff !important;
  text-align: center;
  padding: 0.75rem 0;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: bold;
  animation: shake 2s infinite;
}

.rakuten-campaign-button:hover {
  transform: scale(1.03);
  color: #fff;
}

.campaign-cta-box {
  background: #fff5f9;
  border: 2px dashed #ff008c;
  border-radius: 16px;
  padding: 0.5rem;
  margin: 0rem 0;
  text-align: center;
}

.shop_cp_text {
  color: #d4006a;
  font-weight: 600;
}

.small-note {
  font-size: 0.9rem;
}
