        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

        :root {
            --navy:#16233f; --navy-2:#1d2c4d; --navy-soft:#24365c;
            --teal:#1a8b7d; --teal-d:#137164; --teal-tint:#e7f3f1;
            --gold:#eaa92c; --gold-d:#d4951a; --gold-tint:#fdf4e2;
            --primary-gradient: linear-gradient(135deg, #16233f 0%, #1d2c4d 50%, #24365c 100%);
            --secondary-gradient: linear-gradient(135deg, #1a8b7d 0%, #5cc0b2 100%);
            --success-gradient: linear-gradient(135deg, #1a8b7d 0%, #5cc0b2 100%);
            --warning-gradient: linear-gradient(135deg, #eaa92c 0%, #f0c266 100%);
            --purple-gradient: linear-gradient(135deg, #1a8b7d 0%, #16233f 100%);
            --dark-gradient: linear-gradient(135deg, #101a31 0%, #16233f 100%);
            --glass-bg: rgba(255, 255, 255, 0.1);
            --glass-border: rgba(255, 255, 255, 0.2);
            --glass-strong: rgba(255, 255, 255, 0.25);
            --text-primary: #1e293b;
            --text-light: #64748b;
            --shadow-glow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            --shadow-intense: 0 35px 60px -12px rgba(0, 0, 0, 0.35);
            --border-radius: 24px;
            --border-radius-large: 32px;
            --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

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

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--primary-gradient);
            background-attachment: fixed;
            min-height: 100vh;
            color: white;
            overflow-x: hidden;
            position: relative;
        }

        /* 革新的な背景エフェクト */
        .cosmic-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }

        .cosmic-orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(1px);
            animation: float-cosmic 20s infinite ease-in-out;
            opacity: 0.6;
        }

        .cosmic-orb:nth-child(1) {
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(234, 169, 44, 0.4) 0%, transparent 70%);
            top: 10%;
            left: 80%;
            animation-delay: 0s;
        }

        .cosmic-orb:nth-child(2) {
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(26, 139, 125, 0.4) 0%, transparent 70%);
            top: 60%;
            left: 10%;
            animation-delay: 7s;
        }

        .cosmic-orb:nth-child(3) {
            width: 250px;
            height: 250px;
            background: radial-gradient(circle, rgba(234, 169, 44, 0.3) 0%, transparent 70%);
            top: 30%;
            left: 50%;
            animation-delay: 14s;
        }

        @keyframes float-cosmic {

            0%,
            100% {
                transform: translate(0, 0) scale(1);
            }

            25% {
                transform: translate(30px, -50px) scale(1.1);
            }

            50% {
                transform: translate(-20px, 30px) scale(0.9);
            }

            75% {
                transform: translate(40px, 20px) scale(1.05);
            }
        }

        /* パーティクルシステム */
        .particle-system {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }

        .particle {
            position: absolute;
            width: 2px;
            height: 2px;
            background: white;
            border-radius: 50%;
            opacity: 0;
            animation: particle-flow 15s infinite linear;
        }

        .particle::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: inherit;
            border-radius: 50%;
            animation: particle-glow 2s infinite ease-in-out alternate;
        }

        @keyframes particle-flow {
            0% {
                transform: translateY(100vh) translateX(0) scale(0);
                opacity: 0;
            }

            10% {
                opacity: 1;
            }

            90% {
                opacity: 1;
            }

            100% {
                transform: translateY(-100px) translateX(100px) scale(1);
                opacity: 0;
            }
        }

        @keyframes particle-glow {
            0% {
                box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
            }

            100% {
                box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(234, 169, 44, 0.4);
            }
        }

        @keyframes fadeInOut {
            0% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.8);
            }
            50% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1);
            }
            100% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.8);
            }
        }

        .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 80px 20px 20px;
            position: relative;
            z-index: 1;
            text-align: center;
        }

        /* ヒーローセクション - 大幅改善 */
        .hero-section {
            text-align: center;
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);border: 1px solid rgba(255, 255, 255, 0.2);
            padding: 60px 40px 60px;
            border-radius: var(--border-radius-large);
            margin-bottom: 15px;
            box-shadow: var(--shadow-glow);
            position: relative;
            overflow: hidden;
            transform: translateY(20px);
            animation: heroEntrance 1.2s ease-out forwards;
        }
        /* V4: モバイル時のCookieバナー対応 */
        @media (max-width: 768px) {
            .hero-section {
                padding-bottom: 80px;
                margin-bottom: 10px;
            }
        }

        @keyframes heroEntrance {
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg,
                    rgba(79, 172, 254, 0.5),
                    rgba(26, 139, 125, 0.5),
                    rgba(67, 233, 123, 0.5),
                    rgba(250, 112, 154, 0.5));
            background-size: 200% 200%;
            animation: borderGlow 3s ease-in-out infinite;
            border-radius: inherit;
            z-index: -1;
        }

        @keyframes borderGlow {

            0%,
            100% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }
        }

        .hero-title {
            line-height: 1.2;
            font-size: 4rem;
            font-weight: 900;
            color: #ffffff;
            margin-bottom: 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 25px;
            animation: titleGlow 1.5s ease-out 0.3s both;
            letter-spacing: -0.02em;
        }

        .hero-emoji {
            font-size: 5rem;
            animation: emojiFloat 3s infinite ease-in-out;
            filter: drop-shadow(0 10px 25px rgba(234, 169, 44, 0.4));
        }

        @keyframes emojiFloat {

            0%,
            100% {
                transform: translateY(0) rotate(0deg);
            }
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.2rem;
                line-height: 1.4;
                gap: 15px;
            }
        }
        @media (max-width: 480px) {
            .hero-title {
                font-size: 1.7rem;
                line-height: 1.3;
                word-spacing: -0.05em;
            }
        }

            25% {
                transform: translateY(-15px) rotate(-5deg);
            }

            50% {
                transform: translateY(-10px) rotate(0deg);
            }

            75% {
                transform: translateY(-15px) rotate(5deg);
            }
        }

        @keyframes titleGlow {
            from {
                opacity: 0;
                transform: translateY(30px) scale(0.9);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .hero-subtitle {
            font-size: 1.5rem;
            color: white;
            line-height: 1.6;
            margin-bottom: 40px;
            animation: subtitleSlide 1s ease-out 0.6s both;
            font-weight: 500;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        @keyframes subtitleSlide {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 8px;
            margin-top: 40px;
            animation: statsReveal 1.2s ease-out 0.9s both;
            background: rgba(26, 139, 125, 0.12);
            padding: 20px;
            border-radius: 20px;
            border: 1px solid rgba(26, 139, 125, 0.3);
        }
        @media (max-width: 640px) {
            .stats-grid {
                grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
                gap: 12px;
            }
            .stat-card {
                padding: 20px 12px;
            }
            .stat-number {
                font-size: 2.0rem;
            }
            .stat-label {
                font-size: 0.95rem;
                font-weight: 700;
            }
        }

        .stat-card {
            background: linear-gradient(145deg, rgba(26, 139, 125, 0.2) 0%, rgba(79, 172, 254, 0.15) 100%);padding: 40px 25px;
            border-radius: 20px;
            border: 1px solid rgba(79, 172, 254, 0.3);
            cursor: default;
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            /* hover animation disabled */
        }

        .stat-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .stat-card:hover::before {
            left: 100%;
            transition: left 0.5s;
        }

        .stat-number {
            font-size: 3.5rem;
            font-weight: 800;
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: block;
            margin-bottom: 12px;
        }

        .stat-label {
            font-size: 1.15rem;
            color: rgba(255, 255, 255, 0.85);
            font-weight: 600;
        }

        @keyframes statsReveal {
            from {
                opacity: 0;
                transform: translateY(40px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* クイズコンテナ - 革命的改善 */
        .quiz-container {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);border: 1px solid rgba(255, 255, 255, 0.2);
            padding: 50px 40px;
            border-radius: var(--border-radius-large);
            box-shadow: var(--shadow-glow);
            margin-bottom: 40px;
            position: relative;
            overflow: hidden;
        }

        /* 動的プログレスバー */
        .progress-section {
            margin-bottom: 50px;
            text-align: center;
            position: relative;
        }

        .progress-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .progress-text {
            font-size: 1.2rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.95);
        }

        .progress-percentage {
            font-size: 2rem;
            font-weight: 800;
            background: var(--secondary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .progress-container {
            position: relative;
            height: 16px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #4facfe 0%, #00f2fe 50%, #43e97b 100%);
            border-radius: 10px;
            transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            box-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
        }

        .progress-bar::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            animation: progressShimmer 2s infinite;
        }

        @keyframes progressShimmer {
            0% {
                transform: translateX(-100%);
            }

            100% {
                transform: translateX(100%);
            }
        }

        /* 質問カード - 完全リデザイン */
        .question {
            display: none;
            opacity: 0;
            transform: translateX(50px);
            transition: var(--transition);
        }

        .question.active {
            display: block;
            animation: questionEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

        @keyframes questionEntrance {
            0% {
                opacity: 0;
                transform: translateX(50px) scale(0.95);
            }

            100% {
                opacity: 1;
                transform: translateX(0) scale(1);
            }
        }

        .question-header {
            text-align: center;
            margin-bottom: 50px;
            position: relative;
        }

        .question-category {
            display: inline-block;
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.7);
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 15px;
            padding: 8px 20px;
            background: rgba(234, 169, 44, 0.2);
            border-radius: 20px;
            border: 1px solid rgba(234, 169, 44, 0.3);
            font-weight: 600;
        }

        .question-title {
            font-size: 2.2rem;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.95);
            line-height: 1.3;
            margin-bottom: 15px;
            letter-spacing: -0.01em;
        }

        .question-subtitle {
            font-size: 1.1rem;
            color: rgba(255, 255, 255, 0.7);
            font-weight: 400;
        }

        /* オプションカード - 革新的デザイン */
        .options-grid {
            display: grid;
            gap: 20px;
            margin-bottom: 50px;
        }

        .option {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);border: 2px solid rgba(255, 255, 255, 0.15);
            padding: 30px;
            border-radius: 20px;
            cursor: pointer;
            transition: var(--transition-bounce);
            text-align: left;
            position: relative;
            overflow: hidden;
            transform: translateY(0);
        }

        .option::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(234, 169, 44, 0.1) 0%, rgba(26, 139, 125, 0.1) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .option:hover {
            transform: translateY(-8px) scale(1.02);
            border-color: rgba(79, 172, 254, 0.5);
            box-shadow: 0 25px 50px rgba(234, 169, 44, 0.2);
        }

        .option:hover::before {
            opacity: 1;
        }

        .option.selected {
            background: linear-gradient(135deg, rgba(234, 169, 44, 0.3) 0%, rgba(26, 139, 125, 0.3) 100%);
            border-color: rgba(79, 172, 254, 0.8);
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 25px 50px rgba(234, 169, 44, 0.4);
        }

        .option:focus {
            outline: 2px solid rgba(79, 172, 254, 0.8);
            outline-offset: 4px;
        }

        /* 選択済みチェックマーク */
        .option.selected::after {
            content: '✓';
            position: absolute;
            top: 12px;
            right: 12px;
            width: 28px;
            height: 28px;
            background: linear-gradient(135deg, #43e97b, #38f9d7);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            font-weight: 900;
            color: white;
            box-shadow: 0 4px 12px rgba(67, 233, 123, 0.5);
        }

        /* 自動進行ヒント */
        #autoAdvanceHint {
            text-align: center;
            color: rgba(255, 255, 255, 0.75);
            font-size: 0.85rem;
            min-height: 24px;
            margin-top: 10px;
            transition: opacity 0.3s;
            font-weight: 500;
            letter-spacing: 0.02em;
        }

        /* ツールチップスタイル（P1-2実装） */
        .tooltip-icon {
            display: inline-block;
            width: 24px;
            height: 24px;
            background: rgba(26, 139, 125, 0.4);
            border: 1px solid rgba(26, 139, 125, 0.7);
            border-radius: 50%;
            text-align: center;
            line-height: 24px;
            font-size: 0.85rem;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.9);
            cursor: help;
            margin-left: 10px;
            transition: all 0.2s;
        }
        .tooltip-icon:hover {
            background: rgba(26, 139, 125, 0.6);
            box-shadow: 0 4px 12px rgba(26, 139, 125, 0.3);
        }
        .tooltip-text {
            display: none;
            position: absolute;
            background: rgba(0, 0, 0, 0.9);
            color: #fff;
            padding: 12px 16px;
            border-radius: 8px;
            font-size: 0.9rem;
            white-space: normal;
            width: 280px;
            max-width: 90vw;
            z-index: 1000;
            border: 1px solid rgba(26, 139, 125, 0.5);
            margin-top: 8px;
            line-height: 1.5;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        }
        .tooltip-icon.active + .tooltip-text {
            display: block;
        }
        @media (max-width: 640px) {
            .tooltip-text {
                width: calc(100vw - 32px);
                font-size: 0.85rem;
            }
        }

        /* TOP1ロードマップ */
        .start-roadmap {
            background: rgba(67, 233, 123, 0.08);
            border: 1px solid rgba(234, 169, 44, 0.3);
            border-radius: 14px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .roadmap-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: rgba(67, 233, 123, 0.95);
            margin-bottom: 14px;
        }

        .roadmap-steps {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .roadmap-step {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .step-num {
            width: 28px;
            height: 28px;
            min-width: 28px;
            background: linear-gradient(135deg, #43e97b, #38f9d7);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.875rem;
            font-weight: 800;
            color: #1a2f1a;
        }

        .step-text {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.85);
            line-height: 1.5;
            padding-top: 4px;
        }

        .option-icon {
            font-size: 2.5rem;
            margin-bottom: 15px;
            display: block;
            filter: drop-shadow(0 4px 12px rgba(234, 169, 44, 0.3));
        }

        .option-title {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: rgba(255, 255, 255, 0.95);
        }

        .option-description {
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.5;
        }

        /* ナビゲーション - モダンデザイン */
        .navigation {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 40px;
        }

        .btn {
            padding: 18px 35px;
            border: none;
            border-radius: 16px;
            cursor: pointer;
            font-size: 1.1rem;
            font-weight: 700;
            transition: var(--transition-bounce);
            display: flex;
            align-items: center;
            gap: 12px;
            position: relative;
            overflow: hidden;
            text-decoration: none;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn-primary {
            background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
            color: white;
            box-shadow: 0 15px 30px rgba(30, 64, 175, 0.4);
            white-space: nowrap;
            min-width: 340px;
            padding: 22px 50px;
        }

        .btn-primary:hover {
            transform: translateY(-4px) scale(1.05);
            box-shadow: 0 25px 50px rgba(30, 64, 175, 0.5);
        }

        .btn-secondary {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);color: rgba(255, 255, 255, 0.9);
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

        .btn-secondary:hover {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
            transform: translateY(-3px);
            border-color: rgba(255, 255, 255, 0.4);
        }

        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        /* V1改善: hero-cta-btnのコントラスト向上・視認性強化 - 黄色に変更 */
        .hero-cta-btn {
            background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
            color: #1a1a1a;
            font-weight: 800;
            font-size: 1.1rem;
            padding: 20px 40px;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
            position: relative;
            overflow: hidden;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }

        .hero-cta-btn:hover {
            transform: translateY(-4px) scale(1.05);
            box-shadow: 0 15px 40px rgba(255, 215, 0, 0.8);
            background: linear-gradient(135deg, #FFED4E 0%, #FFE135 100%);
        }

        .hero-cta-btn:active {
            transform: translateY(-2px) scale(1.02);
        }

        .question-counter {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);padding: 15px 25px;
            border-radius: 25px;
            color: rgba(255, 255, 255, 0.9);
            font-weight: 600;
            border: 1px solid rgba(255, 255, 255, 0.2);
            font-size: 1rem;
        }

        /* 広告の表示(どの背景でも読める濃さ・大きさ) */
        .sja-pr {
            display: inline-block;
            font-size: 14px;
            font-weight: 700;
            line-height: 1.4;
            padding: 1px 8px;
            border-radius: 4px;
            background: #1f2937;
            color: #fff;
            letter-spacing: 0.05em;
        }

        /* 共有URLを開いたときの案内 */
        #sharedView {
            display: none;
            background: rgba(79, 172, 254, 0.15);
            border: 1px solid rgba(79, 172, 254, 0.4);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 20px;
            text-align: center;
            color: #fff;
        }

        #sharedView.show {
            display: block;
        }

        /* 結果セクション - 劇的改善 */
        .results {
            display: none;
        }

        .results.show {
            display: block;
            animation: resultsReveal 0.4s ease-out;
        }

        /* 不透明度だけにする(拡大・移動があると、表示直後のスクロール位置がずれて見出しがヘッダーの裏に入る) */
        @keyframes resultsReveal {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .results-header {
            text-align: center;
            background: linear-gradient(145deg, rgba(67, 233, 123, 0.2) 0%, rgba(56, 249, 215, 0.2) 100%);border: 1px solid rgba(234, 169, 44, 0.3);
            padding: 60px 40px;
            border-radius: var(--border-radius-large);
            box-shadow: var(--shadow-glow);
            margin-bottom: 40px;
            position: relative;
            overflow: hidden;
        }

        .results-header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: conic-gradient(from 0deg, rgba(67, 233, 123, 0.1), rgba(56, 249, 215, 0.3), rgba(67, 233, 123, 0.1));
            animation: resultGlow 20s linear infinite;
            z-index: -1;
        }

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

        .results-title {
            font-size: 3.5rem;
            font-weight: 900;
            background: var(--success-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 25px;
            letter-spacing: -0.02em;
        }

        .results-subtitle {
            font-size: 1.4rem;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 30px;
            font-weight: 500;
        }

        .ai-badge {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            background: linear-gradient(145deg, rgba(234, 169, 44, 0.2) 0%, rgba(26, 139, 125, 0.2) 100%);padding: 15px 25px;
            border-radius: 30px;
            border: 1px solid rgba(234, 169, 44, 0.3);
            color: rgba(255, 255, 255, 0.9);
            font-weight: 600;
            animation: badgePulse 2s infinite ease-in-out;
        }

        @keyframes badgePulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }
        }

        /* 職業推奨カード - プレミアムデザイン */
        .job-recommendation {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);border: 1px solid rgba(255, 255, 255, 0.2);
            padding: 50px;
            margin-bottom: 40px;
            border-radius: var(--border-radius-large);
            box-shadow: var(--shadow-glow);
            position: relative;
            overflow: hidden;
            transition: var(--transition-bounce);
        }

        .job-recommendation::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 6px;
            background: var(--success-gradient);
        }

        .job-recommendation.rank-1 {
            border-color: rgba(255, 215, 0, 0.5);
            box-shadow: 0 25px 50px rgba(255, 200, 0, 0.2);
        }

        .job-recommendation.rank-1::before {
            background: linear-gradient(90deg, #f6d365 0%, #fda085 100%);
        }

        .job-recommendation.rank-2 {
            border-color: rgba(192, 192, 192, 0.45);
        }

        .job-recommendation.rank-2::before {
            background: linear-gradient(90deg, #c0c0c0 0%, #e8e8e8 100%);
        }

        .rank-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.875rem;
            font-weight: 700;
            padding: 5px 12px;
            border-radius: 20px;
        }

        .rank-badge-1 {
            background: linear-gradient(135deg, rgba(246,211,101,0.3), rgba(253,160,133,0.3));
            color: #fda085;
            border: 1px solid rgba(253,160,133,0.4);
        }

        .rank-badge-2 {
            background: rgba(192,192,192,0.15);
            color: rgba(255,255,255,0.7);
            border: 1px solid rgba(192,192,192,0.3);
        }

        .rank-badge-3 {
            background: rgba(255,255,255,0.08);
            color: rgba(255,255,255,0.6);
            border: 1px solid rgba(255,255,255,0.15);
        }

        .job-recommendation:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-intense);
        }

        .job-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 20px;
        }

        .job-info {
            display: flex;
            align-items: center;
            gap: 25px;
        }

        .job-icon {
            font-size: 4rem;
            filter: drop-shadow(0 8px 16px rgba(67, 233, 123, 0.4));
            animation: iconFloat 3s infinite ease-in-out;
        }

        @keyframes iconFloat {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-8px);
            }
        }

        .job-details {
            flex: 1;
        }

        .job-title {
            font-size: 2rem;
            font-weight: 800;
            color: rgba(255, 255, 255, 0.95);
            margin-bottom: 8px;
            letter-spacing: -0.01em;
        }

        .job-rank {
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.7);
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 600;
        }

        .match-section {
            text-align: right;
        }

        .match-rate {
            font-size: 3rem;
            font-weight: 900;
            background: var(--success-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: block;
            line-height: 1;
        }

        .match-label {
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.7);
            font-weight: 500;
        }

        /* レスポンシブデザイン強化 */
        @media (max-width: 768px) {
            .container {
                padding: 70px 15px 15px;
            }

            .hero-section {
                padding: 40px 25px;
            }

            .hero-title {
            line-height: 1.2;
                font-size: 2.8rem;
                flex-direction: column;
                gap: 15px;
            }

            .hero-emoji {
                font-size: 3.5rem;
            }

            .hero-subtitle {
                font-size: 1.2rem;
            }

            .quiz-container,
            .results-header,
            .job-recommendation {
                padding: 30px 20px;
            }

            .question-title {
                font-size: 1.8rem;
            }

            .options-grid {
                gap: 12px;
            }

            .option {
                padding: 20px;
                min-height: 60px;
            }

            .stats-grid {
                grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
                gap: 15px;
            }

            .navigation {
                flex-direction: column-reverse;
                gap: 20px;
                align-items: center;
            }

            .navigation .btn {
                width: 100%;
                justify-content: center;
            }

            .job-header {
                flex-direction: column;
                text-align: center;
            }

            .match-section {
                text-align: center;
            }
        }

        /* アクセシビリティ: モーション低減設定への対応 */
        @media (prefers-reduced-motion: reduce) {
            .cosmic-orb,
            .particle,
            .particle::before,
            .hero-emoji,
            .job-icon,
            .ai-badge {
                animation: none !important;
            }
            .hero-section,
            .hero-title,
            .hero-subtitle,
            .stats-grid {
                animation: none !important;
                opacity: 1;
                transform: none;
            }
            .hero-section::before {
                animation: none !important;
            }
            .results-header::before {
                animation: none !important;
            }
            .progress-bar::after {
                animation: none !important;
            }
        }

        /* ローディングアニメーション */
        .loading {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            min-height: 300px;
            text-align: center;
        }

        .loading-spinner {
            width: 80px;
            height: 80px;
            border: 4px solid rgba(255, 255, 255, 0.2);
            border-top: 4px solid #4facfe;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 30px;
        }

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

            100% {
                transform: rotate(360deg);
            }
        }

        .loading-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 15px;
        }

        .loading-subtitle {
            font-size: 1.1rem;
            color: rgba(255, 255, 255, 0.7);
            animation: loadingPulse 2s infinite ease-in-out;
        }

        @keyframes loadingPulse {

            0%,
            100% {
                opacity: 0.7;
            }

            50% {
                opacity: 1;
            }
        }

        /* ユーティリティクラス */
        .text-gradient {
            background: var(--secondary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .glass-effect {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .shadow-glow {
            box-shadow: var(--shadow-glow);
        }

        .transition-bounce {
            transition: var(--transition-bounce);
        }

        .site-header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
        }

        .site-header .logo {
            font-weight: 700;
            font-size: 1.2rem;
            color: white;
            text-decoration: none;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 60%;
        }
        .site-header .logo .full-text { display: inline; }
        .site-header .logo .short-text { display: none; }
        @media (max-width: 400px) {
            .site-header .logo { font-size: 0.85rem; }
            .site-header .logo .full-text { display: none; }
            .site-header .logo .short-text { display: inline; }
        }

        .menu-toggle {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: white;
        }

        .lang-switch {
            background: rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.25);
            border-radius: 20px;
            color: white;
            font-size: 0.8rem;
            font-weight: 600;
            padding: 6px 12px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .lang-switch:hover {
            background: rgba(255, 255, 255, 0.25);
        }
        /* V5: モバイルではヘッダー内のEN言語切替ボタンを非表示（サイドメニュー内に残す） */
        @media (max-width: 767px) {
            .site-header .lang-switch {
                display: none;
            }
        }

        .site-nav {
            display: none;
        }

        .side-menu {
            position: fixed;
            top: 0;
            left: -280px;
            width: 280px;
            height: 100%;
            background: linear-gradient(135deg, rgba(22, 35, 63, 0.98), rgba(29, 44, 77, 0.98));
            padding: 80px 24px 20px;
            transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1001;
            overflow-y: auto;
            border-right: 1px solid rgba(255, 255, 255, 0.1);
        }

        .side-menu a {
            display: block;
            color: rgba(255, 255, 255, 0.95);
            margin-bottom: 20px;
            text-decoration: none;
            padding: 14px 16px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.2s;
            background: rgba(255, 255, 255, 0.05);
        }

        .side-menu a:hover {
            background: rgba(26, 139, 125, 0.3);
            color: #00f2fe;
        }

        .site-nav a {
            color: white;
            text-decoration: none;
        }

        .side-menu.open {
            left: 0;
            box-shadow: 2px 0 20px rgba(0,0,0,0.5);
        }

        body.menu-open {
            overflow: hidden;
        }

        body.menu-open::after {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.4);
            z-index: 999;
        }

        @media (min-width: 768px) {
            .menu-toggle {
                display: none;
            }

            .site-nav {
                display: flex;
                gap: 20px;
            }

            .side-menu {
                display: none;
            }

            .container {
                margin: 0 auto;
            }
        }

        .site-footer {
            text-align: center;
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
        }

        .site-footer nav a {
            margin: 0 10px;
            color: white;
            text-decoration: none;
        }

        /* ヒーローCTAボタン */
        @keyframes heroPulse {
            0%, 100% { box-shadow: 0 15px 40px rgba(67, 233, 123, 0.4); }
            50% { box-shadow: 0 15px 40px rgba(67, 233, 123, 0.75), 0 0 0 10px rgba(67, 233, 123, 0.12); }
        }
        .hero-cta-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
            color: #1a1a1a;
            border: none;
            padding: 22px 52px;
            border-radius: 50px;
            font-size: 1.3rem;
            font-weight: 900;
            cursor: pointer;
            margin-top: 36px;
            box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6), 0 0 0 4px rgba(255, 215, 0, 0.2);
            transition: var(--transition-bounce);
            text-decoration: none;
            animation: heroPulse 2.5s ease-in-out infinite;
            width: 100%;
            max-width: 420px;
            margin-left: auto;
            margin-right: auto;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
            letter-spacing: 0.01em;
        }
        .hero-cta-btn .full-text { display: inline; }
        .hero-cta-btn .short-text { display: none; }
        .hero-cta-btn:hover {
            transform: translateY(-6px) scale(1.06);
            box-shadow: 0 28px 56px rgba(255, 215, 0, 0.7), 0 0 0 6px rgba(255, 215, 0, 0.3);
            animation-play-state: paused;
        }
        @media (prefers-reduced-motion: reduce) {
            .hero-cta-btn { animation: none; }
            .hero-cta-btn:hover { transform: none; }
        }
        @media (max-width: 767px) {
            .hero-cta-btn {
                width: 100% !important;
                max-width: 100% !important;
                font-size: 1.2rem !important;
                font-weight: 900 !important;
                padding: 22px 28px !important;
                margin-top: 28px !important;
                margin-bottom: 32px !important;
                border-radius: 14px !important;
                min-height: 56px !important;
                background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%) !important;
                box-shadow: 0 12px 32px rgba(255, 215, 0, 0.6) !important;
                color: #1a1a1a !important;
            }
            .hero-cta-btn:active {
                transform: translateY(-4px) !important;
                box-shadow: 0 16px 40px rgba(255, 215, 0, 0.7) !important;
            }
            .hero-cta-btn .full-text { display: none; }
            .hero-cta-btn .short-text { display: inline; }
        }

        /* サイドメニューオーバーレイ */
        .side-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
        }
        .side-overlay.open {
            display: block;
        }
    
        /* ===== モバイル最適化（2026-05-18追加）===== */
        @media (max-width: 480px) {
            .option-icon { font-size: 1.8rem !important; margin-bottom: 6px !important; }
            .question-title { font-size: 1.2rem !important; }
            .option { padding: 14px 12px !important; min-height: 60px !important; display: flex !important; flex-direction: column !important; justify-content: center !important; }
            .option-title { font-size: 1.1rem !important; }
            .option-description { font-size: 0.875rem !important; line-height: 1.5 !important; }
        }
        @media (max-width: 768px) {
            body { font-size: 15px; }
            input, select, textarea {
                font-size: 16px !important;
                min-height: 44px;
            }
            button, .btn, [role="button"] {
                min-height: 44px;
                font-size: 1rem;
            }
            h1 { font-size: clamp(1.6rem, 6vw, 2.4rem) !important; }
            h2 { font-size: clamp(1.3rem, 5vw, 2rem) !important; }
            .option-card { padding: 12px 16px; } .progress-bar { margin: 12px 0; }
        }

