.single header,
.page header {
    margin: 2em auto 5em;
    width: 90%;
    align-items: center;
}

.single header .l-nav {
    margin: 0;
}

.single .product__gallery {
    background: #F2F1F0;
    width: 56%;
    float: left;
}

.single .product__gallery a {
    width: 80px;
    display: block;
    margin: 5em 2em;
}

.single .product__gallery a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single .single-thumbnail__images {
    flex: 0 0 15%;
    margin-top: 15em;
}

.single .single-thumbnail__image {
    margin-bottom: 1.5em;
}

.single .single-product__images {
    flex: 0 0 75%;
    /* height: 80vh;
    overflow-y: scroll; */
}

.single .single-product__slider {
    display: none;
}

.single .single-product__image {
    margin-bottom: 2em;

}

/* woocommerce */
.woocommerce .woocommerce-breadcrumb {
    color: #583229;
    margin: 2em 0;
}

.woocommerce .woocommerce-breadcrumb a {
    color: #583229;
}

.woocommerce-notices-wrapper {
    margin: 2em auto;
}

.woocommerce-product-gallery {
    padding: 3em;
}

.woocommerce div.product div.summary {
    width: 35%;
    margin-right: 5em;
}

.woocommerce .product_meta .posted_in {
    border-bottom: none;
    font-size: 17px;
}

.woocommerce .product_meta .posted_in a {
    color: #000;
    padding-left: 0;
}

.single .summary h1 {
    border-bottom: 1px solid #000;
}

.woocommerce div.product p.price {
    margin: 2em 0;
    display: flex;

}

.woocommerce div.product .price::before {
    content: "価格";
    line-height: 20px;
    margin-right: 40px;
    font-size: 12px;
}

/* .woocommerce div.product form.cart div.quantity::before {
    content: "購入数";
    line-height: 42px;
    margin-right: 40px;
    font-size: 20px;
    float: left;
} */

.woocommerce div.product form.cart .variations {
    text-align: left;
}

.woocommerce div.product form.cart .variations .value:after {
    display: none;
}

.woocommerce div.product form.cart .variations label {
    display: inline-block;
}

.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).selected,
.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).selected:hover {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .6);
}

.woocommerce div.product form.cart .button {
    display: block;
    background: #9A5C4E;
    color: #fff;
    border: none;
    width: 100%;
    font-size: 24px;
    display: flex;
    justify-content: center;
    margin-top: 2em;
}

.woocommerce div.product form.cart .button::before {
    content: "";
    background: url('../images/shopping-cart-white.svg')left center no-repeat;
    margin-right: 1em;
    width: 25px;
    height: 25px;
}

.single #secondary {
    width: 80%;
    float: none;
    margin: 0 auto;
    padding: 5em 0;
}

.single #secondary .related {
    flex: 0 0 70%;
    margin: 0 auto;
    justify-content: space-between;
}

.single #secondary .related.products h2 {
    display: flex;
    align-items: center;
}

.single #secondary .related.products h2.heading__ttl::before {
    content: "RELATED PRODUCT";
    font-size: 26px;
    margin-right: 20px;
}

.single #secondary .related ul.products {
    padding: 5em 2em;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.single #secondary .related h2.woocommerce-loop-product__title {
    margin: .5em;
    font-size: 14px;
}

.single #secondary .related .price {
    font-size: 14px;
    font-weight: 600;
    margin: .5em .5em 1em;
}

.single #secondary .related .price::after {
    content: "（税抜）";
    font-size: 12px;
    margin-left: .5em;
}

.single #secondary ul.products li.product {
    flex: 0 0 30%;
    background: #F5F5F5;
    width: 270px;
}

.single #secondary a.add_to_cart_button {
    background: #9A5C4E;
    width: 100%;
    color: #fff;
    line-height: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.single #secondary .related a.add_to_cart_button::before {
    content: " ";
    display: inline-block;
    width: 15px;
    height: 15px;
    background: url('../images/shopping-cart-white.svg') left center no-repeat;
    background-size: cover;
    margin: 0 .3em 0;
    position: relative;
    top: 0;
    left: 0;
}

.single #secondary .widget-area {
    flex: 0 0 20%;
}

.single #secondary .widget-area aside.widget {
    border-top: none;
}

.single #secondary .widget-area .product__sidebar--heading {
    font-size: 30px;
    color: #583229;
}

.single #secondary .widget-area h1.widget-title {
    font-size: 12px;
    color: #939393;
    margin-left: 15px;
}

.single #secondary .widget-area ul.product-categories {
    border-bottom: 1px solid #707070;
}

.single #secondary .widget-area ul.product-categories li a {
    border-top: 1px solid #707070;
    padding: 12px 30px;
    text-decoration: none;
}

