:root {
    --page-bg: #f4f4f4;
    --surface: #ffffff;
    --text: #000000;
    --footer-bg: #4e4e4e;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    color: var(--text);
    font-family: Inter, "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
    background: var(--page-bg);
}

.site-shell {
    position: relative;
    min-height: 100vh;
    background: var(--page-bg);
    overflow: hidden;
}

.site-header {
    height: 72px;
    background: var(--surface);
    display: flex;
    align-items: center;
    padding: 0 19px;
}

.site-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.site-main {
    min-height: calc(100vh - 152px);
    padding: 27px 24px 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-main h2 {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.app-card {
    width: 277px;
    height: 205px;
    margin-top: 56px;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background: var(--surface);
    color: var(--text);
    text-align: center;
    text-decoration: none;
}

.app-card__preview {
    display: block;
    width: 277px;
    height: 151px;
    overflow: hidden;
    background: #d9d9d9;
}

.app-card__preview img {
    display: block;
    width: 278px;
    height: 393px;
    object-fit: cover;
    object-position: top left;
    max-width: none;
}

.app-card__title {
    display: block;
    margin-top: 13px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.site-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 80px;
    background: var(--footer-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer img {
    display: block;
    width: 85px;
    height: 36px;
    object-fit: contain;
}

@media (min-height: 900px) and (min-width: 900px) {
    .site-shell {
        min-height: 900px;
    }

    .site-main {
        min-height: 748px;
        padding-top: 27px;
    }
}

@media (max-width: 520px) {
    .site-header {
        height: 64px;
        padding: 0 16px;
    }

    .site-header h1 {
        font-size: 20px;
    }

    .site-main {
        min-height: calc(100vh - 144px);
        padding: 32px 16px 112px;
    }

    .site-main h2 {
        font-size: 30px;
    }

    .app-card {
        margin-top: 40px;
    }
}