/* マドリセカンドの見た目のルール（2026-10-10）：トップ・結果画面と同じ。施主さんが見るページ（土地・相性診断・マンション・相談・登録・マイページ・やりとり）で読む
   ・メインは緑 1色（--main）、差し色はオレンジ 1色（小さな印・見出しの短い線・マーカーだけ。ボタンには使わない）
   ・見出しは太く、上にオレンジの短い線。カードの余白は広め */
h1 { font-weight: 900; letter-spacing: .01em; }
.card { padding: 26px 22px; }
.card-title { font-size: 19px; font-weight: 900; line-height: 1.45; }
.card > .card-title:first-child::before, .card > h2:first-child::before, .card-head > .card-title::before {
  content: ''; display: block; width: 22px; height: 3px; border-radius: 2px; background: #E07B39; margin: 0 0 10px;
}
.kicker { display: flex; align-items: center; gap: 10px; letter-spacing: .08em !important; }
.kicker::before { content: ''; flex: none; width: 24px; height: 2px; background: var(--main); }
.stack > .card + .card { margin-top: 20px; } /* カードの間はゆったり */
@media (max-width: 380px) { .card { padding: 22px 18px; } }
/* 特長の印（✓無料 など）。トップと同じ */
.trust-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: -12px 0 24px; padding: 0; }
.trust-chips li { white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--main); background: var(--main-soft); border-radius: 99px; padding: 3px 10px; }
.trust-chips li::before { content: '✓ '; }
/* ===== 最初の画面の下の案内（トップ・土地・相性診断・マンションで共通） ===== */
.landing { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.ld-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 26px; }
.ld-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .22em; color: var(--main); }
.ld-eyebrow::before { content: ''; width: 18px; height: 2px; background: #E07B39; }
.ld-h { margin: 0 0 20px; font-size: clamp(22px, 6vw, 28px); font-weight: 900; line-height: 1.45; }
.ld-p { margin: 0 0 14px; font-size: 14.5px; color: var(--muted); line-height: 1.85; }
.ld-note { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
.ld-list, .ld-safe { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ld-list li, .ld-safe li { padding-left: 16px; border-left: 3px solid var(--main-soft); }
.ld-list b, .ld-safe b { display: block; font-size: 15px; }
.ld-list span, .ld-safe span { display: block; font-size: 13px; color: var(--muted); line-height: 1.7; }
.ld-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ld-steps li { display: flex; gap: 14px; align-items: flex-start; }
.ld-steps li > b { flex: none; font-size: 32px; font-weight: 900; color: var(--main); line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ld-steps p { margin: 0; font-size: 15.5px; font-weight: 900; }
.ld-steps span { display: block; font-size: 13px; color: var(--muted); line-height: 1.7; }
.ld-why { padding: 56px 6px 4px; }
.ld-why-h { margin: 0 0 18px; font-size: clamp(25px, 7.4vw, 38px); font-weight: 900; line-height: 1.4; }
.ld-why-h .hl { -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(transparent 68%, #FFF1E3 68%, #FFF1E3 94%, transparent 94%); }
.ld-why p { margin: 0 0 12px; font-size: 15px; color: var(--muted); line-height: 1.95; }
.ld-axes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ld-axes div { border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px; background: #FBFBF9; }
.ld-axes b { display: block; font-size: 15px; font-weight: 900; color: var(--main); }
.ld-axes span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.ld-faq details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: #fff; }
.ld-faq details + details { margin-top: 8px; }
.ld-faq summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.ld-faq p { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.ld-cta { text-align: center; }
.ld-cta .btn { max-width: 420px; }
@media (max-width: 480px) { .ld-sec { padding: 34px 20px; } }
/* カードの外の見出し（マイページの「わが家の診断」など）も同じ形に */
main section > h2:first-child { font-size: 19px !important; font-weight: 900; }
main section > h2:first-child::before { content: ''; display: block; width: 22px; height: 3px; border-radius: 2px; background: #E07B39; margin: 0 0 10px; }
.landing section > h2:first-child::before, .ld-sec h2::before, .ld-why h2::before { content: none !important; }
/* 短い見出しは言葉の途中で折り返さない */
.ld-axes b, .card-title { word-break: auto-phrase; }
.ld-axes b { word-break: keep-all; overflow-wrap: anywhere; }
.card > .card-title:first-child, .card > h2:first-child { margin-bottom: 8px; }
.card > .row:first-child > h2:first-child::before { content: ''; display: block; width: 22px; height: 3px; border-radius: 2px; background: #E07B39; margin: 0 0 10px; }
/* ===== 結果画面のいちばん上（相性診断・マンション。土地はページ側で地図ピンの線画） ===== */
.card.hero { position: relative; overflow: hidden; padding: 34px 22px 28px; background: linear-gradient(180deg, rgba(230,244,241,.95), #fff 52%); }
.card.hero::before { content: ''; position: absolute; top: -18px; right: -30px; width: 190px; height: 190px; opacity: .55; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23B9DCD5' stroke-width='1.6'%3E%3Crect x='10' y='10' width='100' height='100'/%3E%3Cpath d='M10 60h50V10M60 60v50M60 80h50M85 10v50'/%3E%3Cpath d='M30 110a20 20 0 0 1 20-20'/%3E%3C/svg%3E") no-repeat center / contain; }
.card.hero > * { position: relative; }
.card.hero .hero-title, .card.hero .hero-type { font-weight: 900; }
/* 2列のカード（観点など） */
.cats.cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cats-grid .cat { border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px; background: #FBFBF9; }
.cats-grid .cat-head { display: grid; gap: 2px; }
.cats-grid .cat-head span:first-child { font-size: 13.5px; }
.cats-grid .cat-head span:last-child { font-size: 26px; font-weight: 900; color: var(--main); line-height: 1.1; }
.cats-grid .cat:has(.bar i.low) .cat-head span:last-child { color: #C2601F; }
.cats-grid .cat-head span.muted { font-size: 14px; font-weight: 700; color: var(--muted); }
.cats-grid .cat .bar { margin: 6px 0 8px; }
.cats-grid .cat p { font-size: 12.5px; line-height: 1.6; margin: 0; color: var(--muted); }
.hero-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--main); }
