/**
 * Front page (home) — migrated from legacy style.css
 * Loaded in @layer pages so these rules beat legacy !important without using it.
 */
@layer pages {
  body.home {
    background: #f4f3f0;
    background-image: none;
    color: #1b1b1b;
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 400;
  }

  body.home::before {
    display: none;
  }

  body.home .site-main,
  body.home .site-footer {
    background: #f4f3f0;
  }

  body.home .hero {
    position: relative;
    display: grid;
    align-items: start;
    min-height: 47.5em;
    padding: 19em 0 0;
    overflow: hidden;
    isolation: isolate;
    background-color: #f4f3f0;
    background-image:
      linear-gradient(180deg, rgba(244, 243, 240, 0) 54%, rgba(244, 243, 240, 0.66) 84%, #f4f3f0 100%),
      url("../../img/front-hero.jpg");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
  }

  body.home .hero::before,
  body.home .hero-light,
  body.home .hero-light__beam,
  body.home .hero-light__beam--one,
  body.home .hero-light__beam--two {
    display: none;
    animation: none;
  }

  body.home .hero::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    content: "";
    background: linear-gradient(180deg, rgba(244, 243, 240, 0) 50%, rgba(244, 243, 240, 0.72) 84%, #f4f3f0 100%);
  }

  body.home .hero__content {
    position: relative;
    z-index: 1;
    width: min(100% - 2.5em, 67.5em);
    margin: 0 auto;
  }

  body.home .hero__tagline {
    margin: 0;
    color: #1b1b1b;
    font-family: "Times New Roman", serif;
    font-size: 1.5em;
    font-weight: 400;
    line-height: 1.3;
  }

  body.home .hero h1 {
    margin: 2em 0 0;
    color: #1b1b1b;
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 40px;
  }

  body.home .hero__brand {
    margin: 4em 0 0;
    color: #8a8a8a;
    font-family: "Times New Roman", serif;
    font-size: 3em;
    font-weight: 500;
    line-height: 1.3;
    text-align: right;
  }

  body.home .intro {
    margin-top: 3em;
    padding: 2em 0 5em;
    background: #f4f3f0;
  }

  body.home .intro__inner,
  body.home .section__inner {
    width: min(100% - 2.5em, 67.5em);
    max-width: 67.5em;
    margin-right: auto;
    margin-left: auto;
  }

  body.home .intro__title,
  body.home .section__title {
    color: #1b1b1b;
    font-family: "Times New Roman", serif;
    font-size: 1.5em;
    font-weight: 400;
    line-height: 1.3;
  }

  body.home .intro__list {
    gap: 0;
    margin: 2.4em 0 0;
    padding-left: 0;
    color: #1b1b1b;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.85;
    list-style: none;
  }

  body.home .intro__lead {
    margin: 2em 0 0;
    color: #1b1b1b;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.85;
  }

  body.home .large-link {
    color: #1b1b1b;
    font-family: "Times New Roman", serif;
    font-size: 1.2em;
    font-weight: 600;
  }

  body.home .hero__action {
    margin-top: 1.6em;
  }

  body.home .section,
  body.home .section--surface {
    padding: 6em 0 0;
    background: #f4f3f0;
  }

  body.home .section--surface {
    padding-top: 6em;
  }

  body.home .section__header {
    display: block;
    margin-bottom: 0;
    padding: 2em 0 1em;
    border-bottom: 1px solid #c0c0c0;
  }

  body.home .section__header .eyebrow {
    display: none;
  }

  body.home .section__body {
    padding: 2.8em 0 0;
  }

  body.home .reason-grid,
  body.home .case-grid {
    display: block;
  }

  body.home .reason,
  body.home .case {
    padding: 2em 0 1em;
    border-top: 0;
  }

  body.home .reason + .reason,
  body.home .case + .case {
    border-top: 1px solid #c0c0c0;
  }

  body.home #jirei {
    padding-top: 6em;
  }

  body.home #jirei .case:nth-child(2) {
    border-top: 1px solid #c0c0c0;
    border-bottom: 1px solid #c0c0c0;
  }

  body.home .reason h3,
  body.home .case h3 {
    color: #1b1b1b;
    font-family: "Times New Roman", serif;
    font-size: 1.3em;
    font-weight: 400;
    line-height: 1.3;
  }

  body.home .reason p,
  body.home .case p,
  body.home .section__lead,
  body.home p,
  body.home li,
  body.home .case-accordion summary,
  body.home .case-accordion__body {
    color: #1b1b1b;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.85;
  }

  body.home .section__lead {
    margin: 0;
  }

  body.home .section-link {
    display: inline-block;
    margin-top: 1.2em;
    font-weight: 500;
  }

  body.home .case-accordion {
    margin-top: 1em;
    color: #1b1b1b;
  }

  body.home .case-accordion summary {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    margin-top: 0.75em;
    padding: 0.6em 1.25em;
    border: 1px solid #1b1b1b;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    color: #1b1b1b;
    font-family: "Times New Roman", serif;
    font-size: 0.9375em;
    font-weight: 500;
    line-height: 1.4;
    list-style: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  body.home .case-accordion summary:hover {
    background: #1b1b1b;
    color: #fff;
  }

  body.home .case-accordion summary::-webkit-details-marker {
    display: none;
  }

  body.home .case-accordion[open] summary {
    margin-bottom: 1.25em;
    background: #1b1b1b;
    color: #fff;
  }

  body.home .contact-band {
    position: relative;
    overflow: hidden;
    margin-top: 6em;
    margin-bottom: 4em;
    padding: 2em 0 1em;
    background: #f4f3f0;
    color: #1b1b1b;
  }

  body.home .contact-band::before {
    display: none;
  }

  body.home .contact-band__inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    width: min(100% - 2.5em, 67.5em);
    margin: 0 auto;
  }

  body.home .contact-link {
    display: inline-block;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1b1b1b;
    font-family: "Times New Roman", serif;
    font-size: 4em;
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
  }

  body.home .contact-link:hover {
    opacity: 0.72;
  }

  @media (max-width: 767px) {
    body.home .hero {
      min-height: auto;
      padding: 15em 1em 0;
    }

    body.home .hero__brand {
      font-size: 1.9em;
      text-align: center;
    }

    body.home .intro {
      padding: 3em 1em 0;
    }

    body.home .intro__inner,
    body.home .section__inner {
      width: 100%;
      margin-right: 0;
      margin-left: 0;
    }

    body.home .contact-link {
      font-size: 3em;
    }
  }

}
