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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #ffeef8 0%, #ffb3d9 50%, #ff85c0 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
    position: relative;
}

/* ピンクテーマの背景装飾 */
body.pink-theme {
    background: linear-gradient(135deg, #ffeef8 0%, #ffb3d9 50%, #ff85c0 100%);
}

body.pink-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 182, 193, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 192, 203, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 228, 225, 0.4) 0%, transparent 50%);
    z-index: -1;
    animation: float 10s ease-in-out infinite;
}

body.pink-theme::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

body.pink-theme .floating-emoji {
    position: fixed;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    animation: twinkle 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

body.pink-theme .floating-emoji:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
body.pink-theme .floating-emoji:nth-child(2) { top: 20%; left: 80%; animation-delay: 0.5s; }
body.pink-theme .floating-emoji:nth-child(3) { top: 30%; left: 20%; animation-delay: 1s; }
body.pink-theme .floating-emoji:nth-child(4) { top: 40%; left: 70%; animation-delay: 1.5s; }
body.pink-theme .floating-emoji:nth-child(5) { top: 50%; left: 15%; animation-delay: 2s; }
body.pink-theme .floating-emoji:nth-child(6) { top: 60%; left: 85%; animation-delay: 2.5s; }
body.pink-theme .floating-emoji:nth-child(7) { top: 70%; left: 25%; animation-delay: 3s; }
body.pink-theme .floating-emoji:nth-child(8) { top: 80%; left: 75%; animation-delay: 3.5s; }
body.pink-theme .floating-emoji:nth-child(9) { top: 90%; left: 35%; animation-delay: 4s; }

/* オレンジテーマの背景装飾 */
body.orange-theme {
    background: linear-gradient(135deg, #FFE0B2 0%, #FFCC02 50%, #FF8F00 100%);
}

body.orange-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(255, 204, 2, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 224, 178, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(255, 243, 224, 0.3) 0%, transparent 50%);
    z-index: -1;
    animation: float 10s ease-in-out infinite;
}

body.orange-theme::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

body.orange-theme .floating-emoji {
    position: fixed;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    animation: twinkle 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

body.orange-theme .floating-emoji:nth-child(1) { top: 15%; left: 15%; animation-delay: 0s; }
body.orange-theme .floating-emoji:nth-child(2) { top: 25%; left: 85%; animation-delay: 0.5s; }
body.orange-theme .floating-emoji:nth-child(3) { top: 35%; left: 25%; animation-delay: 1s; }
body.orange-theme .floating-emoji:nth-child(4) { top: 45%; left: 75%; animation-delay: 1.5s; }
body.orange-theme .floating-emoji:nth-child(5) { top: 55%; left: 20%; animation-delay: 2s; }
body.orange-theme .floating-emoji:nth-child(6) { top: 65%; left: 80%; animation-delay: 2.5s; }
body.orange-theme .floating-emoji:nth-child(7) { top: 75%; left: 30%; animation-delay: 3s; }
body.orange-theme .floating-emoji:nth-child(8) { top: 85%; left: 70%; animation-delay: 3.5s; }
body.orange-theme .floating-emoji:nth-child(9) { top: 95%; left: 40%; animation-delay: 4s; }

/* グリーンテーマの背景装飾 */
body.green-theme {
    background: linear-gradient(135deg, #DCEDC8 0%, #8BC34A 50%, #689F38 100%);
}

body.green-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(139, 195, 74, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(220, 237, 200, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(241, 248, 233, 0.3) 0%, transparent 50%);
    z-index: -1;
    animation: float 10s ease-in-out infinite;
}

body.green-theme::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

body.green-theme .floating-emoji {
    position: fixed;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    animation: twinkle 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

body.green-theme .floating-emoji:nth-child(1) { top: 12%; left: 12%; animation-delay: 0s; }
body.green-theme .floating-emoji:nth-child(2) { top: 22%; left: 82%; animation-delay: 0.5s; }
body.green-theme .floating-emoji:nth-child(3) { top: 32%; left: 22%; animation-delay: 1s; }
body.green-theme .floating-emoji:nth-child(4) { top: 42%; left: 72%; animation-delay: 1.5s; }
body.green-theme .floating-emoji:nth-child(5) { top: 52%; left: 17%; animation-delay: 2s; }
body.green-theme .floating-emoji:nth-child(6) { top: 62%; left: 87%; animation-delay: 2.5s; }
body.green-theme .floating-emoji:nth-child(7) { top: 72%; left: 27%; animation-delay: 3s; }
body.green-theme .floating-emoji:nth-child(8) { top: 82%; left: 77%; animation-delay: 3.5s; }
body.green-theme .floating-emoji:nth-child(9) { top: 92%; left: 37%; animation-delay: 4s; }

/* スタート画面がアクティブな時はbodyのスタイルを変更 */
body:has(#start-screen.active) {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

body:has(#result-screen.active) {
    padding: 2px !important;
    margin: 0 !important;
}

body:has(#result-screen.active) .container {
    max-width: 100% !important;
    padding: 5px !important;
    margin: 0 !important;
}

.container {
    width: 100%;
    max-width: 500px;
    position: relative;
}

/* スタート画面の時はコンテナを画面全体に */
body:has(#start-screen.active) .container {
    max-width: 100% !important;
    width: 100% !important;
    height: 100vh !important;
}

/* 結果画面のみコンテナを広げる */
#result-screen .result-card {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.screen {
    display: none;
    border-radius: 30px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.4);
    border: 3px solid #ffb3d9;
    animation: fadeIn 0.5s ease-in;
    position: relative;
    z-index: 2;
}

/* 質問画面の背景グループ */
#quiz-screen {
    background: linear-gradient(135deg, #FFE4E1 0%, #FFB6C1 50%, #FFC0CB 100%);
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease;
}

/* 1-5問目: ピンク系の可愛い装飾 */
#quiz-screen.group-pink::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 182, 193, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 192, 203, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 228, 225, 0.5) 0%, transparent 50%);
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

/* 6-10問目: ストレス・疲労系の装飾 */
#quiz-screen.group-stress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(255, 204, 2, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 224, 178, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(255, 243, 224, 0.3) 0%, transparent 50%);
    z-index: 1;
    animation: float 8s ease-in-out infinite 2s;
}

/* 11-15問目: 自由・ライフスタイル系の装飾 */
#quiz-screen.group-lifestyle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(139, 195, 74, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(220, 237, 200, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(241, 248, 233, 0.3) 0%, transparent 50%);
    z-index: 1;
    animation: float 8s ease-in-out infinite 4s;
}

/* 各グループにテーマに合ったアイコンを追加 */
#quiz-screen.group-pink::after {
    content: '🌸 💕 🌸';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    z-index: 1;
    animation: bounce 3s infinite;
}

