* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}


.header_container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e4cff9;
  padding: 10px;
}


.header_logo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header_logo img {
  width: 100%;
  height: auto;
  max-width: 300px;
}


.header_nav_wrapper {
  flex: 3;
  display: flex;
  justify-content: flex-end;
  position: relative;
}


.header_nav_container {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.header_nav_container::-webkit-scrollbar {
  display: none;
}

.header_nav {
  display: flex;
  list-style: none;
}

.header_nav li {
  width: 100px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px; 
  border-right: 10px solid #ccc;
  background: #fff;
    padding: 6px !important;  
    box-sizing: border-box;
}

.header_nav li:first-child {
  border-left: 1px solid #ccc;
}


.header_nav img {
  width: 100%;
  height: auto;
  display: block;
 padding: 10px;
    box-sizing: border-box;
   display: block;
    width: 100%;
    height: auto;
    padding: 0 !important;
    margin: 0 !important;

}

.scroll-button {
  display: none;
}


li.sp_logo,
.logo-sp {
  display: none;
}

.modal { 
display: none; 
position: fixed;
 z-index: 9999; left: 0; 
top: 0; width: 100%; 
height: 100%; 
overflow-y: auto; 
background-color: rgba(0, 0, 0, 0.5);
 } 
.modal-content { 
background-color: #fff; margin: 5% auto; 
padding: 20px; 
max-width: 900px; 
border-radius: 10px;
 position: relative;
 }
 .modal .close { 
color: #aaa; 
position: absolute;
 right: 20px; top: 15px; 
font-size: 30px; 
font-weight: bold; 
cursor: pointer;
 } 
.menu-modal { 
display: none; 
position: fixed; 
z-index: 9999; 
left: 0; top: 0; 
width: 100%; 
height: 100%;
 background: rgba(0,0,0,0.6); 
overflow: auto; 
} 
.menu-modal-content { 
background: #fff; 
margin: 5% auto; 
padding: 20px 30px; 
border-radius: 10px; 
width: 90%; 
max-width: 800px; 
position: relative; 
} 
.menu-modal-close {
position: absolute; 
top: 10px; right: 20px;
 font-size: 30px;
 color: #888; 
cursor: pointer;
 } 
.menu-modal .inner_box h4 { 
margin-top: 20px; 
font-size: 18px; 
border-bottom: 1px solid #ccc;
 padding-bottom: 5px; 
}



@media screen and (max-width: 1200px) {
  .header_nav {
    justify-content: space-between;
    width: 100%;
  }

  .header_nav li {
    flex: 1 1 0;
    padding: 6px;
    background: #fff;
  }

  .header_nav li img {
    max-width: 70px;  
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
  }
}


@media screen and (max-width: 767px) {


  html, body {
    overflow-x: hidden !important;
  }

  .header_container {
    padding: 0 !important;
    margin: 0 !important;
  }

  .header_nav_wrapper,
  .header_nav_container,
  .header_nav {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .header_nav {
gap: 6px; 
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
  }

  .header_nav li {
    width: auto !important;
    flex: 1 1 0 !important;
    background: #fff;       
    padding: 6px !important;
    margin: 0 !important;
    border: none !important;
  }

  .header_nav li img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
  }
 
  /* ロゴ */
  .header_logo img {
    max-width: 90%;
  }

  /* ナビ */
  .header_nav_wrapper {
    flex: 1 1 100%;
    justify-content: center;
  }

  .header_nav_container {
    width: 100%;
    overflow: hidden;
    justify-content: center;
  border-bottom: 2px solid #e0e0e0;
  }

  .header_nav {
    width: 100%;
    justify-content: space-between;
  }

  .header_nav li {
    width: auto;
    padding: 0 !important;
    margin: 0 !important;
    border: none;
  }

  .header_nav img {
    max-width: 60px;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* PC用ロゴを消す */
  .logo-pc {
    display: none !important;
  }

  /* SPナビ制御 */
  ul.header_nav.nav-control-sp > li {
    display: none !important;
  }

  ul.header_nav.nav-control-sp > li.sp_logo,
  ul.header_nav.nav-control-sp > li.nav-sp-logo,
  ul.header_nav.nav-control-sp > li.nav-tel,
  ul.header_nav.nav-control-sp > li.nav-area,
  ul.header_nav.nav-control-sp > li.nav-company,
  ul.header_nav.nav-control-sp > li.nav-menu {
    display: flex !important;
  }

  /* スクロールUI完全停止 */
  .scroll-button {
    display: none !important;
  }
}