/* ========================================================
   しゃがむ年齢診断アプリ 共通CSS v1.0
   v5.4モックから移植、温かいトーン(クリーム×ネイビー×マスタード)
======================================================== */

/* ====== カラーパレット ====== */
:root {
    --navy:         #1E2A3A;
    --navy-soft:    #2C3E50;
    --yellow:       #F4B942;
    --yellow-deep:  #E5A52E;
    --yellow-soft:  #FFF3D6;
    --cream:        #FAF7F0;
    --cream-deep:   #F5EFE0;
    --text:         #2C3E50;
    --gray:         #7A8290;
    --line:         #E8E0CC;
    --light:        #ffffff;
    --danger:       #D9534F;
    --success:      #7CB342;
}

/* ====== リセット ====== */
* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
    background: var(--cream);
    color: var(--text);
    font-weight: 500;
    -webkit-text-size-adjust: 100%;
    overscroll-behavior-y: contain;
}

a {
    color: var(--navy);
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
}

/* チェックボックス・ラジオの初期スタイル隠し */
input[type="checkbox"],
input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* ====== アプリ画面コンテナ ====== */
.app-screen {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

/* ====== ヘッダー(各画面共通) ====== */
.app-header {
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-logo-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-logo-icon svg {
    width: 100%;
    height: 100%;
}

.app-logo-text {
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: var(--navy);
    line-height: 1.1;
}

.app-progress {
    font-size: 0.72rem;
    color: var(--gray);
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ====== bodyエリア ====== */
.app-body {
    flex: 1;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
}

.app-body h2 {
    font-size: 1.55rem;
    font-weight: 900;
    margin: 0 0 16px;
    line-height: 1.5;
    color: var(--navy);
    letter-spacing: 0.01em;
}

.app-body p {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text);
    margin: 0 0 8px;
}

.app-body .small {
    font-size: 0.78rem;
    color: var(--gray);
}

/* ====== ボタン ====== */
.btn-app {
    display: block;
    width: 100%;
    padding: 18px;
    border-radius: 100px;
    font-weight: 900;
    font-size: 1.05rem;
    text-align: center;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
    transition: 0.2s;
    font-family: inherit;
    text-decoration: none;
}

.btn-app:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-yellow {
    background: var(--yellow);
    color: var(--navy);
    box-shadow: 0 6px 20px rgba(244, 185, 66, 0.35);
}

.btn-yellow:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-yellow .arrow {
    display: inline-block;
    margin-left: 8px;
    font-weight: 900;
}

.btn-navy {
    background: var(--navy);
    color: white;
}

.btn-outline {
    background: var(--cream);
    border: 2px solid var(--line);
    color: var(--text);
}

/* ====== TOP画面 ====== */
.top-screen {
    background: var(--cream);
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 36px 28px;
    min-height: 100vh;
    min-height: 100dvh;
}

.top-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.top-header svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.top-header-text {
    font-weight: 900;
    font-size: 0.95rem;
    color: var(--navy);
    line-height: 1.2;
}

.top-hero {
    background: linear-gradient(180deg, var(--cream-deep) 0%, var(--cream) 100%);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 20px;
}

.top-character {
    margin: 0 auto 16px;
    width: 110px;
    height: 110px;
    display: block;
}

.top-screen h1 {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.45;
    margin: 0 0 14px;
    color: var(--navy);
}

.top-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px auto;
}

.top-divider .line {
    width: 30px;
    height: 1px;
    background: var(--navy);
    opacity: 0.3;
}

.top-divider .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
}

.top-subtitle {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.9;
    margin: 0 0 22px;
}

.top-subtitle .accent {
    color: var(--navy);
    font-weight: 900;
}

.top-cta-text {
    font-size: 0.78rem;
    color: var(--gray);
    text-align: center;
    margin-top: 12px;
}

.top-tease {
    background: white;
    border: 2px solid var(--yellow);
    border-radius: 18px;
    padding: 18px 16px;
    margin-bottom: 22px;
    text-align: center;
}

