/*
Theme Name:		maekashi
Description:	maekashi 用カスタム子テーマ
Author:			WElcart Inc.
Author URI:		https://www.welcart.com/
Template:		welcart_basic
Version:		1.0.0
License:		GNU General Public License v2 or later
License URI:	http://www.gnu.org/licenses/gpl-2.0.html
Tags:			responsive-layout, basic-child, two-columns, right-sidebar. left-sidebar
*/

html {
    overflow-x: hidden;
}

body {
    font-family: 'TsukuARdGothic-Regular', YuGothic, 'Yu Gothic', sans-serif;
}

#main.two-column #content {
    max-width: 790px;
    margin: 0;
    padding: 0 4% 0 0;
    width: 100%;
    text-align: justify;
}

.widget img,
.entry-content img,
.item-description img {
    width: 100%;
}

.hamburger-icon rect {
    transition: all 0.3s ease;
}

#site-navigation label {
    top: 7px;
    right: 7px;
}


@media screen and (min-width: 300px) {
    .incart-btn .total-quant {
        background-color: #b1292c;
    }

    .site-description {
        background: #b1292c;
    }
}

@media screen and (min-width: 1000px) {
    .incart-btn a {
        background-color: #b1292c;
    }

    .incart-btn .total-quant {
        color: #b1292c;
    }

    .incart-btn .total-quant {
        background-color: #fff;
    }

    .snav {
        padding-top: 60px;
    }

    .site-description {
        background: #b1292b00;
    }

    header #site-navigation input#panel.on-off+div.nav-menu-open,
    header #site-navigation input#panel.on-off:checked+div.nav-menu-open,
    header #site-navigation input#panel.on-off+div.header-nav-container {
        display: block;
        height: auto;
        overflow: inherit;
        background-color: #b1292c;
    }

    #site-navigation li.current-menu-item>a,
    #site-navigation li.current-menu-ancestor>a {
        background-color: #d02125;
    }

    #site-navigation li {
        padding: 0;
        border-right: 1px solid #ffffff;
    }

    #site-navigation ul li:first-child {
        border-left: 1px solid #ffffff;
    }

    #site-navigation li.current_page_item a,
    #site-navigation li.current-menu-parent a {
        background-color: #d02125;
    }
}

/* 商品ページ ヘッダー*/
.item-header-custom {
    background-color: #fff;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.item-header-custom .logo a {
    color: #000;
    font-size: 1.5rem;
    text-decoration: none;
}

.item-header-custom nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 999px) {
    .item-header-custom nav ul {
        display: none;
        /* ハンバーガー実装用 */
    }
    #main.two-column #content {
        padding: 0 4%;
    }

}


/* 商品ページ LP*/
.item_page_title {
    display: none;
}

.detail-box .item-name,
.detail-box .itemcode {
    display: none;
}

.lp_midashi {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin: 4% auto 1%;
}

/* 商品ページ 商品説明table*/
.responsive-table {
    width: 100%;
    border-collapse: collapse;
}

.responsive-table th,
.responsive-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: justify;
}

.responsive-table th {
    background: #f5f5f5;
    width: 30%;
    text-align: left;
}

/* スマホ表示では縦並び */
@media (max-width: 600px) {

    .responsive-table th,
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table th {
        background: #fafafa;
        border-bottom: none;
    }

    .responsive-table tr {
        margin-bottom: 10px;
        display: block;
        border: 1px solid #ddd;
    }

    .entry-content table,
    .item-description table {
        border: none;
    }
}

/* 商品一覧のフォント */
em {
    color: #000000;
    font-size: 10px;
}

.itemname a {
    color: #000000;
}

.cat-il.type-grid .itemprice {
    height: 22px;
    font-weight: bold;
    text-align: right;
    font-size: 21px;
    color: #b1292c;
    margin-bottom: 5px;
}

/* 商品一覧の画像の大きさ */
@media screen and (min-width: 38.75em) {
    .cat-il.type-grid article {
        width: 29%;
        margin-right: 4%;
    }
    .cat-il.type-grid article:nth-of-type(4n) {
        margin-right: 4%;
    }
}

/* 見出し */
h2.midashi {
    background-color: brown;
    padding: 5px 5px 5px 10px;
    color: #fff;
    margin: 30px 0 5px;
}

