/* お問い合わせ：連絡方法とフォームを左右に配置 */
.ae-contact-page {
    margin: 0;
    background: #fff;
    color: #080b20;
    font-family: Arial, "Helvetica Neue", "Yu Gothic", Meiryo, sans-serif;
}
.ae-contact-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: var(--ae-dot-background);
    animation: ae-dot-background-drift 20s ease-in-out infinite;
}
.ae-contact, .ae-contact * { box-sizing: border-box; }

/* 送信結果の小窓：PC・スマホ共通 */
.ae-contact-result,
.ae-contact-result * {
    box-sizing: border-box;
}

.ae-contact-result {
    width: min(460px, calc(100% - 32px));
    max-height: calc(100dvh - 40px);
    margin: auto;
    border: 2px solid #064bfa;
    border-radius: 8px;
    padding: 4px;
    overflow: auto;
    background: linear-gradient(140deg, #fff, #eaf5ff);
    color: #080b20;
    box-shadow: 4px 4px 0 #8fcfff;
    font-family: Arial, "Helvetica Neue", "Yu Gothic", Meiryo, sans-serif;
}

.ae-contact-result::backdrop {
    background: rgb(27 48 77 / 25%);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.ae-contact-result__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    background-color: #064bfa;
    background-image:
        linear-gradient(rgb(255 255 255 / 16%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 16%) 1px, transparent 1px);
    background-size: 24px 24px;
    color: #fff;
    font: 700 11px/1.5 "Courier New", monospace;
}

.ae-contact-result__close {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid rgb(255 255 255 / 60%);
    padding: 0;
    background: transparent;
    color: #fff;
    font: 700 22px/1 Arial, sans-serif;
    cursor: pointer;
}

.ae-contact-result__body {
    padding: clamp(18px, 5vw, 28px);
}

.ae-contact-result__label {
    margin: 0 0 10px;
    color: #064bfa;
    font: 700 10px/1.5 "Courier New", monospace;
    letter-spacing: .06em;
}

.ae-contact-result #ae-contact-result-title {
    margin: 0 0 12px;
    font-size: clamp(17px, 4.5vw, 22px);
    font-weight: 700;
    line-height: 1.5;
}

.ae-contact-result #ae-contact-result-message {
    margin: 0 0 22px;
    font-size: clamp(12px, 3.4vw, 14px);
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.ae-contact-result__confirm {
    display: block;
    min-height: 40px;
    max-width: 100%;
    margin-left: auto;
    border: 1px solid #064bfa;
    border-radius: 4px;
    padding: 9px 18px;
    background: #064bfa;
    color: #fff;
    font: 700 13px/1.5 Arial, "Yu Gothic", Meiryo, sans-serif;
    cursor: pointer;
}

.ae-contact-result button:focus-visible {
    outline: 3px solid #24aadd;
    outline-offset: 3px;
}

/* スマホ：送信結果の小窓をコンパクトに */
@media (max-width: 650px) {
    .ae-contact-result {
        width: min(300px, calc(100% - 48px));
    }

    .ae-contact-result__bar {
        gap: 8px;
        padding: 5px 8px;
        font-size: 10px;
    }

    .ae-contact-result__close {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .ae-contact-result__body {
        padding: 14px;
    }

    .ae-contact-result__label {
        margin-bottom: 6px;
        font-size: 9px;
    }

    .ae-contact-result #ae-contact-result-title {
        margin-bottom: 8px;
        font-size: 15px;
        line-height: 1.5;
    }

    .ae-contact-result #ae-contact-result-message {
        margin-bottom: 16px;
        font-size: 12px;
        line-height: 1.7;
    }

    .ae-contact-result__confirm {
        min-height: 36px;
        padding: 7px 12px;
        font-size: 12px;
    }
}

