body {
    background-color: #f0f2f5;
    color: #333;
}

.container {
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px;
}

.survey-header {
    background-color: #e9ecef;
    padding: 25px 10px;
    margin-bottom: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.survey-header h1 {
    color: #2c3e50;
    font-weight: 600;
    margin-top:.5rem;
}

.survey-header p {
    color: #34495e;
}

.survey-item {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #dee2e6;
}

.survey-item:nth-child(odd) {
    background-color: #e8eaf6;
}

.survey-item:nth-child(even) {
    background-color: #f5f7ff;
}

.form-label {
    color: #2c3e50;
    font-weight: 600 !important;
    font-size: 1.1rem;
    display: block;
    text-align: center;
    margin-bottom: 15px;
}

.satisfaction-options {
    display: flex;
    justify-content: center;
    margin: 15px auto 0;
    background-color: #fff;
    padding: 15px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    max-width: 80%;
}



.satisfaction-header {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 80%;
    padding: 0 10px;
}

.satisfaction-label {
    font-size: 0.85rem;
    text-align: center;
    width: 20%;
    color: #34495e;
    font-weight: 500;
    padding: 0 5px;
}

.form-check-input {
    margin: 0 auto;
    display: block;
    width: 1.2em;
    height: 1.2em;
    cursor: pointer;
    border: 2px solid #3949ab;
    box-shadow: 0 0 4px rgba(57, 73, 171, 0.25);
    transition: all 0.2s ease;
}

.form-check-input:hover {
    transform: scale(1.08);
    box-shadow: 0 0 6px rgba(57, 73, 171, 0.4);
}

.form-check-input:checked {
    background-color: #3949ab;
    border-color: #3949ab;
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(57, 73, 171, 0.5);
}

/* ラジオボタンの選択状態をより目立たせる */
.form-check {
    position: relative;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
    margin: 0 10px;
}

.form-check::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 6px;
    height: 6px;
    background-color: #3949ab;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.form-check-input:checked ~ .form-check::after {
    transform: translateX(-50%) scale(1);
}

.form-control:focus {
    border-color: #3949ab;
    box-shadow: 0 0 0 0.25rem rgba(57, 73, 171, 0.25);
}

textarea.form-control {
    border: 1px solid #ced4da;
    background-color: #fff;
}

@media (max-width: 768px) {
    .satisfaction-label {
        font-size: 0.75rem;
    }

    .form-check-input {
        width: 1.1em;
        height: 1.1em;
    }

    .satisfaction-options, .satisfaction-header {
        max-width: 95%;
    }

    /* スマートフォンでの縦並び表示 */
    .satisfaction-options {
        flex-direction: column;
        align-items: center;
    }

    .satisfaction-options .form-check {
        width: 100%;
        margin: 5px 0;
        flex-direction: row;
        justify-content: flex-start;
    }

    .satisfaction-options .form-check span {
        display: flex;
        align-items: center;
        width: 100%;
        white-space: nowrap;
    }

    .satisfaction-options .form-check-input {
        margin: 0 10px 0 0;
    }

    .satisfaction-options .form-check-label {
        white-space: nowrap;
    }
}

.submit-section {
    margin-top: 40px;
    margin-bottom: 50px;
}

.btn-primary {
    background-color: #3949ab;
    border-color: #3949ab;
    padding: 10px 30px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #303f9f;
    border-color: #303f9f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* カテゴリ見出しのスタイル */
.category-header {
    text-align: center;
    margin-bottom: 30px;
}

.category-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    display: inline-block;
}

.category-divider {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    margin: 0 auto;
    width: 80%;
    max-width: 400px;
}

/* 強調テキストのスタイル */
.highlight-text {
    color: #007bff;
    font-weight: bold;
}

.analysis-content {
    line-height: 2em;
}
.analysis-content h2:first-of-type {
    margin-top:0;
    margin-bottom:1rem;
}
.analysis-content h2 {
    margin-top:4rem;
    margin-bottom:1rem;
}

.analysis-content h3 {
    margin-top:3rem;
}

.analysis-content p {
    margin:1rem;
}
