/* Mobile layout for HPB18; desktop rules are untouched. */
@media screen and (max-width: 767px) {
 html { -webkit-text-size-adjust: 100%; }
 *, *::before, *::after { box-sizing: border-box; }
 body, #hpb-template-05-05-01 { min-width: 0 !important; width: 100% !important; margin: 0 !important; overflow-x: clip; font-size: 15px; line-height: 1.65; }
 #hpb-container { min-width: 0 !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; background-size: auto; }
 #hpb-header { width: 100% !important; height: auto !important; min-height: 58px; padding: 8px 12px; background-size: auto 100%; }
 #hpb-headerMain, #hpb-headerLogo, #hpb-headerExtra1 { width: auto !important; max-width: 100% !important; height: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; position: static !important; }
 #hpb-header h1 { max-width: 100%; overflow-wrap: anywhere; }
 #hpb-inner { width: 100% !important; max-width: 100% !important; display: flex !important; flex-direction: column !important; padding: 0 12px 20px !important; margin: 0 !important; position: relative; }
 #hpb-wrapper { display: contents !important; }
 #hpb-title { order: 1; width: 100% !important; height: auto !important; margin: 0 !important; padding: 0 !important; position: static !important; }
 .hpb-layoutset-01 #hpb-title h2 { margin: 0 !important; width: 100% !important; height: auto !important; aspect-ratio: 860 / 310; background-size: contain !important; background-position: center !important; text-indent: -9999px; }
 #hpb-nav, .hpb-layoutset-01 #hpb-nav { order: 2; width: 100% !important; height: auto !important; max-width: 100% !important; min-height: 0 !important; position: static !important; float: none !important; margin: 10px 0 !important; padding: 0 !important; overflow: visible !important; text-align: center !important; }
 #hpb-nav > br { display: none !important; }
 #hpb-nav > a { display: block !important; width: 100% !important; margin: 4px 0 !important; }
 #hpb-nav > a img { display: block !important; width: min(100%, 340px) !important; max-width: 100% !important; height: auto !important; margin: auto !important; }
 #hpb-nav ul { width: 100% !important; height: auto !important; display: flex !important; flex-direction: column !important; margin: 0 !important; padding: 0 !important; }
 #hpb-nav li, .hpb-layoutset-01 #hpb-nav li { float: none !important; width: 100% !important; margin: 3px 0 !important; height: auto !important; }
 #hpb-nav li a, .hpb-layoutset-01 #hpb-nav li a { width: 100% !important; max-width: 100% !important; height: auto !important; min-height: 48px !important; display: block !important; }
 #hpb-main { order: 3; width: 100% !important; max-width: 100% !important; float: none !important; padding: 12px 0 !important; margin: 0 !important; font-size: 15px; overflow-wrap: anywhere; }
 #hpb-aside { order: 4; width: 100% !important; max-width: 100% !important; position: static !important; float: none !important; clear: both !important; padding: 12px 0 !important; margin: 0 !important; }
 #hpb-aside > *, #hpb-aside #shopinfo { width: 100% !important; max-width: 100% !important; position: static !important; float: none !important; }
 #hpb-footerExtra1 { order: 5; width: 100% !important; max-width: 100% !important; position: static !important; }
 #hpb-footer { width: 100% !important; max-width: 100% !important; padding: 10px !important; }
 #hpb-main img, #hpb-aside img, #hpb-title img, #hpb-header img { max-width: 100% !important; height: auto !important; }
 #hpb-main iframe, #hpb-main video, #hpb-main embed { max-width: 100% !important; }
 #hpb-main table { max-width: 100% !important; }
 #hpb-main td, #hpb-main th { overflow-wrap: anywhere; }
 #hpb-main > div, #hpb-main > section { max-width: 100% !important; }
 #hpb-main [style*="width"] { max-width: 100% !important; }
 #hpb-main pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}

/* Ver.6: prevent privacy-policy footer from overlapping on mobile. */
@media screen and (max-width: 767px) {
 #hpb-footer { clear: both !important; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 12px !important; }
 #hpb-footerExtra1 { clear: both !important; display: block !important; position: static !important; float: none !important; width: 100% !important; height: auto !important; min-height: 0 !important; margin: 12px 0 0 !important; padding: 12px 0 !important; text-align: left !important; }
 #hpb-footerExtra1 ul { display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
 #hpb-footerExtra1 li { display: block !important; width: 100% !important; height: auto !important; line-height: 1.6 !important; margin: 0 !important; padding: 0 !important; }
 #hpb-footerExtra1 li a { display: inline-block !important; max-width: 100% !important; height: auto !important; line-height: 1.6 !important; margin: 0 !important; padding: 4px 5px 4px 16px !important; white-space: normal !important; overflow-wrap: anywhere !important; }
}

/* Ver.7: shipping and delivery rates follow the service information on mobile. */
@media screen and (max-width: 767px) {
 #nnls-shipping-section { order: 5; width: 100% !important; max-width: 100% !important; min-width: 0 !important; position: static !important; float: none !important; margin: 12px 0 !important; overflow-x: auto; }
 #nnls-shipping-section table { max-width: 100%; }
 #hpb-footerExtra1 { order: 6; }
}

/* Ver.8: duplicate_key only: place navigation before the product table. */
@media screen and (max-width: 767px) {
 body.nnls-duplicate-mobile-fix #hpb-inner > #hpb-wrapper {
   display: block !important; order: 3 !important; width: 100% !important;
   max-width: 100% !important; float: none !important; margin: 0 !important;
   padding: 0 !important; position: static !important;
 }
 body.nnls-duplicate-mobile-fix #hpb-inner > #hpb-nav { order: 1 !important; }
 body.nnls-duplicate-mobile-fix #hpb-inner > #hpb-aside { order: 4 !important; }
 body.nnls-duplicate-mobile-fix #hpb-wrapper > table { max-width: 100% !important; }
 body.nnls-duplicate-mobile-fix #hpb-wrapper img { max-width: 100% !important; height: auto !important; }
}

/* Ver.10: Immobilizer catalog tables: preserve readable column widths on phones. */
@media screen and (max-width: 767px) {
 body.nnls-immobilizer-table-fix .nnls-table-scroll {
   display:block !important; width:100% !important; max-width:100% !important;
   min-width:0 !important; overflow-x:auto !important; overflow-y:hidden;
   -webkit-overflow-scrolling:touch; margin:12px 0 !important;
 }
 body.nnls-immobilizer-table-fix .nnls-table-scroll > table {
   width:max-content !important; min-width:700px !important; max-width:none !important;
   table-layout:auto !important;
 }
 body.nnls-immobilizer-table-fix .nnls-table-scroll table table {
   width:max-content !important; max-width:none !important; table-layout:auto !important;
 }
 body.nnls-immobilizer-table-fix .nnls-table-scroll td,
 body.nnls-immobilizer-table-fix .nnls-table-scroll th {
   overflow-wrap:normal !important; word-break:normal !important;
 }
 body.nnls-immobilizer-table-fix .nnls-table-scroll img {
   max-width:none !important;
 }
}
