:root {
    --color-text: #2b2b2b;
    --color-bg: #ffffff;
    --color-section-bg: #ececec;
    --color-footer-bg: #2e2e2e;
    --max-width: 1080px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Zen Maru Gothic", system-ui, sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Header ---------- */
.site-header {
    background-color: var(--color-bg);
}

.site-header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo img {
    height: 56px;
    width: auto;
}

.header-link {
    font-size: 2rem;
    color: var(--color-text);
    transition: opacity 0.2s ease;
}

.header-link:hover {
    opacity: 0.6;
}

/* ---------- Hero ---------- */
.hero {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ---------- Lineup ---------- */
.lineup {
    position: relative;
    background-color: var(--color-section-bg);
    padding: 2.5rem 1.5rem 4rem;
}

/* 上部のグラデーションの影 */
.lineup::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.22),
            rgba(0, 0, 0, 0.1),
            rgba(0, 0, 0, 0.04),
            rgba(0, 0, 0, 0));
    pointer-events: none;
}

.lineup__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.lineup__title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.game-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* WIP のときだけカード全体（メタ含む）に黒の半透明オーバーレイをかぶせる */
.game-card.is-wip::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.game-card__thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.game-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card__badge {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.4rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.game-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background-color: #ffffff;
}

.game-card__name {
    font-size: 1rem;
    font-weight: 500;
}

.game-card__platforms {
    display: flex;
    gap: 0.5rem;
    font-size: 1.05rem;
    color: #2b2b2b;
}

/* ---------- Policy ---------- */
.policy {
    position: relative;
    background-color: var(--color-section-bg);
    padding: 2.5rem 1.5rem 4rem;
}

/* 上部のグラデーションの影 */
.policy::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.22),
            rgba(0, 0, 0, 0.1),
            rgba(0, 0, 0, 0.04),
            rgba(0, 0, 0, 0));
    pointer-events: none;
}

.policy__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.policy__title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
}

.policy__card {
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    padding: 2.5rem 3rem;
}

.policy__card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.policy__card h3:first-child {
    margin-top: 0;
}

.policy__card p {
    margin-bottom: 0.25rem;
}

.policy__card ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 0.25rem;
}

.policy__card li {
    margin-bottom: 0.25rem;
}

.policy__date {
    text-align: right;
    font-size: 0.85rem;
    color: #767676;
    margin-bottom: 1rem;
}

.policy__intro {
    margin-bottom: 1.5rem;
}

/* ---------- Product ---------- */
.product {
    position: relative;
    background-color: var(--color-section-bg);
    padding: 2.5rem 1.5rem 4rem;
}

/* 上部のグラデーションの影 */
.product::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.22),
            rgba(0, 0, 0, 0.1),
            rgba(0, 0, 0, 0.04),
            rgba(0, 0, 0, 0));
    pointer-events: none;
}

.product__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.product__title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
}

.product__card {
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.product__screenshot {
    width: 320px;
    flex-shrink: 0;
    border-radius: 4px;
}

.product__description p {
    margin-bottom: 0.75rem;
}

.product__badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.product__badges img {
    width: 185px;
    max-width: 100%;
    height: auto;
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--color-footer-bg);
    color: #fff;
    padding: 3rem 1.5rem;
    text-align: center;
}

.footer-atla img {
    height: 56px;
    width: auto;
    margin: 0 auto;
    transition: opacity 0.2s ease;
}

.footer-atla:hover img {
    opacity: 0.7;
}

.footer-powered {
    font-family: "Lexend", sans-serif;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    color: #e6e6e6;
}

.footer-links {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.footer-links a {
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-copyright {
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: #cfcfcf;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .site-logo img {
        height: 44px;
    }

    .header-link {
        font-size: 1.6rem;
    }

    .lineup__title {
        font-size: 1.3rem;
    }

    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .policy__title {
        font-size: 1.3rem;
    }

    .policy__card {
        padding: 1.75rem 1.5rem;
    }

    .product__title {
        font-size: 1.3rem;
    }

    .product__card {
        flex-direction: column;
        padding: 1.75rem 1.5rem;
    }

    .product__screenshot {
        width: 100%;
    }
}
