/* 全体のスタイル */
body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 40px 20px;
}

.flow-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-step {
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1, h2 {
    text-align: center;
    color: #2c3e50;
}

h1 {
    margin-bottom: 40px;
}

h2 {
    width: 100%;
    max-width: 400px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

.explanation {
    max-width: 400px;
    text-align: center;
    color: #555;
    margin-top: 15px;
    line-height: 1.6;
}

.arrow {
    font-size: 32px;
    color: #bdc3c7;
    margin: 15px 0;
}

/* スマートフォンのモックアップ */
.phone-mockup {
    width: 375px;
    height: 812px;
    background-color: #fff;
    border: 12px solid #111;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.phone-mockup .notch {
    width: 160px;
    height: 25px;
    background: #111;
    border-radius: 0 0 15px 15px;
    align-self: center;
    margin-bottom: 10px;
}

.screen {
    flex-grow: 1;
    background: #fff;
    padding: 15px;
    display: flex;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
}

.screen.scrollable {
    overflow-y: auto; /* スクロール可能にする */
}

/* 画面内コンポーネントのスタイル */
.screen h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}
.screen h4 {
    font-size: 16px;
    font-weight: 700;
    color: #444;
    margin-top: 20px;
    margin-bottom: 15px;
    text-align: left;
}

.screen p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

/* ボタン */
.btn {
    display: block;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    margin-top: 10px;
    box-sizing: border-box;
}
.btn-primary { background-color: #007bff; color: white; }
.btn-secondary { background-color: #f0f0f0; color: #333; }
.btn-outline { background-color: transparent; color: #007bff; border: 2px solid #007bff; }

/* Step 1 & 2 */
.welcome-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.logo {
    width: 80px; height: 80px; background-color: #e0e0e0; border-radius: 20px;
    display: flex; justify-content: center; align-items: center;
    font-weight: 700; color: #999; margin-bottom: 30px;
}
.welcome-content .main-text { font-size: 24px; font-weight: 700; margin-bottom: 40px; }
.input-field {
    width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 12px;
    font-size: 16px; text-align: center; box-sizing: border-box; margin: 20px 0;
}

/* Step 3 */
.result-box {
    background: linear-gradient(135deg, #56ab2f, #a8e063);
    color: white; padding: 20px; border-radius: 16px; font-size: 24px;
    font-weight: 700; margin: 20px 0; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Step 4 */
.tabs { display: flex; justify-content: space-around; border-bottom: 1px solid #eee; margin-bottom: 20px; }
.tab { padding: 10px 15px; font-size: 16px; font-weight: 500; color: #999; }
.tab.active { color: #007bff; border-bottom: 3px solid #007bff; }
.plan-card {
    background: #f8f9fa; border: 1px solid #eee; border-radius: 12px;
    padding: 15px; text-align: left; margin-bottom: 15px;
}
.plan-card h5 { margin: 0 0 5px; font-size: 16px; }
.plan-card p { margin: 0 0 10px; font-size: 13px; color: #777; }
.plan-card span { font-weight: 700; color: #007bff; font-size: 14px; }

/* 【NEW】Step 5: 食事プラン */
.food-recommendation { display: flex; gap: 10px; }
.food-card { flex: 1; padding: 15px; border-radius: 12px; }
.food-card.ok { background-color: #e8f5e9; }
.food-card.ng { background-color: #fff3e0; }
.food-card h4 { margin: 0 0 10px; font-size: 14px; text-align: center; }
.food-card p { font-size: 12px; text-align: center; margin: 0; line-height: 1.5; }
.weekly-menu { list-style: none; padding: 0; text-align: left; }
.weekly-menu li { border-bottom: 1px solid #eee; padding: 10px 0; font-size: 12px; }
.weekly-menu li span {
    font-weight: 700; background-color: #007bff; color: white;
    border-radius: 4px; padding: 2px 6px; margin-right: 8px;
}

/* 【NEW】Step 6: 運動プラン */
.exercise-ratio { display: flex; width: 100%; height: 30px; border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.ratio-bar { display: flex; align-items: center; justify-content: center; color: white; font-size: 12px; font-weight: 700; }
.ratio-bar.aerobic { width: 70%; background-color: #3498db; }
.ratio-bar.strength { width: 30%; background-color: #e74c3c; }
.workout-list { list-style: none; padding: 0; text-align: left; }
.workout-list li {
    display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #eee;
    font-size: 14px;
}
.workout-list li span:first-child { font-size: 20px; margin-right: 15px; }
.workout-list li span:last-child { margin-left: auto; color: #888; font-size: 12px; }

/* Step 7: サプリ詳細 */
.product-header { display: flex; align-items: center; text-align: left; margin-bottom: 20px; }
.product-image { width: 80px; height: 80px; background-color: #f0f0f0; border-radius: 12px; margin-right: 15px; }
.product-info h4 { margin: 0 0 5px 0; font-size: 18px; }
.product-info p { margin: 0; }
.reason-box, .review-box { text-align: left; background-color: #f8f9fa; padding: 15px; border-radius: 12px; margin-bottom: 15px; }
.reason-box h5, .review-box h5 { margin: 0 0 10px 0; font-size: 14px; font-weight: 700; }
.review-box .stars { color: #f39c12; }

/* Step 8: 購入 */
.cart-summary { text-align: left; border: 1px solid #eee; padding: 20px; border-radius: 12px; }
.cart-summary hr { border: 0; border-top: 1px solid #eee; margin: 15px 0; }
.total { font-weight: 700; }
.checkout-details { margin-top: 20px; text-align: left; color: #777; }

/* Step 9: 記録 */
.screen-container { flex-grow: 1; display: flex; flex-direction: column; }
.log-content { flex-grow: 1; }
.log-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px; background-color: #f8f9fa; border-radius: 12px; margin-bottom: 15px;
}
.log-item span { font-weight: 500; }
.log-item .status { font-weight: 700; color: #27ae60; }
.action-card {
    background-color: #e9f5ff; color: #007bff; padding: 20px;
    border-radius: 12px; margin-top: 15px; font-weight: 700;
}
.footer-nav {
    display: flex; justify-content: space-around; padding: 10px 0;
    border-top: 1px solid #eee; margin-top: auto;
}
.nav-item { text-align: center; color: #999; }
.nav-item.active { color: #007bff; }
.nav-item div { font-size: 24px; }
.nav-item span { font-size: 10px; }```