@charset "utf-8";

.faq-btn-wrap{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  width:90%;
  margin:0 auto 100px;
}

.faq-btn{
  width:calc( (100% - 20px ) / 2);
  background:#fff;
  border-radius:20px;
  padding:2.5rem 3%;
  display:flex;
  justify-content: space-between;
  align-items: center;
  border:4px solid #EF7946;
}

.faq-btn a{
  margin:1.5rem 0 0;
}

.faq-btn img{
  width:40%;
}

.faq-btn div{
  width:55%;
  font-size:clamp(1rem, 0.563rem + 0.5vw, 1.125rem);
  font-weight:bold;
  color:#EF7946;
}

.faq-btn div strong{
  position: relative;
  font-weight: 500;
  z-index: 0;
}

.faq-btn div strong::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1rem;
  background: #FFF7E6;
  left: 0;
  top: 1rem;
  z-index: -1;
}

.faq-btn.second{
  border-color:#1C93CC;
}

.faq-btn.second div,
.faq-btn.second a:hover::before{
  color:#1C93CC;
}

.faq-btn.second a{
  background:#1C93CC;
  border-color:#1C93CC;
}

.faq-btn.second a:hover{
  color:#1C93CC;
  background:rgba(28,147,204,0.1);
  border-color:#1C93CC;
}


.faq-btn.third{
  border-color:#66B28F;
}

.faq-btn.third div,
.faq-btn.third a:hover::before{
  color:#66B28F;
}

.faq-btn.third a{
  background:#66B28F;
  border-color:#66B28F;
}

.faq-btn.third a:hover{
  color:#66B28F;
  background:rgba(102,178,143,0.1);
  border-color:#66B28F;
}


.faq-btn.fourth{
  border-color:#0C5EA5;
}

.faq-btn.fourth div,
.faq-btn.fourth a:hover::before{
  color:#0C5EA5;
}

.faq-btn.fourth a{
  background:#0C5EA5;
  border-color:#0C5EA5;
}

.faq-btn.fourth a:hover{
  color:#0C5EA5;
  background:rgba(12,94,165,0.1);
  border-color:#0C5EA5;
}

.onayami{
  padding:4rem 0 5rem;
  background:#fff;
}

.onayami-bg{
  width:80%;
  max-width:1080px;
  margin:0 auto;
}

.onayami-title{
  display:flex;
  align-items: flex-start;
  padding:15px 2rem;
  background:#EF7946;
  color:#fff;
  align-items:center;
  font-family: "Mochiy Pop P One", sans-serif;
  justify-content: space-between;
  border-radius:8px;
  margin-bottom:4rem;
}

.onayami-title p{
  width: 50px;
  font-size: 14px;
  font-weight: bold;
  position: relative;
  line-height: 1;
  text-align: center;
}

.onayami-title p::before {
  content: "";
  position: absolute;
  right: -1.5rem;
  top: 0;
  height: 105%;
  width: 1px;
  background: #fff;
}

.onayami-title p strong{
  display:block;
  font-family:"Zen Maru Gothic", serif;
  font-size: 3rem;
  line-height: 1;
}

.onayami-title h2{
  width:calc(100% - 100px);
  font-size:clamp(1rem, 0.818rem + 0.61vw, 1.5rem);
  letter-spacing:2px;
  line-height:2;
}

.onayami-title h2 br{
  display:none;
}

.onayami-title h2 strong{
  font-weight:bold;
  margin:0 4px;
  display: inline;
}

.onayami-title h2 span{
  padding: 3px 4px 5px;
  background: #fff;
  border-radius: 4px;
  margin: 0px 2px;
  display: inline-block;
  color: #EF7946;
  line-height:1;
}

.onayami-wrap{
  display:flex;
  justify-content: space-between;
  align-items: flex-start;
}

.onayami-wrap:not(:last-child){
  margin-bottom:3.5rem;
}

.onayami-wrap:nth-child(odd){
  flex-direction:row-reverse;
}

.onayami-wrap img{
  width:37%;
}

.onayami-text{
  width:58%;
}

.onayami-q,
.onayami-a{
  display:flex;
  gap:1rem;
  align-items: flex-start;
}

.onayami-q{
  font-size:clamp(1rem, 0.955rem + 0.15vw, 1.125rem);
  font-weight:500;
  padding-bottom:8px;
  border-bottom:1px solid #EF7946;
  margin-bottom:20px;
}

.onayami-a div > p:first-child,
.onayami-a > p:first-child{
  color:#EF7946;
}

.onayami-a div > p:first-child{
  font-family: "Mochiy Pop P One", sans-serif;
  font-size:clamp(1rem, 0.955rem + 0.15vw, 1.125rem);
  margin-bottom:8px;
}

.onayami-q p:first-child,
.onayami-a > p:first-child{
  font-size:clamp(1.25rem, 0.795rem + 1.52vw, 2.5rem);
  line-height: 1;
  padding-top: 0.5rem;
}


.point-bg{
  margin:10rem auto 0;
  width:90%;
  max-width:1345px;
  background:#FFF7E6;
  border-radius:20px;
  padding:7.5rem 5% 5rem;
  position:relative;
}

.point-title{
  width:90%;
  display:flex;
  justify-content: space-between;
  align-items: center;
  position:absolute;
  top:-6rem;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
}

.point-title div{
  text-align:center;
  width:50%;
  font-family: "Mochiy Pop P One", sans-serif;
  color:#EF7946;
  font-size:clamp(1rem, 0.955rem + 0.15vw, 1.125rem);
  max-width:550px;
}

