:root {
    --bg: #f8fbf7;
    --card: #ffffff;
    --main: #58b894;
    --main-dark: #2e816a;
    --blue: #4c8cc4;
    --blue-dark: #2b628f;
    --yellow: #ffd95a;
    --accent: #ffb347;
    --text: #263238;
    --muted: #667985;
    --soft-green: #e9f8f1;
    --soft-orange: #fff2d9;
    --soft-blue: #eaf5ff;
    --shadow: 0 14px 32px rgba(38, 50, 56, 0.11);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 217, 90, 0.28), transparent 28%),
        radial-gradient(circle at 86% 2%, rgba(88, 184, 148, 0.22), transparent 30%),
        linear-gradient(180deg, #fffdf6 0%, var(--bg) 42%, #f4f9ff 100%);
    color: var(--text);
    line-height: 1.7;
}

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

.page {
    max-width: 560px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 18px 16px 86px;
}

/* header */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 950;
}

.logo-mark {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #dff8ef, #fff1d6);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.domain {
    font-size: 13px;
    color: var(--muted);
    font-weight: 800;
}

.parent-link {
    background: #fff;
    color: var(--main-dark);
    border-radius: 999px;
    padding: 9px 12px;
    font-weight: 950;
    box-shadow: 0 6px 16px rgba(38, 50, 56, 0.08);
    white-space: nowrap;
    font-size: 13px;
}

/* hero */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 24% 12%, rgba(255, 217, 90, 0.34), transparent 32%),
        radial-gradient(circle at 82% 38%, rgba(76, 140, 196, 0.16), transparent 34%),
        #ffffff;
    border-radius: 34px;
    padding: 24px 22px 22px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.hero::after {
    content: "";
    position: absolute;
    right: -55px;
    bottom: -74px;
    width: 220px;
    height: 220px;
    background: rgba(76, 140, 196, 0.08);
    border-radius: 50%;
}

.hero-badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--soft-orange);
    color: #916000;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 950;
    margin-bottom: 8px;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 12px;
    align-items: end;
}

.hero-copy {
    position: relative;
    z-index: 3;
    padding-bottom: 0;
}

h1 {
    font-size: 32px;
    line-height: 1.25;
    margin: 0 0 6px;
    letter-spacing: -0.045em;
}

.hero-lead {
    margin: 0;
    color: var(--muted);
    font-weight: 850;
    font-size: 14px;
}

.kikirin-stage {
    position: relative;
    min-height: 270px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.kikirin-image {
    position: relative;
    z-index: 1;
    width: 205px;
    max-width: none;
    filter: drop-shadow(0 14px 14px rgba(38, 50, 56, 0.13));
    transform: translateX(4px);
}

/* buttons */

.hero-buttons {
    position: relative;
    z-index: 5;
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.primary-button,
.secondary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 60px;
    border-radius: 22px;
    font-size: 18px;
    font-weight: 950;
    transition: transform 0.15s ease;
}

.primary-button {
    background: linear-gradient(135deg, var(--main), #44a6a0);
    color: #fff;
    box-shadow: 0 12px 22px rgba(76, 175, 143, 0.28);
}

.secondary-button {
    background: #fff;
    color: var(--blue-dark);
    border: 2px solid var(--soft-blue);
}

.primary-button:active,
.secondary-button:active,
.content-card:active,
.nakama-card:active {
    transform: scale(0.98);
}

/* common */

section {
    margin-top: 26px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
    margin-bottom: 10px;
}

h2 {
    font-size: 20px;
    margin: 0;
    line-height: 1.3;
}

.section-note {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

/* nakama */

.nakama-section {
    margin-top: 18px;
}

.nakama-head {
    align-items: center;
}

.section-kicker {
    margin: 0 0 3px;
    color: var(--main-dark);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.13em;
}

.nakama-list {
    display: grid;
    gap: 12px;
}

.nakama-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 13px;
    align-items: center;
    min-height: 132px;
    border-radius: 28px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(38, 50, 56, 0.08);
    overflow: hidden;
    position: relative;
    transition: transform 0.15s ease;
}

.nakama-card::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -46px;
    width: 126px;
    height: 126px;
    border-radius: 999px;
    opacity: 0.42;
}

.kikirin-card {
    background: linear-gradient(135deg, #fff8e6, #ffffff 72%);
}

.kikirin-card::after {
    background: var(--soft-orange);
}

.sora-card {
    background: linear-gradient(135deg, #eef7ff, #ffffff 72%);
}

.sora-card::after {
    background: var(--soft-blue);
}

.ama-card {
    background: linear-gradient(135deg, #edf9f2, #ffffff 72%);
}

.ama-card::after {
    background: var(--soft-green);
}

.nakama-image-wrap {
    width: 92px;
    height: 108px;
    display: grid;
    place-items: end center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.nakama-image {
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 8px rgba(38, 50, 56, 0.12));
}

.kikirin-mini {
    width: 106px;
    max-width: none;
    transform: translateY(8px);
}

.cat-mini {
    width: 86px;
    height: 86px;
}

.nakama-text {
    position: relative;
    z-index: 1;
}

.nakama-role {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 950;
    margin-bottom: 5px;
}

.kikirin-card .nakama-role {
    background: var(--soft-orange);
    color: #916000;
}

.sora-card .nakama-role {
    background: var(--soft-blue);
    color: var(--blue-dark);
}

.ama-card .nakama-role {
    background: var(--soft-green);
    color: var(--main-dark);
}

.nakama-text h3 {
    margin: 0 0 4px;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 950;
}

.nakama-text p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.55;
}

.nakama-quote {
    display: inline-block;
    margin-top: 7px;
    color: var(--text);
    font-size: 12px;
    font-weight: 950;
}

/* cards */

.card-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 3px 2px 12px;
    scroll-snap-type: x mandatory;
}

.card-row::-webkit-scrollbar {
    display: none;
}

.content-card {
    flex: 0 0 148px;
    min-height: 154px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 22px rgba(38, 50, 56, 0.08);
    padding: 16px;
    scroll-snap-align: start;
}

.content-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 28px;
    margin-bottom: 12px;
}

.green {
    background: var(--soft-green);
}

.orange {
    background: var(--soft-orange);
}

.blue {
    background: var(--soft-blue);
}

.content-card strong {
    display: block;
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 6px;
}

.content-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.5;
}

