/* =========================================================================
 * roadmap-lp.css — /roadmap/shinnyu-shain/ Instagram広告LP (issue #255)
 * .rmlp ラッパ内でトークン直宣言（roadmap.css と同じ方式）。body の zone-free
 * teal を上書きし、青(#2563EB)+ゴールド(#FACC15)のセールスLPトーンにする。
 * モバイル広告流入が主 → モバイル基準、>768px で段組み復元。
 * ========================================================================= */

.rmlp {
  --blue: #2563EB;
  --blue-d: #1E40AF;
  --blue-dd: #14306b;
  --gold: #FACC15;
  --orange: #F97316;
  --ink: #0F172A;
  --muted: #475569;
  --line: #E2E8F0;
  --tint: #F1F5FB;
  --surface: #FFFFFF;
  --radius: 16px;

  background: #F8FAFC;
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}
.rmlp *, .rmlp *::before, .rmlp *::after { box-sizing: border-box; }
.rmlp img { max-width: 100%; height: auto; display: block; }
.rmlp b { font-weight: 800; }
.rmlp em { font-style: normal; color: var(--blue); font-weight: 800; }

.rmlp-wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.rmlp-wrap--narrow { max-width: 720px; }

.rmlp-ic { width: 100%; height: 100%; }

.rmlp-h2 {
  text-align: center;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 800;
  margin: 0 0 28px;
  position: relative;
  padding-bottom: 12px;
}
.rmlp-h2 small { font-size: .7em; font-weight: 700; color: var(--muted); }
.rmlp-h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 56px; height: 4px; border-radius: 2px; background: var(--gold);
}

/* --- CTAボタン --- */
.rmlp-btn {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  width: 100%; max-width: 460px; padding: 18px 56px 18px 28px;
  font-size: clamp(17px, 4.5vw, 21px); font-weight: 800; text-decoration: none;
  border-radius: 999px; color: #fff;
  background: linear-gradient(180deg, #FB923C, var(--orange));
  box-shadow: 0 10px 22px rgba(249, 115, 22, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.rmlp-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(249, 115, 22, .45); color: #fff; }
.rmlp-btn__arrow {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--orange);
  display: grid; place-items: center;
}
.rmlp-btn__arrow .rmlp-ic { width: 18px; height: 18px; flex: none; }

/* --- 0. リボン --- */
.rmlp-ribbon {
  margin: 0; padding: 9px 0; text-align: left;
  font-size: 14px; font-weight: 700; color: #fff; background: var(--blue-d);
}
.rmlp-ribbon > span { display: block; max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* --- 1. ヒーロー（背景画像 + 左にコピーをオーバーレイ） --- */
.rmlp-hero {
  position: relative;
  /* background-image は partial 側で inline 指定（テーマURIが動的なため） */
  background-color: #EAF1FE;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 82% 18%; /* 右の人物（頭を入れる）＋左に余白。寄りすぎ回避は高さで調整 */
  padding: 26px 0 34px;
  overflow: hidden;
}
/* 左側のコピーを読みやすくする白スクリム（画像左は元々ほぼ白なので軽め） */
.rmlp-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255,255,255,.94) 0%, rgba(255,255,255,.86) 34%,
    rgba(255,255,255,.45) 56%, rgba(255,255,255,0) 74%);
}
.rmlp-hero__inner {
  position: relative; /* スクリムより前面 */
  max-width: 960px; margin: 0 auto; padding: 0 16px;
}
.rmlp-hero__copy { max-width: 620px; }
.rmlp-hero__lead { margin: 0 0 12px; font-size: clamp(15px, 4vw, 18px); font-weight: 700; line-height: 1.55; color: var(--ink); }
.rmlp-hero__lead b { color: var(--ink); font-size: 1.24em; font-weight: 800; }
.rmlp-hero__title { margin: 0 0 20px; font-weight: 900; line-height: 1.18; letter-spacing: .01em; }
.rmlp-hero__title span { display: block; color: var(--ink); }
.rmlp-hero__t1 { font-size: clamp(38px, 8.6vw, 56px); }
.rmlp-hero__t2 { font-size: clamp(27px, 6.2vw, 42px); white-space: nowrap; }
.rmlp-hero__t3 { font-size: clamp(24px, 5.4vw, 36px); }
/* 4週間 は黒、仕事ができる新人(em) のみ青 — ラフ準拠 */
.rmlp-hero__features { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rmlp-feature {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px;
  box-shadow: 0 2px 8px rgba(15,23,42,.06);
}
.rmlp-feature__icon { flex: none; width: 28px; height: 28px; color: var(--blue); }
.rmlp-feature__text { font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.rmlp-feature__text b { display: block; font-size: 13px; color: var(--ink); margin-bottom: 1px; }

.rmlp-hero__cta { display: flex; flex-direction: column; align-items: center; }
.rmlp-hero__cta-note {
  display: inline-block; margin: 0 0 8px; padding: 4px 16px;
  background: var(--blue-d); color: #fff; font-size: 13px; font-weight: 700; border-radius: 999px;
  position: relative;
}
.rmlp-hero__cta-note::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--blue-d);
}

