/* ==================================================
   01Nintendo - HOME
   English Edition
   Established 2003
================================================== */

/* ---------- BASE ---------- */

#on01-home {
    --on-red: #8e2635;
    --on-cream: #f5f0e4;
    --on-hero: #eee6d5;
    --on-text: #302923;
    --on-muted: #71675d;
    --on-border: #d8cebd;

    width: 100%;
    margin: 0 auto;
    padding: 0;
    color: var(--on-text);
    background: var(--on-cream);
    border: 1px solid var(--on-border);
    border-radius: 8px;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

#on01-home *,
#on01-home *::before,
#on01-home *::after {
    box-sizing: border-box;
}

#on01-home * {
    font-family: Arial, Helvetica, sans-serif !important;
}

#on01-home h1,
#on01-home h2,
#on01-home h3 {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: var(--on-text);
    letter-spacing: normal;
    line-height: 1.3;
}

#on01-home h1::before,
#on01-home h1::after,
#on01-home h2::before,
#on01-home h2::after,
#on01-home h3::before,
#on01-home h3::after {
    display: none !important;
    content: none !important;
}

#on01-home p {
    padding: 0 !important;
    margin: 0 !important;
}

#on01-home a {
    text-decoration: none !important;
    color: inherit;
}

#on01-home a:focus-visible {
    outline: 2px solid var(--on-red);
    outline-offset: -3px;
}

/* ---------- TOP BAR ---------- */

#on01-home .on01-topline {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 28px;
    background: var(--on-red);
    color: #fff;
}

#on01-home .on01-brand {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
}

#on01-home .on01-language {
    display: flex !important;
    align-items: center;
    gap: 15px;
    font-size: 12px;
}

#on01-home .on01-language a {
    color: #fff;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 3px;
}

#on01-home .on01-language a:hover {
    background: rgba(255,255,255,.12);
}

/* ---------- HERO ---------- */

#on01-home .on01-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    align-items: center;
    gap: 36px;
    padding: 48px 40px;
    background: #eee6d5;
    border-bottom: 3px solid #8e2635;
}

#on01-home .on01-hero::before,
#on01-home .on01-hero::after,
#on01-home .on01-hero-text::before,
#on01-home .on01-hero-text::after,
#on01-home .on01-hero-visual::before,
#on01-home .on01-hero-visual::after {
    content: none !important;
    display: none !important;
}

#on01-home .on01-hero-text {
    text-align: left;
}

#on01-home .on01-hero-text .on01-kicker {
    display: block;
    margin: 0 0 10px;
    color: #8e2635;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
}

#on01-home .on01-heading {
    margin: 0 0 14px !important;
    font-size: clamp(36px, 5vw, 64px) !important;
    font-weight: 700 !important;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #2f2924;
}

#on01-home .on01-intro {
    max-width: 560px;
    margin: 0 0 22px !important;
    font-size: 18px;
    line-height: 1.8;
    color: #5f554c;
}

#on01-home .on01-hero-link {
    display: inline-block !important;
    padding: 14px 26px !important;
    background: #8e2635;
    color: #fff !important;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

#on01-home .on01-hero-link:hover {
    background: #741f2c;
    color: #fff !important;
}

#on01-home .on01-hero-visual {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

#on01-home .on01-hero-logo {
    display: block !important;
    width: 100%;
    max-width: 500px;
    height: auto !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}


/* ---------- SECTION ---------- */

#on01-home .on01-section {
    display: block;
    padding: 30px 32px 0;
}

#on01-home .on01-section-heading {
    display: block !important;
    margin: 0 0 20px !important;
}

#on01-home .on01-kicker {
    display: block;
    margin: 0 0 5px;
    color: var(--on-red);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .15em;
}

#on01-home .on01-section-heading h2 {
    font-size: 28px !important;
    font-weight: 600 !important;
}

/* ---------- SERIES GRID ---------- */

#on01-home .on01-series-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px;
    width: 100%;
    clear: both;
    align-items: stretch;
}

#on01-home .on01-series-grid::before,
#on01-home .on01-series-grid::after {
    display: none !important;
    content: none !important;
}

#on01-home .on01-series-grid > :not(.on01-series-card) {
    display: none !important;
}

#on01-home .on01-series-grid > .on01-series-card {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    min-width: 0;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    overflow: hidden;
    border: 1px solid var(--on-border);
    border-radius: 5px;
    background: #fffcf5;
}

#on01-home .on01-metroid {
    grid-area: 1 / 1 / 2 / 2;
    border-color: var(--on-red) !important;
}

#on01-home .on01-mother {
    grid-area: 1 / 2 / 2 / 3;
}

#on01-home .on01-zelda {
    grid-area: 2 / 1 / 3 / 2;
}

#on01-home .on01-kings {
    grid-area: 2 / 2 / 3 / 3;
}

#on01-home .on01-card-link {
    display: flex !important;
    flex-direction: column;
    flex: 1;
    width: 100%;
}

#on01-home .on01-card-link:hover {
    background: #fff;
}