.single-post .single-post__section,
.page .page__section,
.archive .page__section {
    width: 80%;
    margin: 0 auto;
}

.single-post #primary,
.page .page__section #primary,
.archive .page__section #primary {
    width: 70%;
}

.single-post .widget-area,
.page .page__section .widget-area,
.archive .page__section .widget-area {
    width: 20%;
    float: left;
}

.page .page__title {
    width: 90%;
}

.archive header {
    margin: 2em auto;
    width: 90%;
    align-items: center;
}

.archive header .l-nav {
    margin: 0;
}

.archive__section {
    width: 80%;
    margin: 0 auto;
}

.archive #primary {
    width: 70%;
}

.archive #primary ul.products li.product,
.archive #primary ul.products li.product {
    background: #F5F5F5;
}

.archive #primary h2.woocommerce-loop-product__title {
    margin: .5em;
    font-size: 14px;
}

.archive #primary .price {
    font-size: 14px;
    font-weight: 600;
    margin: .5em .5em 1em;
}

.archive #primary .price::after {
    content: "（税抜）";
    font-size: 12px;
    margin-left: .5em;
}

.archive #primary a.add_to_cart_button {
    background: #9A5C4E;
    width: 100%;
    color: #fff;
    line-height: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.archive #primary a.add_to_cart_button::before {
    content: " ";
    display: inline-block;
    width: 15px;
    height: 15px;
    background: url('../images/shopping-cart-white.svg') left center no-repeat;
    background-size: cover;
    margin: 0 .3em 0;
    position: relative;
    top: 0;
    left: 0;
}


.archive .widget {
    border-top: none;
}

.archive .widget-area {
    width: 20%;
}

.archive .product__sidebar--heading {
    font-size: 30px;
    color: #583229;
}

.archive .woocommerce-products-header {
    position: relative;
}

.archive .archive__kv {
    width: 100%;
    position: relative;
}

.archive .archive__kv::before {
    content: "";
    width: 100%;
    height: 99%;
    display: block;
    background: rgba(0, 0, 0, .4);
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.archive .archive__heading {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}

.archive .archive__heading h1 {
    font-size: 29px;
    text-align: center;
}

.archive .archive__heading .taxonomy-description p {
    font-size: 20px;
    margin: 2em auto;
}

.archive h1.widget-title {
    font-size: 12px;
    color: #939393;
}

.archive .widget-area ul.product-categories li a {
    border-top: 1px solid #707070;
    padding: 12px 30px;
    text-decoration: none;
}


.woocommerce-cart header {
    width: 90%;
    margin: 2em auto;
    align-items: center;
}

.woocommerce-cart header .l-nav {
    margin: 0;
}

.woocommerce-cart #primary {
    width: 80%;
    margin: 5em auto;
}

.woocommerce-cart .widget-area {
    display: none;
}

