/* ----- 全体スタイル ----- */
:root {
    --primary-color: #4CAF50; /* 環境をイメージさせる緑 */
    --secondary-color: #FFC107; /* チーズをイメージさせる黄色 */
    --background-color: #F1F8E9; /* 薄い緑 */
    --text-color: #333;
    --white-color: #fff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

/* ----- ゲームコンテナ ----- */
#game-container {
    width: 100%;
    max-width: 400px;
    background-color: var(--white-color);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-color);
    overflow: hidden;
    margin: 20px;
}

.screen {
    padding: 30px 20px;
    box-sizing: border-box;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ----- 各画面のスタイル ----- */
/* スタート画面 */
#start-screen h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 0;
}

#start-screen .catch-copy {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    background: linear-gradient(90deg, #FFC107, #FF9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 20px 0;
    line-height: 1.4;
}

#start-screen p {
    font-size: 16px;
    line-height: 1.6;
}

/* 質問画面 */
#question-progress {
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

#question-text {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    min-height: 60px; /* 質問文の高さが変わってもレイアウトが崩れないように */
}

#choices-container .choice-btn {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    font-size: 16px;
}

/* 診断中画面 */
.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--secondary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-screen p {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

/* 結果画面 */
#result-screen .result-label {
    font-size: 14px;
    color: #757575;
}

#result-guilt-level {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 5px 0 10px;
}

#result-type-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    padding: 8px 16px;
    background-color: #E8F5E9;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
}

#result-description {
    text-align: left;
    line-height: 1.7;
    margin-bottom: 25px;
}

.recommend-section {
    background-color: #FFFDE7;
    border: 2px dashed var(--secondary-color);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

#recommend-title {
    font-size: 18px;
    color: var(--primary-color);
    margin-top: 0;
}

.product-image {
    max-width: 80%; /* コンテナ幅に対する割合で指定 */
    height: auto;   /* アスペクト比を維持 */
    margin: 10px 0;
}

#product-features-list {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
}

#product-features-list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%234CAF50"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>') no-repeat left center;
    padding-left: 28px;
    margin-bottom: 10px;
    line-height: 1.5;
}


/* ----- 共通コンポーネント ----- */
.btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow-color);
}

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

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

.hide {
    display: none;
}