/* ============================================================
   買取ガイドLP ブロックスタイル（mobilestreet/g-* → msg-*）
   ------------------------------------------------------------
   AION提供 reparo_買取ガイド/preview.html のデザインを
   カスタムブロック出力用に移植。各セクションがトップレベルに
   出力されるため、変数は .msg-hero / .msg-sec に定義する。
   全幅前提レイアウト：page-lp-full.php（LP全幅テンプレート）で使用。
   ※ fr-*（加盟店LP・.msfr）とは別系統。
   ============================================================ */

/* ---- 共通トークン＆リセット ---- */
.msg-hero,.msg-sec{
  --accent:#FF6B35; --accent2:#F59E0B;
  --bg:#FFF6EE; --bg2:#FFFFFF;
  --ink:#2B2018; --muted:#8A7B6D;
  --soft:#FFEFE2; --line:#F1E4D7;
  --radius:28px; --radius-sm:16px;
  font-family:'Noto Sans JP',sans-serif;
  color:var(--ink);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
.msg-hero *,.msg-sec *{box-sizing:border-box;}
.msg-hero img,.msg-sec img{max-width:100%;display:block;}
.msg-hero a,.msg-sec a{color:inherit;text-decoration:none;}
.msg-hero p,.msg-sec p{margin-top:0;margin-bottom:0;}
.msg-hero ul,.msg-sec ul{list-style:none;padding:0;margin:0;}
.msg-zen{font-family:'Zen Maru Gothic','Noto Sans JP',sans-serif;}
@keyframes msg-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}

.msg-sec{padding:clamp(52px,7vw,90px) 20px;background:var(--bg);}
.msg-wrap{max-width:1120px;margin:0 auto;}
.msg-narrow{max-width:840px;margin:0 auto;}
.msg-eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--accent);font-weight:700;font-size:13px;letter-spacing:.14em;}
.msg-eyebrow>span:first-child,.msg-eyebrow>span:last-child{width:22px;height:2px;background:var(--accent);}
.msg-h2{font-weight:900;font-size:clamp(26px,4vw,40px);color:var(--ink);margin:12px 0 12px;line-height:1.3;}
.msg-lead{font-size:15px;color:var(--muted);font-weight:500;line-height:1.9;}
.msg-center{text-align:center;}
.msg-ph{background:var(--soft);border:1.5px dashed var(--line);border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:12px;font-weight:700;text-align:center;padding:10px;}

/* ---- HERO ---- */
.msg-hero{position:relative;overflow:hidden;padding:clamp(48px,7vw,84px) 20px clamp(40px,5vw,64px);
  background:radial-gradient(120% 90% at 50% -10%, var(--soft) 0%, var(--bg) 60%);}
.msg-blob{position:absolute;border-radius:50%;pointer-events:none;}
.msg-blob--1{top:-70px;left:-50px;width:280px;height:280px;background:radial-gradient(circle,var(--accent) 0%,transparent 70%);opacity:.13;animation:msg-float 7s ease-in-out infinite;}
.msg-blob--2{bottom:-50px;right:-40px;width:240px;height:240px;background:radial-gradient(circle,var(--accent2) 0%,transparent 70%);opacity:.15;animation:msg-float 9s ease-in-out infinite;}
.msg-hero__inner{position:relative;max-width:820px;margin:0 auto;text-align:center;}
.msg-chip{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--line);color:var(--accent);font-weight:700;font-size:13px;padding:7px 15px;border-radius:999px;box-shadow:0 6px 16px -8px rgba(70,34,12,.25);}
.msg-hero h1{font-weight:900;font-size:clamp(30px,5.4vw,50px);line-height:1.28;margin:20px 0 18px;color:var(--ink);letter-spacing:-.01em;}
.msg-hero h1 em,.msg-hero h1 span{color:var(--accent);font-style:normal;}
.msg-hero__p{font-size:clamp(14.5px,2.2vw,17px);line-height:1.9;color:var(--muted);font-weight:500;max-width:640px;margin:0 auto;}
.msg-hero__tags{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:26px;}
.msg-tag{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:9px 16px;font-size:13.5px;font-weight:700;color:var(--ink);}
.msg-tag__ic{display:flex;}
.msg-tag__ic svg{width:16px;height:16px;color:var(--accent);flex:none;}