/*===========================
ヘッダーナビ
============================*/
@media screen and (min-width: 62.5em) {
    #site-navigation li a:hover {
        background-color: #d02125;
        color: #fff;
        text-decoration: none;
    }
    #site-navigation ul ul li a {
        width: 100%;
        height: auto;
        padding: .714286em 0.757143em;
        border: none;
        background-color: #e9e4e4;
        color: #262626;
        line-height: 1em;
    }
    #site-navigation ul ul {
        display: none;
        position: absolute;
        z-index: 99999;
        top: 42px;
        left: -2px;
        width: fit-content;
        float: left;
        background-color: #fff;
        white-space: nowrap;
        border: none;
    }

}


/*=========================
サイドメニュー
==========================*/
/* 「商品」だけ消して、子カテゴリ（鶏肉など）は表示したまま */
#secondary #block-10 ul.wp-block-categories-list > li.cat-item-2 > a,
#secondary #block-10 ul.wp-block-categories-list > li.cat-item-1 > a,
#secondary #block-10 ul.wp-block-categories-list > li.cat-item-2 > ul.children > li.cat-item-3 > a,
#secondary #block-10 ul.wp-block-categories-list > li.cat-item-2 > ul.children > li.cat-item-4 > a,
#secondary #block-10 ul.wp-block-categories-list > li.cat-item-2 > ul.children > li.cat-item-5 > a{
  display: none !important;
}

  /* （任意）「商品」分の余白だけ詰める：子が上に詰まる */
  #secondary #block-10 ul.wp-block-categories-list > li.cat-item-2{
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px;
  }
  #secondary #block-10 ul.wp-block-categories-list > li.cat-item-2 > ul.children{
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  /* サイドのカテゴリ一覧：カテゴリ名の下にアンダーライン */
#secondary #block-10 ul.wp-block-categories-list a{
    display: block;                 /* 下線を幅いっぱいにする */
    padding: 4px;          /* 線との距離 */
    border-bottom: 1px solid rgba(0,0,0,.18);
  }

  /* 最後の項目だけ下線を消したい場合（任意） */
  #secondary #block-10 ul.wp-block-categories-list > li:last-child > a{
    border-bottom: none;
  }




/* =========================
   フッター共通
========================= */

@media screen and (min-width: 62.5em) {
    footer nav {
        width: 90%;
        margin: 0 auto;
        padding: 2.142856em 0 2.857143em;
    }
}

#colophon {
    background: #fff1d7;
    color: #fff;
    padding: 40px 20px;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.footer-menu a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
}

footer a:hover {
    color: #a23939;
    text-decoration: none;
}

.footer-menu li {
    position: relative;
}

/* 子メニュー（PCは表示） */
.footer-menu .sub-menu {
    margin-top: 10px;
    list-style: none;
    padding-left: 0;
}

.footer-menu .sub-menu li {
    margin-top: 6px;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    font-size: 12px;
    opacity: 0.7;
    color: #000;
}

footer nav li li li::before {
    content: "\f105";
    display: inline-block;
    margin-right: .8em;
    color: #020202;
    font-family: FontAwesome;
    font-size: 10px;
    font-weight: bold;
}

/* =========================
   SP：アコーディオン
========================= */
@media (max-width: 999px) {

    .footer-menu {
        display: block;
    }

    .footer-menu>li {
        border-bottom: 1px solid rgb(29, 27, 27);
        padding: 12px 0;
    }

    /* 親リンク */
    .footer-menu>li>a {
        display: block;
        padding-right: 40px;
    }

    /* JSで追加する＋ボタン */
    #footer-nav .menu-item-has-children {
        position: relative;
    }

    /* 親も子も、子メニュー持ちの a を基準にする */
    #footer-nav .menu-item-has-children>a {
        position: relative;
        display: block;
        padding-right: 40px;
        /* 右側に＋/−ぶんの余白 */
    }

    /* トグルは a の右端・縦中央 */
    #footer-nav .accordion-toggle {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        cursor: pointer;
        z-index: 2;
    }

    #footer-nav .accordion-toggle::after {
        content: "＋";
    }

    #footer-nav li.open>a>.accordion-toggle::after {
        content: "−";
    }

    #footer-nav .sub-menu {
        display: none;
    }
    #secondary section:last-child {
        margin-bottom: 0;
        display: none;
    }
}