/* 診断ページ全体のスタイル */
#conts #diagnosis {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

#conts #diagnosis .diagnosis-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* トップ情報セクション */
#conts #diagnosis .top-info {
    text-align: center;
    margin-bottom: 40px;
}

#conts #diagnosis .intro-text {
    font-size: 24px;
    font-weight: 800;
    color: #333333;
    margin-bottom: 10px;
}

#conts #diagnosis .sub-text {
    font-size: 16px;
    color: #333333;
    margin-bottom: 0;
}

/* メインヘッディング */
#conts #diagnosis .main-heading {
    font-size: 28px;
    font-weight: bold;
    color: #2173B3;
    text-align: center;
    padding: 20px 0;
    background: none;
}

#conts #diagnosis .diagnosis-mv {
    display: block;
	margin: 0 auto;
	width: 40%;
}

/* フォームセクション */
#conts #diagnosis .form-section {
    background-color: #F5F5F5;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
}

#conts #diagnosis .diagnosis-form {
    width: 100%;
}

#conts #diagnosis .form-grid {
    width: 100%;
    overflow: hidden;
}

#conts #diagnosis .form-column {
    width: 48%;
    float: left;
}

#conts #diagnosis .form-column:first-child {
    margin-right: 2%;
}

#conts #diagnosis .form-column:last-child {
    margin-left: 2%;
}

/* フォームグループ */
#conts #diagnosis .form-group {
    margin-bottom: 25px;
}

#conts #diagnosis .form-group label {
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 8px;
    text-align: left;
    display: block;
}

#conts #diagnosis .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-bottom: 2px solid #E0E0E0;
    background-color: transparent;
    font-size: 16px;
    color: #333333;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CCCCCC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#conts #diagnosis .form-group select:focus {
    outline: none;
    border-bottom-color: #2173B3;
}

#conts #diagnosis .form-group select:hover {
    border-bottom-color: #2173B3;
}

#conts #diagnosis .form-group select option {
    background-color: #ffffff;
    color: #333333;
    padding: 8px;
}

/* 診断ボタン */
#conts #diagnosis .diagnosis-button {
    width: 100%;
    background-color: #0F4C81;
    color: #ffffff;
    border: none;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.2s ease, cursor 0.2s ease;
    margin: 20px 0px 20px;
    box-sizing: border-box;
}

#conts #diagnosis .diagnosis-button:hover {
    background-color: #0a3a6b;
}

#conts #diagnosis .diagnosis-button:active {
    transform: translateY(1px);
}

/* 無効時のスタイル */
#conts #diagnosis .diagnosis-button:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.8;
}

/* 診断結果ページのスタイル */
#conts #diagnosis-result {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

#conts #diagnosis-result .result-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 結果ヘッダー */
#conts #diagnosis-result .result-header {
    text-align: center;
    margin-bottom: 50px;
}

#conts #diagnosis-result .result-title {
    font-size: 32px;
    font-weight: bold;
    color: #2173B3;
    margin-bottom: 10px;
}

#conts #diagnosis-result .result-subtitle {
    font-size: 18px;
    color: #666666;
    margin-bottom: 0;
}

/* 診断結果 */
#conts #diagnosis-result .result-content {
    background-color: #F8F9FA;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
}

#conts #diagnosis-result .result-type {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 3px solid #2173B3;
}

#conts #diagnosis-result .type-name {
    font-size: 36px;
    font-weight: bold;
    color: #2173B3;
    padding: 0px;
    background: none;
}

#conts #diagnosis-result .type-img {
    width: 70%
}

#conts #diagnosis-result .type-description {
    font-size: 18px;
    color: #666666;
    margin-bottom: 0;
}

/* 詳細説明 */
#conts #diagnosis-result .type-details {
    margin-bottom: 40px;
}

#conts #diagnosis-result .detail-section {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #2173B3;
}

#conts #diagnosis-result .detail-section h3 {
    font-size: 20px;
    font-weight: bold;
    color: #2173B3;
    margin-bottom: 15px;
    background: none;
    border: none;
}

#conts #diagnosis-result .detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#conts #diagnosis-result .detail-section li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 16px;
    color: #333333;
}

#conts #diagnosis-result .detail-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2173B3;
    font-weight: bold;
}

/* アクションボタン */
#conts #diagnosis-result .action-buttons {
    text-align: center;
    margin-top: 30px;
}

#conts #diagnosis-result .btn-retry,
#conts #diagnosis-result .btn-contact {
    display: inline-block;
    padding: 15px 30px;
    margin: 0 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

#conts #diagnosis-result .btn-retry {
    background-color: #6C757D;
    color: #ffffff;
    border: 2px solid #6C757D;
}

#conts #diagnosis-result .btn-retry:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

#conts #diagnosis-result .btn-contact {
    background-color: #0F4C81;
    color: #ffffff;
    border: 2px solid #0F4C81;
}

#conts #diagnosis-result .btn-contact:hover {
    background-color: #0a3a6b;
    border-color: #0a3a6b;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    #conts #diagnosis .diagnosis-container {
        padding: 20px 15px;
    }
    
    #conts #diagnosis .form-section {
        padding: 30px 20px;
    }
    
    #conts #diagnosis .form-column {
        width: 100%;
        float: none;
        margin: 0 0 20px 0;
    }
    
    #conts #diagnosis .form-column:first-child {
        margin-right: 0;
    }
    
    #conts #diagnosis .form-column:last-child {
        margin-left: 0;
    }
    
    #conts #diagnosis .main-heading {
        font-size: 24px;
    }
    
    #conts #diagnosis .intro-text {
        font-size: 20px;
    }
    
    #conts #diagnosis .sub-text {
        font-size: 14px;
    }

    /* 診断結果ページのレスポンシブ */
    #conts #diagnosis-result .result-container {
        padding: 20px 15px;
    }
    
    #conts #diagnosis-result .result-content {
        padding: 30px 20px;
    }
    
    #conts #diagnosis-result .result-title {
        font-size: 28px;
    }
    
    #conts #diagnosis-result .type-name {
        font-size: 28px;
    }
    
    #conts #diagnosis-result .action-buttons {
        text-align: center;
    }
    
    #conts #diagnosis-result .btn-retry,
    #conts #diagnosis-result .btn-contact {
        display: block;
        margin: 10px auto;
        width: 80%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    #conts #diagnosis .diagnosis-container {
        padding: 15px 10px;
    }
    
    #conts #diagnosis .form-section {
        padding: 20px 15px;
    }
    
    #conts #diagnosis .main-heading {
        font-size: 20px;
    }
    
    #conts #diagnosis .diagnosis-button {
        padding: 16px 20px;
        font-size: 16px;
    }

    /* 診断結果ページのレスポンシブ */
    #conts #diagnosis-result .result-container {
        padding: 15px 10px;
    }
    
    #conts #diagnosis-result .result-content {
        padding: 20px 15px;
    }
    
    #conts #diagnosis-result .result-title {
        font-size: 24px;
    }
    
    #conts #diagnosis-result .type-name {
        font-size: 24px;
    }
    
    #conts #diagnosis-result .detail-section {
        padding: 20px 15px;
    }
}
