
/* 共通スタイル */
.bag-type-content h2 {
  color: #FC9829;
}

.isSP {
  display: none;
}

.isPC {
  display: block;
}

.sp-only {
  display: none;
}

/* タブメニュー PC版 */
.bag-type-content .bag-type-menu ul {
  display: flex;
  flex-wrap: nowrap;
  margin: 0 0 20px 0;
  padding: 0 5px;
  list-style: none;
  gap: 10px;
  border-bottom: 3px solid #4495CC;
  position: relative;
}

.bag-type-content .bag-type-menu li {
  background: #FFFFFF;
  color: #333333;
  font-weight: bold;
  text-align: center;
  flex: 1;
  padding: 0px 15px;
  margin: 0;
  font-size: 16px;
  border: 2px solid #CCCCCC;
  border-bottom: 0px;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    height:65px 
}

.bag-type-content .bag-type-menu li:hover {
  border-color: #4495CC;
  color: #4495CC;
  background-color: #E4FAFA
}

.bag-type-content .bag-type-menu li.is-select {
    background: #E4FAFA;
    color: #4495CC;
    border: 2px solid #4495CC;
    border-bottom: 0px solid #E4FAFA;
    z-index: 1;
    margin-bottom: -4px;
}
.bag-type-content .bag-type-menu li.is-select:after {
    content: '';
    position: absolute;
    bottom: -4px;
    /* left: -2px; */
    right: 0px;
    height: 5px;
    background: #E4FAFA;
    z-index: 2;
    padding-bottom: 4px;
    width: 100%;
}
/* コンテンツエリア */
.bag-type-wrap {
  margin-top: 20px;
}

.section-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333333;
}

.color-description {
  font-size: 14px;
  color: #666666;
  margin-bottom: 15px;
  text-align: center;
}

/* アイテムリスト */
.bag-type-wrap ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 15px;
}

.bag-type-wrap ul li {
  width: calc(25% - 12px);
  border: 2px solid #E0E0E0;
  border-radius: 50px;
  padding: 0;
  margin: 0;
  background: #FFFFFF;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  min-height: 90px;
}
.bag-type-wrap ul li.sq {
    border-radius: 10px
}
.bag-type-wrap ul li.sq:before {
    content: '\f061';
    font-size: 12px;
    background: #000;
    color: #fff;
    border-radius: 30px;
    padding: 2px 5px;
    line-height: 1.5;
    font-weight: bold;
    font-family: "Font Awesome 5 Free";
    font-display: swap;
    position: absolute;
    font-weight: 900;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}
.bag-type-wrap ul li.sq.anchor-li:before {
    content: '▼';
    font-size: 12px;
    background: none;
    color: #C1C1C1;
    font-weight: bold;

}
.bag-type-wrap ul li:hover {
  border-color: #4495CC;
  color: #4495CC;
  background-color: #E4FAFA;
}
.bag-type-wrap ul li.sq:hover:before {
    background: #4495CC;
}
.bag-type-wrap ul li.sq.anchor-li:hover:before {
    background: none;
    color: #4495CC;
}
.bag-type-wrap ul li a {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 15px 20px;
  text-decoration: none;
  color: #333333;
  gap: 15px;
  opacity: 1
}

/* バッジ */
.item-badge {
  position: absolute;
  top: -12px;
  left: 0;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  color: #FFFFFF;
  white-space: nowrap;
  z-index: 1;
}

.badge-red {
  background: #FF6B88;
}

.badge-orange {
  background: #FFB84D;
}

.badge-green {
  background: #4CAF50;
}

.badge-blue {
  background: #5BA8D9;
}

/* アイコンラッパー */
.item-icon-wrapper {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
}

.item-icon-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* タイトル */
.bag-type-wrap h3 {
  font-size: 16px;
  margin: 0;
  text-align: left;
  line-height: 1.4;
  font-weight: bold;
  flex: 1;
}

/* カラーボックス */
.color-box {
  width: 50px;
  height: 50px;
  border-radius: 30px;
  border: 2px solid #EBEBEB;
  flex-shrink: 0;
  margin: 0;
}


