@charset "UTF-8";

/* ========================共通css======================== */
body {
  /* background-color: #292929; */
  font-size: 1.6rem;
}

.inner {
  width: 118rem;
  margin: 0 auto;
}

.flex_wrap {
  display: flex;
}

.semibold {
  font-weight: 600;
}

/* ========================メインタイトル======================== */
.main_title {
  margin: 6rem 0 4.5rem;
  color: #ffffff;
  font-size: 4rem;
}

/* ========================商品セクション======================== */
.item_section {
  /* paddingで余白設定 */
  padding: 5.5rem 4.25rem;
  background-color: #ffffff;
  margin-bottom: 3.5rem;
  border-radius: 0.3rem;
}

/* 左右に２分割 */
.item_left {
  width: 50%;
}

.item_right {
  width: 50%;
  margin-left: 3.5rem;
}

/* -------左------ */
/* サムネイルのエリア */
.thumbnail_container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  /* justify-content: space-between; */
  width: 50.5rem;
  margin: 0 auto;
}

.thumbnail_img {
  width: 8.5rem;
  height: 8.5rem;
}

/* 選択画像を拡大表示するエリア */
.mainvisual {
  width: 50.5rem;
  height: 50.5rem;
  margin: 0 auto;
  margin-bottom: 1.5rem;
}

.mainvisual img {
  /* object-fit: contain; */
}

/* 標準時のサムネイルのスタイル */
.thumbnail_img {
  border: 0.1rem solid transparent;
}

/* サムネイル選択時のスタイル */
.active_img {
  border: 0.3rem solid #c20504;
}

/* ------右------ */
/* アイテムセクションの商品名 */
.item_name {
  margin-bottom: 1.5rem;
}

.item_text {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 0.1rem solid #1a1a1a;
}

/* ”価格”というラベル */
.price_label {
  margin-bottom: 1.5rem;
}

/* 単価 */
.unit_price {
  margin-bottom: 0.5rem;
}

/* 注意書き */
.warning {
  margin-bottom: 2.9rem;
  color: #6e6e6e;
}

/* 商品選択ボタンエリア */
.btn_container_wrap {
  width: 55.5rem;
  background-color: #f5f5f5;
  padding: 1.8rem;
  border-radius: 0.3rem;
}

/* itemセクションのサイズタイトル */
.item_size_title {
  margin-bottom: 1.5rem;
}

.btn_container_inner {
  flex-wrap: wrap;
  gap: 2rem;
}

/* ボタンのスタイル */
.change_btn {
  width: 23.9rem;
  height: 6.1rem;
  background-color: #ffffff;
  justify-content: center;
  align-items: center;
  border-radius: 0.3rem;
  border: solid 0.1rem #707070;
}

/* 切り替えテキストのスタイル */
.text_change_container span {
  color: #c20504;
}

/* ボタン選択時css */
.selected_change_btn {
  background-color: #000000;
  color: #ffffff;
}

/* ------一覧に戻るリンク------ */
.archive_link {
  color: #ffffff;
  font-size: 1.8rem;
  width: 13.2rem;
  height: 4.2rem;
  margin: 0 auto 9.3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.3rem;
}

.archive_link:hover {
  background-color: #707070;
  transition: 0.5s;
}

/* ========================関連おすすめ商品セクション======================== */
.recommend_title {
  color: #ffffff;
  margin-bottom: 2rem;
}

.recommend_section {
  color: #ffffff;
  margin-bottom: 10rem;
}

.recommend_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
}

.recommend_text_container_wrap {
  /* border-top: 0.1rem solid #ffffff; */
  /* padding: 1rem 7.9rem 1rem 0; */
  display: flex;
  flex-direction: column;
}

.recommend_text_container_wrap:last-child {
  /* border-bottom: 0.1rem solid #ffffff; */
}

.recommend_text_container_wrap:hover {
  background-color: #707070;
  transition: 0.5s;
}

.recommend_img {
  width: 27.5rem;
  height: auto;
  aspect-ratio: 1;
}

.recommend_img img {
  width: 100%;
}

.recommend_text_container_inner {
  /* margin-left: 2.1rem; */
}

/* おすすめセクションの商品名 */
.recommend_name {
  color: #ffffff;
  /* margin-bottom: 1rem; */
  padding: 0.5rem 0;
}

/* ========================サイズ情報セクション======================== */
.size_section {
  background-color: #ffffff;
  padding: 5.5rem 4.25rem;
  margin-bottom: 3.5rem;
  border-radius: 0.3rem;
}

/* sizeセクションのサイズタイトル */
.size_size_title {
  margin-bottom: 1.5rem;
}

/* 各サイズ表最上段のスタイル */
.header_row {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 1.6rem 3rem;
}