.top-tease-label {
    font-size: 0.72rem;
    color: var(--gray);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.top-tease-text {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.5;
}

.top-tease-sub {
    font-size: 0.78rem;
    color: var(--gray);
    margin-top: 6px;
    line-height: 1.6;
}

.top-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.top-footer-label {
    font-size: 0.7rem;
    color: var(--gray);
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 8px;
}

.top-footer-text {
    font-size: 0.78rem;
    color: var(--gray);
    line-height: 1.7;
}

.top-footer-link {
    color: var(--navy);
    text-decoration: underline;
    font-weight: 700;
}

/* ====== 安全確認 ====== */
.gentle-intro {
    background: white;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.gentle-intro-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.gentle-intro-text {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text);
}

.checks {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 4px 18px;
    margin-bottom: 20px;
}

.check-item {
    display: flex;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
}

.check-item:last-child {
    border-bottom: none;
}

.check-box {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #c5beae;
    border-radius: 6px;
    margin-right: 12px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 900;
    color: white;
    background: white;
    flex-shrink: 0;
}

.check-item input:checked + .check-box {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--navy);
}

.check-item input:checked + .check-box::after {
    content: "✓";
}

.check-text {
    font-size: 0.88rem;
    line-height: 1.7;
    font-weight: 500;
    color: var(--text);
    flex: 1;
}

.check-title {
    display: block;
    color: var(--navy);
    font-size: 0.82rem;
    margin-bottom: 4px;
    font-weight: 900;
}

.check-sub {
    font-size: 0.82rem;
    color: var(--gray);
}

.check-sub-inline {
    font-size: 0.82rem;
    color: var(--text);
}

.check-detail {
    display: block;
    font-size: 0.78rem;
    color: var(--text);
    margin-top: 6px;
    line-height: 1.7;
}

/* ====== 基本情報 ====== */
.form-block {
    margin-bottom: 24px;
    background: white;
    border-radius: 16px;
    padding: 22px 20px;
    border: 1px solid var(--line);
}

.form-block label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
    letter-spacing: 0.08em;
}

.age-input-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.age-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--cream);
    border: 2px solid var(--line);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}

.age-btn:active {
    background: var(--yellow-soft);
    border-color: var(--yellow);
}

.age-input-box {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 140px;
    justify-content: center;
}

.age-number-input {
    font-size: 4rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1;
    width: 130px;
    text-align: center;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    padding: 0;
}

.age-unit {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray);
}

.gender-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.gender-btn {
    padding: 14px 6px;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: var(--cream);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text);
    text-align: center;
    display: block;
}

.gender-btn.active {
    border-color: var(--yellow);
    background: var(--yellow-soft);
    color: var(--navy);
}

/* ====== 生活習慣質問(Q1-Q4) ====== */
.question-num {
    display: inline-block;
    background: var(--yellow);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.lifestyle-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lifestyle-option {
    padding: 18px;
    background: white;
    border: 2px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    display: block;
}

.lifestyle-option.active {
    border-color: var(--yellow);
    background: var(--yellow-soft);
    color: var(--navy);
}

/* ====== 実技テスト導入 ====== */
.test-intro-list {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px 20px;
    margin-bottom: 18px;
}

.test-intro-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    gap: 14px;
}

.test-intro-item:last-child {
    border-bottom: none;
}

.test-intro-num {
    width: 28px;
    height: 28px;
    background: var(--yellow);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.test-intro-text {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--navy);
}

.test-intro-element {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray);
    margin-top: 2px;
}

.test-intro-time {
    font-size: 0.72rem;
    color: var(--gray);
    font-weight: 700;
}

/* ====== 実技テスト(T1-T5)共通 ====== */
.test-label {
    display: inline-block;
    background: var(--navy);
    color: white;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-bottom: 14px;
}

.test-illust {
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
}

