/* Contact Form 7 確認モーダル */
.cf7-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.cf7-confirm-modal.is-active {
    display: flex;
}

.cf7-confirm-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.cf7-confirm-modal__dialog {
    position: relative;
    width: min(640px, calc(100% - 32px));
    max-height: calc(100% - 64px);
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.cf7-confirm-modal__body {
    position: relative;
    padding: 32px 32px 24px;
    overflow-y: auto;
}

.cf7-confirm-modal__title {
    margin: 0 0 24px;
    font-size: 1.375rem;
    font-weight: 600;
    text-align: center;
}

.cf7-confirm-modal__summary {
    margin: 0 0 32px;
}

.cf7-confirm-modal__summary dl {
    margin: 0;
}

.cf7-confirm-modal__summary--complete {
    text-align: center;
}

.cf7-confirm-modal__summary dt,
.cf7-confirm-modal__summary dd {
    padding: 12px 0;
    line-height: 1.6;
}

.cf7-confirm-modal__summary dt {
    font-weight: 600;
    color: #333;
}

.cf7-confirm-modal__summary dd {
    margin: 0;
    color: #555;
    word-break: break-word;
    border-bottom: 1px solid #e5e5e5;
}

.cf7-confirm-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.cf7-confirm-modal__actions[hidden] {
    display: none !important;
}

.cf7-confirm-modal__complete {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.cf7-confirm-modal__complete-message {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.cf7-confirm-modal__complete-note {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.cf7-confirm-modal__complete-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 200px;
    padding: 10px 24px;
    border-radius: 9999px;
    border: 1px solid #e9458e;
    background: #fff;
    color: #e9458e;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.cf7-confirm-modal__complete-link:hover,
.cf7-confirm-modal__complete-link:focus {
    background: #e9458e;
    color: #fff;
    outline: none;
}

.cf7-confirm-modal__button {
    min-width: 160px;
    padding: 10px 20px;
    font-size: 0.95rem;
    border: 1px solid transparent;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.cf7-confirm-modal__button--back {
    background: #f5f5f5;
    color: #333;
}

.cf7-confirm-modal__button--back:hover,
.cf7-confirm-modal__button--back:focus {
    background: #e5e5e5;
    outline: none;
}

.cf7-confirm-modal__button--submit {
    background: #db6f9f;
    border-color: #e9458e;
    color: #fff;
}

.cf7-confirm-modal__button--submit:hover,
.cf7-confirm-modal__button--submit:focus {
    background: #e7a7c3;
    border-color: #e9458e;
    outline: none;
}

.cf7-confirm-modal__invalid-wrap {
    position: relative;
}

.cf7-confirm-modal__invalid-control {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 1px rgba(231, 76, 60, 0.2);
}

.cf7-confirm-modal__invalid-message {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #e74c3c;
}

@media (max-width: 640px) {
    .cf7-confirm-modal__body {
        padding: 24px 20px 16px;
    }

    .cf7-confirm-modal__title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .cf7-confirm-modal__button {
        flex: 1 1 45%;
    }
}

