/* ============================================================
   CONTACT ページ専用
   ============================================================ */
.mc-contact-section {
    
    padding: 60px 0 100px;
}




.mc-contact-heading {
    text-align: center;
    font-family: 'PT Serif', serif;
    font-weight: 700;
    font-size: 40px;
    color: #035271;
    letter-spacing: 1.12px;
    margin-bottom: 32px;
}

.mc-required {
    color: #d0292a;
    font-size: 12px;
    font-weight: 700;
    margin-left: 6px;
}

/* ── 入力エラー表示（.mc-field-error 本体は common.css で全ページ共通定義） ── */
.mc-field-error--center {
    text-align: center;
    margin-top: 8px;
}
.mc-contact-form__row input.is-invalid,
.mc-contact-form__row select.is-invalid,
.mc-contact-form__row textarea.is-invalid {
    border-color: #d0292a !important;
    background: #fff6f6;
}

.mc-contact-form {
    /* max-width: 760px; */
    margin: 0 auto;
}

/* ── 入力カード（グレー背景） ───────────────────────── */
.mc-contact-form__card-container{
    background: #F5F8FA;
    border-radius: 8px;
}
.mc-contact-form__card {
    max-width: 656px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 56px 0px;
}
.mc-contact-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.mc-contact-form__row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mc-contact-form__row > label {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #202020;
}
.mc-contact-form__row input[type="text"],
.mc-contact-form__row input[type="email"],
.mc-contact-form__row input[type="tel"],
.mc-contact-form__row select,
.mc-contact-form__row textarea {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    color: #202020;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 12px 14px;
    width: 100%;
    transition: border-color 0.2s;
}
.mc-contact-form__row select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23035271' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
    padding-right: 40px;
}
.mc-contact-form__row input:disabled {
    background: #f2f2f2;
    color: #999;
    cursor: not-allowed;
}
.mc-contact-form__company[hidden] {
    display: none;
}
.mc-contact-form__company {
    margin-top: 8px;
}
.mc-contact-form__row input:focus,
.mc-contact-form__row select:focus,
.mc-contact-form__row textarea:focus {
    outline: none;
    border-color: #035271;
}
.mc-contact-form__row textarea {
    resize: vertical;
}

/* ── フォーム送信中 ────────────────────────────────── */
.mc-contact-loading {
    z-index: 2100;
}
.mc-contact-loading__spinner {
    display: inline-block;
    width: 42px;
    height: 42px;
    margin: 4px 0 20px;
    border: 4px solid #dce7eb;
    border-top-color: #035271;
    border-radius: 50%;
    animation: mc-contact-loading-spin .8s linear infinite;
}
.mc-contact-loading__hint {
    margin: -12px 0 0;
    color: #777;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    line-height: 1.6;
}
.mc-contact-loading .mc-modal__message {
    white-space: pre-line;
}
body.mc-contact-loading-open {
    overflow: hidden;
}
@keyframes mc-contact-loading-spin {
    to { transform: rotate(360deg); }
}

