@charset "utf-8";

/* =================== ▼▼ root要素 ▼▼ =================== */
:root {

    /* 色設定 */
    --base_color: #166a32;
    --assort_color: #b91b1b;
    --text_color_1: #ffffff;
    --text_color_2: #333333;
}

/* =================== ▲▲ root要素 ▲▲ =================== */

/* =================== ▼▼ 前ページ共通 ▼▼ =================== */
/* 全て */
* {
    box-sizing: border-box;
    font-family: Noto Sans JP;
}

/* コンテナ */
.container {
    width: 90%;
    margin: 0 auto;
}

/* 成功メッセージ */
.success-msg {
    color: #2fa700;
    font-weight: bold;
    line-height: 30px;
    font-size: 16px;
    width: 100%;
    text-align: center;
}

/* 失敗メッセージ */
.error-msg {
    color: #e90000;
    font-weight: bold;
    line-height: 30px;
    font-size: 16px;
    width: 100%;
    text-align: center;
}

/* メッセージ表示コンテナ */
.msg-container {
    width: 100%;
    margin-bottom: 20px;
}

/* h2要素 */
.section-h2 {
    margin-bottom: 100px;
}

h2 {
    margin-bottom: 80px;
}

.h2-main {
    display: block;
    font-size: 24px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    color: var(--text_color_2);
}

.h2-sub {
    font-size: 14px;
    display: block;
    text-align: center;
    color: #555555;
    height: 20px;
    line-height: 20px;
}

