/* =======================================
   キャストタイプ診断LP 専用スタイル
   diagnosis.css
======================================= */

/* グローバル横スクロール防止 */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

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

/* ヒーローバナーセクション */
.diagnosis-hero-banner {
    background: #1e293b;
    padding: 0;
    margin: 0;
}

.diagnosis-hero-banner .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 導入セクション */
.intro-section {
    padding: 80px 20px;
    background: #ffffff;
}

.intro-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 2rem 0;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.intro-badge i {
    margin-right: 8px;
    color: #fbbf24;
}

.intro-section h2 {
    font-size: 2rem;
    text-align: center;
    margin: 0 0 2rem 0;
    color: #1f2937;
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 2.5rem;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.intro-point {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.intro-point h3 {
    font-size: 1.25rem;
    color: #667eea;
    margin: 0 0 0.75rem 0;
}

.intro-point h3 i {
    margin-right: 8px;
}

.intro-point p {
    margin: 0;
    line-height: 1.7;
    color: #4b5563;
}

/* タイプ理由セクション */
.type-reason-section {
    padding: 80px 20px;
    background: #f9fafb;
}

.type-reason-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.type-reason-section h2 {
    font-size: 2rem;
    text-align: center;
    margin: 0 0 1rem 0;
    color: #1f2937;
}

.section-intro {
    text-align: center;
    font-size: 1.05rem;
    color: #6b7280;
    margin-bottom: 3rem;
}

.reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.reason-card {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.reason-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.reason-card h3 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
    color: #1f2937;
}

.reason-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6b7280;
}

.reason-cta {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-top: 2rem;
}

/* 診断説明セクション */
.diagnosis-explain-section {
    padding: 80px 20px;
    background: #ffffff;
}

.diagnosis-explain-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.diagnosis-explain-section h2 {
    font-size: 2rem;
    text-align: center;
    margin: 0 0 3rem 0;
    color: #1f2937;
}

.explain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.explain-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.explain-card:hover {
    transform: translateY(-3px);
}

.explain-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1.25rem;
}

.explain-card h3 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
    color: #1f2937;
}

.explain-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7280;
}

/* タイプ分布セクション */
.distribution-section {
    padding: 60px 20px;
    background: white;
}

.distribution-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.distribution-section h2 {
    font-size: 2rem;
    text-align: center;
    margin: 0 0 2rem 0;
    color: #1f2937;
}

.distribution-stats {
    text-align: center;
    margin-bottom: 3rem;
}

.stat-highlight {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
}

.distribution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.dist-item:hover {
    background: #f3f4f6;
}

.type-name {
    font-size: 0.95rem;
    color: #374151;
    font-weight: 500;
}

.type-percent {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
}

.distribution-note {
    text-align: center;
    font-size: 0.9rem;
    color: #9ca3af;
    margin: 0;
}

/* 診断セクション */
.diagnosis-section {
    padding: 80px 20px;
    background: #f9fafb;
}

/* 診断スタート強調スタイル */
.diagnosis-start-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    max-width: 100vw;
    box-sizing: border-box;
}

/* 結果表示時は背景を白に */
.diagnosis-start-highlight.result-shown {
    background: #ffffff;
    padding: 60px 20px;
}

.diagnosis-start-highlight.result-shown::before {
    display: none;
}

/* 結果表示時にテキストを黒に */
.diagnosis-start-highlight.result-shown .diagnosis-subtitle {
    color: #1f2937;
    text-shadow: none;
}

.diagnosis-start-highlight.result-shown .diagnosis-main-title {
    color: #1f2937;
    text-shadow: none;
}

.diagnosis-start-highlight.result-shown .feature-item {
    background: rgba(102, 126, 234, 0.1);
    color: #1f2937;
    border-color: #667eea;
}

.diagnosis-start-highlight.result-shown .feature-item i {
    color: #667eea;
}

.diagnosis-start-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, 10px) scale(1.05); }
}

.diagnosis-start-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.pulse-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(251,191,36,0.6), 0 0 30px rgba(251,191,36,0.4);
    animation: pulse-badge-mega 1.5s ease-in-out infinite;
    border: 3px solid white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes pulse-badge-mega {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 8px 20px rgba(251,191,36,0.6), 0 0 30px rgba(251,191,36,0.4);
    }
    50% { 
        transform: scale(1.1); 
        box-shadow: 0 12px 30px rgba(251,191,36,0.8), 0 0 50px rgba(251,191,36,0.6);
    }
}

.pulse-badge i {
    margin-right: 6px;
    animation: spin-star 3s linear infinite;
}

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

