@charset "UTF-8";

html {
    scroll-behavior: smooth;
}

#comic-room-exam,
#comic-room-health,
#comic-room-life,
#comic-profile {
    scroll-margin-top: 160px;
}

.comicModMain {
    width: auto;
    min-width: 0;
    flex: 1 1 0%;
    background: #FFFFFF;
}

.gbWrapper .comicModMain {
    min-width: 0;
}

.comicModMain img {
    display: block;
    max-width: 100%;
    height: auto;
}

.comicModMain a {
    text-decoration: none;
}

.comicModMain section{
    padding-left: 40px;
}

.comicModContainer {
    width: 100%;
    max-width: none;
    padding: 20px 16px 15px;
    box-sizing: border-box;
}

/* =========================
   kv
========================= */
.comicModKvMain,
.comicModKvRead {
    margin: 0;
}

.comicModKvRead {
    margin-top: 0;
}

/* =========================
   hero
========================= */
.comicModHero {
    margin: 0;
}

.comicModHeroVisual {
    position: relative;
    overflow: hidden;
}

.comicModHeroDoor {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 5;
    display: block;
}

.comicModHeroDoor.dLeft {
    left: 0;
    width: 33.3333%;
}

.comicModHeroDoor.dCenter {
    left: 33.3333%;
    width: 33.3333%;
}

.comicModHeroDoor.dRight {
    right: 0;
    width: 33.3333%;
}

.comicModHeroNav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 18px 8px 10px 12px;
    box-sizing: border-box;
}

.comicPNavImage {
    display: block;
    width: calc((100% - 24px) / 3);
    flex: 0 0 calc((100% - 24px) / 3);
    max-width: 220px;
    line-height: 0;
}

.comicPNavImage img {
    display: block;
    width: 100%;
    height: auto;
}

.comicPNavImage.dHov:hover {
    opacity: 0.9;
}

/* =========================
   section 共通
========================= */
.comicModSection {
    margin: 0;
    padding: 0;
}

.comicModSection + .comicModSection {
    margin-top: 0;
}

.comicModSectionHead {
    margin: 0;
    padding: 0;
}

/* =========================
   section head
========================= */
.comicModSectionHeadBar {
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center;
    min-height: 64px;
    padding: 0 128px 0 78px;
    gap: 0;
    overflow: visible;
    box-sizing: border-box;
    line-height: 1;
}

.comicModSection.dBlue .comicModSectionHeadBar {
    background: #0f4fb2;
}

.comicModSection.dPink .comicModSectionHeadBar {
    background: #f48f9f;
}

.comicModSection.dYellow .comicModSectionHeadBar {
    background: #f1c400;
}

.comicModSection.dOrange .comicModSectionHeadBar {
    background: #f05c2d;
}

