/* ==============================
lumilog UI
==============================*/

body{
    font-family:sans-serif;
    background:#fff8fb;
    margin:0;
    padding:20px;
    max-width:500px;
    margin:auto;
    }
    
    /* タイトル */
    
    .title{
    text-align:center;
    color:#e6789a;
    margin-bottom:20px;
    }
    
    /* カード */
    
    .card{
    background:white;
    padding:20px;
    border-radius:18px;
    margin-bottom:18px;
    box-shadow:0 6px 16px rgba(0,0,0,0.06);
    }
    
    /* スコア */
    
    .score-card{
    text-align:center;
    }
    
    .score{
    font-size:48px;
    font-weight:bold;
    color:#e6789a;
    }
    
    /* スコアリスト */
    
    .score-list{
    list-style:none;
    padding:0;
    }
    
    .score-list li{
    padding:6px 0;
    border-bottom:1px solid #eee;
    }
    
    /* ルーティン */
    
    .routine{
    margin-bottom:10px;
    }
    
    /* 小さいカード */
    
    .small{
    font-size:12px;
    opacity:0.7;
    }
    
    /* ボタン */
    
    .nav{
    display:flex;
    gap:10px;
    margin-top:20px;
    }
    
    .btn{
    flex:1;
    text-align:center;
    padding:12px;
    background:#e6789a;
    color:white;
    border-radius:12px;
    text-decoration:none;
    }
    
    .btn.secondary{
    background:#bbb;
    }
    /* 商品カード */

.product-card{
    display:flex;
    gap:12px;
    align-items:center;
    margin-bottom:14px;
    }
    
    .product-img{
    width:140px;
    height:140px;
    object-fit:cover;
    border-radius:12px;
    background:#eee;
    }

    
    /* ==============================
result page
============================== */

