#game-overlay {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.85);
    z-index: 9999;
}

#close-game-overlay {
    position: absolute;
    top: -36px;
    right: -44px;
    width: 68px;
    height: 68px;
    display: inline-flex;
    padding: 16px 0 12px;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border-radius: 40px;
    border: 2px solid #FFF;
    background: #4E4E4E;
    transition: transform 0.3s ease-in-out;
    color: #FFF;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    &:hover {
        transform: scale(1.1);
    }
}

.game_area {
    display: flex;
    width: 852px;
    height: 652px;
    padding: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    border-radius: 8px;
    background: #FFF;
    position: relative;
}

.tab_container {
    position: absolute;
    top: -38px;
    left: 40px;
    z-index: 10;
    display: inline-flex;
    align-items: flex-end;
    gap: 8px;
}

#tab_content,
#tab_description {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 16px 32px;
    height: 56px;
    cursor: pointer;
    box-sizing: border-box;
    position: relative;
    border: solid 2px #fff;
    transition: all 0.3s ease-in-out;
    &::before {
        content: '';
        position: absolute;
        display: inline-block;
        top: -16px;
        right: -8px;
        width: 38px;
        height: 41px;
        /* シゴトランドにてキャラクターは非表示。他の画面で表示する場合はpopup-game.htmlに条件分岐を追加してください。 */
        /* background-image: url(../img/activity/character02.webp); */
        background-size: contain;
        transition: all 0.3s ease-in-out;
        scale: 0;
        rotate: 180deg;
        translate: 0 50%;
    }
    &:hover {
        transform: scale(1.1);
        transform-origin: center bottom;
    }
}

#tab_content {
    background-color: #f68934;
}

#tab_description {
    background-color: #6e6e6e;
}

#tab_content.tab_select,
#tab_description.tab_select {
    font-size: 20px;
    height: 62px;
    top: 0;
    &:hover {
        transform: scale(1);
    }
}

#tab_content.tab_select::before,
#tab_description.tab_select::before {
    content: '';
    scale: 1;
    rotate: 0deg;
    translate: 0 0;
}

.content {
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.scratch {
    width: 772px;
    height: 579px;
    background-image: url(../img/activity/game/job-land-bg-loading.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    #iframe_scratch {
        min-width: 100%;
        min-height: 100%;
    }
}

#content_playground_favorite {
    position: absolute;
    top: 64px;
    right: -54px;
    z-index: 10;
    display: inline-flex;
    padding: 16px 8px 8px 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
    border: 2px solid #ababab;
    box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.25);
    background: #ffffff;
    color: #121212;
    text-align: center;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    cursor: pointer;
}

#content_playground_favorite.on {
    border: 2px solid #f2258b;
}

#content_playground_favorite>img {
    width: 32px;
    height: auto;
}

#expansion_secret_input {
    display: inline-flex;
    padding: 16px 14px 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
    border: 2px solid #fff;
    background: #6c0;
    position: absolute;
    top: 388px;
    right: -72px;
    left: unset;
    width: 88px;
    height: auto;
    box-sizing: border-box;
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
    line-height: 26px;
    transition: transform 0.3s ease-in-out;
    &:hover {
        transform: scale(1.1);
    }
}

#expansion_secret_input>span {
    overflow-wrap: anywhere;
}

#content_description {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
}

#description_container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    overflow-y: auto;
    overflow-x: hidden;
}

.description_header {
    display: flex;
    width: 747px;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.description_thumbnail {
    width: 223px;
    height: 167px;
    display: flex;
    justify-content: center;
}

.description_thumbnail>img {
    width: 100%;
    height: auto;
}

.description_title {
    width: 520px;
    height: 159px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

#description_main_title {
    height: 127px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    background: #F68934;
    color: #FFF;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

#description_subtitle {
    position: absolute;
    height: 37px;
    left: 15px;
    top: 0;
    padding: 0 10px;
    background-color: #FFF;
    border: 2px solid #f68934;
    border-radius: 4px;
    color: #F68934;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.description_status {
    position: absolute;
    left: 15px;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#content_description_favorite {
    display: flex;
    height: 24px;
    padding: 0px 12px 0px 8px;
    align-items: center;
    gap: 4px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, .25);
    color: #121212;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    cursor: pointer;
}

#content_description_favorite>img {
    width: 16px;
    height: auto;
}

.description_mira {
    height: 24px;
    border-radius: 16px;
    background-color: #FFF;
    box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.25);
    color: #121212;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding-left: 4px;
    padding-right: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.description_mira>img {
    width: 16px;
    height: auto;
}

.description_mira>span {
    color: #F68934;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 16px;
    font-weight: 800;
    padding-left: 9px;
}

.description_progress {
    height: 24px;
    border-radius: 16px;
    background-color: #FFF;
    box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.25);
    padding-left: 8px;
    padding-right: 17px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    position: relative;
}

.description_progress>img {
    width: 13px;
    height: auto;
    z-index: 1;
}

.description_progress>p {
    color: #121212;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 19px;
    z-index: 1;
}

.description_progress>p>span {
    color: #40780A;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 19px;
}

.description_progress_bg {
    position: absolute;
    left: 0;
    height: 100%;
    background: #94E543;
}

.description_explanation {
    display: flex;
    width: 747px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 8px;
    background: #EFEFEF;
    position: relative;
}