/* Phase 8: Mobile Optimization */
input, select, textarea { font-size: 16px !important; }
button, .btn, .btn-primary, .option-btn, [role="button"] { min-height: 48px; min-width: 48px; touch-action: manipulation; }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .max-w-lg { padding-left: 1rem; padding-right: 1rem; }
}

@media print{
  header,footer,nav,button,.no-print,
  [class*="share"],[class*="affiliate"],[id*="share"],
  [id*="affiliate"],[id*="banner"],
  script,noscript{display:none!important}
  body{background:#fff!important;color:#000!important;font-size:12pt}
  [id*="result"],[id*="output"],[id*="advice"],[id*="diagnosis"],[class*="result"]{display:block!important}
  a[href]::after{content:none!important}
}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}
.related-link{padding:10px;text-align:center;border:1px solid #ddd;border-radius:4px;text-decoration:none;color:#333;display:block;transition:background 0.15s;}
.related-link:hover{background:#f5f5f5;}

/* AdSense unfilled: collapse empty ad slots */
ins.adsbygoogle[data-ad-status="unfilled"]{display:none!important;margin:0!important;height:0!important}

/* V5: Mobile scroll guide */
.mobile-scroll-guide {
    display: none;
    text-align: center;
    margin-top: 36px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
@media (max-width: 768px) {
    .mobile-scroll-guide {
        display: flex;
    }
}
@keyframes scrollPulse {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(8px); opacity: 1; }
}
/* V4: Genre card line-height improvement for better readability */
.genre-card-desc {
    line-height: 1.9 !important;
    letter-spacing: 0.03em !important;
    word-spacing: 0.15em !important;
    margin-bottom: 8px !important;
}
/* V5: Enhanced CTA button visibility and contrast */
.genre-cta-btn {
    background: linear-gradient(135deg, #00bfa5 0%, #00acc1 100%) !important;
    box-shadow: 0 6px 20px rgba(0, 191, 165, 0.45) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    padding: 12px 16px !important;
    font-size: 0.92rem !important;
    min-height: 44px !important;
    border-radius: 8px !important;
    color: #fff !important;
}
.genre-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 191, 165, 0.55) !important;
    background: linear-gradient(135deg, #00acc1 0%, #00897b 100%) !important;
}
/* V2+V3: Mobile trust info optimization */
@media (max-width: 768px) {
    .genre-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .trust-badge-group {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 16px !important;
        align-items: stretch !important;
    }
    .trust-badge {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 12px 8px !important;
        font-size: 0.85rem !important;
    }
    .trust-badge strong {
        font-size: 1.3rem !important;
    }
    .trust-badge p {
        font-size: 0.75rem !important;
    }
}
@media (max-width: 480px) {
    .trust-badge-group {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        margin-bottom: 12px !important;
    }
    .trust-badge {
        padding: 10px 6px !important;
        font-size: 0.75rem !important;
    }
    .trust-badge strong {
        font-size: 1.2rem !important;
    }
    .trust-badge p {
        font-size: 0.65rem !important;
    }
}

/* ===== SJA-01 面2: 結果と共有(P1-2 の結果部分・P1-3)===== */
:root {
    --sja-header-h: 88px;               /* 固定ヘッダー(.site-header)の高さ+余白 */
    --sja-text: #ffffff;
    --sja-text-muted: rgba(255, 255, 255, 0.85);
    --sja-surface: rgba(255, 255, 255, 0.06);
    --sja-border: rgba(255, 255, 255, 0.18);
    --sja-fs-body: 1rem;                /* 本文 16px */
    --sja-fs-note: 0.875rem;            /* 注記 14px(これより小さくしない) */
    --sja-tap: 44px;                    /* タップ対象の最小 */
    --sja-great: #86efac;
    --sja-good: #93c5fd;
    --sja-conditional: #fcd34d;
}
/* 固定ヘッダーに設問・結果の先頭が隠れないように */
#quizContainer, #results, #results .results-header { scroll-margin-top: var(--sja-header-h); }
@media (max-width: 768px) {
    body { font-size: 16px; }
}

/* 結果カード */
.job-tier {
    display: inline-block;
    margin-left: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: var(--sja-fs-note);
    font-weight: 800;
    letter-spacing: 0;
    background: rgba(0, 0, 0, 0.35);
}
.sja-tier-great { color: var(--sja-great); border: 1px solid var(--sja-great); }
.sja-tier-good { color: var(--sja-good); border: 1px solid var(--sja-good); }
.sja-tier-conditional { color: var(--sja-conditional); border: 1px solid var(--sja-conditional); }
.sja-tie {
    display: inline-block;
    margin-left: 6px;
    font-size: var(--sja-fs-note);
    font-weight: 700;
    letter-spacing: 0;
    color: var(--sja-text);
}
.job-rank { text-transform: none; letter-spacing: 0; }
.sja-card-desc {
    background: var(--sja-surface);
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    border-left: 4px solid rgba(67, 233, 123, 1);
    font-size: var(--sja-fs-body);
    line-height: 1.8;
    color: var(--sja-text);
}
.sja-card-box {
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    font-size: var(--sja-fs-body);
    line-height: 1.7;
    color: var(--sja-text);
}
.sja-card-box ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.sja-card-box-title { font-size: var(--sja-fs-body); font-weight: 800; margin-bottom: 8px; color: var(--sja-text); }
.sja-card-reasons { background: rgba(79, 172, 254, 0.12); border: 1px solid rgba(79, 172, 254, 0.35); }
.sja-card-pitfalls { background: rgba(252, 211, 77, 0.10); border: 1px solid rgba(252, 211, 77, 0.35); }
.sja-conds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}
.sja-cond { background: var(--sja-surface); border: 1px solid var(--sja-border); border-radius: 12px; padding: 14px 16px; }
.sja-cond-label { font-size: var(--sja-fs-note); font-weight: 700; color: var(--sja-text-muted); margin-bottom: 4px; }
.sja-cond-value { font-size: 1.05rem; font-weight: 800; color: var(--sja-text); }
.sja-cond-user { font-size: var(--sja-fs-note); color: var(--sja-text-muted); margin-top: 4px; }
.sja-note { font-size: var(--sja-fs-note); color: var(--sja-text-muted); margin: 0 0 20px; }
.sja-card-section { margin-bottom: 20px; }
.sja-card-desc, .sja-card-box, .sja-cond, .start-roadmap { text-align: left; }
.sja-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sja-chip {
    background: rgba(67, 233, 123, 0.2);
    color: var(--sja-text);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: var(--sja-fs-note);
    font-weight: 600;
}
.sja-pr-row { margin: 0 0 8px; }
.sja-card-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.sja-card-cta .btn { text-decoration: none; min-height: var(--sja-tap); white-space: normal; text-align: center; }
.sja-result-actions { text-align: center; margin: 30px 0; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.start-roadmap .step-text { font-size: var(--sja-fs-body); color: var(--sja-text); }

/* 過去の結果 */
.sja-history { background: var(--sja-surface); border: 1px solid var(--sja-border); border-radius: 20px; padding: 20px; margin-top: 10px; }
.sja-history h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 12px; color: var(--sja-text); }
.sja-history-row {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.05); padding: 12px 16px; border-radius: 10px; margin-bottom: 8px;
    font-size: var(--sja-fs-note); color: var(--sja-text-muted);
}
.sja-history-top { color: var(--sja-text); font-weight: 600; }

