:root {
    --cyan: #1f5d81;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Noto Sans JP",
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        "Yu Gothic",
        "Meiryo",
        "BIZ UDPGothic",
        "MS PGothic",
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
    overflow-x: hidden;
    background-color: #fff;
    color: #333;

}

.controller {
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    gap: 8px;
    cursor: pointer;
    z-index: 10;
}

.controller button {
    width: 40px;
    border-radius: 9999px;
    aspect-ratio: 1/1;
    border: #fff solid 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: color 1s ease, border-color 1s ease;
}

.scroll-txt {
    color: #fff;
    text-align: center;
    transform: rotate(90deg);
    font-weight: 100;
    position: absolute;
    bottom: -50%;
    left: 0;
    transition: color 1s ease;

}

@keyframes flow {
    0% {
        bottom: -55%;

    }

    50% {
        bottom: -50%;
    }

    100% {
        bottom: -55%;
    }
}

.header-nav {
    margin-left: auto;
}

.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    backdrop-filter: blur(12px);
    width: 100%;
    padding: 12px;
    display: flex;
    align-items: center;
    z-index: 100;
}

.nav-ul {
    display: flex;
    list-style-type: none;
    gap: 12px;
    align-items: center;
    z-index: 100;
}

.nav-ul a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 0px;
    justify-content: center;
    align-items: center;
    background-image: url("/images/nkioffice_y.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden;
    max-width: 100%;
}

.hero-title-wp {
    position: absolute;
    top: 50%;
    text-align: center;
    width: 100%;
    transform: translateY(-50%);
    background-color: #0000006b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px 0 20px 0;
}

.hero-company-name {
    font-size: 4rem;
    padding: 0;
    margin: 0;
}

.hero-sub {
    padding: 0;
    margin: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.536);
    z-index: 1;
    transition: left 1s ease;
}

/*about*/
.about-caption {
    line-height: 3;
    padding: 0 32px;
    width: 80%;
}

.about-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40%;
    aspect-ratio: 1/1;
    z-index: -1;
    opacity: 0.4;
}

/*works*/
.works-section {
    background-color: #eee;

}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 12px;
}

.work-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    background-color: #fff;
    box-shadow: 2px 2px 6px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.8s ease;
    text-decoration: none;
}

.work-card:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.work-header-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.work-img {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.work-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);

}

.work-h2 {
    font-size: 3rem;
    text-wrap: nowrap;
}

.work-caption {
    font-size: 0.8rem;
    line-height: 2;
    color: #555;
    padding: 12px;
}

.work-ex {
    color: #fff;
    padding: 12px;
    font-size: 0.8rem;
    font-weight: 300;
    background-color: #555;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/*recruit*/
.recruit-item {
    display: flex;
    flex-direction: column;

}

.recruit-header {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    border: 1px solid #ccc;
    padding: 12px 0;
    border-radius: 24px;
    position: relative;
}

.recruit-header::after {
    content: ">";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    font-weight: 800;
}

.recruit-dialog {
    position: fixed;
    pointer-events: none;
    opacity: 0;
    top: 50%;
    left: 50%;
    background-color: #fff;
    width: 50%;
    aspect-ratio: 3/2;
    transform: translate(-50%, -50%);
    border-radius: 4px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: opacity 1s ease;
    z-index: 50;
}

.recruit-dialog h3 {
    padding-bottom: 12px;
    border-bottom: 1px solid #ccc;
}

.recruit-items {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
}

.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 10;
    display: none;
}

.dialog-header {
    padding: 12px;
}

/*common*/
.section {

    padding: 64px 10%;
    margin: auto;
    position: relative;
}

.section-h1 {
    font-size: 2rem;
    color: var(--cyan);
    font-family: "Josefin Sans", sans-serif;
}

.section-h2 {
    margin: 24px 0;
    font-size: 2.5rem;
    padding-left: 24px;
}

.section-sub {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;

}

.footer {
    padding: 64px 0 0 0;
    background-color: #333;
    color: white;
    font-weight: 100;
    font-size: x-small;
    display: flex;
    flex-direction: column;
    align-items: center;
}

dl {
    margin: 24px 0;
}

dt {
    padding: 8px 0;
    text-align: center;
}

dd {
    border-bottom: 1px solid #ccc;
    padding: 8px 0;
    text-align: center;
}

.copy {
    text-align: center;
    color: #fff;
    width: 100%;
    padding: 8px;
    margin-top: auto;
}

@media (max-width:742px) {
    .fixed-nav {
        font-size: 0.7rem;
    }

    .hero {
        background-position: left;
    }

    .controller button {
        width: 33px;
    }

    .scroll-txt {
        font-size: 0.9rem;
    }

    .hero-title-wp {
        gap: 10px;
    }

    .hero-title-wp h1 {
        font-size: 2rem;
    }

    .hero-title-wp h2 {
        font-size: 0.9rem;
    }

    /*about*/
    .about-caption {
        width: 100%;
        padding: 0 12px;
        line-height: 2;
    }

    .about-image {
        width: 80%;
        top: 0;
        left: 0;
    }

    /*works*/
    .works-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .work-h2 {
        font-size: 1.8rem;
    }

    .work-sub {
        font-size: 0.9rem;
    }

    /*recruit*/
    .recruit-items {
        grid-template-columns: repeat(1, 1fr);
    }

    .recruit-header h2 {
        font-size: 1rem;
        font-weight: 500;
    }

    .recruit-header::after {
        font-size: 1rem;
        font-weight: 500;
    }

    .recruit-dialog {
        width: 90%;
        height: 70%;
        font-size: small;
    }

    /*common*/
    .section {
        padding: 64px 12px;
    }

    .section-h2 {
        font-size: 1.5rem;
    }

}