html {
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0;
    font-family: 'Arial', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    color: #000;
    background:
        linear-gradient(-15deg, #ede8e1 30%, transparent 50%),
        url('../img/Kuma_Shochu-Joe_Keating-HR-216-1200x800.png');
    background-repeat: no-repeat;
    background-size: 100% auto, cover;
    background-position: top left, bottom right;
    /* backface-visibility: hidden;
    will-change: transform; */
}

main.container {
    flex: 1;
}

header {
    text-align: center;
    padding: 40px 20px 20px;
}

header h1 {
    position: relative;
    display: inline-block;
    font-size: 30px;
    line-height: 1;
    font-weight: bold;
    margin: 0;
    padding: 0 20px;
}

header h1::before,
header h1::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background-color: #000;
}

header h1::before {
    left: -70px;
    transform: translateY(-50%);
}

header h1::after {
    right: -70px;
    transform: translateY(-50%);
}

.label-banner {
    max-width: 300px;
    margin-top: 16px;
    margin-right: auto;
    margin-left: auto;
    background-color: #ce1220;
    color: white;
    padding: 8px 15px;
    border-radius: 24px;
    font-size: 14px;
}

.container {
    max-width: 480px;
    margin-top: 20px;
    margin-right: auto;
    margin-left: auto;
    padding: 0px 20px;
    width: 100%;
    box-sizing: border-box;
}

.box {
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.terms-box {
    height: 320px;
    overflow-y: auto;
    font-size: 14px;
    border: 1px solid #ccc;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 12px;
    text-align: left;
}

.agree-area {
    margin: 16px 0;
    font-size: 14px;
    display: flex;
    justify-content: center;
}

.agree-area label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    cursor: pointer;
    background-color: transparent;
}

.agree-area input {
    margin-right: 8px;
}

#issueBtn,
#useBtn {
    width: 100%;
    font-size: 18px;
    padding: 14px 24px;
    background-color: #ce1220;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#issueBtn:disabled,
#useBtn:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

.error {
    margin-top: 20px;
    color: #ce1220;
    font-weight: bold;
    text-align: center;
}

.text-error {
    text-align: center;
}

footer {
    background-color: #69a7d7;
    color: #fff;
    font-size: 13px;
    text-align: center;
    padding: 12px;
    margin-top: 40px;
}

.dotted-line {
    background-color: #fff;
    border-top: 2px dashed #8c8b8b;
    margin-bottom: 16px;
}

.hidden {
    display: none;
}

.coupon-image,
.disable_coupon-image,
.used_coupon-image {
    width: 100%;
    aspect-ratio: 21 / 9;
    background: #eee center / cover no-repeat;
    margin-top: 30px;
    margin-bottom: 30px;
}

.coupon-image {
    background-image: url(../img/coupon_v2.png);
}

.disable_coupon-image {
    background-image: url(../img/disable_coupon_v2.png);
}

.used_coupon-image {
    background-image: url(../img/used_coupon_v2.png);
}

.spinner-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 6px solid #ccc;
    border-top-color: #ce1220;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.survey-btn {
    display: block;
    margin-bottom: 14px;
    padding: 14px;
    font-size: 16px;
    background-color: #ce1220;
    color: #fff;
    border: none;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}