/* 各２段目以降の横一列ひとかたまり */
.after2_row {
  padding: 1.3rem 3rem;
  border-bottom: 0.1rem solid #1a1a1a;
}

/* ------各段の左からｎ番目------ */
.row_data1 {
  width: 13.7rem;
}

.row_data2 {
  width: 21.3rem;
}

.row_data3 {
  width: 32.9rem;
}

.row_data4 {
  width: 54.55rem;
}

/* 使用イメージテキスト */
.image_text_container {
  border-bottom: 0.1rem solid #1a1a1a;
  margin-bottom: 3rem;
}

/* 最下段のみmargin-bottom削除 */
.image_text_container:last-child {
  margin-bottom: 0;
}

.image_text_container_inner {
  margin: 1.3rem 3rem;
}

/* ========================sp版メディアクエリ======================== */
@media screen and (max-width: 699.98px) {
  /* ========================共通css======================== */
  .inner {
    width: 35.5rem;
    margin: 0 auto;
  }

  .main_title {
    margin: 3rem 0 1rem;
    font-size: 3rem;
  }

  /* ========================商品セクション======================== */
  .item_section {
    display: block;
    width: 35.5rem;
    padding: 1.5rem 1.25rem;
    margin-bottom: 0.8rem;
  }

  /* ------左------ */
  /* 拡大画像表示エリア */
  .mainvisual {
    width: 33rem;
    height: 33rem;
    margin-bottom: 1rem;
  }

  .thumbnail_container {
    width: 33rem;
    gap: 1.2rem;
    margin-bottom: 2rem;
  }

  .thumbnail_img {
    width: 5.6rem;
    height: 5.7rem;
  }

  /* ------右------ */
  /* テキスト+サイズ選択ボタンエリア全体 */
  .item_right {
    width: 33rem;
    margin: 0 auto;
  }

  .item_name {
    font-size: 1.8rem;
  }

  .item_text {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .price_label {
    /* SP版は価格ラベル非表示 */
    display: none;
  }

  .unit_price {
    font-size: 1.8rem;
  }

  .warning {
    margin-bottom: 1.5rem;
  }

  .btn_container_wrap {
    padding: 1rem;
    width: 33rem;
    height: 29.9rem;
  }

  .btn_container_inner {
    gap: 1rem;
  }

  .change_btn {
    width: 15rem;
    height: 5rem;
    font-size: 1.8rem;
  }

  .item_size_title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  /* ========================関連おすすめ商品セクション======================== */
  .recommend_section {
    width: 35.5rem;
    margin-bottom: 4rem;
  }

  .recommend_title {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
  }

  .recommend_name {
    font-size: 2rem;
  }

  .recommend_img {
    width: 35.5rem;
    height: 20rem;
    margin-bottom: 1rem;
  }

  .recommend_img img {
    width: 35.5rem;
  }

  .recommend_text_container_wrap {
    padding: 1.5rem 0;
    display: block;
  }

  .recommend_text_container_inner {
    margin-left: 0;
    /* 本文３行目以降を非表示 */
    overflow: hidden;
    height: 8.7rem;
  }

  /* ========================サイズ情報セクション======================== */
  .size_section {
    width: 35.5rem;
    padding: 1.5rem 1.3rem;
    margin-bottom: 2.8rem;
  }

  /* sizeセクションのサイズタイトル */
  .size_size_title {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
  }

  .row_data1,
  .row_data2,
  .row_data3,
  .row_data4 {
    font-size: 1.6rem;
  }

  .row_data4 {
    width: 20.55rem;
  }

  .image_text_container_inner {
    margin: 1rem 0 1.6rem;
  }

  /* 最下段のみmargin-bottom指定 */
  .image_text_container:last-child {
    margin-bottom: 5.5rem;
  }

  .image_title {
    margin-bottom: 1rem;
  }

  /* ---overflowの設定--- */
  .overflow_wrap {
    margin-bottom: 1.5rem;
    overflow-x: scroll;
    white-space: nowrap;
    overflow: auto;
    scrollbar-width: 1.6rem;
  }

  .overflow_inner {
    width: 75.5rem;
    margin-bottom: 1rem;
  }

  /* ------スクロールバーのスタイル------ */
  /* 全体 */
  .overflow_wrap::-webkit-scrollbar {
    width: 1.6rem;
  }

  /* レール */
  .overflow_wrap::-webkit-scrollbar-track {
    background-color: #d0d0d0;
    border-radius: 0.8rem;
  }

  /* つまみ */
  .overflow_wrap::-webkit-scrollbar-thumb {
    background-color: #1a1a1a;
    border-radius: 0.8rem;
  }
}
