.icon-links {
  display: flex;
  flex-direction: column;
  gap: 10px 0;
  &.icon-links-top {
    padding: 0 15px;
  }
  .icon-link {
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
    color: #6f788b;
    display: flex;
    align-items: center;
    text-decoration: none;
    &::after {
      content: "";
      width: 5px;
      height: 9px;
      display: inline-block;
      background: url(/res/s/img/item/icn_list_arrowright.svg) no-repeat;
      background-size: contain;
      margin-left: 7px;
    }
  }
  .icon-link-image {
    width: 24px;
    display: flex;
    justify-content: center;
  }
}

@media screen and (min-width: 750px) {
  .icon-links {
    &.icon-links-top {
      padding: 0;
    }
  }
}

.further-info {
  margin-top: 30px;
}

.further-info-tab {
  ul {
    letter-spacing: -0.4em;
    text-align: center;
    li {
      width: 50%;
      font-size: 14px;
      color: #6f788b;
      display: inline-block;
      letter-spacing: normal;
      padding: 0 0 10px;
      position: relative;
      cursor: pointer;
      &::before {
        content: "";
        width: 100%;
        height: 1px;
        display: block;
        background-color: #6f788b;
        position: absolute;
        bottom: 0;
        left: 0;
      }
      &.active {
        font-weight: bold;
        color: #4a4a4a;
        &::before {
          height: 2px;
          background-color: #4a4a4a;
        }
      }
    }
  }
}

/* タブ名の見出し（SEO用に h2。見た目は li の文字のまま＝h2 の既定の大きさ・余白を打ち消す） */
.further-info-tab-title {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.further-info-contents {
  display: none;
  .further-info-contents-inner {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  p {
    line-height: 1.7;
  }
}

/* 備考は見出しでない div でも使うので太字を明示する */
.further-info-title {
  font-size: 13px;
  font-weight: bold;
  background: #ececec;
  padding: 6px 15px;
  margin: 0 calc(50% - 50vw) 7px;
}

.further-info-text {
  line-height: 1.7;
}

.further-info-code-code {
  font-size: 13px;
  background: url(/res/s/img/item/icn_detail_partnum.svg) no-repeat left center;
  padding: 0 0 0 22px !important;
}
.further-info-code-text {
  font-size: 10px;
}

.item-tag-list-wrap {
  display: none;
  &:has(.item-tag) {
    display: flex;
  }
}

.item-tag-list-title {
  font-size: 12px !important;
  font-weight: normal;
}

.item-tag-list {
  width: calc(100% - 50px);
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  a:hover {
    text-decoration: none;
  }
}

.item-tag {
  display: flex;
  justify-content: space-between;
  gap: 0 5px;
  &::after {
    content: "/";
  }

  &:last-child:after {
    content: none;
  }
  a {
    color: #4682b4;
    text-decoration: underline;
  }
}

.further-info-category {
  display: flex;
}
.further-info-category-title {
  font-size: 12px !important;
  font-weight: normal;
}
.further-info-category-links > div {
  margin-bottom: 4px;
}

.further-info-magazine ul li {
  margin: 0 15px;
  line-height: 1.7;
}

.further-info-size {
  padding: 0 15px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
}

.size-table {
  width: max-content;
  display: flex;
  padding-bottom: 1px;
  th,
  td {
    min-width: 80px;
    border: 1px solid #bbb;
    text-align: center;
    padding: 5px 8px;
  }
  th {
    font-weight: bold;
    background: #ececec;
    border-bottom: none !important;
  }
  td {
    border-top: none !important;
  }
}

.further-info-note {
  margin: 0 0 25px;
}

.further-info-measure {
  margin: 0 0 25px;
  a {
    text-decoration: none;
    font-size: 13px;
    display: block;
    border-top: 1px solid #d8d8d8;
    border-bottom: 1px solid #d8d8d8;
    background: url(/res/s/img/item/icn_detail_torso.svg) no-repeat 10px center;
    padding: 14px 35px;
    position: relative;
    &::after {
      content: "";
      width: 7px;
      height: 12px;
      display: block;
      background: url(/res/s/img/item/icn_list_arrowright.svg) no-repeat;
      background-size: contain;
      position: absolute;
      top: 50%;
      right: 15px;
      -webkit-transform: translateY(-50%);
      transform: translateY(-50%);
    }
  }
}

.sustainable-sku {
  text-decoration: underline;
}

.sustainable-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin: 5px 10px 15px;
  img {
    width: 60px;
  }
}

.sustainable-icon-text {
  text-decoration: underline;
  margin: 10px 0;
}

.washing-sku-group {
  margin-bottom: 10px;
}
.washing-sku {
  text-decoration: underline;
  margin-bottom: 5px;
}
.washing-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  img {
    width: 30px !important;
    opacity: 0.7;
  }
}