/* スマホ（667px以下） */
@media only screen and (max-width: 667px) {
  .isSP {
    display: block;
  }

  .isPC {
    display: none;
  }

  .sp-only {
    display: inline;
  }

  /* タブメニュー SP版 */
  .bag-type-content .bag-type-menu ul {
    flex-wrap: wrap;
    padding: 0;
    gap: 8px;
    border-bottom: none;
  }

  .bag-type-content .bag-type-menu li {
    width: calc(33.333% - 6px);
    flex: none;
    font-size: 13px;
    padding: 0px 5px;
    margin: 0;
    border-radius: 8px 8px 0 0;
    border: 2px solid #CCCCCC;
    border-bottom: 2px solid #4495CC;
    position: relative;
    box-sizing: border-box;
        height: 47px;

  }

  .bag-type-content .bag-type-menu li.is-select {
    background: #E4FAFA;
    color: #333333;
    border: 2px solid #4495CC;
    border-bottom: 2px solid #4495CC;
    z-index: 1;
    padding-bottom: 0px;
  }
.bag-type-content .bag-type-menu li:before {
    content: '';
    position: absolute;
    bottom: -2px;
    /* left: -2px; */
    right: -5px;
    height: 2px;
    background: #4495CC;
    z-index: 2;
    padding-bottom: 2px;
    width: 112%;
}
    .bag-type-content .bag-type-menu li.is-select::after {
        content: '';
        position: absolute;
        bottom: -3px;
        /* left: -2px; */
        right: 0px;
        height: 4px;
        background: #E4FAFA;
        z-index: 2;
        padding-bottom: 4px;
        width: 100%;
    }

  /* セクションタイトル */
  .section-title {
    font-size: 16px;
    font-weight: bold;
    margin: 15px 0 10px 0;
    padding-left: 0;
  }

  .color-description {
    display: none;
  }

  /* アイテムリスト SP版 */
  .bag-type-wrap ul {
    gap: 10px;
  }

  .bag-type-wrap ul li {
    width: calc(50% - 5px) !important;
    border-radius: 10px;
    padding: 0;
    min-height: auto;
  }

  .bag-type-wrap ul li a {
    padding: 12px 10px;
    flex-direction: column;
    gap: 0;
  }

  /* バッジ SP版 */
  .item-badge {
    top: -11px;
    right: auto;
    left: auto;
    padding: 4px 12px;
    font-size: 11px;
  }

  /* アイコン SP版 */
  .item-icon-wrapper {
    width: 50px;
    height: 50px;
    margin: 8px 0 8px 0;
  }

  /* タイトル SP版 */
  .bag-type-wrap h3 {
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
  }

  /* カラーボックス SP版 */
  .color-box {
    width: 50px;
    height: 50px;
    margin: 0 0 8px 0;
  }
  .bag-type-wrap ul li.sq:before,.bag-type-wrap ul li.sq.anchor-li:before {
      content: none
  }


}

/* タブレット（668px〜1024px） */
@media only screen and (min-width: 668px) and (max-width: 1024px) {
  .bag-type-wrap ul li {
    width: calc(33.333% - 10px);
  }

}
.bag-type-wrap ul li.sq.text-li{
    width: calc(33% - 7px);
}
.bag-type-wrap ul li.sq.text-li a {
    display: block;
    gap: 8px;
  }
  
  .bag-type-wrap ul li.sq.text-li .header-group {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
  }
  
  .bag-type-wrap ul li.sq.text-li .item-icon-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
  }
  
  .bag-type-wrap ul li.sq.text-li h3 {
    flex: 1;
    margin: 0;
  }
  .bag-type-wrap ul li.sq.text-li:hover h3 {
    color: #4495CC;
  }
  .bag-type-wrap ul li.sq.text-li .arrow:before {
    content: '\f061';
    font-size: 12px;
    background: #000;
    color: #fff;
    border-radius: 30px;
    padding: 2px 5px;
    line-height: 1.5;
    font-weight: bold;
    font-family: "Font Awesome 5 Free";
    font-display: swap;
    position: absolute;
    font-weight: 900;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}
.bag-type-wrap ul li.sq.text-li:hover h3,.bag-type-wrap ul li:hover h3 {
    color: #4495CC;
  }
  .bag-type-wrap ul li.sq.text-li:hover .arrow:before {
    background: #4495CC;
  }
  
  .bag-type-wrap ul li.sq.text-li .description {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
  }
  .bag-type-wrap ul li.sq:hover:before {
    background: #4495CC;
  }
  
  .bag-type-wrap ul li.sq.text-li:before {
    display: none;
  }
@media screen and (max-width:680px) {
    .bag-type-wrap ul li.sq.text-li a {
        display: flex;
    }
    .bag-type-wrap ul li.sq.text-li .arrow:before {
        content: none;
    }
    .bag-type-wrap ul li.sq.text-li .description{
        font-size: 11px;
    }
    .bag-type-wrap ul li.sq.text-li .header-group {
        flex-direction: column;
    }
    .bag-type-wrap ul li.sq.text-li .item-icon-wrapper {
        margin: 0;
    }
}