@charset "utf-8";

/* HEADER */

@media (max-width: 767px) {
  header nav.menunavi-items {
    .sub-categories.level-2 .sp-menunavis {
      height: 40px;
      line-height: 40px;

      position: relative;
      font-size: 1rem;
      font-weight: bold;
      border-bottom: 1px solid #ccc;
      padding-bottom: 0;
      margin-bottom: 0;

    }



    .sub-categories {
      .category-title.sp-menunavis {
        display: flex;
        width: 100%;

        height: 40px;
        line-height: inherit;

        &:before,
        &:after {content: none;}
      }

      .category-title.sp-menunavis a {
        height: 40px;
        display: flex;
        align-items: center;
        width: 100%;
        min-width: 86%;

        position: relative;
        z-index: 4;
      }

      .category-title.sp-menunavis a.is_menu {
      }

      .menu_open_and_close {
        margin-left: auto;
        display: block;
        min-width: 40px;
        height: 100%;

        position: relative;
        z-index: 5;

        &:before,
        &:after {
          content: "";
          background-color: #333;
          position: absolute;
          top: 0;
          bottom: 0;
          margin: auto;
        }

        &:before {
          width: 15px;
          height: 2px;
          right: 0;
        }
        &:after {
          width: 2px;
          height: 15px;
          right: 7px;
          transform: rotate(0deg);
        }
      }
      /* menu_open_and_close */

      /* open */
      .category-title.sp-menunavis.accordion.open {
        .menu_open_and_close:after {transform: rotate(90deg);}
      }
    }
  }
}





/* 共通カテゴリ */
.colored-categories {
  width: 94%;
  margin: 20px auto 0;

  .categories-title {
    font-size: 18.9px;
    font-weight: bold;
  }



  .categories-list a {
    text-align: center;
    display: block;
  }

  .categories-list {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    grid-row-gap: 16px;

    margin-top: 20px;

    li {
      width: 16.66%;
    }
  }

  picture {
    margin: auto;
    display: block;
    width: 30px;
    height: auto;
    min-height: 28px;
  }

  .categories-name {
    font-size: 9px;
    line-height: 1.5;
    display: block;
  }

  &.is_bottom {padding-bottom: 50px;}
  &.is_icons {
      /* アイコン設定 */
      .product {
        /* SALE */
        &.cat-ct179 a::before {
          background-image: url('https://gigaplus.makeshop.jp/ohkawado/img/icon/icon_sale.png');
        }
        &.cat-sofa a::before {
          background-image: url('https://gigaplus.makeshop.jp/ohkawado/img/icon/sofa.png');
        }
        &.cat-dining a::before {
          background-image: url('https://gigaplus.makeshop.jp/ohkawado/img/icon/diningset.png');
        }
        &.cat-curtain a::before {
          background-image: url('https://gigaplus.makeshop.jp/ohkawado/img/icon/curtain.png');
        }
        &.cat-bed_frame a::before {
          background-image: url('https://gigaplus.makeshop.jp/ohkawado/img/icon_bedframe.png');
        }
        &.cat-mattress a::before {
          background-image: url('https://gigaplus.makeshop.jp/ohkawado/img/icon_mattress.png');
        }
        &.cat-mattresscover a::before {
          background-image: url('https://gigaplus.makeshop.jp/ohkawado/img/icon_mattresscover.png');
        }
        &.cat-pillow a::before {
          background-image: url('https://gigaplus.makeshop.jp/ohkawado/img/icon_pillow.png');
        }
        &.cat-storage a::before {
          background-image: url('https://gigaplus.makeshop.jp/ohkawado/img/icon/icon_storage.png');
        }
        &.cat-interior a::before {
          background-image: url('https://gigaplus.makeshop.jp/ohkawado/img/icon_goods.png');
        }
        &.cat-chair a::before {
          background-image: url('https://gigaplus.makeshop.jp/ohkawado/img/icon/icon_chair.png');
        }
        &.cat-rug a::before {
          background-image: url('https://gigaplus.makeshop.jp/ohkawado/img/icon_rug.png');
        }
        /* 各種サービス */
        &.cat-ct178 a::before {
          background-image: url('https://gigaplus.makeshop.jp/ohkawado/img/icon/icon_service.png');
        }
      }
      /* アイコン設定 */

      .categories-list a {
        min-height: 45px;
        height: 100%;
        position: relative;

        display: flex;
        flex-direction: column;

        &::before {
          content: "";
          display: block;
          width: 100%;
          max-width: 30px;
          margin: auto;
          height: 28px;

          background-repeat: no-repeat;
          background-size: contain;
          background-position: center;
        }

        .categories-name {margin-top: auto;}
      }
  }
}

@media (min-width: 767px) {
  .colored-categories {display: none;}
}
/* END 共通カテゴリ */


/* PC SideContent Categories */
@media (min-width: 767px) {
  .side-category-child-item.is_side_cat {
    .product.cat-ct179 a::before{
      content: '';
      display: inline-block;
      background-image: url('https://gigaplus.makeshop.jp/ohkawado/img/icon/icon_sale.png');
      background-size: contain;
      background-position: center;
      background-repeat: no-repeat;
      margin-right: 1.5rem;
      /* width: 2.2em;
      height: 2.2em; */
      width: 28px;
      height: 25px;
    }

    .cate_mother {
      border-bottom: 1px solid #000;
      /* margin-bottom: 1.5em; */

      display: flex;
      align-items: center;
      justify-content: flex-start;

      .menu_open_and_close.accordion {
        max-width: 20px;
        height: 20px;
        margin-left: auto;
      }
    }


    .sub-categories.level-3,
    .side-category-child-item.level-3 {
      li {
        width: 100%;
        margin-left: 5%;
        margin-right: inherit;
        margin-bottom: inherit;


        a::before {content: none;}
        a {
          margin: auto;
          font-weight: normal;
          display: block;
        }
        .category-title {
          border-bottom: none;
          margin-bottom: inherit;
          padding: inherit;

          a::before {
            content: '#';
            background-image: none;
            width: auto;
            height: auto;
            margin: auto;
            margin-right: .25em;
          }
        }

      }
    }



    .menu_open_and_close.is_accordion {
      max-width: 20px;
      height: 20px;
      margin-left: auto;
      position: relative;
      cursor: pointer;
      width: 100%;

      &:before {
        display: block;
        content: "";
        position: absolute;
        top: 50%;
        right: 0;
        margin: auto;
        width: 15px;
        height: 2px;
        background-color: #333333;
        transition: .2s;
        transform: rotate(90deg);
        -webkit-transform: rotate(90deg);
      }
      &:after {
        display: block;
        content: "";
        position: absolute;
        top: 50%;
        right: 0;
        margin: auto;
        width: 15px;
        height: 2px;
        background-color: #333333;
        transition: .3s;
      }

      &.on:before {}
    }
    .is_acordions.open .menu_open_and_close:before {transform: rotate(0deg);-webkit-transform: rotate(0deg);}
  }
}
/* END PC SideContent Categories */
