@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@500;700;900&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

:root {
    --bg: #EFF6F4;
    --card: #FFFFFF;
    --ink: #2B3A55;
    --coral: #F2785C;
    --yellow: #FFC857;
    --lavender: #B8A9E0;
    --line: #DCE7E4;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    background-image: radial-gradient(var(--line) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    color: var(--ink);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    line-height: 1.7;
}

h1, h2, h3, .display {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 900;
}

.wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

header.site {
    text-align: center;
    margin-bottom: 28px;
}

header.site .eyebrow {
    display: inline-block;
    background: var(--yellow);
    color: var(--ink);
    font-weight: 700;
    font-size: 13px;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
}

header.site h1 {
    font-size: 28px;
    margin: 0 0 8px;
}

header.site p {
    margin: 0;
    color: #5A6B87;
    font-size: 14px;
}

/* --- 足あとプログレス --- */
.paw-trail {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 24px 0;
}

.paw {
    width: 18px;
    height: 18px;
    border-radius: 50% 50% 50% 60% / 55% 55% 45% 45%;
    background: var(--line);
    position: relative;
    transition: background 0.3s ease, transform 0.3s ease;
}

.paw.done {
    background: var(--coral);
    transform: translateY(-3px);
}

/* --- カード --- */
.card {
    background: var(--card);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 10px 30px rgba(43, 58, 85, 0.08);
}

.q-text {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 20px;
}

.choice {
    display: block;
    width: 100%;
    text-align: left;
    background: #FBFAF7;
    border: 2px solid var(--line);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 12px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.1s ease;
}

.choice:hover {
    border-color: var(--coral);
    background: #FFF3EF;
}

.choice:active {
    transform: scale(0.98);
}

.age-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--line);
    border-radius: 14px;
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background: var(--coral);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Zen Maru Gothic', sans-serif;
    cursor: pointer;
    width: 100%;
}

.btn:disabled {
    background: var(--line);
    cursor: not-allowed;
}

.step { display: none; }
.step.active { display: block; }

/* --- 結果ページ --- */
.result-hero {
    text-align: center;
    padding: 8px 0 20px;
}

.result-badge {
    display: inline-block;
    background: var(--lavender);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.result-name {
    font-size: 32px;
    margin: 0 0 12px;
}

.trait-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 16px 0 24px;
}

.trait-chip {
    background: #FBFAF7;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
}

.book-box {
    background: #FFFBF2;
    border: 2px dashed var(--yellow);
    border-radius: 16px;
    padding: 18px;
    margin-top: 12px;
}

.book-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 14px;
}

.book-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    text-decoration: none;
    color: var(--ink);
    font-size: 12px;
    text-align: center;
}

.book-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 6px;
}

footer.site {
    text-align: center;
    margin-top: 40px;
    font-size: 12px;
    color: #8896AC;
}
