.site-header { overflow-x: clip; }
.site-header-inner { position: relative; z-index: 2; }
.site-header .ninth-hero-note { position: absolute; z-index: 1; top: 24px; right: 0; width: 174px; display: block; }
.ninth-hero-note img { display: block; width: 100%; height: auto; transform-origin: 50% 0; transition: transform 250ms ease; }
.ninth-hero-note:focus-visible { outline: 3px solid #17575b; outline-offset: -12px; }

@media (hover: hover) and (pointer: fine) {
    .ninth-hero-note:hover img { transform: rotate(-4deg); }
}

@media (prefers-reduced-motion: reduce) {
    .ninth-hero-note img { transition: none; }
}

.ninth-entry-open { overflow: hidden; }
.ninth-entry-dialog { position: fixed; inset: 0; width: min(700px, calc(100vw - 24px), calc(133.9dvh - 43px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; background: transparent; color: #17575b; overflow: visible; font-family: Figtree, sans-serif; container-type: inline-size; }
.ninth-entry-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.ninth-entry-paper { display: block; width: 100%; height: auto; }
.ninth-entry-close { position: absolute; top: 12%; right: 1%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #17575b; font: 32px/1 Figtree, sans-serif; cursor: pointer; }
.ninth-entry-content { position: absolute; top: 34.5%; left: 10%; width: 80%; text-align: center; }
.ninth-entry-content h2 { margin: 0 0 20px; font: 400 clamp(26px, 9.43cqw, 66px)/1.21 Bangers, Impact, sans-serif; color: #17575b; }
.ninth-entry-content h2::after { content: ''; display: block; width: 48%; height: 12px; margin: 0 auto; background: url('../img/ninth-entry-underline.png') center 51% / 100% 782.4% no-repeat; }
.ninth-entry-action { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 28px; border: 2px solid #17575b; border-radius: 999px; box-shadow: 3px 4px 0 #17575b; background: #ffc425; color: #17575b; font-size: 16px; line-height: 1.4; font-weight: 800; text-decoration: none; }
.ninth-entry-action:hover { transform: translate(2px, 2px); box-shadow: 1px 2px 0 #17575b; }
.ninth-entry-close:focus-visible, .ninth-entry-action:focus-visible { outline: 3px solid #17575b; outline-offset: 4px; }

@media (max-width: 1023px) {
    .site-header-inner { background: #fff; }
    .site-header .ninth-hero-note { top: calc(100% - 1px); }
}

@media (min-width: 1024px) {
    .site-header { padding-right: 180px; }
    .site-header .ninth-hero-note { top: 0; width: 190px; }
    .site-header .menu li { margin-inline: 8px; font-size: 12px; white-space: nowrap; }
    .site-header .menu li:last-of-type { font-size: 12px; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .site-header .logo { width: 160px; }
    .site-header .menu li { margin-inline: 4px; font-size: 11px; }
    .site-header .menu li:last-of-type { margin-left: 8px; padding: 10px 18px; font-size: 11px; }
}

@media (min-width: 1600px) {
    .site-header { padding-right: 270px; }
    .site-header .ninth-hero-note { top: -10px; width: 270px; }
    .site-header .menu li { margin-inline: 14px; font-size: 16px; }
    .site-header .menu li:last-of-type { font-size: 16px; }
}

@media (max-width: 600px) {
    .ninth-entry-content h2 { margin-bottom: 10px; }
    .ninth-entry-content h2::after { height: 6px; }
    .ninth-entry-action { min-height: 38px; padding: 8px 12px; font-size: 11px; box-shadow: 2px 3px 0 #17575b; }
    .ninth-entry-close { top: 9%; right: 0%; font-size: 26px; }
}
