/* 楽いち：styles / site-frame / ui-shell の後に読む本文用の補足。
 * HOME の hero・家族画像・header・テーマ初期表示には規則を当てない。
 * HTML は通常フローの直接リンク。価格・工事条件・reform は対象外。 */

/* 新しいホーム本文だけに読みやすいサイズを設定。 */
body.home-hub.ui-focused.ui-home main :is(.home-routes, .home-video, .home-appraisal, .home-reading, .home-discover, .home-contact) {
  min-width: 0;
  padding-block: 48px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
body.home-hub.ui-focused.ui-home main :is(.home-routes, .home-video, .home-appraisal, .home-reading, .home-discover, .home-contact) .section-heading {
  max-width: 780px;
  margin: 0 0 24px;
  text-align: left;
}
body.home-hub.ui-focused.ui-home main :is(.home-routes, .home-video, .home-appraisal, .home-reading, .home-discover, .home-contact) h2 {
  margin: 0 0 12px;
  color: var(--brown);
  font-family: var(--round);
  font-size: 28px;
  line-height: 1.55;
  letter-spacing: .015em;
}
body.home-hub.ui-focused.ui-home main :is(.home-routes, .home-video, .home-appraisal, .home-reading, .home-discover, .home-contact) .section-heading > p:last-child { margin: 0; font-size: 16px; }
body.home-hub.ui-focused.ui-home main :is(.home-route, .home-reading-card, .home-discover-link, .home-appraisal__actions, .home-contact__inner) { min-width: 0; }
body.home-hub.ui-focused.ui-home main :is(.home-route, .home-reading-card, .home-discover-link) { color: var(--ink); text-decoration: none; }
body.home-hub.ui-focused.ui-home main :is(.home-route, .home-reading-card, .home-discover-link, .home-appraisal__actions a, .home-appraisal__actions button, .home-contact a, .home-contact button):focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
body.home-hub.ui-focused.ui-home main span.home-legacy-anchor { position: static; display: inline; width: 0; height: 0; margin: 0; padding: 0; border: 0; font-size: 0; line-height: 0; }

/* 三つの入口：開閉ではなく、そのまま読めるリンク。 */
body.home-hub.ui-focused.ui-home main section#paths.home-routes { padding-block: 32px 40px; background: #fffdf8; }
body.home-hub.ui-focused.ui-home main .home-route-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.home-hub.ui-focused.ui-home main a.home-route {
  --route-wash: var(--orange-pale);
  --route-edge: #e4c68f;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  align-items: start;
  gap: 12px;
  min-height: 120px;
  padding: 22px 18px;
  border: 1px solid var(--route-edge);
  border-radius: 18px;
  background: var(--route-wash);
}
body.home-hub.ui-focused.ui-home main a.home-route--owner { border-top: 3px solid var(--orange); }
body.home-hub.ui-focused.ui-home main a.home-route--reform { --route-wash: #fff8ec; --route-edge: #ecd8b5; }
body.home-hub.ui-focused.ui-home main a.home-route--buy { --route-wash: var(--green-pale); --route-edge: #c9dbb9; }
body.home-hub.ui-focused.ui-home main .home-route__number { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--brown); background: #fff9; font-family: var(--round); font-weight: 700; }
body.home-hub.ui-focused.ui-home main .home-route > div { min-width: 0; }
body.home-hub.ui-focused.ui-home main .home-route h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.55; }
body.home-hub.ui-focused.ui-home main .home-route p { margin: 0; font-size: 16px; line-height: 1.8; }
body.home-hub.ui-focused.ui-home main .home-route > b { align-self: center; color: var(--green); font-size: 23px; line-height: 1; }

/* 動画は常時表示。旧動画の960px・大きな装飾を本文サイズに戻す。 */
body.home-hub.ui-focused.ui-home main section#promo.home-video.promo-video { display: block; padding-block: 32px; background: var(--cream); }
body.home-hub.ui-focused.ui-home main .home-video > .page-width { max-width: 780px; }
body.home-hub.ui-focused.ui-home main .home-video .promo-video__heading { margin: 0 0 32px; }
body.home-hub.ui-focused.ui-home main .home-video .promo-video__heading .eyebrow { margin-bottom: 8px; font-size: 13px; }
body.home-hub.ui-focused.ui-home main .home-video figure.promo-video__player { display: block; width: 100%; max-width: 780px; margin: 0 auto; }
body.home-hub.ui-focused.ui-home main .home-video .promo-video__player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 16px; background: #efe6d6; box-shadow: 0 6px 18px #69452f14; }
body.home-hub.ui-focused.ui-home main .home-video .promo-video__player figcaption { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; text-align: left; }
body.home-hub.ui-focused.ui-home main .home-video ul.promo-video__points { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px 18px; margin: 16px 0 0; padding: 0; list-style: none; }
body.home-hub.ui-focused.ui-home main .home-video .promo-video__points li { position: static; min-width: 0; padding: 0; border: 0; border-radius: 0; color: var(--muted); background: none; font-size: 13px; font-weight: 500; line-height: 1.8; }
body.home-hub.ui-focused.ui-home main .home-video .promo-video__points li::before { position: static; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--green); box-shadow: none; }

/* 無料資料：絵を追加せず、金色の枠と二つのCTAを主役に。 */
body.home-hub.ui-focused.ui-home main .home-appraisal { background: #fff; }
body.home-hub.ui-focused.ui-home main .home-appraisal__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 20px 32px;
  padding: 32px;
  border: 2px solid #e6c57f;
  border-radius: 24px;
  background: linear-gradient(115deg, #fff8e8, #fffdf7);
}
body.home-hub.ui-focused.ui-home main .home-appraisal__copy p { max-width: 65ch; margin: 0; font-size: 16px; }
body.home-hub.ui-focused.ui-home main .home-appraisal__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 12px; max-width: 760px; margin-block: 20px 14px; }
body.home-hub.ui-focused.ui-home main .home-appraisal__actions :is(a.frame-link, button.appraisal-sample-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 18px;
  border: 1px solid #d7bc86;
  border-radius: 12px;
  color: var(--brown);
  background: #fff;
  font-family: var(--round);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  white-space: normal;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
body.home-hub.ui-focused.ui-home main .home-appraisal__actions a.frame-link { background: var(--orange-pale); }
body.home-hub.ui-focused.ui-home main .home-appraisal__assurance { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* 読みものは短い概要を三枚。本文の省略・固定高は使用しない。 */
body.home-hub.ui-focused.ui-home main .home-reading { background: #fffdf8; }
body.home-hub.ui-focused.ui-home main .home-reading-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
body.home-hub.ui-focused.ui-home main a.home-reading-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 44px; padding: 26px 24px; border-top: 3px solid #cfddb8; border-bottom: 1px solid var(--border); border-radius: 4px 18px 4px 4px; background: #fff; }
body.home-hub.ui-focused.ui-home main .home-reading-card:first-child { border-top-color: var(--orange); background: #fff5df; }
body.home-hub.ui-focused.ui-home main .home-reading-card small { margin-bottom: 8px; color: var(--muted); font-family: var(--round); font-size: 13px; }
body.home-hub.ui-focused.ui-home main .home-reading-card h3 { margin: 0 0 12px; font-size: 23px; line-height: 1.65; }
body.home-hub.ui-focused.ui-home main .home-reading-card p { margin: 0 0 16px; color: var(--muted); font-size: 16px; line-height: 1.9; }
body.home-hub.ui-focused.ui-home main .home-reading-card > span { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; color: var(--green); font-family: var(--round); font-size: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* エリア・街の情報・会社の案内を軽い棚に。 */
body.home-hub.ui-focused.ui-home main .home-discover { background: #f4f8ee; }
body.home-hub.ui-focused.ui-home main .home-discover-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
body.home-hub.ui-focused.ui-home main a.home-discover-link { display: block; min-height: 44px; padding: 20px 0; border-block: 1px solid #d7e2c9; }
body.home-hub.ui-focused.ui-home main .home-discover-link > span { color: var(--green); font-family: var(--round); font-size: 13px; }
body.home-hub.ui-focused.ui-home main .home-discover-link h3 { margin: 6px 0 10px; font-size: 22px; line-height: 1.6; }
body.home-hub.ui-focused.ui-home main .home-discover-link p { margin: 0; font-size: 16px; line-height: 1.8; }

/* 最後の相談欄：町子は小さく、本文と別の通常フローの列。 */
body.home-hub.ui-focused.ui-home main .home-contact { background: var(--cream); }
body.home-hub.ui-focused.ui-home main .home-contact__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); align-items: center; gap: 24px 40px; }
body.home-hub.ui-focused.ui-home main .home-contact__inner > div { min-width: 0; }
body.home-hub.ui-focused.ui-home main .home-contact__inner > div > p { max-width: 65ch; margin: 0 0 20px; font-size: 16px; }
body.home-hub.ui-focused.ui-home main .home-contact [data-line-cta] { min-width: 0; min-height: 48px; max-width: 100%; white-space: normal; }
body.home-hub.ui-focused.ui-home main .home-contact .machiko-talk--home-contact { position: static; inset: auto; display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; max-width: 320px; min-height: 0; margin: 0; padding: 0; transform: none; }
body.home-hub.ui-focused.ui-home main .home-contact .machiko-talk--home-contact > * { position: static; min-width: 0; max-width: 100%; min-height: 0; margin: 0; }
body.home-hub.ui-focused.ui-home main .home-contact .machiko-talk--home-contact img { width: auto; height: auto; max-width: 100%; max-height: 150px; aspect-ratio: auto; object-fit: contain; margin-inline: auto; }
body.home-hub.ui-focused.ui-home main .home-contact .machiko-talk--home-contact :is(p, .machiko-talk__speech, .machiko-talk__bubble) { min-width: 0; max-width: 100%; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
body.home-hub.ui-focused.ui-home main .home-contact__links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--border); }
body.home-hub.ui-focused.ui-home main .home-contact__links a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding-block: 8px; color: var(--green); font-size: 14px; line-height: 1.7; text-decoration: underline; text-underline-offset: 4px; }

/* 記事本文：段落は65ch、箇条書きと相談文も折り返して読める。 */
body.ui-focused main .frame-content .frame-block { row-gap: 0; }
body.ui-focused main .frame-content .frame-block p { max-width: 65ch; margin: 0 0 16px; font-size: 16px; line-height: 1.9; }
body.ui-focused main .frame-content .frame-block h3 { margin: 28px 0 12px; color: var(--brown); font-family: var(--round); font-size: 22px; line-height: 1.65; }
body.ui-focused main .frame-content .frame-block ul.frame-points { display: grid; gap: 6px; max-width: 65ch; margin: 0 0 16px; padding: 0; }
body.ui-focused main .frame-content .frame-block .frame-points li { padding: 4px 0 4px 23px; font-size: 16px; line-height: 1.9; }
body.ui-focused main .frame-content .frame-block .frame-points li::before { top: calc(4px + .75em); }
body.ui-focused main .frame-content :is(.article-note, .article-example) { max-width: 65ch; margin-block: 8px 24px; padding: 18px 20px; border-left: 3px solid #d8c39c; border-radius: 0 12px 12px 0; background: #fff9ec; overflow-wrap: anywhere; }
body.ui-focused main .frame-content .article-example { border-left-color: #c1d5ae; background: #f4f8ee; white-space: normal; }
body.ui-focused main .frame-content :is(.article-note, .article-example) p:last-child { margin-bottom: 0; }
body.ui-focused main .frame-content .article-sources { max-width: 65ch; margin-block: 28px 16px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
body.ui-focused main .frame-content .article-sources :is(p, li, a) { font-size: 14px; line-height: 1.8; }
body.ui-focused main .frame-content .article-sources a { display: inline; color: var(--green); text-decoration: underline; text-underline-offset: 3px; white-space: normal; overflow-wrap: anywhere; }
body.ui-focused main .frame-content .article-meta, body.ui-focused main .frame-content .article-meta p { max-width: 65ch; margin-block: 8px 16px; color: var(--muted); font-size: 13px; line-height: 1.8; }
body.ui-focused main .frame-content details.article-faq { max-width: 65ch; margin-block: 12px; padding: 0 16px; border: 1px solid var(--border); border-radius: 12px; background: #fffdf8; }
body.ui-focused main .frame-content .article-faq > summary { min-height: 44px; padding-block: 12px; color: var(--brown); font-family: var(--round); font-size: 16px; line-height: 1.7; cursor: pointer; }
body.ui-focused main .frame-content .article-faq > summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* 新二ページのみ：原本比率の絵と、高さを取りすぎない対象地域補足。 */
body.ui-focused:is(.page--appraisal, .page--consultation) main .frame-hero img { width: auto; height: auto; max-width: 100%; aspect-ratio: auto; object-fit: contain; }
body:is(.page--appraisal, .page--consultation) main :is(.consultation-intro, .appraisal-intro) { min-width: 0; padding-block: 24px; }
body:is(.page--appraisal, .page--consultation) main :is(.consultation-intro, .appraisal-intro) p { max-width: 65ch; margin-bottom: 16px; font-size: 16px; line-height: 1.9; }
body:is(.page--appraisal, .page--consultation) main :is(.consultation-intro, .appraisal-intro) .area-scope-note { max-width: 65ch; margin: 8px 0 0; padding: 8px 12px; border-left: 2px solid #c5d5b3; color: var(--muted); background: #f5f8ef; font-size: 13px; line-height: 1.75; }

@media (hover: hover) and (pointer: fine) {
  body.home-hub.ui-focused.ui-home main :is(.home-route, .home-reading-card, .home-discover-link):hover h3 { text-decoration: underline; text-decoration-color: #bd9c69; text-underline-offset: 5px; }
  body.home-hub.ui-focused.ui-home main .home-appraisal__actions :is(a, button):hover { border-color: var(--brown); }
}

@media (max-width: 900px) {
  body.home-hub.ui-focused.ui-home main .home-route-list { grid-template-columns: minmax(0, 1fr); }
  body.home-hub.ui-focused.ui-home main a.home-route { min-height: 100px; padding: 20px; }
}
@media (max-width: 760px) {
  body.home-hub.ui-focused.ui-home main :is(.home-routes, .home-appraisal, .home-reading, .home-discover, .home-contact) { padding-block: 32px; }
  body.home-hub.ui-focused.ui-home main :is(.home-reading-list, .home-discover-list, .home-appraisal__inner, .home-contact__inner) { grid-template-columns: minmax(0, 1fr); }
  body.home-hub.ui-focused.ui-home main .home-appraisal__inner { gap: 20px; padding: 24px 20px; }
  body.home-hub.ui-focused.ui-home main .home-appraisal__actions { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  body.home-hub.ui-focused.ui-home main .home-reading-card { padding: 22px 20px; }
  body.home-hub.ui-focused.ui-home main .home-discover-list { gap: 8px; }
  body.home-hub.ui-focused.ui-home main .home-contact .machiko-talk--home-contact { justify-self: start; }
  body.home-hub.ui-focused.ui-home main .home-contact__links { gap: 4px 18px; }
}
