/* legal-advisor image modal */
.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.image-modal.active {
    display: flex;
}

.image-modal-content {
    position: relative;
    width: min(96vw, 1440px);
    height: min(88vh, 1100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(3px);
}

.image-modal-prev {
    left: 12px;
}

.image-modal-next {
    right: 12px;
}

.image-modal-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.image-modal-counter {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.04em;
}

@media (max-width: 768px) {
    .image-modal {
        padding: 14px;
    }

    .image-modal-content {
        width: 100%;
        height: min(84vh, 760px);
    }

    .image-modal-close {
        top: -38px;
        font-size: 30px;
    }

    .image-modal-nav {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .image-modal-prev {
        left: 6px;
    }

    .image-modal-next {
        right: 6px;
    }

    .image-modal-counter {
        bottom: -30px;
        font-size: 12px;
    }
}

/** 裁判事例の一覧 */
.jirei {
    margin-bottom: 2rem;
    padding: 1.2rem;
    background-color: var(--color-text);
    text-align: center;
}
.jirei p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: bold;
    color: #fff;
}

.jirei .jirei_inner {
    display: flex;
    gap: 16px;
}
.jirei .jirei_inner p {
    font-size: 0.875rem;
    font-weight: normal;
    margin-top: 0.2em;
}

.jirei .jirei_inner img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
}