/* parent */

.mini-parent-area {
    background: #fff;
    border-radius: 30px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.mini-parent-area p {
    margin: 8px 0 16px;
    color: var(--muted);
    font-weight: 750;
    font-size: 14px;
}

.sub-button {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    border-radius: 18px;
    border: 2px solid var(--main);
    color: var(--main-dark);
    font-weight: 950;
    background: #fff;
}

/* footer */

footer {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-top: 34px;
}

/* bottom nav */

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: min(448px, calc(100% - 28px));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    box-shadow: 0 10px 28px rgba(38, 50, 56, 0.14);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 8px;
    z-index: 10;
}

.bottom-nav a {
    text-align: center;
    border-radius: 18px;
    padding: 8px 4px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 950;
}

.bottom-nav a:first-child {
    background: var(--soft-green);
    color: var(--main-dark);
}

/* mobile */

@media (max-width: 470px) {
    .page {
        max-width: 480px;
        padding-left: 16px;
        padding-right: 16px;
    }

    header {
        margin-bottom: 14px;
    }

    .hero {
        padding: 20px 18px 18px;
    }

    .hero-badge {
        margin-bottom: 6px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) 132px;
        gap: 8px;
        align-items: end;
    }

    h1 {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .hero-copy {
        padding-bottom: 0;
    }

    .hero-lead {
        font-size: 13px;
    }

    .kikirin-stage {
        min-height: 250px;
    }

    .kikirin-image {
        width: 145px;
        transform: translateX(6px);
    }

    .hero-buttons {
        margin-top: 16px;
    }
}

@media (max-width: 390px) {
    .page {
        padding-left: 12px;
        padding-right: 12px;
    }

    header {
        gap: 8px;
    }

    .logo-mark {
        width: 48px;
        height: 48px;
    }

    .parent-link {
        font-size: 12px;
        padding: 8px 10px;
    }

    .hero {
        padding: 18px 16px 18px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) 116px;
        gap: 6px;
    }

    h1 {
        font-size: 25px;
        margin-bottom: 5px;
    }

    .hero-lead {
        font-size: 13px;
        line-height: 1.65;
    }

    .kikirin-stage {
        min-height: 225px;
    }

    .kikirin-image {
        width: 128px;
        transform: translateX(5px);
    }

    .primary-button,
    .secondary-button {
        font-size: 16px;
    }

    .nakama-card {
        grid-template-columns: 82px 1fr;
    }

    .nakama-image-wrap {
        width: 82px;
        height: 100px;
    }
}