/* ===========================================
   Apple Style Skin Check
   style.css Part1
=========================================== */

/* ---------- Reset ---------- */

*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* ---------- Variables ---------- */

:root{

    --bg:#f5f5f7;
    --white:#ffffff;
    --text:#1d1d1f;
    --sub:#6e6e73;

    --primary:#0071e3;
    --primary-hover:#0062c6;

    --border:#d2d2d7;

    --radius:22px;

    --shadow:
        0 20px 60px rgba(0,0,0,.08);

    --glass:
        rgba(255,255,255,.65);

}

/* ---------- Base ---------- */

html{

    scroll-behavior:smooth;

}

body{

    font-family:"Noto Sans JP",sans-serif;

    background:var(--bg);

    color:var(--text);

    overflow-x:hidden;

    line-height:1.8;

}

/* ---------- Background ---------- */

.background-gradient{

    position:fixed;

    inset:0;

    background:
    radial-gradient(circle at top left,
    rgba(0,113,227,.12),
    transparent 45%),

    radial-gradient(circle at bottom right,
    rgba(255,140,0,.10),
    transparent 45%),

    linear-gradient(
        180deg,
        #ffffff,
        #f5f5f7
    );

    z-index:-1;

}

/* ---------- App ---------- */

.app{

    width:min(1200px,92%);

    margin:auto;

    padding:60px 0;

}

/* ---------- Screen ---------- */

.screen{

    display:none;

}

.screen.active{

    display:block;

}

/* ---------- Hero ---------- */

.hero{

    min-height:90vh;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

}

/* ---------- Logo ---------- */

.hero-logo{

    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:25px;

    font-size:14px;

    color:var(--sub);

}

.apple-icon{

    font-size:26px;

}

/* ---------- Heading ---------- */

.hero h1{

    font-size:72px;

    font-weight:700;

    line-height:1.1;

    margin-bottom:25px;

    letter-spacing:-2px;

}

.hero-text{

    font-size:22px;

    color:var(--sub);

    max-width:720px;

    margin-bottom:45px;

}

/* ---------- Buttons ---------- */

.primary-button{

    border:none;

    background:var(--primary);

    color:white;

    padding:

        18px

        42px;

    border-radius:999px;

    font-size:18px;

    cursor:pointer;

    transition:.3s;

}

.primary-button:hover{

    background:var(--primary-hover);

    transform:

    translateY(-2px);

}

.secondary-button{

    background:white;

    border:

    1px solid

    var(--border);

    color:var(--text);

    padding:

        16px

        34px;

    border-radius:999px;

    cursor:pointer;

    transition:.3s;

}

.secondary-button:hover{

    transform:

    translateY(-2px);

}

/* ---------- Hero Cards ---------- */

.hero-cards{

    display:grid;

    grid-template-columns:

    repeat(3,1fr);

    gap:25px;

    margin-top:70px;

    width:100%;

    max-width:950px;

}

.hero-card{

    background:

    var(--glass);

    backdrop-filter:

    blur(20px);

    border:

    1px solid

    rgba(255,255,255,.6);

    border-radius:

    var(--radius);

    padding:

    35px;

    box-shadow:

    var(--shadow);

    transition:.3s;

}

.hero-card:hover{

    transform:

    translateY(-6px);

}

.hero-number{

    font-size:34px;

    font-weight:700;

    color:

    var(--primary);

}

.hero-label{

    color:var(--sub);

    margin-top:10px;

}

/* ---------- Utility ---------- */

.hidden{

    display:none!important;

}

.center{

    text-align:center;

}

/* ---------- Fade ---------- */

.fade-up{

    opacity:0;

    transform:

    translateY(30px);

    transition:

    .6s;

}

.fade-up.show{

    opacity:1;

    transform:

    translateY(0);

}

/* ---------- Responsive ---------- */

@media(max-width:900px){

.hero h1{

font-size:54px;

}

.hero-text{

font-size:18px;

}

.hero-cards{

grid-template-columns:1fr;

}

}

