/* メインコンテンツ */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* カードスタイル */
.simulator-card,
.info-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #0068b5;
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.2); */
}

.simulator-card h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #0068b5;
    font-weight: 600;
}

/* フォームスタイル */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    font-weight: 700;
    font-size: 18px;
    color: #000;
    letter-spacing: 0.05em;
}

input[type="checkbox"],
input[type="radio"] {
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
}

/* ラジオボタングループ */
.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    font-size: 14px;
    box-sizing: border-box;
}

.radio-label:hover {
    border-color: #0068b5;
    background: #e5f0f7;
}

.radio-label input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked+span {
    color: #0068b5;
    font-weight: 600;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: #0068b5;
    background: #e5f0f7;
}

/* 日付選択グループ */
.date-select-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.date-separator {
    font-weight: 500;
    color: #666;
    font-size: 14px;
}

/* セレクトボックス */
.select-box {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.select-box:focus {
    outline: none;
    border-color: #0068b5;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.select-box.full-width {
    width: 100%;
}

/* 送信ボタン */
.submit-btn {
    padding: 12px 30px;
    background: #0068b5;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    /* box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); */
}

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

.submit-btn:active {
    transform: translateY(0);
}

/* エラーメッセージ */
.error-message {
    padding: 15px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    color: #c33;
    font-weight: 500;
}

/* 結果セクション */
.result-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #0068b5;
    font-weight: 600;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.simulator-card h4 {
    font-size: 20px;
    color: #0068b5;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

/* 料金テーブル */
.price-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.price-table th,
.price-table td {
    padding: 12px 10px;
    text-align: center;
    /* border-bottom: 1px solid #e0e0e0; */
    font-size: 14px;
}

.price-table th:first-child,
.price-table td:first-child {
    text-align: left;
    padding-left: 15px;
}

.price-table th:nth-child(2),
.price-table td:nth-child(2) {
    text-align: center;
}

.price-table th {
    background: #0068b5;
    color: white;
    font-weight: 600;
    white-space: nowrap;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tbody tr:hover {
    background: #e5f0f7;
}

.price-value {
    font-size: 16px;
    font-weight: 700;
    color: #0068b5;
    white-space: nowrap;
}

/* 情報カード */
.info-card {
    background: #e5f0f7;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #0068b5;
    font-weight: 600;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;

}

.info-list li {
    padding-left: 25px;
    position: relative;
    color: #000000;
}

.info-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0068b5;
    font-weight: 900;
}

/* ヘルプテキスト */
.help-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
}

/* パック情報カード */
.pack-info-card {
    background: #e8f5e9;
    border-left: 5px solid #4caf50;
    padding: 15px 30px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.pack-info-card h4 {
    color: #2e7d32;
    font-size: 16px;
    margin-bottom: 8px;
}

.pack-info-card p {
    color: #000000;
    font-size: 14px;
    margin: 5px 0;
}

/* 料金詳細テーブル */
.price-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.price-detail-row:last-child {
    border-bottom: none;
}

.price-detail-label {
    color: #666;
    font-size: 14px;
}

.price-detail-value {
    font-weight: 600;
    color: #000;
}

/* スケジュールテーブル */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 2px solid #0068b5;
    font-size: 14px;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

.schedule-table thead th {
    background: #0068b5;
    color: white;
    font-weight: 600;
    padding: 10px 5px;
}

/* 点検サイクル列のヘッダー（2行目）- 強制適用 */
.schedule-table thead tr:nth-child(2) th {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #ddd !important;
}

/* 車検列のヘッダー */
.schedule-table thead tr:nth-child(2) th.shaken-header {
    background: #ffd700 !important;
    color: #000 !important;
}

.schedule-table tbody td:first-child,
.schedule-table tbody td:nth-child(2) {
    font-weight: 600;
    background: #f9f9f9;
}

/* オイルマーカー */
.oil-marker {
    color: #ffb300;
    font-size: 1.2rem;
    font-weight: bold;
}

.filter-marker {
    color: #ff9966;
    font-size: 1.2rem;
    font-weight: bold;
}

/* スケジュールバー */
.schedule-bar {
    position: relative;
    padding: 8px 4px !important;
    font-weight: 600;
}

.schedule-bar-green {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
}

.schedule-bar-orange {
    background: linear-gradient(135deg, #ff9800 0%, #ffa726 100%) !important;
    color: white;
}

.schedule-bar-red {
    background: linear-gradient(135deg, #f44336 0%, #ef5350 100%);
    color: white;
}

.schedule-bar-blue {
    background: linear-gradient(135deg, #2196f3 0%, #42a5f5 100%);
    color: white;
}

.course-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.course-section h3 {
    color: #0068b5;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

p {
    font-size: 16px;
}

ul {
    font-size: 16px;
    line-height: 1.8;
}



/* レスポンシブデザイン */
@media (max-width: 768px) {

    .simulator-card,
    .info-card {
        padding: 30px;
    }

    .simulator-card h2 {
        font-size: 20px;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .radio-label {
        width: 100%;
    }

    .date-select-group {
        flex-direction: column;
        align-items: stretch;
    }

    .select-box {
        width: 100%;
    }

    .submit-btn {
        width: 100%;
        font-size: 18px;
    }

    .price-table {
        font-size: 13px;
        overflow-x: auto;
        width: 100%;
    }

    .price-table th,
    .price-table td {
        padding: 8px 5px;
        font-size: 13px;
    }

    .price-value {
        font-size: 15px;
    }

    .schedule-table {
        font-size: 13px;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 5px 2px;
    }

    .schedule-bar div {
        font-size: 12px !important;
    }

    .result-title {
        margin-bottom: 10px;
    }

    p {
        font-size: 14px;
    }

    ul {
        font-size: 14px;
        line-height: 1.8;
    }

    .course-section h3 {
        font-size: 18px;
    }

    .form-label {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .info-list {
        gap: 10px;
    }

    .subtitle {
        font-size: 14px;
    }

    .simulator-card,
    .info-card {
        padding: 15px;
    }

    .simulator-card h2 {
        font-size: 16px;
    }

    /* ラジオボタンのスマホ対応 */
    .radio-group {
        gap: 8px;
    }

    .radio-label {
        padding: 8px 12px;
        font-size: 13px;
        width: 100%;
        max-width: 100%;
    }

    .radio-label input[type="radio"] {
        width: 16px;
        height: 16px;
        min-width: 16px;
    }

    .radio-label span {
        flex: 1;
        word-break: break-all;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    /* 日付選択のスマホ対応 */
    .date-select-group {
        gap: 5px;
    }

    .select-box {
        font-size: 14px;
        padding: 8px 10px;
        min-width: 100px;
    }

    .date-separator {
        font-size: 13px;
    }

    p {
        font-size: 13px;
        line-height: 1.6;
    }

    ul {
        font-size: 13px;
        line-height: 1.6;
    }

    .course-section h3 {
        font-size: 16px;
    }

    .course-section {
        gap: 15px;
    }

    .submit-btn {
        font-size: 15px;
        padding: 10px 20px;
        width: 100%;
    }

    .pack-info-card {
        padding: 15px 20px;
    }

    .result-title {
        font-size: 18px;
    }

    .simulator-card h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .schedule-table {
        width: 650px;
    }

    .pack-info-card p {
        font-size: 13px;
    }

    .result-content {
        gap: 10px;
    }

    .price-value {
        font-size: 14px;
    }

    /* スクロールヒント */
    .scroll-hint {
        display: none;
        font-size: 12px;
        color: #666;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .scroll-hint::before {
        content: '👆';
    }
}