.main-slider{
    position: relative;
    margin-bottom: 50px;
}

.main-slider::before{
    content: "";
    background-image: url("../images/page_top_pc.svg");
    position: absolute;
    background-repeat: no-repeat;
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    height: 865px;
    top: -130px;
    background-position: center center;
    background-size: auto 100%;
}

.main-slider::after{
    content: "";
    background-image: url("../images/slider_cloud_pc.svg");
    position: absolute;
    background-repeat: no-repeat;
    width: 289px;
    height: 189px;
    bottom: -90px;
    right: -10px;
    background-position: center center;
    background-size: auto 100%;
    z-index: 1;
}

.flex-viewport {
    border-radius: 60px 60px 0 0;
    overflow: hidden;
    border: 15px solid #fff;
}


.about{
    display: flex;
    position: relative;
    z-index: 2;
    justify-content: space-between;
}


.about > *:nth-child(1) {
  align-self: flex-end;
  ;
}

.about > *:nth-child(3) {
  align-self: flex-start;
}

.about::before{
    content: "";
    background-image: url("../images/about_left_bird.svg");
    position: absolute;
    background-repeat: no-repeat;
    width: 45px;
    height: 36px;
    top: 250px;
    left: -130px;
    z-index: 2;
}
.about::after{
    content: "";
    background-image: url("../images/about_right_bird.svg");
    position: absolute;
    background-repeat: no-repeat;
    width: 45px;
    height: 41px;
    top: -160px;
    right: -50px;
}


.about div{
    color: #4B5D92;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.75;
    text-align: center;
}

.about div::before{
    content: "";
    background-image: url("../images/about_star_pc.svg");
    position: absolute;
    background-repeat: no-repeat;
    width: 1200px;
    height: 429px;
    background-position: center center;
    background-size: auto 100%;
    left: 50%;
    top:0px;
    transform: translateX(-50%);
    z-index: -2;
}

.about img{
    object-fit: contain;
}

.about .mask1 {
  -webkit-mask: url("../images/mask_top_left.svg") no-repeat center / contain;
  mask: url("../images/mask_top_left.svg") no-repeat center / contain;
  position: relative;
}


.about .mask2 {
  -webkit-mask: url("../images/mask_top_right.svg") no-repeat center / contain;
  mask: url("../images/mask_top_right.svg") no-repeat center / contain;
  position: relative;
}



.about div .button-yellow{
    margin-top: 30px;
    margin-bottom: 46px;
}

.post.main-box{
    position: relative;
    padding: 110px 90px 75px;
    margin-bottom: 110px;
    margin-top: 105px;
}

.post h2{
    margin-bottom: 58px;
}

.post .post-list{
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 45px;
}

.post .post-card-link {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #FAF9E4;
  border-radius: 60px;
  transition: color 0.3s ease; 
  text-decoration: none;
  overflow: hidden;
}

.post .post-card-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #4B5D92;

  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s ease;

  z-index: 0;
}

.post .post-card-link:hover::before {
  transform: scaleX(1);
}

.post .post-card-link > * {
  position: relative;
  z-index: 1;
}

.post .post-card-link:hover .post-category,
.post .post-card-link:hover .post-content .post-date,
.post .post-card-link:hover .post-content h3{
    color: #fff;
}

.post .post-card-link:hover .arrow-icon .arrow-normal{
    opacity: 0;
}

.post .post-card-link:hover .arrow-icon .arrow-hover{
    opacity: 1;
}

.post .post-card-link .post-category{
    background-color: #4B5D92;
    color: #FFF89F;
    font-size: 14px;
    font-weight: bold;
    line-height: 2.5;
    padding:24px 20px;
    border-radius: 60px;
    width: 162px;
    text-align: center;
}

.post .post-card-link .post-content{
    display: flex;
    flex-direction: column;
    gap:10px;
    padding-left: 37px;
    position: relative;
}

.post .post-card-link .post-content .post-date{
    font-size: 14px;
    color: #4B5D92;
    transition: color 0.3s ease;
    font-weight: 600;
}

.post .post-card-link .post-content h3{
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    color: #4a4a4a;
    transition: color 0.3s ease;
}

.post .post-card-link .arrow-icon{
    position: relative;
    display: inline-block;
    width: 16px;
    height: 12px;
    margin: 0 20px 0 auto;
}

.post .post-card-link .arrow-icon .arrow-normal,
.post .post-card-link .arrow-icon .arrow-hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.post .post-card-link .arrow-icon .arrow-normal {
    opacity: 1;
}

.post .post-card-link .arrow-icon .arrow-hover {
    opacity: 0;
}


.faq{
    position: relative;
    padding: 110px 90px 75px;
    margin-bottom: 110px;
}

