/* 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 {
    height: 85svh;
    background-position: right;
  }
} /* ~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;
  }
}

@media screen and (max-width: 466px) {
  .section-top__image-message p {
    font-size: 2.8rem;
    top: 52%;
    left: 24%;
  }

  .section-top__image h1 {
    font-size: 4.4rem;
    top: 40%;
    left: 25%;
  }
}

/* ~466px */

/* section menu  */

@media screen and (max-width: 1080px) {
  .section__menu {
    padding: 5.4rem 4% 9.6rem;
  }
}

@media screen and (max-width: 823px) {
  .section__menu h2 {
    font-size: 2.8rem;
  }

  .section__menu li img {
    width: 65%;
  }

  .section__menu-ricebento {
    flex-direction: column-reverse;
    display: flex;
    margin: 4rem auto;
    gap: 6rem;
    align-items: center;
  }

  .section__menu h3 {
    padding-right: 0;
  }
  .ricetext {
    width: 100%;
  }

  .ricephoto {
    width: 100%;
  }

  .section__rice-bento ul {
    flex-direction: column;
    align-items: center;
    gap: 8rem;
  }

  .section__rice-bento li {
    width: 70%;
  }

  .section__rice-bento ul li p:nth-of-type(2) {
    width: 100%;
    margin-bottom: 0;
  }

  .space {
    display: none;
  }
}

/* noodle */

@media screen and (max-width: 1080px) {
  .section__noodlebento-content {
    padding: 5.4rem 4% 9.6rem;
  }
}
/* 1080px */

@media screen and (max-width: 823px) {
  .section__noodle-bento_b {
    flex-direction: column;
    align-items: center;
  }

  .section__noodle-bento ul {
    flex-direction: column;
    align-items: center;
    gap: 8rem;
  }

  .noodlephoto {
    width: 100%;
  }

  .noodletext {
    width: 100%;
  }

  .section__noodle-bento li {
    width: 100%;
  }
}

/* section salad */

@media screen and (max-width: 1080px) {
  .section__saladbento-content {
    padding: 5.4rem 4% 9.6rem;
  }
}

@media screen and (max-width: 823px) {
  .section__menu-saladbento {
    flex-direction: column;
    align-items: center;
  }

  .section__menu-saladbento h3 {
    text-align: center;
    margin-bottom: 3rem;
    padding-right: 0;
  }

  .section__salad-bento ul {
    /* margin-bottom: 80px; */
    flex-direction: column;
    align-items: center;
    gap: 8rem;
  }

  .section__salad-bento li {
    width: 100%;
  }

  .saladbento {
    width: 100%;
  }

  .salad_text {
    width: 100%;
  }

  .section__salad-bento ul li p:nth-of-type(2) {
    width: 100%;
    text-align: center;
  }
}

/* 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;
  }
}
