@charset "utf-8";

.header{
  background-color: #fff;
  position:relative;
  height: 100px;
  width: 100%;
  padding: 0 5%;
  z-index: 99;
  background: url(https://nagaokabar-luigi.net/system_panel/uploads/images/20241028155912104684.png) no-repeat center/cover;
  width:100%;
  height: auto;
  object-fit: cover;
  max-width: 1920px;
  margin: 0 auto;
}
.sp-logo{
  display: none;
}
.header-inner{
  display: flex;
  flex-direction: row;
  justify-content: space-between; 
  align-items: center;
}

.header-menu{
  display: flex;
  flex-direction: row;
}
.header-right{
  gap: 2rem;
}
.header-item{
  width: 150px;
  text-align: center;
  border-right: 1px solid #707070;
  height: fit-content;
}
.header-item:first-child{
  width: 140px;
  text-align: center;
  border-right: 1px solid #707070;
  border-left: 1px solid #707070;
}

.header-item p:hover{
  color: #D53710;
}

.header-phone{
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  margin: 0.25rem 0
}
.hamBtn {
  width: 85px;
  cursor: pointer;
  z-index: 9999;
  transition: all .5s;
  color: #fff;
  background-color: transparent;
  height: 85px;
  padding: 1rem;
  position:fixed;
  right:2.5%;
  top:0.5rem;
  background-color: transparent;
}

.hamBtn:before {
  content:"MENU";
  position:absolute;
  color: #000;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  font-weight: bold;
  font-size: clamp(0.5rem, 0.318rem + 0.61vw, 1rem);
  width: max-content;
}


.hamBar {
  position: relative;
  width: 100%;
  height:30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hamBar>div {
  position: absolute;
  right: 0;
  width: 100%;
  height: 3px;
  border-top: solid 1px #000;
  border-bottom: solid 1px #000;
  transition: .5s;
}

.hamBar>div:nth-child(1) {
  top: 0; 
}

.hamBar>div:nth-child(2) {
  top: 50%;
}

.hamBar>div:nth-child(3) {
  top: 100%;
}

.hamBar.active>div:nth-child(1) {
  top: 14px;
  transform: rotate(-45deg);
}

.hamBar.active>div:nth-child(2) {
  opacity: 0;
}

.hamBar.active>div:nth-child(3) {
  top: 14px;
  transform: rotate(45deg);
}

.sp__menu {
  background-color: rgba(255,255,255,0.9);
  position: fixed;
  top: 0;
  right: -100%;
  opacity: 0;
  width: 0%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items:center;
  color: #000;
  transition: 1s;
  z-index: 98;
  padding-top: 120px;
}


.sp__menu.active {
  opacity: 1;
  right:0;
  width: 30%;
  visibility: visible;
  min-width: 400px;
}

.sp__menu a{
  width: 100%;
  text-align: center;
  margin-bottom:1.5rem;
  position: relative;
}

.sp__menu  > a:before{
  content:">";
  position:absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
}

.sp__menu a:hover{
  text-decoration: underline!important;
}



@media (max-width: 768px) {
.header-right {
  display: none!important;
}
  .contents-head{
    display: none!important;
  }
  .sp__menu.active {
    width: 100%;
    min-width: auto;
  }
  .sp__menu{
    padding-top:65px;  
  }
  .sp__menu a{
    margin-bottom:1.5rem;
  }
  .sp-logo{
  display: block!important;
}
}


@media (max-width: 1023px) {
.sp-btn{
    display:flex;
    font-size:12px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    z-index: 1000;
  }
  .sp-btn a{
    width: calc(100% / 3);
    background-color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-right:1px solid;
  }
  .sp-btn img{
    max-height:37px;
    max-width:40px;
  }
}

@media (max-width: 1200px) {
  .header-inner{
  display: flex;
  flex-direction: row;
  justify-content: space-between; 
  align-items: center;
}
}

@media (max-width: 1600px) {
  .header-inner{
  display: flex;
  flex-direction: row;
  justify-content: flex-end; 
  align-items: center;
}
  
.header-menu{
  display: none;
  flex-direction: row;
}
}