@charset "utf-8";

html {
    scroll-behavior: smooth;
}

body {
    font-family: "メイリオ", "Hiragino Sans", sans-serif;
}

a {
    color: #333333;
    text-decoration: none;
}

header {
    height: 80px;
    background-color: #D7E9C9;
}

footer {
    height: 80px;
    background-color: #e3d3f7;
    /* background-color: #dbd5c4; */
    font-size: 1.4rem;
    display: flex;
    justify-content: end;
    align-items: center;
    padding-right: 30px;
}

.top {
    min-height: calc(100vh - 160px);
    /* background-image: url(../images/daichi.jpg); */
    /* 以下三つで一人っ子が縦横中央に寄る */
    display: flex;
    justify-content: center;
    align-items: center;
}

.top h1 {
    background-color: #ffffff80;
    padding: 50px 80px;
    display: inline;
    font-family: "Kiwi Maru", serif;
    font-weight: 400;
    font-style: normal;
    color: #ffffff;
    text-shadow: 0px 0px 10px rgb(11 12 8);
    letter-spacing: 0.06em;
    line-height: 1.5em;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.en {
    display: block;
    font-size: 1.5rem;
    text-align: center;
    padding-top: 3px;
}

header h1 {
    margin-left: 30px;
    font-size: 2.3rem;
    font-family: "Kiwi Maru", serif;
    font-weight: 400;
    font-style: normal;
}

nav ul {
    display: flex;
    margin-right: 30px;
    font-family: "Kiwi Maru", serif;
}

nav li {
    border-left: 1px solid #333333;
    padding: 0 20px;
    font-size: 1.3rem;
}

nav li:last-child {
    border-right: 1px solid #333333;
}

nav i {
    padding-right: 5px;
}

.res-menu {
    position: fixed;
    top: 0;
    right: 0;
    display: none;
}

article {
    min-height: calc(100vh - 160px);
    /* min-heightどんなに要素が小さくてもこの高さを出す（高さの最低値） */
    /* ↑ コンテンツ要素が多い時はmin-hightにするとフッターが下に下がってくれる
    （heightにしてしまうと要素が増えた場合、フッターが要素にかぶってしまう） */
}

.co-title,
.sh-title {
    background-image: url(../images/co-bg.jpg);
    background-size: cover;
    height: 130px;
    width: 100%;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-family: "Kiwi Maru", serif;
    background-position: right, center;
}

.sh-title {
    background-image: url(../images/sh-bg.jpg);
}

.co-title h2,
.sh-title h2 {
    background-color: #ffffff80;
    width: 100%;
    /* ↑ flexの子要素は幅指定しないと自分の幅のみ */
    text-align: center;
    padding: 20px 0;
}

.co-section,
.sh-section {
    width: 80%;
    margin: 0 auto;
}

.co-section h3,
.sh-section h3 {
    text-align: center;
    font-size: 1.6rem;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 10px;
    margin: 30px auto;
    width: 60%;
    font-family: "Kiwi Maru", serif;
}

.content-wrap {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.content-wrap img {
    max-width: 100%;
    height: 200px;
    border-radius: 57% 43% 41% 59% / 48% 37% 63% 52%;
}

.content-wrap p,
.shop-wrap p {
    line-height: 3em;
    font-size: 1.5rem;
    font-family: "Kiwi Maru", serif;
}

.fadein {
    opacity: 0;
    transform: translate(0, 0);
    transition: all 1.5s;

    &.fadein-left {
        transform: translate(-30px, 0);
    }

    &.scrollin {
        opacity: 1 !important;
        transform: translate(0, 0) !important;
    }
}

.sozai {
    width: 50%;
    ;
    margin: 50px auto;
    border: 1px solid #cccccc;
    padding: 20px;
}

.sozai-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.sozai-title {
    font-size: 1.3rem;
    text-align: center;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 15px;

}

.circle {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 50px;
    margin: 20px auto 0;
}

.circle img {
    width: 100%;
    height: auto;
}

/* onlineshop */
.shop-wrap {
    width: 60%;
    margin: 0 auto;
}

.soap-collection-wrap {
    width: 60%;
    margin: 50px auto;
}

.soap-box {
    align-content: start; 
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 6%;
}

.soap-box img {
    max-width: 100%;
    display: block;
}

.item-title {
    border-left: 5px solid #D7E9C9;
    padding-left: 0.5em;
    font-size: 1.4rem;
}

.item-wrap {
    display: flex;
    justify-content: space-between;
    padding: 0.65em 0;
    font-size: 1.3rem;
}

.form-wrap {
    display: flex;
    justify-content: space-between;
    padding: 1.2em 0;
    align-items: flex-end;
}

.quantity {
    font-size: 1.1rem;
    margin-bottom: 0.3em;
    margin-right: 0.5em;
}

select {
    font-size: 1.25rem;
    padding: 0.2em;
    width: 3em;
}
.cart-list {
    line-height: 1.5em;
}
.cart-btn {
    background-color: transparent;
    border: none;
    font-size: 1.15rem;
    padding: 0.5em 1em 0.6em;
    background-color: #8ba776;
    border: none;
    border-radius: 3px;
    color: #ffffff;
}
.cart-btn:hover{
    opacity: 0.5;
}

.cart-wrap {
    font-size: 1.35rem;
    margin-top: 30px;
    line-height: 1.35em;
}
.cart-border {
    height: 1px;
    background-color: #8ba776;
}
.cart-table {
    border: 1px solid #e5e5e5;
    border-collapse: collapse;
    text-align: center;
    width: 90%;
    margin: 0 auto;
}
.cart-table tr {
    border: 1px solid #e5e5e5;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}
.cart-table th {
    padding-top: 1em;
    padding-bottom: 1em;
    font-weight: 600;
    color: #999;
}
.cart-table td {
    padding-top: 1em;
    padding-bottom: 1em;
}
.cart-btn-wrap {
    margin-top: 30px;
    margin-bottom: 30px;
    display: grid;
    row-gap: 20px;
}
.goshop a{
    border-radius: 3px;
    padding: 0.6em 2em 0.5em;
    color: #ffffff;
    background-color: #8ba776;
    width: 125px;
    display: block;
    text-align: center;
}
.golist a{
    border-radius: 3px;
    padding: 0.6em 2em 0.5em;
    border: 1px solid #8ba776;
    color: #8ba776;
    width: 125px;
    display: block;
    text-align: center;
}
.goshop a:hover, .golist a:hover{
    opacity: 0.5;
}
.remove {
    border: 1px solid #333;
    padding: 2px 5px;
    border-radius: 3px;
}
.remove:hover{
    opacity: 0.5;
}
.total {
    text-align: right;
    margin-right: 5%;
    margin-top: 20px;
}
.cart-read-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-right: 5%;
}
.godelete a{
    color: #8ba776;
    width: 125px;
    padding: 0.3em 1em 0.4em;
    border: 1px solid #8ba776;
    font-size: 1rem;
    border-radius: 3px;
}


/* ここからレスポンシブ設定 */
@media(max-width:600px) {

    .res-menu {
        display: block;
        /* background-color: #8ba776; */
        /* color: #ffffff; */
        font-size: 2rem;
        padding: 10px 8px;
        margin: 15px 10px;
    }

    nav {
        position: fixed;
        top: -1000px;
        transition-duration: 1s;
        /* ↑ ハンバーグメニューが戻る時も動きをつける */
        width: 100vw;
        /*　↑ 画面全体の横幅　vw */
        min-height: calc(100vh - 360px);
        background-color: #ffffff;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 100;
        background-color: #ebf9e1;
    }

    nav ul {
        margin: 0;
        display: block;
        width: 100%;
    }

    nav li {
        font-size: 1.75rem;
        border-left: none;
        border-right: none;
        padding: 20px 0 20px 30px;
        border-top: 1px dotted #333;
        margin: 0 30px;
    }

    nav li:last-child {
        border-right: none;
        border-bottom: 1px dotted #333;
    }

    .show {
        top: 80px;
        transition-duration: 1s;
        /* ↑ 適用に1秒かける
   positionに聞くがdisplayには効かない */
    }

    .res-menu i:first-child {
        display: block;
        width: 25px;
        text-align: center;
    }

    .res-menu i:last-child {
        display: none;
    }

    .show2 i:first-child {
        display: none;
    }

    .show2 i:last-child {
        display: block;
        width: 25px;
        text-align: center;
    }

    article {
        min-height: 0;
        padding-bottom: 40px;
        min-height: calc(100vh - 200px);
    }

    .co-section,
    .sh-section {
        width: 95%;
    }

    .co-section h3,
    .sh-section h3 {
        width: auto;
        font-size: 1.7rem;
    }

    .content-wrap {
        flex-direction: column;
        gap: 20px;
        margin: 20px;
    }

    .content-wrap img {
        height: auto;
    }
    .sozai {
        width: 70%;
    }
    .sozai-wrap {
        grid-template-columns: 1fr 1fr;
    }
    .shop-wrap {
        width: auto;
        padding: 0 20px;
    }
    .soap-box {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cart-btn-wrap {
        row-gap: 15px;
        margin-left: 5%;
    }
    .cart-read-wrap {
        display: block;
        margin: 0 5%;
    }
    .godelete {
        text-align: right;
        margin-top: 10px;
    }
    .cart-list {
        margin: 0 5%;
    }
}