/* ---------- CARD IMAGE ---------- */

#on01-home .on01-card-art {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    aspect-ratio: 2.4 / 1;
    padding: 20px;
    overflow: hidden;
    background: #263843;
}

#on01-home .on01-card-art img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

#on01-home .on01-metroid .on01-card-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,.55),
        transparent 85%
    );
}

#on01-home .on01-art-title {
    position: relative;
    z-index: 1;
    max-width: 95%;
    color: #fff;
    font-size: clamp(20px, 2.8vw, 32px);
    font-weight: 500;
    letter-spacing: .025em;
    line-height: 1.2;
}

/* ---------- COMING SOON ---------- */

#on01-home .on01-mother .on01-card-art {
    background: #966f71;
}

#on01-home .on01-zelda .on01-card-art {
    background: #788674;
}

#on01-home .on01-kings .on01-card-art {
    background: #74716e;
}

#on01-home .on01-coming {
    opacity: .72;
}

#on01-home .on01-coming-label {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 3px 7px;
    border: 1px solid rgba(255,255,255,.7);
    color: #fff;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .08em;
}

/* ---------- CARD BODY ---------- */

#on01-home .on01-card-body {
    position: relative;
    flex: 1;
    min-height: 112px;
    padding: 15px 18px;
}

#on01-home .on01-metroid .on01-card-body {
    padding-right: 50px;
}

#on01-home .on01-card-status {
    display: block;
    margin-bottom: 5px;
    color: var(--on-red);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .08em;
}

#on01-home .on01-card-body h3 {
    font-size: 19px !important;
    font-weight: 600 !important;
}

#on01-home .on01-card-body p {
    margin-top: 7px !important;
    color: var(--on-muted);
    font-size: 13px;
    line-height: 1.6;
}

#on01-home .on01-card-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: var(--on-red);
    color: #fff;
    font-size: 14px;
}

/* ---------- LATEST UPDATES ---------- */

#on01-home .on01-updates {
    padding-bottom: 32px;
}

#on01-home .on01-update-list {
    display: block;
    width: 100%;
    border-top: 1px solid var(--on-border);
}

#on01-home .on01-update-list a {
    display: grid !important;
    grid-template-columns: 90px minmax(0, 1fr) 20px !important;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid var(--on-border);
    font-size: 14px;
    line-height: 1.6;
}

#on01-home .on01-update-list a::before,
#on01-home .on01-update-list a::after {
    display: none !important;
    content: none !important;
}

#on01-home .on01-update-list p {
    display: contents !important;
}

#on01-home .on01-update-list br {
    display: none !important;
}

#on01-home .on01-update-list time {
    grid-column: 1;
    grid-row: 1;
    color: var(--on-red);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

#on01-home .on01-update-title {
    grid-column: 2;
    grid-row: 1;
    display: block;
    width: auto;
    min-width: 0;
    white-space: normal;
    word-break: normal;
}

#on01-home .on01-update-arrow {
    grid-column: 3;
    grid-row: 1;
    color: var(--on-red);
    text-align: right;
}

#on01-home .on01-update-list a:hover {
    color: var(--on-red);
}

/* ---------- FOOTER ---------- */

#on01-home .on01-footer {
    padding: 24px 20px;
    background: var(--on-red);
    color: #fff;
    text-align: center;
}

#on01-home .on01-footer strong {
    font-size: 18px;
    font-weight: 600;
}

#on01-home .on01-footer p {
    margin: 5px 0 10px !important;
    font-size: 12px;
    color: #f0dfd6;
}

#on01-home .on01-footer a {
    font-size: 12px;
    color: #fff;
}

/* ---------- MOBILE ---------- */

@media screen and (max-width: 800px) {
    #on01-home .on01-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 18px;
    }

    #on01-home .on01-hero-text {
        text-align: center;
    }

    #on01-home .on01-intro {
        margin: 0 auto 20px !important;
    }

    #on01-home .on01-hero-visual {
        order: -1;
    }

    #on01-home .on01-hero-logo {
        max-width: 420px;
    }

    #on01-home .on01-heading {
        font-size: 40px !important;
    }

    #on01-home .on01-intro {
        font-size: 15px;
    }
}
/* HERO typography */

#on01-home .on01-hero .on01-heading {
    font-size: clamp(30px, 4.2vw, 48px) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em !important;
    margin: 0 0 16px !important;
    color: #302923 !important;
}

@media screen and (max-width: 800px) {
    #on01-home .on01-hero .on01-heading {
        font-size: 34px !important;
    }
}
/* ========================================
   01Nintendo HOME
   不要なフッター・SNSボタンの非表示
======================================== */

/* 独自フッターを非表示 */
#on01-home .on01-footer {
    display: none !important;
}

/* 総合TOPのSNSシェアボタンを非表示 */
body.home .sns {
    display: none !important;
}

/* 総合TOP下部の余白調整 */
body.home #on01-home {
    margin-bottom: 0 !important;
}

body.home #on01-home .on01-updates {
    padding-bottom: 30px !important;
}