/* 共有 */
.sja-share { text-align: center; margin: 24px 0; padding: 20px; background: var(--sja-surface); border: 1px solid var(--sja-border); border-radius: 16px; }
.sja-share-title { font-weight: 800; margin: 0 0 8px; color: var(--sja-text); font-size: 1.05rem; }
.sja-share-sub { font-size: var(--sja-fs-note); color: var(--sja-text-muted); margin: 0 0 14px; }
.sja-share-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sja-share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: var(--sja-tap); min-width: var(--sja-tap); padding: 10px 20px;
    border: none; border-radius: 8px; color: #fff; text-decoration: none;
    font-size: var(--sja-fs-note); font-weight: 700; cursor: pointer;
}
.sja-share-native { background: #0369a1; }
.sja-share-x { background: #0f1419; }
.sja-share-fb { background: #1877f2; }
.sja-share-line { background: #06c755; color: #04210f; }
.sja-shared-from { font-size: var(--sja-fs-body); color: var(--sja-text-muted); margin: 0 0 6px; }
.sja-shared-top { font-size: 1.15rem; font-weight: 800; margin: 0 0 14px; color: var(--sja-text); }

/* チャートの凡例 */
.sja-legend { margin-top: 16px; }
.sja-legend-summary {
    display: flex; align-items: center; justify-content: center; min-height: var(--sja-tap);
    cursor: pointer; font-size: var(--sja-fs-note); color: var(--sja-text-muted);
}
.sja-legend-name { font-size: var(--sja-fs-note); font-weight: 700; color: var(--sja-text); margin: 4px 0 2px; }
.sja-legend-desc { font-size: var(--sja-fs-note); color: var(--sja-text-muted); line-height: 1.5; }

@media (max-width: 768px) {
    .job-title { font-size: 1.5rem; }
    .job-icon { font-size: 3rem; }
}

/* 動きを減らす設定: 結果の出現・カードの浮き上がり・背景の粒を止める */
@media (prefers-reduced-motion: reduce) {
    .results.show { animation: none !important; }
    .job-recommendation:hover { transform: none !important; }
    .particle-system, .particle { display: none !important; }
}

/* 結果の下の広告欄(スキル習得枠・TOP3 の職種に関連する広告) */
.sja-ad-area { margin: 24px 0; }
.sja-ad-item { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 16px; padding: 20px; margin: 16px 0; text-align: center; color: #fff; }
.sja-ad-job-title { font-size: 1rem; font-weight: 700; margin: 0 0 12px; line-height: 1.6; }

/* SJA-01 P1-3 コントラスト(WCAG AA: 4.5:1、大きい文字は3:1)。色相は保ち、背景を濃く/文字を明るくする */
.progress-percentage, .results-title { background: linear-gradient(135deg, #5cc0b2 0%, #a7e3d9 100%); -webkit-background-clip: text; background-clip: text; }
.question-category { color: #fff; background: rgba(234, 169, 44, 0.28); }
.option-description { color: rgba(255, 255, 255, 0.92); }
.roadmap-title { color: #7ff0a8; }
.rank-badge-1 { background: #f6d365; color: #3d2a00; border-color: #e0b84a; }
.rank-badge-2 { background: #e2e8f0; color: #1e293b; border-color: #cbd5e1; }
.rank-badge-3 { background: #475569; color: #fff; border-color: #64748b; }
.sja-share-fb { background: #0f5ccc; }

/* SJA-01b: 設問の見出し・選択肢・「次の質問」を、固定ヘッダーと同意バナーの間の1画面に収める */
.question-header { margin-bottom: 20px; }
.options-grid { margin-bottom: 16px; }
.navigation { margin-top: 16px; }
.question-title:focus { outline: none; }
.question-title:focus-visible { outline: 3px solid #9fd3ff; outline-offset: 4px; border-radius: 6px; }
@media (min-width: 768px) {
    .options-grid { grid-template-columns: repeat(3, 1fr); }
    .option { padding: 22px; }
}
@media (max-width: 480px) {
    .question-header { margin-bottom: 14px; }
    .question-category { margin-bottom: 8px; padding: 6px 14px; }
    .question-title { margin-bottom: 6px; }
    .option { display: grid !important; grid-template-columns: 2.2rem 1fr; column-gap: 12px; align-items: center; padding: 12px 14px !important; }
    .option-icon { grid-row: 1 / span 2; margin-bottom: 0 !important; text-align: center; }
    .option-title { margin-bottom: 2px; }
}
/* 診断結果の次のステップは、結果を出した後だけ出す */
.next-steps { display: none; }
body.sja-has-results .next-steps { display: block; }
.sja-ad-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 10px; color: #fff; }
.sja-ad-text { font-size: 0.95rem; color: rgba(255,255,255,0.9); margin: 0 0 14px; line-height: 1.6; }
.sja-ad-item .btn { display: inline-flex; justify-content: center; }
