/* TOP上部の既存構成を整える。FVの .hero-trust / .trust-* は変更しない。 */
.home-page .topbar { background: var(--green); }
.home-page .header { box-shadow: none; border-bottom: 1px solid #e3e8e2; }
.home-page .header .phone-button { background: var(--sign-green-light); color: var(--green); box-shadow: none; border-radius: 5px; }
.home-page .header .contact-button { background: var(--green); border-radius: 5px; }
.home-page .quick { background: #fff; border: 1px solid #dce3db; box-shadow: none; border-radius: 10px; }
.home-page .quick-link { border: 1px solid #dce3db; border-radius: 5px; box-shadow: none; min-width: 0; }
.home-page .quick-link:hover { box-shadow: none; background: #f3f6f0; }
.home-page .quick-link.orange { color: #fff; background: var(--green); border-color: var(--green); }
.home-page .quick-link.orange:hover { background: var(--deep); }
.home-page .quick-link.orange :is(svg, .arrow) { color: #fff; }
.home-page .news-ticker { background: #f3f5ef; border: 0; border-radius: 8px; box-shadow: none; }
.home-page .news-ticker .mini-button { background: transparent; border: 1px solid #769c88; border-radius: 3px; color: var(--green); }
.home-page .news-ticker .badge { color: #315d45; background: #e4ebe0; border-radius: 2px; }
.home-page .services { background: #fff; }
.home-page .services .section-title { color: #202a23; font-weight: 500; }
.home-page .services .section-sub { color: #4f5d52; }
.home-page .service-card { border-color: #dce3db; border-radius: 6px; box-shadow: none; }
.home-page .service-card:hover { border-color: #86a38f; box-shadow: 0 4px 12px rgba(29,57,40,.04); }
.home-page .service-image { border-radius: 4px; }
.home-page .service-card .service-category { box-shadow: none; }
.home-page .services .outline-button { border-color: #769c88; color: var(--green); border-radius: 3px; }
.home-page .services .all-services { flex-wrap: wrap; gap: 16px; }
.home-page .services :is(a,button):focus-visible,
.home-page .quick-wrap a:focus-visible,
.home-page .header a:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
@media (min-width: 768px) {
  .home-page .header { height: auto; min-height: 90px; }
  .home-page .header .container { width: min(92%, 1440px); padding-block: 16px; gap: 18px; }
  .home-page .header .brand { min-width: 0; flex: none; }
  .home-page .header .brand-copy strong { font-size: 25px; }
  .home-page .header .nav { font-size: 12px; gap: 16px; }
  .home-page .header .phone-button { min-width: 198px; height: 56px; padding: 8px 10px; grid-template-columns: 20px 1fr; column-gap: 7px; }
  .home-page .header .phone-button strong { font-size: 20px; }
  .home-page .header .phone-button small { font-size: 9px; }
  .home-page .header .contact-button { min-width: 92px; height: 56px; }
  .home-page .hero { background: var(--cream); padding-bottom: 48px; }
  .home-page .hero-photo::after { background-image: linear-gradient(90deg,var(--cream) 0%,rgba(255,250,242,.72) 8%,rgba(255,250,242,.08) 31%,rgba(255,250,242,0) 45%); }
  .home-page .quick-wrap { width: min(90%, 1240px); margin-top: -8px; }
  .home-page .quick { height: auto; min-height: 126px; padding: 22px; gap: 12px; grid-template-columns: 130px repeat(4,minmax(0,1fr)); }
  .home-page .quick-label { padding-left: 0; }
  .home-page .quick-link { grid-template-columns: 28px minmax(0,1fr) 12px; padding: 16px 12px; gap: 10px; }
  .home-page .quick-link svg { width: 28px; height: 28px; padding: 0; border-radius: 0; background: none; }
  .home-page .quick-link b { font-size: 13px; line-height: 1.55; white-space: normal; }
  .home-page .quick-link small { font-size: 10px; line-height: 1.65; white-space: normal; }
  .home-page .news-ticker { margin-top: 24px; min-height: 142px; padding: 24px 28px; grid-template-columns: 160px minmax(0,1fr); gap: 28px; }
  .home-page .ticker-head { align-items: flex-start; }
  .home-page .ticker-head > span { font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 500; font-size: 24px; }
  .home-page .ticker-head-leaf { display: none; }
  .home-page .ticker-head .mini-button { min-height: 36px; margin-top: 12px; padding: 7px 18px; }
  .home-page .ticker-list { display: grid; grid-template-columns: 1fr; }
  .home-page .ticker-item { display: grid; grid-template-columns: 86px 115px minmax(0,1fr) 12px; align-items: center; gap: 18px; padding: 12px 0; border: 0; border-bottom: 1px solid #dce3d7; }
  .home-page .ticker-item::after { grid-column: 4; grid-row: 1; }
  .home-page .ticker-item:last-child { border-bottom: 0; }
  .home-page .ticker-item:nth-child(n+3) { display: grid; }
  .home-page .ticker-item time { font-size: 12px; }
  .home-page .ticker-item .ticker-category { display: inline-flex; justify-content: center; margin: 0; }
  .home-page .ticker-item b { font-size: 13px; font-weight: 500; line-height: 1.7; white-space: normal; }
  .home-page .ticker-next { display: none; }
  .home-page .services { padding: 64px 0 66px; }
  .home-page .services > .container { width: min(90%, 1240px); }
  .home-page .services .section-title { font-size: 30px; letter-spacing: .04em; }
  .home-page .services .section-title-leaf { width: 22px; height: 22px; }
  .home-page .services .section-sub { font-size: 13px; margin: 14px 0 32px; }
  .home-page .service-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
  .home-page .service-card { height: auto; min-height: 330px; }
  .home-page .service-card .service-image { height: 170px; margin: 4px 4px 0; }
  .home-page .service-card .service-icon { top: 193px; left: 16px; width: 24px; height: 24px; background: none; color: #507c61; border: 0; border-radius: 0; box-shadow: none; }
  .home-page .service-card .service-icon svg { width: 24px; height: 24px; }
  .home-page .service-card .service-body { padding: 20px 16px 36px; }
  .home-page .service-card .service-body h3 { padding-left: 33px; font-size: 15px; line-height: 1.65; white-space: normal; letter-spacing: 0; }
  .home-page .service-card .service-body h3 span { display: block; font-size: 11px; }
  .home-page .service-card .service-body p { font-size: 12px; line-height: 1.85; margin: 12px 0 0; }
  .home-page .service-card .service-category { top: 12px; left: 12px; border-radius: 3px; font-size: 10px; }
  .home-page .service-card-featured { display: grid; grid-template-columns: 45% minmax(0,1fr); grid-column: span 2; grid-row: auto; align-items: stretch; }
  .home-page .service-card-featured .service-image { height: 100%; min-height: 330px; margin: 0; border-radius: 0; }
  .home-page .service-card-featured .service-icon { display: none; }
  .home-page .service-card-featured .service-body { padding: 28px 22px; display: flex; flex-direction: column; }
  .home-page .service-card-featured .service-body h3 { padding-left: 0; font-size: 23px; line-height: 1.6; }
  .home-page .service-card-featured .service-body h3 span { margin-top: 8px; font-size: 11px; color: #426b50; }
  .home-page .service-card-featured .service-category { display: none; }
  .home-page .service-card-featured .service-cta { margin: auto 0 0; padding: 10px 12px; border: 1px solid #88a491; border-radius: 3px; font-size: 12px; justify-content: space-between; gap: 10px; }
  .home-page .service-card-featured .service-body p { margin-bottom: 24px; }
  .home-page .service-card[hidden] { display: none; }
  .home-page .services .all-services { margin-top: 32px; }
  .home-page .services .outline-button { min-height: 46px; padding: 10px 22px; }
}
/* 既存のタブレット幅でのナビ・クイックアクセスの横はみ出しを解消。 */
@media (min-width: 768px) and (max-width: 1399px) {
  .home-page .header .container { flex-wrap: wrap; gap: 12px; }
  .home-page .header .header-actions { margin-left: auto; }
  .home-page .header .nav { display: flex; order: 3; flex: 1 0 100%; flex-wrap: wrap; gap: 8px 22px; padding-top: 10px; border-top: 1px solid #e4e9e1; }
  .home-page .header .nav a { padding-block: 5px; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .home-page .quick { grid-template-columns: 130px repeat(2,minmax(0,1fr)); }
  .home-page .quick-label { grid-row: span 2; }
  .home-page .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .home-page .service-card-featured { grid-column: auto; display: flex; flex-direction: column; }
  .home-page .service-card-featured .service-image { min-height: 0; height: 220px; }
  .home-page .service-card-featured .service-body { flex: 1; }
}
@media (max-width: 767px) {
  .home-page .header .phone-button { border-radius: 0; background: #fff; }
  .home-page .quick { padding: 14px 10px; }
  .home-page .news-ticker { margin-top: 18px; }
  .home-page .service-card { border-radius: 6px; }
  .home-page .service-image { border-radius: 4px; }
  .home-page .service-card-featured { border-radius: 6px; }
  .home-page .service-card-featured .service-body { padding: 18px; }
  .home-page .service-card .service-body p { font-size: 11px; line-height: 1.7; }
  .home-page .services .all-services { gap: 10px; }
  .home-page .services .outline-button { min-width: 0; width: 100%; }
}

@media (max-width: 767px) {
  .home-page .quick-link small { display: none; }
}
