@charset "UTF-8";

@import url("https://fonts.googleapis.com/css2?family=Kosugi&display=swap");

img {
    width: 100%;
    height: 100%;
}

.hover-img {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.hover-img img {
    transition: 0.3s;
}

a:has(.hover-img):hover img {
    transform: scale(1.1);
    transition: 0.3s;
}

.htmlpg-header,
.htmlpg-footer,
.htmlpg-container {
    font-family: "Kosugi", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.07em;
    color: #2d2d2d;
}

.htmlpg-header {
    position: fixed;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    padding: 0 2rem;
}

.htmlpg-header-logo {
    height: 25px;
}

.htmlpg-header-logo img{
    height: 100%;
    width: auto;
}

.htmlpg-header .header_menu {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

@media screen and (min-width: 769px) {

    .htmlpg-header .header_menu li,
    .htmlpg-header .header_menu li a,
    .htmlpg-header .accordion,
    .htmlpg-header .accordion-header,
    .htmlpg-header .accordion-header a {
        height: 100%;
        display: flex;
        align-items: center;
    }
}

.htmlpg-header .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 5px;
}

@media screen and (min-width: 769px) {
    .htmlpg-header .hamburger {
        display: none;
    }
}

.htmlpg-header .hamburger__line,
.htmlpg-header .hamburger::before,
.htmlpg-header .hamburger::after {
    content: "";
    width: 18px;
    height: 1px;
    background-color: #2d2d2d;
    transition: 0.3s;
}

.htmlpg-header .hamburger.open .hamburger__line {
    opacity: 0;
}

.htmlpg-header .hamburger.open::before {
    transform: translateY(6px) rotate(45deg);
}

.htmlpg-header .hamburger.open::after {
    transform: translateY(-6px) rotate(-45deg);
}

@media screen and (max-width: 768px) {
    .htmlpg-header .header_menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100% - 70px);
        flex-direction: column;
        align-items: start;
        gap: 0;
        padding: 2rem;
        background-color: #2d2d2d;
        color: #fff;
        transition: 0.3s;
        overflow-y: auto;
    }

    .htmlpg-header .header_menu.active {
        right: 0;
    }

    .htmlpg-header .header_menu_link {
        border-bottom: solid 1px #fff;
        padding: 1rem 0;
    }

    .htmlpg-header .header_menu li,
    .htmlpg-header .header_menu li a,
    .htmlpg-header .accordion,
    .htmlpg-header .accordion-header,
    .htmlpg-header .accordion-header a {
        width: 100%;
        display: block;
    }
}

.htmlpg-header .accordion-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media screen and (min-width: 769px) {
    .htmlpg-header .accordion-content {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        background-color: #fff;
        pointer-events: none;
        padding: 3rem 8rem;
        opacity: 0;
        transition: 0.3s;
    }

    .htmlpg-header .accordion-content::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 1px;
        background-color: #2d2d2d;
    }

    .htmlpg-header .accordion:hover .accordion-content {
        pointer-events: initial;
        opacity: 1;
    }

    .htmlpg-header .accordion::before {
        content: "";
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #00000050;
        pointer-events: none;
        opacity: 0;
        transition: 0.3s;
    }

    .htmlpg-header .accordion:hover::before {
        opacity: 1;
        transition: 0.3s;
    }
}

.htmlpg-header .accordion-content img {
    max-height: 150px;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    .htmlpg-header .accordion-header a {
        pointer-events: none;
    }

    .htmlpg-header .accordion-content img {
        display: none;
    }

    .htmlpg-header .accordion-content {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        overflow: hidden;
        max-height: 0;
        transition: 0.3s;
        font-size: 0.8rem;
    }

    .htmlpg-header .accordion-content li {
        padding-left: 1rem;
    }

    .htmlpg-header .accordion-content li:first-of-type {
        margin-top: 1rem;
    }

    .htmlpg-header .accordion-content li:last-of-type {
        margin-bottom: 1rem;
    }
}

.htmlpg-footer {
    width: 100%;
    font-size: 12px;
    text-align: center;
    padding: 1em;
}

.htmlpg-container {
    min-height: 100vh;
    padding: 70px 5vw 0 5vw;
    background-color: #2d2d2d;
}

.htmlpg-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10vw 0;
}

.production-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
}

.production-list li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.production-img {
        aspect-ratio: 4 / 3;
    overflow: hidden;
}

.production-img img {
    object-fit: cover;
}

.production-list-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 1rem 1.5rem;
    display: block;
    width: 100%;
    box-sizing: border-box;
}