/* =========================================================
   本文エリア（.editor_wrap）の装飾  ※ assets/js/rich-content.js が .rc を付与したときだけ効く
   配色はサイト既存のネイビー / 水色 / ゴールドに合わせる
   ========================================================= */
.rc {
  --rc-navy: #1f3b6a;
  --rc-navy2: #1f528f;
  --rc-sky: #2db0e7;
  --rc-gold: #f7ac00;
  --rc-ink: #333;
  --rc-bg: #f5f8fc;
  --rc-grad: linear-gradient(120deg, #1f3b6a 0%, #1f528f 45%, #2db0e7 100%);
  --rc-grad-gold: linear-gradient(120deg, #f7ac00, #ffd36b);
  margin-top: 48px;
  padding: 0 !important;
  /* single-product.php のオーロラ背景（.editor_wrap）は装飾と重なるので打ち消す */
  background: none !important;
  animation: none !important;
}

.rc .rc-root {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.rc .rc-icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* 見出し・本文の共通 */
.rc h3 {
  margin: 0 0 16px !important;
  padding: 0 !important;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 900;
  color: var(--rc-navy);
  scroll-margin-top: 100px;
}

.rc p {
  line-height: 2;
  margin: 0 0 14px;
  color: var(--rc-ink);
}

.rc p:last-child {
  margin-bottom: 0;
}

/* 「高価買取」マーカー（表示されたら左から引かれる） */
.rc .rc-mark {
  font-weight: 700;
  background-image: linear-gradient(transparent 60%, rgba(247, 172, 0, .45) 60%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 1.2s cubic-bezier(.2, .7, .2, 1) .3s;
}

.rc .is-in .rc-mark {
  background-size: 100% 100%;
}

.rc .rc-quote {
  display: inline-block;
  margin: 2px 2px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8f4fc;
  color: var(--rc-navy2);
  font-weight: 700;
  line-height: 1.8;
}

/* ---------- リード ---------- */
.rc .rc-lead {
  position: relative;
  overflow: hidden;
  padding: 56px 40px 36px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 176, 231, .18), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(247, 172, 0, .14), transparent 40%),
    linear-gradient(180deg, #fff 0%, var(--rc-bg) 100%);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 12px 32px rgba(31, 59, 106, .10);
}

.rc .rc-lead::before {
  /* グラデーションの枠線 */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(120deg, #1f3b6a, #2db0e7, #f7ac00, #1f3b6a);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rc-border 8s linear infinite;
  pointer-events: none;
}

.rc .rc-pleats {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  overflow: visible;
}

.rc .rc-wave {
  fill: none;
  stroke-width: 1.5;
  animation: rc-wave 9s linear infinite;
}

.rc .rc-wave--1 { stroke: rgba(31, 82, 143, .35); }
.rc .rc-wave--2 { stroke: rgba(45, 176, 231, .35); animation-duration: 12s; animation-direction: reverse; }
.rc .rc-wave--3 { stroke: rgba(247, 172, 0, .35); animation-duration: 15s; }

.rc .rc-lead_badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px !important;
  padding: 4px 14px 4px 8px;
  border-radius: 999px;
  background: var(--rc-grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.6;
}

.rc .rc-lead_badge .rc-icon {
  width: 20px;
  height: 20px;
  color: var(--rc-gold);
}

.rc .rc-lead h3 {
  font-size: 26px;
  padding-bottom: 14px !important;
  background: linear-gradient(90deg, var(--rc-navy), var(--rc-sky)) left bottom / 0% 3px no-repeat;
  transition: background-size 1s ease .2s;
}

.rc .rc-lead.is-in h3 {
  background-size: 120px 3px;
}

/* 特長バッジ（flex） */
.rc .rc-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.rc .rc-feature {
  flex: 1 1 180px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e3ebf5;
  box-shadow: 0 4px 12px rgba(31, 59, 106, .06);
  color: var(--rc-navy);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: calc(var(--d, 0ms) + 400ms);
}

.rc .is-in .rc-feature {
  opacity: 1;
  transform: none;
}

.rc .rc-feature_icon {
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 50%;
  background: var(--rc-grad);
  color: #fff;
}

/* ---------- 目次テーブル ---------- */
.rc .rc-toc_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dbe5f1;
  background: #fff;
}

.rc .rc-toc_caption {
  caption-side: top;
  padding: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
  color: var(--rc-navy);
  text-align: left;
}

.rc .rc-toc_icon {
  width: 26px;
  height: 26px;
  vertical-align: middle;
  margin-right: 8px;
  color: var(--rc-sky);
}

.rc .rc-toc_table th,
.rc .rc-toc_table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e7eef7;
  vertical-align: middle;
  text-align: left;
}

.rc .rc-toc_table tr:last-child th,
.rc .rc-toc_table tr:last-child td {
  border-bottom: 0;
}

.rc .rc-toc_table th {
  width: 120px;
  white-space: nowrap;
  background: var(--rc-grad);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  border-bottom-color: rgba(255, 255, 255, .2);
}

.rc .rc-toc_table tr:nth-child(even) td {
  background: var(--rc-bg);
}

.rc .rc-toc_table a {
  display: block;
  color: var(--rc-navy);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.6;
  position: relative;
  padding-right: 24px;
}

.rc .rc-toc_table a::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--rc-sky);
  border-bottom: 2px solid var(--rc-sky);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s;
}

