/* リセットとベース設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* ヘッダー */
.header {
    background-color: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-logo img {
    height: 40px;
}

/* メインコンテンツ */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* 進捗インジケーター */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
    padding: 0 30px;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50px;
    right: 50px;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ccc;
    margin-bottom: 8px;
}

.progress-step.active .step-circle {
    color: #0066cc;
    border-color: #0066cc;
    font-weight: bold;
}

.step-label {
    font-size: 12px;
    text-align: center;
    color: #666;
    line-height: 1.3;
}

.progress-step.active .step-label {
    color: #0066cc;
    font-weight: 600;
}

.progress-step.completed .step-circle {
    color: #fff;
    background-color: #0066cc;
    border-color: #0066cc;
    font-size: 13px;
}

.progress-step.completed .step-label {
    color: #0066cc;
}

/* フォームセクション */
.form-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* 情報ボックス */
.info-box {
    background-color: #fff8e6;
    border: 1px solid #ffe0b2;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
}

.info-box p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* エラーサマリー */
.form-error-summary {
    display: none;
    background-color: #fff0f0;
    border: 1px solid #e53935;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #c62828;
}

.form-error-summary.is-visible {
    display: block;
}

/* フィールドエラー */
.field-error {
    display: block;
    font-size: 13px;
    color: #e53935;
    margin-top: 6px;
    min-height: 1em;
}

.form-input.is-error,
.form-select.is-error {
    border-color: #e53935;
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.15);
}

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

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

/* バッジ */
.badge-required {
    display: inline-block;
    background-color: #0066cc;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

/* 入力フィールド */
.form-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* セレクトボックス */
.form-select {
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
}

.form-select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

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

.date-group select {
    width: 120px;
}

.date-group span {
    font-size: 14px;
}

/* 郵便番号グループ */
.postal-code-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-with-button {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-with-button .form-input {
    flex: 1;
}

.btn-search {
    padding: 12px 24px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.btn-search:hover {
    background-color: #e0e0e0;
}

/* ヘルプテキスト */
.form-help {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    line-height: 1.6;
}

/* 送信ボタン */
.form-actions {
    margin-top: 40px;
    text-align: center;
}

.btn-submit {
    background-color: #0066cc;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 18px 80px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-submit:hover {
    background-color: #e65500;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

/* 申込完了メッセージ */
.complete-message {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
}

.complete-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #0066cc;
    color: #fff;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.complete-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.complete-description {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

/* フッター */
.footer {
    background-color: #f5f5f5;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    margin-top: 50px;
}

.footer-info {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.footer-copyright {
    font-size: 11px;
    color: #999;
    margin-top: 15px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .main-content {
        padding: 20px 15px;
    }

    .form-section {
        padding: 25px 20px;
    }

    .input-group {
        grid-template-columns: 1fr;
    }

    .progress-indicator {
        flex-wrap: wrap;
        padding: 0 10px;
    }

    .progress-step {
        flex: 0 0 20%;
        font-size: 10px;
    }

    .step-circle {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .btn-submit {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 18px;
    }

    .section-title {
        font-size: 20px;
    }

    .date-group {
        flex-wrap: wrap;
    }

    .date-group select {
        width: 100%;
    }

    .input-with-button {
        flex-direction: column;
    }

    .btn-search {
        width: 100%;
    }
}
