@charset "utf-8";
/*
Theme Name: fd
*/

body {
    background-color: #fff;
    color: #2b2b2b;
    width: 100%;
    position: relative;
    min-height: 100vh;
}

main {
    width: inherit;
}

img {
    width: 100%;
}

h1 {
    font-size: 14px;
    font-weight: 300;
}

p, td, a {
    font-size: 14px;
}

h3, p {
    line-height: 1.7em;
}

#header .container, #footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

a {
    transition: 0.3s;
    text-decoration: none;
    color: #2b2b2b;
    display: inline-block;
}

a:hover {
    opacity: 0.7;
    transition: 0.3s;
}

li {
    list-style: none;
}

dl {
    font-size: 14px;
}

.content-wrapper,
#header .container,
#footer .container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

/*header*/
#header {
    width: 100%;
    position: fixed;
    top: 0;
    background-color: #fff;
    z-index: 1;
}

#header .container {
    height: 80px;
}

.header-logo {
    width: 180px;
}

/*menu-btn*/
.menu-btn {
    width: 30px;
    height: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 3;
    cursor: pointer;
}

.line1, .line2 {
    content: '';
    background-color: #2b2b2b;
    width: 100%;
    height: 2px;
    transition: 0.5s;
}

.openMenu .line1, .openMenu .line2 {
    transform-origin: 8px;
    background-color: #fff;
}

.openMenu .line1 {
    transform: rotate(45deg);
}

.openMenu .line2 {
    transform: rotate(-45deg);
}

.openMenu #menu {
    visibility: visible;
}

.openMenu #menu ul {
    margin-left: 0;
    transition: 0.5s;
}


/*menu*/
#menu {
    height: 100vh;
    width: 100vw;
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    background-color: #000;
    opacity: 0.8;
    z-index: 2;
    visibility: hidden;
}

#menu ul {
    display: flex;
    flex-direction: column;
    padding: 37px 0 0 50px;
    margin-left: -500px;
    transition: 1s;
}

#menu a {
    margin-bottom: 12px;
    color: #fff;
}

/*content-wrapper*/
.content-wrapper {
    padding-top: 80px;
    padding-bottom: 160px;
}

.page-title {
    padding: 40px 0 30px 0;
}

/*products-grid*/
.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr; 
    column-gap: 2.7%;
    row-gap: 40px;
    margin-bottom: 40px;
}

.product-img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.products-grid p {
    font-size: 12px;
}

.product-title {
    font-weight: 300;
    font-size: 12px;
}

/* viewmore-btn */
.viewmore-btn, .link-text, .pagination {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

/* pagination */
.pagination {
    font-size: 14px;
}

.pagination ul {
    display: flex;
    gap: 40px;
}

/* single */
#item {
    display: flex;
    padding-bottom: 60px;
    max-width: 800px;
}

.item-img {
    width: 50%;
}

.item-text {
    width: 50%;
    padding-left: 60px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.item-text dl {
    font-size: 14px;
    display: table;
}

.item-text dt {
    width: 30%;
    min-width: 100px;
    float: left;
}

.item-text dd {
    padding-left: 100px;
}

/*about*/
#about {
    max-width: 600px;
}

#about p {
    line-height: 1.9em;
    padding-bottom: 40px;
}

/*company*/
#company {
    max-width: 600px;
}

.info {
    width: 100%;
    padding-bottom: 20px;
}

#company dt, #company dd {
    padding: 20px 0;
    border-bottom: 1px solid #DFDEDE;
}

#company dt {
    float: left;
    width: 190px;
    text-indent: 10px;
}

#company dd {
    margin-left: 190px;
}

#company dt:nth-child(11),
#company dd:nth-child(12) {
    border: none;
}

iframe {
    width: 100%;
    height: 300px;
    filter: grayscale();
}

/*footer*/
#footer {
    width: 100%;
    position: absolute;
    bottom: 0;
}

#footer .container {
    padding-bottom: 20px;
}

#footer nav a {
    font-size: 12px;
    margin-right: 25px;
}

#footer small {
    font-size: 10px;
}

/*sp-responsive*/
@media screen and (max-width:900px) {
    /* products */
    .products-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 6%;
    }

    /* single */
    #item {
        flex-direction: column;
    }

    .item-img {
        width: 100%;
        padding-bottom: 30px;
    }

    .item-text {
        width: 100%;
        padding-left: 0;
    }

    /* company */
    #company dt {
        float: none;
        border: none;
        padding-bottom: 0;
    }

    #company dd {
        padding: 10px 0 18px 10px;
        margin-left: 0;
    }

    /*footer*/
    #footer .container {
        flex-direction: column;
        align-items: baseline;
    }

    #footer nav {
    padding-bottom: 5px;
    }
}