.rc .rc-toc_table a:hover::after {
  transform: translateY(-30%) rotate(45deg);
}

/* ---------- カード（グリッド） ---------- */
.rc .rc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.rc .rc-grid--single {
  grid-template-columns: 1fr;
}

.rc .rc-card {
  position: relative;
  padding: 28px 28px 24px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e3ebf5;
  box-shadow: 0 8px 24px rgba(31, 59, 106, .08);
  transition: transform .3s ease, box-shadow .3s ease;
  overflow: hidden;
}

.rc .rc-card::before {
  /* 上辺のグラデーションボーダー */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--rc-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1) .2s;
}

.rc .rc-card.is-in::before {
  transform: scaleX(1);
}

.rc .rc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(31, 59, 106, .14);
}

.rc .rc-card_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rc .rc-card_num {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--rc-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .9;
}

.rc .rc-card_icon {
  width: 52px;
  height: 52px;
  padding: 10px;
  border-radius: 50%;
  background: #eef5fc;
  color: var(--rc-navy2);
}

.rc .rc-card h3 {
  font-size: 19px;
  padding-left: 14px !important;
  border-left: 4px solid var(--rc-gold);
}

/* ---------- 注記ボックス ---------- */
.rc .rc-note {
  grid-column: 1 / -1;
  position: relative;
  padding: 24px 28px;
  border-radius: 14px;
  border: 2px dashed rgba(45, 176, 231, .55);
  background:
    repeating-linear-gradient(135deg, rgba(45, 176, 231, .05) 0 12px, transparent 12px 24px),
    #fbfdff;
}

.rc .rc-note_head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px !important;
  font-weight: 900;
  color: var(--rc-navy2);
  font-size: 17px;
}

.rc .rc-note_icon {
  width: 30px;
  height: 30px;
  color: var(--rc-gold);
}

.rc .rc-note a {
  color: var(--rc-navy2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 列挙チップ（flex） ---------- */
.rc .rc-chips {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #d5e1ee;
}

.rc .rc-chips_row + .rc-chips_row {
  margin-top: 14px;
}

.rc .rc-chips_label {
  margin: 0 0 8px !important;
  font-size: 13px;
  font-weight: 700;
  color: #6b7c93;
  letter-spacing: .05em;
  line-height: 1.6;
}

.rc .rc-chips_list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rc .rc-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #cfe0f2;
  color: var(--rc-navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .4s ease, transform .4s ease, background .3s, color .3s;
  transition-delay: calc(var(--d, 0ms) + 300ms);
}

.rc .is-in .rc-chip {
  opacity: 1;
  transform: none;
}

.rc .rc-chip:hover {
  background: var(--rc-navy2);
  color: #fff;
}

.rc .rc-chip_icon {
  width: 16px;
  height: 16px;
  color: #23b195;
  stroke-width: 2.6;
}

/* ---------- 表示アニメーション ---------- */
.rc .rc-anim {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0ms);
}

.rc .rc-anim.is-in {
  opacity: 1;
  transform: none;
}

/* アイコンの線を描く */
.rc .rc-anim .rc-icon path,
.rc .rc-anim .rc-icon circle,
.rc .rc-anim .rc-icon rect {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  transition: stroke-dashoffset 1.6s ease .3s;
}

.rc .rc-anim.is-in .rc-icon path,
.rc .rc-anim.is-in .rc-icon circle,
.rc .rc-anim.is-in .rc-icon rect {
  stroke-dashoffset: 0;
}

.rc .rc-twinkle {
  animation: rc-twinkle 2.4s ease-in-out infinite;
}

@keyframes rc-twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: .2; }
}

