@charset "UTF-8";
/* キャリソック d払い現金化 LP / SP版
   設計キャンバス 640px。1rem = 16px（640px時）で、画面幅に比例して全体が縮尺する。
   px→rem換算は「設計px ÷ 16」。画像幅は pct = 元画像幅 ÷ 640 × 100 (%)。 */

/* メニューを開くと body の overflow を切るのでスクロールバーが消え、
   その幅ぶん 640px枠が左右にずれてしまう。常にバーの幅を確保して動かないようにする。 */
html{scrollbar-gutter:stable}
html{font-size:calc(100vw / 40)}            /* 640px時に16px */
@media (min-width:640px){html{font-size:16px}}


:root{
  --red:#CC0033;
  --bw:3px;                                  /* 吹き出しの枠線。remだと640px以下で端数になり
                                                細く見えたりしっぽがばらつくので固定px */
  --navy:#39445A;
  --gray:#f0eeec;        /* texture01.png の地色と同値 */
  --gray-d:#E3E2E0;
  --ink:#000000;      /* コンプの本文は純粋な黒（実測） */
  --blue:#0E59B4;
  --blue-l:#17A6E8;
  --yellow:#FFF23E;
  --head-h:4.6875rem;                        /* 75px */
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:#f2f2f2;
  color:var(--ink);
  font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic Medium","Yu Gothic",Meiryo,sans-serif;
  font-size:1rem;
  font-weight:500;      /* 太字指定のないテキストは全て500 */
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{display:block;max-width:100%;height:auto;align-self:center;border:0}
a{color:inherit;text-decoration:none}
ul,ol,dl{margin:0;padding:0;list-style:none}   /* dlにもブラウザ既定の上下16pxマージンがあるため含める */
p{margin:0}

.lp{max-width:640px;margin:0 auto;position:relative;overflow:hidden;background:#fff;padding-top:var(--head-h)}   /* 固定ヘッダーのぶん下げる */

/* =========================================================
   ヘッダー
   ========================================================= */
.header{
  /* .lp に overflow:hidden があるため sticky は効かない（スクロールで流れてしまう）。
     追従バーと同じく640px幅で中央に固定する。 */
  position:fixed;top:0;left:0;right:0;margin:0 auto;width:40rem;z-index:60;
  height:var(--head-h);
  background:#fff;
  display:flex;align-items:center;gap:1.25rem;   /* 要素間20px */
  padding:0 6.1rem 0 1.25rem;   /* 右はハンバーガー57.6px＋左右20pxぶん（97.6px）を確保 */
  box-shadow:0 1px .375rem rgba(0,0,0,.12);
}
/* ロゴ（SVG）。コンプ実測 Cマーク43x42 / ワードマーク247x44、字面の間隔9px。
   SVGの余白込みの描画幅は 52px / 255px で、並べると字面がコンプと一致する。 */
.logo{display:flex;align-items:center;gap:0;flex:1 1 auto;min-width:0}
.logo__mark{flex:0 0 auto;width:3.25rem}    /* 52px */
.logo__type{flex:0 0 auto;width:15.9375rem} /* 255px */
.btn-login{
  flex:0 0 auto;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  width:4.375rem;height:3.5rem;border-radius:.5rem;   /* 70x56px */
  border:0;color:#fff;
  font-size:.8125rem;font-weight:700;line-height:1.1;   /* 13px */
  background:rgba(0,195,255,.8);
  transition:background-color .2s ease-out;
}
.btn-login:hover,.btn-login:focus-visible{background:#00c3ff}
.btn-login svg{width:1.625rem;height:1.625rem;margin-bottom:.375rem}   /* 26px / 文字との間6px */
/* ハンバーガー: 3本線はグラデーションで描き、開くと × に入れ替わる。
   線は20%刻み（0-20% / 40-60% / 80-100%）で、36x30pxなら6px幅・6px間隔。 */
/* ヘッダー(60)やドロワー(70)より前面に出すため、ヘッダーの外に置いて固定配置にする。
   位置は640pxコンテンツの右端から20px内側、ヘッダー(75px)の上下中央。 */
.hamb{
  position:fixed;z-index:80;
  top:.84375rem;   /* (75-48)/2 */
  /* 中央から「コンテンツ半幅20rem − 自分の幅3.6rem − 右余白1.25rem」ぶん右へ。
     vw はスクロールバーを含むためズレる。50% なら .lp の中央と同じ基準になる。 */
  left:50%;margin-left:15.15rem;
  width:3.6rem;height:3rem;   /* 57.6x48px（36:30の比率のまま） */
  border:0;background:transparent;padding:0;cursor:pointer;
  opacity:.6;transition:opacity .2s ease-out;
}
.hamb:hover,.hamb:focus-visible{opacity:1}
.hamb::before{
  content:"";position:absolute;inset:0;margin:auto;width:100%;
  background:linear-gradient(to bottom,
    var(--blue-l),var(--blue-l) 20%,
    transparent 20%,transparent 40%,
    var(--blue-l) 40%,var(--blue-l) 60%,
    transparent 60%,transparent 80%,
    var(--blue-l) 80%,var(--blue-l) 100%);
  transition:opacity .2s ease-out,width .2s .2s ease-out;
}
.hamb::after{
  content:"×";opacity:0;
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  font-family:Arial,sans-serif;font-size:4.25rem;line-height:0;color:var(--blue-l);
  transition:opacity .4s ease-out;
}
/* 開いているとき（JSが aria-expanded を切り替える） */
.hamb[aria-expanded="true"]::before{opacity:0;width:0}
.hamb[aria-expanded="true"]::after{opacity:1}

.drawer{
  position:fixed;inset:0;z-index:70;   /* 暗転は画面全体 */
  /* opacity ではなく背景色のアルファだけを変える。
     opacity だとパネルまで一緒に透けてしまうため（メニューはスライドのみ）。 */
  background:rgba(0,0,0,0);
  visibility:hidden;
  transition:background-color .45s ease,visibility .45s ease;
}
.drawer.open{background:rgba(0,0,0,.5);visibility:visible}
/* 640pxコンテンツ幅のクリップ枠。パネルはこの中を出入りするので、
   画面端ではなくコンテンツの右端から出てきて、同じ所へ引っ込む。 */
.drawer__clip{
  position:absolute;top:0;bottom:0;left:0;right:0;margin:0 auto;width:40rem;
  overflow:hidden;pointer-events:none;
}
.drawer__panel{
  pointer-events:auto;
  position:absolute;top:0;right:0;width:76%;max-width:21.25rem;height:100%;
  /* 上は×（ヘッダー内・下端62px）より下から始める。左右と下は30px */
  background:#fff;padding:5.625rem 1.875rem 1.875rem;overflow:auto;
  transform:translateX(100%);transition:transform .45s cubic-bezier(.4,0,.2,1);
}
.drawer.open .drawer__panel{transform:none}
.drawer__panel a{display:block;padding:1.0625rem .25rem;border-bottom:1px solid var(--gray-d);font-size:1.1875rem;font-weight:700;color:var(--blue)}

/* =========================================================
   FV（赤背景 640x710 原寸配置）
   ========================================================= */
.fv{
  position:relative;
  aspect-ratio:640/710;
  background:#e60012 url("images/fv-background.png") center/cover no-repeat;
}
.fv img{position:absolute}
.fv__title{left:5.94%;top:2.96%;width:89.06%}
.fv__p1   {left:2.66%;top:26.90%;width:66.88%}
.fv__p2   {right:0;top:23.80%;width:13.125rem}   /* 原寸210px・右端にぴったり */
.fv__img  {left:4.84%;top:43.66%;width:59.69%}
.fv__logo {left:5.86%;top:81.83%;width:88.28%}

/* =========================================================
   CTAブロック（紙吹雪背景 640x434）
   ========================================================= */
.cv{
  position:relative;
  aspect-ratio:640/434;
  background:#fff url("images/cv-background.png") center/cover no-repeat;
}
.cv img{position:absolute}
.cv__chara{left:2.19%;top:12.21%;width:32.81%}
.cv__point{left:22.81%;top:5.76%;width:73.91%}
/* 参考デザインの実測に合わせる。
   本文28px / 時刻32px / 数字46px / 「分」38px、2行とも中央揃え（中心x=371）。 */
.cv__lead{
  position:absolute;left:28.91%;top:31%;width:63%;   /* 中心x=371 → 386 へ15px右寄せ */
  text-align:center;
  /* 行間は参考デザイン実測の53px固定。大きい文字にも line-height:1 を入れて
     行の高さを押し広げないようにする（入れないと2行目だけ下にずれる）。 */
  font-size:1.75rem;line-height:3.3125rem;letter-spacing:-.01em;
}
.cv__lead b,.cv__unit,.cv__time{line-height:1}
.cv__time{font-size:2rem}                      /* 時刻 32px */
.cv__lead b{font-size:2.875rem;font-weight:700}  /* 数字 46px */
.cv__unit{font-size:2.375rem;font-weight:700}    /* 「分」 38px */
.cv__btn{left:7.19%;top:61.29%;width:85.94%}

/* =========================================================
   お悩み
   ========================================================= */
/* 背景PNG(640x793)は下部がV字に切り抜かれている。背景色を敷かず画像の形のまま出し、
   V字の透明部分から下の solution（黄色）が覗くようにする。 */
.worries{
  position:relative;z-index:1;
  aspect-ratio:640/793;
  background:url("images/worries-background.png") top center/100% auto no-repeat;
  padding:1.625rem 0 0;
}
.worries__title{width:85.94%;margin:0 auto 3.75rem}
.worries__list{padding:0 1.125rem 1.25rem 10rem;min-height:28rem}
.worries__list li{
  position:relative;
  color:#fff;font-size:1.625rem;line-height:1.45;
  padding-left:1.875rem;margin-bottom:1.25rem;
}
.worries__list li::before{
  content:"";position:absolute;left:0;top:.3em;
  width:1.375rem;height:1.375rem;
  background:url("images/worries-icon.png") center/contain no-repeat;
}
/* V字の上に乗る白文字。コンプ実測: 字面 x209..430(w222) y1898..1925 */
.worries__sonna{
  position:absolute;left:0;right:0;top:85.25%;
  text-align:center;line-height:1;
  color:#fff;font-size:2rem;letter-spacing:.02em;
}

/* お悩みセクションの影
   Photoshop「サイズ20px / スプレッド6% / 乗算 / 不透明度70% / #1c222e / 距離0」相当。
   drop-shadow は矩形ではなく要素の形（画像のアルファ・文字の字形）に沿って落ちる。
   ※CSSにスプレッドと乗算は無い。スプレッド6%＝1.2px相当は僅差のため省略し、
     通常合成で近似している。blurはremで持たせて画面幅に比例させる。 */
.worries__title,
.worries__list,
.worries__sonna{
  filter:
    drop-shadow(0 0 .375rem rgba(28,34,46,.95))   /* 近接・濃いめ＝写真の上でも字が立つ */
    drop-shadow(0 0 1.25rem rgba(28,34,46,.85));  /* 指定どおりの広がり(20px) */
}

/* =========================================================
   解決（黄色背景）
   ========================================================= */
/* worries のV字が始まる位置（画像上端から670px）まで潜り込ませる。
   793 - 670 = 123px ぶん上へ。worries(z-index:1)が上に重なる。 */
.solution{
  position:relative;z-index:0;
  margin-top:-7.6875rem;
  aspect-ratio:640/643;
  background:url("images/solution-background.png") top center/100% auto no-repeat;
}
.solution img{position:absolute}
.solution__txt  {left:6.72%;top:25.19%;width:87.66%}
.solution__point{left:15.16%;top:54.59%;width:71.41%}

/* =========================================================
   仕組み
   ========================================================= */
/* texture01.png = グレー地(#EFEEEC)＋グリッド線。13x13を原寸でリピート */
.structure{background:var(--gray) url("images/texture01.png") 0 0 repeat;padding:3.125rem 0}   /* 上下余白50px */
/* 図の上端をタイトルに6px食い込ませる */
.structure__title{width:72.19%;margin:0 auto -.375rem}
.structure__img{width:87.81%;margin:0 auto 1.75rem}
/* 内余白は上下30px・左右25px（640px設計基準） */
.card{width:90.63%;margin:0 auto;background:#fff;border-radius:1rem;padding:1.875rem 1.5625rem}
/* 原寸522pxのまま（カード内%指定だと約3%縮むため rem で固定） */
.structure__point{width:32.625rem;max-width:100%;margin:0 auto 1rem}
.structure__note{font-size:1.3125rem;line-height:1.5}

/* =========================================================
   買取率
   ========================================================= */
.rate{
  position:relative;
  aspect-ratio:640/430;
  background:#F4511E url("images/purchase-rate-background.png") center/cover no-repeat;
}
.rate img{position:absolute;left:50%;transform:translateX(-50%)}
.rate__title{top:17.0%;width:69.84%}
.rate__t1   {top:35.3%;width:56.25%}
.rate__t2   {top:66.0%;width:65.78%}

/* =========================================================
   比較
   ========================================================= */
/* セクションの上下余白40px / タイトル下30px（640px設計基準） */
.comparison{background:var(--red);padding:2.5rem 0}
.comparison__title{width:83.75%;margin:0 auto 1.875rem}
.comparison__img{width:93.75%;margin:0 auto;border-radius:.875rem;background:#fff}

/* =========================================================
   選ばれる理由
   ========================================================= */
/* texture02.png = 白地＋グリッド線。13x13を原寸でリピート */
.reason{background:#fff url("images/texture02.png") 0 0 repeat;padding:3.125rem 0}  /* 上下余白50px */
.reason__title{width:76.72%;margin:0 auto 1.625rem}
.reason__list li{margin-bottom:1.375rem}
.reason__list li:last-child{margin-bottom:0}
/* 理由カードは右端ぴったり（原寸610px / 左に30px余る） */
.reason__list img{width:95.31%;margin:0 0 0 auto}

/* =========================================================
   利用手順
   ========================================================= */
.flow{background:var(--gray) url("images/texture03.png") 0 0 repeat;padding:3.125rem 0}  /* 上下余白50px */
.flow__title{width:86.25%;margin:0 auto 2.5rem}   /* 下40px */
/* 矢印は flow-step01〜03.png に内蔵（高さ294px、下36pxが三角。step04は260pxで矢印なし）。
   CSSで三角を足すと二重になるので入れない。間隔は手順01.jpgの実測値。 */
.flow__steps li{position:relative;margin-bottom:.6875rem}   /* 画像間11px */
.flow__steps li:last-child{margin-bottom:3.3125rem}          /* step04→ボタン 53px */
.flow__steps img{width:90.63%;margin:0 auto}
/* 「詳しい手順を見る」= グレーの帯（手順02.jpg / アコーディオン02.jpg 準拠）
   実測: 帯 580x80 / #7C7C7C / 角丸なし、−の白丸 直径28px・右端から30px、
         開くと帯の直下に白パネル(580幅・下だけ角丸)が続く */
.flow__toggle{
  position:relative;
  display:flex;align-items:center;justify-content:center;
  width:90.63%;height:5rem;margin:0 auto;padding:0;
  border:0;border-radius:0;cursor:pointer;
  background:#7d7d7d;
  color:#fff;font-size:2rem;font-weight:500;font-family:inherit;letter-spacing:.04em;
  /* Photoshop「距離5px / 角度90度 / #492e14 / 不透明度30%」相当（ぼかし0）。
     参考画像の実測値 rgb(189,180,171) と一致。開いた状態は影なし。 */
  box-shadow:0 .3125rem 0 rgba(73,46,20,.3);
}
.flow__toggle[aria-expanded="true"]{box-shadow:none}
/* 閉じている時だけ下に余白を足す（開いた時は白パネルが帯に密着するので足さない） */
.flow__toggle[aria-expanded="false"]{margin-bottom:.625rem}
/* アイコンは素材を使用。plus/minus-icon.png は白丸＋グリフが一体の28px角
   （参考画像の実測＝白丸28px・バー16pxと一致するので原寸でそのまま置く） */
.flow__toggle .ico{
  position:absolute;right:1.875rem;top:50%;transform:translateY(-50%);
  width:1.75rem;height:1.75rem;
  background:url("images/plus-icon.png") center/contain no-repeat;
}
.flow__toggle[aria-expanded="true"] .ico{
  background-image:url("images/minus-icon.png");
}

/* 帯の直下に続く白パネル。内余白は 上30px / 左右20px / 下40px */
.flow__detail{
  display:none;
  width:90.63%;margin:0 auto;
  background:#fff;border-radius:0 0 1rem 1rem;
  padding:1.875rem 1.25rem 2.5rem;
}
.flow__detail.open{display:block}
.fd-step{margin-bottom:1.875rem}   /* step間30px（step01の上＝パネル内余白30pxと揃う） */
.fd-step:last-child{margin-bottom:0}
.fd-step h4{margin:0 0 1.375rem}
/* stepの赤いピルは白パネルの左端にぴったり（パネル内余白20pxを打ち消す） */
.fd-step h4 img{margin-left:-1.25rem;max-width:none}  /* max-width解除で原寸543pxを保つ */
.fd-lead{width:100%;margin:0 0 1.125rem;font-size:1.3125rem;line-height:1.45;font-weight:500}   /* 21px */
/* 内側BOXは薄グレー。実測 540幅＝パネル内余白20pxぶん内側 */
.fd-box{width:100%;margin:0;background:var(--gray);border-radius:.625rem;padding:1.25rem}  /* 角丸10px */
.fd-box li{position:relative;padding-left:1.5rem;margin-bottom:.875rem}
.fd-box li:last-child{margin-bottom:0}
/* 丸は直径16px、つなぎの点線は3px。点線のleftは丸の中心に合わせる(16/2-3/2=6.5px) */
/* 丸(16px)は見出し「d払いアプリの初期設定」の行の上下中央に合わせる
   → (見出し23px × line-height1.5 − 16px) ÷ 2 */
.fd-box li::before{
  content:"";position:absolute;left:0;
  top:calc((1.4375rem * 1.5 - 1rem) / 2);
  width:1rem;height:1rem;border-radius:50%;background:var(--red);
}
/* border の dotted は角ばって見えるので、円を敷き詰めて「まん丸の点線」にする。
   参考画像の実測は 点2px・ピッチ6px(隙間4px)。ここは指定により点を3pxに太くし、
   隙間4pxは踏襲してピッチ7pxにしている。 */
.fd-box li:not(:last-child)::after{
  content:"";position:absolute;left:.3125rem;
  top:calc((1.4375rem * 1.5 - 1rem) / 2 + 1.25rem);
  /* 点線はSVGの円を敷き詰める（radial-gradientより輪郭がくっきり出る）。
     linear-gradientだと四角い破線になるため使わない。
     カンプ実測は 点2px・ピッチ6px。ここはピッチ6pxを踏襲し、点は指定により3px。
     要素幅は点より広く取る（幅＝点だと円の左右が切られて四角く見える）。
     高さは round() でピッチの倍数に丸め、末尾の点が切れないようにする。 */
  width:.375rem;
  /* 長さ: 上の丸の下端から4px下で始まり、次の丸の上端の4px手前で終わるようにする。
     top(29.25px) から 次の丸の上端(100% + li下マージン14px + 丸のtop9.25px) の4px手前まで
     → height = 100% - 10px。ピッチ6pxの倍数に丸める（nearest。downだと最大6px短くなり下のすき間が開きすぎる）。 */
  height:round(nearest, calc(100% - .625rem), .375rem);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Ccircle cx='3' cy='3' r='1.5' fill='%23CC0033'/%3E%3C/svg%3E");
  background-size:.375rem .375rem;
  background-repeat:repeat-y;
  background-position:center top;
}
.fd-box b{display:block;font-size:1.4375rem;font-weight:800;line-height:1.5}    /* 23px */
.fd-box span{display:block;font-size:1.3125rem;line-height:1.5;font-weight:500;padding-left:.25rem}  /* 21px */

/* =========================================================
   買取価格シミュレーション
   ========================================================= */
.sim{background:#fff;padding:3.125rem 0}   /* 上下余白50px */
.sim__box{
  width:90.63%;margin:0 auto;
  border:.25rem solid var(--red);border-radius:1rem;overflow:hidden;background:#fff;   /* 外枠4px */
}
.sim__head{background:var(--red);height:5rem;display:flex;align-items:center;justify-content:center}   /* 高さ80px */
.sim__head img{width:73.97%;margin:0 auto}
.sim__body{padding:2rem 1.625rem 2.5rem}   /* 上32px / 左右26px(+枠線4px=30px) / 下40px＝btn02の下の余白 */
.sim__q{text-align:center;font-size:1.6875rem;font-weight:800;margin-bottom:.75rem}   /* 27px */
.sim__tabs{display:flex;justify-content:space-between;gap:1.25rem;margin-bottom:1.75rem}   /* 250px×2＋間隔20px＝内容幅520px */
.sim__tab{
  position:relative;
  flex:0 0 auto;width:15.625rem;display:flex;align-items:center;justify-content:center;
  height:5rem;border:0;border-radius:2.5rem;cursor:pointer;
  /* 文字は「四角の右端(=左から60px)〜ピル右端」の190pxに対して中央寄せ
     （四角は絶対配置なのでpaddingの影響を受けない） */
  padding:0 0 0 3.75rem;
  background:#eeeeee;color:#000;font-size:1.375rem;font-weight:800;font-family:inherit;
  /* 未選択の影: Photoshop「距離4px / 角度90度 / #000000 / 不透明度30%」相当（ぼかし0）
     コンプでも灰ピルだけ下に4pxの影がある（高さ84px vs 赤ピル80px） */
  box-shadow:0 .25rem 0 rgba(0,0,0,.3);
}   /* 高さ80px / 文字22px */
/* 四角は30px角・角丸なし・ピルの左端から30px（コンプ実測と同値） */
.sim__tab .box{
  position:absolute;left:1.875rem;top:50%;transform:translateY(-50%);
  width:1.875rem;height:1.875rem;border-radius:0;background:#fff;
  box-shadow:inset 0 0 0 .125rem var(--ink);   /* 枠2px（コンプ実測） */
  color:transparent;
}
.sim__tab .box svg{
  display:block;width:100%;height:100%;
  fill:none;stroke:currentColor;stroke-width:4.5;
  stroke-linecap:round;stroke-linejoin:round;
}
.sim__tab[aria-selected="true"]{background:var(--red);color:#fff;box-shadow:none}
/* 選択中は枠なしの白ベタ＋赤いチェック */
.sim__tab[aria-selected="true"] .box{box-shadow:none;color:var(--red)}
.sim__label{text-align:center;font-size:1.6875rem;font-weight:800;margin-bottom:.625rem}   /* 27px */
.sim__input{display:flex;align-items:center;justify-content:center;gap:1rem}   /* 総額/円 と入力欄の間隔16px */
.sim__input span{font-size:1.375rem;font-weight:600;white-space:nowrap}   /* 22px */
/* 入力欄: 400x80px / 角丸10px / 塗り#eeeeee / 線2px #b2b2b2 */
.sim__input input{
  flex:0 0 auto;width:25rem;height:5rem;
  border:.125rem solid #b2b2b2;border-radius:.625rem;background:#eeeeee;
  padding:0 1rem;font-size:1.8125rem;font-weight:600;font-family:inherit;text-align:center;color:var(--ink);   /* 29px */
}
.sim__input input::placeholder{color:#9a9a9a;letter-spacing:.02em}
.sim__arrow{width:28.59%;margin:1.875rem auto 1.5625rem;display:block}   /* 上30px / 下25px */
.sim__result{display:flex;align-items:stretch;gap:.125rem}   /* 演算子の左右に2px */
/* 行は内容幅いっぱい(520px)。左端は「はい」ボタンの左端、右端は「2回目以降」ボタンの
   右端と同じ位置になる（タブも内容幅いっぱいに置かれているため）。
   内訳: 168 + 28 + 128 + 28 + 168 ＝ 520px。
   外側2つは flex:1 1 0 で「残り」を等分するので、画面幅が変わっても端がズレない。 */
.sim__cell{
  /* 150x150px / 角丸20px / 枠3px */
  flex:1 1 0;height:9.375rem;
  border-radius:1.25rem;
  /* 枠線は border ではなく内側シャドウで描く。
     border だと overflow:hidden のクリップ半径が「20px − 枠3px = 17px」になり、
     枠の内側の曲線と dt(青/赤)の曲線が別々に描かれて角にうっすらすき間が出る。
     内側シャドウなら枠も dt も同じ20pxの角丸で切られるので継ぎ目が出ない。 */
  box-shadow:inset 0 0 0 .1875rem var(--red);
  overflow:hidden;background:#fff;display:flex;flex-direction:column;
}
/* 上下左右の余白は、border が無くなった3pxぶんを足して元の見た目に合わせてある */
.sim__cell dt{background:var(--red);color:#fff;font-size:1.5rem;font-weight:800;padding:.5625rem 0 .375rem;text-align:center}   /* 24px */
.sim__cell dd{margin:0;padding:1.125rem .8125rem;font-size:1.4375rem;font-weight:800;text-align:right;flex:1 1 auto;display:flex;align-items:center;justify-content:flex-end}
/* 真ん中（買取率）は中身が「90%」だけなので固定幅で狭くし、残りを両側で分け合う */
.sim__cell:nth-of-type(2){flex:0 0 8rem}   /* 128px。両側は自動で168pxずつになる */
/* ×(26px) と =(18px) は字幅が違うので、幅を固定しないと左右のすき間が揃わない。
   枠と枠のすき間はこの幅＋gap×2で決まる（24＋2×2＝28px）。 */
.sim__op{flex:0 0 auto;width:1.5rem;text-align:center;align-self:center;font-size:1.625rem;font-weight:800}
.sim__btns{margin-top:1.875rem}   /* 結果の枠から30px */
.sim__btns img{margin:0 auto 1.875rem;width:81.75%}   /* btn01の下30px */
.sim__btns a:last-child img{margin-bottom:0}

/* =========================================================
   メリット
   ========================================================= */
.merit{background:#F6F4F2 url("images/merit-background.png") top center/100% auto no-repeat;padding:3.125rem 0}   /* 上下余白50px */
/* 写真はカード上端より170px上に出る（写真225px − 重なり55px）。
   タイトル下40px＝「写真の上端まで」なので、その170pxを足した値を指定する。 */
.merit{--photo-up:10.625rem}
.merit__title{width:77.50%;margin:0 auto calc(2.5rem + var(--photo-up))}   /* 写真上端まで40px */
/* 白枠は580px幅。カード間は「次の写真の上端まで40px」にするため170pxを足す */
.merit__item{
  width:90.63%;margin:0 auto calc(2.5rem + var(--photo-up));
  background:#fff;border-radius:.875rem;padding-bottom:1.375rem;
  /* Photoshop「サイズ20px / #000000 / 不透明度20% / 角度90度」相当。
     距離の指定が無かったので0（距離0なら角度は効かない）。 */
  box-shadow:0 0 1.25rem rgba(0,0,0,.2);
}   /* 580px */
.merit__item:last-child{margin-bottom:0}
/* 原寸438px。カード上端より170px上に出し、下端がカード上端から55px下に来る */
.merit__photo{
  width:27.375rem;max-width:100%;
  /* 上へは position:relative でずらす（margin-top だとカードと相殺されて効かない）。
     レイアウト上の占有分は margin-bottom で同量減らし、カード上端＝写真下端−55px にする。 */
  position:relative;top:calc(-1 * var(--photo-up));
  margin:0 auto calc(1.25rem - var(--photo-up));   /* 写真→帯 20px */
}
/* 帯は原寸600px。カード(580px)から左右に10pxずつはみ出させる。
   max-width:none はグローバルの img{max-width:100%} を解除するため。 */
.merit__cap{width:37.5rem;max-width:none;margin:0 -.625rem 1rem}
.merit__item p{font-size:1.3125rem;line-height:1.57;padding:0 1.5625rem}   /* 21px / 行ピッチ33px */

/* =========================================================
   よくある質問
   ========================================================= */
/* texture02.png = 白地＋グリッド線（texture01はグレー地なのでFAQには合わない） */
.faq{background:#fff url("images/texture02.png") 0 0 repeat;padding:3.125rem 0 2.5rem}   /* 上50px */
.faq__title{width:33.75%;margin:0 auto 1.5rem}
/* FAQ（コンプ実測）
   Qアバター 原寸80x90 を x=20、吹き出し本体 x117..536、
   Aアバター 原寸66x90 を右端から、回答の吹き出しも x117..537 で左右そろえ。 */
.faq__list{width:100%;margin:0}
/* 区切りの点線: Photoshop「太さ3px / 間隔4 / 線端:丸」相当＝直径3pxの丸をピッチ12pxで50個。
   borderのdottedでは形も間隔も制御できないので背景グラデーションで描く。
   x24..615（左右の端から24px内側）にちょうど50個収まる長さ591pxにしている。 */
/* 点線は要素下端から6px上が点の中心。吹き出しまで上下23pxになるよう
   padding-bottom 29px（29-6=23）、margin-bottom 8px（8+9+6=23）にしている。 */
.faq__item{position:relative;padding-bottom:1.8125rem;margin-bottom:.5rem}
.faq__item::after{
  content:"";position:absolute;left:1.21875rem;bottom:0;
  /* 12px角のタイルに直径3pxの円。要素は円より大きく取らないと左右上下が切れて四角く見える。
     左端19.5pxから始めると円の中心が25.5pxに来て、点はx24..615（端から24px内側）に50個ちょうど。 */
  width:37.5rem;height:.75rem;   /* 600px / 12px */
  /* repeat-x だと端数のタイルが切れて点が右端にくっつく。round は
     タイル幅を微調整して必ず整数個に収めるので、左右の余白が揃う。 */
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Ccircle cx='6' cy='6' r='1.5' fill='%23000000'/%3E%3C/svg%3E");
  background-size:.75rem .75rem;
  background-position:0 center;
  background-repeat:round no-repeat;
}
.faq__item:last-child{padding-bottom:0;margin-bottom:0}
.faq__item:last-child::after{content:none}

.faq__q,.faq__a{display:flex;align-items:center;gap:1.0625rem}
.faq__q{padding:0 6.4375rem 0 1.25rem;margin-bottom:.75rem}   /* 左20px / 右104px。行高90pxと吹き出し72pxの差9pxを足して吹き出し間21px */
.faq__a{position:relative;padding:0 1.25rem 0 7.3125rem}    /* 左117px / 右20px */
.faq__q img{flex:0 0 auto;width:5rem;max-width:none}          /* 原寸80px */
/* しっぽとイラストは行数によらず「吹き出しの上端から36px」の位置に置く
   （1行の質問吹き出し72pxの中央＝36pxに合わせる）。
   イラストは絶対配置にして、行の高さ（＝点線の位置）に影響させない。 */
.faq__a img{position:absolute;right:1.25rem;top:-.5625rem;width:4.125rem;max-width:none}   /* 原寸66px / 中心が上端から36px */

.faq__q p{
  position:relative;flex:0 0 auto;width:26.25rem;   /* 四角い部分 420px */
  background:#F0B2C1;border-radius:.625rem;padding:1.25rem .9375rem;   /* 角丸10px / 上下20px・左右15px */
  font-size:1.3125rem;line-height:1.5;
}
.faq__a p{
  position:relative;flex:0 0 auto;width:26.25rem;order:1;   /* 四角い部分 420px */
  background:#fff;border:var(--bw) solid var(--red);border-radius:.625rem;padding:1.25rem .9375rem;   /* 角丸10px / 上下20px・左右15px */
  font-size:1.3125rem;line-height:1.5;
}
/* しっぽは「45度回転した正方形」。枠線を2辺だけ付けると四角と同じ太さの線になり、
   白い塗りが四角の枠線を隠すので食い込んで見えない。
   一辺21pxの正方形を45度回すと対角の半分は約14.85px＝はみ出し15px。
   位置は正方形の中心が四角の辺に乗るように決める（回答側は枠線3pxぶん基準がずれる）。 */
/* 質問のしっぽも回答と同じ「borderで作る三角」。回転した正方形だと
   上下の角が吹き出しの外に出て、三角ではなく四角の角に見えてしまうため。
   先端が左に15px出て、底辺は吹き出しの左端にぴったり付く（内側には入らない）。 */
.faq__q p::before{
  content:"";position:absolute;top:50%;left:-22.5px;
  width:0;height:0;margin-top:-7.5px;
  border:7.5px solid transparent;
  /* 底辺を吹き出しに1px食い込ませる（同じピンクなので見えない）。
     ぴったりだと端数の丸めで継ぎ目にすき間が見えることがあるため。 */
  border-right:16px solid #F0B2C1;
  transform:none;
}
/* 回答のしっぽはSVG。線を正確に3px（四角と同じ）にでき、
   左端(x=4)から内側は線を引かないので四角の中に線がはみ出さない。
   白い塗りが四角の枠線3pxを覆うので、継ぎ目も出ない。
   配置: 左端が四角の枠の3px内側、先端が四角から15px外側（計22px幅）。 */
/* 回答のしっぽはSVG。塗りと線を同じパスで描き、左端(x=0)を四角の枠線の内側に合わせる。
   SVGは viewBox の外を切り取るので、線が四角の中へはみ出さず、
   かつ枠線3pxぶんを完全に覆うので継ぎ目に隙間も出ない。
   x=0 → 枠線の内側 / x=18 → 四角から15px外（先端）。 */
/* 2行以上の吹き出しは上下paddingを15pxにする（script.jsで付与） */
.faq__q p.is-multiline,
.faq__a p.is-multiline{padding-top:.9375rem;padding-bottom:.9375rem}

/* 回答のしっぽ: 外側（赤）と内側（白）の三角を重ねて作る。
   高さ:幅を両方1:2にしてあるので辺が平行＝輪郭の太さが先端まで一定。
   寸法はすべて整数pxで固定。remだと640px以下で端数になり、吹き出しごとに
   丸め方が変わってしっぽの位置や太さがばらついて見えるため。
   内側の白は付け根を四角の内側2pxまで深く差し込む。こうしておくと、
   画面を縮めて端数が丸められても付け根にすき間が出ない（余分は白地に隠れる）。 */
.faq__a p::before,
.faq__a p::after{
  content:"";position:absolute;top:2.0625rem;   /* 上端から36px（枠線3pxぶん引く） */
  width:0;height:0;
}
.faq__a p::after{    /* 外側（赤）16x8px・先端は四角から15px外 */
  z-index:1;
  right:-26px;margin-top:-8px;
  border:8px solid transparent;
  border-left:16px solid var(--red);
}
.faq__a p::before{   /* 内側（白）14x7px・付け根は四角の内側2pxまで */
  z-index:2;
  /* margin-top は外側(-8px)との差が整数になる値にする。半端(例 -6.5px)だと
     吹き出しごとに丸め方が変わり、白と赤の位置がずれて見えるため。 */
  right:-19px;margin-top:-7px;
  border:7px solid transparent;
  border-left:14px solid #fff;
}

/* 640px以下は枠線を少し細く見せる。枠線が細くなるぶん基準位置が1pxずれるので
   しっぽのオフセットも1pxずつ詰めて、はみ出し15pxを保つ。 */
@media (max-width:639.98px){
  .faq__a p{--bw:2px}
  /* 吹き出しが約0.6倍に縮むので、しっぽも同じ比率に縮める（はみ出し15px→9px）。
     枠線2pxに合わせて輪郭も約2.2pxにし、margin-topの差は整数1pxのままにする。 */
  /* はみ出し10px。内側(10x5)との差が小さいほど輪郭が細くなる */
  .faq__a p::after{
    right:-18px;margin-top:-6px;
    border:6px solid transparent;
    border-left:12px solid var(--red);
  }
  .faq__a p::before{
    right:-13px;margin-top:-5px;
    border:5px solid transparent;
    border-left:10px solid #fff;
  }
  /* 質問側も同じ比率に縮める。21pxのままだと内側へ10.5px入り、
     縮んだ内余白(約9px)を超えて文字に被るため。 */
  /* 吹き出しとイラストは画面に合わせて縮むのに、しっぽは固定pxなので
     小さい画面ほど逃げ場が減り、しっぽの先がイラストに当たる。
     質問・回答とも吹き出しを10px短くして余裕を作る（420→410px）。 */
  .faq__q p,.faq__a p{width:25.625rem}
  /* 吹き出しを10px短くしたぶん、回答のイラストも10px内側へ寄せて
     「イラスト〜吹き出し」の距離を質問側と同じにする */
  /* しっぽ(10px固定)の先に余裕を作るため、イラストを吹き出しから離す。
     吹き出しの位置(x117..527)は質問・回答で揃えたまま、両側とも間隔26px。 */
  .faq__q{padding-left:.6875rem;gap:1.625rem}
  .faq__a img{right:1.3125rem}
  /* 先端10px・底辺は吹き出しの左端ぴったり */
  .faq__q p::before{
    left:-15px;margin-top:-5px;
    border-width:5px;border-right-width:11px;   /* 1pxは吹き出しに食い込ませる */
  }
}

/* =========================================================
   会社概要
   ========================================================= */
/* 下は0。MAPからプライバシーポリシーのタイトルまでの50pxは .policy の上パディングで作る
   （どちらも白背景なので境目は見えない） */
.info{background:#fff;padding:3.125rem 0 0}   /* 上50px＝タイトルの上の余白 */
.info__title{width:27.97%;margin:0 auto 2.5rem}   /* 下40px */
.info__table{width:93.75%;margin:0 auto;border-collapse:collapse;font-size:1.125rem}
.info__table th,.info__table td{height:5rem;padding:0 1rem;text-align:left;vertical-align:middle;line-height:1.55}   /* 各行80px・上下中央 */
.info__table th{
  width:10.3125rem;background:var(--red);color:#fff;font-weight:700;
  border-bottom:.1875rem solid #fff;   /* 仕切り線3px */
  border-right:.1875rem solid #fff;    /* 左右のエリアの間にも仕切り線 */
  white-space:nowrap;text-align:center;   /* 左の列は中央配置 */
}
.info__table td{background:var(--gray);border-bottom:.1875rem solid #fff;padding-left:1.875rem}   /* 仕切り線3px / 文字の左余白30px */
.info__map{
  width:93.75%;margin:3.125rem auto 0;aspect-ratio:600/350;   /* 表の下50px / MAPは600x350 */
  background:var(--gray-d);   /* 読み込み中の下地 */
  overflow:hidden;
}
.info__map iframe{display:block;width:100%;height:100%;border:0}

/* =========================================================
   プライバシーポリシー
   ========================================================= */
.policy{background:#fff;padding:3.125rem 0 1.8125rem}   /* 上50px＝タイトルの上の余白 / 下は最後の文字からフッターまで50px */
.policy__title{width:48.91%;margin:0 auto 2rem}   /* 下32px＝「第1条」の文字の天地まで40px */
.policy__body{width:93.75%;margin:0 auto;font-size:1.125rem;line-height:1.75}   /* 本文18px */
/* 見出し下の点線はFAQの区切り線と同じ仕様（直径3pxの丸・ピッチ12px・50個・591px）。
   色だけ #cc0033。border の dotted は丸にならないのでSVGの円を敷き詰める。 */
.policy__body h3{
  position:relative;
  /* 点線の上下余白15px（文字の天地基準）。点の中心は h3 下端の6px上にある。 */
  margin:1.625rem 0 .15625rem;padding-bottom:.78125rem;
  color:var(--red);font-size:1.375rem;font-weight:700;   /* 22px */
}
.policy__body h3::after{
  content:"";position:absolute;left:0;bottom:0;
  /* 本文幅600pxいっぱい。タイルの円は中心が6pxなので、点はx24.5..615.5＝FAQと同じ50個 */
  width:100%;height:.75rem;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Ccircle cx='6' cy='6' r='1.5' fill='%23cc0033'/%3E%3C/svg%3E");
  background-size:.75rem .75rem;
  background-position:0 center;
  background-repeat:round no-repeat;
}
.policy__body h3:first-child{margin-top:0}
.policy__body p{margin-bottom:.875rem}
.policy__body ol li{margin-bottom:.125rem}

/* =========================================================
   フッター
   ========================================================= */
.footer{background:var(--gray);padding:1.875rem 1.25rem 1.625rem}
.footer .logo{margin-bottom:1.25rem;margin-left:.9625rem}
.footer__nav{display:flex;gap:1rem;font-size:1.25rem;line-height:1.875rem;padding-left:1.25rem}   /* 20px / 行ピッチ30px */   /* 行ピッチ30px */   /* フッター左20px＋20px＝左の列を40pxの位置に */
.footer__nav ul{flex:1 1 0}
.copy{background:var(--red);color:#fff;text-align:center;font-size:1.25rem;padding:.875rem 0}   /* 20px */

/* =========================================================
   追従CTAバー
   ========================================================= */
.floating{
  /* 帯はメインコンテンツと同じ640px幅で中央寄せ（画面が広いとき横に広がらない） */
  position:fixed;left:0;right:0;bottom:0;margin:0 auto;width:40rem;z-index:50;
  display:flex;justify-content:flex-start;align-items:flex-end;
  height:10rem;   /* 帯 640x160px */
  background:rgba(0,0,0,.5);   /* #000000 不透明度50% */
  padding:0 0 .75rem 2.8125rem;   /* 下12px / 左45px */
  /* 位置は固定のまま、不透明度だけでフェードイン/アウトさせる */
  opacity:0;visibility:hidden;
  transition:opacity .3s,visibility .3s;
  pointer-events:none;
}
.floating.show{opacity:1;visibility:visible;pointer-events:auto}
/* 幅はリンク(a)側で持つ。imgに%を置くとフレックスアイテムのaが基準になり狭くなる。 */
/* 画像は原寸585x163。帯160pxより高いので上に15pxはみ出す */
.floating a{flex:0 0 auto;width:36.5625rem;display:block}
.floating img{width:100%}

/* 追従バー表示中のフッター被り防止 */
/* 最下部では追従バーが消えるので、バーぶんの下余白は入れない（帯の下でスクロールが止まる） */

/* PC表示（640pxより広い画面）。レイアウトはSP版のまま、
   640px枠の外側に背景グラデーション、枠にドロップシャドウを付ける。
   影は Photoshop の「サイズ30px／不透明度20%／#000000・距離0」相当。 */
@media (min-width:640px){
  body{
    background:linear-gradient(to bottom,#c2e9fb 0%,#a1c4fd 100%);
    background-attachment:fixed;
  }
  .lp{box-shadow:0 0 30px rgba(0,0,0,.2)}
}
