@charset "UTF-8";
    * {
        box-sizing: border-box;
    }

    body {
        margin: 0;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        background: #f7f7f8;
        color: #222;
        line-height: 1.7;
    }

    header {
        background: linear-gradient(135deg, #ff7aa2, #ffb36b);
        color: white;
        padding: 48px 16px;
        text-align: center;
    }

    header h1 {
        margin: 0 0 12px;
        font-size: 32px;
    }

    header p {
        margin: 0;
        font-size: 16px;
    }

    main {
        max-width: 960px;
        margin: 0 auto;
        padding: 24px 16px 60px;
    }

    section {
        background: white;
        border-radius: 16px;
        padding: 24px;
        margin-bottom: 24px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    }

    h2 {
        margin-top: 0;
        font-size: 24px;
    }

    h3 {
        margin-bottom: 8px;
    }

    .lead {
        font-size: 17px;
    }

    .form-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .field {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    label {
        font-weight: 700;
    }

    select,
    input {
        width: 100%;
        padding: 11px;
        border: 1px solid #ccc;
        border-radius: 10px;
        font-size: 16px;
        background: white;
    }

    .button-area {
        text-align: center;
        margin-top: 24px;
    }

    button {
        appearance: none;
        border: 0;
        border-radius: 999px;
        background: #ff6f91;
        color: white;
        font-size: 18px;
        font-weight: 700;
        padding: 14px 36px;
        cursor: pointer;
    }

    button:hover {
        background: #ff527b;
    }

    .result {
        display: none;
    }

    .result.is-show {
        display: block;
    }

    .score-cards {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
        margin-top: 20px;
    }

    .score-card {
        border: 1px solid #eee;
        border-radius: 16px;
        padding: 20px;
        text-align: center;
        background: #fffafa;
    }

    .score-title {
        font-weight: 700;
        font-size: 15px;
    }

    .score-value {
        font-size: 36px;
        font-weight: 800;
        margin: 8px 0;
        color: #ff6f91;
    }

    .score-rank {
        font-size: 20px;
        font-weight: 800;
    }

    .type-box {
        margin-top: 24px;
        padding: 20px;
        border-radius: 16px;
        background: #fff4f7;
        border-left: 6px solid #ff6f91;
    }

    .advice-list {
        padding-left: 1.2em;
    }

    .note {
        font-size: 13px;
        color: #666;
    }

    footer {
        text-align: center;
        color: #777;
        padding: 32px 16px;
        font-size: 13px;
    }

    @media (max-width: 760px) {
        header h1 {
            font-size: 26px;
        }

        .form-grid,
        .score-cards {
            grid-template-columns: 1fr;
        }

        section {
            padding: 20px;
        }

        .male-only.is-show,
        .female-only.is-show {
            grid-template-columns: 1fr;
        }
    }

    .radar-wrap {
        margin-top: 24px;
        text-align: center;
    }

    #radarChart {
        max-width: 100%;
        background: #fff;
        border-radius: 16px;
    }

    .circle-gauge {
        width: 132px;
        height: 132px;
        margin: 14px auto 0;
    }

    .circle-gauge svg {
        width: 100%;
        height: 100%;
        transform: rotate(-90deg);
    }

    .gauge-bg {
        fill: none;
        stroke: #eeeeee;
        stroke-width: 12;
    }

    .gauge-bar {
        fill: none;
        stroke: #ff6f91;
        stroke-width: 12;
        stroke-linecap: round;
        stroke-dasharray: 326.73;
        stroke-dashoffset: 326.73;
        transition: stroke-dashoffset 0.9s ease;
    }

    .male-only,
    .female-only {
        display: none;
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .male-only.is-show,
    .female-only.is-show {
        display: grid;
    }

    .step-nav {
        display: flex;
        gap: 8px;
        margin-bottom: 20px;
    }

    .step-tab {
        flex: 1;
        padding: 10px;
        border-radius: 999px;
        background: #eee;
        text-align: center;
        font-weight: 700;
        font-size: 14px;
    }

    .step-tab.is-active {
        background: #ff6f91;
        color: white;
    }

    .form-step {
        display: none;
    }

    .form-step.is-active {
        display: contents;
    }

    .step-buttons {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 24px;
    }

    .secondary-btn {
        background: #aaa;
    }

    .age-compare-box {
        margin-top: 20px;
        padding: 18px;
        border-radius: 16px;
        background: #fff8ec;
        border-left: 6px solid #ffb36b;
    }

    .age-compare-main {
        font-size: 24px;
        font-weight: 800;
        color: #ff6f91;
    }

    .seo-block h3 {
        margin-top: 28px;
    }

    .step-tab {
        cursor: pointer;
    }

    [hidden] {
        display: none !important;
    }

    .result-theme-s {
        --result-color: #d9a441;
    }

    .result-theme-a {
        --result-color: #ff6f91;
    }

    .result-theme-b {
        --result-color: #4f8cff;
    }

    .result-theme-c {
        --result-color: #8a8a8a;
    }

    .result-theme-d,
    .result-theme-e {
        --result-color: #666;
    }

    .result.is-show .score-value,
    .result.is-show .age-compare-main {
        color: var(--result-color, #ff6f91);
    }

    .result.is-show .type-box {
        border-left-color: var(--result-color, #ff6f91);
    }

    .result.is-show .gauge-bar {
        stroke: var(--result-color, #ff6f91);
    }

    .share-area {
        margin-top: 24px;
        text-align: center;
    }

    .share-card-preview {
        display: none;
    }

    .share-buttons {
        display: flex;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 12px;
    }

    .share-buttons a,
    .share-buttons button {
        text-decoration: none;
        display: inline-block;
    }

    .result-hero {
        margin-top: 20px;
        padding: 28px;
        border-radius: 24px;
        background: linear-gradient(135deg, var(--result-color, #ff6f91), #ffb36b);
        color: white;
        text-align: center;
    }

    .result-hero-label {
        font-size: 16px;
        font-weight: 700;
        opacity: 0.9;
    }

    .result-hero-title {
        font-size: 42px;
        font-weight: 900;
        line-height: 1.25;
        margin: 8px 0;
    }

    .result-hero-text {
        max-width: 760px;
        margin: 12px auto 0;
        text-align: left;
    }

    .tag-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding-left: 0;
        list-style: none;
    }

    .tag-list li {
        padding: 8px 14px;
        border-radius: 999px;
        background: var(--result-color, #ff6f91);
        color: white;
        font-weight: 700;
    }

    .method-bar-item {
        margin-bottom: 16px;
    }

    .method-bar-head {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        font-weight: 700;
    }

    .method-bar {
        height: 12px;
        margin: 8px 0;
        border-radius: 999px;
        background: #eee;
        overflow: hidden;
    }

    .method-bar-fill {
        height: 100%;
        width: 0;
        border-radius: 999px;
        background: var(--result-color, #ff6f91);
        transition: width 0.8s ease;
    }

    .danger-stars {
        font-size: 28px;
        letter-spacing: 4px;
        color: var(--result-color, #ff6f91);
        font-weight: 900;
    }

    .deviation-score {
        font-size: 46px;
        font-weight: 900;
        color: var(--result-color, #ff6f91);
    }

    @media (max-width: 760px) {
        .result-hero-title {
            font-size: 30px;
        }
    }

    .loading-box {
        margin-top: 24px;
        text-align: center;
        color: #ff6f91;
        font-weight: 700;
    }

    .loading-spinner {
        width: 42px;
        height: 42px;
        margin: 0 auto 10px;
        border: 5px solid #ffe0e8;
        border-top-color: #ff6f91;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    .retry-area {
    margin-top: 24px;
    text-align: center;
}
.age-compare-main {
    line-height: 1.3;
}

.age-compare-main {
  line-height: 1.35;
}

.age-compare-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--result-color, #ff6f91);
  color: #fff;
  font-size: 16px;
}

.service-box {
    margin-top: 24px;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    border: 2px solid #ffe1ea;
}

.service-cards {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.service-card {
    display: block;
    padding: 16px;
    border-radius: 14px;
    background: #fff7fa;
    text-decoration: none;
    color: #222;
    border: 1px solid #ffd5e2;
    transition: 0.2s;
}

.service-card:hover {
    transform: translateY(-2px);
}

.service-title {
    font-weight: 800;
    font-size: 18px;
    color: #ff6f91;
}

.service-desc {
    margin-top: 8px;
    font-size: 14px;
}

.service-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ff6f91;
    color: white;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
}

.site-footer {
    margin-top: 40px;
    padding: 32px 16px;
    text-align: center;
    color: #777;
    font-size: 13px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ff6f91;
}

.footer-note {
    max-width: 720px;
    margin: 0 auto 14px;
    line-height: 1.7;
}

.footer-copy {
    opacity: 0.8;
}

.service-card {
    overflow: hidden;
}
.service-image {
    width: 100%;
    height: 180px;
object-fit: contain;
background: white;

    border-radius: 12px;
    margin-bottom: 10px;
    display: block;
}