.diagnosis-main-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: white;
    margin: 0 0 1rem 0;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}

.diagnosis-main-title i {
    margin-right: 0.5rem;
    color: #fbbf24;
}

.diagnosis-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    margin: 0 0 2rem 0;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.diagnosis-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-item i {
    color: #fbbf24;
    font-size: 1.2rem;
}

.diagnosis-section .container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.diagnosis-section h2 {
    font-size: 2rem;
    text-align: center;
    margin: 0 0 1rem 0;
    color: #1f2937;
}

.diagnosis-instruction {
    text-align: center;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    font-weight: 500;
}

#diagnosis-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    max-width: 100%;
    min-height: 400px;
    position: relative;
    z-index: 1;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* プログレスバー */
.progress-bar {
    background: white;
    border-radius: 50px;
    padding: 8px;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}

.progress-fill {
    height: 12px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 50px;
    transition: width 0.4s ease;
    width: 5%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
}

/* 質問カード */
.question-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 0 0 4px rgba(102,126,234,0.15);
    animation: fadeInUp 0.5s ease;
    min-height: 300px;
    display: block !important;
    visibility: visible !important;
    position: relative;
    z-index: 2;
    border: 4px solid transparent;
    background-clip: padding-box;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.question-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #667eea, #764ba2, #fbbf24);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.6;
    animation: border-glow 3s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

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

.question-title {
    font-size: 2rem;
    text-align: center;
    margin: 0 0 3rem 0;
    padding: 1.5rem 2rem;
    color: #1f2937;
    line-height: 1.7;
    display: block !important;
    visibility: visible !important;
    min-height: 60px;
    position: relative;
    z-index: 3;
    font-weight: 800;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 3px solid #fbbf24;
    animation: question-highlight 3s ease-in-out infinite;
    word-break: normal;
    overflow-wrap: anywhere;
    white-space: normal;
    max-width: 100%;
    box-sizing: border-box;
}

@keyframes question-highlight {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        border-color: #fbbf24;
    }
    50% { 
        box-shadow: 0 6px 25px rgba(251,191,36,0.5), 0 0 20px rgba(251,191,36,0.3);
        border-color: #f59e0b;
    }
}

@keyframes title-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.05); }
}
    50% { filter: brightness(1.2); }
}

.question-options {
    display: flex !important;
    flex-direction: column;
    gap: 1.5rem;
    visibility: visible !important;
}

.option-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid #667eea;
    padding: 2rem 2.5rem 2rem 4rem;
    border-radius: 16px;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: block !important;
    visibility: visible !important;
    width: 100%;
    position: relative;
    z-index: 3;
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 0.02em;
    word-break: normal;
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1.6;
    max-width: 100%;
    box-sizing: border-box;
}

.option-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    border-color: #fbbf24;
    border-width: 4px;
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 35px rgba(102,126,234,0.6), 0 0 25px rgba(251,191,36,0.5);
}

.option-btn::before {
    content: '✓';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.option-btn:hover::before {
    opacity: 1;
    left: 1rem;
    animation: check-bounce 0.6s ease;
}

@keyframes check-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

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

/* 結果カード */
.result-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    animation: fadeInScale 0.6s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.result-image {
    text-align: center;
    margin-bottom: 2rem;
}

.result-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.result-type-name {
    font-size: 2rem;
    text-align: center;
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    font-weight: 900;
}

.result-type-en {
    text-align: center;
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0 0 1rem 0;
    font-style: italic;
}

/* 結果ページ内の統計表示 */
.result-statistics {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-left: 4px solid #667eea;
    border-radius: 8px;
    text-align: center;
}

.result-statistics .stats-text {
    font-size: 0.95rem;
    color: #1f2937;
    line-height: 1.6;
    margin: 0;
}

.result-statistics .stats-highlight {
    color: #667eea;
    font-weight: bold;
    font-size: 1.1rem;
}

.result-statistics .stats-icon {
    margin-right: 8px;
    color: #667eea;
}

.result-statistics .stats-note {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 8px 0 0 0;
    line-height: 1.5;
}

.result-statistics .stats-note i {
    margin-right: 6px;
    color: #667eea;
}

.result-code {
    text-align: center;
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 700;
    margin-bottom: 2.5rem;
    padding: 0.5rem 1rem;
    background: #f0f9ff;
    border-radius: 8px;
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
}

.result-content {
    margin-bottom: 2.5rem;
}

.result-content h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin: 2rem 0 1rem 0;
    padding-left: 1rem;
    border-left: 4px solid #667eea;
}

.result-content p {
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1rem;
}

.result-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.result-content ul li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.result-content ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* CTAセクション */
.cta-section {
    padding: 80px 20px;
}

