/*  */
@media screen and (max-width: 768px) {
  html, body { width: auto !important; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
  #wrap, .w1024, .main, .footer, .header { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
  .w1024 { padding: 0 10px; }
  img { max-width: 100%; height: auto; }
  .main_left, .main_middle, .main_right { width: 100% !important; float: none !important; margin: 0 0 14px !important; }
  .main_left { order: 3; }
  .header .logo { float: none !important; text-align: center; }
  .header .logo img, .logo a img { max-height: 60px; width: auto; }
  .header .search_modules { float: none !important; width: 100% !important; text-align: center; margin-top: 8px; }
  .header .search_modules input[type=text] { width: 62% !important; }
  nav, .nav, .menu, .head_user_nav { overflow-x: auto; white-space: nowrap; }
  ul.pr-listbox { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 8px !important; }
  ul.pr-listbox > li { width: auto !important; float: none !important; margin: 0 !important; box-sizing: border-box; }
  ul.pr-listbox > li img, .pr-listbox img { width: 100% !important; max-height: 240px; object-fit: contain; }
  .pr-listbox .title { padding: 8px 10px !important; }
  .pr-listbox .title h2 { font-size: 16px !important; }
  table { width: 100% !important; }
  td, th { word-break: break-all; }
  .btn, .button, .cart_btn, input[type=submit] { min-height: 36px; }
  /* DVD SHOP JAPAN アクセント */
  .pr-listbox .title h2, h1, h2 { color: #B4003B; }
  .btn, .cart_btn, input[type=submit], .search_button { background: #E8044F !important; border-color: #B4003B !important; color: #fff !important; }
}

@media screen and (max-width: 768px) {
  #main, #main_data { width: auto !important; max-width: 100vw !important; padding: 0 8px !important; box-sizing: border-box; }
  #leftBody, #middleBody, #rightBody { width: auto !important; max-width: 100vw !important; float: none !important; margin: 0 0 12px !important; display: block !important; }
  #leftBody { order: 3; }
  #main_data .list-b, #main_data .list-m { width: 100% !important; float: none !important; }
  .header, .w1024, #header { width: 100% !important; }
  .search-modules, .header .search, #search_block_top { width: 100% !important; float: none !important; }
  #search_block_top input.search_query { width: 68% !important; }
  ul.pr-listbox { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media screen and (max-width: 768px) {
  #main { display: flex !important; flex-direction: column; }
  #middleBody { order: 1; }
  #rightBody { order: 2; }
  #leftBody { order: 3; }
  #leftBody > div, #leftBody > ul, #rightBody > div { width: auto !important; max-width: 100% !important; }
  .header .logo, #header .logo { width: auto !important; }
}

@media screen and (max-width: 768px) {
  .pr-listbox { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .pr-listbox .list { width: auto !important; float: none !important; margin: 0 !important; box-sizing: border-box; }
  .pr-listbox .list img { width: 100% !important; max-height: 240px; object-fit: contain; }
  #middleBody table, #middleBody .list { max-width: 100% !important; }
  .header .logo a { background-size: contain !important; }
}

@media screen and (max-width: 768px) {
  .pr-listbox { width: 100% !important; max-width: 100% !important; }
  .pr-listbox .list { width: auto !important; max-width: 100% !important; }
  #middleBody, #middleBody > *, #rightBody > * { width: auto !important; max-width: 100% !important; }
  body, html { overflow-x: hidden !important; }
}
