.js-modal .item>* {
    cursor: pointer;
    position: relative;
}

.js-modal .item .tit>* {
    display: block;
}

.js-modal .item .tit .sub {
    margin-bottom: 10px;
    padding-bottom: 5px;
    font-size: 16px;
    border-bottom: 1px solid #fff;
}

.js-modal .item .tit .lead {
    font-weight: bold;
    font-size: 20px;
}

.js-modal .item .pic {
    overflow: hidden;
}

.js-modal .item .pic img {
    transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1), -webkit-transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    -webkit-transform: scale(1);
    transform: scale(1);
}

.js-modal .item>*:hover .pic img {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

[data-element-id] .js-modal .item .pic-modal {
    display: block;
    border: solid 4px green;
}

[data-element-id] .js-modal .item .pic-modal:after {
    content: "モーダル用";
    display: block;
    padding: 5px 5px 0px;
    color: #fff;
    text-align: center;
    background: green;
}

.js-modal .item .pic-modal {
    display: none;
}

[data-element-id] .js-modal .item .txt {
    display: block;
}

.js-modal .item .txt {
    display: none;
}

.modalitem {
    width: 100%;
    height: 100%;
    visibility: hidden;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
}

[data-element-id] .modalitem {
    visibility: visible;
    opacity: 1;
    position: relative;
    display: block;
    border: solid 4px green;
    position: relative;
    margin: 50px 0px;   
}

[data-element-id] .modalitem:after {
    content: "画像をクリックした際に表示されるポップアップです。カスタムコンテンツのお客様の声で投稿した内容が入ります。";
    display: block;
    padding: 5px;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    text-align: center;
    background: green;
}

.modalitem.active {
    visibility: visible;
    opacity: 1;
}

.modalitem .item {
    width: 75%;
    max-width: 800px;
    margin: auto;
    padding: 20px;
    position: relative;
}

.modalitem .item .name {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    align-items: flex-end;
    -ms-flex-align: end;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 10px 5px;
    font-size: 22px;
    border-bottom: 1px solid var(--txt-color-12);
}

.modalitem .item .age {
    font-size: 15px;
}

.modalitem .item .list dl>* {
    padding-bottom: 8px;
    border-bottom: 2px dotted var(--txt-color-12);
}

.modalitem .item .list dl>*+* {
    margin-top: 20px;
}

.modalitem .item .list dl dt {
    margin-bottom: 5px;
    font-size: 14px;
}

.modalitem .item .close {
    position: absolute;
    top: 3px;
    right: 3px;
    z-index: 1;
    line-height: 1;
    font-size: 24px;
}

.modalitem .item .close:after {
    font-family: "Font Awesome 5 Free";
    content: "\f057";
    font-weight: 900;
}

@media (max-width: 599px) {
    .modalitem .item {
        width: 85%;
        height: calc(100% - 50px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 30px 20px;
    }

    .modalitem .item .pic {
        width: 90%;
        margin: 0 auto 20px;
    }

    .modalitem .item .tit {
        padding: 0 0 5px;
        font-size: 20px;
    }
}
