@charset "utf-8";

.header.UpMove{
  animation: UpAnime 0.5s forwards;
}

.header.DownMove{
  animation: DownAnime 0.5s forwards;
}
@keyframes UpAnime{
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-100px);
  }
}
@keyframes DownAnime{
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.header-top{
  background:#243374;
  color:#fff;
  display:flex;
  padding:0 5%;
  justify-content: space-between;
  align-items: center;
}

.header-top-left{
  font-weight:bold; 
}

.header-top a{
  color:#fff;
  height:58px;
}

.header-top a p{
  line-height:58px;
}

.header-top-right a:nth-child(2){
  margin:0 4rem;
}

.header-top-right{
  display:flex;
  align-items: center;
}

.header-top-right a img{
  width:2rem;
}

.header-top-tel {
  font-size:12px;
  padding:10px 1.5rem 0px;
  border-left:1px solid;
  border-right:1px solid;
}

.header-top a.header-top-tel p{
  line-height:1;
}

.header-top-tel > p{
  text-align:right;
  margin-top:4px;
}

.header-top-tel div{
  display:flex;
  font-weight:bold;
  font-size:clamp(1rem, 0.818rem + 0.61vw, 1.5rem);
  gap:0.5rem;
}

.header-top-contact{
  border-right:1px solid;
  padding:0 4rem;
}



.header{
  position: fixed;
  z-index:9999;
  top: 0;
  left: 0;
  transition: 0.3s;
  width: 100%;
}

.header-wrap{
  padding:8px 5% 0 5%;
  background-color: #fff;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.header-logo{
  display: block;
  width: 320px;
}

.header_right{
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.header_menu{
  display: flex;
  flex-direction: row;
  gap: 5rem;
  align-items: center;
}

.header_menu a{
  position:relative;
}

.header_menu a::before{
  content:"";
  position:absolute;
  width:1px;
  background:#000;
  height:120%;
  right:-2.5rem;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
}

.header_menu a:last-child::before{
  display:none;
}

.hamBtn {
  cursor: pointer;
  z-index: 9999;
  transition: all .5s;
  display: none;
  width: 70px;
  height: 70px;
  background-color: #243374;
}

.hamBar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 24px;
  width: 70%;
  margin: 23px auto;
}

.hamBar>div {
  position: absolute;
  right: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: .5s;
}

@media (max-width: 1600px) {
  .header-logo {
    width: 270px;
  }
  .header-top-contact{
    padding: 0 2rem;
  }
  .header_menu{
    gap: 3rem;
  }
  .header_menu a::before{
    right: -1.5rem;
  }
}

@media (max-width: 1279px) {
  .hamBtn{
    display:block;
  }
}

@media (max-width: 767px) {
  .hamBar>div {
    height: 1px;
  }
}


.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: 8px;
  transform: rotate(-30deg);
}

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

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


.sp__menu {
  background:#fff;
  position: fixed;
  top: 70px;
  right: 0;
  opacity: 0;
  width: 60%;
  max-width:500px;
  height: calc(100vh - 70px);
  display:none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 1s;
  z-index: 8000;
  padding-bottom: 2rem;
  z-index:-100;
}

.sp__menu  a{
  color:#243374;
}

.sp__menu-wrap{
  max-width:1080px;
  margin:0 auto;
  width: 90%;
}


.sp__menu.active {
  opacity: 1;
  visibility: visible;
  z-index:100000;
  display:flex;
}

.ham-list{
  display:flex;
  flex-direction:column;
}

.ham-list > a{
  font-weight:bold;
  font-size:18px;
  padding-left:1rem;
  position:relative;
  margin-bottom: 2rem;
}

.ham-list > div{
  margin:-0.5rem 0 1.5rem 2rem;
}

.ham-list > div > a{
  margin-bottom: 1rem;
}

.ham-list > a::before{
  content:"";
  position:absolute;
  width:8px;
  height:27px;
  background:#243374;
  left:0;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
}

.ham-bottom{
  font-weight:bold;
}

.ham-bottom > p{
  color:#243374;
  border-top:2px solid;
  border-bottom:2px solid;
  text-align:center;
  margin-bottom: 4px;
  padding: 2px 0;
  font-size: clamp(0.875rem, 0.648rem + 0.76vw, 1.5rem);
}

.ham-bottom > p strong{
  font-weight:bold;
}

.ham-btn a{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #243374;
  color: #fff;
  height:50px;
  margin-bottom: 2px;
}

.ham-btn a img{
  width:1.5rem;
}

.ham-btn a p{
  font-size:20px;
}

.ham-btn a:first-child p:last-child{
  font-size: clamp(0.75rem, 0.659rem + 0.3vw, 1rem);
}


@media (max-width: 1279px) {
  .header-wrap{
    padding:0 0 0 5%;
  }
  .header_menu,.header-top{
    display: none;  
  }
  .sp__menu{
    overflow: scroll;
    min-height: 600px;
    height: 100%;
  }
  @media (max-height: 800px) {
    .sp__menu {
      padding: 3rem 0 6rem;
      justify-content: flex-start;
    }
  }
}

@media (max-width: 767px) {
  .sp__menu {
    width:100%;
    padding: 3rem 0 6rem;
    justify-content: flex-start;
    top:50px;
  }
  .header-logo {
    width: 170px;
  }
  .ham-list {
    width: 60%;
    margin: 0 auto;
  }
  .hamBtn{
    width:50px;  
    height:50px;  
  }
  .hamBar {
    height: 16px;
    width: 63%;
    margin: 17px auto;
  }
}


#header.UpMove{
  animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime{
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-100px);
  }
}

/*　下に下がる動き　*/

#header.DownMove{
  animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime{
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