.h2-sub::before {
    content: "--";
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.h2-sub::after {
    content: "--";
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}

/* メディアクエリ */
@media screen and (min-width: 769px) {

    /* コンテナ */
    .container {
        max-width: 1024px;
    }

    /* 2カラム */
    .flex {
        display: flex;
        justify-content: space-between;
    }

    .flex-item-col-2 {
        width: 45%;
    }

}

/* =================== ▲▲ 前ページ共通 ▲▲ =================== */

/* =================== ▼▼ header ▼▼ =================== */
/* header */
header {
    background-color: var(--base_color);
    color: var(--text_color_1);
    box-shadow: 0px 1px 5px 2px #7d7d7d;
    z-index: 9999;
    position: sticky;
    margin-bottom: 100px;
}

/* h1要素 */
.h1-col {
    position: relative;
}

h1 {
    display: inline-block;
    margin-right: auto;
    width: 50%;
    line-height: 50px;
    text-align: left;
}

/* グローバルナビ(通常時) */
.global-nav {
    text-align: center;
    background-color: var(--base_color);
    line-height: 50px;
    height: 0;
    overflow: hidden;
    width: 100%;
    transition: .5s;
}

/* グローバルナビの項目 */
.global-nav input[type="submit"] {
    all: unset;
    display: inline-block;
    width: 100%;
}

.global-nav input[type="submit"]:hover {
    cursor: pointer;
    color: var(--base_color);
    background-color: #ffffff;
}

/* グローバルナビ(アクティブ時) */
.global-nav.active {
    height: 200px;
}


/* ハンバーガーメニュー（通常時） */
.hamburger-menu {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 50px;
    background-color: #ffffff;
}

/* ハンバーガーメニューのバー（通常時） */
.hamburger-menu>span,
.hamburger-menu::before,
.hamburger-menu::after {
    display: block;
    width: 80%;
    height: 4px;
    background-color: var(--base_color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .5s;
}

.hamburger-menu::before,
.hamburger-menu::after {
    content: "";
}

.hamburger-menu::before {
    transform: translate(-50%, -12px);
}

.hamburger-menu::after {
    transform: translate(-50%, 8px);
}

/* ハンバーガーメニュー（ホバー時） */
.hamburger-menu:hover {
    cursor: pointer;
    color: #ffffff;
    background-color: var(--base_color);
}

.hamburger-menu:hover>span,
.hamburger-menu:hover::before,
.hamburger-menu:hover::after {
    background-color: #ffffff;
}

/* ハンバーガーメニュー（アクティブ時） */
.hamburger-menu.active>span {
    opacity: 0;
}

.hamburger-menu.active::before {
    transform: translate(-50%, 0) rotate(45deg);
}

.hamburger-menu.active::after {
    transform: translate(-50%, 0) rotate(-45deg);
}

/* メディアクエリ */
@media screen and (min-width: 769px) {

    /* header */
    header {
        display: flex;
        height: 80px;
    }

    /* h1要素 */
    h1 {
        line-height: 80px;
        width: 100%;
    }

    /* グローバルナビ */
    .global-nav {
        position: static;
        line-height: 80px;
        font-size: 14px;
        height: 80px;
        width: 45%;
    }

    .global-nav li {
        width: 25%;
    }

    /* ハンバーガーメニュー */
    .hamburger-menu {
        display: none;
    }
}

/* =================== ▲▲ header ▲▲ =================== */

/* =================== ▼▼ footer ▼▼ =================== */

/* footer */
footer {
    background-color: var(--base_color);
    color: var(--text_color_1);
    text-align: center;
    /* height: 280px; */
}

/* footerロゴ */
.footer-logo {
    font-size: 32px;
    font-weight: bold;
    height: 100px;
    line-height: 100px;
    margin-bottom: 40px;
}

.footer-info {
    margin-bottom: 40px;
}

/* お問い合わせ */
.footer-info table {
    width: 100%;
}

.footer-info caption {
    font-size: 24px;
    line-height: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-info tbody {
    text-align: left;
}

.footer-info th {
    display: inline-block;
    width: 12%;
    font-weight: normal;
}


.footer-info td {
    display: inline-block;
    width: 80%;
}

.footer-info td::before {
    content: ":";
    display: inline-block;
    vertical-align: middle;
    margin-right: 1rem;
}

/* コピーライト */
.copy-right {
    font-size: 12px;
    text-align: center;
    line-height: 40px;
}

/* メディアクエリ */
@media screen and (min-width: 769px) {

    /* footer */
    footer>div {
        position: relative;
    }

    /* footerロゴ */
    .footer-logo {
        width: 50%;
        height: 300px;
        line-height: 300px;
    }

    /* footer情報 */
    .footer-info {
        width: 50%;
        position: relative;
        height: 300px;
    }

    .footer-info table {
        position: absolute;
        width: 100%;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
    }

    .footer-info tr {
        display: block;
        font-size: 20px;
        line-height: 30px;
    }
}

/* =================== ▲▲ footer ▲▲ =================== */

/* =================== ▼▼ ログインページ・新規登録ページ ▼▼ =================== */

/* ログインページのヘッダーのflex */
.login-flex {
    display: flex;
    justify-content: space-between;
}

/* ユーザー登録移動ボタン */
.login-menu {
    height: 50px;
}

/* 新規登録・ログインページ遷移ボタン */
.login-menu-icon form{
    position: relative;
    width: 100%;
    height: 100%;
}

.login-menu-icon input[type="submit"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.login-menu-btn {
    display: none;
}

/* サインアップアイコン */
.login-menu-icon {
    display: inline-block;
    position: relative;
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    text-align: center;
}

/* 新規登録・ログインページ遷移アイコン(ホバー時) */
.login-menu-icon>form>input[type="submit"]:hover{
    cursor: pointer;
}

.login-menu-icon>form:hover{
    opacity: .3;
}

/* 新規登録・ログインページ遷移アイコンの文字 */
.login-menu-icon span {
    display: inline-block;
    width: 100%;
    color: var(--base_color);
    font-size: 8px;
    font-weight: bolder;
    height: 10px;
    line-height: 10px;
    text-align: center;
}

.login-menu-icon img {
    width: 50%;
    height: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -20%);
}

/* ログインフォームのセクション */
.login-section {
    margin-top: 80px;
}

.login-section>h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

.login-form {
    margin: 0 auto;
    width: 70%;
    max-width: 600px;
}

.login-form>div {
    margin-bottom: 32px;
}

.login-form p {
    height: 36px;
    line-height: 36px;
    font-size: 18px;
}

.login-form input {
    width: 100%;
    font-size: 16px;
    height: 36px;
    line-height: 36px;
    padding-left: 8px;
    padding-right: 8px;
}

.login-form input[type="submit"] {
    display: block;
    margin: 0 auto;
    background-color: var(--base_color);
    color: var(--text_color_1);
    border: unset;
    font-size: 18px;
    height: 40px;
    line-height: 40px;
    max-width: 240px;
    margin-top: 60px;
}

.login-form input[type="submit"]:hover {
    cursor: pointer;
    opacity: .7;
}

/* メディアクエリ */
@media screen and (min-width: 769px) {

    /* ユーザー登録移動ボタン */
    .login-menu {
        text-align: center;
        width: 30%;
        max-width: 100px;
        height: 80px;
        line-height: 80px;
    }

    .login-menu-btn {
        display: block;
    }


    .login-menu-btn a {
        display: inline-block;
        width: 100%;
        height: 80px;
        line-height: 80px;
    }

    .login-menu-btn a:hover {
        cursor: pointer;
        color: var(--base_color);
        background-color: #ffffff;
    }

    /* 新規登録・ログインページ遷移ボタン */
    .login-menu-btn input[type="submit"] {
        all: unset;
        display: inline-block;
        width: 100%;
    }

    .login-menu-btn input[type="submit"]:hover {
        cursor: pointer;
        color: var(--base_color);
        background-color: #ffffff;
    }

    /* サインアップアイコン */
    .login-menu-icon {
        display: none;
    }

    /* ログインフォーム */
    .login-form>div {
        display: flex;
        justify-content: center;
    }

    /* ログインフォーム　項目名 */
    .login-form p {
        width: 35%;
    }

    /* ログインフォーム テキストボックス*/
    .login-form input {
        width: 60%;
    }

}

/* =================== ▲▲ ログインページ・新規登録ページ ▲▲ =================== */

/* =================== ▼▼ 商品一覧ページ ▼▼ =================== */

/* 商品個別セクション */
.product-list-item {
    border: 2px solid #cccccc;
    padding: 20px;
    margin-bottom: 20px;
}

/* 商品名 */
.product-list-item h3 {
    text-align: center;
    font-size: 18px;
    height: 28px;
    line-height: 28px;
    color: var(--text_color_2);
}

/* 商品画像 */
.product-img-frame {
    margin: 0 auto;
    width: 100%;
    max-width: 300px;
    height: 300px;
    border: 1px solid #e3e3e3;
    margin-bottom: 10px;
}

.product-img-frame>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 値段 */
.product-list-item .price {
    font-size: 18px;
    height: 28px;
    line-height: 28px;
    color: #ee0000;
}

.product-list-item .price::before {
    content: "￥";
    vertical-align: middle;
    padding-right: 5px;
}

/* カートにいれるボタン */
.product-list-item input[type="submit"] {
    display: block;
    width: 120px;
    font-size: 14px;
    height: 30px;
    line-height: 30px;
    margin: 0 auto;
    background-color: var(--base_color);
    color: var(--text_color_1);
    border: unset;
}

.product-list-item input[type="submit"]:hover {
    cursor: pointer;
    background-color: #ffffff;
    color: var(--base_color);
    border: 2px solid var(--base_color);
}

/* 売り切れボタン */
.sold-out-btn{
    width: 120px;
    font-size: 14px;
    height: 30px;
    line-height: 30px;
    margin: 0 auto;
    background-color: #e71212;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
}

/* メディアクエリ */
@media screen and (min-width: 520px) and (max-width: 768px) {

    /* 商品リスト */
    .product-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    /* 商品個別セクション */
    .product-list-item {
        width: 49%;
    }

    /* 商品画像 */
    .product-img-frame {
        width: 100%;
        height: 28vw;
        max-height: 260px;
    }
}

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

    /* 商品リスト */
    .product-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    /* 商品個別セクション */
    .product-list-item {
        width: 32%;
        margin-right: 2%;
    }

    .product-list-item:nth-child(3n) {
        margin-right: 0;
    }

    /* 商品画像 */
    .product-img-frame {
        width: 100%;
        height: 23vw;
        max-height: 250px;
    }


}

/* =================== ▲▲ 商品一覧ページ ▲▲ =================== */

/* =================== ▼▼ カートページ ▼▼ =================== */

.cart-list {
    margin-bottom: 20px;
}

/* カート内個別商品セクション*/
.cart-list-item {
    border: 2px solid #cccccc;
    margin-bottom: 10px;
    width: 100%;
    padding: 0 4px;
    height: 80px;
    line-height: 80px;
}

.cart-list-item>section {
    display: flex;
    justify-content: space-between;
    height: 100%;
}

/* カート内商品画像 */
.item-img-frame-in-cart {
    width: 25%;
    max-width: 200px;
    height: 100%;
    position: relative;
}

.item-img-frame-in-cart>img {
    display: block;
    width: 100%;
    height: 68px;
    object-fit: cover;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid #cccccc;
}

/* カート内商品情報 */
.product-info {
    position: relative;
    width: 25%;
    height: 100%;
}

.product-info>div {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* カート内商品名 */
.cart-list-item h3 {
    text-align: center;
    font-size: 12px;
    width: 100%;
    height: 24px;
    line-height: 24px;
}

/* カート内値段と売り切れ情報 */
.cart-list-item .price,
.sold-out {
    width: 100%;
    text-align: center;
    font-size: 10px;
    height: 16px;
    line-height: 16px;
}

.sold-out {
    font-weight: bold;
    color: #ff0000;
}

/* カート内注文情報 */
.order-info {
    width: 25%;
    position: relative;
}

.order-info>div {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.input-order-num {
    display: flex;
    justify-content: flex-end;
    height: 24px;
    margin-bottom: 4px;
}

.order-info label {
    margin-right: 2px;
    font-size: 12px;
    height: 24px;
    line-height: 24px;
}

#product-qty{
    width: 90%;
    max-width: 40px;
    height: 24px;
    line-height: 24px;
    padding: 0 4px;
}

/* カート内nunber項目 */
.order-info input[type="number"] {
    width: 60%;
    height: 18px;
    line-height: 18px;
}

/* カートから削除ボタン */
.delete-from-cart {
    width: 25%;
    position: relative;
}

.delete-from-cart input[type="submit"] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* カート内submitボタン */
.cart-list-item input[type="submit"] {
    display: inline-block;
    width: 40px;
    border: unset;
    font-size: 10px;
    height: 24px;
    background-color: var(--base_color);
    color: var(--text_color_1);
}

.cart-list-item input[type="submit"]:hover {
    cursor: pointer;
    border: 2px solid var(--base_color);
    color: var(--base_color);
    background-color: #ffffff;
}

.order-info input[type="submit"] {
    display: block;
    margin-left: auto;
    width: 40px;
}

/* 小計 */
.subtotal {
    font-size: 20px;
    height: 30px;
    line-height: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.subtotal>span {
    border-bottom: 3px double var(--text_color_2);
}

/* 購入ボタン */
.purchase-btn {
    width: 160px;
    display: block;
    margin: 0 auto;
    border: unset;
    background-color: var(--base_color);
    color: var(--text_color_1);
    font-size: 18px;
    height: 34px;
    line-height: 34px;
}

.purchase-btn:hover {
    cursor: pointer;
    border: 2px solid var(--base_color);
    background-color: #ffffff;
    color: var(--base_color);
}

/* メディアクエリ */
@media screen and (min-width: 769px) {

    /* カート内個別商品セクション*/
    .cart-list-item {
        height: 160px;
        line-height: 160px;
    }

    /* カート内商品画像 */
    .item-img-frame-in-cart {
        height: 50vw;
        max-height: 100%;
    }

    .item-img-frame-in-cart>img {
        height: 148px;
    }

    /* カート内商品情報 */
    .product-info {
        height: 160px;
    }

    /* カート内商品名 */
    .cart-list-item h3 {
        font-size: 16px;
        height: 36px;
        line-height: 36px;
    }

    /* カート内値段と売り切れ */
    .cart-list-item .price,
    .sold-out {
        font-size: 14px;
        height: 24px;
        line-height: 24px;
    }

    /* カート内注文情報 */
    .order-info>div {
        width: 80%;
    }

    .order-info {
        display: block;
    }

    .order-info label {
        font-size: 16px;
    }

    #product-qty{
        width: 90%;
        max-width: 100px;
    }

    /* カート内nunber項目 */
    .order-info input[type="number"] {
        height: 20px;
        width: 30%;
    }

    /* カート内submitボタン */
    .cart-list-item input[type="submit"] {
        width: 80px;
        font-size: 14px;
        height: 32px;
    }

    .order-info input[type="submit"] {
        width: 30%;
    }

    /* 小計 */
    .subtotal {
        font-size: 28px;
        height: 38px;
        line-height: 38px;
        margin-bottom: 0;
        text-align: left;
    }

    /* 購入ボタン */
    .purchase-btn {
        width: 240px;
        font-size: 20px;
        height: 38px;
        line-height: 38px;
    }

    /* カートが空のメッセージ */
    .empty-cart-msg {
        text-align: center;
        font-size: 18px;
        line-height: 28px;
    }
}


/* =================== ▲▲ カートページ ▲▲ =================== */

/* =================== ▼▼ 購入完了ページ ▼▼ =================== */

/* 購入商品個別セクション */
.order-list-item {
    border: 2px solid #cccccc;
    padding: 0 4px;
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 購入商品画像 */
.item-img-frame-in-order {
    width: 25%;
    height: 88px;
    position: relative;
    border: 1px solid #cccccc;
}

.item-img-frame-in-order>img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* 注文情報 */
.payment-info {
    width: 70%;
}

.payment-info table {
    width: 100%;

}

.payment-info tr {
    display: flex;
    justify-content: center;
}

.payment-info th {
    display: block;
    width: 25%;
    text-align: right;
    font-size: 14px;
}

.payment-info td {
    display: block;
    width: 30%;
    text-align: right;
    font-size: 14px;
}

/* お支払金額 */
.payment-amount {
    margin-top: 20px;
    text-align: center;
    font-size: 20px;
    height: 30px;
    line-height: 30px;
}

.payment-amount>span {
    border-bottom: 3px double var(--text_color_2);
}

/* メディアクエリ */
@media screen and (min-width: 769px) {

    /* 購入商品個別セクション */
    .order-list-item {
        height: 160px;
    }

    /* 購入商品画像 */
    .item-img-frame-in-order {
        width: 25%;
        height: 148px;
    }

    /* 注文情報 */
    .payment-info thead>tr>th {
        font-size: 18px;
        height: 30px;
        line-height: 30px;
    }

    .payment-info th {
        font-size: 16px;
    }

    .payment-info td {
        font-size: 16px;
    }

    /* お支払金額 */
    .payment-amount {
        text-align: right;
        font-size: 28px;
        line-height: 38px;
        line-height: 38px;
    }
}

/* =================== ▲▲ 購入完了ページ ▲▲ =================== */

/* =================== ▼▼ 購入履歴ページ ▼▼ =================== */

/* 購入履歴商品個別セクション*/
.history-list>li {
    border: 2px solid #cccccc;
    padding: 0 4px;
    width: 100%;
    height: 120px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 購入履歴商品画像 */
.item-img-frame-in-history {
    width: 35%;
    height: 100px;
    position: relative;
}

.item-img-frame-in-history>img {
    border: 1px solid #cccccc;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* 購入時情報 */
.purchase-info {
    width: 60%;
}

.purchase-info tr {
    height: 20px;
    line-height: 20px;
    display: flex;
    justify-content: space-between;
}

.purchase-info th {
    font-size: 12px;
    font-weight: normal;
    width: 40%;
    text-align: right;
}

.purchase-info th::after {
    content: ":";
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
}

.purchase-info td {
    font-size: 12px;
    width: 58%;
}

@media screen and (min-width: 769px) {
    /* 購入履歴リスト */

    .history-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    /* 購入履歴商品個別セクション*/
    .history-list>li {
        display: block;
        width: 32%;
        margin-right: 2%;
        margin-bottom: 15px;
        height: unset;
        padding: 0 8px;
        padding-top: 10px;
    }

    .history-list>li:nth-child(3n) {
        margin-right: 0;
    }

    /* 購入履歴商品画像 */
    .item-img-frame-in-history {
        width: 100%;
        height: 20vw;
        margin-bottom: 12px;
    }

    .item-img-frame-in-history>img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: static;
        top: 0;
        transform: unset;
    }

    /* 購入時情報 */
    .purchase-info {
        width: 100%;
        margin-bottom: 10px;
    }

    .purchase-info tr {
        height: 24px;
        line-height: 24px;
    }

    .purchase-info th {
        font-size: 12px;
        width: 38%;
    }

    .purchase-info th::after {
        margin-left: 8px;
    }

    .purchase-info td {
        font-size: 12px;
        width: 60%;
    }
}

/* メディアクエリ */
@media screen and (min-width: 947px) {
    .purchase-info th {
        font-size: 16px;
    }

    .purchase-info td {
        font-size: 16px;
    }
}

/* =================== ▲▲ 購入履歴ページ ▲▲ =================== */