/* ---- STEP フロー（背骨） ---- */
.msg-flow{position:relative;}
.msg-steps{max-width:860px;margin:44px auto 0;position:relative;}
.msg-steps::before{content:"";position:absolute;left:33px;top:20px;bottom:20px;width:2px;
  background:linear-gradient(var(--accent),var(--accent2));opacity:.35;}
.msg-step{position:relative;display:grid;grid-template-columns:68px 1fr;gap:20px;padding-bottom:26px;}
.msg-step:last-child{padding-bottom:0;}
.msg-step__num{position:relative;z-index:1;width:68px;height:68px;border-radius:20px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  box-shadow:0 12px 24px -10px var(--accent);flex:none;}
.msg-step__num b{font-size:22px;font-weight:900;line-height:1;font-family:'Zen Maru Gothic',sans-serif;}
.msg-step__num i{font-style:normal;font-size:9px;font-weight:700;letter-spacing:.1em;opacity:.9;margin-bottom:3px;}
.msg-step__card{background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius);padding:24px 26px;}
.msg-step__card h3{font-weight:900;font-size:clamp(17px,2.5vw,21px);color:var(--ink);margin:0 0 10px;line-height:1.5;}
.msg-step__body p{font-size:14px;line-height:1.9;color:var(--muted);}
.msg-step__body p + p{margin-top:10px;}
.msg-step__body em{color:var(--accent);font-weight:700;font-style:normal;}
.msg-note{margin-top:12px;font-size:12.5px;color:var(--muted);background:var(--soft);border-radius:12px;padding:10px 14px;line-height:1.7;}
.msg-guidebtn{display:inline-flex;align-items:center;gap:7px;margin-top:16px;background:#fff;border:1.5px solid var(--accent);color:var(--accent);
  font-weight:700;font-size:13.5px;padding:11px 20px;border-radius:999px;transition:.15s;}
.msg-guidebtn:hover{background:var(--accent);color:#fff;}
.msg-guidebtn__ic{display:flex;}
.msg-guidebtn__ic svg{width:15px;height:15px;}
.msg-guidebtn--onaccent{background:#fff;border-color:#fff;color:var(--accent);margin-top:30px;}

/* ---- 買取方法 2択 ---- */
.msg-method{background:var(--bg2);}
.msg-methods{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;margin-top:40px;text-align:center;}
.msg-method__card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--bg);
  transition:transform .18s, box-shadow .18s;display:flex;flex-direction:column;}
.msg-method__card:hover{transform:translateY(-4px);box-shadow:0 24px 44px -22px rgba(70,34,12,.4);}
.msg-method__fig{aspect-ratio:3/2;background:var(--soft);}
.msg-method__fig img{width:100%;height:100%;object-fit:cover;display:block;}
.msg-method__body{padding:24px 26px 28px;}
.msg-method__body h3{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;}
.msg-method__body p{font-size:14.5px;line-height:1.9;color:var(--muted);}
.msg-method__btn{display:inline-flex;align-items:center;gap:8px;margin-top:20px;
  background:var(--accent);color:#fff;font-weight:700;font-size:14.5px;
  padding:14px 24px;border-radius:999px;box-shadow:0 14px 26px -13px var(--accent);transition:transform .12s;}
.msg-method__btn:hover{transform:translateY(-1px);}
.msg-method__ic{display:flex;}
.msg-method__ic svg{width:16px;height:16px;}

/* ---- 高価買取のコツ（ハイライト） ---- */
.msg-tips{background:linear-gradient(120deg,var(--accent) 0%,var(--accent2) 100%);color:#fff;}
.msg-tips .msg-wrap{max-width:1000px;}
.msg-tips__eb{font-weight:700;font-size:13px;letter-spacing:.14em;opacity:.92;}
.msg-tips h2{font-weight:900;font-size:clamp(24px,3.6vw,36px);margin:10px 0 8px;line-height:1.35;}
.msg-tips__lead{opacity:.95;font-size:14.5px;line-height:1.85;margin-bottom:32px;font-weight:500;}
.msg-tipgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;text-align:left;}
.msg-tip{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);border-radius:20px;padding:22px 20px;backdrop-filter:blur(2px);}
.msg-tip .ic{width:44px;height:44px;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center;color:var(--accent);margin-bottom:14px;}
.msg-tip .ic svg{width:22px;height:22px;}
.msg-tip h4{font-weight:900;font-size:16px;margin:0 0 6px;}
.msg-tip p{font-size:13px;line-height:1.8;opacity:.95;}

