/* index_demo specific adjustments: header dual CTA + mobile tuning */

/* LINE button visual */
#header .hContactBtn--line {
  background: #06c755;
}

#header .hContactBtn--line:after,
#header .hContactBtn--line:hover:after {
  background-image: url("../img/arrow_g_1.svg");
  background-repeat: no-repeat;
  background-size: contain;
}

#header .hContactBtn--line:focus-visible {
  outline: 3px solid #243363;
  outline-offset: 2px;
}
@media screen and (min-width: 768px) {
    .hContactBtn {
        font-size: 1.4rem;
    }
    .hContactBtn:after{
        width: 14px;
        height: 14px;
        right: 8px;
    }
}

@media screen and (max-width: 767px) {
  /* Keep dual CTA visible on mobile and rebalance header layout */
  #header {
    height: 80px;
  }

  #header.smaller {
    height: 50px;
  }

  #header .headerW {
    width: 96%;
    display: flex;
    align-items: center;
  }

  #header .headerLogo {
    width: 100px;
    padding-top: 8px;
  }

  #header.smaller .headerLogo {
    width: 96px;
    padding-top: 4px;
  }

  #header #menu {
    display: block;
    flex: 1;
  }

  #header .headerBtnW--dual {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    padding-top: 6px;
  }

  #header .headerBtnW--dual:before {
    display: none;
  }

  #header .headerBtnW--dual .headerBtnW__pair {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 0.6rem;
  }

  #header .headerBtnW--dual .headerBtnW__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
  }

  #header .headerBtnW--dual .headerBtnTxt {
    font-size: 1rem;
    line-height: 1rem;
    margin-bottom: 4px;
    white-space: nowrap;
    letter-spacing: -0.02em;
  }

  #header .headerBtnW--dual .hContactBtn {
    width: 114px;
    line-height: 2.4rem;
    font-size: 1rem;
    border-radius: 12px;
    margin-bottom: 0;
  }

  #header .headerBtnW--dual .hContactBtn:after {
    width: 8px;
    height: 8px;
    right: 4px;
  }

  #header .headerBtnW--dual .headerTel {
    align-self: stretch;
    width: 100%;
    text-align: left;
    font-size: 1.5rem;
    line-height: 1.5rem;
    padding-top: 5px;
    box-sizing: border-box;
  }

  #header.smaller .headerBtnW--dual {
    padding-top: 4px;
  }

  #header.smaller .headerBtnW--dual .headerBtnTxt {
    display: none;
  }

  #header.smaller .headerBtnW--dual .hContactBtn {
    width: 104px;
    line-height: 2.1rem;
    font-size: 1.1rem;
  }

  /* Header gets taller on SP, so push MV down and scale the image down slightly */
  #mv {
    padding-top: 80px;
  }

  .mv-area img {
    max-width: 76%;
  }
}

@media screen and (min-width: 768px) {
  #header .headerBtnW--dual {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  #header .headerBtnW--dual .headerBtnW__pair {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.2rem;
  }

  #header .headerBtnW--dual .headerBtnW__col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #header .headerBtnW--dual .headerBtnW__col .headerBtnTxt {
    text-align: center;
  }

  #header .headerBtnW--dual .headerTel {
    align-self: stretch;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
  }
}