.point-title h2{
  color:#fff;
  background:#EF7946;
  border-radius:40px;
  padding:23px;
  font-size:clamp(1.25rem, 0.977rem + 0.91vw, 2rem);
  letter-spacing:2px;
  position:relative;
  font-weight:400;
}
.point-title h2::before{
  content:"";
  position:absolute;
  width:30px;
  height:24px;
  bottom:-23px;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  background:url(https://family-fudosan.co.jp/system_panel/uploads/images/20250528160111809195.svg) no-repeat center/contain;
}

.point-title p{
  position:relative;
  width:fit-content;
  margin:0 auto 1rem;
}

.point-title p::before{
  content:"";
  position:absolute;
  width: 3px;
  height: 25px;
  background: #EF7946;
  transform: rotate(30deg);
  right: -12px;
  top: 8px;
}

.point-title p::after{
  content:"";
  position:absolute;
  width: 3px;
  height: 25px;
  background: #EF7946;
  transform: rotate(-30deg);
  left: -12px;
  top: 8px;
}


.point-title img{
  width:18%;
}

.point-title div + img{
  width:13%;
}

.commit-item:not(:last-child){
  margin-bottom:3.5rem;
}

.commit-item > img{
  aspect-ratio:auto;
  object-fit:contain;
}

.sky .onayami-title,
.sky .point-title h2,
.sky .point-title p::before,
.sky .point-title p::after{
  background:#33B0BE;
}

.sky .onayami-q{
  border-color:#33B0BE;
}

.sky .onayami-a div > p:first-child, 
.sky .onayami-a > p:first-child,
.sky .onayami-title h2 span,
.sky .point-title div,
.sky .commit-item h3{
  color:#33B0BE;
}

.sky .point-title img{
  width:10%;
}

.sky .point-title h2::before{
  background:url(https://family-fudosan.co.jp/system_panel/uploads/images/20250528162221897057.png) no-repeat center/contain;
}


.green .onayami-title,
.green .point-title h2,
.green .point-title p::before,
.green .point-title p::after{
  background:#57AA84;
}

.green .onayami-q{
  border-color:#57AA84;
}

.green .onayami-a div > p:first-child, 
.green .onayami-a > p:first-child,
.green .onayami-title h2 span,
.green .point-title div,
.green .commit-item h3{
  color:#57AA84;
}

.green .point-title img{
  width:20%;
}

.green .point-title div + img{
  width:9%;
}

.green .point-title h2::before{
  background:url(https://family-fudosan.co.jp/system_panel/uploads/images/20250528170159229761.png) no-repeat center/contain;
}


.blue .onayami-title,
.blue .point-title h2,
.blue .point-title p::before,
.blue .point-title p::after{
  background:#0C5EA5;
}

.blue .onayami-q{
  border-color:#0C5EA5;
}

.blue .onayami-a div > p:first-child, 
.blue .onayami-a > p:first-child,
.blue .onayami-title h2 span,
.blue .point-title div,
.blue .commit-item h3{
  color:#0C5EA5;
}

.blue .point-title img{
  width:16%;
}

.blue .point-title div + img{
  width:12%;
}

.blue .point-title h2::before{
  background:url(https://family-fudosan.co.jp/system_panel/uploads/images/20250528173311171463.png) no-repeat center/contain;
}

@media screen and (max-width: 1023px) {
  .faq-btn-wrap{
    justify-content: center;
  }
  .faq-btn {
    width: 100%;
    max-width: 500px;
  }
  .onayami-wrap,
  .onayami-wrap:nth-child(odd){
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }
  .onayami-wrap img {
    width: 100%;
    max-width: 450px;
  }
  .onayami-text {
    width: 100%;
  }
  .commit-title img {
    width: 80px;
  }
  .commit-item h3{
    width: calc(100% - 100px);
  }
}

@media screen and (max-width: 767px) {
  .faq-btn-wrap{
    margin: 0 auto 50px;
  }
  .onayami {
    padding: 2rem 0 2rem;
  }
  .onayami-bg{
    width:90%;
  }
  .faq-btn{
    border: 2px solid #EF7946;
    border-radius: 10px;
    padding: 1rem 3%;
  }
  .faq-btn a {
    margin: 0.5rem 0 0;
    padding: 8px 2rem 8px 1.5rem;
  }
  .faq-btn img {
    width: 30%;
  }
  .faq-btn div {
    width: 65%;
    font-size: 14px;
  }
  .faq-btn div strong::before{
    height: 12px;
    top: 13px;
  }
  .onayami-title{
    padding: 8px;
    margin-bottom: 2rem;
  }
  .onayami-title p {
    width: 35px;
    font-size: 10px;
  }
  .onayami-title p strong{
    font-size: 2rem;
  }
  .onayami-title h2 {
    width: calc(100% - 50px);
  }
  .onayami-title p::before{
    right: -6px;
  }
  .onayami-title h2 span {
    padding: 3px 2px 5px 4px;
    margin: 0px 1px;
  }
  .onayami-wrap, .onayami-wrap:nth-child(odd){
    gap: 1.5rem;
  }
  .onayami-q, .onayami-a{
    gap: 0.5rem;
  }
  .point-title{
    top: -4rem;
  }
  .point-title img{
    display:none;
  }
  .point-title div{
    width:100%;
  }
  .point-title h2{
    padding: 12px 23px;
  }
  .point-title p{
    margin: 0 auto 0.5rem;
  }
  .point-title h2::before{
    width: 20px;
    height: 16px;
    bottom: -16px;
  }
  .point-bg{
    margin: 8rem auto 0;
    border-radius: 10px;
    padding: 3rem 5% 2rem;
  }
  .about, .commit-item, .commit .commit-item:nth-child(2){
    gap:1.5rem;
  }
  .commit-title img {
    width: 50px;
  }
  .commit-item h3 {
    width: calc(100% - 60px);
  }
  .onayami-title h2 br{
    display:block;
  }
}