/* 左アイコン */
.comicModSectionIcon {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 64px;
    height: auto;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.comicModSectionIcon img {
    display: block;
    width: 64px;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

/* タイトル */
.comicModSectionTitle {
    margin: 0;
    padding: 0;
    color: #ffffff;
    line-height: 1.2;
    font-size: 3.0rem;
    font-weight: 500;
    flex: 1 1 auto;
    text-align: center;
    letter-spacing: 0.01em;
}

.comicModSectionTitle.pFontBold,
.comicPTopBtn.pFontBold {
    font-weight: 500 !important;
}

/* 猫 */
.comicModSectionCat {
    position: absolute;
    right: 15px;
    bottom: -11px;
    width: 120px;
    margin: 0;
    padding: 0;
    line-height: 0;
    z-index: 3;
    pointer-events: none;
}

.comicModSectionCat img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
}

.comicModSection.dOrange .comicModSectionCat {
    display: none;
}

/* =========================
   room section body
========================= */
.comicModSectionBody {
    position: relative;
    padding: 28px 24px 36px;
    overflow: hidden;
    background-image: none;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

.comicModSectionBody.dBlue {
    background-color: #f3f7ff;
}

.comicModSectionBody.dPink {
    background-color: #fff3f5;
}

.comicModSectionBody.dYellow {
    background-color: #fffceb;
}

.comicModSectionBody::before {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 100% auto;
    pointer-events: none;
    z-index: 0;
}

.comicModSectionBody.dBlue::before {
    background-image: url('../../images/comic/background-blue.webp');
}

.comicModSectionBody.dPink::before {
    background-image: url('../../images/comic/background-pink.webp');
}

.comicModSectionBody.dYellow::before {
    background-image: url('../../images/comic/background-yellow.webp');
}

.comicModCardList,
.comicModComingWrap {
    position: relative;
    z-index: 1;
}

/* =========================
   cards
========================= */
.comicModCardList {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
}

.comicModCardItem {
    width: 40%;
    padding: 8px;
    box-sizing: border-box;
}

.comicPCardLink {
    display: block;
    height: 100%;
    padding: 14px 12px 12px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.comicPCardLink.dBlue {
    border-color: #d8e2fb;
}

.comicPCardLink.dBlue:hover {
    border-color: #2f63c3;
    box-shadow: 0 6px 16px rgba(47, 99, 195, 0.10);
    transform: translateY(-1px);
}

.comicPCardLink.dPink {
    border-color: #f8ddf0;
}

.comicPCardLink.dPink:hover {
    border-color: #f18e9e;
    box-shadow: 0 6px 16px rgba(47, 99, 195, 0.10);
    transform: translateY(-1px);
}

.comicPCardLink.dYellow {
    border-color: #f8ecdd;
}

.comicPCardLink.dYellow:hover {
    border-color: #f1da8e;
    box-shadow: 0 6px 16px rgba(47, 99, 195, 0.10);
    transform: translateY(-1px);
}

.comicPCardHead {
    min-height: 112px;
    padding-bottom: 10px;
}

.comicPCardLesson {
    margin: 0;
    line-height: 1.2;
    font-size: clamp(2.2rem, 1.8vw, 3.2rem);
    color: #1f4fab;
    font-weight: 600;
}

.comicPCardRoom {
    margin: 0;
    line-height: 1.2;
    font-size: clamp(2.2rem, 1.8vw, 3.2rem);
    color: #f38f9f;
    font-weight: 600;
}
.comicPCardLife {
    margin: 0;
    line-height: 1.2;
    font-size: clamp(2.2rem, 1.8vw, 3.2rem);
    color: #efc131;
    font-weight: 600;
}
.comicModMain .dPink,.comicModMain .pFontPink{
    color: #f38f9f;
}
.comicModMain .dYellow,.comicModMain .pFontYellow {
    color: #efc131;
}

.comicPCardTitle {
    margin: 4px 0 0;
    line-height: 1.28;
    font-size: clamp(1.9rem, 1.6vw, 2.8rem);
    color: #111111;
    text-align: center;
    font-weight: 600;
}

.comicPCardThumb {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
    height: 500px;
    background: #FFFFFF;
}

.comicPCardThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.comicPCardThumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.00) 0%,
            rgba(255, 255, 255, 0.14) 46%,
            rgba(255, 255, 255, 0.74) 62%,
            rgba(255, 255, 255, 0.97) 86%,
            rgba(255, 255, 255, 1.00) 100%
    );
    pointer-events: none;
}

/* =========================
   coming soon
========================= */
.comicModComingWrap {
    min-height: 110px;
    padding: 16px 0 8px;
}

.comicPComingSoon {
    margin: 0;
    line-height: 1.3;
    font-size: clamp(3rem, 2vw, 4.6rem);
    color: #f29ea7;
    font-weight: 600;
}

.comicPComingSoon.dYellow {
    color: #d8ab00;
}

/* =========================
   profile
========================= */
.comicModProfileArea {
    position: relative;
    padding: 20px 0 24px;
    background-color: #fff4eb;
    overflow: hidden;
}

.comicModProfileArea::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../../images/comic/background-orange.png');
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 100% auto;
    pointer-events: none;
    z-index: 0;
}

.comicModProfileScroll {
    position: relative;
    z-index: 1;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 18px;
    box-sizing: border-box;
}

.comicModProfileTrack {
    display: flex;
    align-items: stretch;
    gap: 16px;
    width: max-content;
}

