/*
Theme Name: akarikunimi-child
Version: 1.0
Template: akarikunimi
*/

/*----------------------------
    アパートセクション 
----------------------------*/

.top_apart_box {
    background-image: url("../../../images/sumika/top_apart_bg.png");
    background-position: center;
    background-color:rgba(255,255,255,0.7);
    background-blend-mode:lighten;
    background-size: cover;
    width: 45%;
    height: 430px;
    margin: 135px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 400;
}
.top_apart_box .top_apart_wrap {
    width: 100%;
    padding: 0 18%;
}
.top-apartment-logo-text img {
    width: 280px;
}




.top-apartment-button {
    /* 既存のスタイルを維持 */
    background-color: #BD9E73;
    border-radius: 999px;
    color: #fff!important;
    display: block;
    width: 100%;
    height: 52px;
    line-height: 52px;
    font-size: 19px;
    margin-top: 16px;
    
    /* 新しく追加するスタイル */
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* キラッと光る要素の追加 */
.top-apartment-button:before {
    position: absolute;
    content: '';
    display: inline-block;
    top: 52px;  /* ボタンの高さと同じ値 */
    left: 0;
    width: 400%;
    height: 400%;
    background-color: rgba(255,255,255,0.8);
    animation: kiran 2.5s ease-in-out infinite;
}

@keyframes kiran {
    0% {
        transform: scale(0) rotate(45deg);
        opacity: 0;
    }
    80% {
        transform: scale(0) rotate(45deg);
        opacity: 0.5;
    }
    81% {
        transform: scale(2) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: scale(8) rotate(45deg);
        opacity: 0;
    }
}

.top-apartment-text p{
    text-align:justify;
    text-align-last:justify;
    border-bottom: solid 1px #231815;
    margin: 4px 0;
    font-size: 15px;
    padding-bottom: 4px;
}
.top-apartment-text {
    max-width: fit-content;
    margin: 32px auto 0 auto;
}



@media screen and (max-width: 960px) {
    .top-apartment-button {
        font-size: min(17px, 3vw);
    }
    .top_apart_box .top_apart_wrap {
        padding: 0 6%;
    }
}

@media screen and (max-width: 680px) {
    .top_apart_box {
        width: 94%;
        margin: 3%;
    }
    .top-apartment-button {
        font-size: 17px;
    }
    .top-apartment-logo-text img {
        width: 210px;
    }
    .top-apartment-text p {
        font-size: 14.5px;
    }
    .top_apart_box .top_apart_wrap {
        padding: 0 14%;
    }
}