header {
    background: url(../img/case/header.jpg) no-repeat center / cover;
}
.case-ttl {
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-bottom: 1px solid #c8c8c8;
}
.tags {
    display: flex;
    width: 120px;
    height: 30px;
    color: #fff;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}
.tags.custom {
    background-color: #007bac;
}
.tags.plan {
    background-color: #898658;
}
.tags.ready {
    background-color: #007179;
}
.tags.land {
    background-color: #7d7dbe;
}
.case-ttl h1 {
    font-size: 28px;
}
.case-inner {
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
    position: relative;
}
.main-img-wrapper, .text-wrapper {
    width: 100%;
    margin-bottom: 40px;
    border-bottom: 1px solid #c8c8c8;
}
.text-wrapper .text {
    padding: 20px 0;
}
.sub-img-wrapper, .text-wrapper {
    border-top: 1px solid #c8c8c8;
}
.main-img-wrapper .case-inner {
    display: flex;
    height: 700px;
    overflow: hidden;
}
.text-wrapper .case-inner {
    display: flex;
    overflow: hidden;
}
.sub-img-wrapper .case-inner  {
    display: flex;
    width: fit-content;
}
.main-img {
    position: relative;
    width: 0;
    max-width: 100%;
    max-height: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: .8s ease;
    z-index: -1;
}
.main-img.active {
    width: auto;
    opacity: 1;
    z-index: 3;
}
.text {
    position: absolute;
    display: flex;
    width: 0;
    min-width: 0;
    height: fit-content;
    opacity: 0;
}
.text.active {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 100%;
    opacity: 1;
    z-index: 3;
}
.sub-img {
    display: flex;
    width: 9.1%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    margin-right: 1%;
}
.sub-img:last-of-type {
    margin-right: 0;
}
.sub-img.active {
    border: 3px solid #4ca535;
}
@media (hover: hover) and (pointer: fine) {
}
@media screen and (max-width: 1200px) {
    .case-ttl h1 {
        font-size: 21px;
    }
    .main-img-wrapper .case-inner {
        height: 550px;
    }
    .main-img {
        max-height: 550px;
    }
    .sub-img-wrapper .case-inner {
        flex-wrap: wrap;
    }
    .sub-img {
        width: 18.2%;
        margin-right: 2%;
    }
    .sub-img6, .sub-img7, .sub-img8, .sub-img9, .sub-img10 {
        margin-top: 20px;
    }
    .sub-img5, .sub-img10 {
        margin-right: 0;
    }
}
@media screen and (max-width: 600px) {
    .main-img-wrapper .case-inner {
        height: 300px;
    }
    .main-img {
        max-height: 300px;
    }
    .case-ttl {
        padding: 20px;
    }
    .sub-img6, .sub-img7, .sub-img8, .sub-img9, .sub-img10 {
        margin-top: 10px;
    }
    .text-wrapper .text {
        padding: 10px 0;
    }
    .tags {
        width: 96px;
        font-size: 14px;
    }
}
