/* Site maintenance patch: stable mobile navigation without changing the existing design. */
.header-thq-burger-menu-elm {
  cursor: pointer;
}

.site-mobile-close {
  display: none;
}

body.site-menu-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .header-thq-mobile-menu-elm {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 24px !important;
    overflow-y: auto !important;
    z-index: 1000 !important;
    background-color: #fff !important;
  }

  .header-thq-nav-elm,
  .header-thq-close-menu-elm {
    width: 100% !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .header-thq-close-menu-elm {
    align-items: flex-start !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }

  .header-thq-links-elm2 {
    width: 100% !important;
    min-height: 0 !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    padding-top: 56px;
  }

  .header-navlink16,
  .header-navlink17,
  .header-navlink18,
  .header-navlink19,
  .header-link2,
  .header-navlink20 {
    margin-left: 0 !important;
    font-size: 18px;
    line-height: 1.7;
  }

  .site-mobile-close {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 1001;
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 36px;
    font-family: Arial, sans-serif;
    font-weight: 300;
    line-height: 1;
    background: transparent;
  }
}

@media (min-width: 768px) {
  .header-thq-mobile-menu-elm {
    display: none !important;
  }
}

/* Keep the high-resolution logo, but render it at the original visual size. */
.header-thq-image11-elm {
  width: 294px !important;
  height: auto !important;
  max-width: 100% !important;
}

.footer-thq-image11-elm {
  width: 223px !important;
  height: auto !important;
  max-width: 100% !important;
  align-self: flex-start !important;
}

@media (max-width: 767px) {
  .header-thq-image11-elm {
    width: var(--dl-layout-size-xlarge) !important;
    max-width: 100% !important;
  }

  .footer-thq-image11-elm {
    width: 223px !important;
    max-width: 100% !important;
  }
}

/* v1.4 — preserve the ORIGINAL visual dimensions when using higher-resolution images.
   The source files are larger for sharpness only; they must not change layout size. */

/* TOP */
.p-ctop-thq-top1hero1-elm {
  width: 100% !important;
  max-width: 940px !important;
  height: auto !important;
}
.p-ctop-thq-top2about1-elm,
.p-ctop-thq-top3rice1-elm,
.p-ctop-thq-top4restaurant1-elm {
  width: 400px !important;
  max-width: 100% !important;
  height: auto !important;
}

/* ABOUT */
.pc-about-thq-about1hero1-elm {
  width: 100% !important;
  max-width: 940px !important;
  height: auto !important;
}
.pc-about-thq-thq-about2asariceshop1-elm-elm,
.pc-about-thq-about3whatwecheck1-elm,
.pc-about-thq-about4wayofthinking1-elm,
.pc-about-thq-about5-polishingrice1-elm,
.pc-about-thq-about6size1-elm,
.pc-about-thq-about7colorpicking1-elm {
  width: 400px !important;
  max-width: 100% !important;
  height: auto !important;
}
.pc-about-thq-about8inemikai1-elm {
  width: 940px !important;
  max-width: 100% !important;
  height: auto !important;
}

/* RICE */
.pc-rice-thq-rice1hero1-elm {
  width: 100% !important;
  max-width: 940px !important;
  height: auto !important;
}
.pc-rice-thq-rice2environment1-elm,
.pc-rice-thq-rice3soil1-elm {
  width: 400px !important;
  max-width: 100% !important;
  height: auto !important;
}
.pc-rice-thq-rice4tokusenmai1-elm,
.pc-rice-thq-rice5tokusaimai1-elm,
.pc-rice-thq-rice6mochigome1-elm {
  width: 300px !important;
  max-width: 100% !important;
  height: auto !important;
}

/* FOR RESTAURANT */
.pc-forrestaurant-thq-forrestaurant1hero1-elm {
  width: 100% !important;
  max-width: 940px !important;
  height: auto !important;
}
.pc-forrestaurant-thq-forrestaurant2businessuse1-elm,
.pc-forrestaurant-thq-forrestaurant3transaction1-elm {
  width: 400px !important;
  max-width: 100% !important;
  height: auto !important;
}

/* On phones, retain the original responsive behavior: images shrink to the content width. */
@media (max-width: 479px) {
  .p-ctop-thq-top2about1-elm,
  .p-ctop-thq-top3rice1-elm,
  .p-ctop-thq-top4restaurant1-elm,
  .pc-about-thq-thq-about2asariceshop1-elm-elm,
  .pc-about-thq-about3whatwecheck1-elm,
  .pc-about-thq-about4wayofthinking1-elm,
  .pc-about-thq-about5-polishingrice1-elm,
  .pc-about-thq-about6size1-elm,
  .pc-about-thq-about7colorpicking1-elm,
  .pc-rice-thq-rice2environment1-elm,
  .pc-rice-thq-rice3soil1-elm,
  .pc-rice-thq-rice4tokusenmai1-elm,
  .pc-rice-thq-rice5tokusaimai1-elm,
  .pc-rice-thq-rice6mochigome1-elm,
  .pc-forrestaurant-thq-forrestaurant2businessuse1-elm,
  .pc-forrestaurant-thq-forrestaurant3transaction1-elm {
    width: 100% !important;
    height: auto !important;
  }
}
