/* -----------------------------------------------------------
  製品フォーム  モーダル    写真添付説明
-------------------------------------------------------------- */


/* モーダルを開くボタン */
.modal__trigger {
    cursor: pointer;
    flex-shrink: 0;
    border: 1px solid #ccc;
    padding: 10px 40px 13px 15px;
    position: relative;
    transition: .5s;
    margin: 0 0 30px;
    width: fit-content;
}

.modal__trigger::after {
    content: "\f067";
    position: absolute;
    top: 50%;
    -webkit-transform : translateY(-50%);
    transform : translateY(-50%);
    font: 900 1.8rem/1 "Font Awesome 5 Free";
    color: #00a4e3;
    right: 10px;
    transition: .5s;
}

.modal__trigger:hover {
    background: #00a4e3;
    color: #fff;
    border-color: #00a4e3;
}

.modal__trigger:hover::after {
    color: #fff;
}

.modal__trigger span {
    position: relative;
    padding: 0 0 0 30px;
    display: flex;
    align-items: center;
    transition: .5s;
}

.modal__trigger span::before {
    content: "\f059";
    position: absolute;
    top: 57%;
    -webkit-transform : translateY(-50%);
    transform : translateY(-50%);
    font: 900 2rem/1 "Font Awesome 5 Free";
    color: #00a4e3;
    left: 0;
    transition: .5s;
}

.modal__trigger:hover span::before {
    color: #fff;
}

/*modal__content*/

.modal__content .modal__content-box:not(:first-of-type) {
    margin-top: 40px;
}

.modal__content-ttl {
    background: var(--mainc);
    color: #fff;
    font-size: 2.1rem;
    font-weight: bold;
    padding: 5px 20px;
    letter-spacing: .05em;
    margin: 0 0 20px;
}

.modal__content-intro {
    align-items: center;
    display: flex;
    flex-direction: row-reverse;
    gap: 30px;
}

.modal__intro-note .cap{
    font-size: 1.5rem;
    margin: 20px 0 0;
}

.modal__content .modal__intro-img {
    width: 500px;
    flex-shrink: 0;
}

.modal__content .modal__intro-img img {
    width: 100%;
}

.modal__content .modal__content-list {
    display: flex;
    gap: 30px;
    background: #f4f4f4;
    padding: 30px 20px;
    margin: 30px 0 40px;
}

.modal__content .modal__content-list figure {
    flex-shrink: 0;
    width: calc( ( 100% - 60px ) / 3 );
}

.modal__content .modal__list-img {
    position: relative;
}

.modal__content .modal__list-img span {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--mainc);
    color: #fff;
    font-weight: bold;
    left: 0;
    top: 0;
    align-items: center;
    display: flex;
    justify-content: center;
}

.modal__content .modal__content-list img {
    width: 100%;
}

.modal__content .modal__content-list figcaption {
    padding: 10px 0 0;
}

.modal__list-subtttl {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--mainc);
    text-align: center;
}

    
/* モーダル本体 */
.modal__wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 501;
    width: 100%;
    height: 100%;
}

.modal__layer {
    height: 100%;
    background: rgba(50, 50, 50, .85);
    cursor: pointer;
}

.modal__container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(calc(100% - 40px), 1100px);
    height: calc(100% - 40px);
    padding: 20px;
    background: #fff;
    z-index: 99999;
}

.modal__inner {
    position: relative;
    overflow-y: scroll;
    height: 100%;
    padding: 20px 20px 40px;
}

/* モーダルを閉じるボタン */
.modal__close {
    position: fixed;
    top: 20px;
    right: 50px;
    width: 44px;
    height: 44px;
    background: rgba(50, 50, 50, 1);
    cursor: pointer;
    transition: opacity .6s;
}

.modal__close:hover {
    opacity: .6;
}

.modal__close:before, .modal__close:after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 1px;
    background: #fff;
    content: '';
}

.modal__close:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* モーダル内のコンテンツ */
.modal__content .dl-top {
    align-items: center;
    display: flex;
    margin: 0 0 40px;
}

.modal__content .dl-body-profile{
    font-size: 1.9rem;
    letter-spacing: .03em;
    line-height: 1.35;
    text-align: left;
    margin: 0 0 30px;
}