.description_explanation>p {
    color: #121212;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

/* シゴトランドにてキャラクターは非表示。他の画面で表示する場合はpopup-game.htmlに条件分岐を追加してください。 */
.description_explanation_character {
    width: 61px;
    height: auto;
    position: absolute;
    right: 0;
    bottom: -32px;
    display: none;
}

.description_label {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.description_item {
    display: flex;
    padding: 8px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.description_play_condition {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.description_play_condition>.description_label {
    color: #121212;
}

.description_play_condition .description_item {
    background: #121212;
    color: #FFF;
}

.description_feature_points {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
}

.description_feature_points>.description_label {
    color: #64B3E7;
}

.description_feature_points .description_item {
    background: #359DE1;
    color: #FFF;
}

.description_movies {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.description_movies>.description_label {
    color: #E66964;
}

.description_video_list {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
}

#description_scroll_label {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 24px;
    background-color: #efefef;
    text-align: center;
    cursor: pointer;
}

.favorite-notification {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: #FFF;
    padding: 8px 20px;
    border-radius: 4px;
    z-index: 999;
    opacity: 0;
    display: none;
    transition: opacity 1s;
}

#expansion-overlay {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.85);
    z-index: 10000;
}

.expansion_secret_container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    position: relative;
}

#expansion_close {
    width: 121px;
    height: 47px;
    border-radius: 22px;
    background: #4e4e4e;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #FFF;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    position: absolute;
    bottom: -62px;
}

.expansion_secret {
    width: 378px;
    height: 79px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 2px solid #6e6e6e;
    border-radius: 14px;
    background-color: #212121;
}

.expansion_secret>input[type='text'] {
    width: 232px;
    height: 53px;
    border: 1px solid #FFF;
    border-radius: 8px;
    color: #FFF;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.expansion_secret>input[type='text']::placeholder {
    color: #A8A8A8;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.expansion_secret>input[type='text'].error {
    color: #FFF;
    background: #E66964;
}

.expansion_secret>button {
    width: 114px;
    height: 53px;
    border-radius: 8px;
    background: #66cc00;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFF;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.expansion_secret > button:hover {
    background: #64b415;
}

.expansion_treasure_chest {
    width: 97px;
    height: auto;
}

#expansion_close>span {
    font-size: 24px;
    padding-bottom: 5px;
}

@media screen and (max-height: 767px) {
    .game_area {
        height: 450px;
    }

    .scratch {
        width: 499px;
        height: 370px;
        aspect-ratio: 499 / 370;
    }

    #expansion_secret_input {
        top: 287px;
        line-height: 16px;
    }
}

@media screen and (max-width: 450px) {
	/* スマホ用 */
    #game-overlay {
        align-items: flex-start;
        padding-top: 130px;
    }

    .game_area {
        width: 345px;
        height: fit-content;
        max-height: 70vh;
        padding: 40px 0 16px;
    }

    .tab_container {
        left: 16px;
    }

    #close-game-overlay {
        top: -26px;
        right: 5.5px;
        width: 51px;
        height: 51px;
        padding: 12px 0 9px;
        font-size: 9px;
        border: 1.5px solid #FFF;
    }

    #close-game-overlay>img {
        width: auto;
        height: 15px;
    }

    #expansion_secret_input {
        position: fixed;
        top: auto;
        right: 24px;
        bottom: 24px;
        flex-direction: row;
        width: auto;
        padding: 10px 16px 6px 12px;
        line-height: 24px;
    }

    #expansion_secret_input>img {
        width: 24px;
        height: auto;
    }

    .scratch {
        width: 100vw;
        height: auto;
        aspect-ratio: 313 / 281;
    }

    #expansion-overlay {
        align-items: flex-start;
        padding-top: 233px;
    }

    .expansion_secret_container {
        gap: 24px;
    }

    .expansion_secret>input[type='text'] {
        width: 157px;
        height: 37px;
        font-size: 11px;
    }

    .expansion_secret>input[type='text']::placeholder {
        font-size: 11px;
    }

    .expansion_secret>button {
        width: 77px;
        height: 37px;
        font-size: 11px;
    }

    .expansion_secret {
        width: 255px;
        height: 55px;
        gap: 6px;
        border: 1.5px solid #6e6e6e;
    }

    .expansion_treasure_chest {
        width: 65px;
    }

    #expansion_close {
        width: 93px;
        height: 36px;
        gap: 2px;
    }

    #content_description {
        height: 100%;
        overflow: hidden;
        padding: 0 16px;
    }

    #description_container {
        padding-top: 20px;
        gap: 8px;
    }

    .description_header {
        padding: 12px 16px 8px 8px;
        align-items: center;
        gap: 8px;
        width: 100%;
        border-radius: 4px;
        background: #F68934;
        position: relative;
    }

    .description_thumbnail {
        width: 104px;
        height: 78px;
        aspect-ratio: 4 / 3;
    }

    .description_title {
        position: static;
        width: auto;
        height: auto;
    }

    #description_subtitle {
        height: 27px;
        border: 3px solid #f68934;
        font-size: 14px;
        left: 16px;
        top: -17px;
    }

    #description_main_title {
        font-size: 16px;
        width: 100%;
        height: 72px;
        padding: 0;
    }

    .description_explanation {
        width: 100%;
        margin-bottom: 16px;
    }

    .description_explanation>p {
        font-size: 14px;
    }

    .description_explanation_character {
        width: 48px;
    }

    .description_label, .description_item  {
        font-size: 16px;
    }

    .description_play_condition, .description_feature_points, .description_movies {
        margin: 8px 0;
    }
}