#quiz-screen.group-stress::after {
    content: '😰 😅 💪';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    z-index: 1;
    animation: bounce 3s infinite 1s;
}

#quiz-screen.group-lifestyle::after {
    content: '🌱 ☀️ 🎯';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    z-index: 1;
    animation: bounce 3s infinite 2s;
}

#loading-screen {
    background: linear-gradient(135deg, #ffffff 0%, #fff5fb 100%);
}

#result-screen {
    border: none;
    box-shadow: none;
    padding: 30px 10px;
    max-width: 100%;
    width: 100%;
}

#result-screen .container {
    max-width: 100%;
}

.screen.active {
    display: block;
}

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

/* スタート画面 - ポップで可愛いデザイン */
#start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 50%, #87CEEB 100%);
    z-index: 1000;
}

.start-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 雲 */
.cloud {
    position: absolute;
    background: white;
    border-radius: 50px;
    opacity: 0.9;
    animation: float 6s ease-in-out infinite;
}

.cloud-1 {
    width: 80px;
    height: 40px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.cloud-2 {
    width: 60px;
    height: 30px;
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.cloud-3 {
    width: 100px;
    height: 50px;
    top: 25%;
    left: 60%;
    animation-delay: 4s;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50px;
}

.cloud::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cloud::after {
    width: 60px;
    height: 40px;
    top: -15px;
    right: 10px;
}

/* 全体に配置されたキャラクター群 */
.bottom-character {
    position: absolute;
    font-size: 2rem;
    animation: bounce 3s infinite;
    z-index: 3;
}

.character-emoji-1 {
    top: 20%;
    left: 8%;
    animation-delay: 0s;
}

.character-emoji-2 {
    top: 35%;
    left: 12%;
    animation-delay: 0.3s;
}

.character-emoji-3 {
    top: 50%;
    left: 6%;
    animation-delay: 0.6s;
}

.character-emoji-4 {
    top: 65%;
    left: 10%;
    animation-delay: 0.9s;
}

.character-emoji-5 {
    top: 25%;
    right: 8%;
    animation-delay: 1.2s;
}

.character-emoji-6 {
    top: 40%;
    right: 12%;
    animation-delay: 1.5s;
}

.character-emoji-7 {
    top: 55%;
    right: 6%;
    animation-delay: 1.8s;
}

.character-emoji-8 {
    top: 70%;
    right: 10%;
    animation-delay: 2.1s;
}

.character-emoji-9 {
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2.4s;
}

.character-emoji-10 {
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2.7s;
}



/* コンテンツ */
.start-content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 60px 20px 40px;
    color: white;
}

.main-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    color: #FF69B4;
    text-shadow: 
        3px 3px 0px #ffffff,
        6px 6px 0px rgba(255, 255, 255, 0.8),
        9px 9px 15px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

.sub-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 35px;
    color: #FF1493;
    text-shadow: 2px 2px 0px #ffffff, 4px 4px 8px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
}

