/* ===============================================
   Catalog Request Page Styles (common.css準拠)
   =============================================== */

/* カタログリクエストコンテナ */
.catalog-request-container {
    width: 100%;
    box-sizing: border-box;
}

/* contact-card 風のスタイル */
.request-form {
    background: var(--c-surface-1, #FFF);
    padding: 3em;
    border-radius: var(--border-radius-4, 4px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2em;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    text-align: left;
}

.form-section:first-child {
    margin-bottom: 2em;
    padding-bottom: 1.5em;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.catalog-section-title {
    font-size: var(--font-16, 16px);
    line-height: var(--lineheight-16, 24px);
    font-weight: var(--weight-B, 600);
    margin-bottom: 1.5em;
    color: var(--c-text-1, rgba(0, 0, 0, 0.88));
    position: relative;
    padding-left: 1em;
}

.catalog-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.2em;
    background: var(--c-brand-primary, #1850BF);
    border-radius: var(--border-radius-4, 4px);
}

.form-row {
    margin-bottom: 1.5em;
}

.form-group {
    margin-bottom: 1.5em;
}

/* form-label */
.catalog-form-label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: var(--weight-B, 600);
    color: var(--c-text-1, rgba(0, 0, 0, 0.88));
    font-size: var(--font-14, 14px);
    line-height: var(--lineheight-14, 22px);
}

.catalog-assistive-text {
    color: var(--c-semantic-assertive, #F4312E);
    font-size: var(--font-12, 12px);
    font-weight: var(--weight-B, 600);
    margin-left: 0.5em;
}

/* textfield, select スタイル */
.catalog-form-control,
.catalog-form-select {
    width: 100%;
    padding: 7px 12px;
    background-color: var(--c-surface-1, #FFF);
    border: 2px solid var(--c-border-1, rgba(68, 94, 131, 0.16));
    border-radius: var(--border-radius-4, 4px);
    box-sizing: border-box;
    color: var(--c-text-2, rgba(0, 0, 0, 0.72));
    font-size: var(--font-14, 14px);
    line-height: var(--lineheight-14, 22px);
    font-weight: var(--weight-R, 400);
    transition: var(--animation-hover, .2s);
}

.catalog-form-control:hover,
.catalog-form-select:hover {
    background-color: var(--c-surface-2, rgba(68, 94, 131, 0.05));
    transition: var(--animation-hover, .2s);
}

.catalog-form-control:focus,
.catalog-form-select:focus {
    outline: none;
    border: 2px solid var(--c-brand-primary, #1850BF);
    transition: var(--animation-hover, .2s);
}

/* textarea */
textarea.catalog-form-control {
    height: 106px;
    resize: vertical;
}

/* 役職選択のラジオボタンを横並びにするスタイル */
.position-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em 2em;
    align-items: flex-start;
}

.form-check.form-check-inline {
    display: flex;
    align-items: center;
    margin-right: 0;
    margin-bottom: 0;
    min-width: auto;
    flex: 0 0 auto;
}

/* ラジオボタンのスタイリング調整 - form-check対応 */
.position-radio-group .form-check.form-check-inline {
    display: flex;
    align-items: center;
    position: relative;
}

.position-radio-group .form-check.form-check-inline label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: var(--weight-R, 400);
    color: var(--c-text-1, rgba(0, 0, 0, 0.88));
    font-size: var(--font-14, 14px);
    line-height: var(--lineheight-14, 22px);
    padding: 0; /* パディングをリセット */
    margin: 0;
    margin-left: 8px; /* inputとの間隔 */
}

/* 疑似要素を無効化 */
.position-radio-group .form-check.form-check-inline label::before,
.position-radio-group .form-check.form-check-inline label::after {
    display: none !important;
}

.position-radio-group .form-check.form-check-inline input[type="radio"] {
    appearance: none;
    margin: 0;
    padding: 0;
    position: relative;
    width: 20px;
    height: 20px;
    cursor: pointer;
    border-radius: var(--border-radius-round, 100vh);
    background-color: var(--c-surface-1, #FFF);
    border: 2px solid var(--c-border-2, rgba(68, 94, 131, 0.32));
    box-sizing: border-box;
    flex-shrink: 0;
}

.position-radio-group .form-check.form-check-inline input[type="radio"]:checked {
    background-color: var(--c-text-5, #FFF);
    border: 6px solid var(--c-brand-primary, #1850BF);
}

/* radio-wrap - form-check対応 */
.catalog-radio-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

.catalog-radio-wrap .form-check {
    display: flex;
    align-items: center;
    position: relative;
}

.catalog-radio-wrap label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: var(--weight-R, 400);
    padding: 0; /* パディングをリセット */
    margin: 0;
    margin-left: 8px; /* inputとの間隔 */
    color: var(--c-text-1, rgba(0, 0, 0, 0.88));
    font-size: var(--font-14, 14px);
    line-height: var(--lineheight-14, 22px);
}

/* 疑似要素を無効化 */
.catalog-radio-wrap label::before,
.catalog-radio-wrap label::after {
    display: none !important;
}

.catalog-radio-btn {
    appearance: none;
    margin: 0;
    padding: 0;
    position: relative;
    width: 20px;
    height: 20px;
    cursor: pointer;
    border-radius: var(--border-radius-round, 100vh);
    background-color: var(--c-surface-1, #FFF);
    border: 2px solid var(--c-border-2, rgba(68, 94, 131, 0.32));
    box-sizing: border-box;
    flex-shrink: 0;
}

.catalog-radio-btn:checked {
    background-color: var(--c-text-5, #FFF);
    border: 6px solid var(--c-brand-primary, #1850BF);
}

/* カタログ選択エリア - form-check対応 */
.catalog-selection {
    background: var(--c-surface-2, rgba(68, 94, 131, 0.05));
    padding: 1.5em;
    border-radius: var(--border-radius-4, 4px);
    border: 2px solid var(--c-border-1, rgba(68, 94, 131, 0.16));
}

.catalog-select-all {
    display: flex;
    align-items: center;
    font-weight: var(--weight-B, 600);
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: 1px solid var(--c-border-1, rgba(68, 94, 131, 0.16));
    cursor: pointer;
    color: var(--c-text-1, rgba(0, 0, 0, 0.88));
    font-size: var(--font-14, 14px);
    line-height: var(--lineheight-14, 22px);
}

.catalog-select-all input,
.catalog-select-all .form-check-input {
    appearance: none;
    margin: 0;
    margin-right: 0.5em;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.catalog-select-all input:checked,
.catalog-select-all .form-check-input:checked {
    /* background-color: var(--c-brand-primary, #1850BF);
    border: 2px solid var(--c-brand-primary, #1850BF); */
}

.catalog-select-all input:checked::after,
.catalog-select-all .form-check-input:checked::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 8px;
    top: 4px;
    left: 3px;
    pointer-events: none;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1em;
    margin-top: 1em;
}

.catalog-item {
    display: flex;
    align-items: center;
    padding: 1em;
    border: 2px solid var(--c-border-1, rgba(68, 94, 131, 0.16));
    border-radius: var(--border-radius-4, 4px);
    cursor: pointer;
    transition: var(--animation-hover, .2s);
    background: var(--c-surface-1, #FFF);
}

.catalog-item:hover {
    background-color: var(--c-surface-2, rgba(68, 94, 131, 0.05));
    border-color: var(--c-brand-primary, #1850BF);
}

.catalog-checkbox {
    margin-right: 1em;
    flex-shrink: 0;
}

.catalog-checkbox input {
    appearance: none;
    margin: 0;
    cursor: pointer;
    position: relative;
}

.catalog-checkbox input:checked {
    /* background-color: var(--c-brand-primary, #1850BF);
    border: 2px solid var(--c-brand-primary, #1850BF); */
}

.catalog-checkbox input:checked::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 8px;
    top: 4px;
    left: 3px;
    pointer-events: none;
}

.catalog-thumbnail {
    margin-top: 10px;
    flex-shrink: 0;
}

.catalog-info {
    flex: 1;
    min-width: 0;
}

.catalog-title {
    font-size: var(--font-14, 14px);
    line-height: var(--lineheight-14, 22px);
    font-weight: var(--weight-B, 600);
    margin-bottom: 0.25em;
    color: var(--c-text-1, rgba(0, 0, 0, 0.88));
}

.catalog-description {
    font-size: var(--font-12, 12px);
    line-height: var(--lineheight-12, 18px);
    color: var(--c-text-3, rgba(0, 0, 0, 0.48));
    margin: 0;
}

/* プライバシー同意エリア - form-check対応 */
.privacy-agreement {
    background: var(--c-surface-2, rgba(68, 94, 131, 0.05));
    padding: 1.5em;
    border: 2px solid var(--c-border-1, rgba(68, 94, 131, 0.16));
    border-radius: var(--border-radius-4, 4px);
}

.catalog-checkbox-label,
.form-check {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    line-height: var(--lineheight-14, 22px);
    color: var(--c-text-1, rgba(0, 0, 0, 0.88));
    font-size: var(--font-14, 14px);
    font-weight: var(--weight-R, 400);
}

.catalog-checkbox-label input,
.form-check .form-check-input {
    appearance: none;
    margin: 0;
    margin-right: 0.5em;
    margin-top: 0.2em;
    width: 20px;
    height: 20px;
    background-color: var(--c-surface-1, #FFF);
    border: 2px solid var(--c-border-2, rgba(68, 94, 131, 0.32));
    border-radius: var(--border-radius-4, 4px);
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

/* .catalog-checkbox-label input:checked,
.form-check .form-check-input:checked {
    background-color: var(--c-brand-primary, #1850BF);
    border: 2px solid var(--c-brand-primary, #1850BF);
} */

.catalog-checkbox-label input:checked::after,
.form-check .form-check-input:checked::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 8px;
    top: 4px;
    left: 3px;
    pointer-events: none;
}

/* form-check-label の疑似要素を無効化 */
.form-check .form-check-label::before,
.form-check .form-check-label::after {
    display: none !important;
    content: none !important;
}

/* form-actions */
.catalog-form-actions {
    text-align: center;
    margin-top: 2em;
}

.catalog-form-actions-agreement {
    margin-bottom: 1em;
}

.catalog-form-actions-agreement span{
    font-size: var(--font-14, 14px);
    color: #f00;
}


/* 送信完了画面 */
.request-sent {
    text-align: center;
    padding: 3em 2em;
    background: var(--c-surface-1, #FFF);
    border-radius: var(--border-radius-4, 4px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sent-message {
    max-width: 500px;
    margin: 0 auto;
}

.sent-icon {
    font-size: 3em;
    color: var(--c-semantic-success, #00927A);
    margin-bottom: 1em;
}

.sent-message h3 {
    font-size: var(--font-20, 20px);
    line-height: var(--lineheight-20, 28px);
    font-weight: var(--weight-B, 600);
    margin-bottom: 1em;
    color: var(--c-text-1, rgba(0, 0, 0, 0.88));
}

.sent-message p {
    color: var(--c-text-2, rgba(0, 0, 0, 0.72));
    font-size: var(--font-14, 14px);
    line-height: var(--lineheight-14, 22px);
    margin-bottom: 2em;
}

.sent-actions {
    margin-top: 2em;
}

/* ローディング表示 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999 !important;
}

.loading-spinner {
    text-align: center;
    color: var(--c-text-2, rgba(0, 0, 0, 0.72));
}

.catalog-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--c-surface-3, rgba(68, 94, 131, 0.08));
    border-top: 3px solid var(--c-brand-primary, #1850BF);
    border-radius: 50%;
    animation: catalog-spin 1s linear infinite;
    margin: 0 auto 1em;
}

@keyframes catalog-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* エラーメッセージ */

.bg-error {
    background-color: #ffeaea !important;
    border-color: var(--c-semantic-assertive, #F4312E) !important;
    border-width: 2px !important;
}

.catalog-error,
.catalog-alert-danger {
    color: var(--c-semantic-assertive, #F4312E);
    font-size: var(--font-12, 12px);
    margin-top: 0.5em;
    display: block;
}

.catalog-alert {
    padding: 1em;
    margin: 1em 0;
    border-radius: var(--border-radius-4, 4px);
}

.catalog-alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--c-semantic-assertive, #F4312E);
}

/* アンケートフィールド専用スタイル - form-check対応 */
.enquate-question {
    margin-bottom: 1.5em;
    background: transparent;
    border-radius: var(--border-radius-4, 4px);
    border: none;
}

.question-title {
    font-weight: var(--weight-B, 600);
    margin-bottom: 1em;
    color: var(--c-text-1, rgba(0, 0, 0, 0.88));
    font-size: var(--font-14, 14px);
    line-height: var(--lineheight-14, 22px);
}

.required-mark {
    color: var(--c-semantic-assertive, #F4312E);
    margin-left: 0.25em;
}

.choices-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1em 2em;
    align-items: flex-start;
}

.choice-item {
    display: flex;
    align-items: center; /* flex-start から center に変更 */
    gap: 0.5em;
    min-width: 200px;
    flex: 0 1 auto;
    position: relative;
}

.choice-item label,
.choice-item .form-check-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    line-height: var(--lineheight-14, 22px);
    font-weight: var(--weight-R, 400);
    color: var(--c-text-1, rgba(0, 0, 0, 0.88));
    font-size: var(--font-14, 14px);
    margin: 0; /* margin-left を削除 */
    padding: 0;
    position: relative;
}

/* 疑似要素を完全に無効化 */
.choice-item label::before,
.choice-item label::after,
.choice-item .form-check-label::before,
.choice-item .form-check-label::after {
    display: none !important;
    content: none !important;
}

/* アンケート用ラジオボタン・チェックボックスの修正 */
.radio-input,
.checkbox-input,
.form-check-input {
    appearance: none;
    margin: 0;
    margin-right: 8px;
    position: relative;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    background-color: var(--c-surface-1, #FFF);
    border: 2px solid var(--c-border-2, rgba(68, 94, 131, 0.32));
    box-sizing: border-box;
}

.radio-input,
.form-check-input[type="radio"] {
    border-radius: var(--border-radius-round, 100vh);
}

.checkbox-input,
.form-check-input[type="checkbox"] {
    border-radius: var(--border-radius-4, 4px);
}

.radio-input:checked,
.form-check-input[type="radio"]:checked {
    background-color: var(--c-text-5, #FFF);
    border: 6px solid var(--c-brand-primary, #1850BF);
}

/* .checkbox-input:checked,
.form-check-input[type="checkbox"]:checked {
    background-color: var(--c-brand-primary, #1850BF);
    border: 2px solid var(--c-brand-primary, #1850BF);
} */

.checkbox-input:checked::after,
.form-check-input[type="checkbox"]:checked::after {
    content: 'レ';
    position: absolute;
    width: 10px;
    height: 8px;
    top: -2px;
    left: 1px;
    pointer-events: none;
}

.text-input,
.textarea-input,
.other-input {
    width: 100%;
    padding: 7px 12px;
    background-color: var(--c-surface-1, #FFF);
    border: 2px solid var(--c-border-1, rgba(68, 94, 131, 0.16));
    border-radius: var(--border-radius-4, 4px);
    box-sizing: border-box;
    color: var(--c-text-2, rgba(0, 0, 0, 0.72));
    font-size: var(--font-14, 14px);
    line-height: var(--lineheight-14, 22px);
    font-weight: var(--weight-R, 400);
    transition: var(--animation-hover, .2s);
}

.textarea-input {
    height: 106px;
    resize: vertical;
}

.other-input-choice {
    width: 100%;
}

.other-input {
    margin-top: 0.5em;
    margin-left: 1.5em;
    width: 80%;
}

.text-input:hover,
.textarea-input:hover,
.other-input:hover {
    background-color: var(--c-surface-2, rgba(68, 94, 131, 0.05));
    transition: var(--animation-hover, .2s);
}

.text-input:focus,
.textarea-input:focus,
.other-input:focus {
    outline: none;
    border: 2px solid var(--c-brand-primary, #1850BF);
    transition: var(--animation-hover, .2s);
}

.error-message {
    color: var(--c-semantic-assertive, #F4312E);
    font-size: var(--font-12, 12px);
    margin-top: 0.5em;
    display: block;
}

/* 追加：スクロール防止のためのCSS */
input[type="radio"],
input[type="checkbox"] {
    scroll-margin: 0 !important;
    scroll-padding: 0 !important;
}

input[type="radio"]:focus,
input[type="checkbox"]:focus {
    scroll-margin: 0 !important;
    scroll-padding: 0 !important;
    outline-offset: 2px;
}

/* レスポンシブデザイン - タブレット（768px以下） */
@media only screen and (max-width: 768px) {
    .catalog-request-container {
        padding: 0 15px;
    }

    .request-form {
        padding: 2em;
    }

    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .catalog-item {
        padding: 1em;
    }

    .other-input {
        margin-left: 1em;
        width: calc(100% - 1em);
    }

    /* アンケート選択肢をタブレットでも横並び維持 */
    .choices-container {
        gap: 0.75em 1.5em;
    }

    .choice-item {
        min-width: 150px;
    }

    /* 役職選択ラジオボタンのタブレット対応 */
    .position-radio-group {
        gap: 0.5em 1.5em;
    }
}

/* レスポンシブデザイン - mobile サイズ */
@media only screen and (max-width: 743px) {
    .catalog-request-container {
        padding: 0 10px;
    }

    .request-form {
        padding: 1.5em;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .catalog-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5em;
    }

    .catalog-checkbox,
    .catalog-thumbnail {
        margin-right: 0;
        margin-bottom: 1em;
    }

    .other-input {
        margin-left: 0;
        width: 100%;
    }

    /* モバイルでは縦並びに戻す */
    .choices-container {
        flex-direction: column;
        gap: 0.75em;
    }

    .choice-item {
        min-width: auto;
        width: 100%;
    }

    /* 役職選択ラジオボタンのモバイル対応 */
    .position-radio-group {
        flex-direction: column;
        gap: 0.75em;
    }

    .form-check.form-check-inline {
        width: 100%;
    }
}

/* ===============================================
   既存のメインコンテナ、ヘッダー部分は保持
   =============================================== */

/* メインコンテナ */
.scroll-contact {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.top-contact {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 20px 0;
}

/* ヘッダー部分 */
.main-catalog-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    padding: 40px 20px 30px;
    margin: 0 0 10px 0;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    line-height: var(--lineheight-24, 14px);
}

.section-title {
    text-align: center;
    padding: 30px 20px 20px;
    background: linear-gradient(135deg, var(--company-primary, #667eea) 0%, var(--company-secondary, #764ba2) 100%);
    color: white;
    margin: 0 0 20px 0;
}

.section-title p {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

/* 企業ブランディング */
.company-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--company-primary, #667eea) 0%, var(--company-secondary, #764ba2) 100%);
    color: white;
}

.company-logo {
    height: 40px;
    margin-right: 15px;
}

.company-name {
    font-size: 18px;
    font-weight: 600;
}

/* フォームコンテナ */
.contact-card {
    padding: 40px 30px;
    margin: 20px 0;
}

/* 企業カラーのカスタムプロパティを動的に設定 */
.company-colors {
    --company-primary: var(--primary-color, #667eea);
    --company-secondary: var(--secondary-color, #764ba2);
}

/* Livewire Loading States */
[wire\:loading] {
    opacity: 0.6;
    pointer-events: none;
}

[wire\:loading\.delay] {
    opacity: 1;
}

[wire\:loading\.delay\.shortest] {
    opacity: 1;
}

/* フォーカス表示の改善 */
.catalog-form-control:focus,
.catalog-form-select:focus,
.catalog-radio-btn:focus,
.catalog-checkbox input:focus,
.position-radio-group .form-check.form-check-inline input[type="radio"]:focus {
    outline: 2px solid var(--c-brand-primary, #1850BF);
    outline-offset: 2px;
}

/* アクセシビリティ向上 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 印刷用スタイル */
@media print {
    .scroll-contact {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .company-branding,
    .section-title {
        background: #f5f5f5 !important;
        color: #333 !important;
    }

    .button {
        display: none;
    }
}

.text-danger {
    color: #F4312E;
}

/* フォームグループ全体のエラー状態 */
.form-group.has-error {
    border-left: 4px solid var(--c-semantic-assertive, #F4312E);
    padding-left: 15px;
    margin-left: -15px;
    background-color: rgba(244, 49, 46, 0.03);
    border-radius: var(--border-radius-4, 4px);
    padding: 15px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.form-group.has-error .catalog-form-label {
    color: var(--c-semantic-assertive, #F4312E);
    font-weight: var(--weight-B, 600);
}

.form-group.has-error .catalog-assistive-text {
    color: var(--c-semantic-assertive, #F4312E);
    font-weight: var(--weight-B, 600);
}

/* アンケート質問のエラー状態 */
.enquate-question.has-error {
    border-left: 4px solid var(--c-semantic-assertive, #F4312E);
    padding-left: 20px;
    margin-left: -20px;
    background-color: rgba(244, 49, 46, 0.03);
    border-radius: var(--border-radius-4, 4px);
    padding: 20px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.enquate-question.has-error .question-title {
    color: var(--c-semantic-assertive, #F4312E);
    font-weight: var(--weight-B, 600);
}

.enquate-question.has-error .required-mark {
    color: var(--c-semantic-assertive, #F4312E);
}

.enquate-question.has-error .choice-item {
    background-color: rgba(244, 49, 46, 0.05);
    padding: 0.5rem;
    border-radius: var(--border-radius-4, 4px);
    margin-bottom: 0.25rem;
}

.enquate-question.has-error .choice-item:hover {
    background-color: rgba(244, 49, 46, 0.08);
}

/* エラーメッセージのスタイル改善 */
.text-danger,
.error-message,
.catalog-error,
.catalog-alert-danger {
    color: var(--c-semantic-assertive, #F4312E) !important;
    font-size: var(--font-12, 12px);
    font-weight: var(--weight-R, 400);
    margin-top: 0.5rem;
    display: block;
    line-height: var(--lineheight-12, 18px);
    animation: slideDown 0.3s ease-out;
}

/* エラーメッセージのアニメーション */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 50px;
    }
}

/* カタログ選択エリアのエラー状態 */
.catalog-selection.has-error {
    background: rgba(244, 49, 46, 0.05);
    border-color: var(--c-semantic-assertive, #F4312E);
}

.catalog-item.has-error {
    border-color: var(--c-semantic-assertive, #F4312E);
    background-color: rgba(244, 49, 46, 0.03);
}

.catalog-item.has-error:hover {
    border-color: var(--c-semantic-assertive, #F4312E);
    background-color: rgba(244, 49, 46, 0.08);
}

/* プライバシー同意エリアのエラー状態 */
.privacy-agreement.has-error {
    background: rgba(244, 49, 46, 0.05);
    border-color: var(--c-semantic-assertive, #F4312E);
}


/* レスポンシブ対応（エラー状態） */
@media only screen and (max-width: 768px) {
    .form-group.has-error,
    .enquate-question.has-error {
        padding: 12px;
        margin-left: -12px;
        padding-left: 16px;
    }
}

@media only screen and (max-width: 743px) {
    .form-group.has-error,
    .enquate-question.has-error {
        padding: 10px;
        margin-left: -10px;
        padding-left: 14px;
    }

    .text-danger,
    .error-message {
        font-size: var(--font-11, 11px);
        line-height: var(--lineheight-11, 16px);
    }
}

/* アクセシビリティ向上（エラー状態） */
@media (prefers-contrast: high) {
    .text-danger,
    .error-message {
        color: #000 !important;
        font-weight: var(--weight-B, 600);
    }

    .form-group.has-error,
    .enquate-question.has-error {
        border-left-color: #000;
        background-color: #f0f0f0;
    }
}

/* 印刷用スタイル（エラー状態） */
@media print {

    .text-danger,
    .error-message {
        color: #000 !important;
        font-weight: var(--weight-B, 600);
    }

    .form-group.has-error,
    .enquate-question.has-error {
        border-left: 4px solid #000;
        background-color: #f5f5f5;
    }
}

/* ダークモード対応（エラー状態） */
@media (prefers-color-scheme: dark) {

    .text-danger,
    .error-message {
        color: #ff6b6b !important;
    }

    .form-group.has-error,
    .enquate-question.has-error {
        background-color: rgba(255, 107, 107, 0.1);
        border-left-color: #ff6b6b;
    }
}

/* ===============================================
   Catalog Download Page Styles (common.css/request.css 追記用)
   =============================================== */

/* ダウンロードページコンテナ */
.download-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    box-sizing: border-box;
    margin: 0 auto;
}

/* ダウンロードカード */
.download-card {
    background: var(--c-surface-1, #FFF);
    border-radius: var(--border-radius-4, 4px);
    box-shadow: 0 8px 24px rgba(68, 94, 131, 0.16);
    overflow: hidden;
    border: 1px solid var(--c-border-1, rgba(68, 94, 131, 0.16));
    animation: fadeInUp 0.6s ease-out;
}

/* ダウンロードヘッダー */
.download-header {
    background: linear-gradient(135deg, var(--c-brand-primary, #1850BF) 0%, var(--c-brand-primary-dark, #0D4199) 100%);
    color: var(--c-text-5, #FFF);
    padding: 30px;
    text-align: center;
    position: relative;
}

.download-header::before {
    content: '✅';
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
}

.download-title {
    font-size: var(--font-24, 24px);
    line-height: var(--lineheight-24, 32px);
    font-weight: var(--weight-B, 600);
    margin: 0 0 8px 0;
}

.download-subtitle {
    font-size: var(--font-16, 16px);
    line-height: var(--lineheight-16, 24px);
    font-weight: var(--weight-R, 400);
    margin: 0;
    opacity: 0.9;
}

/* ダウンロードボディ */
.download-body {
    padding: 40px 30px;
    text-align: center;
}

/* 成功アイコン */
.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--c-semantic-success, #00927A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--c-text-5, #FFF);
    animation: pulse 2s infinite;
}

/* ダウンロードメッセージ */
.download-message {
    margin-bottom: 30px;
}

.download-message p {
    color: var(--c-text-2, rgba(0, 0, 0, 0.72));
    font-size: var(--font-16, 16px);
    line-height: var(--lineheight-16, 24px);
    margin: 0 0 12px 0;
}

.download-message p:last-child {
    margin-bottom: 0;
}

/* ダウンロードアクション */
.download-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.download-button {
    min-width: 200px;
    position: relative;
}

.download-button.downloading {
    background: var(--c-surface-3, rgba(68, 94, 131, 0.08));
    color: var(--c-text-3, rgba(0, 0, 0, 0.48));
    cursor: not-allowed;
    pointer-events: none;
}

.download-button.downloading::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--c-text-3, rgba(0, 0, 0, 0.48));
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 自動ダウンロード情報 */
.auto-download-info {
    background: var(--c-brand-primary-container, #E1EDFA);
    padding: 20px;
    border-radius: var(--border-radius-4, 4px);
    margin: 25px 0;
    border-left: 4px solid var(--c-brand-primary, #1850BF);
}

.auto-download-info p {
    color: var(--c-text-1, rgba(0, 0, 0, 0.88));
    font-size: var(--font-14, 14px);
    line-height: var(--lineheight-14, 22px);
    margin: 0;
    font-weight: var(--weight-R, 400);
}

/* カウントダウン */
.countdown {
    font-size: var(--font-20, 20px);
    line-height: var(--lineheight-20, 28px);
    font-weight: var(--weight-B, 600);
    color: var(--c-brand-primary, #1850BF);
    margin-top: 15px;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* ダウンロードページ専用のフルスクリーンレイアウト */
.download-page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--c-background-2, #F0F2F5);
    padding: 20px;
}

/* レスポンシブデザイン - mobile サイズ */
@media only screen and (max-width: 743px) {
    .download-container {
        padding: 16px;
    }

    .download-header {
        padding: 25px 20px;
    }

    .download-header::before {
        left: 20px;
        font-size: 24px;
    }

    .download-title {
        font-size: var(--font-20, 20px);
        line-height: var(--lineheight-20, 28px);
    }

    .download-subtitle {
        font-size: var(--font-14, 14px);
        line-height: var(--lineheight-14, 22px);
    }

    .download-body {
        padding: 30px 20px;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 20px;
    }

    .download-message p {
        font-size: var(--font-14, 14px);
        line-height: var(--lineheight-14, 22px);
    }

    .download-button {
        width: 100%;
        min-width: auto;
    }

    .download-page-container {
        padding: 16px;
    }
}

/* 印刷用スタイル */
@media print {
    .download-page-container {
        background: white;
    }

    .download-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .download-header {
        background: #f5f5f5 !important;
        color: #333 !important;
    }

    .download-actions {
        display: none;
    }
}

/* ハイコントラストモード */
@media (prefers-contrast: high) {
    .download-header {
        background: #000 !important;
        color: #fff !important;
    }

    .success-icon {
        background: #000;
        color: #fff;
    }

    .auto-download-info {
        background: #f0f0f0;
        border-left-color: #000;
    }
}

/* アクセシビリティ向上 */
@media (prefers-reduced-motion: reduce) {
    .download-card,
    .success-icon {
        animation: none;
    }

    .download-button.downloading::before {
        animation: none;
    }
}

.button {
    cursor: pointer;
}

/* ===============================================
   Steps Navigation Styles
   =============================================== */

/* ステップナビゲーションのスタイル */
.steps_nav {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 20px 0;
    background: var(--c-surface-2, rgba(68, 94, 131, 0.05));
    border-radius: var(--border-radius-4, 4px);
    margin-bottom: 30px;
    border: 2px solid var(--c-border-1, rgba(68, 94, 131, 0.16));
    min-width: 100%;
    box-sizing: border-box;
}

.steps_nav li {
    position: relative;
    margin: 0 25px;
    flex: 1;
    max-width: 200px;
    min-width: 150px;
}

.steps_nav li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -25px;
    width: 25px;
    height: 2px;
    background: var(--c-border-2, rgba(68, 94, 131, 0.32));
    transform: translateY(-50%);
}

.steps_nav li:not(:last-child).completed::after {
    background: var(--c-semantic-positive, #28a745);
}

.steps_nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--c-text-2, rgba(0, 0, 0, 0.72));
    transition: var(--animation-hover, .2s);
    padding: 15px 10px;
    border-radius: 50%;
    min-width: 120px;
    width: 100%;
    box-sizing: border-box;
}

.steps_nav a:hover {
    color: var(--c-text-1, rgba(0, 0, 0, 0.88));
    transform: translateY(-2px);
}

.steps_nav a.step-active {
    color: var(--c-brand-primary, #1850BF);
}

.steps_nav a.step-disabled {
    color: var(--c-text-3, rgba(0, 0, 0, 0.56));
    cursor: not-allowed;
}

.steps_nav a.step-disabled:hover {
    transform: none;
}

.step_no {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--c-surface-3, rgba(68, 94, 131, 0.1));
    color: var(--c-text-2, rgba(0, 0, 0, 0.72));
    font-weight: var(--weight-B, 600);
    font-size: var(--font-16, 16px);
    margin-bottom: 12px;
    transition: var(--animation-hover, .2s);
    flex-shrink: 0;
}

.steps_nav a.step-active .step_no {
    background: var(--c-brand-primary, #1850BF);
    color: var(--c-text-5, #FFF);
    box-shadow: 0 2px 8px rgba(24, 80, 191, 0.3);
}

.steps_nav a.completed .step_no {
    background: var(--c-semantic-positive, #28a745);
    color: var(--c-text-5, #FFF);
}

.steps_nav a.step-disabled .step_no {
    background: var(--c-surface-1, #FFF);
    color: var(--c-text-3, rgba(0, 0, 0, 0.56));
}

.step_guide_text {
    font-size: var(--font-12, 12px);
    text-align: center;
    line-height: var(--lineheight-12, 18px);
    max-width: 150px;
    min-width: 100px;
    font-weight: var(--weight-R, 400);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.steps_nav a.step-active .step_guide_text {
    color: var(--c-brand-primary, #1850BF);
    font-weight: var(--weight-B, 600);
}

.steps_nav a.completed .step_guide_text {
    color: var(--c-semantic-positive, #28a745);
}

.steps_nav a.step-disabled .step_guide_text {
    color: var(--c-text-3, rgba(0, 0, 0, 0.56));
}

/* レスポンシブ対応 */
@media only screen and (max-width: 768px) {
    .steps_nav {
        flex-direction: column;
        padding: 15px 0;
        min-width: 100%;
    }

    .steps_nav li {
        margin: 10px 0;
        flex: none;
        max-width: none;
        min-width: 200px;
        width: 100%;
    }

    .steps_nav li:not(:last-child)::after {
        display: none;
    }

    .steps_nav a {
        flex-direction: row;
        min-width: 200px;
        width: 100%;
        padding: 12px 20px;
        justify-content: flex-start;
    }

    .step_no {
        width: 40px;
        height: 40px;
        font-size: var(--font-14, 14px);
        margin-bottom: 0;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .step_guide_text {
        font-size: var(--font-11, 11px);
        max-width: none;
        min-width: auto;
        text-align: left;
        flex: 1;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media only screen and (max-width: 743px) {
    .steps_nav {
        padding: 10px 0;
    }

    .steps_nav li {
        min-width: 180px;
    }

    .steps_nav a {
        padding: 10px 15px;
        min-width: 180px;
    }

    .step_no {
        width: 35px;
        height: 35px;
        font-size: var(--font-12, 12px);
        margin-right: 12px;
    }

    .step_guide_text {
        font-size: var(--font-10, 10px);
    }
}

@media only screen and (max-width: 480px) {
    .steps_nav li {
        min-width: 160px;
    }

    .steps_nav a {
        min-width: 160px;
        padding: 8px 12px;
    }

    .step_no {
        width: 32px;
        height: 32px;
        font-size: var(--font-11, 11px);
        margin-right: 10px;
    }

    .step_guide_text {
        font-size: var(--font-9, 9px);
    }
}

/* アクセシビリティ対応 */
@media (prefers-contrast: high) {
    .steps_nav {
        border: 3px solid var(--c-border-1, rgba(68, 94, 131, 0.16));
    }

    .steps_nav a.step-active .step_no {
        border: 2px solid var(--c-brand-primary, #1850BF);
    }

    .steps_nav a.completed .step_no {
        border: 2px solid var(--c-semantic-positive, #28a745);
    }
}

@media (prefers-reduced-motion: reduce) {
    .steps_nav a,
    .step_no {
        transition: none;
    }

    .steps_nav a:hover {
        transform: none;
    }
}

@media print {
    .steps_nav {
        background: var(--c-surface-1, #FFF);
        border: 1px solid var(--c-border-1, rgba(68, 94, 131, 0.16));
    }

    .steps_nav a {
        color: var(--c-text-1, rgba(0, 0, 0, 0.88));
    }

    .step_no {
        background: var(--c-surface-3, rgba(68, 94, 131, 0.1));
        color: var(--c-text-1, rgba(0, 0, 0, 0.88));
    }
}

/* ダウンロードメッセージ */
.download-message {
    margin-bottom: 30px;
}

.download-message p {
    color: var(--c-text-2);
    font-size: var(--font-16);
    line-height: var(--lineheight-16);
    margin: 0 0 12px 0;
}

.download-message p:last-child {
    margin-bottom: 0;
}

/* 自動ダウンロード情報 */
.auto-download-info {
    background: var(--c-brand-primary-container);
    padding: 20px;
    border-radius: var(--border-radius-4);
    margin: 25px 0;
    border-left: 4px solid var(--c-brand-primary);
}

.auto-download-info p {
    color: var(--c-text-1);
    font-size: var(--font-14);
    line-height: var(--lineheight-14);
    margin: 0;
    font-weight: var(--weight-R);
}

/* カウントダウン */
.countdown {
    font-size: var(--font-20);
    line-height: var(--lineheight-20);
    font-weight: var(--weight-B);
    color: var(--c-brand-primary);
    margin-top: 15px;
}

/* ダウンロードアクション */
.download-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* ボタンスタイル */
.button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius-4);
    text-decoration: none;
    font-weight: var(--weight-B);
    font-size: var(--font-16);
    line-height: var(--lineheight-16);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--animation-hover);
    text-align: center;
    box-sizing: border-box;
}

.button.primary-M {
    background: var(--c-brand-primary);
    color: var(--c-text-5);
    border-color: var(--c-brand-primary);
}

.button.primary-M:hover {
    background: var(--c-brand-primary-dark);
    border-color: var(--c-brand-primary-dark);
}

.button.secondary-M {
    background: transparent;
    color: var(--c-brand-primary);
    border-color: var(--c-brand-primary);
}

.button.secondary-M:hover {
    background: var(--c-surface-2);
}

.download-button {
    min-width: 200px;
    position: relative;
}

.download-button.downloading {
    background: var(--c-surface-3);
    color: var(--c-text-3);
    cursor: not-allowed;
    pointer-events: none;
}

.download-button.downloading::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--c-text-3);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* レスポンシブデザイン - mobile サイズ */
@media only screen and (max-width: 743px) {
    .download-page-container {
        padding: 16px;
    }

    .download-container {
        padding: 16px;
    }

    .download-header {
        padding: 25px 20px;
    }

    .download-header::before {
        left: 20px;
        font-size: 24px;
    }

    .download-title {
        font-size: var(--font-20);
        line-height: var(--lineheight-20);
    }

    .download-subtitle {
        font-size: var(--font-14);
        line-height: var(--lineheight-14);
    }

    .download-body {
        padding: 30px 20px;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 20px;
    }

    .download-message p {
        font-size: var(--font-14);
        line-height: var(--lineheight-14);
    }

    .download-button {
        width: 100%;
        min-width: auto;
    }
}

/* アクセシビリティ向上 */
@media (prefers-reduced-motion: reduce) {
    .download-card,
    .success-icon {
        animation: none;
    }

    .download-button.downloading::before {
        animation: none;
    }
}
