/* 共通スタイル */

.isSP {
  display: none;
}

.isPC {
  display: block;
}

.sp-only {
  display: none;
}

/* タブメニュー PC版 */
.bag-type-menu ul {
  display: flex;
  flex-wrap: nowrap;
  margin: 0 0 20px 0;
  padding: 0;
  list-style: none;
  gap: 10px;
  border-bottom: 3px solid #FC9829; /* 境界線をis-selectカラーへ変更 */
  position: relative;
}

.bag-type-menu li {
  background: #FFEFD6; /* 非選択時の背景色: 薄いオレンジ */
  color: #333333;
  font-weight: bold;
  text-align: center;
  flex: 1;
  padding: 0px 15px;
  margin: 0 !important;
  font-size: 0.85rem;
  border: 2px solid transparent; /* 変更: 通常時の枠線を透明に */
  border-bottom: 0px;
  border-radius: 12px 12px 0 0; /* PC版: 基本の角丸 */
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
  display: block;
  height:70px
}

/* PC版：最初のタブの角丸をすべてなしに */
.bag-type-menu ul li:first-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* PC版：最後のタブの角丸をすべてなしに */
.bag-type-menu ul li:last-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.bag-type-menu li:hover {
  border-color: #FC9829; /* ホバー時枠線色変更 */
  color: #FC9829; /* ホバー時文字色変更 */
  background-color: #FFEFD6 /* ホバー時背景色変更 */
}

.bag-type-menu li.is-select {
  background: #FC9829; /* 選択時背景色変更 */
  color: #fff; /* 選択時文字色変更 */
  border: 2px solid #FC9829; /* 選択時枠線色変更 */
  border-bottom: 2px solid #FC9829; /* 背景色に合わせて調整 */
  z-index: 1;
  margin-bottom: -4px;
}
.bag-type-menu li.is-select:after {
  content: '';
  position: absolute;
  bottom: -4px;
  /* left: -2px; */
  right: 0px;
  height: 5px;
  background: #FC9829; /* 選択時下の覆い色変更 */
  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: #FC9829; /* ホバー時枠線色変更 */
  color: #FC9829; /* ホバー時文字色変更 */
  background-color: #FFEFD6; /* ホバー時背景色変更 */
}
.bag-type-wrap ul li.sq:hover:before {
  background: #FC9829; /* ホバー時背景色変更 */
}
.bag-type-wrap ul li.sq.anchor-li:hover:before {
  background: none;
  color: #FC9829; /* ホバー時文字色変更 */
}
.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-menu ul {
    flex-wrap: wrap;
    padding: 0;
    gap: 8px;
    border-bottom: none;
  }
    .bag-type-menu ul {
        justify-content: space-between;
        overflow: hidden;
        width: 100%;
    }
  .bag-type-menu li {
    width: calc(33.333% - 6px) !important;
    flex: none !important;
    font-size: 13px;
    padding: 0px 5px !important;
    margin: 0;
    border-radius: 8px 8px 0 0; /* SP版: 基本の角丸 */
    border: 2px solid transparent; /* 変更: 通常時の枠線を透明に */
    border-bottom: 2px solid #FC9829; /* 選択色に合わせて調整 */
    position: relative;
    box-sizing: border-box;
    height: 47px;
    background: #FFEFD6; /* 非選択時の背景色: 薄いオレンジ */
      display: flex;
  justify-content: center;
  align-items: center;
  }

  /* SP版：最初のタブの角丸をすべてなしに */
  .bag-type-menu ul li:first-child {
      border-top-left-radius: 0 !important;
      border-bottom-left-radius: 0 !important;
  }
  
  /* SP版：最後のタブの角丸をすべてなしに */
  .bag-type-menu ul li:last-child {
      border-top-right-radius: 0 !important;
      border-bottom-right-radius: 0 !important;
  }
  
  .bag-type-menu li.is-select {
    background: #FC9829; /* 選択時背景色変更 */
    color: #fff; /* 選択時文字色変更 */
    border: 2px solid #FC9829; /* 選択時枠線色変更 */
    border-bottom: 2px solid #FC9829; /* 選択時下線色変更 */
    z-index: 1;
    padding-bottom: 0px;
  }
.bag-type-menu li:before {
    content: '';
    position: absolute;
    bottom: -2px;
    /* left: -2px; */
    right: -5px;
    height: 2px;
    background: #FC9829; /* 非選択時下の線色変更 */
    z-index: 2;
    padding-bottom: 2px;
    width: 115%;
}
    .bag-type-menu li.is-select::after {
        content: '';
        position: absolute;
        bottom: -3px;
        /* left: -2px; */
        right: 0px;
        height: 4px;
        background: #FC9829; /* 選択時下の覆い色変更 */
        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: #FC9829; /* ホバー時文字色変更 */
}
.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: #FC9829; /* ホバー時文字色変更 */
}
.bag-type-wrap ul li.sq.text-li:hover .arrow:before {
  background: #FC9829; /* ホバー時背景色変更 */
}

.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: #FC9829; /* ホバー時背景色変更 */
}

.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;
  }
}