:root {
    --red: #ef321e;
    --red-dark: #8f0b08;
    --cream: #fff0bc;
    --cream-light: #fffaf0;
    --ink: #181512;
    --muted: #6f6961;
    --line: #dcd5ca;
    --paper: #fffefb;
    --white: #fff;
    --page: min(1180px, calc(100% - 48px));
    --shadow: 0 24px 70px rgba(74, 25, 11, 0.14);
}

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

html {
    color: var(--ink);
    background: var(--paper);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(rgba(239, 50, 30, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(239, 50, 30, 0.035) 1px, transparent 1px),
        var(--paper);
    background-size: 48px 48px;
    font-family: Inter, "Helvetica Neue", "Noto Sans JP", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: var(--white);
    background: var(--ink);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.page-width,
.header-inner,
.footer-inner {
    width: var(--page);
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 254, 251, 0.94);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.brand img {
    width: 44px;
    height: 44px;
    border: 2px solid var(--ink);
    border-radius: 13px;
}

.header-navigation,
.primary-navigation,
.language-navigation {
    display: flex;
    align-items: center;
}

.header-navigation {
    gap: 34px;
}

.primary-navigation {
    gap: 30px;
}

.primary-navigation a,
.language-navigation a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible,
.primary-navigation a[aria-current="page"],
.language-navigation a:hover,
.language-navigation a:focus-visible,
.language-navigation a[aria-current="page"] {
    color: var(--red);
}

.primary-navigation a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

.language-navigation {
    gap: 8px;
    padding-left: 28px;
    border-left: 1px solid var(--line);
}

.language-navigation a,
.language-navigation span {
    font-size: 11px;
}

.language-navigation span {
    color: var(--line);
}

.menu-button {
    display: none;
}

.hero {
    display: grid;
    min-height: 640px;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    align-items: center;
    gap: 72px;
    padding-block: 82px 96px;
}

.eyebrow {
    margin: 0 0 20px;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.hero h1,
.contact-hero h1 {
    margin: 0;
    font-size: clamp(52px, 7.5vw, 102px);
    font-weight: 950;
    letter-spacing: -0.075em;
    line-height: 0.96;
}

.hero h1 span {
    display: block;
    color: var(--red);
}

.hero-intro {
    max-width: 650px;
    margin: 34px 0 0;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 20px);
}

.hero-mark {
    position: relative;
    justify-self: end;
    width: min(100%, 390px);
    transform: rotate(4deg);
}

.hero-mark::before,
.hero-mark::after {
    position: absolute;
    z-index: -1;
    content: "";
}

.hero-mark::before {
    inset: -30px 26px 20px -28px;
    border: 3px solid var(--ink);
    border-radius: 45% 55% 50% 50%;
    background: var(--cream);
    transform: rotate(-7deg);
}

.hero-mark::after {
    width: 72px;
    height: 72px;
    right: -18px;
    bottom: -20px;
    border-radius: 50%;
    background: var(--red);
}

.hero-mark img {
    width: 100%;
    border: 4px solid var(--ink);
    border-radius: 40px;
    box-shadow: var(--shadow);
}

.hero-mark-ring {
    position: absolute;
    z-index: 2;
    top: -42px;
    right: -28px;
    width: 76px;
    height: 76px;
    border: 14px solid var(--red);
    border-radius: 50%;
}

.games-section {
    padding-bottom: 132px;
}

.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 3px solid var(--ink);
}

.section-heading-row h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading-row > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.game-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 48px;
    padding: 52px 36px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease, padding 180ms ease;
}

.game-card:hover,
.game-card:focus-visible {
    padding-inline: 48px;
    color: var(--white);
    background: var(--red);
    outline: 0;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
}

.game-card:hover .status,
.game-card:focus-visible .status,
.game-card:hover .game-card-main > p:last-child,
.game-card:focus-visible .game-card-main > p:last-child {
    color: rgba(255, 255, 255, 0.82);
}

.game-card:hover .status span,
.game-card:focus-visible .status span {
    background: var(--cream);
}

.game-card h3 {
    margin: 0 0 14px;
    font-size: clamp(48px, 8vw, 90px);
    font-weight: 950;
    letter-spacing: -0.07em;
    line-height: 0.9;
}

.game-card-main > p:last-child {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
}

.game-link-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 4px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.game-link-label span {
    font-size: 20px;
}

.coming-soon {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 26px;
    margin-top: 52px;
    padding: 34px 38px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--cream-light);
}