/* ── A/S 添付ファイル ─────────────────────────────── */
.mc-contact-form__attachments[hidden] {
    display: none;
}
.mc-contact-form__attachments input[type="file"] {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    color: #202020;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 10px;
    width: 100%;
}
.mc-contact-form__attachment-help {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    line-height: 1.7;
    color: #666;
}
.mc-contact-form__attachment-help a {
    color: #035271;
    text-decoration: underline;
}
.mc-contact-form__attachment-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    color: #444;
}
.mc-contact-form__attachment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}
.mc-contact-form__attachment-thumb {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: cover;
    border-radius: 3px;
    background: #f2f2f2;
}
.mc-contact-form__attachment-name {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mc-contact-form__attachment-progress {
    width: 110px;
    height: 8px;
    flex: 0 0 110px;
    accent-color: #035271;
}
.mc-contact-form__attachment-status {
    flex: 0 0 92px;
    color: #035271;
    font-size: 11px;
    text-align: right;
}
.mc-contact-form__attachment-remove {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #666;
    background: transparent;
    font-size: 20px;
    line-height: 22px;
    cursor: pointer;
}
.mc-contact-form__attachment-remove:hover,
.mc-contact-form__attachment-remove:focus {
    color: #d0292a;
    background: #fff0f0;
}
@media (max-width: 600px) {
    .mc-contact-form__attachment-item {
        flex-wrap: wrap;
    }
    .mc-contact-form__attachment-name {
        flex: 1 1 calc(100% - 80px);
    }
    .mc-contact-form__attachment-progress {
        flex: 1 1 calc(100% - 108px);
        width: auto;
        margin-left: 48px;
    }
    .mc-contact-form__attachment-status {
        flex: 0 0 auto;
        min-width: 84px;
    }
}

/* ── 個人／法人 ラジオ ──────────────────────────────── */
.mc-contact-form__radio-group {
    display: flex;
    gap: 24px;
    margin-bottom: 8px;
}
.mc-contact-form__radio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    color: #202020;
    cursor: pointer;
}
.mc-contact-form__radio input[type="radio"] {
    accent-color: #035271;
    width: 16px;
    height: 16px;
}

/* ── 郵便番号 ───────────────────────────────────────── */
.mc-contact-form__zip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.mc-contact-form__zip-mark {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    color: #202020;
}
.mc-contact-form__zip-sep {
    color: #202020;
}
.mc-contact-form__zip input {
    max-width: 100px;
    text-align: center;
}
.mc-contact-form__zip-btn {
    flex-shrink: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    background: #035271;
    border: none;
    border-radius: 4px;
    padding: 12px 18px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.mc-contact-form__zip-btn:hover {
    background: #024060;
}
.mc-contact-form__zip-btn:disabled {
    background: #9fb4bd;
    cursor: not-allowed;
}
.mc-contact-form__zip-msg {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    color: #035271;
    min-height: 16px;
}
.mc-contact-form__zip-msg--error {
    color: #d0292a;
}

/* ── チェックボックス（プライバシー同意）───────────── */
.mc-contact-form__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #202020;
    cursor: pointer;
    justify-content: center;
}
.mc-contact-form__checkbox input[type="checkbox"] {
    accent-color: #035271;
    width: 18px;
    height: 18px;
}

/* ── 個人情報保護ポリシー ───────────────────────────── */
.mc-contact-policy {
    margin-top: 40px;
    text-align: center;
}
.mc-contact-policy__heading {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #202020;
    margin-bottom: 16px;
    text-align: left;
}
.mc-contact-policy__agree-label {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #202020;
    text-decoration: underline;
    margin: 20px 0 12px;
}

.mc-policy-box {
    text-align: left;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 20px 24px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    line-height: 1.8;
    color: #444;
}
.mc-policy-box__title {
    font-size: 14px;
    font-weight: 700;
    color: #035271;
    margin: 24px 0 8px;
}
.mc-policy-box__title:first-child {
    margin-top: 0;
}
.mc-policy-box__h {
    font-size: 12px;
    font-weight: 700;
    color: #202020;
    margin: 12px 0 4px;
}
.mc-policy-box p {
    margin: 0 0 8px;
}
.mc-policy-box__list {
    margin: 0 0 8px;
    padding-left: 1.4em;
}
.mc-policy-box__list li {
    margin-bottom: 4px;
}

/* ── 送信ボタン ─────────────────────────────────────── */
.mc-contact-form__submit {
    text-align: center;
    margin-top: 40px;
}
.mc-contact-form__submit .mc-btn {
    min-width: 260px;
    padding-right: 36px;
}
.mc-contact-form__submit .mc-btn:disabled {
    background: #666;
    color: #fff;
    cursor: not-allowed;
}
.mc-contact-form__submit .mc-btn:disabled:hover {
    background: #666;
}

@media (max-width: 767px) {
    .mc-contact-section {
        padding: 40px 0 60px;
    }
    .mc-contact-form__card {
        padding: 24px;
    }
    .mc-contact-heading {
        font-size: 28px;
    }
}
