.top-logo {
    max-width: 100%;
    max-height: 100px;
}

body {
    font-family: 'Noto Sans JP', 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 900;
}

.navbar-toggler {
    padding: 0.2rem 0.2rem;
    font-size: 0.8rem;
    line-height: 1;
    width: 30px;
    height: 30px;
}

.nav-link {
    white-space: nowrap;
    font-size: 1rem;
}

.navbar-brand {
    max-width: 50%;
    margin-right: 1rem;
}

#hero {
    height: 60vh;
    min-height: 300px;
    max-height: 700px;
    overflow: hidden;
}

#hero .carousel,
#hero .carousel-inner,
#hero .carousel-item {
    height: 100%;
}

#hero .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Carousel fixed-background slide */
.carousel-item-fixed {
    position: relative;
}

.carousel-item-fixed .carousel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.carousel-item-fixed .carousel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 1;
    z-index: 1;
}

.carousel-item-fixed .carousel-caption {
    position: relative;
    z-index: 2;
}

.carousel-item-fixed .static-caption {
    opacity: 1;
    transform: none;
}

@media (max-width: 576px) {
    body {
        font-size: 0.7rem;
    }

    h2 {
        font-size: 1rem;
    }

    #hero {
        height: 20vh;
        min-height: unset;
        max-height: unset;
    }

    #hero .carousel,
    #hero .carousel-inner,
    #hero .carousel-item {
        height: 100%;
    }

    #hero .carousel-item img {
        height: 100%;
    }
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.4);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.carousel-caption h2 {
    text-shadow: 1px 1px 2px #000;
}

.carousel-caption .btn {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hr-divider {
    width: 75%;
    margin: 2rem auto;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.map {
    position: relative;
    width: 100%;
    padding-top: 50%;
    height: 0;
}

.map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.section-inner {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 992px) {
    .section-inner {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

:root {
    --header-h: 72px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h));
}

section[id] {
    scroll-margin-top: calc(var(--header-h));
}

/* Force white backgrounds for key sections */
#site-header,
#top,
#message,
#recruit {
    background-color: #fff !important;
}
