@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);
}
}*/


[id] {
  scroll-margin-top: 100px;
}

.header-top{
  background:#2D96D9;
  padding:6px 5%;
  width:100%;
}

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

.header-contents{
  padding:12px 2.5rem 12px 5%;
  background-color:#fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom:0.8px solid #D3D3D3;
}

.header-logo{
  display: block;
  width: 12%;
  max-width:192px;
}

.header-logo:hover{
  opacity:0.7;
}

.header-right{
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.header_menu{
  display: flex;
  gap: 2rem;
  align-items: center;
}

.header_menu-item a{
  text-align: center;
  position: relative;
  font-size:15px;
}

.header_menu-item a:hover{
  color:#2D96D9;
  font-weight:bold;
}

.parent{
  position: relative;
  cursor:pointer;
}

.parent::before{
  content:"";
  display:none;
  width: 150%;
  height: 50px;
  top: 100%;
  left: -25%;
  position:absolute;
}

.parent:hover::before{
  display:block;
}

.header .header_menu > .parent > p,
.sp__menu .header_menu > .parent > p{
  font-size:15px;
  display:flex;
  align-items:center;
  gap:8px;
  justify-content: center;
}

.sp__menu .header_menu > .parent > p{
  justify-content: space-between;
}

.header .header_menu > .parent > p::after,
.sp__menu .header_menu > .parent > p::after{
  content:"";
  display:block;
  width: 8px;
  height: 4px;
  background:url(https://kaiou-service.com/system_panel/uploads/images/20260702171048600044.png) no-repeat center/contain;
}


@media (min-width: 1025px) {
  .header-right .header_menu > .parent:hover .sub-menu {
    display: flex;
    gap: 1.5rem;
  }
}

.header-btn{
  display:flex;
  gap:8px;
}

.header-btn a{
  border-radius:24px;
  border:2px solid #2D96D9;
  width:185px;
  height:48px;
  line-height:48px;
  text-align:center;
  color:#2D96D9;
  font-weight:bold;
  font-size:15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-btn a:hover{
  background:#2D96D9;
  color:#fff;
}

.header-btn a:last-child{
  border:1px solid #212B27;
  background:#003455;
  color:#fff;
}

.header-btn a:last-child:hover{
  background:#fff;
  color:#003455;
}

.header-btn a:last-child p{
  display:flex;
  gap:8px;
  align-items:center;
}

.header-btn a:last-child p::before{
  content:"";
  display:block;
  width:1.5rem;
  height:1.5rem;
  transition:0.3s;
  background:url(https://kaiou-service.com/system_panel/uploads/images/20260625130458189299.png) no-repeat center/contain;
}

.header-btn a:last-child:hover  p::before{
  background:url(https://kaiou-service.com/system_panel/uploads/images/20260625130458571306.png) no-repeat center/contain;
}

.sub-menu{
  box-shadow: 6px 6px 24px rgba(211, 211, 211, 0.56);
  padding: 2rem;
  display: none;
  position: absolute;
  width: -moz-max-content;
  width: max-content;
  text-align: center;
  background:#fff;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  border:0.8px solid #D3D3D3;
}

.sub-menu a{
  display: block;
  width: 200px;
  text-align: left;
}

.sub-menu a img{
  margin-bottom:1rem;
}

.sub-menu a p{
  font-weight:bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sub-menu a p::after{
  content:"";
  display:block;
  width:1.5rem;
  height:1.5rem;
  transition:0.3s;
  background:url(https://kaiou-service.com/system_panel/uploads/images/20260625132102381093.png) no-repeat center/contain;
}

.sub-menu a:hover p::after{
  background:url(https://kaiou-service.com/system_panel/uploads/images/20260625132210860833.png) no-repeat center/contain;
}

.sp__menu .parent::after{
  display:none;
}

.sp__menu .header_menu > .parent > p{
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-bottom: 0.4px solid #D3D3D3;
  position: relative;
  font-size:1rem;
  line-height:1;
  padding-bottom: 10px;
}
.sp__menu .parent > p::before{
  content: "";
  position: absolute;
  width: 60px;
  height: 1px;
  background: #2D96D9;
  left: 0;
  bottom: 0;
}


.sp__menu .parent{
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.sp__menu .sub-menu{
  position: relative;
  left: auto;
  transform: none;
  top:auto;
  box-shadow: none;
  padding: 1rem 1rem 0;
}

.sp__menu .sub-menu.open{
  display:block;
}

.sp__menu .header_menu-item{
  width:100%;
}

.hamBtn {
  cursor: pointer;
  z-index: 9999;
  transition: all .5s;
  display: none;
  align-items: center;
  width: 40px;
  height: 20px;
  justify-content: center;
}

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

.hamBar>div {
  position: absolute;
  right: 0;
  width: 100%;
  height: 2px;
  background: #383A40;
  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) {
  opacity: 0;
}

.hamBar.active>div:nth-child(2) {
  top: 50%;
  transform: rotate(-30deg);
}

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


.sp__menu {
  background: #fff;
  position: fixed;
  top: 0;
  left:0;
  opacity: 0;
  width: 100%;
  height: 100vh;
  display:flex;
  flex-direction: column;
  padding: 10rem 0 0;
  align-items:center;
  transition: 1s;
  z-index:-100;
  gap: 2rem;
  visibility:hidden;
}

.sp__menu .header-right{
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sp__menu .header-btn{
  flex-direction: column;
  gap:1rem;
}

.sp__menu .sub-menu{
  gap: 1.5rem;
  flex-direction: column;
  padding: 0;
  border: none;
}

.sp__menu .sub-menu img,
.sp__menu .sub-menu a p::after{
  display:none;
}

.sp__menu .sub-menu a p{
  font-size: 14px;
  font-weight: 400;
}

.sp__menu .header_menu-item .sub-menu a{
  gap:8px;
  margin-bottom:1rem;
}

.sp__menu .header_menu-item .sub-menu a::before{
  content: "";
  width: 8px;
  height: 1px;
  background: #212B27;
  display: block;
  transition: 0.3s;
}

.sp__menu .header_menu > .parent:has(.open) > p::after{
  transform: rotate(180deg);
}

.ham-tel{
  text-align:center;
  color:#003455;
}

.ham-tel .english{
  font-weight:bold;
}

.ham-tel .english a{
  color:#003455;
  line-height: 1.5;
  font-size:2.5rem;
}

.sp__menu .header_menu{
  flex-direction: column;
  gap: 20px;
  width: 80%;
  max-width: 450px;
}

.sp__menu .header_menu-item a{
  width: fit-content;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sp__menu .header_menu-item a .accent{
  font-size:1.5rem;
  color:#828761;
  font-weight:500;
}

.sp__menu .header_menu-item{
  padding-bottom:20px;
}

.sp__menu .header_menu-item > a{
  padding-bottom:4px;
  border-bottom:0.4px solid #D3D3D3;
  position:relative;
  width: 100%;
  display: block;
  font-size: 16px;
  padding-bottom: 10px;
}

.sp__menu .header_menu-item > a::before{
  content:"";
  position:absolute;
  width:60px;
  height:1px;
  background:#2D96D9;
  left:0;
  bottom:0;
}

.sp__menu .header_menu-item.parent{
  position:relative;
}
/*
.sp__menu .header_menu-item.parent::before,
.sp__menu .header_menu-item.parent::after {
content: "";
background-color:#828761;
border-radius: 10px;
width: 14px;
height: 0.5px;
position: absolute;
top: 12px;
right: 0;
transform-origin: center center;
display:block;
pointer-events: none;
}
.sp__menu .header_menu-item.parent::before {
width: 0.5px;
height: 14px;
top: 5px;
right: 7px;
left: auto;
}*/

.sp__menu .header_menu-item.parent > a{
  pointer-events:none;
}

.sp__menu .header_menu-item.parent:has(.open)::before {
  opacity:0;
}

.sp__menu.active {
  opacity: 1;
  visibility: visible;
  z-index:1000;
}

.header-btn.tab,
.header-tab{
  display:none;
}

@media (max-width: 1024px) {
  .header-logo{
    width:150px;
  }
  .header-btn.tab{
    display:block;
  }
  .hamBtn {
    display:flex;
  }
  .header-tab{
    display:flex;
    gap:1.5rem;
    align-items:center;
  }
}



@media (max-width: 767px) {
  .hamBtn{
    width: 20px;
    height: 15px;
  }
  .header-btn.tab a{
    font-size: 10px;
    width: 110px;
    height: 27px;
  }
  .hamBar>div{
    height:1px;
  }
  .header-tab{
    gap:10px;
  }
  .header-btn a:last-child p::before{
    width:1rem;
    height:1rem;
  }
  .sp__menu {
    padding: 5rem 0;
    overflow: scroll;
  }
  .sp__menu .header_menu{
    gap:0;
  }
  .sp__menu .header-right{
    gap:0.5rem;
  }
  .header-logo{
    width: 114px;
  }
  .ham-wrap {
    gap: 2rem;
    margin-bottom: 2rem;
  }
  .header-top .out-tab{
    font-size: 8px;
    gap: 4px;
  }
  .header-top .out-tab img {
    width: 8px;
  }
  .header-contents {
    padding: 8px 5%;
  }
}


#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);
  }
}

