/* common */
@media screen and (max-width: 599px) {
  .btn,
  .btn:link,
  .btn:visited {
    font-size: 1.4rem;
  }
}

/* header */

@media screen and (max-width: 896px) {
  .header {
    padding: 3rem 5.4rem;
  }

  .btn-mobile-nav {
    display: block;
    z-index: 9999;
  }

  .main-nav {
    background-color: rgba(255, 255, 255, 0.97);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(-100%);
    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in;

    /* Hide navigation */
    /* Allows no transitions at all */
    /* display: none; */

    /* 1. Hide it visually */
    opacity: 0;

    /* 2. Make it unaccessible to mouse and keyboard */
    pointer-events: none;

    /* 3. Hide it from screen readers */
    visibility: hidden;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;
  }

  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }

  .main-nav-list {
    flex-direction: column;
    gap: 9.6rem;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 2rem;
  }

  .main-nav-link.nav-cta:link,
  .main-nav-link.nav-cta:visited {
    font-size: 1.6rem;
  }
}

/* ~896px */

@media screen and (max-width: 695px) {
  .header {
    padding: 2rem 3.2rem;
  }

  .section-top__image h1 {
    top: 25%;
    left: 7%;
  }

  .section-top__image {
    background-position: right;
    height: 85svh;
  }
} /* ~695px */

@media screen and (max-width: 599px) {
  .header {
    padding: 1rem 2.8rem;
  }

  .logo {
    height: 2.5rem;
  }
} /* ~599px */

/* section top */

@media screen and (max-width: 896px) {
  .section-top__image h1 {
    font-size: 2.8rem;
  }
} /* 896px */

@media screen and (max-width: 822px) {
  .ourvalues {
    grid-template-columns: 1fr;
    gap: 4rem;
    width: 60%;
    margin: 4rem auto;
  }

  .ourvalues:nth-child(3) {
    margin: 0 auto;
  }
}

@media screen and (max-width: 695px) {
  .section-top__image-message p {
    top: 35%;
    font-size: 2.4rem;
  }

  .space {
    display: none;
  }

  .section__ourvalues h2 {
    font-size: 2.8rem;
  }

  .ourvalues {
    width: 75%;
  }

  .ourvalues h3 {
    font-size: 2rem;
    text-align: center;
  }
} /* 695px */

@media screen and (max-width: 537px) {
  .section-top__image-message p {
    font-size: 2.2rem;
    line-height: 4.7rem;
  }
}

@media screen and (max-width: 466px) {
  .section-top__image h1 {
    font-size: 2.4rem;
  }

  .ourvalues {
    width: 100%;
  }

  .section__ourvalues h2 {
    font-size: 2.4rem;
  }

  .ourvalues h3 {
    font-size: 2rem;
  }

  .ourvalues p {
    font-size: 1.4rem;
  }
} /* ~466px */

@media screen and (max-width: 399px) {
  .section-top__image-message p {
    font-size: 2rem;
  }
}

@media screen and (max-width: 896px) {
  .ourvalues h3 {
    padding-bottom: 2rem;
    /* text-align: center; */
  }
}
/* 896px */

@media screen and (max-width: 822px) {
  .margin-t-b {
    margin: 9.6rem auto;
    display: flex;
    flex-direction: column-reverse;
  }
}

/* mission */

@media screen and (max-width: 1080px) {
  .section__mission-maintext {
    padding: 0 2rem;
  }
}
/* 1080px */

@media screen and (max-width: 695px) {
  .section__mission h2 {
    font-size: 2.8rem;
  }
}
/* 695px */

@media screen and (max-width: 466px) {
  .section__mission h2 {
    font-size: 2.4rem;
  }
  .section__mission h3 {
    margin: 3rem 0;
    font-size: 1.6rem;
  }

  .section__mission p {
    font-size: 1.4rem;
    line-height: 3.6rem;
  }
}

/* 466px */

/* faq */

@media screen and (max-width: 967px) {
  .accordion-area {
    padding: 0 2rem;
  }
}

@media screen and (max-width: 695px) {
  .section__faq h2 {
    font-size: 2rem;
  }
}

@media screen and (max-width: 466px) {
  .section__faq h2 {
    font-size: 2.4rem;
  }
}

/* footer  */

@media screen and (max-width: 990px) {
  .footer {
    padding: 9.6rem 4.8rem;
  }
}

@media screen and (max-width: 896px) {
  .footer {
    padding: 6.4rem 2.8rem;
  }

  .grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
  }
}

@media screen and (max-width: 750px) {
  .footer {
    padding: 4.8rem 0 2.4rem;
  }

  .grid {
    flex-direction: column;
  }

  .footer-nav {
    align-items: center;
  }
}