@media(max-width:600px){

.app{

width:94%;

}

.hero{

min-height:80vh;

}

.hero h1{

font-size:42px;

}

.hero-text{

font-size:16px;

}

.primary-button{

width:100%;

}

.secondary-button{

width:100%;

}

}
/* ===========================================
   Quiz Screen
=========================================== */

.quiz-container{

    max-width:900px;

    margin:auto;

    padding:60px 0;

}

/* ---------- Progress ---------- */

.progress-area{

    margin-bottom:45px;

}

.progress-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:14px;

    color:var(--sub);

    font-size:15px;

}

.progress-bar{

    width:100%;

    height:10px;

    background:#e8e8ed;

    border-radius:999px;

    overflow:hidden;

}

.progress-fill{

    width:10%;

    height:100%;

    background:linear-gradient(
        90deg,
        #0071e3,
        #42a5ff
    );

    transition:.4s ease;

}

/* ---------- Question ---------- */

.question-card{

    background:var(--glass);

    backdrop-filter:blur(20px);

    border-radius:var(--radius);

    padding:40px;

    box-shadow:var(--shadow);

    margin-bottom:35px;

}

.question-card h2{

    font-size:34px;

    margin-bottom:15px;

    line-height:1.4;

}

.question-description{

    color:var(--sub);

    font-size:17px;

}

/* ---------- Answers ---------- */

.answers{

    display:grid;

    gap:18px;

}

.answer{

    background:white;

    border:2px solid transparent;

    border-radius:18px;

    padding:22px;

    cursor:pointer;

    transition:.25s;

    font-size:17px;

    box-shadow:
        0 10px 25px rgba(0,0,0,.05);

}

.answer:hover{

    border-color:var(--primary);

    transform:translateY(-3px);

}

.answer.selected{

    background:#eef6ff;

    border-color:var(--primary);

    color:var(--primary);

    font-weight:600;

}

/* ---------- Navigation ---------- */

.navigation{

    display:flex;

    justify-content:space-between;

    gap:20px;

    margin-top:40px;

}

.navigation button{

    flex:1;

}

/* ===========================================
   Loading
=========================================== */

.loading-box{

    min-height:80vh;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

}

.spinner{

    width:80px;

    height:80px;

    border-radius:50%;

    border:7px solid #d7d7dc;

    border-top-color:var(--primary);

    animation:spin 1s linear infinite;

    margin-bottom:30px;

}

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}

.loading-box h2{

    font-size:36px;

    margin-bottom:10px;

}

.loading-box p{

    color:var(--sub);

    margin-bottom:35px;

}

.loading-step{

    width:100%;

    max-width:420px;

}

.loading-item{

    background:white;

    padding:18px;

    margin-bottom:12px;

    border-radius:14px;

    box-shadow:0 8px 18px rgba(0,0,0,.05);

    animation:fadeIn .5s ease forwards;

    opacity:0;

}

.loading-item:nth-child(1){

    animation-delay:.2s;

}

.loading-item:nth-child(2){

    animation-delay:.5s;

}

.loading-item:nth-child(3){

    animation-delay:.8s;

}

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ---------- Mobile ---------- */

@media(max-width:768px){

    .question-card{

        padding:28px;

    }

    .question-card h2{

        font-size:26px;

    }

    .answer{

        padding:18px;

        font-size:16px;

    }

    .navigation{

        flex-direction:column;

    }

    .loading-box h2{

        font-size:28px;

    }

    .spinner{

        width:60px;

        height:60px;

    }

}
/* ===========================================
   Result Screen
=========================================== */

.result-container{

    max-width:1100px;

    margin:auto;

    padding:60px 0;

}

.result-header{

    text-align:center;

    margin-bottom:45px;

}

.result-badge{

    display:inline-block;

    padding:8px 18px;

    border-radius:999px;

    background:#eef6ff;

    color:var(--primary);

    font-size:14px;

    font-weight:600;

    margin-bottom:20px;

}