.test-illust .icon-area {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.test-illust .desc {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
}

.test-instruct {
    background: var(--yellow-soft);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 18px;
    font-size: 0.87rem;
    font-weight: 500;
    line-height: 1.9;
    color: var(--navy);
}

.test-instruct .step-num {
    display: inline-block;
    background: var(--yellow);
    color: var(--navy);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    font-weight: 900;
    font-size: 0.72rem;
    line-height: 20px;
    margin-right: 8px;
}

.select-hint {
    padding: 8px 12px;
    background: var(--cream-deep);
    border-radius: 8px;
    font-size: 0.72rem;
    color: var(--navy);
    margin-bottom: 14px;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.answer-option {
    padding: 16px 18px;
    background: white;
    border: 2px solid var(--line);
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    color: var(--text);
}

.answer-option .opt-mark {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: var(--line);
    margin-right: 12px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
    color: white;
    flex-shrink: 0;
}

.answer-option.active {
    border-color: var(--yellow);
    background: var(--yellow-soft);
}

.answer-option.active .opt-mark {
    background: var(--yellow);
    color: var(--navy);
}

.answer-option.active .opt-mark::after {
    content: "✓";
}

.answer-option > span:not(.opt-mark):not(.opt-icon):not(.opt-icon-warn):not(.opt-text-block) {
    flex: 1;
    line-height: 1.5;
}

/* T1 選択肢の主・副テキスト */
.opt-text-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.opt-main {
    font-size: 0.92rem;
    font-weight: 700;
}

.opt-sub {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--gray);
    margin-top: 3px;
}

.opt-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    margin-left: 8px;
}

.opt-icon-warn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* ====== T3 計測中画面 ====== */
.t3-count-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}

.timer-area {
    margin: 30px 0;
}

.timer-big-num {
    font-size: 8rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.timer-big-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray);
    letter-spacing: 0.15em;
}

.timer-info {
    background: var(--yellow-soft);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.timer-info-voice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.timer-voice-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
}

.timer-tip-main {
    font-size: 0.82rem;
    color: var(--navy);
    margin: 0 0 6px;
    line-height: 1.8;
    font-weight: 700;
}

.timer-tip-sub {
    font-size: 0.78rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.7;
}

.timer-auto-note {
    text-align: center;
    padding: 10px;
    background: var(--cream-deep);
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--navy);
    margin-top: 6px;
}

/* ====== 痛みアンケート ====== */
.symptoms-title {
    font-size: 1.3rem !important;
    line-height: 1.6 !important;
}

.pain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.pain-item {
    padding: 16px;
    background: white;
    border: 2px solid var(--line);
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    text-align: center;
    cursor: pointer;
    color: var(--text);
    display: block;
}

.pain-item.active {
    border-color: var(--danger);
    background: #FCE4E4;
    color: var(--danger);
}

.pain-item-wide {
    grid-column: 1 / -1;
}

/* ====== 結果画面 ====== */
.result-body {
    padding: 0 24px 28px;
}

.result-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #2A3B52 100%);
    color: white;
    border-radius: 24px;
    padding: 36px 24px;
    text-align: center;
    margin: 0 -24px 18px;
}

.result-label {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--yellow);
    font-weight: 700;
    margin-bottom: 12px;
}

.result-age-label {
    font-size: 1rem;
    margin-bottom: 4px;
    opacity: 0.9;
}

.result-age-number {
    font-size: 7rem;
    font-weight: 900;
    color: var(--yellow);
    line-height: 1;
    margin: 4px 0 8px;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.result-age-number .age-num-unit {
    font-size: 1.6rem;
    color: white;
    margin-left: 8px;
}

.result-diff-big {
    background: var(--yellow);
    color: var(--navy);
    display: inline-block;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 1.3rem;
    font-weight: 900;
    margin-top: 12px;
}

.result-diff-big.diff-old {
    background: var(--cream-deep);
    color: var(--gray);
}

.result-diff-big.diff-equal {
    background: white;
    color: var(--navy);
}

.result-actual {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 12px;
}

.result-note {
    font-size: 0.72rem;
    background: var(--yellow-soft);
    color: var(--navy-soft);
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
    font-weight: 500;
}

.subscore-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray);
    letter-spacing: 0.1em;
    margin: 0 0 12px;
}