.cta-mid {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
}

.cta-bottom {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: white;
}

.cta-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2rem;
    text-align: center;
    margin: 0 0 2rem 0;
}

.cta-section h3 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
}

.cta-problem {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.problem-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.problem-list li {
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    position: relative;
    font-size: 1.05rem;
}

.problem-list li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.cta-solution {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.cta-solution p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.solution-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.solution-list li {
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.solution-list li i {
    position: absolute;
    left: 0;
    color: #4ade80;
}

.cta-button-large {
    display: inline-block;
    background: white;
    color: #1e3a8a;
    padding: 1.25rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.cta-button-large i {
    margin-left: 8px;
}

.cta-description {
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.btn-cta-primary, .btn-cta-secondary {
    padding: 1.25rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-cta-primary {
    background: white;
    color: #374151;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta-secondary:hover {
    background: white;
    color: #374151;
    transform: translateY(-3px);
}

.cta-trust-badges {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.badge-item i {
    font-size: 1.5rem;
    color: #fbbf24;
}

/* 信頼性補強セクション */
.trust-section {
    padding: 80px 20px;
    background: #ffffff;
}

.trust-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.trust-section h2 {
    font-size: 2rem;
    text-align: center;
    margin: 0 0 2.5rem 0;
    color: #1f2937;
}

.trust-statement {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: center;
}

.trust-statement i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.trust-explanation {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 2.5rem;
    text-align: center;
}

.trust-explanation strong {
    color: #667eea;
    font-weight: 700;
}

.trust-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.trust-feature {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.trust-feature i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.trust-feature h3 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
    color: #1f2937;
}

.trust-feature p {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7280;
}

/* 店舗メリットセクション */
.store-merit-section {
    padding: 80px 20px;
    background: #f9fafb;
}

.store-merit-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.store-merit-section h2 {
    font-size: 2rem;
    text-align: center;
    margin: 0 0 3rem 0;
    color: #1f2937;
}

.merit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.merit-card {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.merit-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102,126,234,0.2);
}

.merit-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1.25rem;
}

.merit-card h3 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
    color: #1f2937;
}

.merit-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6b7280;
}

/* SNSシェアボタン */
.share-buttons-container {
    margin: 2.5rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
}

.share-title {
    font-size: 1.25rem;
    text-align: center;
    margin: 0 0 1.5rem 0;
    color: #1f2937;
}

.share-title i {
    color: #667eea;
    margin-right: 0.5rem;
}

.share-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-btn-twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn-twitter:hover {
    background: #1a8cd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29,161,242,0.4);
}

.share-btn-x {
    background: #000000;
    color: white;
}

.share-btn-x:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.share-btn-instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.share-btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(188,24,136,0.4);
}

.share-btn-line {
    background: #06C755;
    color: white;
}

.share-btn-line:hover {
    background: #05b34c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6,199,85,0.4);
}

.share-btn-facebook {
    background: #1877F2;
    color: white;
}

.share-btn-facebook:hover {
    background: #1466d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24,119,242,0.4);
}

.share-btn-copy {
    background: #6b7280;
    color: white;
}

.share-btn-copy:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107,114,128,0.4);
}

.share-btn-native {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 700;
    grid-column: 1 / -1;
    font-size: 1.05rem;
    padding: 1rem 1.5rem;
    position: relative;
}

.share-btn-native:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16,185,129,0.5);
}

.share-btn-native i {
    font-size: 1.2rem;
}

.share-btn-native::after {
    content: "📱 スマホ推奨";
    position: absolute;
    top: -8px;
    right: 10px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* タイプ本文スタイル */
.type-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
}

.type-description h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
    margin: 1.5rem 0 0.75rem 0;
    padding: 0.5rem 0 0.5rem 1rem;
    border-left: 4px solid #667eea;
    background: linear-gradient(to right, rgba(102,126,234,0.05), transparent);
}

.type-description h4:first-child {
    margin-top: 0;
}

.type-description p {
    margin: 0.75rem 0;
    line-height: 1.8;
}

.type-description .type-bullet {
    margin: 0.5rem 0 0.5rem 1.5rem;
    padding-left: 1rem;
    position: relative;
}

