/*
 * mannen_kazoe_demo.css
 * 満年齢と数え年の違いとは｜基準日を動かして差が生まれる瞬間を確認する体験デモ
 * 既存クラスと衝突しないよう mnk- を接頭辞にしています。
 */

#mnk-demo {
    box-sizing: border-box;
    margin: 1.6rem 0;
    padding: 1.2rem 1.2rem 1.6rem;
    background: #f5fbf7;
    border: 1px solid var(--pt-green-border, #bfe3cd);
    border-radius: 1rem;
    scroll-margin-top: 90px;
}

#mnk-demo *,
#mnk-demo *::before,
#mnk-demo *::after {
    box-sizing: border-box;
}

.mnk-demo__head {
    text-align: center;
    margin-bottom: 1.2rem;
}

.mnk-demo__badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    background: var(--pt-green, #1f8a5c);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.6rem;
}

.mnk-demo__title {
    margin: 0.4rem auto 0;
    max-width: 32rem;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.6;
    color: #12233f;
}

.mnk-demo__lead {
    margin: 0.5rem auto 0;
    max-width: 34rem;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.8;
}

.mnk-demo__form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.mnk-demo__field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.mnk-demo__field label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #333;
}

.mnk-demo__field input[type="date"] {
    padding: 0.5rem 0.7rem;
    border: 1px solid #ccd3da;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    background: #fff;
}

.mnk-demo__result {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 0.8rem;
}

.mnk-demo__result-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem 0.8rem;
    border-radius: 0.8rem;
    background: #fff;
    border: 1px solid var(--pt-green-border, #bfe3cd);
    text-align: center;
}

.mnk-demo__result-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--pt-green-dark, #145c3d);
}

.mnk-demo__result-value {
    font-size: 2.1rem;
    font-weight: 800;
    color: #12233f;
    line-height: 1.2;
}

.mnk-demo__result-desc {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.5;
}

.mnk-demo__note {
    margin: 0.6rem auto 0;
    max-width: 34rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.6rem;
    background: #fff;
    border: 1px dashed var(--pt-green-border, #bfe3cd);
    font-size: 0.85rem;
    line-height: 1.7;
    color: #333;
    text-align: center;
}

@media (max-width: 30rem) {
    .mnk-demo__result {
        grid-template-columns: 1fr;
    }

    .mnk-demo__result-value {
        font-size: 1.8rem;
    }
}