@media screen and (max-width: 768px) {
    .single .product__gallery {
        width: 100%;
        background: #fff;
    }

    .single .product__gallery a {
        width: 60px;
        margin: 1em;
    }

    .single .woocommerce-product-gallery {
        margin-bottom: 0;
        padding: 0;
    }

    .single .single-thumbnail__images {
        display: none;
    }

    .single .single-product__images {
        flex: 0 0 100%;
        width: 100%;
        height: auto;
        overflow-y: inherit;
    }

    .single .single-product__slider {
        display: block;
    }

    .woocommerce div.product div.summary {
        width: 100%;
    }

    .single .summary .woocommerce-breadcrumb {
        display: none;
    }

    .single .summary .product_meta .posted_in {
        text-align: center;
        font-size: 17px;
    }

    .single .summary h1.product_title {
        text-align: center;
        font-size: 20px;
        border-bottom: none;
    }

    .woocommerce div.product p.price {
        justify-content: center;
        font-size: 17px;
        margin: 19px 0;
    }

    .woocommerce div.product .price::before {
        font-size: 7px;
    }

    .woocommerce div.product form.cart .variations {
        width: 90%;
        margin: 0 auto;
        font-size: 15px;
    }

    .woocommerce div.product form.cart div.quantity {
        width: 90%;
        margin: 0 auto;
        float: none;
    }

    .woocommerce .quantity input.qty {
        float: none;
        width: 72px;
    }

    .woocommerce div.product form.cart div.quantity::before {
        font-size: 15px;
        display: block;
    }

    .woocommerce div.product form.cart .button {
        width: 90%;
        margin: 19px auto;
        float: none;
        font-size: 16px;
    }

    .woocommerce div.product form.cart .button::before {
        width: 16px;
        height: 16px;
        background-size: cover;
        margin-right: .5em;
    }

    .woocommerce div.product .woocommerce-tabs {
        width: 90%;
        margin: 42px auto;
    }

    .single #secondary {
        width: 90%;
    }

    .single #secondary .related {
        flex: 0 0 100%;
    }

    .single #secondary .related.products h2 {
        font-size: 12px;
    }

    .single #secondary .related.products h2.heading__ttl::before {
        font-size: 20px;
    }

    .single #secondary .related ul.products {
        display: block;
        width: 100%;
        padding: 0;
    }

    .single #secondary ul.products li.product:nth-child(odd) {
        flex: 0 0 46%;
        width: 46%;
    }

    .single #secondary ul.products li.product:nth-child(even) {
        flex: 0 0 46%;
        width: 46%;
    }

    .single #secondary .widget-area {
        flex: 0 0 100%;
    }

    .single #secondary .widget-area #text-2 {
        display: none;
    }

    .single #secondary .widget-area h1.widget-title {
        border-bottom: 1px solid #707070;
        width: 70%;
        padding: 1em;
    }

    .single #secondary .widget-area ul.product-categories li a {
        border-top: none;
        border-bottom: 1px solid rgba(112, 112, 112, .27);
    }

    .single #secondary .widget-area ul.product-categories {
        border: none;
    }


    .archive__section {
        width: 90%;
    }

    .archive #primary {
        width: 100%;
    }

    .archive .archive__heading {
        width: 90%;
    }

    .archive .archive__heading .page-title {
        font-size: 20px;
        text-align: left;
    }

    .archive .archive__heading .taxonomy-description {
        margin: 0 auto;
        font-style: normal;
    }

    .archive .archive__heading .taxonomy-description p {
        font-size: 14px;
    }

    .archive #primary ul.products li.product {
        width: 45%;
    }


    .archive #primary ul.products {
        width: 100%;
    }

    .archive .widget-area {
        width: 100%;
        border-top: 1px solid #707070;
    }

    .archive .widget-area #text-2 {
        display: none;
    }

    .archive h1.widget-title {
        border-bottom: 1px solid #707070;
        width: 70%;
        padding: 1em;
    }

    .archive .widget-area ul.product-categories li a {
        border-top: none;
        border-bottom: 1px solid rgba(112, 112, 112, .27);
    }

    .single-post .single-post__section,
    .page .page__section,
    .archive .page__section {
        width: 90%;
    }

    .single-post #primary,
    .page .page__section #primary,
    .archive .page__section #primary {
        width: 100%;
    }

    .single-post .widget-area,
    .page .page__section .widget-area,
    .archive .page__section .widget-area {
        width: 100%;
        border-top: 1px solid #707070;
    }
}

/* 商品詳細ページ */
body.woocommerce div.product form.cart .variations .value select,
body.woocommerce-page div.product form.cart .variations .value select {
    border-color: #dadada;
}

body.woocommerce .quantity input.qty,
body.woocommerce-page .quantity input.qty {
    border-color: #dadada;
}

.product-description-wrapper {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: solid 1px #dadada;
}

.product-description-wrapper p:last-child {
    margin-bottom: 0;
}

.product-additional-information-wrapper {}

.product-additional-information-wrapper table.woocommerce-product-attributes {
    margin-bottom: 0;
}

.product-additional-information-wrapper table.woocommerce-product-attributes .woocommerce-product-attributes-item__label {
    padding-left: 0;
}

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

    .product-description-wrapper,
    .product-additional-information-wrapper {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* 商品一覧での売り切れ表示スタイル */
.woocommerce ul.products .outofstock .woocommerce-loop-product__link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    padding-top: 100%;
    background-color: #666;
}

.woocommerce ul.products .outofstock .attachment-woocommerce_thumbnail {
    position: relative;
    opacity: .5;
    z-index: 1;
}

.woocommerce ul.products .outofstock .is_soldout {
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 12px;
    width: 100%;
    text-align: center;
    color: #585858;
    background: #ddd;
}

.woocommerce ul.products .outofstock .is_soldout::before {
    content: " ";
    display: inline-block;
    width: 0;
    height: 15px;
    background: url(../images/shopping-cart-white.svg) left center no-repeat;
    background-size: cover;
    margin: 0;
    position: relative;
    top: 0;
    left: 0;
}

/* 商品詳細ページ */
@media screen and (max-width: 768px) {
    .single.woocommerce-page div.product form.cart .variations {
        padding-bottom: 24px;
        margin-bottom: 24px;
        border-bottom: solid 1px #dadada;
    }

    .single.woocommerce-page .woocommerce-variation-description,
    .single.woocommerce-page .woocommerce-variation-price,
    .single.woocommerce-page .woocommerce-variation-availability {
        width: 90%;
        margin-right: auto;
        margin-left: auto;
    }
}