/* ★ 2026-11-21 査定LPリニューアル分（satei.css のあとに読む）
   ・ご事情別の売り方・査定（写真つきのカード）… .cs-
   ・かんたん3ステップ … .st3-
   ・フォームの上の「ご事情：○○」 … .case-chip
   ・テーマ別の専用欄（相続・住み替え・空き家）と連携先の列 … .tb-
   ・「＋くわしく」のポップアップ（Prompt Box の動きを移植。動きは detail.js） … .dt- / .ask-
   文字の大きさは em（「文字を大きく」を押したときも一緒に大きくなるように） */

/* ---- ご事情別のカード ---- */
/* この欄だけ横幅を広げて、パソコンでは3列に（ほかの欄は satei.css のまま） */
.cs-sec .in{max-width:1024px;}
.cs-sub{margin:-.3em 0 1.4em;color:#3a4657;}
.cs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:28px 22px;margin:0 0 32px;}
.cs-card{display:flex;flex-direction:column;background:var(--card,#FBFCF8);border:1px solid var(--line,#D8D0C2);border-radius:14px;overflow:hidden;box-shadow:0 2px 10px rgba(27,42,65,.06);}
.cs-card.is-on{border:3px solid var(--shu,#B4441A);}
.cs-ph{position:relative;aspect-ratio:16/10;background:#DCE5D4;overflow:hidden;}
.cs-ph img{display:block;width:100%;height:100%;object-fit:cover;}
.cs-ph.cs-ill{background:#fff;}
.cs-ph.cs-ill img{object-fit:contain;object-position:center top;}
.cs-tag{position:absolute;left:10px;top:10px;max-width:calc(100% - 20px);background:var(--shu,#B4441A);color:#fff;font-size:.76em;font-weight:700;line-height:1.45;padding:4px 9px;border-radius:4px;}
.cs-ov{position:absolute;left:10px;right:10px;bottom:10px;background:rgba(255,255,255,.94);border-radius:10px;padding:8px 10px;text-align:center;box-shadow:0 2px 8px rgba(0,0,0,.10);}
.cs-ov p{margin:0;}
.cs-q{font-size:.78em;font-weight:700;color:#3a4657;line-height:1.5;}
.cs-t{margin-top:2px!important;font-size:1.05em;font-weight:900;color:var(--ink,#1B2A41);line-height:1.45;}
.cs-bd{display:flex;flex-direction:column;flex:1 1 auto;padding:14px 16px 16px;}
.cs-k{display:none;}
.cs-mine{margin:0 0 6px;font-size:.8em;font-weight:700;color:var(--shu,#B4441A);}
.cs-card h3{margin:0 0 6px;font-size:1.12em;line-height:1.5;color:var(--ink,#1B2A41);}
.cs-lead{margin:0 0 6px;font-size:.94em;line-height:1.75;}
.cs-more{margin:auto 0 0;background:none;border:0;padding:0;}
.cs-more summary{cursor:pointer;display:inline-block;color:var(--green,#115301);font-weight:700;font-size:.92em;padding:6px 0;list-style:none;}
.cs-more summary::-webkit-details-marker{display:none;}
.cs-more summary::after{content:none;}
.cs-more summary::before{content:"＋ ";}
.cs-more[open] summary::before{content:"－ ";}
.cs-more p{margin:4px 0 0;font-size:.92em;line-height:1.8;}
.cs-go{margin-top:auto;display:flex;align-items:center;justify-content:center;min-height:48px;padding:6px 12px;border:2px solid var(--shu,#B4441A);border-radius:10px;color:var(--shu,#B4441A);background:#fff;font-weight:700;text-decoration:none;text-align:center;line-height:1.4;}
.cs-go:hover,.cs-go:focus-visible{background:var(--shu,#B4441A);color:#fff;}
html.big .cs-grid{grid-template-columns:repeat(auto-fill,minmax(360px,1fr));}
/* テーマ版（検索された内容に合うカード）は、横1列ぶんを使って大きく出す */
@media (min-width:600px){
  .cs-card.is-on{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);}
  .cs-card.is-on .cs-ph{aspect-ratio:auto;height:100%;min-height:280px;}
  .cs-card.is-on .cs-bd{padding:20px 24px 22px;}
  .cs-card.is-on h3{font-size:1.3em;}
}

/* スマホ：写真を左に小さく、見出しを右に。「くわしく」とボタンは横いっぱい（文が細長くならないように） */
@media (max-width:599px){
  .cs-grid{grid-template-columns:1fr;gap:12px;margin-bottom:24px;}
  html.big .cs-grid{grid-template-columns:1fr;}
  .cs-card{display:grid;grid-template-columns:96px minmax(0,1fr);column-gap:12px;align-items:start;padding:12px;}
  .cs-card.is-on{padding:10px;}
  .cs-bd{display:contents;}
  .cs-mine{grid-column:1/-1;grid-row:1;margin:0 0 8px;}
  .cs-ph{grid-column:1;grid-row:2;aspect-ratio:1/1;border-radius:10px;margin:0;}
  .cs-hd{grid-column:2;grid-row:2;min-width:0;}
  .cs-more{grid-column:1/-1;grid-row:3;margin:8px 0 0;}
  .cs-go{grid-column:1/-1;grid-row:4;margin-top:10px;}
  .cs-tag,.cs-ov{display:none;}
  .cs-k{display:block;margin:0 0 2px;font-size:.78em;font-weight:700;color:var(--shu,#B4441A);line-height:1.45;}
  .cs-card h3{font-size:1.04em;}
  .cs-lead{font-size:.9em;margin-bottom:0;}
}

/* ---- かんたん3ステップ ---- */
.st3-sec{padding-top:32px;padding-bottom:32px;}
.st3-sec .in{max-width:1024px;}
.st3-sec .st3-h{font-size:1.35em;text-align:center;margin-bottom:.8em;}
.st3{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.st3 li{position:relative;background:var(--card,#FBFCF8);border:1px solid var(--line,#D8D0C2);border-radius:12px;padding:16px 16px 14px 64px;margin:0;}
.st3-n{position:absolute;left:14px;top:16px;width:38px;height:38px;border-radius:50%;background:var(--green,#115301);color:#fff;font-weight:900;display:flex;align-items:center;justify-content:center;font-size:1.1em;line-height:1;}
.st3 p{margin:0;}
.st3-t{font-weight:900;line-height:1.5;}
.st3-d{margin-top:4px!important;font-size:.9em;line-height:1.7;color:#3a4657;}
@media (max-width:899px){
  .st3{grid-template-columns:1fr;gap:8px;}
  .st3 li{padding:12px 14px 12px 60px;}
  .st3-n{top:12px;}
}

/* ---- フォームの上の「ご事情：○○」 ---- */
.case-chip{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px;padding:4px 4px 4px 12px;background:#FFF4EE;border:1px solid #F0C9B6;border-radius:999px;font-size:.88em;line-height:1.5;}
.case-chip[hidden]{display:none;}
.case-chip b{color:var(--shu,#B4441A);}
.case-x{flex:0 0 auto;min-width:36px;min-height:36px;border:0;border-radius:50%;background:transparent;color:#555;font-size:1.1em;cursor:pointer;}
.case-x:hover,.case-x:focus-visible{background:#F6DED2;}

/* ---- テーマ別の専用欄（相続・住み替え・空き家） ---- */
.tb-sec .in{max-width:1024px;}
.tb-head{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:28px;align-items:center;margin:0 0 28px;}
.tb-kick{display:inline-block;margin:0 0 10px;padding:4px 12px;background:var(--shu,#B4441A);color:#fff;font-size:.82em;font-weight:700;border-radius:4px;line-height:1.5;}
.tb-sec .tb-copy h2{margin:0 0 .5em;line-height:1.45;word-break:auto-phrase;}
.tb-pts h3,.tb-why,.cs-card h3,.cs-t{word-break:auto-phrase;}
.tb-lead{margin:0;line-height:1.85;}
.tb-ph{border-radius:14px;overflow:hidden;aspect-ratio:4/3;background:#DCE5D4;}
.tb-ph img{display:block;width:100%;height:100%;object-fit:cover;}
.tb-ph.cs-ill{background:#fff;}
.tb-ph.cs-ill img{object-fit:contain;}
.tb-why{display:flex;align-items:center;gap:14px;margin:0 0 18px;font-weight:900;font-size:1.15em;color:var(--ink,#1B2A41);}
.tb-why::before,.tb-why::after{content:"";flex:1 1 auto;height:1px;background:var(--line,#D8D0C2);}
.tb-pts{list-style:none;margin:0 0 28px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;}
.tb-pts li{margin:0;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line,#D8D0C2);border-top:4px solid var(--green,#115301);border-radius:12px;padding:16px 18px 18px;}
.tb-no{margin:0 0 4px;font-size:.8em;font-weight:900;letter-spacing:.06em;color:var(--green,#115301);}
.tb-pts h3{margin:0 0 6px;font-size:1.12em;line-height:1.5;color:var(--ink,#1B2A41);}
.tb-p{margin:0 0 12px;font-size:.93em;line-height:1.8;}
.tb-diff{margin-top:auto;background:#FFF4EE;border-left:4px solid var(--shu,#B4441A);border-radius:0 8px 8px 0;padding:10px 12px;}
.tb-diff p{margin:0;font-size:.9em;line-height:1.7;}
.tb-diff .tb-diff-h{margin:0 0 2px;font-weight:900;color:var(--shu,#B4441A);font-size:.82em;}
.tb-net{margin:0 0 28px;padding:16px 18px;background:#fff;border:1px dashed var(--line,#D8D0C2);border-radius:12px;}
.tb-net-h{margin:0 0 10px;font-weight:900;}
.tb-net-h .nw{font-weight:700;font-size:.85em;color:#3a4657;}
.tb-net ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;}
.tb-net li{margin:0;padding:8px 10px;background:var(--paper,#F6F8F1);border-radius:8px;line-height:1.45;}
.tb-net li b{display:block;font-size:.92em;color:var(--ink,#1B2A41);}
.tb-net li span{display:block;font-size:.78em;color:#3a4657;}
.cs-sec .tb-net{margin-top:-8px;}
html.big .tb-pts{grid-template-columns:1fr;}
@media (max-width:599px){
  .tb-head{grid-template-columns:1fr;gap:14px;margin-bottom:22px;}
  .tb-ph{order:-1;aspect-ratio:16/9;}
  .tb-pts{gap:12px;}
  .tb-net ul{grid-template-columns:1fr 1fr;}
}

/* 幅を広げた欄（カード・専用欄）の中のボタンは、今までの幅のまま真ん中に */
.cs-sec .in > .btn,.tb-sec .in > .btn{width:100%;max-width:480px;align-self:center;margin-left:auto;margin-right:auto;box-sizing:border-box;}

/* ---- 「＋くわしく」の中身（JavaScript が動かないときは、カードの中でそのまま開く） ---- */
.cs-detail{margin:6px 0 0;font-size:.9em;line-height:1.75;}
.cs-detail h4,.dt-body h4{margin:.9em 0 .3em;font-size:1em;color:var(--green,#115301);}
.cs-detail ol,.cs-detail ul,.dt-body ol,.dt-body ul{margin:0;padding:0;list-style:none;}
.cs-detail li,.dt-body li{position:relative;margin:0 0 .35em;padding-left:1.6em;}
.cs-detail ul li::before,.dt-body ul li::before{content:"";position:absolute;left:.5em;top:.75em;width:6px;height:6px;border-radius:50%;background:var(--shu,#B4441A);}
.cs-detail ol,.dt-body ol{counter-reset:dt;}
.cs-detail ol li,.dt-body ol li{counter-increment:dt;}
.cs-detail ol li::before,.dt-body ol li::before{content:counter(dt);position:absolute;left:0;top:.2em;width:1.25em;height:1.25em;border-radius:50%;background:var(--green,#115301);color:#fff;font-size:.8em;font-weight:900;line-height:1.25em;text-align:center;}
.cs-detail mark,.dt-body mark{color:inherit;font-weight:700;background:linear-gradient(transparent 60%,#FFE08A 60%) no-repeat 0 0/100% 100%;}
.dt-lead{margin:0;font-weight:700;}

/* ---- 「＋くわしく」のポップアップ（Prompt Box の見た目：白い面・上に状態の行・右下の丸いボタン） ---- */
.dt-pop{border:0;padding:0;margin:auto;background:transparent;max-width:none;max-height:none;width:min(720px,calc(100vw - 24px));overflow:visible;color:var(--ink,#1B2A41);}
.dt-pop::backdrop{background:rgba(27,42,65,calc(.45 * var(--p,1)));}
.dt-box{position:relative;background:#fff;border-radius:14px;padding:14px 16px 14px 20px;box-shadow:0 12px 40px rgba(27,42,65,.25);transform-origin:50% 60%;}
.dt-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-height:36px;}
.dt-top .ask-st{flex:1 1 auto;margin-top:8px;}
.dt-x{appearance:none;-webkit-appearance:none;border:0;background:#F1EEE8;color:#3a4657;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;cursor:pointer;flex:none;}
.dt-x svg{width:16px;height:16px;}
.dt-x:focus-visible{outline:3px solid rgba(17,83,1,.35);outline-offset:2px;}
.dt-kick{display:inline-block;margin:0 0 6px;padding:3px 10px;background:var(--shu,#B4441A);color:#fff;font-size:.78em;font-weight:700;border-radius:4px;line-height:1.5;}
.dt-pop h3{margin:0 0 6px;font-size:1.25em;line-height:1.45;}
.dt-wrap{position:relative;overflow:hidden;overscroll-behavior:contain;font-size:.93em;line-height:1.7;scrollbar-width:none;}
.dt-wrap::-webkit-scrollbar{display:none;}
.dt-wrap.can-scroll{overflow-y:auto;}
.dt-body.reading{cursor:pointer;}
.dt-wrap.has-more{-webkit-mask-image:linear-gradient(#000 calc(100% - 48px),transparent);mask-image:linear-gradient(#000 calc(100% - 48px),transparent);}
.dt-body h4{margin:.7em 0 .2em;}
.dt-body li{margin-bottom:.2em;}
.dt-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}
/* 読み上げの1文字ずつ（ブロックは、最初の文字が出るまで隠す） */
.rd-c{display:none;}
.rd-c.on{display:inline;animation:rdIn .3s ease both;}
.dt-body.reading .rd-b{display:none;}
.dt-body.reading .rd-b.on{display:block;}
@keyframes rdIn{from{opacity:0}to{opacity:1}}
.dt-body mark{transition:background-size .7s ease;}
.dt-body.reading mark:not(.lit){background-size:0% 100%;}
/* 状態の行と丸いボタン（Prompt Box と同じ部品） */
.ask-st{display:flex;align-items:center;gap:8px;height:0;opacity:0;overflow:hidden;font-size:.8em;font-weight:700;color:#5b6472;}
.ask-mk{width:8px;height:8px;border-radius:50%;background:var(--ink,#1B2A41);flex:none;transition:background .25s ease;}
.ask-st.think .ask-mk{animation:askPulse 1s ease-in-out infinite;}
.ask-st.think .ask-lb{background:linear-gradient(90deg,#9aa1aa 20%,var(--ink,#1B2A41) 50%,#9aa1aa 80%) 0 0/200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:askShine 1.4s linear infinite;}
.ask-st.done .ask-mk{background:var(--green,#115301);}
.ask-st.done .ask-lb{color:var(--green,#115301);}
@keyframes askPulse{50%{transform:scale(.55);opacity:.5}}
@keyframes askShine{to{background-position:-200% 0}}
.ask-send{appearance:none;-webkit-appearance:none;border:0;padding:0;margin:0;cursor:pointer;flex:none;position:relative;width:44px;height:44px;border-radius:50%;background:#ECE8E0;color:#5b6472;transition:background .2s ease,color .2s ease;}
.ask-send.ready{background:var(--ink,#1B2A41);color:#fff;}
.ask-send:focus-visible{outline:3px solid rgba(180,68,26,.35);outline-offset:2px;}
.ask-send i{position:absolute;inset:0;display:grid;place-items:center;will-change:transform;}
.ask-ar svg{width:18px;height:18px;}
.ask-stop{transform:scale(0);}
.ask-stop::after{content:"";width:12px;height:12px;border-radius:3px;background:currentColor;}
html.dt-lock,html.dt-lock body{overflow:hidden;}
@media (max-width:599px){
  .dt-pop{width:calc(100vw - 16px);}
  .dt-box{padding:12px 12px 12px 16px;}
  .dt-pop h3{font-size:1.12em;}
}
@media (prefers-reduced-motion:reduce){.ask-st.think .ask-mk,.ask-st.think .ask-lb{animation:none;}.ask-st.think .ask-lb{color:var(--ink,#1B2A41);background:none;}.rd-c.on{animation:none;}}