.radar-container {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.radar-chart {
    width: 100%;
    height: auto;
    display: block;
}

.subscore-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.subscore-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.subscore-info {
    flex: 0 0 90px;
}

.subscore-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.subscore-sub {
    font-size: 0.65rem;
    color: var(--gray);
}

.subscore-bar-wrap {
    flex: 1;
}

.subscore-bar {
    height: 6px;
    background: var(--line);
    border-radius: 3px;
    overflow: hidden;
}

.subscore-bar-fill {
    height: 100%;
    background: var(--yellow);
    border-radius: 3px;
    transition: width 0.6s ease-out;
}

.subscore-value {
    flex: 0 0 50px;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--navy);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.share-btn {
    padding: 14px;
    background: white;
    border: 2px solid var(--line);
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    color: var(--text);
    text-decoration: none;
    display: block;
}

.event-banner {
    background: var(--navy);
    color: white;
    padding: 14px 16px;
    border-radius: 14px;
    text-align: center;
    margin-top: 14px;
}

.event-banner-label {
    font-size: 0.68rem;
    color: var(--yellow);
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 4px;
}

.event-banner-text {
    font-size: 0.85rem;
    font-weight: 700;
}

.research-info {
    margin-top: 28px;
    padding: 18px 16px;
    background: var(--cream-deep);
    border-radius: 14px;
}

.research-info-label {
    font-size: 0.7rem;
    color: var(--gray);
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 8px;
}

.research-info-text {
    font-size: 0.78rem;
    color: var(--text);
    line-height: 1.8;
}

.research-info-link {
    color: var(--navy);
    text-decoration: underline;
    font-weight: 700;
}

/* ====== 保存中インジケータ ====== */
.saving-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    flex-direction: column;
}

.saving-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--cream-deep);
    border-top-color: var(--yellow);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}

.saving-text {
    font-size: 0.9rem;
    color: var(--navy);
    font-weight: 700;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====== 数値アニメーション ====== */
@keyframes countUp {
    from { opacity: 0.3; transform: translateY(10px); }
    to   { opacity: 1;   transform: translateY(0); }
}

#squat-age-num {
    display: inline-block;
    animation: countUp 0.8s ease-out;
}

/* ====== 小画面対応 ====== */
@media (max-width: 360px) {
    .app-body {
        padding: 24px 18px;
    }

    .app-body h2 {
        font-size: 1.35rem;
    }

    .top-screen h1 {
        font-size: 1.7rem;
    }

    .result-age-number {
        font-size: 5.5rem;
    }

    .timer-big-num {
        font-size: 6.5rem;
    }
}
/* ========================================================
   v1.1 追加CSS - 結果画面の「内訳カード」
   既存の style.css の末尾に追加してください
======================================================== */

/* 内訳カード(base + adjustment = final の表示) */
.breakdown-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 16px;
    margin-bottom: 18px;
}

.breakdown-label {
    font-size: 0.68rem;
    color: var(--gray);
    letter-spacing: 0.15em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 14px;
}

.breakdown-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 6px;
    align-items: center;
}

.breakdown-item {
    text-align: center;
}

.breakdown-item-label {
    font-size: 0.66rem;
    color: var(--gray);
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.breakdown-item-value {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.breakdown-item-sub {
    font-size: 0.62rem;
    color: var(--gray);
    margin-top: 4px;
    line-height: 1.3;
}

.breakdown-op {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--gray);
    align-self: center;
    padding-bottom: 18px;
}

.breakdown-item-final .breakdown-item-value {
    color: var(--yellow-deep);
}

.breakdown-item-final .breakdown-item-label {
    color: var(--navy);
}

/* 小画面対応 */
@media (max-width: 360px) {
    .breakdown-item-value {
        font-size: 1.15rem;
    }
    .breakdown-item-label,
    .breakdown-item-sub {
        font-size: 0.58rem;
    }
    .breakdown-op {
        font-size: 1rem;
    }
}
