.aga-check-container {
    max-width: 800px;
    margin: 0 auto;
    /* padding: 20px; */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.aga-check-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    position: relative;
}


.start-screen {
    text-align: center;
    padding: 20px 0;
}

.start-content {
    max-width: 600px;
    margin: 0 auto;
}

.start-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.start-description {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
}

.start-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #555;
}

.feature-icon {
    font-size: 24px;
}

.start-button {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: #fff;
    border: none;
    padding: 20px 60px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
}

.start-note {
    font-size: 14px;
    color: #999;
    margin-top: 30px;
    line-height: 1.6;
}

/* �v���O���X�o�[ */
.progress-bar-container {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b 0%, #dc3545 100%);
    width: 10%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.progress-text {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* ����G���A */
.question-container {
    min-height: 300px;
    position: relative;
}

.question-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.question-slide.active {
    display: block;
}

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

.question-title {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 600;
}

.question-text {
    font-size: 24px;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 700;
}

/* �񓚃I�v�V���� */
.answer-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.answer-btn {
    padding: 20px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #333;
}

.answer-btn:hover {
    border-color: #ff6b6b;
    background: #fff5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.answer-btn.selected {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

/* ���ʃG���A */
.result-container {
    animation: fadeIn 0.5s ease;
}

.result-content {
    text-align: center;
}

.result-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 700;
}

.result-score-section {
    margin-bottom: 40px;
}

.result-score {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.result-score span {
    color: #ff6b6b;
    font-size: 36px;
    font-weight: 700;
}

.score-bar {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px auto;
    max-width: 400px;
}

.score-fill {
    height: 100%;
    background: #ff6b6b;
    width: 0%;
    transition: width 1s ease;
    border-radius: 10px;
}

.result-description {
    text-align: left;
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.result-description h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.result-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.result-description ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.result-description li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    font-size: 16px;
    color: #333;
}

.result-description li:before {
    content: "?";
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-weight: bold;
}

.warning-text {
    color: #dc3545;
    font-weight: 600;
    font-size: 14px;
    margin-top: 20px;
    padding: 15px;
    background: #fff5f5;
    border-radius: 8px;
    border: 1px solid #ffdddd;
}

/* CTA���� */
.aga-check-cta {
    margin-top: 40px;
}

.clinic-recommendation {
    background: #fff;
    border: 2px solid #ff6b6b;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.recommendation-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 700;
}

.clinic-info-box {
    background: #fff9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.clinic-name {
    font-size: 28px;
    color: #ff6b6b;
    margin-bottom: 25px;
    font-weight: 700;
}

.clinic-features {
    text-align: left;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    font-size: 16px;
    color: #333;
}

.feature-icon {
    color: #4caf50;
    font-size: 20px;
    margin-right: 15px;
    font-weight: bold;
}

.clinic-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    gap: 10px;
}

.cta-primary {
    background: #ff6b6b;
    color: #fff;
    border: 2px solid #ff6b6b;
}

.cta-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.cta-secondary {
    background: #fff;
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
}

.cta-secondary:hover {
    background: #fff5f5;
    transform: translateY(-2px);
}

.button-arrow {
    font-size: 20px;
}

.button-icon {
    font-size: 24px;
}

.button-number {
    font-size: 20px;
    font-weight: 700;
    margin-left: 5px;
}

.consultation-note {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.consultation-note p {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
    line-height: 1.6;
}

/* �i�r�Q�[�V�����{�^�� */
.navigation-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-btn {
    padding: 12px 24px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #666;
}

.nav-btn:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    transform: translateY(-2px);
}

.restart-btn {
    margin: 0 auto;
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

.restart-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}


@media (max-width: 768px) {
    .aga-check-wrapper {
        padding: 20px;
    }
    
    .start-title {
        font-size: 28px;
    }
    
    .start-features {
        flex-direction: column;
        gap: 20px;
    }
    
    .start-button {
        font-size: 18px;
        padding: 16px 40px;
    }
    
    .question-text {
        font-size: 20px;
    }
    
    .answer-options {
        grid-template-columns: 1fr;
    }
    
    .clinic-actions {
        flex-direction: column;
    }
    
    .cta-button {
        font-size: 16px;
        padding: 15px 25px;
    }
    
    .result-score span {
        font-size: 28px;
    }
    
    .clinic-name {
        font-size: 24px;
    }
}

/* 既存のスタイルに追加するモバイル用修正CSS */

/* モバイル用レスポンシブ対応 */
@media (max-width: 768px) {
    /* コンテナーの基本設定 */
    .aga-check-container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .aga-check-wrapper {
        padding: 20px 15px;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
    }
    
    /* スタート画面の調整 */
    .start-screen {
        padding: 10px 0;
    }
    
    .start-content {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .start-title {
        font-size: 24px;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .start-description {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 25px;
        padding: 0 5px;
    }
    
    .start-features {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
        align-items: flex-start;
        padding: 0 10px;
    }
    
    .feature {
        font-size: 14px;
        width: 100%;
    }
    
    .feature-icon {
        font-size: 18px;
        margin-right: 8px;
    }
    
    .start-button {
        font-size: 16px;
        padding: 14px 30px;
        width: calc(100% - 20px);
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }
    
    .start-note {
        font-size: 12px;
        margin-top: 20px;
        padding: 0 15px;
        line-height: 1.5;
    }
    
    /* プログレスバー */
    .progress-bar-container {
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .progress-text {
        font-size: 13px;
        margin-top: 10px;
    }
    
    /* 質問エリア */
    .question-container {
        min-height: auto;
        padding: 0 10px;
    }
    
    .question-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .question-text {
        font-size: 18px;
        margin-bottom: 25px;
        line-height: 1.5;
        padding: 0 5px;
    }
    
    /* 回答オプション */
    .answer-options {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0;
    }
    
    .answer-btn {
        padding: 15px 20px;
        font-size: 15px;
        border-radius: 6px;
        min-height: 50px;
    }
    
    /* 結果エリア */
    .result-container {
        padding: 0 10px;
    }
    
    .result-content {
        padding: 0;
    }
    
    .result-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .result-score-section {
        margin-bottom: 25px;
    }
    
    .result-score {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .result-score span {
        font-size: 28px;
    }
    
    .score-bar {
        max-width: 100%;
        margin: 15px auto;
    }
    
    .result-description {
        padding: 20px 15px;
        margin-bottom: 25px;
        border-radius: 6px;
    }
    
    .result-description h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .result-description p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 15px;
    }
    
    .result-description ul {
        margin: 15px 0;
    }
    
    .result-description li {
        padding: 8px 0;
        padding-left: 25px;
        font-size: 14px;
    }
    
    .warning-text {
        font-size: 13px;
        margin-top: 15px;
        padding: 12px;
    }
    
    /* CTA部分 */
    .aga-check-cta {
        margin-top: 25px;
        padding: 0;
    }
    
    .clinic-recommendation {
        padding: 20px 15px;
        border-radius: 8px;
    }
    
    .recommendation-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .clinic-info-box {
        padding: 20px 15px;
        margin-bottom: 20px;
        border-radius: 6px;
    }
    
    .clinic-name {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .clinic-features {
        margin-bottom: 20px;
    }
    
    .feature-item {
        padding: 10px 0;
        font-size: 14px;
        align-items: flex-start;
    }
    
    .feature-icon {
        font-size: 16px;
        margin-right: 10px;
        margin-top: 2px;
        flex-shrink: 0;
    }
    
    .clinic-actions {
        gap: 12px;
        max-width: 100%;
    }
    
    .cta-button {
        font-size: 15px;
        padding: 14px 20px;
        border-radius: 30px;
        gap: 8px;
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .button-arrow {
        font-size: 16px;
    }
    
    .button-icon {
        font-size: 20px;
    }
    
    .button-number {
        font-size: 16px;
        margin-left: 3px;
    }
    
    .consultation-note {
        margin-top: 20px;
        padding: 15px;
        border-radius: 6px;
    }
    
    .consultation-note p {
        font-size: 12px;
        margin: 3px 0;
        line-height: 1.5;
    }
    
    /* ナビゲーションボタン */
    .navigation-buttons {
        margin-top: 25px;
        padding: 0 10px;
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-btn {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 30px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .restart-btn {
        margin-top: 10px;
    }
}

/* より小さい画面用の追加調整 */
@media (max-width: 375px) {
    .start-title {
        font-size: 22px;
    }
    
    .start-description {
        font-size: 14px;
    }
    
    .question-text {
        font-size: 16px;
    }
    
    .answer-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .clinic-name {
        font-size: 20px;
    }
    
    .result-score span {
        font-size: 24px;
    }
}

/* デバッグ表示を非表示にする（本番環境用） */
@media (max-width: 768px) {
    /* デバッグ情報の非表示化 */
    div[style*="position: fixed"][style*="bottom: 50px"],
    div[style*="position: fixed"][style*="top: 100px"],
    div[style*="position: fixed"][style*="top: 50px"] {
        display: none !important;
    }
}

/* タッチデバイス用の最適化 */
@media (hover: none) and (pointer: coarse) {
    .answer-btn:hover,
    .cta-button:hover,
    .nav-btn:hover,
    .start-button:hover {
        transform: none;
        box-shadow: none;
    }
    
    .answer-btn:active,
    .cta-button:active,
    .nav-btn:active,
    .start-button:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}