/* News detail page: IMGAME header, content and legal footer. */
body.news-detail-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #fff !important;
    color: #242424;
    font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.news-detail-page *,
.news-detail-page *::before,
.news-detail-page *::after {
    box-sizing: border-box;
}

/* The legacy mobile navigation is emitted by pheader; this page has its own. */
.news-detail-page #left_menu,
.news-detail-page #menu_overlay {
    display: none !important;
}

/* Header */
.imgame-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    height: 62px;
    border-bottom: 1px solid #ececec;
    background: #fff;
}

.imgame-header__desktop {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 62px;
}

.imgame-header__brand {
    display: flex;
    flex: 0 0 17%;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    height: 62px;
    background: #fff;
    text-decoration: none;
}

.imgame-header__brand img {
    display: block;
    width: 195px;
    max-width: 76%;
    height: auto;
    border: 0;
}

.imgame-header__nav {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    justify-content: space-between;
    height: 40px;
    margin-top: 22px;
    background: #313131;
}

.imgame-header__main-links {
    display: flex;
    align-items: stretch;
    height: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.imgame-header__main-links li {
    position: relative;
    height: 40px;
    margin: 0;
    padding: 0 8px;
}

.imgame-header__main-links a,
.imgame-header__sub-links a {
    display: block;
    height: 40px;
    padding: 0 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 40px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease;
}

.imgame-header__main-links li:not(.imgame-header__home) a:hover,
.imgame-header__sub-links a:hover {
    background: #e02146;
}

.imgame-header__main-links li.is-active a {
    background: rgba(0, 0, 0, .2);
    box-shadow: inset 0 -3px #e02146;
}

.imgame-header__main-links .imgame-header__home {
    padding-left: 0;
}

.imgame-header__main-links .imgame-header__home::before {
    position: absolute;
    z-index: 0;
    top: 0;
    left: -40px;
    width: calc(100% + 40px);
    height: 40px;
    background: #313131;
    clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%);
    content: "";
    transition: background-color .2s ease;
}

.imgame-header__main-links .imgame-header__home:hover::before {
    background: #e02146;
}

.imgame-header__main-links .imgame-header__home a {
    position: relative;
    z-index: 1;
}

.imgame-header__sub-links {
    display: flex;
    align-items: stretch;
    gap: 6px;
    height: 40px;
    margin-left: auto;
    padding-right: 48px;
}

.imgame-header__mobile,
.imgame-mobile-menu {
    display: none;
}

/* Main news detail component. */
.news-detail-main {
    width: 100%;
    max-width: 1060px;
    min-height: 420px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.news-detail-heading {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.news-detail-heading__accent {
    display: inline-block;
    flex-shrink: 0;
    width: 5px;
    height: 15px;
    margin-right: 8px;
    background: #d91760;
}

.news-detail-heading__label {
    color: #242424;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
}

.news-detail-article {
    width: 100%;
}

.news-detail-title {
    margin: 0 0 16px;
    color: #242424;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.news-detail-date {
    display: block;
    margin-bottom: 16px;
    color: #727272;
    font-size: 16px;
    line-height: 1.5;
}

.news-detail-content {
    width: 100%;
    overflow: hidden;
    color: #242424;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.news-detail-content p {
    margin: 0 0 1rem;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
}

.news-detail-content table {
    max-width: 100%;
}

.news-detail-content iframe,
.news-detail-content video {
    max-width: 100%;
}

.news-detail-content a {
    color: #d91760;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.news-detail-content a:hover {
    color: #ad124d;
}

/* Legal footer shown in the supplied reference image. */
.imgame-legal-footer {
    width: 100%;
    padding: 28px 16px 30px;
    border-top: 1px solid #dfe0e3;
    background: #f2f2f4;
    color: #6c757d;
    text-align: center;
}

.imgame-legal-footer__socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 17px;
}

.imgame-legal-footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    transition: opacity .2s ease;
}

.imgame-legal-footer__socials a:hover {
    opacity: .8;
}

.imgame-legal-footer__socials img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.imgame-legal-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.imgame-legal-footer__links a {
    color: #2f2f32;
    text-decoration: none;
    transition: color .2s ease;
}

