@charset "utf-8";
.header{
  position: fixed;
  z-index:9999;
  top: 0;
  left: 0;
  width: 300px;
  padding:2rem 1rem;
  background-color: #fff;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
  flex-direction: column;
  height: 100%;
  text-align:center;
}

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

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

.header_menu{
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  font-size:14px;
  font-weight:500;
}

.header_menu a p{
  line-height:1.5;
}

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


.header-tel-wrap{
  padding:1rem;
  border-radius:10px;
  border:1px solid #EF7946;
  margin-bottom:2rem;
}

.header-tel-wrap > p:first-child{
  font-size:14px;
  color:#EF7946;
  font-weight:500;
}

.header-tel{
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size:28px;
  font-weight:bold;
  margin:0.5rem auto 8px;
  font-family: "Arial";
}

.header-tel:hover{
  color:#EF7946;
}

.header-tel p{
  border-bottom:2px solid;
  font-weight:bold;
}

.header-tel + p{
  font-size:12px;
}

.header-tel img{
  width:2rem;
}

.hamBtn {
  cursor: pointer;
  z-index: 9999;
  transition: all .5s;
  position: fixed;
  display: none;
  right: 5%;
  top: 4px;
  width: 48px;
  height: 48px;
  background-color: transparent;
}
@media (max-width: 1279px) {
  .hamBtn {
    display:block;
  }
}

@media (max-width: 1280px) {
  .hamBtn {
    right:3%;
  }
}

.hamBar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  border:1px solid #EF7946;
  border-radius:999vh;
}

.hamBar>div {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  width: 70%;
  height: 2px;
  background: #EF7946;
  transition: .5s;
}

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


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

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

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

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

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

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


.sp__menu {
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  height: 100vh;
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items:center;
  transition: 1s;
  z-index: 8000;
  z-index:-100;
}

.sp__menu-wrap .header_menu a p br{
  display:none;
}

.sp__menu-wrap .header_menu {
  align-items: baseline;
  width: fit-content;
  margin: 0 auto 2rem;
}

.sp__menu-wrap .header_menu a{
  border-bottom:1px solid #EFAE63;
  width: 100%;
  padding-bottom: 6px;
}

.sp__menu-wrap .header-tel-wrap{
  width: fit-content;
  margin: 0 auto;
}


.sp__menu-wrap{
  padding: 0.5rem 0.5rem 5rem;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: scroll;
  min-height: 750px;
}

.header_menu a:nth-child(8){
  display:none;
}

.sp__menu-wrap::before{
  content:"";
  position:absolute;
  aspect-ratio:72/62;
  width: 30%;
  bottom: 1%;
  right:5%;
  background:url(https://family-fudosan.co.jp/system_panel/uploads/images/20250530081327501417.png) no-repeat center/contain;
}


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

.ham-bottom{
  width: 256px;
  margin: 1rem auto 0;
}

.ham-bottom a{
  color:#9D9D9D;
}

.ham-bottom a + p{
  color:#EF7946;
  margin-top: 0.5rem;
}

.sp__menu-wrap > a{
  display:none;
}




@media (max-width: 1279px) {
  .header{
    align-items: baseline;
    width: 100%;
    padding: 0.5rem;
    height: auto;
  }
  .header_right,
  .header_right + .header-bottom{
    display:none;
  }
  .sp__menu{
    overflow: scroll;
    padding: 0;
    justify-content: flex-start;
    height: 100%;
    width:300px;
    left:auto;
    right:0;
  }
}

@media (max-width: 767px) {
  .sp__menu {
    width:100%;
  }
  .header-logo {
    width: 180px;
  }
  .sp__menu-wrap > a {
    display: block;
    margin-bottom: 2rem;
  }
  .sp__menu-wrap .header_menu,
  .sp__menu-wrap .header-tel-wrap,
  .ham-bottom{
    width:90%;
  }
  .header-tel{
    justify-content: center;
    text-align: center;
  }
  .sp__menu-wrap .header-tel-wrap{
    text-align: center;
    border-radius: 0;
    padding: 0.5rem;
  }
  .sp__menu-wrap{
    justify-content: flex-start;
    min-height: 650px;
  }
  .sp__menu-wrap .header_menu{
    gap: 1rem;
    margin-bottom: 1rem;
  }
}
