body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

.sticky-apply-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    padding: 10px max(12px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
    background: rgba(250, 248, 245, .96);
    border-top: 1px solid rgba(107, 45, 15, .22);
    box-shadow: 0 -8px 22px rgba(47, 38, 31, .16);
}

.sticky-apply-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.sticky-apply-button {
    display: flex;
    min-width: 0;
    min-height: 58px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    border: 1.5px solid #6b2d0f;
    border-radius: 8px;
    color: #6b2d0f;
    background: #fff;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

.sticky-apply-button strong {
    display: block;
    font-size: clamp(14px, 4vw, 18px);
    font-weight: 700;
    white-space: nowrap;
}

.sticky-apply-button span {
    display: block;
    margin-top: 2px;
    font-size: clamp(10px, 2.8vw, 13px);
    white-space: nowrap;
}

.sticky-apply-button-primary {
    color: #fff;
    background: #6b2d0f;
}

.js .sticky-apply-bar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(105%);
    transition: opacity .2s ease, transform .2s ease;
}

.js .sticky-apply-bar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