.coming-label {
    margin: 4px 0 0;
    color: var(--red);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.coming-soon h3 {
    margin: 0 0 5px;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.coming-soon div p {
    margin: 0;
    color: var(--muted);
}

.contact-hero {
    padding-block: 104px 72px;
    border-bottom: 3px solid var(--ink);
}

.contact-hero h1 {
    max-width: 900px;
}

.contact-hero > p:last-child {
    max-width: 680px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(48px, 8vw, 110px);
    padding-block: 72px 132px;
}

.form-notice {
    align-self: start;
    display: flex;
    gap: 18px;
    padding: 26px;
    border: 2px solid var(--red);
    border-radius: 20px;
    background: var(--cream-light);
}

.form-notice > span {
    display: grid;
    flex: none;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--red);
    font-weight: 900;
}

.form-notice-success {
    border-color: #17784f;
    background: #eef9f3;
}

.form-notice-success > span {
    background: #17784f;
}

.form-notice h2 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.4;
}

.form-notice p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.contact-form {
    display: grid;
    gap: 30px;
}

.form-errors {
    display: flex;
    gap: 16px;
    padding: 22px;
    border: 3px solid #c92c1d;
    border-radius: 16px;
    color: #7e0805;
    background: #fff0ed;
    box-shadow: 0 8px 24px rgba(143, 11, 8, 0.12);
}

.error-mark {
    display: grid;
    flex: none;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: #c92c1d;
    font-size: 22px;
    font-weight: 950;
}

.form-errors h2,
.form-errors h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.form-errors p {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 750;
}

.form-errors ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    font-weight: 700;
}

.field-row {
    display: grid;
    gap: 9px;
}

.field-row label {
    font-size: 13px;
    font-weight: 850;
}

.field-row label span {
    margin-left: 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
}

.target-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.target-fieldset legend {
    margin-bottom: 9px;
    padding: 0;
    font-size: 13px;
    font-weight: 850;
}

.target-options {
    display: grid;
    gap: 12px;
}

.target-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 2px 0;
    cursor: pointer;
}

.target-fieldset .target-option input {
    flex: none;
    width: 17px;
    height: 17px;
    margin: 0;
    padding: 0;
    border: initial;
    border-radius: 50%;
    background: initial;
    box-shadow: none;
    accent-color: var(--red);
}

.target-option > span {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.field-row input,
.field-row select,
.field-row textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.8);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field-row input,
.field-row select {
    height: 56px;
    padding: 0 16px;
}

.field-row textarea {
    min-height: 190px;
    padding: 14px 16px;
    resize: vertical;
}

.field-row input:focus,
.field-row select:focus,
.field-row textarea:focus {
    border-color: var(--red);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(239, 50, 30, 0.12);
}

.field-row [aria-invalid="true"] {
    border-color: #c92c1d;
    box-shadow: 0 0 0 3px rgba(201, 44, 29, 0.12);
}

.field-error {
    margin: 0;
    color: #a3150d;
    font-size: 13px;
    font-weight: 850;
}

.submit-button {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    color: #8d867c;
    background: #e8e3dc;
    font-weight: 900;
    cursor: not-allowed;
}

.submit-button-live {
    color: var(--white);
    background: var(--red);
    cursor: pointer;
    transition: background-color 150ms ease, transform 150ms ease;
}