/* ---- 本人確認書類 ---- */
.msg-id__box{background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius);
  padding:clamp(28px,4vw,44px);margin-top:36px;display:grid;grid-template-columns:1fr 1fr;gap:36px;text-align:left;}
.msg-id__h3{font-weight:900;font-size:17px;color:var(--ink);margin:0 0 16px;display:flex;align-items:center;gap:9px;}
.msg-id__ic{display:flex;}
.msg-id__ic svg{width:20px;height:20px;color:var(--accent);}
.msg-idlist{display:flex;flex-direction:column;gap:10px;}
.msg-idlist__item{display:flex;align-items:center;gap:10px;font-size:14.5px;font-weight:600;color:var(--ink);
  background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:11px 15px;}
.msg-idlist__ic{display:flex;}
.msg-idlist__ic svg{width:17px;height:17px;color:var(--accent);flex:none;}
.msg-minor p{font-size:14px;line-height:1.9;color:var(--muted);margin-bottom:18px;}
.msg-minor p strong{color:var(--accent);font-weight:700;}
.msg-dlbtn{display:inline-flex;align-items:center;gap:9px;background:var(--accent);color:#fff;font-weight:700;font-size:14.5px;
  padding:14px 24px;border-radius:999px;box-shadow:0 14px 26px -12px var(--accent);}
.msg-dlbtn__ic{display:flex;}
.msg-dlbtn__ic svg{width:18px;height:18px;}
.msg-idnote{margin-top:22px;font-size:13px;color:var(--muted);background:var(--soft);border-radius:14px;padding:14px 18px;line-height:1.8;}

/* ---- CTA ---- */
.msg-cta{background:var(--bg2);}
.msg-cta__card{max-width:660px;margin:0 auto;background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);
  padding:clamp(32px,5vw,52px) clamp(24px,4vw,44px);text-align:center;box-shadow:0 30px 70px -34px rgba(70,34,12,.3);}
.msg-cta__card h2{font-weight:900;font-size:clamp(24px,3.6vw,34px);margin:0 0 12px;}
.msg-cta__card p{font-size:15px;color:var(--muted);line-height:1.85;margin-bottom:28px;font-weight:500;}
.msg-cta__btns{display:flex;flex-direction:column;gap:12px;max-width:400px;margin:0 auto;}
.msg-cta__btns a{display:flex;align-items:center;justify-content:center;gap:8px;padding:16px;border-radius:999px;font-weight:700;font-size:16px;}
.msg-cta__btns a.primary{background:var(--accent);color:#fff;box-shadow:0 16px 30px -14px var(--accent);}
.msg-cta__btns a.line{background:#06C755;color:#fff;}
.msg-cta__btns a.tel{background:#fff;color:var(--ink);border:1.5px solid var(--line);}
.msg-cta__ic{display:flex;}
.msg-cta__ic svg{width:18px;height:18px;}
.msg-cta__btns a.line .msg-cta__ic svg{width:20px;height:20px;}

/* ---- LP全幅テンプレ（main.ms-lead）でのリンク文字色の詳細度対策 ---- */
/* blocks.css の .ms-lead a{color:var(--color_main)} にボタン文字色が奪われるのを防ぐ */
.ms-lead .msg-guidebtn{color:var(--accent);}
.ms-lead .msg-guidebtn:hover,.ms-lead .msg-guidebtn--onaccent{color:var(--accent);}
.ms-lead .msg-guidebtn:hover{color:#fff;}
.ms-lead .msg-method__btn,.ms-lead .msg-dlbtn{color:#fff;}
.ms-lead .msg-cta__btns a{color:var(--ink);}
.ms-lead .msg-cta__btns a.primary,.ms-lead .msg-cta__btns a.line{color:#fff;}

/* ---- レスポンシブ ---- */
@media(max-width:720px){
  .msg-id__box{grid-template-columns:1fr;gap:28px;}
  .msg-step{grid-template-columns:52px 1fr;gap:14px;}
  .msg-steps::before{left:25px;}
  .msg-step__num{width:52px;height:52px;border-radius:16px;}
  .msg-step__num b{font-size:18px;}
  .msg-step__card{padding:20px;}
}