/* 小窓の処理が有効な場合は、フォーム下の結果枠を隠す */
body.ae-contact-feedback-ready .ae-contact .wpcf7-response-output {
    display: none;
}
.ae-contact {
    position: relative;
    width: 100%;
    max-width: 1160px;
    min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
    margin: 0 auto;
    padding: 32px 30px;
}
.ae-contact__header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}
.ae-contact__brand {
    margin: 0 0 10px;
    font: 700 14px "Courier New", monospace;
    letter-spacing: .12em;
    color: #064bfa;
}
.ae-contact__title {
    display: inline-block;
    max-width: none;
    margin: 0;
    font: 700 clamp(42px, 4vw, 72px)/1 Arial, Helvetica, sans-serif;
    letter-spacing: -.055em;
}
.ae-contact__subtitle {
    display: inline-block;
    margin: 0 0 0 24px;
    font-size: clamp(22px, 2.4vw, 38px);
    font-weight: 700;
}
.ae-contact__back { color: #064bfa; font-size: 16px; font-weight: 700; text-underline-offset: 5px; }
.ae-contact__layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}
.ae-contact__sidebar, .ae-contact__content { min-width: 0; }
.ae-contact__guides {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid #064bfa;
    padding: 18px 24px;
    background: #fff;
}
.ae-contact__guide { min-width: 0; padding: 0 24px; }
.ae-contact__guide + .ae-contact__guide { border-left: 1px solid #064bfa; }
.ae-contact__guide h3 { margin: 0 0 6px; color: #064bfa; font-size: 16px; line-height: 1.5; }
.ae-contact__guide p { margin: 4px 0 0; font-size: 14px; line-height: 1.7; }
.ae-contact__guide a { color: #064bfa; overflow-wrap: anywhere; text-decoration: none; }
.ae-contact__guide a[href^="tel:"] { color: #080b20; font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; }
.ae-contact__guide a[href^="mailto:"] { font-size: clamp(18px, 2vw, 26px); font-weight: 700; }
.ae-contact__recruit-note { margin: 14px 0 0; font-size: 14px; line-height: 1.8; text-align: center; }
.ae-contact__window { width: 100%; margin: 0; border: 2px solid #064bfa; padding: 4px; background: #fff; box-shadow: 4px 4px 0 #d8eaff; }
.ae-contact__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 30px;
    padding: 5px 12px;
    color: #fff;
    background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(255,255,255,.25) 2px 3px), #064bfa;
    font: 700 13px "Courier New", monospace;
}
.ae-contact__bar span:last-child { white-space: nowrap; }
.ae-contact__body { padding: 24px 30px; }
.ae-contact__heading { max-width: none; margin: 0 0 8px; font-size: clamp(24px, 2.2vw, 34px); font-weight: 700; line-height: 1.4; }
.ae-contact__instructions { margin: 0 0 22px; font-size: 15px; line-height: 1.8; }
.ae-contact__form {
    display: grid;
    gap: 18px;
}

/* フォーム内の自動追加される段落・改行を調整 */
.ae-contact__form p {
    margin: 0;
}

.ae-contact__form p:empty,
.ae-contact__form br {
    display: none;
}

.ae-contact__privacy .wpcf7-list-item {
    margin: 0;
}

.ae-contact__privacy .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.ae-contact__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ae-contact__field { min-width: 0; }
.ae-contact__field label { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 17px; font-weight: 700; }
.ae-contact__required { border: 1px solid #7b9fff; padding: 1px 5px; color: #064bfa; font-size: 11px; font-weight: 700; }
.ae-contact__field input, .ae-contact__field select, .ae-contact__field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    border: 1px solid #7b9fff;
    border-radius: 0;
    padding: 10px 12px;
    background: #fff;
    color: #080b20;
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
}
.ae-contact__field input, .ae-contact__field select { min-height: 44px; }
.ae-contact__field textarea { min-height: 125px; resize: vertical; }
.ae-contact__field input:focus, .ae-contact__field select:focus, .ae-contact__field textarea:focus { outline: 2px solid #c3ddff; outline-offset: 2px; border-color: #064bfa; }
.ae-contact__actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ae-contact__privacy { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.8; }
.ae-contact__privacy input { flex-shrink: 0; width: 20px; height: 20px; margin: 3px 0 0; accent-color: #064bfa; }
.ae-contact__privacy a { color: #064bfa; text-underline-offset: 4px; }
.ae-contact__button { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; min-height: 44px; border: 2px solid #064bfa; border-radius: 0; padding: 10px 28px; background: #fff; color: #064bfa; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.ae-contact__form .ae-contact__button { min-width: 180px; background: #064bfa; color: #fff; }
.ae-contact__button:not(:disabled):hover { background: #0035c4; color: #fff; }
.ae-contact__button:disabled { cursor: default; }
.ae-contact a:focus-visible, .ae-contact button:focus-visible, .ae-contact summary:focus-visible { outline: 3px dashed #064bfa; outline-offset: 4px; }
.ae-contact__delivery { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 20px; margin-top: 20px; padding: 16px 20px; background: #edf5ff; border-left: 3px solid #064bfa; }
.ae-contact__delivery h3 { max-width: none; margin: 0; color: #064bfa; font-size: 16px; font-weight: 700; line-height: 1.8; }
.ae-contact__delivery p { margin: 0; font-size: 14px; line-height: 1.8; }
.ae-contact__delivery strong { color: #064bfa; }
.ae-contact__notes { margin-top: 12px; border: 1px solid #a9c8ff; background: #fff; }
.ae-contact__notes summary { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.ae-contact__notes summary::-webkit-details-marker { display: none; }
.ae-contact__notes summary::after { content: "+"; color: #064bfa; }
.ae-contact__notes[open] summary::after { content: "−"; }
.ae-contact__notes-body { border-top: 1px solid #d8eaff; padding: 16px 20px; font-size: 14px; line-height: 1.6; }
.ae-contact__notes-body p { margin: 0 0 12px; }
.ae-contact__notes-body ul { margin: 0; padding-left: 20px; }
.ae-contact__notes-body li + li { margin-top: 8px; }
.ae-contact__footer { position: relative; z-index: 2; margin-top: 24px; text-align: center; }
/* 両サイドの装飾 */
.ae-contact__prop {
    --prop-size: min(180px, calc((100vw - 1160px) * 0.35));
    --angle: 0deg;
    --shift: 0px;
    --scale: 1;
    display: none;
    position: absolute;
    z-index: 1;
    width: var(--prop-size);
    height: auto;
    pointer-events: auto;
    transform: translateX(var(--shift)) rotate(var(--angle)) scale(var(--scale));
}

/* 左側 */
.ae-contact__prop--scissors,
.ae-contact__prop--blue-clip,
.ae-contact__prop--clip {
    left: calc((1160px - 100vw) / 4 - var(--prop-size) / 2);
}
.ae-contact__prop--scissors {
    top: 175px;
    --angle: -12deg;
    --shift: -4px;
}
.ae-contact__prop--blue-clip {
    top: calc(59% - var(--prop-size) / 2);
    --angle: 9deg;
    --shift: 6px;
    --scale: 0.8;
}
.ae-contact__prop--clip {
    bottom: 38px;
    --angle: -16deg;
    --shift: -3px;
    --scale: 0.9;
}

/* 右側 */
.ae-contact__prop--star,
.ae-contact__prop--keys,
.ae-contact__prop--pen {
    right: calc((1160px - 100vw) / 4 - var(--prop-size) / 2);
}
.ae-contact__prop--star {
    top: 20px;
    --angle: 11deg;
    --shift: 4px;
    --scale: 0.95;
}
.ae-contact__prop--keys {
    top: calc(41% - var(--prop-size) / 2);
    --angle: -10deg;
    --shift: -5px;
    --scale: 0.85;
}
.ae-contact__prop--pen {
    bottom: 135px;
    --angle: 15deg;
    --shift: 3px;
}

@media (min-width: 1361px) {
    .ae-contact__prop { display: block; }
}

/* 元の傾きを保ちながら動く */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .ae-contact__prop {
        transition: transform 0.3s ease;
    }
    .ae-contact__prop:hover {
        transform:
            translate(var(--shift), -8px)
            rotate(calc(var(--angle) + 6deg))
            scale(var(--scale));
    }
}
@media (max-width: 1100px) {
    .ae-contact { padding: 24px; }
    .ae-contact__body { padding: 22px; }
    .ae-contact__subtitle { display: block; margin: 10px 0 0; }
    .ae-contact__delivery { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 800px) {
    .ae-contact__guides {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }
    .ae-contact__guide { padding: 0; }
    .ae-contact__guide + .ae-contact__guide {
        border-left: 0;
        border-top: 1px solid #a9c8ff;
        padding-top: 16px;
    }
}
@media (max-width: 650px) {
    body.ae-contact-page #wpadminbar {
        position: fixed;
        top: 0;
    }

    body.ae-contact-page .ae-site-menu {
        top: var(--ae-return-admin, 0px);
        left: 0;
        bottom: auto;
        width: 48px;
        height: 48px;
    }

    body.ae-contact-page .ae-site-menu__trigger {
        width: 48px;
        height: 48px;
    }

    body.ae-contact-page .ae-showcase-return {
        top: 12px;
        right: 12px;
    }

    body.ae-contact-page .ae-showcase-return__link {
        min-height: 44px;
        padding: 8px 12px;
        gap: 6px;
        font-size: 11px;
    }

    .ae-contact { padding: 72px 16px 20px; }
    .ae-contact__header { padding-right: 0; }
    .ae-contact__title { font-size: 42px; }
    .ae-contact__subtitle { font-size: 20px; }
    .ae-contact__prop { display: none; }
    .ae-contact__body { padding: 20px 16px; }
    .ae-contact__row { grid-template-columns: 1fr; gap: 18px; }
    .ae-contact__actions { flex-direction: column; align-items: stretch; }
    .ae-contact__delivery { padding: 14px 16px; }
}
/* タブレット：連絡方法とフォームをコンパクトに */
@media (min-width: 651px) and (max-width: 1100px) {
    .ae-contact-page .ae-contact { padding: 20px 24px; }
    .ae-contact-page .ae-contact__header { margin-bottom: 16px; gap: 16px; }
    .ae-contact-page .ae-contact__brand { font-size: 12px; margin-bottom: 8px; }
    .ae-contact-page .ae-contact__title { font-size: 36px; }
    .ae-contact-page .ae-contact__subtitle { font-size: 16px; margin-top: 6px; }
    .ae-contact-page .ae-contact__back { font-size: 13px; }
    .ae-contact-page .ae-contact__layout { gap: 16px; }
    .ae-contact-page .ae-contact__guides {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        padding: 14px 16px;
    }
    .ae-contact-page .ae-contact__guide { padding: 0 12px; }
    .ae-contact-page .ae-contact__guide:first-child { padding-left: 0; }
    .ae-contact-page .ae-contact__guide + .ae-contact__guide {
        border-top: 0;
        border-left: 1px solid #a9c8ff;
        padding-top: 0;
        padding-right: 0;
    }
    .ae-contact-page .ae-contact__guide h3 { font-size: 14px; margin-bottom: 4px; }
    .ae-contact-page .ae-contact__guide p { font-size: 12px; line-height: 1.6; }
    .ae-contact-page .ae-contact__guide a[href^="tel:"] { font-size: 20px; }
    .ae-contact-page .ae-contact__guide a[href^="mailto:"] { font-size: 16px; }
    .ae-contact-page .ae-contact__recruit-note { font-size: 12px; margin-top: 10px; text-wrap: pretty; }
    .ae-contact-page .ae-contact__body { padding: 16px 20px; }
    .ae-contact-page .ae-contact__heading { font-size: 19px; }
    .ae-contact-page .ae-contact__instructions { font-size: 13px; line-height: 1.65; margin-bottom: 14px; text-wrap: pretty; }
    .ae-contact-page .ae-contact__form { gap: 12px; }
    .ae-contact-page .ae-contact__row { gap: 16px; }
    .ae-contact-page .ae-contact__field label { font-size: 14px; gap: 8px; margin-bottom: 6px; }
    .ae-contact-page .ae-contact__required { font-size: 10px; }
    .ae-contact-page .ae-contact__field input,
    .ae-contact-page .ae-contact__field select,
    .ae-contact-page .ae-contact__field textarea { padding: 8px 10px; font-size: 16px; }
    .ae-contact-page .ae-contact__field textarea { min-height: 96px; }
    .ae-contact-page .ae-contact__privacy { font-size: 12px; line-height: 1.6; }
    .ae-contact-page .ae-contact__button { font-size: 14px; padding: 8px 18px; }
    .ae-contact-page .ae-contact__form .ae-contact__button { min-width: 140px; }
    .ae-contact-page .ae-contact__delivery { margin-top: 14px; padding: 12px 14px; }
    .ae-contact-page .ae-contact__delivery h3 { font-size: 14px; }
    .ae-contact-page .ae-contact__delivery p { font-size: 12px; line-height: 1.65; }
    .ae-contact-page .ae-contact__notes summary { font-size: 14px; padding: 10px 14px; }
    .ae-contact-page .ae-contact__notes-body { font-size: 12px; line-height: 1.7; padding: 12px 14px; }
    .ae-contact-page .ae-contact__footer { margin-top: 16px; }
}
/* フォーム上の案内文 */
.ae-contact__intro > summary {
    display: none;
}

@media (max-width: 650px) {
    .ae-contact__intro > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 44px;
        margin-bottom: 20px;
        border: 1px solid #a9c8ff;
        padding: 12px 14px;
        background: #fff;
        color: #064bfa;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.7;
        list-style: none;
        cursor: pointer;
    }

    .ae-contact__intro > summary::-webkit-details-marker {
        display: none;
    }

    .ae-contact__intro > summary::after {
        content: "＋";
        flex-shrink: 0;
    }

    .ae-contact__intro[open] > summary {
        margin-bottom: 0;
        border-bottom: 0;
    }

    .ae-contact__intro[open] > summary::after {
        content: "−";
    }

    .ae-contact-page .ae-contact__intro > .ae-contact__instructions {
        border-top: 0;
        padding: 0 14px 12px;
        font-size: 12px;
        line-height: 1.7;
    }
}
.ae-contact-page .ae-contact__instructions {
    margin: 0 0 20px;
    padding: 14px 20px;
    border: 1px solid #a9c8ff;
    background: #fff;
    font-size: 15px;
    line-height: 1.6;
}

.ae-contact__instructions a {
    color: #064bfa;
    text-underline-offset: 3px;
}

/* フォーム見出しと入力欄の間隔 */
.ae-contact-page .ae-contact__heading {
    margin-bottom: 22px;
}
/* タイトルと説明枠の間隔 */
.ae-contact-page .ae-contact__header {
    margin-bottom: 16px;
}
/* スマホ：お問い合わせの文字サイズ */
@media (max-width: 650px) {
    .ae-contact-page:not(.ae-policy-page) .ae-contact__header > div {
        display: grid;
        gap: 4px;
    }

    .ae-contact-page:not(.ae-policy-page) .ae-contact__title {
        display: block;
        margin: 0;
        font-size: clamp(28px, 8.5vw, 34px);
        line-height: 1.02;
        letter-spacing: -0.045em;
    }

    .ae-contact-page:not(.ae-policy-page) .ae-contact__subtitle {
        display: block;
        margin: 0;
        font-size: 18px;
        line-height: 1.4;
    }

    .ae-contact-page:not(.ae-policy-page) .ae-contact__back {
        font-size: 14px;
    }

    .ae-contact-page .ae-contact__instructions {
        padding: 12px 14px;
        font-size: 13px;
        line-height: 1.7;
    }

    .ae-contact-page .ae-contact__heading {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .ae-contact__field label {
        width: 100%;
        font-size: 13px;
        gap: 8px;
        margin-bottom: 6px;
    }

    .ae-contact__field label .ae-contact__required {
        margin-left: auto;
        flex-shrink: 0;
        padding: 0 4px;
        font-size: 10px;
        line-height: 1.5;
    }

    .ae-contact__field input,
    .ae-contact__field select,
    .ae-contact__field textarea {
        padding: 8px 10px;
        font-size: 13px;
        line-height: 1.5;
    }

    .ae-contact__field input,
    .ae-contact__field select {
        min-height: 38px;
    }

    .ae-contact__field textarea {
        min-height: 96px;
    }

    .ae-contact__form {
        gap: 14px;
    }

    .ae-contact__row {
        gap: 14px;
    }

    .ae-contact__privacy {
        gap: 6px;
        font-size: 11px;
        line-height: 1.6;
    }

    .ae-contact__privacy .wpcf7-list-item label {
        gap: 6px;
    }

    .ae-contact__privacy input[type="checkbox"] {
        width: 14px;
        height: 14px;
        margin: 2px 0 0;
    }

    .ae-contact-page .ae-contact__actions {
        --contact-button-width: 140px;
        --contact-button-height: 38px;
        --contact-button-padding: 8px 16px;
        --contact-button-font-size: 13px;
        gap: 12px;
    }

    .ae-contact__actions > p {
        width: 100%;
        text-align: right;
    }

    .ae-contact__actions > :has(.ae-contact__button) {
        width: 100%;
        text-align: right;
    }

    body.ae-contact-page .ae-contact__actions .ae-contact__button {
        display: flex;
        align-self: flex-end;
        margin-left: auto;
        margin-right: 0;
    }

    /* 入力欄の下のエラー文 */
    .ae-contact-page .wpcf7-not-valid-tip {
        margin-top: 4px;
        font-size: 11px;
        line-height: 1.6;
    }
    /* メールが届かない方への案内 */
    .ae-contact-page .ae-contact__delivery {
        gap: 4px;
        margin-top: 16px;
        padding: 12px 14px;
    }

    .ae-contact__delivery h3 {
        font-size: 12px;
        line-height: 1.6;
    }

    .ae-contact__delivery p {
        font-size: 12px;
        line-height: 1.8;
        overflow-wrap: anywhere;
    }

    /* 注意事項の見出しと本文 */
    .ae-contact__notes summary {
        align-items: center;
        gap: 10px;
        padding: 11px 14px;
        font-size: 12px;
        line-height: 1.6;
    }

    .ae-contact__notes-body {
        padding: 12px 14px;
        font-size: 12px;
        line-height: 1.8;
    }

    .ae-contact__notes-body ul {
        padding-left: 16px;
    }

    .ae-contact__notes-body li + li {
        margin-top: 8px;
    }
}
/* 戻るボタン：フォーム内側の右端にそろえる */
.ae-contact-page .ae-contact__footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 48px;
    padding-inline: 36px;
}

/* 外側の配置枠の余白を使い、共通ボタン側では重ねない */
.ae-contact-page .ae-contact__footer > .ae-page-return {
    --ae-return-gap: 0px;
    --ae-return-bottom-gap: 0px;
}

/* 送信ボタン周辺の余白を整理 */
.ae-contact-page .ae-contact__actions {
    position: relative;
}

.ae-contact-page .ae-contact__actions > p {
    margin: 0;
}

/* 送信中の表示がボタンを左へ押さないようにする */
.ae-contact-page .ae-contact__actions .wpcf7-spinner {
    position: absolute;
    right: 0;
    bottom: -26px;
    margin: 0;
}

@media (min-width: 651px) and (max-width: 1100px) {
    .ae-contact-page .ae-contact__footer {
        padding-inline: 24px;
    }
}

@media (max-width: 650px) {
    .ae-contact-page .ae-contact__footer {
        margin-top: 18px;
        margin-bottom: 28px;
        padding-inline: 22px;
    }
}
/* 送信ボタンの基本サイズ */
body.ae-contact-page .ae-contact__actions .ae-contact__button {
    box-sizing: border-box;
    width: var(--contact-button-width, 268px);
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: var(--contact-button-height, 52px);
    padding: var(--contact-button-padding, 12px 25px);
    font-size: var(--contact-button-font-size, 16px);
    line-height: 1.5;
    white-space: normal;
}