.submit-button-live:hover,
.submit-button-live:focus-visible {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.form-privacy {
    margin: -16px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.form-privacy a {
    color: var(--ink);
    font-weight: 800;
    text-underline-offset: 3px;
}

.contact-confirm,
.contact-success {
    padding-block: 72px 132px;
}

.contact-confirm {
    max-width: 900px;
}

.confirm-heading {
    margin-bottom: 36px;
}

.confirm-heading h2,
.contact-success h2 {
    margin: 8px 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.055em;
    line-height: 1;
}

.confirm-heading > p:last-child,
.contact-success > p {
    color: var(--muted);
}

.contact-confirm .form-errors {
    margin-bottom: 28px;
}

.confirm-list {
    margin: 0;
    border-top: 3px solid var(--ink);
}

.confirm-list > div {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 28px;
    padding: 24px 4px;
    border-bottom: 1px solid var(--line);
}

.confirm-list dt {
    font-size: 12px;
    font-weight: 900;
}

.confirm-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.confirm-message dd {
    line-height: 1.8;
    white-space: normal;
}

.confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 16px;
    margin-top: 38px;
}

.secondary-button {
    min-height: 58px;
    padding: 0 20px;
    border: 2px solid var(--ink);
    border-radius: 12px;
    color: var(--ink);
    background: transparent;
    font-weight: 900;
    cursor: pointer;
}

.contact-success {
    display: grid;
    justify-items: start;
    max-width: 900px;
}

.success-mark {
    display: grid;
    width: 86px;
    height: 86px;
    margin-bottom: 30px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: #17784f;
    font-size: 42px;
    font-weight: 950;
    box-shadow: 0 10px 30px rgba(23, 120, 79, 0.22);
}

.contact-success .success-note {
    margin-top: 4px;
    font-size: 14px;
}

.success-link {
    display: flex;
    min-width: 260px;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 30px;
    padding: 0 22px;
    border-radius: 12px;
    color: var(--white);
    background: var(--red);
    font-weight: 900;
    text-decoration: none;
}

.site-footer {
    color: var(--white);
    background: var(--ink);
}

.footer-inner {
    display: flex;
    min-height: 170px;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-block: 36px;
}

.footer-inner strong {
    font-size: 23px;
    letter-spacing: -0.04em;
}

.footer-inner p {
    margin: 3px 0 0;
    color: #aaa39a;
    font-size: 12px;
}

.footer-meta {
    display: grid;
    justify-items: end;
    gap: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 24px;
}

.footer-links a {
    color: #d7d1c8;
    font-size: 12px;
    font-weight: 750;
    text-underline-offset: 4px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--white);
}

.footer-links span {
    margin-left: 5px;
}

.copyright {
    white-space: nowrap;
}

.privacy-content {
    max-width: 900px;
    padding-block: 64px 132px;
}

.privacy-updated {
    margin: 0 0 42px;
    color: var(--muted);
    font-size: 13px;
}

.privacy-content section {
    padding: 32px 0;
    border-top: 1px solid var(--line);
}

.privacy-content section:first-of-type {
    border-top: 3px solid var(--ink);
}

.privacy-content h2 {
    margin: 0 0 16px;
    font-size: clamp(20px, 3vw, 27px);
    letter-spacing: -0.035em;
}

.privacy-content section > p {
    margin: 10px 0 0;
    color: var(--muted);
}

.privacy-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    color: var(--red);
    font-weight: 850;
    text-underline-offset: 5px;
}

@media (max-width: 820px) {
    :root {
        --page: min(100% - 32px, 1180px);
    }

    .header-inner {
        min-height: 76px;
    }

    .menu-button {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 12px;
        border: 1px solid var(--line);
        border-radius: 999px;
        color: var(--ink);
        background: var(--white);
        cursor: pointer;
    }

    .menu-button > span:first-child {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--red);
    }

    .menu-label {
        font-size: 11px;
        font-weight: 850;
    }

    .header-navigation {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        gap: 22px;
        padding: 24px max(16px, calc((100% - min(100% - 32px, 1180px)) / 2));
        border-bottom: 1px solid var(--line);
        background: var(--paper);
        box-shadow: 0 20px 36px rgba(24, 21, 18, 0.08);
    }

    .site-header.menu-open .header-navigation {
        display: grid;
    }

    .primary-navigation {
        display: grid;
        gap: 14px;
    }

    .primary-navigation a {
        padding-block: 5px;
        font-size: 17px;
    }

    .language-navigation {
        justify-content: flex-start;
        padding: 18px 0 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .hero {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 72px;
        padding-block: 72px 100px;
    }

    .hero-mark {
        justify-self: center;
        width: min(80vw, 360px);
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .brand img {
        width: 40px;
        height: 40px;
    }

    .hero h1,
    .contact-hero h1 {
        font-size: clamp(46px, 15vw, 68px);
    }

    .hero-intro {
        font-size: 16px;
    }

    .game-card {
        display: block;
        padding: 36px 8px;
    }

    .game-card:hover,
    .game-card:focus-visible {
        padding-inline: 18px;
    }

    .game-link-label {
        margin-top: 30px;
    }

    .coming-soon {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 28px 24px;
    }

    .contact-hero {
        padding-block: 72px 52px;
    }

    .contact-layout {
        gap: 42px;
        padding-block: 48px 92px;
    }

    .contact-confirm,
    .contact-success {
        padding-block: 48px 92px;
    }

    .confirm-list > div {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .confirm-actions {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
    }

    .footer-meta {
        justify-items: start;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .privacy-content {
        padding-block: 48px 92px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