.start-description {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: #C71585;
    text-shadow: 2px 2px 0px #ffffff, 3px 3px 6px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.start-sub-description {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: #C71585;
    text-shadow: 2px 2px 0px #ffffff, 3px 3px 6px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.start-btn {
    background: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%);
    color: white;
    border: none;
    padding: 25px 55px;
    font-size: 1.9rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 
        0 12px 35px rgba(255, 105, 180, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.start-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(255, 105, 180, 0.6),
        0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #FF1493 0%, #DC143C 100%);
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.start-btn:active {
    transform: translateY(-1px);
}

/* アニメーション */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.4;
        transform: scale(0.8) rotate(0deg) translateY(0px);
    }
    25% { 
        opacity: 0.8;
        transform: scale(1.1) rotate(90deg) translateY(-10px);
    }
    50% { 
        opacity: 1;
        transform: scale(1.3) rotate(180deg) translateY(-20px);
    }
    75% { 
        opacity: 0.8;
        transform: scale(1.1) rotate(270deg) translateY(-10px);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* ボタン */
.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 20, 147, 0.5);
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #fff0f8 0%, #ffe6f2 100%);
    color: #ff1493;
    border: 2px solid #ffc0e3;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #ffe6f2 0%, #ffd9ed 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 192, 227, 0.3);
}

.btn-share {
    background: linear-gradient(135deg, #ffc0e3 0%, #ff85c0 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 192, 227, 0.4);
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 133, 192, 0.5);
    background: linear-gradient(135deg, #ff85c0 0%, #ffc0e3 100%);
}

/* 育成ボタン - 超目立つデザイン */
.btn-育成 {
    width: 100%;
    padding: 25px 30px;
    margin: 30px 0 20px 0;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6B35 100%);
    color: white;
    font-size: 24px;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6), 0 0 30px rgba(255, 215, 0, 0.4);
    border: 4px solid #FFD700;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    animation: pulse-glow 2s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
}

.btn-育成::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

.btn-育成:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.8), 0 0 50px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 50%, #FF6B35 100%);
}

.btn-育成:active {
    transform: scale(0.98) translateY(0);
}

.btn-icon {
    font-size: 28px;
    margin-right: 10px;
    display: inline-block;
    animation: bounce 1s ease-in-out infinite;
}

.btn-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
    opacity: 0.95;
}

.btn-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.btn-small-text {
    display: block;
    font-size: 16px;
    font-weight: 600;
    opacity: 0.95;
    line-height: 1.3;
    margin: 2px 0;
}

.btn-main-text {
    display: block;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    margin: 8px 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.button-group .btn {
    flex: 1;
    margin-bottom: 0;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6), 0 0 30px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(255, 107, 53, 0.8), 0 0 50px rgba(255, 215, 0, 0.6);
    }
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* 質問画面 */
.progress-bar {
    width: 100%;
    height: 10px;
    background: #ffe6f2;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 3;
    margin-bottom: 20px;
    border: 2px solid #ffcce6;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff69b4 0%, #ff1493 50%, #ff69b4 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    transition: width 0.3s ease;
    width: 0%;
    border-radius: 20px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.question-counter {
    text-align: center;
    font-size: 14px;
    color: #ff85c0;
    margin-bottom: 30px;
}

.question-counter span {
    font-size: 24px;
    font-weight: bold;
    color: #ff1493;
}

.question-card {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.question-text {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center;
    min-height: 60px;
    font-weight: 700;
    position: relative;
    z-index: 3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 1px 1px 2px rgba(0, 0, 0, 0.6);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 3;
}

.option-btn {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-emoji {
    font-size: 24px;
    flex-shrink: 0;
}

.option-text {
    flex: 1;
    text-align: left;
}

.option-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 1);
    transform: translateX(5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.option-btn:hover .option-emoji {
    transform: scale(1.3);
    transition: transform 0.2s ease;
}

.option-btn:active {
    transform: scale(0.98);
}

/* クラッカー紙吹雪 */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: fall linear forwards;
}

.confetti.circle {
    border-radius: 50%;
}

.confetti.square {
    border-radius: 0;
}

.confetti.triangle {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 10px solid currentColor;
    background: transparent !important;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 花火演出 */
.firework {
    position: absolute;
    animation: explode 2s ease-out forwards;
}

@keyframes explode {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(2);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* ハート演出 */
.heart {
    position: absolute;
    animation: floatUp linear forwards;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1.5);
        opacity: 0;
    }
}

/* 星演出 */
.star {
    position: absolute;
    animation: twinkleAndFade 3s ease-in-out forwards;
}

@keyframes twinkleAndFade {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    20% {
        transform: scale(1.5) rotate(180deg);
        opacity: 1;
    }
    80% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
    100% {
        transform: scale(0) rotate(540deg);
        opacity: 0;
    }
}

/* キラキラ演出 */
.sparkle {
    position: absolute;
    animation: sparkleAni 2s ease-in-out forwards;
}

@keyframes sparkleAni {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    25% {
        transform: scale(1.5);
        opacity: 1;
    }
    50% {
        transform: scale(1);
        opacity: 0.8;
    }
    75% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* 結果画面 */
.result-title {
    text-align: center;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.result-card {
    background: linear-gradient(135deg, #fff0f8 0%, #ffe6f2 100%);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    border: 3px solid #ffc0e3;
    box-shadow: 0 8px 24px rgba(255, 105, 180, 0.2);
    position: relative;
    z-index: 1;
}

.result-icon {
    font-size: 80px;
    text-align: center;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.result-icon img {
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: bounce 2s infinite;
}

.result-type {
    font-size: 28px;
    text-align: center;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-weight: bold;
}

/* キャラクターコメント */
.character-comment {
    font-size: 18px;
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 15px 0 25px 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.2), rgba(255, 192, 203, 0.2));
    border-radius: 15px;
    border-left: 4px solid #ff69b4;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.character-comment::before {
    content: '"';
    font-size: 24px;
    color: #ff69b4;
    font-weight: bold;
    position: absolute;
    left: 10px;
    top: 5px;
}

.character-comment::after {
    content: '"';
    font-size: 24px;
    color: #ff69b4;
    font-weight: bold;
    position: absolute;
    right: 10px;
    bottom: 5px;
}

/* 社畜レベル */
.shachu-level-container {
    margin: 30px 0;
    padding: 30px 35px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 248, 0.9));
    border-radius: 20px;
    border: 3px solid #ff69b4;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.shachu-level-label {
    font-size: 18px;
    font-weight: bold;
    color: #ff1493;
    text-align: center;
    margin-bottom: 15px;
}

.shachu-level-value {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 15px;
    animation: countUp 1s ease-out;
}

@keyframes countUp {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.shachu-level-bar-wrapper {
    width: 100%;
    height: 30px;
    background: #ffe6f2;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #ffc0e3;
    position: relative;
}

.shachu-level-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff69b4 0%, #ff1493 50%, #ff69b4 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 15px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(255, 20, 147, 0.5);
}

.result-sections {
    margin-bottom: 30px;
}

.result-section {
    background: rgba(255, 255, 255, 0.5);
    padding: 25px 30px;
    border-radius: 16px;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 192, 227, 0.3);
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #ff1493;
    margin-bottom: 12px;
    text-align: left;
}

.section-content {
    font-size: 15px;
    color: #666;
    line-height: 2;
    text-align: left;
}

/* 相性タイプリスト */
.compatibility-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.compatibility-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fff9fc 100%);
    border: 2px solid #ffc0e3;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.compatibility-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
    border-color: #ff69b4;
}

