/* KEIBA Insight：トップページの名称変更・リニューアル案内 */
.keiba-renewal-notice,
.keiba-renewal-notice *,
.keiba-renewal-notice *::before,
.keiba-renewal-notice *::after {
    box-sizing: border-box;
}

/* JSが動作しない場合も、閉じた案内は表示しない。 */
#keiba-renewal-notice:not([open]) {
    display: none;
}

#keiba-renewal-notice {
    position: fixed;
    inset: 0;
    width: min(640px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(24, 24, 23, 0.12);
    border-radius: 16px;
    background: #f4f2ec;
    color: #181817;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
    font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.85;
    text-align: left;
    word-break: normal;
    overflow-wrap: anywhere;
}

#keiba-renewal-notice[open] {
    animation: keiba-notice-appear 220ms ease-out both;
}

#keiba-renewal-notice::backdrop {
    background: rgba(16, 16, 15, 0.56);
}

.keiba-renewal-notice__panel {
    position: relative;
    padding: 42px 44px 38px;
}

#keiba-renewal-notice .keiba-renewal-notice__label {
    display: inline-block;
    margin: 0 0 18px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #dff964;
    color: #181817;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.12em;
}

#keiba-renewal-notice-title {
    margin: 0 0 28px;
    padding: 0;
    border: 0;
    background: none;
    color: #181817;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

#keiba-renewal-notice-title:focus {
    outline: none;
}

#keiba-renewal-notice-title span,
#keiba-renewal-notice-message strong,
.keiba-renewal-notice__rename {
    display: inline-block;
}

#keiba-renewal-notice-title::before,
#keiba-renewal-notice-title::after {
    content: none;
}

#keiba-renewal-notice-message p {
    margin: 0 0 12px;
    padding: 0;
    color: #4b4943;
    font-size: 16px;
    line-height: 1.9;
}

#keiba-renewal-notice-message .keiba-renewal-notice__lead {
    margin-bottom: 20px;
    color: #181817;
    font-size: 18px;
}

#keiba-renewal-notice-message strong {
    color: #181817;
    font-weight: 700;
}

#keiba-renewal-notice button {
    appearance: none;
    margin: 0;
    border: 0;
    font-family: inherit;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

#keiba-renewal-notice .keiba-renewal-notice__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    color: #55524c;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
}

#keiba-renewal-notice .keiba-renewal-notice__continue {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    min-height: 56px;
    margin-top: 30px;
    padding: 14px 22px;
    border-radius: 8px;
    background: #000;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.03em;
}

#keiba-renewal-notice button:focus-visible {
    outline: 2px solid #181817;
    outline-offset: 4px;
}

html.keiba-renewal-notice-open {
    scrollbar-gutter: stable;
}

html.keiba-renewal-notice-open,
html.keiba-renewal-notice-open body {
    overflow: hidden !important;
}

@media (hover: hover) and (pointer: fine) {
    #keiba-renewal-notice .keiba-renewal-notice__close:hover {
        background: rgba(24, 24, 23, 0.07);
    }

    #keiba-renewal-notice .keiba-renewal-notice__continue:hover {
        background: #30302c;
    }
}

@media (max-width: 600px) {
    .keiba-renewal-notice__panel {
        padding: 34px 24px 26px;
    }

    #keiba-renewal-notice-title {
        margin-bottom: 22px;
        font-size: 22px;
    }

    #keiba-renewal-notice-message p {
        font-size: 15px;
    }

    #keiba-renewal-notice-message .keiba-renewal-notice__lead {
        font-size: 17px;
    }

    #keiba-renewal-notice .keiba-renewal-notice__continue {
        margin-top: 24px;
    }
}

@keyframes keiba-notice-appear {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    #keiba-renewal-notice[open] {
        animation: none;
    }
}