.type-description .type-bullet::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero-banner-img {
        width: 100%;
        height: auto;
    }
    
    .diagnosis-start-highlight {
        padding: 50px 15px;
    }
    
    /* 結果表示時はさらに余白を削減 */
    .diagnosis-start-highlight.result-shown {
        padding: 30px 15px;
    }
    
    .diagnosis-main-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .diagnosis-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .diagnosis-features {
        gap: 0.75rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .feature-item {
        font-size: 0.9rem;
        padding: 10px 18px;
        justify-content: center;
    }
    
    .pulse-badge {
        font-size: 1rem;
        padding: 12px 24px;
        animation: pulse-badge-mega-mobile 1.5s ease-in-out infinite;
    }
    
    @keyframes pulse-badge-mega-mobile {
        0%, 100% { 
            transform: scale(1); 
            box-shadow: 0 6px 16px rgba(251,191,36,0.6), 0 0 25px rgba(251,191,36,0.4);
        }
        50% { 
            transform: scale(1.08); 
            box-shadow: 0 10px 24px rgba(251,191,36,0.8), 0 0 40px rgba(251,191,36,0.6);
        }
    }
    
    /* 重複定義のため削除（後の定義を使用） */
    
    /* 重複定義のため削除（後の定義を使用） */
    
    .intro-badge {
        font-size: 0.85rem;
        padding: 10px 20px;
        display: block;
        text-align: center;
    }
    
    .intro-section h2,
    .type-reason-section h2,
    .diagnosis-section h2,
    .trust-section h2,
    .store-merit-section h2 {
        font-size: 1.5rem;
        line-height: 1.6;
    }
    
    /* セクションのパディング調整 */
    .intro-section,
    .type-reason-section,
    .diagnosis-section,
    .trust-section,
    .store-merit-section {
        padding: 50px 15px;
    }
    
    /* テキストの幅を広げる */
    .intro-section .container,
    .type-reason-section .container,
    .diagnosis-section .container,
    .trust-section .container {
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    /* 段落テキストの最適化 */
    .intro-text,
    .section-intro,
    .trust-statement,
    .trust-explanation {
        font-size: 0.95rem;
        line-height: 1.8;
        text-align: left;
    }
    
    .diagnosis-instruction {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 10px;
        text-align: center;
        font-weight: 600;
    }
    
    /* 質問カードの最適化 */
    .question-card {
        padding: 1.5rem 1rem;
        margin: 0;
    }
    
    .question-card::before {
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border-width: 2px;
    }
    
    .question-title {
        font-size: 1.3rem;
        line-height: 1.7;
        word-break: normal;
        overflow-wrap: anywhere;
        margin: 0 0 2rem 0;
        padding: 1rem 1.25rem;
        font-weight: 800;
        white-space: normal;
    }
    
    .question-options {
        gap: 1.25rem;
    }
    
    .option-btn {
        font-size: 1.05rem;
        padding: 1.5rem 1rem 1.5rem 3rem;
        line-height: 1.7;
        text-align: left;
        word-break: normal;
        overflow-wrap: anywhere;
        font-weight: 700;
        white-space: normal;
    }
    
    .option-btn:hover {
        transform: translateY(-3px) scale(1.02);
    }
    
    .option-btn::before {
        left: 1rem;
        font-size: 1.5rem;
    }
    
    .option-btn:hover::before {
        left: 0.75rem;
    }
    
    .progress-bar {
        margin-bottom: 2rem;
        padding: 6px;
    }
    
    .progress-fill {
        height: 10px;
    }
    
    .progress-text {
        font-size: 0.85rem;
    }
    
    .diagnosis-instruction {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 10px;
        text-align: center;
        font-weight: 600;
    }
    
    /* 結果表示の最適化 */
    .result-type-name {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .result-type-en {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .result-content {
        font-size: 0.95rem;
        line-height: 1.8;
    }
    
    .type-description p {
        font-size: 0.95rem;
        line-height: 1.8;
        text-align: left;
    }
    
    .result-image img {
        max-width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-cta-primary, .btn-cta-secondary {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
    }
    
    .reason-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .distribution-grid {
        grid-template-columns: 1fr;
    }
    
    /* intro-point の最適化 */
    .intro-point {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .intro-point h3 {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .intro-point p {
        font-size: 0.95rem;
        line-height: 1.8;
    }
    
    /* 統計表示のスマホ最適化 */
    .result-statistics {
        padding: 0.875rem 1rem;
        margin: 1rem 0;
    }
    
    .result-statistics .stats-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .result-statistics .stats-highlight {
        font-size: 1rem;
    }
    
    .result-statistics .stats-note {
        font-size: 0.75rem;
        margin-top: 6px;
    }
}

@media (max-width: 480px) {
    /* ヒーローセクション */
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.5;
    }
    
    /* 超小型デバイス向け質問最適化 */
    .question-title {
        font-size: 1.15rem;
        padding: 0.875rem 1rem;
        line-height: 1.7;
        word-break: normal;
        overflow-wrap: anywhere;
    }
    
    .option-btn {
        font-size: 1rem;
        padding: 1.25rem 0.875rem 1.25rem 2.75rem;
        line-height: 1.7;
        word-break: normal;
        overflow-wrap: anywhere;
    }
    
    .option-btn::before {
        left: 0.875rem;
        font-size: 1.3rem;
    }
    
    .question-card {
        padding: 1.25rem 0.875rem;
    }
    
    .diagnosis-section .container {
        padding: 0 5px;
    }
    
    .page-hero {
        padding: 30px 15px !important;
    }
    
    .page-title {
        font-size: 1.5rem !important;
        line-height: 1.5 !important;
    }
    
    .page-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
    
    /* 診断セクションの最適化 */
    .diagnosis-start-highlight {
        padding: 40px 12px;
    }
    
    /* 結果表示時は最小限の余白に */
    .diagnosis-start-highlight.result-shown {
        padding: 20px 12px;
    }
    
    .diagnosis-main-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .diagnosis-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .pulse-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
        margin-bottom: 1rem;
    }
    
    .diagnosis-features {
        gap: 0.5rem;
    }
    
    .feature-item {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .feature-item i {
        font-size: 1rem;
    }
    
    /* セクション全体 */
    .intro-section,
    .type-reason-section,
    .diagnosis-section,
    .trust-section,
    .store-merit-section {
        padding: 40px 12px;
    }
    
    .intro-section h2,
    .type-reason-section h2,
    .diagnosis-section h2,
    .trust-section h2 {
        font-size: 1.25rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }
    
    /* コンテナの幅調整 */
    .container {
        padding: 0 12px;
    }
    
    .diagnosis-section .container {
        padding: 0 8px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .diagnosis-instruction {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        padding: 0 5px;
    }
    
    /* 質問カード */
    .question-card {
        padding: 1.5rem 1rem;
        margin: 0 5px;
        border-radius: 12px;
    }
    
    .question-card::before {
        border-radius: 12px;
    }
    
    .question-title {
        font-size: 1.05rem;
        line-height: 1.75;
        margin-bottom: 1.75rem;
        padding: 0.75rem 0.875rem;
        word-break: normal;
        overflow-wrap: anywhere;
        white-space: normal;
        max-width: 100%;
    }
    }
    
    .question-options {
        gap: 1rem;
    }
    
    .option-btn {
        font-size: 0.95rem;
        padding: 1.1rem 0.75rem 1.1rem 2.5rem;
        border-radius: 10px;
        text-align: left;
        line-height: 1.75;
        word-break: normal;
        overflow-wrap: anywhere;
        white-space: normal;
        max-width: 100%;
    }
    
    .option-btn::before {
        font-size: 1.2rem;
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .option-btn:hover::before {
        left: 0.5rem;
    }
    
    .progress-bar {
        padding: 6px;
        margin-bottom: 1.5rem;
    }
    
    .progress-fill {
        height: 10px;
    }
    
    .progress-text {
        font-size: 0.85rem;
    }
    
    /* 結果カード */
    .result-card {
        padding: 1.5rem 1rem;
        margin: 0;
    }
    
    .result-image {
        margin-bottom: 1.5rem;
    }
    
    .result-type-name {
        font-size: 1.3rem;
        line-height: 1.5;
    }
    
    .result-code {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .result-content {
        padding: 0;
        margin-bottom: 2rem;
    }
    
    .result-content h3 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .type-description h4 {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .type-description p {
        font-size: 0.9rem;
        line-height: 1.8;
    }
    
    /* シェアボタン */
    .share-buttons-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .share-btn {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .share-btn-native::after {
        font-size: 0.65rem;
        padding: 2px 6px;
        top: -6px;
        right: 8px;
    }
        min-height: 250px !important;
    }
    
    #diagnosis-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 350px !important;
    }
    
    .question-title {
        display: block !important;
        visibility: visible !important;
        font-size: 1.05rem !important;
        min-height: 40px !important;
        line-height: 1.6 !important;
        margin-bottom: 2rem;
    }
    
    .question-options {
        display: flex !important;
        visibility: visible !important;
    }
    
    .option-btn {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        font-size: 0.9rem !important;
        padding: 1rem !important;
        line-height: 1.6 !important;
        text-align: left !important;
    }
    
    /* reason-card の最適化 */
    .reason-card {
        padding: 1.5rem 1rem;
    }
    
    .reason-card h3 {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .reason-card p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    /* シェアボタン */
    .share-buttons-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .share-btn {
        font-size: 0.9rem;
        padding: 0.875rem 1rem;
    }
}
