/* Final responsive safeguards */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
iframe {
    max-width: 100%;
}

a,
p,
li,
span,
strong,
small,
h1,
h2,
h3,
h4,
td,
th,
dd,
dt {
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .relative.z-10.max-w-5xl {
        width: 100%;
        max-width: 64rem;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    header .header-title-wrap a {
        letter-spacing: 0.42em !important;
        font-size: 2rem !important;
    }

    nav .nav-link {
        letter-spacing: 0.18em !important;
        line-height: 1.4 !important;
    }

    h1,
    .sec-head-title {
        letter-spacing: 0.28em !important;
        line-height: 1.45 !important;
    }

    .page-hero,
    .simple-hero,
    .contact-hero,
    .campaign-hero,
    .gallery-hero,
    .ladies-hero,
    .map-hero,
    .q-hero,
    .system-hero,
    .concept-hero {
        min-height: 170px;
    }

    .profile-name-ja,
    .profile-name-en {
        word-break: keep-all;
    }

    .play-cell {
        min-width: 0;
    }

    .play-cell span:first-child {
        flex: 0 0 1.2em;
        text-align: center;
    }

    .play-name {
        min-width: 0;
        line-height: 1.45;
    }

    .link-banner {
        min-width: 0;
    }

    .contact-methods,
    .info-grid,
    .map-grid,
    .media-summary {
        grid-template-columns: 1fr !important;
    }

    .form-grid,
    .form-section {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 420px) {
    header .header-title-wrap a {
        letter-spacing: 0.3em !important;
        font-size: 1.7rem !important;
    }

    .text-3xl,
    .md\:text-4xl {
        font-size: 1.65rem !important;
    }

    .thumb-grid {
        gap: 4px !important;
    }
}
