/* top */

.card-list-wrap.cards-2 .card-list{
    justify-content: center;
}

.card-list-wrap.cards-2 .card-list .card-title,
.card-list-wrap.cards-2 .card-list .card-txt,
.card-list-wrap.cards-2 .card-list .card-sub{
    text-overflow: unset;
    word-break: unset;
    display: block;
    overflow: visible;
}

.card-list-wrap.cards-2 .card-list .card-title{
    margin-bottom: 4px;
    padding: 15px 10px 10px;
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: bold;
    text-align: center;
}

.card-list-wrap.cards-2 .card-list .card-txt,
.card-list-wrap.cards-2 .card-list .card-sub{
    padding: 0 10px 4px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 0.9rem;
}

.card-list-wrap.cards-2 .card-list a:nth-child(2n) {
    margin-right: 0;
}

/* inheritance */
.inheritance .flex.inheritance-content{
    justify-content: start;
    padding: 0 5rem;
}

.inheritance .flex:not(:last-of-type).inheritance-content{
    padding-bottom: 2rem;
}

.inheritance .flex.inheritance-content .flex-txt{
    width: 70%;
}

.flex.inheritance-content .title {
    margin-bottom: 8px;
    font-size: 0.98rem;
    line-height: 1.4;
    font-weight: bold;
}

.flex.inheritance-content .txt,
.flex.inheritance-content .sub {
    margin-bottom: 4px;
    padding: 0 0 4px;
    font-size: 0.8rem;
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #ddd;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.news-item time {
    width: 10em;
    font-size: 0.95rem;
}

.news-cat {
    display: inline-block;
    width: 5.5em;
    padding: 0.25em 0;
    border-radius: 0.3rem;
    color: var(--white);
    font-size: 0.8rem;
    text-align: center;
}

/* リフォーム */
.news-cat-01{
    background:#00AEEF;
}

/* 土地 */
.news-cat-02{
    background:#F39800;
}

/* 中古戸建 */
.news-cat-03{
    background:#8BC34A;
}

/* 相続 */
.news-cat-04{
    background:#E85298;
}

/* お知らせ */
.news-cat-05{
    background:#3B5BA9;
}

.news-title {
    flex: 1;
}

.news-more {
    max-width: 800px;
    margin: 1rem auto 0;
    text-align: right;
}

.news-more a {
    display: inline-block;
    text-decoration: underline;
}

/* 個別ページ */
.case .ly-section:has(.gallery) {
    padding-bottom: 0;
}

.case h4{
    padding-top: 40px;
    padding-bottom: 30px;
    color: var(--brown);
    text-align: center;
    font-size: 1.6rem;
    font-weight: normal;
}

.case h4 span {
    display: block;
    font-size: .9rem;
    opacity: 0.7;
    letter-spacing: 0.3em;
}

.case .gallery{
    padding-bottom: 4rem;
}

.case .gallery .flex{
    justify-content: start;
    flex-wrap: wrap;
    gap: 1rem;
}
.case .gallery .flex a{
    position: relative;
    width: calc(25% - 1rem * 3/4);
}

.case .gallery .flex a::before{
    position: absolute;
    font-family: var(--fas);
    content: "\f00e";
    bottom: 0.5rem;
    right: 0.7rem;
    font-size: 1.3rem;
    font-weight: bold;
}


/*====================================================================
　SP時
====================================================================*/
@media only screen and (max-width: 750px) {

    /* top */

    .card-list-wrap.cards-2 .card-list-item {
        padding-bottom: 0px;
    }
    .card-list-wrap.cards-2 .card-list .card-title{
        font-size: 1.7rem;
        padding-bottom: 0.5rem;
    }

    .card-list-wrap.cards-2 .card-list .card-txt,
    .card-list-wrap.cards-2 .card-list .card-sub{
        font-size: 1.5rem;
        padding-bottom: 1rem;
    }

    /* inheritance */
    .inheritance .flex.inheritance-content{
        justify-content: start;
        align-items: flex-start;
        gap: 1rem;
        padding: 0;
    }

    .inheritance .flex:not(:last-of-type).inheritance-content{
        padding-bottom: 5rem;
    }

    .inheritance .flex.inheritance-content .flex-txt{
        width: 100%;
    }

    .flex.inheritance-content .title {
        font-size: 1.7rem;
    }

    .flex.inheritance-content .txt,
    .flex.inheritance-content .sub {
        font-size: 1.5rem;
    }

    @media only screen and (max-width: 750px) {
    .news-list {
        max-width: none;
    }

    .news-item {
        flex-wrap: wrap;
        gap: 0.6rem 1rem;
        padding: 1.5rem 0;
    }

    .news-item time {
        width: auto;
        font-size: 1.3rem;
    }

    .news-cat {
        width: 5.5em;
        font-size: 1.2rem;
    }

    .news-title {
        width: 100%;
        flex: auto;
        font-size: 1.5rem;
    }

    .news-more a {
        font-size: 1.5rem;
    }
}

    /* 個別ページ */
    .case .ly-section:has(.gallery) {
        padding-bottom: 0;
    }

    .case h4{
        padding-top: 3rem;
        font-size: 1.8rem;
    }

    .case h4 span {
        font-size: 1.2rem;
    }

    .case .gallery .flex{
        flex-direction: row;
    }
    .case .gallery .flex a{
        width: calc(50% - 1rem * 1/2);
    }
    .case .gallery .flex a::before{
        font-size: 2rem;
    }
}