/* Index page layout and hero styles. */
body.index-page {
  --index-green: #00553d;
  --index-head-space: 118px;
  min-height: 100vh;
  background: #f2f1f1;
  overflow-x: hidden;
  overflow-y: hidden;
}

body.index-page .index-fit-stage,
body.index-page .index-scale-root {
  position: static !important;
  width: 100%;
  height: auto !important;
  overflow: hidden;
  transform: none !important;
}

body.index-page .index-main {
  display: flex;
  min-height: 100svh;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  background: #f2f1f1;
}

body.index-page .index-hero {
  position: relative;
  display: grid;
  width: 100vw;
  min-height: 0;
  height: 100svh;
  max-width: 100vw;
  max-height: 100svh;
  padding: calc(var(--index-head-space) + clamp(4px, 1vw, 14px)) clamp(36px, 5vw, 72px) 150px;
  overflow: hidden;
  background: #f6f6f6;
}

body.index-page .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

body.index-page .hero-bg img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  object-position: center bottom;
}

body.index-page .hokkaido-map {
  display: none !important;
}

body.index-page .hero-copy {
  position: absolute;
  top: calc(var(--index-head-space) - clamp(18px, 2vw, 28px));
  left: 50%;
  z-index: 2;
  width: min(52vw, 740px);
  margin: 0;
  color: var(--index-green);
  text-align: center;
  transform: translateX(-50%);
}

body.index-page .index-title-logo {
  width: 100%;
  margin: 0 auto -18px;
  transform: translateY(-4%);
}

body.index-page .hero-copy .lead,
body.index-page .hero-copy p:not(.tech) {
  color: var(--index-green);
  background: transparent;
  text-shadow: none;
}

body.index-page .hero-copy .lead {
  margin: 0 0 14px;
  font: 700 clamp(18px, 1.65vw, 24px)/1.35 "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "MS PMincho", "Noto Serif JP", serif;
  letter-spacing: .08em;
}

body.index-page .hero-copy p.origin:not(.lead):not(.tech) {
  margin: 0 0 24px;
  font: 400 clamp(15px, 1.25vw, 18px)/1.5 "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Noto Sans JP", sans-serif;
}

body.index-page .origin span {
  display: block;
}

body.index-page .origin .origin-place {
  font-weight: 500;
}

body.index-page .origin::before,
body.index-page .origin::after {
  content: "";
  display: block;
  width: 110px;
  height: 1px;
  margin: 18px auto;
  background: var(--index-green);
}

body.index-page .tech {
  display: block;
  margin: 0;
  color: #343c3a;
  font: 400 clamp(13px, 1.05vw, 16px)/1.5 "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Noto Sans JP", sans-serif;
}

body.index-page .tech::before,
body.index-page .tech::after {
  content: none;
}

body.index-page .index-sample-cta {
  position: absolute;
  z-index: 3;
  right: clamp(34px, 6.8vw, 98px);
  bottom: clamp(88px, 8.2vw, 122px);
  width: clamp(250px, 20vw, 310px);
  color: var(--index-green);
  text-align: center;
}

body.index-page .sample-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}

body.index-page .sample-kicker::before,
body.index-page .sample-kicker::after {
  content: none;
}

body.index-page .index-sample-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 244px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #9aa19d;
  border-radius: 7px;
  background: #fff;
  color: var(--index-green);
  font-size: 17px;
  font-weight: 700;
}

body.index-page .sample-note {
  margin: 10px 0 4px;
  color: #4a514f;
  font-size: 13px;
}

body.index-page .index-sample-cta strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

body.index-page .index-sample-cta img {
  width: clamp(74px, 6.5vw, 98px);
  margin: 0 auto;
}

body.index-page .index-mobile-sample {
  display: none;
}

body.index-page .index-foot-features {
  position: absolute;
  right: clamp(42px, 4.8vw, 70px);
  bottom: clamp(18px, 2.1vw, 30px);
  left: clamp(42px, 4.8vw, 70px);
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
  color: var(--index-green);
  text-align: center;
}

body.index-page .index-foot-feature {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  justify-content: center;
  gap: clamp(12px, 1.2vw, 18px);
  min-width: 0;
  font-size: clamp(12px, 1.05vw, 15px);
  font-weight: 700;
  line-height: 1.35;
}

body.index-page .index-foot-feature:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(clamp(18px, 2.6vw, 40px) / -2);
  width: 1px;
  height: clamp(22px, 2.2vw, 34px);
  background: var(--index-green);
  transform: translateY(-50%);
}

body.index-page .index-foot-feature picture {
  display: block;
}

body.index-page .index-foot-feature img {
  width: clamp(42px, 4vw, 58px);
  height: auto;
}

body.index-page .index-foot-feature span {
  min-width: 0;
  align-self: end;
}

@media (max-width: 700px) {
  body.index-page {
    --index-head-space: 56px;
    min-height: 100svh;
    background: #f4f4f4;
  }

  body.index-page .index-fit-stage,
  body.index-page .index-scale-root,
  body.index-page .index-main {
    min-height: 100svh;
    height: 100svh !important;
  }

  body.index-page .index-hero {
    min-height: 0;
    height: 100svh;
    max-height: 100svh;
    padding: calc(var(--index-head-space) + clamp(4px, 2vw, 10px)) 18px 24px;
  }

  body.index-page .hero-bg img {
    object-position: center bottom;
  }

  body.index-page .hero-copy {
    top: calc(var(--index-head-space) - clamp(6px, 2vw, 12px));
    left: 50%;
    width: min(92vw, 490px);
    margin: 0;
    transform: translateX(-50%);
  }

  body.index-page .index-title-logo {
    margin-bottom: -8px;
    transform: translateY(-2%);
  }

  body.index-page .hero-copy .lead {
    margin-bottom: 12px;
    font-size: clamp(15px, 3.45vw, 18px);
  }

  body.index-page .hero-copy p.origin:not(.lead):not(.tech) {
    margin-bottom: 18px;
    font-size: clamp(14px, 3.1vw, 16px);
  }

  body.index-page .origin::before,
  body.index-page .origin::after {
    width: 122px;
    margin: 14px auto;
  }

  body.index-page .tech {
    font-size: clamp(11px, 2.65vw, 13px);
  }

  body.index-page .index-sample-cta {
    display: none;
  }

  body.index-page .index-mobile-sample {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: max(28px, env(safe-area-inset-bottom));
    left: 0;
    display: grid;
    justify-items: center;
    color: var(--index-green);
    text-align: center;
  }

  body.index-page .index-mobile-sample a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px 18px;
    border: 1px solid #98a29e;
    border-radius: 7px;
    background: #fff;
    font-size: clamp(15px, 3.6vw, 19px);
    font-weight: 700;
  }

  body.index-page .index-mobile-sample img {
    width: clamp(58px, 15vw, 82px);
    margin-bottom: 10px;
  }

  body.index-page .index-mobile-sample p {
    margin: 0;
    color: #333;
    font-size: clamp(15px, 3.8vw, 19px);
    font-weight: 700;
  }

  body.index-page .index-mobile-sample small {
    color: #56605d;
    font-size: clamp(11px, 2.8vw, 14px);
  }

  body.index-page .index-foot-features {
    display: none;
  }
}
