.ae-ai-mobile-footer {
    display: none;
}
/* レシート型フッター：数字で見るアドエイトの下に配置 */
.ae-receipt-footer {
    position: relative;
    z-index: 1;
    overflow: clip;
    min-height: var(--ae-pin-height, auto);
    color: #080b20;
    background: transparent;
}
.ae-receipt-footer *, .ae-receipt-footer *::before, .ae-receipt-footer *::after { box-sizing: border-box; }
.ae-receipt-footer__inner {
    position: sticky;
    top: var(--ae-pin-top, 0px);
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 76px 40px 90px;
}
.ae-receipt-footer__intro { position: absolute; top: 180px; left: 40px; width: 26%; z-index: 4; }
.ae-receipt-footer__serial, .ae-receipt-footer__right-text, .ae-receipt-footer__sign {
    font-family: "Chakra Petch", monospace;
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: .08em;
}
.ae-receipt-footer__serial::after, .ae-receipt-footer__sign::after { content: ""; display: block; width: 32px; border-top: 1px solid #064bfa; margin-top: 20px; }
.ae-receipt-footer__intro h2 { margin: 30px 0 24px; color: #064bfa; font-family: "Chakra Petch", monospace; font-size: clamp(24px, 3.15vw, 43px); line-height: 1.2; letter-spacing: .01em; }
.ae-receipt-footer__message { font-size: 14px; line-height: 1.9; }
.ae-receipt-footer__device { position: relative; width: 60%; max-width: 760px; margin: 0 auto; z-index: 3; }
.ae-receipt-footer__hint { margin: 0 0 18px; transform: translateY(85%); text-align: center; color: #064bfa; font-family: "Chakra Petch", monospace; font-size: 13px; letter-spacing: .1em; line-height: 1.7; }
.ae-receipt-footer__hint small { font-family: inherit; font-size: 10px; letter-spacing: .02em; }
.ae-receipt-footer__stage { position: relative; padding-top: 14.5%; }
.ae-receipt-footer__printer {
    position: absolute; top: 0; left: 0; width: 100%; height: auto;
    z-index: 3; pointer-events: none;
    /* 隙間の上縁と左右は紙より手前、隙間の下は紙の背後に置きます。 */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 90% 100%, 90% 49%, 10% 49%, 10% 100%, 0 100%);
}
.ae-receipt-footer__slot {
    position: relative;
    width: 80%;
    margin: 0 auto;
    overflow: visible;
    clip-path: inset(0 -60px -60px);
    padding-bottom: 40px;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}
.ae-receipt-footer__paper {
    position: relative;
    padding: 32px 26px 46px;
    background: #fff;
    background-image: linear-gradient(95deg, rgba(0,0,0,.035), transparent 25%, rgba(0,0,0,.025) 95%);
    box-shadow:
    0 24px 32px rgba(8, 11, 32, 0.28),
    8px 8px 16px rgba(8, 11, 32, 0.14);
    font-size: 16px;
    line-height: 1.9;
    cursor: grab;
    /* JavaScriptがない場合も、全文を表示します。 */
    transform: translateY(0);
    will-change: transform;
        touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.ae-receipt-footer__paper::after { content: ""; position: absolute; top: 100%; left: 0; width: 100%; height: 13px; background: linear-gradient(135deg, #fff 25%, transparent 25%) -13px 0 / 26px 26px, linear-gradient(225deg, #fff 25%, transparent 25%) -13px 0 / 26px 26px; }
.ae-receipt-footer.is-dragging .ae-receipt-footer__slot, .ae-receipt-footer.is-dragging .ae-receipt-footer__paper { cursor: grabbing; user-select: none; }
.ae-receipt-footer__pull { display: block; width: 100%; margin: 24px 0 0; padding: 8px 4px; border: 1px dashed #064bfa; background: transparent; color: #064bfa; font: inherit; font-family: "Chakra Petch", monospace; cursor: grab; }
.ae-receipt-footer__pull span { display: block; font-size: 10px; }
.ae-receipt-footer__logo { width: 90%; height: 70px; margin: 0 auto; background: #064bfa; mask: var(--ae-footer-logo) center / contain no-repeat; -webkit-mask: var(--ae-footer-logo) center / contain no-repeat; }
.ae-receipt-footer__tagline { margin: 8px 0 26px; text-align: center; font-family: "Chakra Petch", monospace; font-size: 9px; line-height: 1.4; }
.ae-receipt-footer__block { padding: 22px 0; border-top: 1px dashed #064bfa; }
.ae-receipt-footer__label { margin: 0 0 9px; color: #064bfa; font-family: "Chakra Petch", monospace; font-size: 17px; font-weight: 700; letter-spacing: .1em; }
.ae-receipt-footer__paper h3 { margin: 0 0 12px; font-size: 19px; }
.ae-receipt-footer__paper p { margin-top: 0; }
.ae-receipt-footer__company { margin: 16px 0 0; font-size: 15px; }
.ae-receipt-footer__company > div { display: flex; gap: 12px; }
.ae-receipt-footer__company dt { flex: 0 0 38px; font-family: "Chakra Petch", monospace; }
.ae-receipt-footer__company dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ae-receipt-footer a { color: inherit; text-decoration: none; }
.ae-receipt-footer a:hover { color: #064bfa; }
.ae-receipt-footer__button { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; padding: 10px 8px; border: 1px solid #064bfa; border-radius: 3px; color: #064bfa !important; font-weight: 700; }
.ae-receipt-footer__button:hover { background: #eaf1ff; }
.ae-receipt-footer__nav a { display: flex; justify-content: space-between; padding: 6px 0; }
.ae-receipt-footer__thanks { padding-top: 24px; border-top: 1px dashed #064bfa; text-align: center; }
.ae-receipt-footer__barcode { height: 40px; margin: 0 0 22px; background: repeating-linear-gradient(90deg, #080b20 0 2px, transparent 2px 4px, #080b20 4px 5px, transparent 5px 8px, #080b20 8px 12px, transparent 12px 14px, #080b20 14px 15px, transparent 15px 19px); }
.ae-receipt-footer__thanks small { font-size: 10px; }
.ae-receipt-footer__right-text {
    position: absolute;
    top: 180px;
    right: 40px;
    width: 230px;
    color: #064bfa;
    text-align: left;
}
.ae-receipt-footer__prop { position: absolute; height: auto; user-select: none; transition: transform .35s ease; }
.ae-receipt-footer__cat {
    width: 380px;
    right: -245px;
    top: 455px;
}
.ae-receipt-footer__disks {
    width: 520px;
    left: min(-110px, calc((1360px - 100vw) / 2 - 110px));
    bottom: 480px;
    transform: rotate(-9deg);
}
.ae-receipt-footer__memo {
    width: 470px;
    right: min(-5px, calc((1360px - 100vw) / 2 - 5px));
    bottom: 32px;
    transform: rotate(-4deg);
}
.ae-receipt-footer__pen {
    width: 340px;
    right: min(-90px, calc((1360px - 100vw) / 2 - 90px));
    bottom: 420px;
    transform: rotate(-26deg);
}
.ae-receipt-footer__disks:hover { transform: translateY(-8px) rotate(-13deg); }
.ae-receipt-footer__memo:hover { transform: translateY(-5px) rotate(-8deg); }
.ae-receipt-footer__pen:hover { transform: translateY(-8px) rotate(-20deg); }
.ae-receipt-footer__cat:hover { transform: translateY(-6px); }
.ae-receipt-footer__sign { position: absolute; bottom: 65px; left: 40px; color: #064bfa; }
.ae-receipt-footer :focus-visible { outline: 2px solid #064bfa; outline-offset: 4px; }
@media (max-width: 1000px) {
    .ae-receipt-footer__inner { padding: 60px 24px 85px; }
    .ae-receipt-footer__intro { left: 24px; width: 24%; }
    .ae-receipt-footer__device { width: 62%; }
    .ae-receipt-footer__paper { padding-right: 18px; padding-left: 18px; font-size: 12px; }
    .ae-receipt-footer__intro h2 { font-size: 25px; }
    .ae-receipt-footer__message { font-size: 12px; }
    .ae-receipt-footer__cat { width: 210px; right: -28px; }
    .ae-receipt-footer__disks { width: 350px; left: -130px; }
    .ae-receipt-footer__memo { width: 280px; right: -115px; }
    .ae-receipt-footer__pen { width: 220px; right: -85px; }
    .ae-receipt-footer__right-text { right: 24px; font-size: 10px; }
}
@media (max-width: 700px) {
    .ae-receipt-footer__inner { padding: 20px 16px 180px; }
    .ae-receipt-footer__intro {
        display: none;
    }
    .ae-receipt-footer__device { width: 100%; max-width: 540px; }
    .ae-receipt-footer__slot { width: 80%; }
    .ae-receipt-footer__paper { padding: 26px 12px 38px; }
    .ae-receipt-footer__logo { height: 55px; }
    .ae-receipt-footer__right-text { display: none; }
    .ae-receipt-footer__cat { width: 115px; top: auto; bottom: 36px; right: 16px; }
    .ae-receipt-footer__disks { width: 170px; left: -48px; bottom: 115px; }
    .ae-receipt-footer__memo { width: 135px; right: -24px; bottom: 125px; }
    .ae-receipt-footer__pen { width: 100px; right: -28px; bottom: 225px; }
    .ae-receipt-footer__sign { left: 20px; bottom: 32px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .ae-receipt-footer__prop { transition: none; }
}

/* タブレット：右上の英文をプリンターの外側へ */
@media (min-width: 701px) and (max-width: 1100px) {
    .ae-receipt-footer .ae-receipt-footer__right-text {
        top: 150px;
        right: 16px;
        width: clamp(104px, 16vw, 150px);
        font-size: 10px;
        line-height: 1.6;
        letter-spacing: 0.03em;
        text-align: left;
        overflow-wrap: normal;
    }
    }

@media (max-width: 650px) {
    .ae-ai-mobile-footer {
        display: block;
    }

    .ae-receipt-footer {
        font-family: var(--font-family-base, sans-serif);
    }

    .ae-receipt-footer__inner {
        padding: 8px 16px 180px;
    }

    .ae-receipt-footer__paper {
        box-shadow: 0 5px 10px rgba(8, 11, 32, .16);
    }
}

/* レシート内の文字と余白をコンパクトに */
.ae-receipt-footer__paper {
    font-size: 13px;
    line-height: 1.65;
}

.ae-receipt-footer__paper .ae-receipt-footer__label {
    margin-bottom: 6px;
    font-size: 10.5px;
    line-height: 1.5;
    letter-spacing: .05em;
    overflow-wrap: anywhere;
}

.ae-receipt-footer__paper h3 {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.ae-receipt-footer__block {
    padding: 14px 0;
}

/* 問い合わせ・採用の本文は紙幅に合わせて折り返す */
.ae-receipt-footer__block > p:not(.ae-receipt-footer__label) {
    margin: 0 0 10px;
    font-size: inherit;
    line-height: 1.65;
    word-break: normal;
    line-break: strict;
    overflow-wrap: break-word;
}

.ae-receipt-footer__block > p br {
    display: none;
}

.ae-receipt-footer__company {
    margin-top: 8px;
    font-size: inherit;
}

.ae-receipt-footer__company > div {
    gap: 8px;
}

.ae-receipt-footer__company dt {
    flex-basis: 32px;
}

.ae-receipt-footer__button {
    gap: 8px;
    margin-top: 10px;
    font-size: inherit;
}

.ae-receipt-footer__nav a {
    gap: 8px;
    font-size: inherit;
}

@media (max-width: 1000px) {
    .ae-receipt-footer__paper {
        font-size: 10.5px;
    }

    .ae-receipt-footer__paper h3 {
        font-size: 12px;
    }

    .ae-receipt-footer__paper .ae-receipt-footer__label {
        font-size: 9.5px;
    }
}