@charset "UTF-8";

#article {
    padding: 20px 0 120px;
}

#article .container.w1000 {
    max-width: 900px;
}

.article-head {
    margin-bottom: 24px;
}

.article-head h1 {
    font-size: var(--fz-lg);
    line-height: 1.6;
    font-weight: 700;
    margin-bottom: 8px;
}

.article-meta {
    color: #6a7b7b;
    font-size: var(--role-meta);
    display: flex;
    gap: 10px;
    align-items: center;
}

.article-meta .badge {
    margin-left: 0.5rem;
    background: #ebf6f6;
    color: #006a6d;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

.article-hero {
    margin: 24px 0 28px;
}

.article-hero img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.article-body {
    font-size: var(--role-body);
    line-height: 1.9;
    color: #2b3333;
}

.article-body h2 {
    font-size: var(--fz-md);
    margin: 30px 0 10px;
    padding-left: 12px;
    border-left: 4px solid #00A3A6;
}

.article-body h3 {
    font-size: var(--fz-md);
    margin: 24px 0 8px;
}

.article-body p {
    margin: 0 0 16px;
}

.article-body ul {
    margin: 0 0 16px 20px;
}

.article-body blockquote {
    margin: 18px 0;
    padding: 14px 16px;
    background: #F6FBFB;
    border-left: 3px solid #00A3A6;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 100px;
}

.article-nav a {
    flex: 1;
    border: 1px solid #cfe6e6;
    border-radius: 50px;
    padding: 12px 18px;
    text-align: center;
}

.article-nav a:hover {
    background: linear-gradient(90deg, #00464A, #00A3A6);
    color: #fff;
    border-color: transparent;
}

/* 本文内の画像 */
.article-body img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.article-body img:hover {
    opacity: 0.9;
}

.image-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-viewer-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.image-viewer-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.image-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10001;
}

.image-viewer-close:hover {
    background-color: #fff;
}

.image-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10001;
}

.image-viewer-nav:hover {
    background-color: #fff;
}

.image-viewer-nav.prev {
    left: 20px;
}

.image-viewer-nav.next {
    right: 20px;
}

.image-viewer-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.image-viewer-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10001;
}

@media (max-width: 768px) {
    .article-nav {
        margin-top: 40px;
    }

    .image-viewer-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .image-viewer-nav.prev {
        left: 10px;
    }

    .image-viewer-nav.next {
        right: 10px;
    }

    .image-viewer-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .image-viewer-counter {
        bottom: 10px;
        font-size: 12px;
        padding: 6px 12px;
    }
}