.modal__content .human{
    flex-shrink: 0;
    width: 140px;
    margin: 0 30px 10px 0;
}

.modal__content .human img {
    max-width: 100%;
}

.modal__content .dl-flex {
    align-items: center;
    display: flex;
    margin: 0 0 50px;
    justify-content: space-between;
}

.modal__content dl {
    margin: 0 0 50px;
}

.modal__content .dl-top dl:last-of-type,
.modal__content .dl-flex dl:last-of-type {
    margin-bottom: 0;
}

.modal__content dt {
    color: var(--foodc);
    font-size: 1.9rem;
    font-weight: 500;
    letter-spacing: .08rem;
    line-height: 1.5;
    margin: 0 0 10px;
}

.modal__content .q-deco {
    font-size: 2rem;
    margin: 0 10px 0 0;
}

.modal__content dd p{
    line-height: 1.8;
    letter-spacing: .05em;
}

.modal__content dd p:not(:first-of-type) {
    margin-top: 15px;
}

.modal__content dd .box {
    background: #fcf2f2;
    padding: 20px 25px 30px;
}

.modal__content dd .box:not(:first-of-type) {
    margin-top: 25px;
}

.modal__content dd .box-ttl {
    align-items: center;
    color: var(--foodc);
    flex-shrink: 0;
    font-weight: 500;
    display: flex;
    margin: 0 0 10px;
}

.modal__content dd .box-ttl::after {
    content: "";
    border-bottom: 2px dotted var(--foodc);
    flex-grow: 1;
}

.modal__content .photo {
    flex-shrink: 0;
    width: 400px;
    height: 280px;
}

.modal__content .photo-r {
    margin: 0 0 0 20px!important;
}

.modal__content .photo-l {
    margin: 0 20px 0 0!important;
}

.modal__content .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    
    .product-form__modal {
        margin: 0 0 20px;
    }
    
    .trigger__wrap {
        display: block;
    }
    
    .modal__trigger {
        width: 100%;
        margin: 0 0 20px;
        padding: 10px;
    }
    
    .trigger__wrap .modal__trigger:last-of-type {
        margin: 0;
    }
    
    .modal__content .modal__content-box:not(:first-of-type) {
        margin-top: 30px;
    }

    .modal__container {
        width: calc(100% - 40px);
        padding: 15px 2px 60px;
    }
    
    .modal__content-intro {
        flex-direction: column;
        gap: 20px;
    }
    
    .modal__content .modal__intro-img {
        width: 100%;
    }
    
    .modal__content-ttl {
        font-size: 2rem;
        padding: 8px 15px 10px;
        margin: 0 0 15px;
        line-height: 1.4;
    }
    
    .modal__content .modal__content-list {
        gap: 20px;
        padding: 20px;
        margin: 20px 0 40px;
        flex-direction: column;
    }
    
    .modal__content .modal__content-list figure {
        width: 100%;
    }
    
    .modal__list-subtttl {
        font-size: 2rem;
    }
    
    .modal__content .modal__content-list figcaption {
        padding: 5px 0 0;
    }
    
    .modal__inner {
        padding: 0 13px;
    }
    
    .modal__close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
    }
    
    .modal__content .dl-top {
        display: block;
        margin: 0 0 25px;
    }
    
    .modal__content .photo {
        width: 100%;
        height: auto;
        margin: 15px 0 !important;
    }
    
    .modal__content .photo img {
        width: 100%;
        height: auto;
        object-fit: unset;
    }
    
    .modal__content .dl-body-profile {
        font-size: 1.6rem;
        margin: 15px 0 20px;
        text-align: center;
    }
    
    .modal__content dl {
        margin: 0 0 35px;
    }
    
    .modal__content dt {
        font-size: 1.6rem;
        display: flex;
        letter-spacing: 0;
        border-bottom: 1px solid var(--foodc);
        padding: 0 0 8px;
    }
    
    .modal__content .q-deco {
        flex-shrink: 0;
        font-size: 1.8rem;
        margin: 3px 7px 0 0;
    }
    
    .modal__content dd p {
        font-size: 1.5rem;
        line-height: 1.8;
    }
    
    .modal__content dd .box {
        padding: 15px;
        margin-top: 20px!important;
    }
    
    .modal__content .dl-flex {
        flex-direction: column-reverse;
        margin: 0 0 25px;
    }

}