/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
}

.relative {
    position: relative;
}

/* Header styles */
.header-background {
    padding: 1.5rem 2rem;
    /* background-color: #5e5e5e; */
    opacity: 0.5;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    height: 70px;
    box-shadow: rgba(101, 99, 99, 0.24) 0px 3px 8px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 2000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'Zilla Slab Highlight', cursive;
    font-size: 2rem;
    font-weight: 700;
    color: #0046b0;
}

.company-name {
    font-family: 'IBM Plex Sans JP', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0046b0;
    margin-left: 1rem;
}

nav a {
    font-family: 'IBM Plex Sans JP', sans-serif;
    font-weight: 700;
    color: #0046b0;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1rem;
}

.contact-button {
    background-color: #0046b0;
    color: white;
    padding: 0.4rem 1rem;
    text-decoration: none;
    font-weight: 700;
    width: 200px;
    height: 40px;
    text-align: center;
}

/* Hero section styles */
#hero {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-overlay {
    top: 58%;
    right: 100px;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
    z-index: 999;
}

.hero-text-box h1,
.hero-text-box h2 {
    background-color: #0046b0;
    color: #fff;
    font-size: 1.5rem;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.1em;
    white-space: nowrap;
    padding: 10px 5px;
}


/* Section styles */
section {
    padding: 6rem 6rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    /* text-align: center; */
}

.strength-cards {
    display: flex;
    /* justify-content: space-around; */
    justify-content: center;
    flex-wrap: wrap;
}

/* Gallery styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: calc(3 * 300px + 2 * 1rem);
    /* 3 columns and 2 gaps */
    margin: 0 auto;
    /* Optional: center the grid */
}

.gallery-item {
    height: 100%;
    background-color: #f0f0f0;
    border-radius: 5px;
}


/* Contact form styles */
form {
    max-width: 1100px;
    margin: 0 auto;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Footer styles */
/* footer {
    background-color: #f0f0f0;
    padding: 2rem;
} */

.footer-content {
    max-width: 80%;
    margin: 0 auto;
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    nav {
        margin: 1rem 0;
    }

    .hero-overlay {
        margin-right: 5%;
    }

    .card {
        width: 100%;
    }

    .hero-overlay {
        position: absolute;
        top: 57%;
        right: 20px;
        transform: translateY(-50%);
        display: flex;
        gap: 10px;
        z-index: 999;
    }

    .hero-text-box h1,
    .hero-text-box h2 {
        background-color: #0046b0;
        color: #fff;
        font-size: 1rem;
        writing-mode: vertical-rl;
        text-orientation: upright;
        letter-spacing: 0.1em;
        white-space: nowrap;
        padding: 10px 5px;
    }

}

@media (min-width: 768px) {
    .md\:hidden {
        display: none;
    }


}