.housing-dx {
    /* font-family: "Noto Sans JP", sans-serif; */
    /* color: #004985; */
    color: #222;
    background: #fff;
}

.housing-dx-top ul {
    margin: 0;
    padding: 0;
}

.housing-dx-top li {
    list-style: none;
}


.dx-contents {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3em 1em;
}

.dx-title-wrp {
    max-width: 980px;
    margin: 0 auto 2em;
}

.dx-filter-list {
    width: 100%;
    display: flex;
    justify-content: space-between;
    border: 1px solid #999;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, .07);
}

@media screen and (max-width: 767px) {
    .dx-filter-list {
        flex-wrap: wrap;
        border-bottom: none;
    }
}

.dx-filter-btn.dx-all {
    --dx-color: var(--blue);
    padding-top: 1em;
}

.dx-filter-btn {
    display: flex;
    width: 12.5%;
    height: 100px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dx-color);
    font-size: min(13.5px, 2.8vw);
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    padding: 0 0 min(1em, 2vw);
    cursor: pointer;
    border-right: 1px solid #999;
    /* background: linear-gradient(135deg, #f4f4f4 0%, #fefefe 80%); */
    background: #f9f9f9;
    transition: all .2s;
    z-index: 1;
}

.dx-filter-btn:last-child {
    border-right: none;
}

@media screen and (max-width: 767px) {
    .dx-filter-btn {
        width: 25%;
        height: auto;
        border-bottom: 1px solid #ccc;
    }

    .dx-filter-btn:nth-child(4) {
        border-right: none;
    }
}

.dx-filter-btn.dx-all {
    padding-top: min(1em, 0);
    --dx-bg: linear-gradient(135deg, #06478d 0%, #1cb1de 80%);
}

.dx-filter-btn.dx-color1 {
    --dx-bg: var(--dx-bg1);
}

.dx-filter-btn.dx-color2 {
    --dx-bg: var(--dx-bg2);
}

.dx-filter-btn.dx-color3 {
    --dx-bg: var(--dx-bg3);
}

.dx-filter-btn:hover,
.dx-filter-btn.is-active {
    border-color: transparent;
    background: var(--dx-bg);
    color: #fff;
    z-index: 2;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, .1);
}

.dx-filter-btn .navi-icon {
    display: block;
    width: 60px;
    height: 60px;
    transition: scale .3s;
}

@media screen and (max-width:767px) {
    .dx-filter-btn .navi-icon {
        width: 45px;
        height: 45px;
    }
}

.dx-filter-btn:hover .navi-icon,
.dx-filter-btn.is-active .navi-icon {
    scale: 1.1;
}

.dx-filter-btn .navi-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dx-filter-btn:hover img,
.dx-filter-btn.is-active img {
    filter: brightness(0) invert(1);
}

.dx-card-wrp {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 10px;
    min-height: 640px;
}

@media screen and (max-width:1024px) {
    .dx-card-wrp {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    @media screen and (max-width:767px) {
        .dx-card-wrp {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
        }
    }
}

.dx-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 310px;
    padding: 0;
    overflow: hidden;
    color: #fff;
    border-radius: 6px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity .35s ease, transform .35s ease;
    backface-visibility: hidden;
    will-change: opacity, transform;
    box-shadow: 0 0 3px rgba(0, 0, 0, .2);
}

.dx-card img {
    transition: scale .2s;
}

.dx-card:hover img {
    scale: 1.1;
}

@media screen and (max-width:767px) {
    .dx-card {
        height: 280px;
    }
}


.dx-card.is-hidden {
    display: none;
}

.dx-card.is-fade-ready {
    opacity: 0;
    transform: translateY(12px);
}

.dx-card.is-fade-ready.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.dx-card .card-icon {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
    width: 65px;
    height: 65px;
    opacity: .9;
    filter: brightness(0) invert(1);
}

@media screen and (max-width:767px) {
    .dx-card .card-icon {
        width: 55px;
        height: 55px;
    }
}

.dx-card .card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dx-card .text-box {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 45px;
    padding: 1em 0 .5em;
    text-align: center;
    border-radius: 2px;
}

.dx-card .card-subtitle {
    display: block;
    width: 100%;
    color: #fff;
    font-size: min(.95em, 3.2vw);
    font-weight: 800;
    line-height: 1.45;
    padding-bottom: .5em;
    position: relative;
}

.dx-card .card-subtitle::after {
    content: '';
    display: block;
    width: 80%;
    height: 0;
    margin: .5em auto;
    border-bottom: 1px solid #fff;
}

.dx-card .card-title {
    margin: 0;
    color: #fff;
    font-size: min(1.2em, 3.8vw);
    font-weight: 800;
    line-height: 1.4;
}

.housing-dx .card-img {
    position: relative;
    z-index: 1;
    display: block;
    flex: 0 0 auto;
    width: 100%;
    height: 130px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.housing-dx .card-img.p1 {
    padding: 1em;
}

.housing-dx .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width:767px) {
    .housing-dx .card-img {
        height: 110px;
    }
}

.dx-card .arrow-link {
    position: absolute;
    right: 1em;
    bottom: .5em;
    display: inline-flex;
    align-items: center;
    min-height: 1em;
    padding-right: .5em;
    opacity: .85;
    z-index: 5;
    display: none;
}

.dx-card .arrow-link .arrow-right {
    right: 0;
    width: 24px;
}

.dx-card .arrow-link .arrow-right::before,
.dx-card .arrow-link .arrow-right::after {
    border-color: currentColor;
}