@charset "utf-8";

.component_12 {
    justify-content: end;
    margin-bottom: 30px;
}

.contentListArea {
    padding: 70px 0 6rem;
    min-width: 960px;
}

.serviceList {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 50px 0 30px;
}
@media screen and (min-width: 768.1px) {
    .contentsItem {
    margin-right: 24px;
    }

    .contentsItem:nth-child(3n){
    margin-right: 0;
    }

    .contentsItem:not(:nth-child(n+4)){
    margin-top: 0;
    }

    .contentsItem:nth-child(n+4){
    margin-top: 24px;
    }
}

.serviceList .contentsItem a {
    display: block;
    position: relative;
    justify-content: space-between;
    min-width: 304px;
    max-width: 304px;
    min-height: 452px;
    background-color: #fff;
    cursor: pointer;
    overflow: hidden;
    z-index: 0;
    height: 100%;
    box-shadow: 0 6px 1rem hwb(0 0% 100% / 0.16);
    transition: 0.2s ease;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    -webkit-transform: scale(1);
    transform: scale(1);
}

.serviceList .contentsItem a:hover {
    -webkit-transform: scale(1.06);
    transform: scale(1.06);
    padding-bottom: 1rem;
}

.serviceList .contentsItem a:after {
    position: absolute;
    bottom: 0;
    left: -3px;
    width: calc(100% + 6px);
    height: 6px;
    background-color: #e61e1e;
    content: "";
    -webkit-transition: all .2s ease;
    transition: all .2s ease;
    -webkit-transform: translate(-100%) skewX(-45deg);
    transform: translate(-100%) skewX(-45deg);
}

.serviceList .contentsItem a:hover:after {
    -webkit-transition: all .4s cubic-bezier(0, .985, .775, 1);
    transition: all .4s cubic-bezier(0, .985, .775, 1);
    -webkit-transform: translate(0) skewX(-45deg);
    transform: translate(0) skewX(-45deg);
}

.contentsItem .innerBox {
    padding: 0 10px;
}

.contentsItem .imgBox {
    width:100%;
    max-height: 171px;
    border-bottom: 1px solid #707070;
    margin-bottom: 30px;
    text-align: center;
    overflow: hidden;
    font-size:0;
}

.contentsItem .imgBox img {
    height: 171px;
    width: auto;
    object-fit: contain;
    aspect-ratio: 16/9;
}

.contentsItem .itemTtl {
    min-height: 83px;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.contentsItem .itemsubTtl {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.contentsItem .descriptonTxt {
    margin-bottom: 20px;
}

.contentsItem .itemNote {
    margin-bottom: 10px;
    font-size: 14px;
}

.component_06 a {
	margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .contentListArea {
        padding: 3.5rem 0 3rem;
        min-width: auto;
    }

    .inner02 {
        max-width: 100%;
        min-width: auto;
    }

    .serviceList {
        /* gap: 1rem; */
        margin-top: 2rem;
    }

    .serviceList .contentsItem a {
        min-height: unset;
        padding: 0;
    }

    .serviceList .contentsItem a:hover {
        transform: unset;
        border: unset;
        padding-bottom: 0;
    }

    .serviceList .contentsItem a:hover:after {
        display: none;
    }

    .contentsItem .imgBox {
        margin-bottom: 20px;
    }

    .contentsItem .itemTtl {
        margin-bottom: 1rem;
    }

    .contentsItem .descriptonTxt {
        margin-bottom: 1.5rem;
    }
}

@media screen and (min-width: 564px) and (max-width: 768px) {
    .serviceList{
        gap:normal;
    }
    .serviceList .contentsItem {
        max-width: calc(100% / 2 - 0.5rem);
        min-width: calc(100% / 2 - 0.5rem);
    }

    .serviceList .contentsItem a {
        max-width: 100%;
        min-width: 100%;
    }
    .contentsItem {
        margin-right: 1rem;
    }

    .contentsItem:nth-child(2n){
        margin-right: 0;
    }

    .contentsItem:not(:nth-child(n+3)){
        margin-top: 0;
    }

    .contentsItem:nth-child(n+3){
        margin-top: 1rem;
    }
   
}

@media not screen and (min-width: 564px) {

    .serviceList .contentsItem,
    .serviceList .contentsItem a {
        max-width: 100%;
        min-width: 100%;
    }
    .contentsItem:nth-child(n+1){
        margin-top: 1rem;
    }
}