/* PC */
@media screen and (min-width: 750px) {
  .further-info-contents {
    .further-info-contents-inner {
      padding: 20px 0;
    }
  }

  .further-info-title {
    padding: 0;
  }

  .further-info-size {
    padding: 0;
  }

  .size-table {
    width: 100%;
    tbody,
    tr {
      width: 100%;
    }
    th,
    td {
      width: 200px;
      min-width: auto;
    }
    th {
      white-space: nowrap;
      padding: 5px 8px;
    }
    td {
      padding: 10px 8px;
    }
  }

  .further-info-title {
    background: transparent;
    margin: 0 0 7px;
  }
}

/* 商品説明・サイズ／詳細の開閉（もっと見る／閉じる） */
/* ボタンは2タブで1つ。表示中のタブの中身がはみ出しているときだけ
   JS が .further-info に .is-collapsible を付ける（＝中身が短ければボタンは出ない）。
   開いた状態は .is-expanded。ボタン自体も JS が生成するので HTML 側は触らない。 */
.further-info {
  /* 閉じているときに見える中身の高さ */
  --further-info-clamp: 200px;
  /* トグルボタンの高さ（この分を padding-bottom で確保する） */
  --further-info-toggle-height: 44px;
  /* 下端フェードの高さ */
  --further-info-fade-height: 55px;
}

.further-info.is-collapsible {
  padding-bottom: var(--further-info-toggle-height);
  position: relative;
}

/* 閉じているタブの中身を切り詰めて、下端を白へフェードさせる */
.further-info.is-collapsible:not(.is-expanded) .further-info-contents {
  box-sizing: border-box;
  max-height: var(--further-info-clamp);
  overflow: hidden;
  position: relative;
  &::after {
    content: "";
    height: var(--further-info-fade-height);
    display: block;
    background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), #fff);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
  }
}

.further-info-toggle {
  width: 100%;
  height: var(--further-info-toggle-height, 44px);
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  color: #4a4a4a;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  /* 既定は非表示。はみ出していなければボタンを出さない */
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0 8px;
  cursor: pointer;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  -webkit-appearance: none;
  appearance: none;
}

.further-info.is-collapsible > .further-info-toggle {
  display: flex;
}

/* ラベルは開閉で入れ替える */
.further-info-toggle-close {
  display: none;
}
.further-info.is-expanded > .further-info-toggle {
  .further-info-toggle-open {
    display: none;
  }
  .further-info-toggle-close {
    display: inline;
  }
}

/* 矢印アイコン（画像は上向き 14x6px。閉じているときだけ反転して下向きにする） */
/* SVG なので画面の解像度に関係なく輪郭が出る（旧 further-info-arrow.png は1x=滲む） */
.further-info-toggle-icon {
  width: 14px;
  height: 6px;
  display: block;
  background: url(/res/p/img/item/further-info-arrow.svg) no-repeat center
    center;
  background-size: contain;
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
  -webkit-transition: -webkit-transform 0.2s;
  transition: transform 0.2s;
}
.further-info.is-expanded > .further-info-toggle .further-info-toggle-icon {
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
}

/* PC */
@media screen and (min-width: 750px) {
  .further-info {
    --further-info-clamp: 300px;
  }
}
