/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f0;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* コンテナ */
.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* ヘッダー */
.header {
    background-color: #fff;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.header h1 {
    font-size: 24px;
    color: #8b4513;
    margin-bottom: 10px;
    font-weight: normal;
}

.description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ステップインジケーター */
.steps {
    display: flex;
    justify-content: center;
    padding: 30px 20px;
    background-color: #fafafa;
    gap: 40px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
}

.step.active {
    color: #333;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ddd;
    color: #666;
    font-weight: bold;
    font-size: 14px;
}

.step.active .step-number {
    background-color: #e8d5b7;
    color: #333;
}

.step-text {
    font-size: 14px;
    font-weight: normal;
}

.step.active .step-text {
    font-weight: bold;
}

/* フォーム */
.contact-form {
    padding: 30px;
}

.form-section {
    max-width: 100%;
}

.section-title {
    font-size: 18px;
    color: #333;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-left: 4px solid #e8d5b7;
    margin-bottom: 25px;
    font-weight: bold;
}

.section-note {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* お見積りに関する重要な注意書き */
.section-note.estimate-note {
    font-size: 15px;
    color: #333;
    line-height: 2;
    margin-bottom: 25px;
    padding: 20px;
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 6px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* フォームグループ */
.form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.form-label.required::before {
    content: '必須';
    background-color: #dc3545;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 8px;
    font-weight: normal;
}

.sublabel {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    display: block;
    font-weight: normal;
}

.field-note {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.char-limit {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

/* エラーメッセージ */
.error-message,
.js-error-message {
    font-size: 13px;
    color: #d9534f;
    margin-top: 8px;
    margin-bottom: 5px;
    font-weight: bold;
    padding: 8px 12px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    display: block;
    line-height: 1.5;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #d9534f;
    background-color: #fff5f5;
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
    border-color: #d9534f;
    box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.2);
}

/* 入力フィールド */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #d4a574;
}


.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* 郵便番号 */
.postal-code {
    max-width: 200px;
}

.postal-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.postal-loading {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 数字入力 */
.number-input {
    max-width: 150px;
    display: inline-block;
}

/* 日付グループ */
.date-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.date-select {
    width: auto;
    min-width: 80px;
}

.day-of-week {
    color: #666;
    font-weight: bold;
    margin-left: 5px;
    display: none;
}

/* 時間グループ */
.time-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.time-select {
    width: auto;
    min-width: 80px;
}

/* インラインフィールド */
.inline-field {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* 名前フィールド */
.name-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.name-field {
    display: flex;
    flex-direction: column;
}

/* 住所フィールド */
.address-field {
    margin-bottom: 15px;
}

/* 電話番号フィールド */
.phone-field {
    margin-bottom: 20px;
}

.phone-field:last-child {
    margin-bottom: 0;
}

/* 以前のご利用 */
.previous-use-container {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.previous-use-box {
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.previous-use-box:first-child {
    flex: 0 0 auto;
    min-width: 220px;
}

.previous-use-box:last-child {
    flex: 1;
}

.previous-use-label {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    line-height: 1.6;
}

.address-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* ラジオボタン */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    margin-right: 5px;
    cursor: pointer;
}


/* フォーム注釈 */
.form-note {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    line-height: 1.5;
}


/* ボタングループ */
.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn {
    padding: 12px 40px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.btn-primary {
    background-color: #5cb85c;
    color: #fff;
}

.btn-primary:hover {
    background-color: #4cae4c;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

a.btn {
    text-decoration: none;
    display: inline-block;
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
    .container {
        box-shadow: none;
    }

    .header {
        padding: 15px;
    }

    .header h1 {
        font-size: 20px;
    }

    .description {
        font-size: 13px;
    }

    .steps {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        align-items: flex-start;
    }

    .contact-form {
        padding: 20px 15px;
    }

    .section-title {
        font-size: 15px;
    }


    .name-group {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .date-group,
    .time-group {
        flex-wrap: wrap;
    }

    .date-select,
    .time-select {
        min-width: 70px;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
    }

    /* 確認画面・完了画面のレスポンシブ */
    .confirm-content,
    .complete-content {
        padding: 20px 15px;
    }

    .confirm-item {
        flex-direction: column;
        padding: 12px 0;
    }

    .confirm-label {
        width: 100%;
        margin-bottom: 5px;
        font-size: 13px;
    }

    .confirm-value {
        font-size: 14px;
    }

    .complete-message {
        padding: 40px 15px;
    }

    .complete-title {
        font-size: 18px;
    }

    .complete-text {
        font-size: 14px;
    }

    .previous-use-container {
        flex-direction: column;
        gap: 10px;
    }

    .previous-use-box:first-child {
        min-width: auto;
    }

    .postal-input-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .postal-loading {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .header h1 {
        font-size: 18px;
    }

    .contact-form {
        padding: 15px 10px;
    }

    .form-label {
        font-size: 13px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        font-size: 13px;
        padding: 8px;
    }

    .section-title {
        font-size: 15px;
    }

    .step-text {
        font-size: 13px;
    }

    .date-select,
    .time-select {
        min-width: 60px;
        font-size: 13px;
    }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 確認画面スタイル */
.confirm-content,
.complete-content {
    padding: 40px;
}

.confirm-section {
    margin-bottom: 40px;
}

.confirm-item {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.confirm-label {
    font-weight: bold;
    width: 200px;
    flex-shrink: 0;
    color: #333;
    font-size: 14px;
}

.confirm-value {
    flex: 1;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* 完了画面スタイル */
.complete-message {
    text-align: center;
    padding: 60px 20px;
}

.complete-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
}

.complete-text {
    font-size: 15px;
    line-height: 2;
    color: #666;
    margin-bottom: 30px;
}

.complete-note {
    font-size: 13px;
    color: #999;
    line-height: 1.8;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn {
    text-decoration: none;
    display: inline-block;
}

/* プリント用スタイル */
@media print {
    .button-group {
        display: none;
    }

    .container {
        box-shadow: none;
    }

    body {
        background-color: #fff;
    }
}

/* 宿泊貸切の行程スタイル */
.overnight-day-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.overnight-day-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8d5b7;
}

/* 確認画面の宿泊貸切スタイル */
.overnight-confirm-day {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.overnight-day-subtitle {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8d5b7;
}

/* 宿泊貸切の日付・時刻サマリー */
.overnight-summary .confirm-label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.overnight-summary .confirm-value {
    font-size: 16px;
    color: #333;
    margin-top: 5px;
}

.overnight-summary .confirm-value strong {
    color: #8b4513;
    font-size: 15px;
}

@media screen and (max-width: 768px) {
    .overnight-day-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .overnight-day-title {
        font-size: 15px;
    }
    
    .overnight-confirm-day {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .overnight-day-subtitle {
        font-size: 14px;
    }
}