.compat-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.compat-name {
    font-size: 16px;
    font-weight: 600;
    color: #ff1493;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-label {
    font-size: 14px;
    color: #ff69b4;
    font-weight: 600;
}

.detail-bar {
    width: 100%;
    height: 28px;
    background: #fff0f8;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 2px solid #ffc0e3;
}

.detail-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff69b4 0%, #ff1493 50%, #ff69b4 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 14px;
    transition: width 1s ease-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    body:has(#result-screen.active) {
        padding: 10px 5px;
    }
    
    #result-screen {
        padding: 20px 5px;
    }
    
    .result-section {
        padding: 18px 15px;
    }
    
    .shachu-level-container {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .screen {
        padding: 30px 20px;
    }

    .title {
        font-size: 28px;
    }

    .question-text {
        font-size: 18px;
    }

    .option-btn {
        padding: 14px;
        font-size: 14px;
    }
    
    #result-screen {
        padding: 15px 5px;
    }
    
    .result-section {
        padding: 15px 12px;
    }
    
    .shachu-level-container {
        padding: 18px 12px;
    }
    
    .section-content {
        font-size: 14px;
        line-height: 1.8;
    }
    
    .section-title {
        font-size: 16px;
    }
}

/* ローディング画面 */
.loading-container {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border: 8px solid #ffe6f2;
    border-top: 8px solid #ff1493;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-subtext {
    font-size: 16px;
    color: #ff85c0;
    margin-bottom: 20px;
}

.loading-dots {
    font-size: 40px;
    color: #ff69b4;
    letter-spacing: 5px;
}

.loading-dots span {
    animation: blink 1.4s infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

/* 16種類のタイプ別レイアウト */

/* 0: 生粋の社畜 - 真っ黒ダーク */
body:has(.result-theme-0.active) {
    background: #000000 !important;
}

.result-theme-0 {
    background: #000000 !important;
}

.result-type-0 {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%) !important;
    border: 3px solid #444 !important;
    color: #ffffff !important;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2) !important;
}

.result-theme-0 .result-title,
.result-theme-0 .result-type {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 1px 1px 2px rgba(255, 255, 255, 0.3) !important;
    font-weight: 700 !important;
}

