@charset "UTF-8";

html {
    font-size: 100%;
}

body {
    color: #333;
    font-family: sans-serif;
    font-size: 0.875rem;
    min-height: 100vh;
    position: relative;
}

a {
    color: #333;
    text-decoration: none;
    transition: all 0.5s;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
}

li {
    list-style: none;
}

/* 共通クラス */

.wrapper {
    width: 100%;
    margin: 0 auto;
    max-width: 1360px;
    padding: 0 40px;
}

.content {
    max-width: 800px;
    padding-top: 120px;
    padding-bottom: 160px;
}

.site-title a {
    width: 180px;
    line-height: 1px;
    display: block;
}

.page-title {
    font-size: 0.875rem;
    font-weight: normal;
    margin-bottom: 30px;
}

/* Header */

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    align-items: center;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    background: #fff;

}

/* ハンバーガーメニュー
閉じているとき */

#navi {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    color: #fff;
    padding: 36px 50px;
    transition: all 0.5s;
    z-index: 20;
    opacity: 0;
}

#navi a {
    color: #fff;
}

#navi li {
    margin-bottom: 14px;
}

/* ハンバーガーーメニュー
開いているとき */

.open #navi {
    left: 0;
    opacity: 1;
}

/* メニューボタン、閉じているとき */

.toggle_btn {
    width: 30px;
    height: 30px;
    position: relative;
    transition: all 0.5s;
    cursor: pointer;
    z-index: 20;
}

.toggle_btn span {
    display: block;
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: #333;
    border-radius: 4px;
    transition: all 0.5s;
}

.toggle_btn span:nth-child(1) {
    top: 10px;
}

.toggle_btn span:nth-child(2) {
    bottom: 10px;
}

/* メニューボタン、開いているとき */

.open .toggle_btn span {
    background-color: #fff;
}

.open .toggle_btn span:nth-child(1) {
    transform: translateY(4px) rotate(-45deg);
}

.open .toggle_btn span:nth-child(2) {
    transform: translateY(-4px) rotate(45deg);
}


/* マスク、閉じているとき */

#mask {
    display: none;
    transition: all 0.5s;
}

/* マスク、開いているとき */

.open #mask {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: .8;
    z-index: 10;
    cursor: pointer;
}

/* Top Products */

#top {
    padding-top: 80px;
    padding-bottom: 160px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}

.product-list img {
    margin-bottom: 10px;
    vertical-align: top;

}

.product-list p {
    font-size: 0.75rem;
}

.link-text {
    display: block;
    text-align: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination li {
    padding: 0 20px;
}

/* Item */

#item {
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

#item .item-img {
    width: 50%;
}

#item .item-text {
    width: 42%;
}

#item .item-text p {
    margin-bottom: 30px;
    text-align: justify;
}

#item .item-text dl {
    display: flex;
    flex-wrap: wrap;
}

#item .item-text dt {
    width: 30%;
}

#item .item-text dd {
    width: 70%;

}

/* About */

#about {
    max-width: 600px;
}

#about p {
    margin-bottom: 30px;
    line-height: 1.9;
}

/* Company */

#company {
    max-width: 600px;
}

#company .info {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

#company .info dt {
    width: 30%;
    border-bottom: 1px solid #dcdbdb;
    padding: 20px 10px;
}

#company .info dt:last-of-type {
    border-bottom: none;
}

#company .info dd {

    width: 70%;
    border-bottom: 1px solid #dcdbdb;
    padding: 20px 10px;
}

#company .info dd:last-of-type {
    border-bottom: none;
}

#company .map {
    filter: grayscale(1);
}

#company .map iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

/* Footer */

#footer {
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;

}


#footer .menu {
    display: flex;
    font-size: 0.75rem;
}

#footer .menu li {
    margin-right: 30px;

}

#footer .copyright {
    font-size: 0.625rem;
}




@media screen and (max-width: 900px) {

    /* Top Products */

    .product-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
}

    /* Item */

    #item {
        flex-direction: column;
    }

    #item .item-img {
        width: 100%;
        margin-bottom: 30px;
    }
    #item .item-text {
        width: 100%;
    }

    /* Company */

    #company .info {
        flex-direction: column;
    }

    #company .info dt {
        width: 100%;
        border-bottom: none;
        padding: 20px 10px 5px;
    }
    #company .info dd {
        width: 100%;
        padding-top: 5px
    }

    /* Footer */

    #footer {
        flex-direction: column;
    }
    #footer .menu {
        margin-bottom: 5px;
    }