.reading-hint {
    margin: -12px 0 28px;
    color: #666;
    font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    text-align: center;
}

.card-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.card-list > li {
    min-width: 0;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-card {
    text-align: center;
    font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

.report-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 250px;
    margin-bottom: 16px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #fcfcf9;
    color: inherit;
    font: inherit;
    cursor: zoom-in;
}

.report-preview:focus-visible {
    outline: 3px solid #1e3a52;
    outline-offset: 4px;
}

.report-preview,
.viewer-stage {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.report-preview img,
.viewer-stage img {
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.report-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.page-count {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 9px;
    border: 1px solid #aa8855;
    border-radius: 3px;
    background: #fff;
    color: #1e3a52;
    font-size: 0.85rem;
}

.circle-name {
    margin: 0 0 10px;
    color: #1e3a52;
    font-size: 1.1rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.social-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.social-list li {
    max-width: 100%;
}

.social-list a {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 6px 4px;
    color: #993333;
    font-size: 0.9rem;
    text-align: left;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.social-list a:hover {
    text-decoration: underline;
}

.social-list img {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.social-list span {
    min-width: 0;
}

.report-viewer {
    width: min(1200px, calc(100vw - 24px));
    height: min(900px, calc(100vh - 24px));
    height: min(900px, calc(100dvh - 24px));
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 16px;
    border: 2px solid #aa8855;
    border-radius: 6px;
    background: #171717;
    color: #fff;
    font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    overflow: hidden;
}

.report-viewer[open] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-viewer::backdrop {
    background: rgba(0, 0, 0, 0.88);
}

.viewer-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.viewer-header h2 {
    min-width: 0;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.viewer-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    flex: 1 1 0;
    min-height: 0;
    place-items: center;
    overflow: auto;
    overscroll-behavior: contain;
}

.viewer-stage img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.viewer-stage.is-zoomed {
    display: block;
    place-items: normal;
}

.viewer-stage.is-zoomed img {
    max-width: none;
    max-height: none;
}

.viewer-status {
    margin: 0;
    color: #fff;
    text-align: center;
}

.viewer-status:empty {
    display: none;
}

.viewer-controls {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
}

.viewer-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
}

.report-viewer button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #aa8855;
    border-radius: 4px;
    background: #171717;
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
    text-decoration: none;
}

.report-viewer button:hover {
    background: #383838;
}

.report-viewer :focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.report-viewer [hidden] {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .card-list > li:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    }
}

@media (max-width: 768px) {
    .card-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-preview {
        height: 210px;
    }
}

@media (max-width: 500px) {
    .card-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .report-preview {
        height: auto;
        aspect-ratio: 1.414;
    }

    .reading-hint {
        margin-top: 0;
        font-size: 0.9rem;
    }

    .report-viewer {
        padding: 10px;
    }

    .viewer-controls {
        gap: 8px;
    }

    .viewer-pagination {
        justify-content: center;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card-list > li {
        transition: none;
    }

    .card-list > li:hover {
        transform: none;
    }
}