.result-theme-0 .section-title {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.result-theme-0 .section-content {
    color: #f0f0f0 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6) !important;
}

.result-theme-0 .compat-name {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.result-theme-0 .result-description,
.result-theme-0 .detail-label {
    color: #cccccc !important;
}

/* 1: バーンアウト予備軍 - 炎の燃焼 */
body:has(.result-theme-1.active) {
    background: linear-gradient(135deg, #ff4500 0%, #ff8c00 50%, #ff0000 100%) !important;
}

.result-theme-1 {
    background: linear-gradient(135deg, #ff4500 0%, #ff8c00 50%, #ff0000 100%) !important;
}

.result-type-1 {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6cc 100%) !important;
    border: 3px solid #ff6600 !important;
    box-shadow: 0 0 50px rgba(255, 69, 0, 0.8) !important;
    animation: fire 2s ease-in-out infinite !important;
}

@keyframes fire {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.result-theme-1 .result-title,
.result-theme-1 .result-type {
    background: linear-gradient(135deg, #ff4500, #ff0000) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.result-theme-1 .result-description,
.result-theme-1 .detail-label {
    color: #8b0000 !important;
}

/* 2: ストイック社畜 - シルバー金属 */
body:has(.result-theme-2.active) {
    background: linear-gradient(135deg, #c0c0c0 0%, #808080 100%) !important;
}

.result-theme-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #808080 100%) !important;
}

.result-type-2 {
    background: linear-gradient(135deg, #f0f0f0 0%, #d3d3d3 100%) !important;
    border: 3px solid #696969 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.result-theme-2 .result-title,
.result-theme-2 .result-type {
    background: linear-gradient(135deg, #4a4a4a, #000000) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* 3: 一匹狼ワーカー - 夜空と月 */
body:has(.result-theme-3.active) {
    background: #0a0a2e !important;
}

.result-theme-3 {
    background: #0a0a2e !important;
    position: relative;
    overflow: hidden;
}

.result-theme-3::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 60px 70px, white, transparent),
        radial-gradient(1px 1px at 50px 50px, white, transparent),
        radial-gradient(1px 1px at 130px 80px, white, transparent),
        radial-gradient(2px 2px at 90px 10px, white, transparent);
    background-size: 200px 200px;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.result-type-3 {
    background: linear-gradient(135deg, #1a1a3e 0%, #0a0a2e 100%) !important;
    border: 3px solid #4a4a8e !important;
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.5) !important;
}

.result-theme-3 .result-title,
.result-theme-3 .result-type {
    color: #e6e6fa !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 1px 1px 2px rgba(147, 112, 219, 0.5) !important;
    font-weight: 700 !important;
}

.result-theme-3 .section-title {
    color: #dda0dd !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.result-theme-3 .section-content {
    color: #f0e6ff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6) !important;
}

.result-theme-3 .compat-name {
    color: #e6e6fa !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.result-theme-3 .result-description,
.result-theme-3 .detail-label {
    color: #d8bfd8 !important;
}

/* 4: 心優しき社畜 - パステルピンク */
body:has(.result-theme-4.active) {
    background: linear-gradient(135deg, #ffc1e0 0%, #ffb3d9 100%) !important;
}

.result-theme-4 {
    background: linear-gradient(135deg, #ffc1e0 0%, #ffb3d9 100%) !important;
}

.result-type-4 {
    background: linear-gradient(135deg, #fff0f8 0%, #ffe6f2 100%) !important;
    border: 3px solid #ff69b4 !important;
    box-shadow: 0 8px 24px rgba(255, 182, 193, 0.6) !important;
}

/* 5: 繊細ワーカー - 水玉パターン */
body:has(.result-theme-5.active) {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%) !important;
}

.result-theme-5 {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%) !important;
    background-image: 
        radial-gradient(circle, #80deea 20%, transparent 20%),
        radial-gradient(circle, #80deea 20%, transparent 20%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
}

.result-type-5 {
    background: linear-gradient(135deg, #ffffff 0%, #e0f7fa 100%) !important;
    border: 3px solid #00acc1 !important;
}

.result-theme-5 .result-title,
.result-theme-5 .result-type {
    background: linear-gradient(135deg, #00838f, #006064) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* 6: チームプレイヤー - 虹色グラデーション */
body:has(.result-theme-6.active) {
    background: linear-gradient(135deg, #ff0080 0%, #ff8c00 20%, #ffff00 40%, #00ff00 60%, #0080ff 80%, #8000ff 100%) !important;
}

.result-theme-6 {
    background: linear-gradient(135deg, #ff0080 0%, #ff8c00 20%, #ffff00 40%, #00ff00 60%, #0080ff 80%, #8000ff 100%) !important;
}

.result-type-6 {
    background: linear-gradient(135deg, #ffffff 0%, #fff9fc 100%) !important;
    border: 3px solid #ff00ff !important;
    box-shadow: 0 8px 24px rgba(255, 0, 255, 0.4) !important;
}

.result-theme-6 .result-title,
.result-theme-6 .result-type {
    background: linear-gradient(90deg, #ff0080, #ff8c00, #ffff00, #00ff00, #0080ff, #8000ff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* 7: マイペース社員 - グリーン自然 */
body:has(.result-theme-7.active) {
    background: linear-gradient(135deg, #81c784 0%, #66bb6a 100%) !important;
}

.result-theme-7 {
    background: linear-gradient(135deg, #81c784 0%, #66bb6a 100%) !important;
}

.result-type-7 {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%) !important;
    border: 3px solid #4caf50 !important;
}

.result-theme-7 .result-title,
.result-theme-7 .result-type {
    background: linear-gradient(135deg, #2e7d32, #1b5e20) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* 8: ゆるふわ社畜 - パステル雲 */
body:has(.result-theme-8.active) {
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%) !important;
}

.result-theme-8 {
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%) !important;
}

.result-type-8 {
    background: linear-gradient(135deg, #ffffff 0%, #e1f5fe 100%) !important;
    border: 3px solid #81d4fa !important;
    border-radius: 40px !important;
}

.result-theme-8 .result-title,
.result-theme-8 .result-type {
    background: linear-gradient(135deg, #0288d1, #01579b) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* 9: 隠れ疲労タイプ - グレーモノクロ */
body:has(.result-theme-9.active) {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%) !important;
}

.result-theme-9 {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%) !important;
}

.result-type-9 {
    background: linear-gradient(135deg, #fafafa 0%, #e0e0e0 100%) !important;
    border: 3px solid #9e9e9e !important;
}

.result-theme-9 .result-title,
.result-theme-9 .result-type {
    background: linear-gradient(135deg, #616161, #424242) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* 10: お人好し社員 - イエローハッピー */
body:has(.result-theme-10.active) {
    background: linear-gradient(135deg, #fff59d 0%, #ffeb3b 100%) !important;
}

.result-theme-10 {
    background: linear-gradient(135deg, #fff59d 0%, #ffeb3b 100%) !important;
}

.result-type-10 {
    background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%) !important;
    border: 3px solid #fbc02d !important;
    box-shadow: 0 8px 24px rgba(255, 235, 59, 0.6) !important;
}

.result-theme-10 .result-title,
.result-theme-10 .result-type {
    background: linear-gradient(135deg, #f57f17, #ff6f00) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* 11: 現実派社員 - ネイビービジネス */
body:has(.result-theme-11.active) {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
}

.result-theme-11 {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
}

.result-type-11 {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    border: 3px solid #1d4ed8 !important;
}

.result-theme-11 .result-title,
.result-theme-11 .result-type {
    background: linear-gradient(135deg, #1e40af, #1e3a8a) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* 12: 家庭が大事 - オレンジウォーム */
body:has(.result-theme-12.active) {
    background: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%) !important;
}

.result-theme-12 {
    background: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%) !important;
}

.result-type-12 {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%) !important;
    border: 3px solid #f57c00 !important;
}

.result-theme-12 .result-title,
.result-theme-12 .result-type {
    background: linear-gradient(135deg, #e65100, #bf360c) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* 13: ライフワークバランス - パープルラベンダー */
body:has(.result-theme-13.active) {
    background: linear-gradient(135deg, #ce93d8 0%, #ba68c8 100%) !important;
}

.result-theme-13 {
    background: linear-gradient(135deg, #ce93d8 0%, #ba68c8 100%) !important;
}

.result-type-13 {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%) !important;
    border: 3px solid #9c27b0 !important;
}

.result-theme-13 .result-title,
.result-theme-13 .result-type {
    background: linear-gradient(135deg, #7b1fa2, #4a148c) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* 14: ボス - ゴールドリッチ */
body:has(.result-theme-14.active) {
    background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%) !important;
}

.result-theme-14 {
    background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%) !important;
}

.result-type-14 {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%) !important;
    border: 3px solid #f57f17 !important;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.8) !important;
}

.result-theme-14 .result-title,
.result-theme-14 .result-type {
    background: linear-gradient(135deg, #f57f17, #e65100) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* 15: 自由人 - 南国トロピカル */
body:has(.result-theme-15.active) {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 50%, #00bcd4 100%) !important;
}

.result-theme-15 {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 50%, #00bcd4 100%) !important;
}

.result-type-15 {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%) !important;
    border: 3px solid #00acc1 !important;
    box-shadow: 0 8px 24px rgba(0, 188, 212, 0.4) !important;
}

.result-theme-15 .result-title,
.result-theme-15 .result-type {
    background: linear-gradient(135deg, #0097a7, #006064) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* タッチデバイス用の調整 */
@media (hover: none) {
    .option-btn:hover {
        transform: none;
    }

    .option-btn:active {
        border-color: #ff69b4;
        background: #fff0f8;
    }
}

/* スマホ対応 */
@media (max-width: 768px) {
    /* スタート画面のスマホ対応 */
    .main-title {
        font-size: 3.5rem;
        color: #FF69B4 !important;
        text-shadow: 
            2px 2px 0px #ffffff,
            4px 4px 0px rgba(255, 255, 255, 0.8),
            6px 6px 10px rgba(0, 0, 0, 0.3) !important;
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8)) !important;
    }
    
    .sub-title {
        font-size: 1.4rem;
        color: #FF1493 !important;
        text-shadow: 2px 2px 0px #ffffff, 3px 3px 6px rgba(0, 0, 0, 0.2) !important;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6)) !important;
    }
    
    .start-description {
        font-size: 1.2rem;
        color: #C71585 !important;
        text-shadow: 2px 2px 0px #ffffff, 3px 3px 6px rgba(0, 0, 0, 0.2) !important;
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)) !important;
    }
    
    .start-sub-description {
        font-size: 1.0rem;
        color: #C71585 !important;
        text-shadow: 2px 2px 0px #ffffff, 3px 3px 6px rgba(0, 0, 0, 0.2) !important;
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)) !important;
    }
    
    /* 質問画面のスマホ対応 */
    .question-text {
        font-size: 18px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4)) !important;
    }
    
    .start-content {
        padding: 40px 15px 30px;
    }
    
    .start-btn {
        padding: 20px 40px;
        font-size: 1.4rem;
    }
    
    /* 全体キャラクターのスマホ対応 */
    .bottom-character {
        font-size: 1.5rem;
    }
    
    /* 雲のサイズ調整 */
    .cloud-1 {
        width: 60px;
        height: 30px;
    }
    
    .cloud-2 {
        width: 45px;
        height: 22px;
    }
    
    .cloud-3 {
        width: 75px;
        height: 37px;
    }
    
    /* 結果画面のスマホ対応 */
    #result-screen .container {
        max-width: 100%;
        padding: 2px !important;
        margin: 0 !important;
    }
    
    #result-screen .result-card {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 15px 8px !important;
        border-radius: 12px;
    }
    
    body:has(#result-screen.active) {
        padding: 1px !important;
        margin: 0 !important;
    }
    
    .result-sections {
        gap: 12px;
    }
    
    .result-section {
        padding: 12px 8px;
    }
    
    .section-content {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .compatibility-item {
        padding: 10px 12px;
    }
    
    .compat-icon {
        width: 32px;
        height: 32px;
    }
    
    .compat-name {
        font-size: 15px;
    }
}

/* マスコットアイコンのスタイル */
.title-mascot-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 0 5px; /* 左右の余白を最小限に */
    max-width: 100%;
    overflow: visible; /* 上下の動きで切れないように */
}

.title-section {
    flex: 1;
}

.mascot-section {
    flex: 0 0 auto;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 10px;
}

.mascot-section-bottom {
    flex: 0 0 auto;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    max-width: 100%;
    overflow: hidden;
}

.mascot-icon {
    width: 100px; /* PC版も適切なサイズに調整 - キャッシュクリア */
    height: 100px;
    object-fit: cover;
    object-position: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    mix-blend-mode: multiply;
    animation: float 3s ease-in-out infinite;
    display: block;
    opacity: 1;
    flex-shrink: 0;
}

/* 各マスコットのアニメーション遅延（6体） */
.mascot-section .mascot-icon:nth-child(1) {
    animation-delay: 0s;
}

.mascot-section .mascot-icon:nth-child(2) {
    animation-delay: 1s;
}

.mascot-section .mascot-icon:nth-child(3) {
    animation-delay: 2s;
}

.mascot-section-bottom .mascot-icon:nth-child(1) {
    animation-delay: 3s;
}

.mascot-section-bottom .mascot-icon:nth-child(2) {
    animation-delay: 4s;
}

.mascot-section-bottom .mascot-icon:nth-child(3) {
    animation-delay: 5s;
}

/* 002を中央の主人公として（1.24倍の大きさ） */
.hero-center {
    width: 124px; /* 100px * 1.24 */
    height: 124px;
    z-index: 2;
}

/* タイトル周りのマスコット配置 */
.title-with-mascots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.title-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-mascot {
    width: 100px; /* 中央5体と同じサイズ */
    height: 100px;
    object-fit: cover;
    object-position: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    mix-blend-mode: multiply;
    animation: float 3s ease-in-out infinite;
}

.title-mascot:nth-child(1) {
    animation-delay: 0s;
}

.title-mascot:nth-child(3) {
    animation-delay: 1.5s;
}

/* 004を1.2倍に */
.title-mascot:nth-child(1) {
    width: 120px; /* 100px * 1.2 */
    height: 120px;
}

/* ボタン周りのマスコット配置 */
.button-mascot-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.button-mascot {
    width: 100px; /* 中央5体と同じサイズ */
    height: 100px;
    object-fit: cover;
    object-position: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    mix-blend-mode: multiply;
    animation: float 3s ease-in-out infinite;
}

.button-mascot:nth-child(1) {
    animation-delay: 0s;
}

.button-mascot:nth-child(3) {
    animation-delay: 1.5s;
}

/* 008を1.2倍に */
.button-mascot:nth-child(3) {
    width: 120px; /* 100px * 1.2 */
    height: 120px;
}


/* モバイル対応 */
@media (max-width: 768px) {
    .mascot-icon {
        width: 55px; /* さらに大きく */
        height: 55px;
        object-fit: cover;
        object-position: center;
        flex-shrink: 0; /* 縮小を防ぐ */
    }
    
    .hero-center {
        width: 68px; /* 55px * 1.24 */
        height: 68px;
    }
    
    .title-mascot {
        display: none; /* スマホでは非表示 */
    }
    
    .title-with-mascots {
        gap: 10px; /* 狭くして画面に収める */
    }
    
    .title-mascot-container {
        padding: 0; /* 余白を完全に削除 */
        overflow: visible; /* 上下の動きで切れないように */
        min-height: 120px; /* 上下の動きのための余裕を確保 */
    }
    
    .button-mascot {
        display: none; /* スマホでは非表示 */
    }
    
    .button-mascot-container {
        gap: 10px; /* 狭くして画面に収める */
        margin-top: 15px;
        justify-content: center; /* ボタンを中央に */
    }
    
    .mascot-section {
        width: 95%; /* さらに幅を広げる */
        max-width: 600px; /* 最大幅も拡大 */
        margin: 30px auto; /* 上下マージンと中央配置 */
        gap: 8px; /* 適度な間隔 */
        padding: 0 10px; /* 左右のパディングを削減 */
        overflow: visible; /* 上下の動きで切れないように */
        justify-content: center; /* 中央配置に変更 */
        flex-direction: row; /* 横一列を強制 */
        flex-wrap: nowrap; /* 折り返し禁止 */
        align-items: center; /* 垂直中央配置 */
        display: flex;
    }
}

/* 結果発表画面の画像表示 */
.result-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    mix-blend-mode: multiply;
    display: block;
    margin: 0 auto 20px;
    opacity: 1;
}

/* モバイルでの結果画像 */
@media (max-width: 768px) {
    .result-image {
        width: 120px;
        height: 120px;
    }
}

/* 散りばめたマスコットアイコンのスタイル - スタート画面のみ */
#start-screen .scattered-mascot {
    position: absolute;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.scattered-mascot {
    display: none; /* デフォルトでは非表示 */
}

#start-screen .scattered-mascot-img {
    width: 40px; /* 小さめのサイズ */
    height: 40px;
    object-fit: cover;
    object-position: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    mix-blend-mode: multiply;
    display: block;
    opacity: 0.7; /* 少し薄く */
}

.scattered-mascot-img {
    display: none; /* デフォルトでは非表示 */
}

/* 各マスコットの配置位置（20体） - スタート画面のみ */
#start-screen .mascot-1 {
    top: 5%;
    left: 5%;
    animation-delay: 0.5s;
}

#start-screen .mascot-2 {
    top: 8%;
    right: 5%;
    animation-delay: 1.0s;
}

#start-screen .mascot-3 {
    top: 15%;
    left: 8%;
    animation-delay: 1.5s;
}

#start-screen .mascot-4 {
    top: 18%;
    right: 8%;
    animation-delay: 2.0s;
}

#start-screen .mascot-5 {
    top: 25%;
    left: 12%;
    animation-delay: 2.5s;
}

#start-screen .mascot-6 {
    top: 28%;
    right: 12%;
    animation-delay: 3.0s;
}

#start-screen .mascot-7 {
    top: 35%;
    left: 6%;
    animation-delay: 3.5s;
}

#start-screen .mascot-8 {
    top: 38%;
    right: 6%;
    animation-delay: 4.0s;
}

#start-screen .mascot-9 {
    top: 45%;
    left: 15%;
    animation-delay: 4.5s;
}

#start-screen .mascot-10 {
    top: 48%;
    right: 15%;
    animation-delay: 5.0s;
}

#start-screen .mascot-11 {
    top: 55%;
    left: 4%;
    animation-delay: 5.5s;
}

#start-screen .mascot-12 {
    top: 58%;
    right: 4%;
    animation-delay: 6.0s;
}

#start-screen .mascot-13 {
    top: 65%;
    left: 10%;
    animation-delay: 6.5s;
}

#start-screen .mascot-14 {
    top: 68%;
    right: 10%;
    animation-delay: 7.0s;
}

#start-screen .mascot-15 {
    top: 75%;
    left: 7%;
    animation-delay: 7.5s;
}

#start-screen .mascot-16 {
    top: 78%;
    right: 7%;
    animation-delay: 8.0s;
}

#start-screen .mascot-17 {
    top: 85%;
    left: 9%;
    animation-delay: 8.5s;
}

#start-screen .mascot-18 {
    top: 88%;
    right: 9%;
    animation-delay: 9.0s;
}

#start-screen .mascot-19 {
    top: 92%;
    left: 11%;
    animation-delay: 9.5s;
}

#start-screen .mascot-20 {
    top: 95%;
    right: 11%;
    animation-delay: 10.0s;
}

/* モバイルでの散りばめたマスコット - スタート画面のみ */
@media (max-width: 768px) {
    #start-screen .scattered-mascot-img {
        width: 30px; /* 小さめのサイズ */
        height: 30px;
        opacity: 0.6; /* より薄く */
    }
    
    #start-screen .mascot-1 {
        top: 8%;
        left: 10%;
    }
    
    #start-screen .mascot-2 {
        top: 12%;
        right: 10%;
    }
    
    #start-screen .mascot-3 {
        top: 80%;
        right: 15%;
    }
    
    #start-screen .mascot-4 {
        top: 70%;
        left: 15%;
    }
    
    #start-screen .mascot-5 {
        top: 20%;
        left: 25%;
    }
    
    #start-screen .mascot-6 {
        top: 30%;
        right: 25%;
    }
    
    #start-screen .mascot-7 {
        top: 55%;
        left: 5%;
    }
    
    #start-screen .mascot-8 {
        top: 40%;
        left: 15%;
    }
    
    #start-screen .mascot-9 {
        top: 12%;
        right: 18%;
    }
}

/* フッターリンクのスタイル */
.footer-links {
    margin-top: 40px;
    text-align: left;
    padding: 20px 0;
    white-space: nowrap;
    overflow-x: auto;
}

.footer-link {
    color: #ff1493;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
    margin: 0 8px;
    display: inline-block;
}

.footer-link:hover {
    color: #ff69b4;
    text-decoration: underline;
}

.footer-separator {
    color: #ffb3d9;
    margin: 0 4px;
    font-weight: bold;
    display: inline-block;
}

@media (max-width: 768px) {
    .footer-links {
        margin-top: 30px;
        padding: 15px 0;
        text-align: center;
        white-space: nowrap;
        overflow-x: hidden;
    }
    
    .footer-link {
        font-size: 11px;
        margin: 0 6px;
    }
    
    .footer-separator {
        margin: 0 2px;
    }
}

