/* くるまレスキュー LP スタイル */
body{margin:0}
[hidden]{display:none !important}
/* 受付時間による出し分け（JSが html に is-closed を付ける） */
[data-when]{display:contents}
html.is-closed [data-when="open"],html:not(.is-closed) [data-when="closed"]{display:none}
.err{margin:0;color:#C2185B;font-size:13px;font-weight:700}
.form-msg{margin:0;padding:12px 14px;border-radius:10px;background:#FDECF2;color:#9C1247;font-size:14px;font-weight:700;line-height:1.6}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
a{color:#0038FF}a:hover{color:#021B4E}
*{box-sizing:border-box}
.num{font-family:'Barlow Condensed',sans-serif;font-style:italic;font-weight:800;letter-spacing:.01em}
.skew{display:inline-block;transform:skewX(-9deg)}

/* ヒーロー：流れる光の筋 */
.streak{position:absolute;height:3px;border-radius:3px;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.85));animation:streak 1.6s linear infinite}
@keyframes streak{from{transform:translateX(110vw)}to{transform:translateX(-40vw)}}

/* 道路の白線 */
.road{background-color:#021B4E;background-image:repeating-linear-gradient(90deg,#FFFFFF 0 70px,transparent 70px 150px);background-size:150px 4px;background-repeat:repeat-x;background-position:0 50%;animation:road .45s linear infinite}
@keyframes road{from{background-position:0 50%}to{background-position:-150px 50%}}

/* 車体の揺れとタイヤ回転 */
.car{animation:bob .5s ease-in-out infinite alternate}
@keyframes bob{from{transform:translateY(0)}to{transform:translateY(-4px)}}
.wheel{transform-box:fill-box;transform-origin:center;animation:spin .35s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* 見出しの登場 */
.rise{opacity:0;animation:rise .8s cubic-bezier(.2,.8,.2,1) forwards}
.d1{animation-delay:.1s}.d2{animation-delay:.25s}.d3{animation-delay:.4s}.d4{animation-delay:.55s}
@keyframes rise{from{opacity:0;transform:translateY(28px) skewX(-9deg)}to{opacity:1;transform:translateY(0) skewX(-9deg)}}
.rise-flat{opacity:0;animation:riseflat .8s cubic-bezier(.2,.8,.2,1) forwards}
@keyframes riseflat{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}

/* CTAボタンの波紋 */
.pulse{position:relative}
.pulse::after{content:"";position:absolute;inset:-4px;border-radius:999px;border:3px solid #19C6FF;animation:ring 1.8s ease-out infinite;pointer-events:none}
@keyframes ring{from{opacity:.9;transform:scale(1)}to{opacity:0;transform:scale(1.15)}}

/* 帯の流れる文字 */
/* 同じ文を6回並べ、3回分（半分）動かして先頭に戻すと継ぎ目なく流れる */
/* スマホでは横に長すぎると途中で描画が消えるブラウザがあるため、2回分だけ並べて1回分ずつ動かす（下の max-width:720px） */
.marquee{display:flex;width:max-content;animation:marquee 66s linear infinite;will-change:transform;backface-visibility:hidden}
@keyframes marquee{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}

/* スクロールで出てくる */
@supports (animation-timeline: view()){
.rv{animation:rv linear both;animation-timeline:view();animation-range:entry 0% cover 28%}
@keyframes rv{from{opacity:0;transform:translateY(48px)}to{opacity:1;transform:none}}
.rv-x{animation:rvx linear both;animation-timeline:view();animation-range:entry 0% cover 30%}
@keyframes rvx{from{opacity:0;transform:translateX(-60px)}to{opacity:1;transform:none}}
}

/* サンクスページ：費用の目安 */
.tk-kind{min-height:44px;padding:0 16px;border-radius:999px;border:2px solid #C9D8FB;background:#FFFFFF;color:#021B4E;font:inherit;font-weight:700;font-size:14px;cursor:pointer}
.tk-kind[aria-pressed="true"]{background:#0038FF;border-color:#0038FF;color:#FFFFFF}
.tk-summary{display:flex;flex-wrap:wrap;gap:12px 40px;align-items:flex-end}
.tk-summary p{margin:0}
.tk-summary-label{font-size:13px;font-weight:700;color:#4A5A80}
.tk-summary-main{font-size:44px;line-height:1.1;color:#0038FF}
.tk-summary-sub{font-size:26px;line-height:1.2;color:#021B4E}
.tk-empty{margin:0;font-size:15px;line-height:1.9}
.tk-chart-title{margin:0 0 12px;font-size:13px;font-weight:700;color:#4A5A80}
.tk-bars{display:flex;gap:2px;align-items:stretch}
.tk-col{flex:1;min-width:0;display:flex;flex-direction:column}
.tk-bar{position:relative;height:200px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;border-bottom:1px solid #B9CBF2;outline:none;cursor:default}
.tk-bar-fill{display:block;width:72%;max-width:96px;min-height:4px;border-radius:4px 4px 0 0;background:#B9CBF2;transition:background-color .15s ease}
.tk-bar.is-peak .tk-bar-fill{background:#0038FF}
.tk-bar:hover .tk-bar-fill,.tk-bar:focus-visible .tk-bar-fill{background:#6E92F5}
.tk-bar.is-peak:hover .tk-bar-fill,.tk-bar.is-peak:focus-visible .tk-bar-fill{background:#002BC4}
.tk-bar:focus-visible{box-shadow:inset 0 0 0 2px #0038FF;border-radius:6px}
.tk-bar-value{margin-bottom:6px;font-size:22px;color:#021B4E}
.tk-axis{padding-top:8px;text-align:center;font-size:12px;font-weight:700;color:#4A5A80;line-height:1.3}
.tk-tip{min-height:1.8em;margin:10px 0 0;font-size:13px;font-weight:700;color:#021B4E}
.tk-table{margin-top:8px;font-size:13px}
.tk-table summary{cursor:pointer;color:#0038FF;font-weight:700}
.tk-table table{margin-top:8px;border-collapse:collapse;width:100%;max-width:420px}
.tk-table th,.tk-table td{border-bottom:1px solid #D9E3FA;padding:6px 8px;text-align:left}
@media (max-width:720px){
.tk-title{font-size:28px !important}
.tk-steps{grid-template-columns:1fr !important}
.tk-card{padding:20px !important}
.tk-summary-main{font-size:34px}
.tk-summary-sub{font-size:20px}
.tk-bar{height:160px}
.tk-bar-value{font-size:18px}
.tk-axis{font-size:10px}
}

/* 料金表（メニューごとの料金の目安） */
.menu-table-wrap{margin-top:40px;border-radius:18px;overflow:hidden;border:1px solid #B9CBF2;background:#FFFFFF}
.menu-table{width:100%;border-collapse:collapse;font-size:16px}
.menu-table thead th{padding:16px 20px;background:#021B4E;color:#FFFFFF;font-weight:700;font-size:14px;text-align:left}
.menu-table thead th:last-child{background:#0038FF;text-align:right}
.menu-table tbody th,.menu-table tbody td{padding:18px 20px;border-top:1px solid #DCE5F7;text-align:left;vertical-align:middle}
.menu-table tbody th{font-weight:900;font-size:17px;white-space:nowrap}
.menu-desc{color:#4A5A80;font-size:15px;line-height:1.7}
.menu-note{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;background:#EEF3FF;color:#0038FF;font-size:12px;font-weight:700}
.menu-price{text-align:right !important;background:#F5F8FF;white-space:nowrap}
.menu-price .num{font-size:30px;color:#0038FF}
/* フォームの「現在地から入力」（位置情報が使えるブラウザだけ表示） */
.geo-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.geo-btn{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 14px;border:2px solid #0038FF;border-radius:999px;background:#FFFFFF;color:#0038FF;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.geo-btn:disabled{opacity:.6;cursor:wait}
.geo-msg{font-size:12px;line-height:1.6;color:#4A5A80}
.geo-msg.is-ok{color:#0A7A3E;font-weight:700}
/* ファーストビューの現在時刻 */
.hero-clock{margin:0 0 10px;display:flex;align-items:center;gap:6px;font-size:15px;font-weight:700;color:#FFFFFF}
.hero-clock-time{font-size:20px;font-weight:900;color:#7FE3FF;letter-spacing:.02em;font-variant-numeric:tabular-nums}
/* ファーストビューの見出し：ABテストで長いキャッチを出すときは、文字数（--catch-len）に合わせて小さくし、折り返さないようにする */
.h1{font-size:min(64px,calc(760px / var(--catch-len,9))) !important}
/* ファーストビューの3つのポイント（金の月桂樹で囲んだバッジ）。PCでは左寄せで並べる */
.hero-points{margin:24px 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:12px 24px}
.hero-point{display:flex;align-items:center;gap:2px;min-width:0}
.hero-laurel{flex:none;width:30px;height:76px;filter:drop-shadow(0 1px 1px rgba(2,27,78,.35))}
.hero-laurel-r{transform:scaleX(-1)}
.hero-point-text{display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0;line-height:1.25}
.hero-point-top{font-size:12px;font-weight:700;color:#FBE7A1;white-space:nowrap}
.hero-point-main{margin-top:2px;font-size:21px;font-weight:900;color:#FFFFFF;letter-spacing:.02em;white-space:nowrap;text-shadow:0 1px 2px rgba(2,27,78,.35)}
@media (max-width:1100px){.hero-point-main{font-size:18px}}
@media (max-width:720px){
/* スマホ：3つを同じ幅で並べ、月桂樹を左右の端に置いて文字を大きく中央に重ねる（文字が月桂樹にかかってもよい） */
.hero-points{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hero-point{position:relative;height:80px;justify-content:center}
.hero-laurel{position:absolute;top:0;left:0;width:20px;height:80px}
.hero-laurel-r{left:auto;right:0}
.hero-point-text{position:relative;z-index:1;padding:0 2px;width:100%}
.hero-point-top{font-size:min(13px,3vw);line-height:1.3;white-space:nowrap;text-shadow:0 1px 2px rgba(2,27,78,.6)}
.hero-point-main{margin-top:4px;font-size:min(22px,5.1vw);letter-spacing:0;text-shadow:0 1px 3px rgba(2,27,78,.7)}
}
.hero-point-mark{margin-left:1px;font-size:.5em;font-weight:700;vertical-align:super;color:#FBE7A1}
.hero-point-notes{margin:8px 0 0;display:flex;flex-direction:column;gap:2px;font-size:11px;line-height:1.6;color:#BFEFFF}
.hero-point-mark:empty,.hero-point-notes:empty{display:none}
/* PCでは、道路を走るトラックの絵（ファーストビューの下端）にポイントと注釈が重ならないよう、左の列の下を空ける */
@media (min-width:961px){.hero-copy{padding-bottom:84px}}
/* 口コミ（カードの中身は Worker が src/reviews.js で作る） */
.review-card{flex:0 0 min(340px,85%);scroll-snap-align:start;border-radius:18px;background:#FFFFFF;border:2px solid #D9E3FA;padding:22px;display:flex;flex-direction:column;gap:12px}
.review-head{display:flex;align-items:center;gap:12px}
.review-avatar{flex:none;width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;overflow:hidden}
.review-avatar svg{width:34px;height:34px;margin-top:8px}
.review-who{display:flex;flex-direction:column;gap:2px;min-width:0}
.review-name{margin:0;font-size:15px;font-weight:900;color:#0A1A3F}
.review-meta{margin:0;font-size:12px;font-weight:700;color:#4A5A80}
.review-stars{display:flex;gap:2px}
.review-body{margin:0;font-size:15px;line-height:1.8;color:#2A3A60}
.price-from::after{content:"〜";font-size:.6em;margin-left:1px}
.price-tbd{font-family:'Noto Sans JP',sans-serif !important;font-style:normal !important;font-size:15px !important;font-weight:700 !important;color:#4A5A80 !important;display:inline-block;white-space:normal;line-height:1.4;text-align:right}
/* スマホの料金表は金額の欄が狭いので、「お電話でご案内」は小さめにして2行に折り返す */
@media (max-width:720px){.menu-price .price-tbd{font-size:13px !important;max-width:5em}}

/* 送信中の表示 */
.sending-overlay{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(2,27,78,.55);backdrop-filter:blur(2px)}
.sending-box{width:100%;max-width:340px;padding:32px 24px;border-radius:20px;background:#FFFFFF;text-align:center;box-shadow:0 24px 60px rgba(2,27,78,.35)}
.sending-spinner{display:block;width:56px;height:56px;margin:0 auto 16px;border-radius:50%;border:5px solid #DCE5F7;border-top-color:#0038FF;animation:spin .8s linear infinite}
.sending-title{margin:0;font-weight:900;font-size:20px;color:#021B4E}
.sending-text{margin:8px 0 0;font-size:14px;line-height:1.8;color:#4A5A80}
#kr-submit.is-sending{cursor:wait;opacity:.85}
@keyframes spin{to{transform:rotate(360deg)}}

/* カードのホバー */
.card{transition:transform .25s ease,box-shadow .25s ease}
.card:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(0,56,255,.18)}
.btn{transition:transform .15s ease,background-color .15s ease}
.btn:hover{transform:translateY(-2px)}
.btn:active{transform:translateY(1px)}

/* フォーム */
.field{width:100%;min-height:46px;padding:9px 12px;font-size:16px;font-family:inherit;border:2px solid #C9D6F5;border-radius:10px;background:#fff;color:#0A1A3F}
.field:focus{outline:none;border-color:#0038FF;box-shadow:0 0 0 4px rgba(0,56,255,.15)}
.field-err{border-color:#C2185B}
/* クレジットカード欄の注釈とカード一覧の間を詰める（PC） */
.pay-note{margin-top:-16px !important}
/* 対応エリアの都道府県ボタン（押すとフォームのエリアに入る） */
.area-chip{transition:border-color .15s ease,color .15s ease,background-color .15s ease}
.area-chip:hover,.area-chip:focus-visible{border-color:#0038FF !important;color:#0038FF !important;background:#F5F8FF !important}
#form{scroll-margin-top:88px}
.field-flash{animation:fieldflash 1.6s ease-out}
@keyframes fieldflash{0%,30%{border-color:#0038FF;box-shadow:0 0 0 4px rgba(0,56,255,.25);background:#F5F8FF}100%{box-shadow:0 0 0 0 rgba(0,56,255,0)}}
.field:disabled{background:#F1F4FA;color:#8A96B3;border-color:#DCE3F2;cursor:not-allowed}
.submit-off{background:#9AA8C7 !important;box-shadow:none !important;cursor:not-allowed !important;transform:none !important}

details summary{cursor:pointer;list-style:none}
details summary::-webkit-details-marker{display:none}
details[open] .plus{transform:rotate(45deg)}
.plus{transition:transform .2s ease}

/* スマホ下部固定CTA */
/* 比較表の罫線：すべてのセルを同じ細い線で区切り、「くるまレスキュー」列は色で目立たせる */
/* 各セクションの上下の余白（PC） */
.sec{padding-top:72px !important;padding-bottom:72px !important}
.pay-sec{padding-top:48px !important;padding-bottom:48px !important}
.mbar{display:none}
/* 赤い立体ボタン（光が走る）：送信ボタンとスマホ下部の固定ボタンで共通 */
.btn-red{background:linear-gradient(180deg,#FF3355 0%,#D7002F 55%,#B80028 100%);text-shadow:0 1px 0 rgba(0,0,0,.25);box-shadow:0 6px 0 #8A001E,0 10px 18px rgba(184,0,40,.3),inset 0 1px 0 rgba(255,255,255,.45);transition:transform .12s ease,box-shadow .12s ease}
.btn-red:active{transform:translateY(4px) !important;box-shadow:0 2px 0 #8A001E,0 4px 8px rgba(184,0,40,.3),inset 0 1px 0 rgba(255,255,255,.45)}
.shine{position:relative;overflow:hidden}
.shine::before{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.55) 50%,rgba(255,255,255,0) 100%);transform:skewX(-20deg);animation:shine 2.6s ease-in-out infinite;pointer-events:none}
.submit-off::before{display:none}
@keyframes shine{0%{left:-60%}55%,100%{left:130%}}
@media (max-width:960px){.hide-sp{display:none !important}}
/* スマホ・タブレットのハンバーガーメニュー */
.menu-btn{display:none;width:44px;height:44px;flex:none;border:0;border-radius:10px;background:transparent;color:#021B4E;align-items:center;justify-content:center;cursor:pointer}
.menu-btn:focus-visible{outline:3px solid rgba(0,56,255,.4)}
.menu-btn .icon-close,.menu-btn[aria-expanded="true"] .icon-open{display:none}
.menu-btn[aria-expanded="true"] .icon-close{display:block}
.sp-menu{position:absolute;left:0;right:0;top:100%;display:flex;flex-direction:column;padding:4px 20px 20px;background:#FFFFFF;border-bottom:1px solid #E3EAFB;box-shadow:0 14px 28px rgba(2,27,78,.14)}
.sp-menu a{padding:14px 4px;border-bottom:1px solid #EEF3FF;color:#021B4E;font-weight:700;font-size:16px;text-decoration:none}
.sp-menu .sp-menu-cta{margin-top:14px;border:0;border-radius:12px;background:#0038FF;color:#FFFFFF;text-align:center}
@media (max-width:960px){.menu-btn{display:inline-flex}}
@media (min-width:961px){.sp-menu{display:none !important}}
@media (max-width:720px){
.menu-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.menu-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) 112px;align-items:center;border-top:1px solid #DCE5F7}
.menu-table tbody tr:first-child{border-top:0}
.menu-table tbody th,.menu-table tbody td{border-top:0;padding:0}
.menu-table tbody th{grid-column:1;padding:14px 16px 2px 16px;font-size:16px}
.menu-desc{grid-column:1;padding:0 16px 14px 16px !important;font-size:13px}
.menu-price{grid-column:2;grid-row:1/3;align-self:stretch;display:flex;align-items:center;justify-content:flex-end;padding:0 14px 0 8px !important}
.menu-price .num{font-size:22px}
.menu-note{display:table;margin:4px 0 0}
.mbar{display:flex}
.h1{font-size:min(36px,calc((100vw - 56px) / var(--catch-len,9))) !important;line-height:1.4 !important}
.hdr-inner{padding:8px 16px !important;flex-wrap:nowrap !important}
.hdr-logo-img{height:38px !important}
.ftr-logo{height:40px !important}
.ftr-right{align-items:flex-start !important}
.ftr-links{justify-content:flex-start !important}
.hdr-cta{display:none !important}
.closed-bar{padding:6px 12px !important;gap:2px 8px !important}
.closed-bar span{font-size:12px !important}
.road-strip{margin-top:0 !important;height:76px !important}
.area-map{right:-30% !important;height:90% !important;opacity:.5 !important}
.tow{width:190px !important}
.tow svg{width:190px;height:69px}
/* 比較表：スマホでは1項目ずつ「よくある表示｜くるまレスキュー」を横に並べ、横スクロールなしで比べる */
.sec-title{font-size:30px !important}
/* 各セクションの上下の余白と、流れる帯の文字をスマホ向けに小さく */
.sec{padding-top:36px !important;padding-bottom:36px !important}
.marquee-band{padding:8px 0 !important}
.marquee-text .num{font-size:16px !important;padding-right:24px !important}
.marquee-text .num:nth-child(n+3){display:none}
.marquee-text{animation-duration:14s}
/* クレジットカード欄：スマホでは小さくまとめる */
.pay-sec{padding:24px 16px !important}
.pay-box{padding:18px !important;gap:14px !important;border-radius:16px !important}
.pay-icon{width:44px !important;height:44px !important;border-radius:12px !important}
.pay-icon svg{width:24px;height:24px}
.pay-title{font-size:20px !important}
.pay-desc{font-size:13px !important;line-height:1.6 !important}
.pay-list{grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:6px !important}
.pay-logo{height:15px !important}
.pay-logo-sym{height:24px !important}
.pay-note{margin-top:0 !important}
.pay-chip{min-height:38px !important;padding:4px !important;font-size:12px !important;line-height:1.2;text-align:center;border-width:1px !important}
}
@media (prefers-reduced-motion:reduce){
*,*::before,*::after{animation:none !important;transition:none !important}
.rise,.rise-flat{opacity:1}
}
.consent-note{margin:0;font-size:12px;line-height:1.7;color:#4A5A80}
