:root {
    --primary-color: #007aff;
    --bg-color: #f2f2f7;
    --card-bg: #ffffff;
    --text-main: #1c1c1e;
    --text-sub: #8e8e93;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    padding-bottom: 100px;
}

.app-container {
    padding: 16px;
    max-width: 500px;
    margin: 0 auto;
}

header h1 {
    font-size: 1.5rem;
    text-align: center;
    margin: 10px 0 20px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card h2 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.input-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

label { font-size: 0.85rem; color: #444; }

input[type="number"] {
    width: 90px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: right;
    font-size: 1rem;
    background: #f9f9f9;
}

/* ステッパー */
.multi-step-container {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 8px;
}

.btn-step {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
}
.btn-1k { background-color: #5ac8fa; }
.btn-10k { background-color: #007aff; }

/* 食費計算ユニット */
.food-calc-container {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.section-sub-title { font-weight: bold; font-size: 0.75rem; margin-bottom: 8px; color: #666; }
.food-flex { display: flex; align-items: center; justify-content: space-between; }
.food-inputs { display: flex; flex-direction: column; gap: 5px; }
.input-mini { display: flex; align-items: center; gap: 3px; font-size: 0.8rem; }
.input-mini input { width: 55px !important; padding: 4px !important; }
.food-arrow { font-size: 1.2rem; color: #ccc; padding: 0 5px; }
.food-results { display: flex; align-items: center; gap: 5px; }
.food-daily { text-align: center; }
.food-daily label { font-size: 0.65rem; }
.display-box { border: 1px solid #ddd; background: #fff; padding: 4px; border-radius: 4px; min-width: 55px; text-align: right; font-size: 0.85rem; }
.food-multi { font-size: 0.7rem; white-space: nowrap; }
#food_total { width: 80px !important; border: 2px solid var(--primary-color) !important; background: #fff !important; font-weight: bold; }

/* サブスク */
.subscription-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.sub-item { width: 100% !important; padding: 5px !important; font-size: 0.8rem !important; }

/* フッター */
.sticky-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex; padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    justify-content: space-around;
}
.footer-item { text-align: center; }
.footer-item .value { font-size: 1.1rem; font-weight: bold; }
.highlight .value { color: var(--primary-color); }
.chart-card { height: 350px; }

/* 解説コンテンツ用スタイル */
.content-section {
    line-height: 1.6;
    color: #444;
}

.content-section p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.advice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
}

.advice-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.advice-item h3 {
    font-size: 0.9rem;
    margin: 0 0 5px 0;
    color: var(--text-main);
}

.advice-item p {
    font-size: 0.8rem;
    margin: 0;
}

/* FAQ (details/summary) */
.faq-section h3 {
    font-size: 1rem;
    margin-top: 20px;
}

details {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 8px;
}

summary {
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    outline: none;
}

details p {
    font-size: 0.8rem;
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px dashed #eee;
}