/* ===================================
   下層ページの共通ヘッダー
   =================================== */
   body:is(.page-spotdifference, .page-spotdifference-answer) .header {
    background-color: #e9546b;
}

body:is(.page-spotdifference, .page-spotdifference-answer) .header-left img {
    content: url('common/images/page-header-logo_01.png');
}

body:is(.page-spotdifference, .page-spotdifference-answer) .header-right img {
    content: url('common/images/page-header-subtitle_01.png');
}


/* ===================================
   まちがいさがしページ＆答えページ共通
   =================================== */
body:is(.page-spotdifference, .page-spotdifference-answer) .site-container {
    background-image: none;
    background-color: #f0f8ff;
    height: auto;
    min-height: 100vh;
    overflow: visible;
}

body:is(.page-spotdifference, .page-spotdifference-answer) .main-content {
    background-color: #ffffff;
    overflow: visible;
}

body:is(.page-spotdifference, .page-spotdifference-answer) .content-area {
    padding: 50px 40px 40px;
    margin: 0 40px 40px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body:is(.page-spotdifference, .page-spotdifference-answer) .content-area > img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   まちがいさがしページ のスタイル
   =================================== */
.page-spotdifference .content-area > img:first-child {
    margin-bottom: 30px;
}

.page-spotdifference .image-row-pc {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-spotdifference .image-row-pc > img {
    width: auto;
    height: auto;
    max-width: 48%;
}

.page-spotdifference .image-row-sp {
    display: none;
}

.page-spotdifference .check-answer-btn {
    display: block;
    margin-top: 40px;
    width: 60%;
    max-width: 300px;
}

.page-spotdifference .check-answer-btn img {
    width: 100%;
    height: auto;
}

/* ===================================
   まちがいさがし答えページ のスタイル
   =================================== */
.page-spotdifference-answer .content-area img:first-child {
    margin-bottom: 40px;
    width: 100%;
    max-width: 575px;
}

/* ===================================
   まちがいさがし関連ページレスポンシブ
   =================================== */
@media (max-width: 640px) {
    body:is(.page-spotdifference, .page-spotdifference-answer) .content-area {
        margin: 0 0 40px 0;
        padding-left: 0;
        padding-right: 0;
        border-radius: 0;
    }

    /* まちがいさがしページ */
    .page-spotdifference .image-row-pc {
        display: none;
    }

    .page-spotdifference .image-row-sp {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 40px;
        margin-bottom: 40px;
        position: relative;
        border-top: 1px solid #e9546b;
        border-bottom: 1px solid #e9546b;
    }

    .page-spotdifference .image-row-sp > img:not(.spot-separator) {
        margin: 0;
        padding: 0;
        display: block;
        width: 100%;
    }

    .page-spotdifference .spot-separator {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        z-index: 2;
    }

    .page-spotdifference .content-area > img:first-child {
        width: 60%;
    }
    
    .page-spotdifference .content-area > img:nth-child(2) {
        width: 96%;
    }

    .page-spotdifference .check-answer-btn {
        width: 80%;
        max-width: 360px;
    }

    /* まちがいさがし答えページ */
    .page-spotdifference-answer .content-area img {
        width: 94%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .page-spotdifference-answer .content-area img:first-child {
        width: 90%;
        max-width: 480px;
    }
}