.comicModProfileCard {
    flex: 0 0 auto;
    width: 340px;
    height: 340px;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.comicModProfileImageWrap {
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.comicModProfileImageWrapBgGreen {
    background: #97D9B4;
}

.comicModProfileImage {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.comicModProfileImageShort {
    object-fit: contain;
    object-position: center center;
    width: 100%;
    height: 100%;
}

/* =========================
   comic tap guide
========================= */
.comicModKvWrap {
    position: relative;
}

.comicModKvLink {
    display: block;
}

.comicModTapGuide {
    position: absolute;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    z-index: 10;

    min-width: 260px;
    max-width: calc(100% - 32px);
    padding: 10px 18px;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.82);
    color: #333333;
    text-align: center;
    font-size: 1.6rem;
    line-height: 1.4;
    font-weight: 500;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(2px);

    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

.comicModTapGuide.isHide {
    opacity: 0;
    visibility: hidden;
}

@media screen and (max-width: 767px) {
    .comicModTapGuide {
        top: 8%;
        min-width: 220px;
        max-width: calc(100% - 24px);
        padding: 8px 14px;
        font-size: 1.3rem;
        line-height: 1.35;
    }
}

/* =========================
   cta
========================= */
.comicModCta {
    padding-top: 28px;
}

.comicPTopBtn {
    display: inline-block;
    min-width: 320px;
    padding: 20px 28px;
    border-radius: 10px;
    background: #4d76b9;
    color: #FFFFFF;
    text-align: center;
    font-size: 2.4rem;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.comicPTopBtnArrow {
    display: inline-block;
    padding-left: 8px;
    font-weight: 400;
}

/* =========================
   desktop wide
========================= */
@media screen and (min-width: 1280px) {
    .comicModContainer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .comicModHeroNav {
        gap: 24px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .comicModSectionBody {
        padding-left: 28px;
        padding-right: 28px;
    }
}

/* =========================
   tablet
========================= */
@media screen and (max-width: 1024px) {
    .comicModMain section{
        padding-right: 40px;
    }
    .comicModContainer {
        padding: 16px 12px 15px;
    }

    .comicModHeroNav {
        gap: 14px;
        padding: 16px 0 0;
    }

    .comicModSectionTitle {
        font-size: 2.6rem;
    }

    .comicModSectionHeadBar {
        min-height: 56px;
        padding: 0 96px 0 58px;
    }

    .comicModSectionIcon {
        left: 14px;
        width: 36px;
    }

    .comicModSectionIcon img {
        width: 36px;
    }

    .comicModSectionCat {
        width: 92px;
        right: 15px;
        bottom: -11px;
    }

    .comicModSectionBody {
        padding: 20px 18px 28px;
    }

    .comicPCardHead {
        min-height: 96px;
    }

    .comicModProfileArea {
        padding: 16px 0 20px;
    }

    .comicModProfileScroll {
        padding: 0 12px 14px;
    }

    .comicModProfileTrack {
        gap: 12px;
    }

    .comicModProfileCard {
        width: 300px;
        height: 300px;
    }
}

/* =========================
   mobile
========================= */
@media screen and (max-width: 767px) {
    html {
        scroll-padding-top: 88px;
    }

    .comicModMain section{
        padding-left:0;
        padding-right:0;
        margin: 0 16px;
    }
    .comicModMain h2{
        font-size:1.8rem;
    }

    #comic-room-exam,
    #comic-room-health,
    #comic-room-life,
    #comic-profile {
        scroll-margin-top: 0px;
    }

    .comicModContainer {
        padding: 0 0 15px;
    }

    .comicModHero {
        margin-bottom: 14px;
    }

    .comicModHeroNav {
        gap: 8px;
        padding: 12px 10px 10px;
        flex-wrap: nowrap;
    }

    .comicPNavImage {
        width: calc((100% - 16px) / 3);
        flex: 0 0 calc((100% - 16px) / 3);
        max-width: none;
        min-width: 0;
    }

    .comicModSection,
    .comicModSection + .comicModSection,
    .comicModSectionHead {
        margin-top: 0;
        margin-bottom: 0;
    }

    .comicModSectionHeadBar {
        min-height: 32px;
        padding: 0 64px 0 42px;
    }

    .comicModSectionIcon {
        left: 14px;
        top: 0;
        bottom: 0;
        width: 32px;
    }

    .comicModSectionIcon img {
        width: 32px;
        height: 100%;
        object-fit: cover;
    }

    .comicModSectionTitle {
        font-size: 1.9rem;
        font-weight: 500;
        line-height: 1.1;
        letter-spacing: 0;
    }

    .comicModSectionCat {
        right: 5px;
        bottom: -11px;
        width: 72px;
    }

    .comicModSectionBody {
        padding: 16px 12px 28px;
    }

    .comicModCardList {
        margin-left: -4px;
        margin-right: -4px;
    }

    .comicModCardItem {
        width: 50%;
        padding: 4px;
    }

    .comicPCardLink {
        padding: 10px 8px 8px;
    }

    .comicPCardHead {
        min-height: 74px;
        padding-bottom: 8px;
    }

    .comicPCardLesson {
        font-size: 1.8rem;
    }

    .comicPCardTitle {
        font-size: 1.6rem;
    }

    .comicPCardThumb {
        height: 200px;
    }

    .comicPComingSoon {
        font-size: 2.4rem;
    }

    .comicModProfileArea {
        min-height: 140px;
    }

    .comicModCta {
        padding: 22px 12px 0;
    }

    .comicPTopBtn {
        width: 100%;
        min-width: 0;
        padding: 16px 20px;
        font-size: 2rem;
        font-weight: 500;
    }

    .comicModProfileArea {
        padding: 12px 0 16px;
    }

    .comicModProfileScroll {
        padding: 0 8px 10px;
    }

    .comicModProfileTrack {
        gap: 8px;
    }

    .comicModProfileCard {
        width: 250px;
        height: 250px;
    }
}