/* 施工事例のエリア絞り込みと、内部リンクの関連ブロック。main.css の直後に読み込まれる。 */

/* チップ型のリンク */
.rel__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.rel__chip {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1.6rem;
    border: 1px solid #dcdcdc;
    border-radius: 10rem;
    background: #fff;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #211815;
    transition: border-color .3s ease, color .3s ease, background-color .3s ease;
}
.rel__chip:hover {
    border-color: #00a3d6;
    color: #00a3d6;
}
.rel__chip.is-current {
    border-color: #00a3d6;
    background: #00a3d6;
    color: #fff;
}
.rel__chip__num {
    font-size: 1.2rem;
    color: #00a3d6;
}
.rel__chip.is-current .rel__chip__num {
    color: #fff;
}

/* 一覧の「エリアで探す」 */
.rel__area {
    margin: 0 0 3rem;
}
.rel__area__lead {
    margin: 0 0 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

/* 関連ブロック */
.rel__sec {
    margin: 6rem 0 0;
    padding-top: 5rem;
    border-top: 1px solid #efefef;
}
.rel__ttl {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    margin: 0 0 3rem;
    text-align: center;
}
.rel__ttl .ja {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.5;
}
.rel__ttl .en {
    font-size: 1.4rem;
    font-weight: 700;
    color: #00a3d6;
    line-height: 1;
}
.rel__sec .rel__chips {
    justify-content: center;
}
.rel__more {
    margin: 2.4rem 0 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}
.rel__more a {
    color: #00a3d6;
    text-decoration: underline;
    text-underline-offset: .3em;
}
.rel__more a:hover {
    text-decoration: none;
}
.rel__works,
.rel__columns {
    margin: 0;
    padding: 0;
}
.rel__columns .column__list__info__ttl {
    font-weight: 700;
    line-height: 1.6;
}
.rel__cta {
    text-align: center;
}
.rel__cta__lead {
    margin: 0 0 2rem;
    font-size: 1.8rem;
    font-weight: 700;
}
.rel__cta .section__content__btn__wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.6rem;
}
.rel__cta .section__content__btn {
    margin: 0;
}

/* 詳細ページ内のカードは subpage__detail の枠線・見出し指定を打ち消す */
.subpage__detail .rel .rel__works .section__content__info {
    border: 0;
    margin: 0;
    padding: 0 2rem 2rem;
    background: none;
}
.section__sub.subpage__detail .rel .rel__works .section__content__info__ttl {
    grid-column: auto;
    grid-row: auto;
    font-family: inherit;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.5;
    color: inherit;
    margin: 1.6rem 0 .8rem;
    padding: 0;
}
.section__sub.subpage__detail .rel .rel__works .section__content__tags {
    position: static;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0 2rem 2rem;
    gap: .4rem 1.2rem;
    background: none;
}
.section__sub.subpage__detail .rel .rel__works .section__content__tags__item {
    position: relative;
    margin: 0;
    padding: 0 0 0 .9rem;
    border-radius: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.5;
    color: #00a3d6;
    background: none;
}
.section__sub.subpage__detail .rel .rel__works .section__content__tags__item::before {
    content: "#";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

@media screen and (max-width: 849px) {
    .section__sub.subpage__detail .rel .rel__works .section__content__info__ttl {
        font-size: 1.6rem;
    }
    .section__sub.subpage__detail .rel .rel__works .section__content__tags__item {
        font-size: 1.1rem;
    }
    .rel__sec {
        margin-top: 4rem;
        padding-top: 3.6rem;
    }
    .rel__ttl .ja {
        font-size: 2rem;
    }
    .rel__chip {
        font-size: 1.3rem;
        padding: .6rem 1.3rem;
    }
    .rel__cta__lead {
        font-size: 1.6rem;
    }
    .rel__cta .section__content__btn {
        width: 100%;
    }
}