body.result-page {
    font-family: "Hiragino Maru Gothic ProN", sans-serif;
    background: linear-gradient(135deg, #fff8fa 0%, #ffe8ee 100%);
    margin: 0;
    padding: 40px 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    max-width: none;
}

.result-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.result-container {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.result-hero {
    background: rgba(255,255,255,0.94);
    border-radius: 28px;
    padding: 28px 24px;
    box-shadow: 0 10px 35px rgba(255, 133, 162, 0.12);
    border: 1px solid rgba(255, 214, 226, 0.75);
    margin-bottom: 18px;
    text-align: center;
}

.result-title {
    color: #ff85a2;
    font-family: 'Kosugi Maru', sans-serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin: 0 0 8px;
    letter-spacing: 1px;
}

.result-subtitle {
    color: #d88da2;
    font-size: 14px;
    margin: 0;
    line-height: 1.7;
}

.result-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.result-card {
    background: rgba(255,255,255,0.94);
    border-radius: 24px;
    padding: 22px 20px;
    box-shadow: 0 8px 28px rgba(255, 133, 162, 0.10);
    border: 1px solid rgba(255, 224, 229, 0.9);
}

.section-title {
    color: #c96b86;
    font-size: 20px;
    margin: 0 0 14px;
    font-weight: bold;
}

.skin-score-main {
    text-align: center;
    margin-top: 6px;
}

.skin-score-label {
    color: #c58b99;
    font-size: 14px;
    margin-bottom: 6px;
}

.skin-score-value {
    font-size: clamp(2.6rem, 7vw, 4rem);
    font-weight: bold;
    color: #ff7f9f;
    line-height: 1;
}

.skin-score-caption {
    font-size: 13px;
    color: #c79ca7;
    margin-top: 8px;
}

.score-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.score-mini {
    background: linear-gradient(135deg, #fff7f9 0%, #fff0f4 100%);
    border: 1px solid #ffe1e8;
    border-radius: 18px;
    padding: 14px 12px;
    text-align: center;
}

.score-mini-name {
    font-size: 13px;
    color: #b17687;
    margin-bottom: 6px;
}

.score-mini-value {
    font-size: 24px;
    font-weight: bold;
    color: #ff85a2;
}

.score-mini-reason {
    font-size: 11px;
    color: #9a7a84;
    margin-top: 6px;
    line-height: 1.5;
    text-align: left;
}

.summary-text,
.reason-text,
.plan-text {
    color: #6f5d63;
    line-height: 1.9;
    font-size: 14px;
}

.plan-block {
    background: #fff8fb;
    border: 1px solid #ffe3ea;
    border-radius: 18px;
    padding: 16px;
    margin-top: 12px;
}

.plan-block h3 {
    margin: 0 0 8px;
    color: #c96b86;
    font-size: 16px;
}

.plan-block ul {
    margin: 8px 0 0;
    padding-left: 18px;
    color: #6f5d63;
    line-height: 1.8;
}

.budget-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.budget-pill {
    background: linear-gradient(135deg, #fff7f9 0%, #fff0f4 100%);
    border: 1px solid #ffe1e8;
    border-radius: 18px;
    padding: 14px 12px;
    text-align: center;
}

.budget-pill-label {
    font-size: 12px;
    color: #b17687;
    margin-bottom: 6px;
}

.budget-pill-value {
    font-size: 18px;
    font-weight: bold;
    color: #ff85a2;
}

.routine-section {
    margin-bottom: 18px;
}

.routine-shell {
    background: rgba(255,255,255,0.94);
    border-radius: 24px;
    padding: 22px 20px;
    box-shadow: 0 8px 28px rgba(255, 133, 162, 0.10);
    border: 1px solid rgba(255, 224, 229, 0.9);
}

.routine-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.routine-title {
    font-size: 22px;
    font-weight: bold;
    color: #c96b86;
    margin: 0;
}

.routine-chip {
    background: #ffe9ef;
    color: #c56c84;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
}

/* =============================
   週間ルーティン
============================= */
.wplan-policy {
    font-size: 13px;
    color: #7a5060;
    line-height: 1.7;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f5e0e8;
}
.wplan-policy-sub {
    font-size: 12px;
    color: #a07880;
    margin-top: 4px;
}

.wplan-order-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f5e0e8;
}
.wplan-order-title {
    font-size: 11px;
    font-weight: bold;
    color: #c75b7a;
    letter-spacing: 0.06em;
}
.wplan-order-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}
.wplan-order-label {
    font-size: 11px;
    font-weight: bold;
    border-radius: 999px;
    padding: 2px 9px;
    white-space: nowrap;
    flex-shrink: 0;
}
.wplan-order-label.morning-label { background: #fff3e0; color: #b06020; }
.wplan-order-label.night-label   { background: #ede8f5; color: #6050a0; }
.wplan-order-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.wplan-order-step {
    font-size: 11px;
    color: #7a5060;
    background: #fff6f9;
    border: 1px solid #f0d0dc;
    border-radius: 6px;
    padding: 1px 7px;
}
.wplan-order-arrow { color: #e0b0c0; font-size: 11px; }

/* 日ごとのリスト */
.wplan-rows { display: flex; flex-direction: column; }
.wplan-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5e8ee;
}
.wplan-row:last-child { border-bottom: none; }

.wplan-day-badge {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ffb0c8, #e87095);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    font-family: 'Kosugi Maru', sans-serif;
    margin-top: 2px;
}
.wplan-row-secs {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.wplan-row-sec {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.wplan-sec-icon {
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
}
.wplan-sec-icon.m { color: #b06020; }
.wplan-sec-icon.n { color: #6050a0; }
.wplan-sec-icon.w { color: #208060; }
.wplan-sec-items {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding-left: 2px;
}
.wplan-sec-item {
    font-size: 11px;
    color: #6a4050;
    background: #fff6f9;
    border: 1px solid #f0d0dc;
    border-radius: 6px;
    padding: 1px 8px;
    line-height: 1.6;
}
.wplan-sec-item.n { background: #f3f0ff; border-color: #d0c8ee; color: #504070; }
.wplan-sec-item.w { background: #edf7f1; border-color: #b8d8c4; color: #306050; }

.product-card-new {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fffafb 0%, #fff3f6 100%);
    border: 1px solid #ffe1e8;
    margin-bottom: 14px;
}

.product-img-new {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 16px;
    background: #f6f0f2;
    flex-shrink: 0;
}

.product-body {
    flex: 1;
    min-width: 0;
}

.product-source {
    display: inline-block;
    font-size: 11px;
    color: #b26e80;
    background: #ffeaf0;
    border-radius: 999px;
    padding: 4px 10px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 18px;
    font-weight: bold;
    color: #7e5561;
    margin-bottom: 8px;
    line-height: 1.5;
}

.product-meta {
    font-size: 14px;
    color: #6f5d63;
    line-height: 1.8;
    margin-bottom: 6px;
}

.product-price {
    margin-top: 10px;
    font-weight: bold;
    color: #ff7f9f;
}

.product-score {
    margin-top: 8px;
    font-size: 12px;
    color: #a18b92;
}

.simple-list {
    margin: 0;
    padding-left: 18px;
    color: #6f5d63;
    line-height: 1.9;
}

.nav-row {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.result-btn {
    flex: 1;
    text-align: center;
    text-decoration: none;
    background: #ff85a2;
    color: white;
    padding: 14px 16px;
    border-radius: 18px;
    font-weight: bold;
    box-shadow: 0 6px 18px rgba(255, 133, 162, 0.22);
}

.result-btn.secondary {
    background: #d8b2bd;
}

/* ── 予算内おすすめ構成 ── */
.budget-fit-section {
    margin-top: 12px;
}

.budget-fit-section > h3 {
    margin: 0 0 4px;
    color: #c96b86;
    font-size: 16px;
}

.budget-fit-time-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 8px;
}

.budget-fit-time-chip {
    background: #ffe9ef;
    color: #c56c84;
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: bold;
}

.budget-fit-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 248, 252, 0.85);
    border: 1px solid #ffe3ea;
    margin-bottom: 8px;
}

.budget-fit-step-category {
    flex-shrink: 0;
    background: rgba(255, 182, 193, 0.25);
    color: #c75b7a;
    border-radius: 8px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: bold;
    margin-top: 2px;
    white-space: nowrap;
}

.budget-fit-step-body {
    flex: 1;
    min-width: 0;
}

.budget-fit-step-name {
    font-weight: bold;
    color: #4a3540;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 2px;
}

.budget-fit-step-purpose {
    font-size: 12px;
    color: #8a7a80;
    line-height: 1.5;
}

.budget-fit-step-price {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: bold;
    color: #c75b7a;
    text-align: right;
    white-space: nowrap;
    padding-top: 2px;
}

.budget-fit-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ffe6ee, #ffd6e8);
    border: 1px solid #f3c9d2;
    border-radius: 14px;
}

.budget-fit-total-label {
    font-size: 13px;
    color: #8a7a80;
}

.budget-fit-total-value {
    font-size: 20px;
    font-weight: bold;
    color: #c75b7a;
    font-family: 'Kosugi Maru', sans-serif;
}

@media (max-width: 768px) {
    .result-grid {
        grid-template-columns: 1fr;
    }

    .budget-box {
        grid-template-columns: 1fr;
    }

    .product-card-new {
        flex-direction: column;
    }

    .product-img-new {
        width: 100%;
        height: 220px;
    }

    .nav-row {
        flex-direction: column;
    }
}
    