* {
    box-sizing: border-box;
}

html {
    font-family:
        "M PLUS Rounded 1c",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        "Yu Gothic",
        Meiryo,
        sans-serif;
}

body {
    margin: 0;
    background: #f7f7f7;
    color: #222;
}

a {
    color: inherit;
}

.app-shell {
    width: min(100%, 760px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 24px 18px 48px;
}

.site-header {
    padding: 8px 4px 28px;
}

.brand-logo {
    display: block;
    width: min(100%, 430px);
    text-decoration: none;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.tool-section+.tool-section {
    margin-top: 34px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;
    padding: 0 4px;
}

.section-heading h2 {
    margin: 0;
    font-size: 18px;
}

.section-icon {
    font-size: 20px;
}

.tool-grid {
    display: grid;
    gap: 10px;
}

.tool-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 12px;

    min-height: 82px;
    padding: 14px 16px;

    border: 1px solid #ddd;
    border-radius: 16px;

    background: #fff;

    color: #222;
    text-decoration: none;

    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        border-color 0.12s ease;
}

.tool-card:hover {
    border-color: #bbb;
    box-shadow: 0 5px 18px rgb(0 0 0 / 7%);
    transform: translateY(-1px);
}

.tool-card:focus-visible {
    outline: 3px solid #222;
    outline-offset: 3px;
}

.tool-card-icon {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    border-radius: 12px;

    background: #f2f2f2;

    font-size: 25px;
}

.tool-card-body h3 {
    margin: 0 0 3px;
    font-size: 17px;
}

.tool-card-body p {
    margin: 0;

    color: #666;

    font-size: 13px;
    line-height: 1.5;
}

.tool-card-arrow {
    color: #999;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
}

.site-footer {
    padding-top: 40px;

    color: #999;

    font-size: 12px;
    text-align: center;
}

@media (min-width: 640px) {
    .app-shell {
        padding-top: 40px;
    }

    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tool-card {
        min-height: 96px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tool-card {
        transition: none;
    }
}

.game-section {
    margin-top: 12px;
    margin-bottom: 36px;
    height: auto;
    min-height: 0;
}

.section-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #ff5a67;
}

.game-grid {
    display: grid;
    gap: 18px;
}

.game-card {
    overflow: hidden;

    border: 1px solid #e8e8e8;
    border-radius: 20px;

    background: #fff;

    color: #222;
    text-decoration: none;

    box-shadow: 0 6px 20px rgb(0 0 0 / 5%);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgb(0 0 0 / 9%);
}

.game-card:focus-visible {
    outline: 3px solid #222;
    outline-offset: 4px;
}

.game-visual {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 180px;
    padding: 22px;

    background:
        radial-gradient(circle at top left,
            rgb(255 226 230 / 90%),
            transparent 48%),
        #fff8f8;
}

.game-character {
    display: block;

    max-width: 72%;
    max-height: 150px;

    object-fit: contain;
}


.game-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 13px 16px 15px;

    font-size: 13px;
    font-weight: 700;
}

@media (min-width: 640px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .game-visual {
        min-height: 210px;
    }

    .game-character {
        max-width: 85%;
        max-height: 170px;
    }
}



.game-title-logo {
    position: absolute;
    right: 12px;
    bottom: 10px;

    width: auto;
    max-width: 42%;
    max-height: 54px;

    object-fit: contain;

    filter: drop-shadow(0 2px 3px rgb(255 255 255 / 95%));
}


.policy-header {
    margin-bottom: 28px;
}

.policy-back {
    color: #555;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.policy-back:hover {
    text-decoration: underline;
}

.policy-page {
    max-width: 720px;
}

.policy-page h1 {
    margin: 0 0 36px;

    font-size: clamp(26px, 6vw, 34px);
    line-height: 1.3;
}

.policy-page section {
    margin-bottom: 36px;
}

.policy-page h2 {
    margin: 0 0 14px;

    font-size: 18px;
    line-height: 1.5;
}

.policy-page p,
.policy-page li {
    color: #444;

    font-size: 15px;
    line-height: 1.9;
}

.policy-page ul {
    padding-left: 1.5em;
}

.policy-date {
    margin-top: 48px;

    color: #777;
    font-size: 13px;
}

.site-footer a {
    color: #888;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}


.game-section+.tool-section {
    margin-top: 0;
}

@media (max-width: 639px) {
    .game-section {
        margin-bottom: 28px;
    }
}

.feed-page {
    max-width: 720px;
}

.feed-page h1 {
    margin: 0;
    font-size: clamp(26px, 6vw, 34px);
}

.feed-list {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.feed-card {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;

    gap: 16px;

    padding: 16px 18px;

    border: 1px solid #ddd;
    border-radius: 18px;

    background: #fff;

    color: #222;
    text-decoration: none;

    box-shadow: 0 4px 14px rgb(0 0 0 / 4%);
}

.feed-card:hover {
    border-color: #bbb;
    box-shadow: 0 7px 20px rgb(0 0 0 / 7%);
}

.feed-card h2 {
    margin: 0 0 4px;
    font-size: 18px;
}

.feed-card p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}



.feed-card-body {
    min-width: 0;
}

.feed-arrow {
    color: #999;
    font-size: 22px;
}

.feed-icon {
    display: block;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;

    border-radius: 16px;
    object-fit: contain;
    background: #f5f5f5;
}

@media (max-width: 639px) {
    .feed-card {
        grid-template-columns: 52px 1fr auto;
    }

    .feed-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }
}

.game-stats-link {
    margin-top: 18px;
    border-color: #c9ded8;
    background: linear-gradient(135deg, #f4fffa, #f2fbff);
}

.game-stats-link .tool-card-icon {
    background: #dff3ed;
}

.record-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.record-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 58px;
    padding: 12px;
    border: 1px solid #c9ded8;
    border-radius: 16px;
    background: linear-gradient(135deg, #f4fffa, #f2fbff);
    color: #222;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease;
}

.record-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgb(0 0 0 / 7%);
}

.record-link:focus-visible {
    outline: 3px solid #222;
    outline-offset: 3px;
}


/* おはぎPUSHカード */
.game-title-logo.push-title-logo {
    right: 8px;
    bottom: 8px;
    width: 58%;
    max-width: none;
    max-height: 68px;
}

/* タブレットは2列 */
@media (min-width: 640px) and (max-width: 999px) {
    .game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* PCは4列 */
@media (min-width: 1000px) {
    .game-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
