@charset "UTF-8";

/* 漫画一覧ページ（/comic/） */

.page-comic .customer__page .comic-mv {
    height: auto;
    min-height: 0;
    padding: 28px 20px 24px;
    background: #0876bb !important;
    justify-content: flex-start;
}

.page-comic .customer__page .comic-mv .inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .page-comic .customer__page .comic-mv {
        padding: 24px 20px 20px;
    }
}

.page-comic .comic-contents {
    padding: 0 0 64px;
}

@media screen and (max-width: 768px) {
    .page-comic .comic-contents {
        padding-bottom: 48px;
    }
}

.page-comic .comic-hero-wrap {
    width: 100%;
    line-height: 0;
    background: #fff;
}

.page-comic .comic-hero__img {
    display: block;
    width: 100%;
    height: auto;
}

.page-comic .comic-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: min(1200px, calc(100% - 40px));
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0 0;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .page-comic .comic-inner {
        gap: 16px;
        width: calc(100% - 24px);
        padding-top: 16px;
    }
}

.page-comic .comic-lead {
    margin: 0;
    color: #000;
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Noto Sans JP", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    text-align: left;
}

@media screen and (max-width: 768px) {
    .page-comic .comic-lead {
        font-size: 13px;
        line-height: 1.65;
    }
}

.page-comic .comic-toc {
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #d8e8f8;
    border-radius: 12px;
}

@media screen and (max-width: 768px) {
    .page-comic .comic-toc {
        padding: 12px 14px;
    }
}

.page-comic .comic-toc__title {
    margin: 0 0 10px;
    color: #0876bb;
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.page-comic .comic-toc__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-comic .comic-toc__item {
    margin: 0;
}

.page-comic .comic-toc__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #bcd8ff;
    background: #f5f8ff;
    color: #0876bb;
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Noto Sans JP", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.page-comic .comic-toc__link:hover {
    background: #e8f2ff;
    border-color: #0876bb;
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    .page-comic .comic-toc__link {
        font-size: 11px;
        min-height: 28px;
        padding: 5px 10px;
        white-space: normal;
        text-align: center;
    }
}

.page-comic .comic-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media screen and (min-width: 1024px) {
    .page-comic .comic-grid {
        gap: 16px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.page-comic .comic-card {
    scroll-margin-top: 100px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(8, 118, 187, 0.1);
    text-align: left;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

@media screen and (max-width: 1300px) {
    .page-comic .comic-card {
        scroll-margin-top: 80px;
    }
}

.page-comic .comic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 118, 187, 0.16);
}

.page-comic .comic-card__media {
    display: block;
    overflow: hidden;
    background: #f5f8ff;
}

.page-comic .comic-card__media img {
    width: 100%;
    height: auto;
    display: block;
}

.page-comic .comic-card__badge {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 1;
    border-radius: 999px;
    background: rgba(8, 118, 187, 0.92);
    color: #fff;
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Noto Sans JP", sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 6px 10px;
    pointer-events: none;
}

.page-comic .comic-card__title {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 10px 12px 12px;
    color: #000;
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    word-break: break-word;
}

@media screen and (max-width: 768px) {
    .page-comic .comic-card__title {
        font-size: 13px;
        padding: 8px 10px 10px;
    }
}

/* モーダル（トップページ top_promo.css と共通レイアウト） */

.comic-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(10, 22, 38, 0.86);
    display: none;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.comic-modal.is-open {
    display: flex;
}

.comic-modal__inner {
    position: relative;
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    box-sizing: border-box;
}

.comic-modal__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-height: 0;
    max-height: 100dvh;
    box-sizing: border-box;
}

.comic-modal__stage {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    min-height: 0;
    overflow: hidden;
}

.comic-modal__figure-wrap {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: center;
    box-sizing: border-box;
}

.comic-modal__figure-wrap img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    object-position: top center;
    border-radius: 0;
    background: #fff;
    vertical-align: middle;
}

.comic-modal__footer {
    flex: 0 0 auto;
    width: 100%;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    background: rgba(8, 18, 32, 0.92);
    backdrop-filter: blur(8px);
}

.comic-modal__footer-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.comic-modal__cta {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 12px 20px;
    background: #0876bb;
    color: #fff !important;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
    box-shadow: 0 4px 14px rgba(8, 118, 187, 0.35);
    transition: background 0.2s ease, transform 0.15s ease;
    box-sizing: border-box;
}

.comic-modal__cta:hover {
    background: #066aa8;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.comic-modal__cta--dummy {
    background: #8a9aad;
    box-shadow: none;
    cursor: not-allowed;
}

.comic-modal__cta--dummy:hover {
    background: #8a9aad;
    transform: none;
}

.comic-modal__close {
    position: static;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

.comic-modal__close-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 22px;
    line-height: 0;
    font-family: system-ui, "Segoe UI Symbol", "Apple Symbols", "Hiragino Sans", sans-serif;
    transform: translateY(0.5px);
}

.comic-modal__nav {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

@media screen and (min-width: 768px) {
    .comic-modal {
        align-items: center;
        padding: 16px;
    }

    .comic-modal__inner {
        max-width: 960px;
        max-height: calc(100dvh - 32px);
        border-radius: 12px;
        overflow: hidden;
    }

    .comic-modal__body {
        max-height: calc(100dvh - 32px);
    }

    .comic-modal__figure-wrap img {
        border-radius: 8px;
    }
}

@media screen and (max-width: 767px) {
    .comic-modal__cta {
        font-size: 14px;
        padding: 11px 16px;
    }
}
