.atg-consent[hidden] {
    display: none;
}
.atg-consent {
    position: fixed;
    z-index: 9999;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 65vh;
    overflow-y: auto;
    padding: 22px 28px calc(22px + env(safe-area-inset-bottom));
    border-top: 1px solid #b9ccc0;
    background: #fff;
    color: #273f49;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0;
}
.atg-consent__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 1080px;
    margin: 0 auto;
}
.atg-consent__copy {
    flex: 1;
    min-width: 0;
}
.atg-consent h2 {
    margin: 0 0 6px;
    color: #273f49;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}
.atg-consent p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}
.atg-consent a,
.atg-cookie-settings a,
.atg-cookie-settings button {
    color: #18743a;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.atg-consent__actions {
    display: flex;
    flex: 0 0 272px;
    gap: 12px;
}
.atg-consent__actions button {
    flex: 1;
    min-height: 48px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #18743a;
    border-radius: 28px;
    background: #fff;
    color: #18743a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.atg-consent__actions button:hover {
    background: #eef7f0;
}
.atg-consent button:focus-visible,
.atg-consent a:focus-visible,
.atg-cookie-settings button:focus-visible,
.atg-cookie-settings a:focus-visible {
    outline: 3px solid #273f49;
    outline-offset: 3px;
}
.atg-cookie-settings {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 20px 0;
    font-size: 14px;
    line-height: 1.8;
}
.atg-cookie-settings button {
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}
.atg-cookie-settings a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
@media (max-width: 767px) {
    .atg-consent {
        padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
        font-size: 12px;
        line-height: 1.75;
    }
    .atg-consent__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .atg-consent h2 {
        font-size: 16px;
    }
    .atg-consent__actions {
        flex: auto;
    }
    .atg-consent__actions button {
        font-size: 14px;
    }
}