.result-header h2{

    font-size:46px;

    margin-bottom:18px;

    line-height:1.3;

}

.result-header p{

    color:var(--sub);

    font-size:18px;

    max-width:760px;

    margin:auto;

}

/* ---------- Care Card ---------- */

.care-card,
.ingredient-card{

    background:var(--glass);

    backdrop-filter:blur(20px);

    border-radius:var(--radius);

    padding:35px;

    margin-bottom:30px;

    box-shadow:var(--shadow);

}

.care-card h3,
.ingredient-card h3{

    margin-bottom:20px;

    font-size:28px;

}

.care-card ul{

    padding-left:22px;

}

.care-card li{

    margin-bottom:12px;

}

/* ---------- Ingredients ---------- */

.ingredient-list{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

}

.ingredient-list span{

    background:#eef6ff;

    color:var(--primary);

    padding:10px 18px;

    border-radius:999px;

    font-size:15px;

    font-weight:600;

}

/* ===========================================
   Products
=========================================== */

.products{

    margin-top:50px;

}

.products h3{

    font-size:30px;

    margin-bottom:25px;

}

.product-list{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:28px;

}

.product-card{

    background:white;

    border-radius:24px;

    overflow:hidden;

    box-shadow:0 15px 40px rgba(0,0,0,.08);

    transition:.35s;

}

.product-card:hover{

    transform:translateY(-8px);

}

.product-image{

    width:100%;

    height:240px;

    object-fit:cover;

    background:#fafafa;

}

.product-body{

    padding:25px;

}

.product-brand{

    color:var(--sub);

    font-size:14px;

}

.product-name{

    font-size:22px;

    font-weight:700;

    margin:10px 0;

}

.product-price{

    color:var(--primary);

    font-size:22px;

    font-weight:700;

    margin-bottom:20px;

}

/* ---------- Affiliate Buttons ---------- */

.product-links{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.product-links a{

    display:block;

    text-align:center;

    text-decoration:none;

    color:white;

    padding:14px;

    border-radius:999px;

    transition:.25s;

}

.amazon{

    background:#ff9900;

}

.rakuten{

    background:#bf0000;

}

.yahoo{

    background:#ff0033;

}

.product-links a:hover{

    transform:translateY(-2px);

    filter:brightness(1.05);

}

/* ===========================================
   Result Buttons
=========================================== */

.result-buttons{

    display:flex;

    gap:20px;

    justify-content:center;

    margin-top:60px;

}

.result-buttons button{

    min-width:220px;

}

/* ===========================================
   Footer
=========================================== */

.footer{

    padding:60px 0;

    margin-top:80px;

    border-top:1px solid var(--border);

}

.footer-inner{

    width:min(1100px,92%);

    margin:auto;

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:20px;

}

.footer p{

    color:var(--sub);

}

.footer nav{

    display:flex;

    gap:20px;

}

.footer nav a{

    text-decoration:none;

    color:var(--sub);

    transition:.25s;

}

.footer nav a:hover{

    color:var(--primary);

}

/* ===========================================
   Animations
=========================================== */

@keyframes float{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-8px);

    }

    100%{

        transform:translateY(0);

    }

}

.hero-card{

    animation:float 6s ease-in-out infinite;

}

.hero-card:nth-child(2){

    animation-delay:.8s;

}

.hero-card:nth-child(3){

    animation-delay:1.6s;

}

/* ===========================================
   Responsive
=========================================== */

@media(max-width:900px){

.result-header h2{

font-size:34px;

}

.result-buttons{

flex-direction:column;

}

.result-buttons button{

width:100%;

}

.footer-inner{

flex-direction:column;

text-align:center;

}

}

@media(max-width:600px){

.product-list{

grid-template-columns:1fr;

}

.product-image{

height:200px;

}

.result-header h2{

font-size:28px;

}

.care-card,
.ingredient-card{

padding:24px;

}

}