/* 音感レベル診断と完全統一したデザイン */

/* Logo Header */
.logo-header {
    text-align: center;
    margin-bottom: 20px;
}

.nuarl-logo {
    width: 80px;
    height: auto;
    display: block;
    margin: 0 auto;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    background: linear-gradient(135deg, #E1BCAF 0%, #EDFAB8 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #030504;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    padding: 20px 0;
}

.container {
    width: 90%;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 15px 50px rgba(3, 5, 4, 0.12), 0 5px 15px rgba(3, 5, 4, 0.08);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

h1 {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
    color: #030504;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.subtitle {
    color: #9B8816;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* イントロコンテンツ */
.intro-content {
    line-height: 1.85;
    color: #333;
}

.intro-content h2 {
    color: #9B8816;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.intro-content p {
    margin-bottom: 1.2rem;
}

.intro-content ul {
    margin-left: 1.8rem;
    margin-bottom: 1.2rem;
}

.intro-content li {
    margin-bottom: 0.5rem;
}

/* ノートボックス */
.note-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    line-height: 1.7;
}

.note-box.info {
    background: rgba(59, 130, 246, 0.08);
    border: 2px solid rgba(59, 130, 246, 0.2);
}

.note-box.warning {
    background: rgba(239, 68, 68, 0.08);
    border: 2px solid rgba(239, 68, 68, 0.2);
}

.note-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.fun-comment {
    background: rgba(155, 136, 22, 0.08);
    border-left: 4px solid #9B8816;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    font-style: italic;
    color: #666;
}

/* プロダクトプレビュー */
.product-preview {
    background: linear-gradient(135deg, rgba(225, 188, 175, 0.15) 0%, rgba(237, 250, 184, 0.15) 100%);
    border: 2px solid rgba(155, 136, 22, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.product-preview-header h3 {
    color: #9B8816;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.product-preview-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    font-weight: 600;
}

.preview-icon {
    font-size: 1.5rem;
}

/* ボタン */
.btn {
    background: #030504;
    color: #EDFAB8;
    border: 3px solid #9B8816;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    margin: 2rem auto 0;
    width: fit-content;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(155, 136, 22, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(155, 136, 22, 0.35);
    border-color: #B39A1A;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn.secondary {
    background: transparent;
    color: #030504;
    border-color: #9B8816;
    margin-top: 1rem;
}

.btn.secondary:hover {
    background: rgba(155, 136, 22, 0.1);
}

/* 問題画面 */
.progress-info {
    text-align: center;
    margin-bottom: 2rem;
}

.question-number {
    font-size: 0.95rem;
    color: #9B8816;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.question-tag {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(155, 136, 22, 0.15);
    border: 2px solid rgba(155, 136, 22, 0.3);
    border-radius: 50px;
    font-weight: 700;
    color: #030504;
    font-size: 0.9rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(3, 5, 4, 0.08);
    border-radius: 10px;
    margin-top: 1.2rem;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #9B8816 0%, #B39A1A 100%);
    width: 0%;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(155, 136, 22, 0.4);
}

.question-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.8rem;
    margin-bottom: 2rem;
    color: #030504;
    line-height: 1.4;
}

.choices-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.choice-btn {
    background: linear-gradient(135deg, rgba(225, 188, 175, 0.15) 0%, rgba(237, 250, 184, 0.15) 100%);
    border: 3px solid rgba(155, 136, 22, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #030504;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.choice-btn:hover {
    transform: translateY(-2px);
    border-color: #9B8816;
    box-shadow: 0 4px 15px rgba(155, 136, 22, 0.2);
}

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

.choice-subtitle {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* 結果画面 */
.result-score {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(225, 188, 175, 0.25) 0%, rgba(237, 250, 184, 0.25) 100%);
    border-radius: 20px;
    margin-bottom: 2.5rem;
    border: 2px solid rgba(155, 136, 22, 0.15);
    position: relative;
}

.type-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(155, 136, 22, 0.2);
    border: 2px solid #9B8816;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.result-score h2 {
    color: #9B8816;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.confidence-text {
    font-size: 1.1rem;
    color: #030504;
    font-weight: 600;
    margin: 0.8rem 0;
}

.result-comment {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.7;
    margin-top: 1rem;
}

.result-details {
    line-height: 1.85;
    color: #333;
}

.result-details h3 {
    color: #9B8816;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.tips-list, .points-list {
    margin-left: 1.8rem;
    margin-bottom: 1.5rem;
}

.tips-list li, .points-list li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

/* リサーチ詳細 */
.research-details {
    background: rgba(3, 5, 4, 0.04);
    border: 2px solid rgba(155, 136, 22, 0.2);
    border-radius: 16px;
    margin: 2rem 0;
    overflow: hidden;
}

.research-details summary {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-weight: 700;
    color: #9B8816;
    font-size: 1.1rem;
    list-style: none;
    user-select: none;
}

.research-details summary::-webkit-details-marker {
    display: none;
}

.research-details summary::before {
    content: '▶';
    display: inline-block;
    margin-right: 0.8rem;
    transition: transform 0.3s;
}

.research-details[open] summary::before {
    transform: rotate(90deg);
}

.research-content {
    padding: 0 1.5rem 1.5rem;
}

.research-content p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.doi-references {
    margin-top: 1.5rem;
}

.doi-references h4 {
    color: #9B8816;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.doi-references ol {
    margin-left: 1.8rem;
    font-size: 0.9rem;
    line-height: 1.8;
}

.doi-references li {
    margin-bottom: 0.8rem;
}

.doi-references a {
    color: #9B8816;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.doi-references a:hover {
    color: #B39A1A;
    text-decoration: underline;
}

/* プロダクトカード */
.product-card {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(155, 136, 22, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 136, 22, 0.15);
    border-color: #9B8816;
}

.product-image-placeholder {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(225, 188, 175, 0.3) 0%, rgba(237, 250, 184, 0.3) 100%);
    border: 2px dashed rgba(155, 136, 22, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder-text {
    color: #9B8816;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #030504;
    margin-bottom: 0.8rem;
}

.product-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-link {
    display: inline-block;
    color: #9B8816;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}

.product-link:hover {
    color: #B39A1A;
    text-decoration: underline;
}

.reference {
    background: rgba(3, 5, 4, 0.04);
    padding: 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 2rem;
    border-left: 4px solid #9B8816;
}

.reference strong {
    color: #030504;
    font-weight: 700;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 2rem;
        border-radius: 20px;
    }

    h1 {
        font-size: 1.6rem;
    }

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

    .product-image-placeholder {
        width: 100%;
        height: 150px;
    }

    .result-score h2 {
        font-size: 1.8rem;
    }

    .product-preview-items {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* TrackEar+製品カード - 中央揃え */
.product-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.product-image-wrapper {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1.5rem auto;
    text-align: center;
}

.product-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.product-info {
    width: 100%;
    text-align: center;
}

.product-info h3 {
    color: #9B8816;
    margin: 0.5rem 0;
    font-size: 1.5rem;
}

.product-info h4 {
    color: #7A6A2F;
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
}

.product-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #5A4A1F;
    margin: 0.8rem 0;
}

.product-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.product-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(155, 136, 22, 0.1);
    border: 1px solid #9B8816;
    border-radius: 8px;
    color: #9B8816;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.product-link:hover {
    background: #9B8816;
    color: white;
}

/* フッター */
.footer {
    background: rgba(255, 255, 255, 0.95);
    border-top: 2px solid rgba(155, 136, 22, 0.2);
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-company {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    color: #5A4A1F;
}

.footer-company a {
    color: #9B8816;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-company a:hover {
    color: #B39A1A;
    text-decoration: underline;
}

.footer-links {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #7A6A2F;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #9B8816;
    text-decoration: underline;
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: #8B7D47;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #9B8816;
    font-weight: 600;
}

/* レスポンシブ対応 - 製品カード */
@media (max-width: 768px) {
    .product-image-wrapper {
        max-width: 250px;
    }
    
    .product-info h3 {
        font-size: 1.3rem;
    }
    
    .product-links {
        flex-direction: column;
        align-items: center;
    }
    
    .product-link {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}
