@charset "utf-8";

.gjs-dashed #loading{
  display:none;
}

#loading {
  width: 100vw;
  height: 100vh;
  transition: all 1s;
  background-color: #FFFFFF;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.loading-logo{
  width:180px;
}

.loaded {
  opacity: 0;
  visibility: hidden;
}


.spinner {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(0, 0, 0, 0.1); /* Or use a CSS var for this color */
  border-radius: 50%;
  border-top-color: #F8B51E;
  animation: spin 1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

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

.ham-wrap{
  margin-top:5rem;
}




.header{
  width: 100%;
  padding:5px 1rem 10px 2.5%;
  background: #FFFFFF;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
  font-family: "Noto Sans JP", sans-serif;
}

.header-left{
  width: 160px;
}

.header-left a{
  height: 100%;
  display: block;
}

.header_menu{
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center;
  font-weight: bold;
}

.header_menu a:hover{
  color:#F8B51E;
}

.header-right{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.header-sp{
  display: none;
}

.header-right > p{
  font-size:12px;
}

.header-middle{
  display: flex;
  align-items: center;
  gap: 1rem;
}

.translate{
  width:2.5rem;
}

.goog-te-gadget-simple {
  display: none !important;
}

.contact-btn{
  border-radius:2rem;
  padding:10px 1.5rem;
  background:#FED807;
  font-size: 14px;
  font-weight:bold;
}

.parent{
  position:relative;
}

.sub-menu{
  display: none;
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  width: 140px;
  z-index:1000;
}

.sub-menu a{
  padding: 14px;
  font-weight: 400;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  text-align: left;
  border-bottom: 1px solid #ccc;
  font-size: 14px;
  position: relative;
}

.sub-menu a::before{
  content:"";
  position: absolute;
  width: 8px;
  height: 10px;
  top: 50%;
  right:0.5rem;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  background:url(https://renhadensetsu.com/system_panel/uploads/images/20260401095915766101.png) no-repeat center/contain;
}

.parent::after{
  content:"";
  position: absolute;
  width:150px;
  height:5rem;
  top: 90%;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  display:none;
  z-index:999;
}

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

.parent .sub-menu a:hover{
  color:#000;
  opacity:0.9;
}

.hamBtn {
  cursor: pointer;
  z-index: 9999;
  transition: all .5s;
  display: none;
  align-items: center;
  width: 57px;
  height: 33px;
  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: 1px;
  background: #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: 50%;
  transform: rotate(-30deg);
}

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

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


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

.sp__menu .header_menu{
  flex-direction: column;
  gap: 2.5rem;
}

.ham-wrap{
  max-width:1080px;
  margin:0 auto;
  width: 90%;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem ;
  flex-direction: column;
  text-align: center;
}

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

.gtranslate_wrapper #gt_float_wrapper{
  top: 2rem !important;
  right: 1rem !important;
  position: absolute !important;
}

@media (max-width: 1024px) {
  .header-left {
    width: 140px;
  }
}

@media screen and (min-width: 768px) {
  .parent:hover .sub-menu{
    display: block;
  }
}


@media (max-width: 767px) {
  .header-right{
    display:none;
  }
  .hamBtn{
    width: 40px;
    height: 20px;
  }
  .header-sp{
    display: flex;
    gap:1rem;
    align-items: center;
  }
  .hamBtn{
    display:flex;
  }
  .sp__menu {
    width:100%;
    max-width: none;
    top: 52px;
    border-top: 1px solid #cccccc33;
    padding: 1rem 5% 0;
  }
  .header {
    padding: 8px 2.5% 8px;
    height: 52px;
  }
  .header-left {
    width: 110px;
  }
  .sp__menu .header_menu{
    gap: 2rem;
  }
  .sp__menu .header_menu-item a {
    font-size: 16px;
  }
  .loading-logo{
    width: 140px;
  }
  .header-middle{
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid #cccccc33;
    border-bottom: 1px solid #cccccc33;
  }
  .sp__menu .header_menu {
    gap: 0rem;
    width: 100%;
    text-align:left;
    border-top: 1px solid #cccccc33;
  }
  .sp__menu .header_menu a{
    padding:16px 0;
    border-bottom: 1px solid #cccccc33;
    display: block;
    width: 100%;
  }
  .parent{
    width: 100%;
    border-bottom: 1px solid #cccccc33;
    position: relative;
  }
  .sp__menu .header_menu .parent > a{
    width:fit-content;
    border:none;
  }
  .header_menu .parent:before, .header_menu .parent:after {
    content: '';
    position: absolute;
    top: 16px;
    right: 1rem;
    background-color: #F8B51E;
    display:block;
    transition:0.3s;
  }
  .header_menu .parent:before {
    width: 1px;
    height: 16px;
  }
  .header_menu .parent:after {
    width: 16px;
    height: 1px;
    transform: none;
    left: auto;
    right: 0.55rem;
    top: 23px;
  }
  .header_menu .parent:has(.open):before {
    opacity:0;
  }
  .parent .sub-menu{
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    padding-bottom: 1rem;
  }
  .parent .sub-menu a{
    border: none;
    padding: 8px 0;
    font-size: 12px;
  }
  .sub-menu.open{
    display:block;
  }
  .sub-menu a::before{
    display:none;
  }
}


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