@keyframes rc-wave {
  from { transform: translateX(0); }
  to { transform: translateX(-150px); }
}

@keyframes rc-border {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .rc *,
  .rc *::before {
    animation: none !important;
    transition: none !important;
  }

  .rc .rc-anim,
  .rc .rc-feature,
  .rc .rc-chip {
    opacity: 1 !important;
    transform: none !important;
  }

  .rc .rc-icon path,
  .rc .rc-icon circle,
  .rc .rc-icon rect {
    stroke-dashoffset: 0 !important;
  }

  .rc .rc-mark { background-size: 100% 100% !important; }
  .rc .rc-card::before { transform: none !important; }
}

/* ---------- スマホ ---------- */
@media only screen and (max-width: 960px) {
  .rc {
    margin-top: 32px;
  }

  .rc .rc-root {
    gap: 24px;
  }

  .rc .rc-lead {
    padding: 44px 20px 24px;
  }

  .rc .rc-lead h3 {
    font-size: 20px;
  }

  .rc h3 {
    font-size: 18px;
  }

  .rc .rc-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rc .rc-card {
    padding: 22px 18px 18px;
  }

  .rc .rc-card_num {
    font-size: 32px;
  }

  .rc .rc-card_icon {
    width: 44px;
    height: 44px;
    padding: 8px;
  }

  .rc .rc-note {
    padding: 20px 18px;
  }

  .rc .rc-feature {
    flex: 1 1 calc(50% - 6px);
    padding: 10px 12px;
    font-size: 13px;
  }

  .rc .rc-feature_icon {
    width: 30px;
    height: 30px;
    padding: 5px;
  }

  .rc .rc-toc_table th {
    width: auto;
    padding: 12px 10px;
    font-size: 11px;
  }

  .rc .rc-toc_table td {
    padding: 12px 12px;
    font-size: 14px;
  }
}

/* =========================================================
   商品ページ：ブロックエディタ形式の本文（.rc-gb）
   ========================================================= */
.rc.rc-gb {
  margin-top: 0;
  padding: 16px !important;
}

.rc-gb > * + * {
  margin-top: 20px;
}

.rc-gb .rc-gb_lead {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 28px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 176, 231, .16), transparent 50%),
    linear-gradient(180deg, #fff, var(--rc-bg));
  border: 1px solid #dbe5f1;
  border-left: 6px solid var(--rc-gold);
  box-shadow: 0 8px 24px rgba(31, 59, 106, .08);
}

.rc-gb .rc-gb_lead_icon {
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 50%;
  background: var(--rc-grad);
  color: #fff;
}

.rc-gb .rc-gb_lead p {
  margin: 0;
  font-size: 16px;
}

.rc-gb .rc-gb_h2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 48px 0 20px !important;
  padding: 18px 20px !important;
  border-radius: 12px;
  background: var(--rc-grad);
  background-size: 200% 100%;
  color: #fff !important;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.5;
  box-shadow: 0 10px 24px rgba(31, 59, 106, .18);
  animation: rc-shine 10s ease-in-out infinite;
}

.rc-gb .rc-gb_h2::after {
  content: "";
  position: absolute;
  left: 32px;
  bottom: -9px;
  border: 9px solid transparent;
  border-bottom: 0;
  border-top-color: #1f528f;
}

.rc-gb .rc-gb_h2_num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  border: 2px solid rgba(255, 255, 255, .6);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  font-weight: 900;
}