.rmlp-hero__badge {
  position: absolute; z-index: 2; right: 10px; top: 10px;
  width: 96px; height: 96px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--gold); color: var(--blue-dd); border-radius: 50%;
  border: 3px solid #fff;
  font-size: 11px; font-weight: 800; line-height: 1.4; padding: 12px;
  box-shadow: 0 6px 18px rgba(20,48,107,.28);
}
.rmlp-hero__badge::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  border: 1.5px dashed rgba(20,48,107,.55);
}
.rmlp-hero__badge b { display: block; }
.rmlp-hero__badge em { color: #DC2626; font-size: 1.45em; }

/* --- セクション共通 --- */
.rmlp-sec { padding: 44px 0; }
.rmlp-sec--tint { background: var(--tint); }
.rmlp-note { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

.rmlp-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rmlp-grid--3 { grid-template-columns: 1fr 1fr; }
.rmlp-grid--4 { grid-template-columns: 1fr 1fr; }
.rmlp-grid--5 { grid-template-columns: 1fr 1fr; }

/* --- 2. 悩み --- */
.rmlp-problem {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 12px; text-align: center; box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
.rmlp-problem__img { width: 96px; height: 96px; margin: 0 auto 10px; object-fit: contain; }
.rmlp-problem__text { margin: 0; font-size: 14px; font-weight: 700; }
.rmlp-bridge {
  margin: 28px auto 0; max-width: 760px; text-align: center;
  font-size: clamp(16px, 4.4vw, 20px); font-weight: 800; line-height: 1.7;
}

/* --- 3. Before/After --- */
.rmlp-ba__item {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 8px; box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
.rmlp-ba__col { margin: 0; text-align: center; }
.rmlp-ba__col img { width: 78px; height: 78px; margin: 0 auto 6px; object-fit: contain; }
.rmlp-ba__col figcaption { font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.rmlp-ba__col--after figcaption { color: var(--blue); }
.rmlp-ba__tag {
  display: block; margin: 0 auto 4px; width: fit-content; padding: 1px 10px;
  font-size: 11px; font-weight: 800; color: #fff; border-radius: 999px;
}
.rmlp-ba__tag--before { background: #94A3B8; }
.rmlp-ba__tag--after { background: var(--blue); }
.rmlp-ba__arrow { width: 22px; height: 22px; color: var(--gold); }

/* --- 共通: セクション説明リード --- */
.rmlp-lead {
  max-width: 760px; margin: -8px auto 26px; text-align: center;
  font-size: 14.5px; color: var(--muted); line-height: 1.95;
}
.rmlp-lead b { color: var(--ink); }

/* --- 3.5 スキル診断 --- */
.rmlp-shindan {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 16px 18px; text-decoration: none; color: var(--ink);
  box-shadow: 0 2px 8px rgba(15,23,42,.05); transition: transform .15s ease, box-shadow .15s ease;
}
.rmlp-shindan:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(37,99,235,.16); color: var(--ink); }
.rmlp-shindan__icon { width: 40px; height: 40px; color: var(--blue); margin-bottom: 10px; }
.rmlp-shindan__free {
  position: absolute; top: 12px; right: 12px; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 800; background: var(--gold); color: var(--blue-dd);
}
.rmlp-shindan__title { font-size: 15px; font-weight: 800; line-height: 1.4; margin-bottom: 6px; }
.rmlp-shindan__desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; flex: 1 0 auto; }
.rmlp-shindan__cta { margin-top: 12px; font-size: 13px; font-weight: 800; color: var(--blue); }
.rmlp-shindan-all { margin: 18px 0 0; text-align: center; }
.rmlp-shindan-all a { font-size: 14px; font-weight: 700; color: var(--blue); text-decoration: none; }
.rmlp-shindan-all a:hover { text-decoration: underline; }

/* --- 4. 週ロードマップ（タイムライン） --- */
.rmlp-timeline { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 16px; }
.rmlp-tl { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: stretch; }
.rmlp-tl__no {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 14px; color: #fff; line-height: 1.1; background: var(--blue);
}
.rmlp-tl__no small { font-size: 11px; font-weight: 700; opacity: .92; letter-spacing: .04em; }
.rmlp-tl__no b { font-size: 28px; font-weight: 900; }
.rmlp-tl:nth-child(2) .rmlp-tl__no { background: #0EA5A5; }
.rmlp-tl:nth-child(3) .rmlp-tl__no { background: var(--orange); }
.rmlp-tl:nth-child(4) .rmlp-tl__no { background: #7C3AED; }
.rmlp-tl__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
.rmlp-tl__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rmlp-tl__icon { flex: none; width: 40px; height: 40px; color: var(--blue-d); }
.rmlp-tl__title { margin: 0; font-size: clamp(17px, 4.6vw, 20px); font-weight: 800; }
.rmlp-tl__desc { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.95; }
.rmlp-tl__points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.rmlp-tl__points li { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; }
.rmlp-tl__points .rmlp-ic { width: 16px; height: 16px; flex: none; color: var(--blue); }

.rmlp-flow {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
.rmlp-flow__title { margin: 0 0 16px; text-align: center; font-weight: 800; font-size: 16px; }
.rmlp-flow__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rmlp-flow__step { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 3px solid var(--gold); }
.rmlp-flow__no { font-size: 11px; font-weight: 800; color: var(--blue); letter-spacing: .04em; }
.rmlp-flow__label { font-size: 14px; font-weight: 800; }
.rmlp-flow__desc { font-size: 12.5px; color: var(--muted); }

/* --- 5. 理由 / 6. カタログ 共通カード --- */
.rmlp-reason, .rmlp-stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 12px; text-align: center; box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
.rmlp-reason__icon, .rmlp-stat__icon {
  display: block; width: 40px; height: 40px; margin: 0 auto 10px; color: var(--blue);
}
.rmlp-reason__text { margin: 0; font-size: 14px; font-weight: 800; }

.rmlp-stat__label { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.rmlp-stat__value { margin: 0; font-size: 14px; font-weight: 700; }
.rmlp-stat__value b { font-size: 30px; color: var(--blue); margin-right: 2px; }

/* --- 8. FAQ (details/summary) --- */
.rmlp-faq { display: grid; gap: 10px; }
.rmlp-faq__item { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rmlp-faq__q {
  display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none;
  padding: 14px 44px 14px 14px; font-weight: 700; font-size: 14.5px; position: relative;
}
.rmlp-faq__q::-webkit-details-marker { display: none; }
.rmlp-faq__q::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--blue); line-height: 1;
}
.rmlp-faq__item[open] .rmlp-faq__q::after { content: "−"; }
.rmlp-faq__badge { flex: none; width: 24px; height: 24px; display: grid; place-items: center; background: var(--blue); color: #fff; border-radius: 6px; font-size: 13px; font-weight: 800; }
.rmlp-faq__a { margin: 0; padding: 0 16px 16px 48px; font-size: 14px; color: var(--muted); }

/* --- 9. 最終CTA帯 --- */
.rmlp-final { position: relative; background: var(--blue-dd); color: #fff; padding: 40px 0; overflow: hidden; }
.rmlp-final__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.rmlp-final__inner { position: relative; display: grid; gap: 22px; text-align: center; }
.rmlp-final__title { margin: 0 0 8px; font-size: clamp(20px, 5.4vw, 30px); font-weight: 900; }
.rmlp-final__sub { margin: 0; font-size: 14.5px; opacity: .95; }
.rmlp-final__action { display: grid; gap: 12px; justify-items: center; }
.rmlp-final__badge {
  display: inline-block; padding: 8px 16px; border-radius: 12px; font-size: 13px; font-weight: 800;
  background: var(--gold); color: var(--blue-dd);
}
.rmlp-final__badge em { color: #DC2626; }

/* --- >= 768px: 段組み復元 --- */
@media (min-width: 768px) {
  .rmlp-hero { display: flex; align-items: center; padding: 48px 0; min-height: clamp(560px, 52vw, 680px); background-position: 50% 14%; }
  .rmlp-hero__inner { width: 100%; }
  .rmlp-hero__features { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .rmlp-hero__badge { width: 134px; height: 134px; right: 3%; top: 40%; font-size: 12px; }
  .rmlp-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .rmlp-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .rmlp-grid--5 { grid-template-columns: repeat(5, 1fr); }
  .rmlp-flow__list { grid-template-columns: repeat(4, 1fr); }
  .rmlp-final__inner { grid-template-columns: 1.3fr 1fr; text-align: left; align-items: center; }
  .rmlp-final__action { justify-items: stretch; }
}
@media (min-width: 1000px) {
  .rmlp-tl { grid-template-columns: 84px 1fr; }
}