.faq h2{
    margin-bottom: 36px;
}

.faq p{
    font-size: 16px;
    line-height: 1.75;
}

.qa-flex{
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin-top: 37px;
    margin-bottom: 52px;
}

.qa-flex div{
    position: relative;
    flex: 1;
    border-radius: 40px 40px 20px 20px;
    background-color: #FAF9E4;
}

.qa-flex h3{
    position: relative;
    width: 100%;
    background-color: #F88A95;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.45;
    color: #fff;
    border-radius: 40px;
    min-height: 81px;
    padding: 0 10px 0 50px;
    margin: 0;
    align-items: center;
    display: flex;
}

.qa-flex h3::before{
    content: "Q";
    position: absolute;
    font-family: 'Zen Maru Gothic';
    font-size: 60px;
    font-weight: bold;
    top: -23px;
    left: -3px;
}

.qa-flex p{
    position: relative;
    padding: 25px 30px 45px;
    font-size: 16px;
}


/* ----------media query---------- */
@media screen and (max-width: 1439px) {

    .main-slider::after {
        right: -100px;
    }

    .about::before {
        content: "";
        background-image: unset;
    }

    .about::after {
        content: "";
        background-image: unset;
    }

}


@media screen and (max-width: 1023px) {
    .about{
        flex-wrap: wrap;
        justify-content: center;
        column-gap: 10%;
    }
    
    .about div{
        order: 1;
        width: 100%;
    }

    .about .mask1{
        order: 2;
        width: 45%;
    }

    .about .mask2{
        order: 3;
        width: 45%;
    }

    .qa-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        margin-top: 37px;
        margin-bottom: 52px;
    }
    
}


@media screen and (max-width: 767px) {

    .main-slider::before {
        background-image: url(../images/page_top_sp.svg);
        height: 236px;
        top: -70px;
    }

    .main-slider::after{
        background-image: url("../images/slider_cloud_sp.svg");
        width: 105px;
        height: 71px;
        bottom: -30px;
        right: -30px;
        background-position: center center;
        background-size: auto 100%;
        z-index: 1;
    }

    .flex-viewport {
        border-radius: 30px 30px 0 0;
        overflow: hidden;
        border: 5px solid #fff;
    }

    .about div {
        font-size: 18px;
        font-weight: bold;
        line-height: 1.75;
        text-align: unset;
    }

    .about div::before {
        background-image: url(../images/about_star_sp.svg);
        width: 355px;
        height: 214px;
        background-position: center center;
        background-size: auto 100%;
        left: 50%;
        top: 0px;
        transform: translateX(-50%);
    }

    .about div img{
        margin: 0 auto;
        display: block;
        width: 80px;
    }

    .about div p{
        margin-top:10px;
    }

    .about div .button-yellow{
        margin: 16px auto 29px;
        display: table;
    }

    .post h2 {
        margin-bottom: 34px;
    }

    .post.main-box{
        padding: 40px 25px 50px;
        margin-top: 55px;
        margin-bottom: 76px;
    }

    .post .post-list {
        gap: 10px;
        margin-bottom: 25px;
    }

    .post .post-card-link {
        flex-wrap: wrap;
        border-radius: 30px;
        align-items: unset;
    }

    .post .post-card-link .post-category {
        margin: 9px 14px;
        padding: 11px 20px;
        border-radius: 60px;
        width: 100%;
        text-align: center;
    }

    .post .post-card-link .post-content {
        padding-left: 16px;
        gap: 3px;
        width: 88%;
        margin-bottom:20px;
    }

    .post .post-card-link .arrow-icon {
        position: relative;
        display: inline-block;
        width: 16px;
        height: 12px;
        margin: 20px 14px 0 auto;
    }

    .post .button-white::after {
        right: -30px;
    }

    .faq{
        padding: 40px 25px 50px;
        margin-bottom: 55px;    
    }

    .faq h2 {
        margin-bottom: 27px;
    }

    .qa-flex {
        gap: 34px;
        margin-top: 27px;
        margin-bottom: 43px;
    }

    .qa-flex h3 {
        border-radius: 40px 40px 40px 0;
        padding: 43px 18px 12px;
        align-items: center;
        display: block;
        font-size: 16px;
        text-align: center;
    }

    .qa-flex h3::before {
        font-size: 50px;
        font-weight: bold;
        left: 50%;
        top: -25px;
        transform: translateX(-50%);
    }

    .qa-flex p{
        font-size: 14px;
        padding: 20px 22px;
    }

    .faq p.sentence_center{
        text-align: unset;
    }

    .faq .button-white::after {
        right: -30px;
    }

    
}