.rc-gb .rc-gb_h2_icon {
  margin-left: auto;
  width: 36px;
  height: 36px;
  color: var(--rc-gold);
}

.rc-gb .rc-gb_h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 14px !important;
  padding: 0 0 10px !important;
  font-size: 19px;
  color: var(--rc-navy);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--rc-navy2), var(--rc-sky) 40%, transparent) 1;
}

.rc-gb .rc-gb_h3::before {
  content: "";
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 3px;
  background: var(--rc-grad-gold);
  transform: rotate(45deg);
}

/* 表 */
.rc-gb .rc-gb_table {
  margin: 0;
  overflow-x: auto;
}

.rc-gb .rc-gb_table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dbe5f1;
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 59, 106, .06);
}

.rc-gb .rc-gb_table th,
.rc-gb .rc-gb_table td {
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid #e7eef7;
  text-align: left;
  line-height: 1.6;
}

.rc-gb .rc-gb_table thead th {
  background: var(--rc-grad);
  color: #fff;
  font-weight: 700;
  letter-spacing: .05em;
}

.rc-gb .rc-gb_table tbody tr:nth-child(even) td {
  background: var(--rc-bg);
}

.rc-gb .rc-gb_table tbody tr:last-child td {
  border-bottom: 0;
}

.rc-gb .rc-gb_table tbody tr {
  transition: background .3s;
}

.rc-gb .rc-gb_table tbody tr:hover td {
  background: #e8f4fc;
}

.rc-gb .rc-gb_table td:first-child {
  font-weight: 700;
  color: var(--rc-navy);
}

.rc-gb .rc-gb_price {
  font-weight: 900;
  font-size: 17px;
  white-space: nowrap;
  color: #b87800;
}

.rc-gb .rc-gb_table tbody tr:first-child .rc-gb_price::after {
  content: "TOP";
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--rc-grad-gold);
  color: #fff;
  font-size: 11px;
  letter-spacing: .1em;
  vertical-align: middle;
}

/* 画像＋文のカラム → カード */
.rc-gb .rc-gb_cols {
  align-items: center !important;
  gap: 24px !important;
  margin-bottom: 0 !important;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e3ebf5;
  box-shadow: 0 8px 24px rgba(31, 59, 106, .07);
  transition: transform .3s ease, box-shadow .3s ease;
}

.rc-gb .rc-gb_cols:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(31, 59, 106, .12);
}

.rc-gb .rc-gb_cols img {
  padding: 0 !important;
  border-radius: 10px;
}

.rc-gb .rc-gb_cols figure {
  margin: 0;
}

.rc-gb pre.wp-block-preformatted {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 15px;
  line-height: 2;
  color: var(--rc-ink);
}

/* 箇条書き → チェックリスト */
.rc-gb .rc-gb_list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rc-gb .rc-gb_list li {
  position: relative;
  padding: 12px 14px 12px 42px;
  border-radius: 10px;
  background: var(--rc-bg);
  border: 1px solid #e3ebf5;
  line-height: 1.7;
}

.rc-gb .rc-gb_list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #23b195 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

@keyframes rc-shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media only screen and (max-width: 960px) {
  .rc.rc-gb {
    padding: 8px !important;
  }

  .rc-gb .rc-gb_lead {
    padding: 18px 16px;
    gap: 12px;
  }

  .rc-gb .rc-gb_lead_icon {
    width: 36px;
    height: 36px;
    padding: 6px;
  }

  .rc-gb .rc-gb_h2 {
    margin: 36px 0 16px !important;
    padding: 14px 14px !important;
    font-size: 17px;
    gap: 10px;
  }

  .rc-gb .rc-gb_h2_num {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .rc-gb .rc-gb_h2_icon {
    width: 28px;
    height: 28px;
  }

  .rc-gb .rc-gb_table th,
  .rc-gb .rc-gb_table td {
    padding: 12px 10px;
    font-size: 14px;
  }

  .rc-gb .rc-gb_price {
    font-size: 15px;
  }

  .rc-gb .rc-gb_cols {
    padding: 14px;
  }
}

.editor_wrap.rc-empty {
  display: none !important;
}