.imgame-legal-footer__links a:hover {
    color: #e02146;
}

.imgame-legal-footer__links span {
    color: rgba(47, 47, 50, .65);
}

.imgame-legal-footer p {
    margin: 10px 0 0;
    color: #2f2f32;
    font-size: 14px;
    line-height: 1.5;
}

@media screen and (max-width: 1280px) {
    .imgame-header__brand {
        flex-basis: 220px;
        min-width: 220px;
    }

    .imgame-header__brand img {
        width: 160px;
    }

    .imgame-header__main-links li {
        padding-right: 2px;
        padding-left: 2px;
    }

    .imgame-header__main-links a,
    .imgame-header__sub-links a {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 13px;
    }

    .imgame-header__sub-links {
        padding-right: 20px;
    }
}

@media screen and (max-width: 991px) {
    .imgame-header {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        height: 45px;
    }

    .imgame-header__desktop {
        display: none;
    }

    .imgame-header__mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 45px;
        padding: 0 16px;
        background: #fff;
    }

    .imgame-header__mobile-brand {
        display: flex;
        align-items: center;
        height: 45px;
    }

    .imgame-header__mobile-brand img {
        display: block;
        width: 130px;
        max-height: 32px;
        object-fit: contain;
    }

    .imgame-header__toggle {
        position: relative;
        width: 30px;
        height: 30px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .imgame-header__toggle span {
        position: absolute;
        left: 4px;
        width: 22px;
        height: 2px;
        background: #242424;
        transition: top .2s ease, transform .2s ease, opacity .2s ease;
    }

    .imgame-header__toggle span:nth-child(1) { top: 8px; }
    .imgame-header__toggle span:nth-child(2) { top: 14px; }
    .imgame-header__toggle span:nth-child(3) { top: 20px; }

    .imgame-header__toggle.is-open span:nth-child(1) {
        top: 14px;
        transform: rotate(45deg);
    }

    .imgame-header__toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .imgame-header__toggle.is-open span:nth-child(3) {
        top: 14px;
        transform: rotate(-45deg);
    }

    .imgame-mobile-menu {
        position: absolute;
        top: 45px;
        right: 0;
        left: 0;
        display: none;
        width: 100%;
        padding: 8px 0 10px;
        border-top: 1px solid #d4d4d4;
        background: #ececee;
        box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
    }

    .imgame-mobile-menu.is-open {
        display: block;
    }

    .imgame-mobile-menu > a {
        display: block;
        padding: 8px 14px;
        border-bottom: 1px solid #cfcfd3;
        color: #0e1b36;
        font-size: 16px;
        text-decoration: none;
    }

    .imgame-mobile-menu > a:hover {
        background: #d8d8dd;
    }

    .imgame-mobile-menu > a.is-active {
        padding-left: 11px;
        border-left: 3px solid #e02146;
        background: #e4e4e8;
        font-weight: 700;
    }

    .imgame-mobile-menu__sub {
        display: flex;
        gap: 8px;
        padding: 10px 14px 0;
    }

    .imgame-mobile-menu__sub a {
        flex: 1;
        padding: 7px 8px;
        border: 1px solid #c8c8cc;
        background: #f8f8f9;
        color: #0f1e3a;
        font-size: 14px;
        text-align: center;
        text-decoration: none;
    }

    .news-detail-main {
        min-height: 360px;
        margin-top: 45px;
        padding: 26px 16px 56px;
    }

    .news-detail-heading {
        margin-bottom: 16px;
        padding-top: 10px;
    }

    .news-detail-title {
        font-size: 22px;
        line-height: 1.55;
    }

    .news-detail-date,
    .news-detail-content {
        font-size: 15px;
    }

    .news-detail-content {
        line-height: 1.75;
    }

    .news-detail-content img {
        width: 100% !important;
        height: auto !important;
    }

    .news-detail-content table {
        display: block;
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .imgame-legal-footer {
        padding-top: 25px;
        padding-bottom: 26px;
    }

    .imgame-legal-footer__links,
    .imgame-legal-footer p {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-detail-page *,
    .news-detail-page *::before,
    .news-detail-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
