@import url(common.css);

#content .first_block {
  background-image: url(../parts/soc/33784940_m.jpg);
  background-position: center;
}
/*------------------------------

タブ全体

------------------------------*/
.soc-tabs {
  margin: 2em auto 10em;
}

/* タブ見出し部分（2つのボタン） */
.soc-tabs-nav {
  border-radius: 999px;
  background-color: var(--main_green);
  padding: 0.3em;
  margin: 1em auto 4em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

/* 各タブボタン */
.soc-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 1em;
  font-size: clamp(18px, 1.8vw, 20px);
  cursor: pointer;
  border-radius: 999px;
  color: #666;
  line-height: 1.4;
  white-space: nowrap;
}

.soc-tab.is-active {
  background-color: #fff;
  box-shadow: 0 0 0 1px #ddd;
  font-weight: 700;
  color: #333;
}

/* タブの中身の表示制御 */
.soc_panel {
  display: none;
}

.soc_panel.is-active {
  display: block;
}

/* ------------------------------

コンセント交換
（.soc_change_section）

------------------------------ */
.soc_change_section .price_card,
.soc_new_section .price_card {
  margin: 1em auto 2.5em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2em;
  background-color: #fff;
}

.soc_change_section .price_card img,
.soc_new_section .price_card img {
  display: block;
  width: min(100%, 400px);
  height: auto;
}
.large {
  font-size: 55px;
  padding-right: 0.3em;
}

.soc_change_section ul,
.soc_new_section ul {
  max-width: 820px;
  margin: auto;
}
.soc_change_section ul li,
.soc_new_section ul li {
  font-size: 14px;
  color: var(--aside_gray);
}

/* ＋マーク
------------------------------ */
.plus_shapes {
  vertical-align: middle;
  color: #333;
  line-height: 1;
  width: 2.5em;
  height: 0.25em;
  background: currentColor;
  border-radius: 0.1em;
  position: relative;
  margin: 2.5em auto;
}

.plus_shapes::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  transform: rotate(90deg);
}

/* ------------------------------

コンセント代
（.soc-wap）
アコーディオンにするかどうするか悩み中

------------------------------ */
.option_accordion {
  background-color: #f0f0f0;
}
.option_accordion summary {
  background-color: #d6d8d6;
}

/* 部品代一覧
------------------------------ */
.soc_parent {
  width: calc(100% - 0px);
  max-width: 820px;
  margin: 1em auto;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* 各コンセントカード
------------------------------ */
.soc_parent .soc_item {
  border: solid 1px var(--border_gray);
  padding: 1em;
  background-color: #fff;
}

.soc_parent .soc_item p {
  margin-top: unset;
  text-align: center;
  font-size: 17px;
  line-height: 1.2;
}
/* 商品画像
------------------------------ */
.img_price_block img {
  display: block;
  width: min(100%, 150px);
  height: auto;
  margin: 0.5em auto;
}
/* 金額
------------------------------ */
.soc_item .price-display .large {
  font-size: clamp(32px, 1.8vw, 35px);
}
.soc_item .price-display .small {
  font-size: clamp(16px, 1.8vw, 18px);
  text-align: center;
}
.soc-wap ul li {
  font-size: 14px;
}

/* ------------------------------


768px


------------------------------ */
@media screen and (max-width: 768px) {
  .br_off {
    display: none;
  }
  .soc-tabs {
    width: calc(100% - 20px);
    max-width: 820px;
    box-sizing: border-box;
  }
  .soc-tab {
    padding: 0.5em;
    line-height: 1.2;
  }

  .soc_change_section .price_card,
  .soc_new_section .price_card {
    gap: 1em;
  }
  .large {
    font-size: 43px;
  }

  .soc_change_section .price_card img,
  .soc_new_section .price_card img {
    width: min(100%, 180px);
  }
  .price_block {
    text-align: center;
    padding-top: unset;
  }
  /* アコーディオンの中身のカードをgrid→flexで縦並び
  ------------------------------ */
  .aco_item_block {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
  }
  /* アコーディオンの中の金額
  ------------------------------ */
  .aco_item_block .price_block {
    text-align: center;
    padding-top: unset;
  }

  .soc_parent {
    width: calc(100% - 20px);
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.5em;
  }
  .soc_parent .soc_item p {
    text-align: left;
    font-size: 16px;
  }
  .img_price_block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5em;
    margin-top: 0.5em;
  }
  .img_price_block img {
    width: min(100%, 100px);
    margin: unset;
  }
  .soc-wap ul {
    width: calc(100% - 20px);
    padding: 0 0 2em;
  }
  .soc-wap ul li {
    text-indent: -1em;
    padding-left: 1em;
  }
}
