/* =====================================================
   リピスト 商品詳細デザインテンプレート ver.2.8.3 (Final Master)
   ===================================================== */
:root {
  --rp-main:           #1064e2;
  --rp-main-dark:      #0d4fab;
  --rp-light-bg:       #f8fafc; /* 上品な薄グレー */
  --rp-blue-bg:        #eff6ff; /* 上品な薄ブルー */
  --rp-border:         #e2e8f0;
  --rp-text-main:      #333333;
  --rp-text-sub:       #555555;
  --rp-accent:         #ff5252;
  --rp-warn:           #f59e0b;
}

/* 全体構造 */
.rp-detail { color: var(--rp-text-main); font-size: 14px; line-height: 1.8; max-width: 900px; margin: 0 auto; text-align: left; }
.rp-detail *, .rp-detail *::before, .rp-detail *::after { box-sizing: border-box; }

/* セクション管理 */
.rp-section { padding: 56px 24px; border-bottom: 1px solid var(--rp-border); }
.rp-bg-white { background: #ffffff; }
.rp-bg-gray  { background: var(--rp-light-bg); }
.rp-bg-blue  { background: var(--rp-blue-bg); }
.rp-section--last { border-bottom: none; padding-bottom: 80px; }

/* セクションタイトル */
.rp-section__title { font-size: 22px; font-weight: 800; color: var(--rp-main); margin: 0 0 32px 0; display: flex; align-items: center; }
.rp-section__title::after { content: ""; flex: 1; height: 1px; background: var(--rp-border); margin-left: 20px; }

/* --- [1] ヒーローエリア --- */
.rp-hero { background: linear-gradient(to bottom, var(--rp-main) 0%, var(--rp-main-dark) 100%); color: #ffffff; padding: 56px 32px; border-radius: 16px; text-align: center; margin-top: 16px; }
.rp-hero__badge { display: inline-block; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.4); color: #ffffff; font-size: 12px; font-weight: 700; padding: 4px 16px; border-radius: 99px; margin-bottom: 16px; }
.rp-hero__copy { font-size: 24px; font-weight: 800; margin-bottom: 24px; line-height: 1.4; color: #ffffff; }
.rp-hero__price-box { background: #ffffff; border-radius: 12px; padding: 28px 24px; display: flex; justify-content: center; gap: 48px; color: var(--rp-text-main); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.rp-hero__item { text-align: center; }
.rp-hero__label { font-size: 14px; color: var(--rp-text-sub); font-weight: 700; margin-bottom: 4px; }
.rp-hero__val { font-size: 32px; font-weight: 800; color: var(--rp-main); line-height: 1; }
.rp-hero__unit { font-size: 14px; color: var(--rp-text-sub); margin-left: 2px; }
.rp-hero__free { color: var(--rp-accent); font-weight: 800; margin-left: 4px; font-size: 14px; }

/* --- [2] 警告アラート --- */
.rp-alert { margin: -20px 24px 24px; background: #fff; border: 2px solid var(--rp-warn); border-radius: 12px; padding: 20px; display: flex; gap: 16px; position: relative; z-index: 10; }
.rp-alert__icon { color: var(--rp-warn); font-size: 24px; font-weight: 900; line-height: 1; flex-shrink: 0; }
.rp-alert__title { font-weight: 800; font-size: 15px; margin: 0 0 4px 0; color: var(--rp-text-main); }
.rp-alert__desc { font-size: 14px; color: var(--rp-text-sub); margin: 0; }

/* --- [3] オプション概要 --- */
.rp-overview-box { background: var(--rp-blue-bg); padding: 24px; border-radius: 12px; border: 1px solid #bfdbfe; }
.rp-overview__lead { margin: 0; font-weight: 800; color: var(--rp-main-dark); font-size: 16px; }
.rp-overview__desc { font-size: 14px; color: var(--rp-text-main); margin: 16px 0; padding: 16px; background: rgba(255, 255, 255, 0.6); border-radius: 8px; }
.rp-overview-list { list-style: none; padding: 0; margin: 16px 0 0; }
.rp-overview-list li { position: relative; padding-left: 32px; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.rp-overview-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--rp-main); font-weight: 900; font-size: 20px; }

/* --- [4] メリット：共通設定・カード型  --- */
.rp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.rp-card { 
    background: #ffffff; 
    border: 1px solid var(--rp-border); 
    border-left: 4px solid var(--rp-main); 
    padding: 24px; 
    border-radius: 16px; 
    height: 100%; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); /* FAQと同じ影に変更 */
}
.rp-card__label { color: var(--rp-main); font-weight: 900; font-size: 12px; display: block; margin-bottom: 8px; opacity: 0.7; }
.rp-card__title { font-size: 16px; font-weight: 800; margin: 0 0 10px; color: var(--rp-text-main); }
.rp-card__text { font-size: 14px; color: var(--rp-text-sub); margin: 0; }
.rp-card__image { margin-bottom: 16px; border-radius: 8px; overflow: hidden; border: 1px solid var(--rp-border); background: var(--rp-light-bg); }
.rp-card__image img { display: block; width: 100%; height: auto; max-height: 180px; object-fit: cover; transition: transform 0.3s ease; }

/* --- メリット：ジグザグ型 --- */
.rp-zigzag { display: flex; flex-direction: column; gap: 56px; }
.rp-zigzag-row { display: flex; align-items: center; gap: 40px; }
.rp-zigzag-row--reverse { flex-direction: row-reverse; }
.rp-zigzag-img { flex: 1; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.rp-zigzag-img img { display: block; width: 100%; height: auto; transition: transform 0.3s ease; }
.rp-zigzag-content { flex: 1; }
.rp-zigzag-label { display: inline-block; color: var(--rp-main); font-weight: 900; font-size: 12px; margin-bottom: 12px; border: 1px solid var(--rp-main); padding: 4px 12px; border-radius: 20px; }
.rp-zigzag-title { font-size: 20px; font-weight: 800; margin: 0 0 16px; color: var(--rp-text-main); line-height: 1.4; }
.rp-zigzag-text { font-size: 14px; color: var(--rp-text-sub); margin: 0; }

/* --- メリット：フルサイズ型 --- */
.rp-full-feature { margin-bottom: 56px; }
.rp-full-img { width: 100%; border-radius: 12px; overflow: hidden; margin-bottom: 24px; border: 1px solid var(--rp-border); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.rp-full-img img { display: block; width: 100%; height: auto; }
.rp-full-content { padding: 0 16px; }
.rp-full-label { display: inline-block; color: #ffffff; background: var(--rp-main); font-weight: 900; font-size: 12px; margin-bottom: 12px; padding: 4px 12px; border-radius: 4px; }
.rp-full-title { font-size: 20px; font-weight: 800; margin: 0 0 16px; color: var(--rp-text-main); }

/* --- [5] 導入の流れ --- */
.rp-step-item { display: flex; gap: 20px; margin-bottom: 24px; position: relative; }
.rp-step-item:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 32px; bottom: -24px; width: 2px; background: var(--rp-border); }
.rp-step-item__num { width: 32px; height: 32px; background: var(--rp-main); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 800; z-index: 2; }
.rp-step-item__tag { font-size: 12px; padding: 2px 8px; border-radius: 4px; font-weight: 700; margin-bottom: 4px; display: inline-block; }
.rp-step-item__tag--client { background: #fee2e2; color: #ef4444; }
.rp-step-item__tag--rpst { background: #dcfce7; color: #16a34a; }
.rp-step-item__title { font-weight: 800; font-size: 15px; margin: 0; }
.rp-step-item__desc { font-size: 14px; color: var(--rp-text-sub); margin: 0; }

/* --- [6] FAQ --- */
.rp-faq-item { margin-bottom: 24px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border-radius: 8px; overflow: hidden; }
.rp-faq-q { background: var(--rp-main); color: #ffffff; padding: 16px 20px; font-weight: 800; display: flex; gap: 12px; font-size: 14px; align-items: center; }
.rp-faq-q span:first-child { background: rgba(255,255,255,0.2); width: 24px; height: 24px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.rp-faq-a { padding: 20px; color: var(--rp-text-main); display: flex; gap: 12px; background: #ffffff; border: 1px solid var(--rp-border); border-top: none; font-size: 14px; align-items: flex-start; }
.rp-faq-a span:first-child { color: var(--rp-main); font-weight: 900; font-size: 16px; flex-shrink: 0; width: 24px; text-align: center; }

/* --- [7] 注意事項 --- */
.rp-caution-box { background: #f1f5f9; border-left: 6px solid var(--rp-main); border-radius: 8px; padding: 32px; }
.rp-caution-title { font-weight: 800; margin-bottom: 20px; color: var(--rp-main-dark); font-size: 16px; display: flex; align-items: center; gap: 10px; }
.rp-caution-title::before { content: "i"; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: var(--rp-main); color: #fff; border-radius: 50%; font-size: 13px; font-family: serif; font-style: italic; }
.rp-caution-list { list-style: none; padding: 0; margin: 0; }
.rp-caution-list li { position: relative; padding-left: 1.5em; font-size: 14px; color: var(--rp-text-main); margin-bottom: 12px; font-weight: 500; }
.rp-caution-list li::before { content: "※"; position: absolute; left: 0; color: var(--rp-main); font-weight: 800; }

@media (max-width: 600px) {
  .rp-hero__price-box { flex-direction: column; gap: 24px; }
  .rp-section { padding: 40px 20px; }
  .rp-section__title { font-size: 18px; }
  .rp-zigzag-row, .rp-zigzag-row--reverse { flex-direction: column; gap: 24px; }
}

/* =====================================================
   --- [8] プラン選択・購入エリア (追加分) ---
   ===================================================== */
.rp-select-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 16px;
}

/* プルダウン外枠（下矢印のカスタム用など） */
.rp-dropdown-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
}

/* プルダウンの見た目 */
.rp-dropdown {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--rp-text-main);
  background-color: #ffffff;
  border: 2px solid var(--rp-border);
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none; /* デフォルトの矢印をリセット */
  -webkit-appearance: none;
}

/* プルダウンにフォーカスしたとき */
.rp-dropdown:focus {
  border-color: var(--rp-main);
  box-shadow: 0 0 0 3px rgba(16, 100, 226, 0.1);
}

/* 独自の矢印アイコンを表示 */
.rp-dropdown-wrapper::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--rp-text-sub);
  pointer-events: none;
}

/* 購入ボタンエリア */
.rp-action-area {
  text-align: center;
}

/* メイン購入ボタン（ヒーローエリアのグラデーションを踏襲） */
.rp-btn-primary {
  display: block;
  width: 100%;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  background: var(--color__orange);;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 6px 16px rgba(16, 100, 226, 0.25);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

/* ホバー時のインタラクション（少し浮き上がらせる） */
.rp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 100, 226, 0.35);
  opacity: 0.95;
}

.rp-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(16, 100, 226, 0.25);
}

/* レスポンシブ調整 */
@media (max-width: 600px) {
  .rp-select-box {
    padding: 24px 16px;
  }
  .rp-btn-primary {
    font-size: 16px;
    padding: 14px 20px;
  }
}