@import url(common.css);

/* /////////////////////////////////// */

/* 早見表 */

/* /////////////////////////////////// */
.check_table {
  margin: 5em auto;
  margin: 20px 0;
  margin-block: var(--section-gap-y-loose);
}
.check_table_container {
  max-width: 820px;
  margin: 0 auto;
  box-sizing: border-box;
  background-color: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 3em 2em;
}

/* 前提条件 */
.check_table .assumption {
  margin: 2em auto;
}

/* アイコンとカラーの説明 */
.check_table .legend {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.check_table .legend span {
  display: inline-block;
  padding: 0.5em;
  border-radius: 999px;
  border: 1px solid var(--border_gray);
}
/* 安心 */
.check_table .legend .ok {
  background: #e9f7ef;
  border-color: #bce3c7;
}
/* 注意 */
.check_table .legend .warn {
  background: #fff8e6;
  border-color: #ffe0a6;
}
/* 厳しい */
.check_table .legend .ng {
  background: #fdeaea;
  border-color: #f6bcbc;
}

/* 早見表テーブル */
.check_table .table-wrap {
  padding: 3em 0;
}
.check_table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.check_table th,
.check_table td {
  padding: 0.7rem 0.6rem;
  text-align: center;
  border: 1px solid var(--border_gray);
}

.check_table td.ok {
  background: #f3fbf6;
}

.check_table td.warn {
  background: #fffaf0;
}

.check_table td.ng {
  background: #fff5f5;
}

.check_table li {
  margin: 0.25rem 0;
  text-indent: -1em;
  padding-left: 1em;
  font-size: 15px;
  color: var(--aside_gray);
}

/* /////////////////////////////////// */

/* 充電設備本体＋標準工事費section */

/* /////////////////////////////////// */

#tab_section h2 {
  padding: 1.2em 1.5em;
  width: 99%;
  margin: 0 1em 10px 5px;
  position: relative;
}
#tab_section h2::before {
  background-color: #669933;
  border-radius: 5px;
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 80%;
  text-align: center;
}
#tab_section h2::after {
  background-color: #cbffd3;
  border-radius: 5px;
  content: "";
  position: absolute;
  top: 5px;
  left: 18px;
  width: 8px;
  height: 80%;
}

/* タブ部分 */
.item-tab {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  margin: 1em auto;
  box-sizing: border-box;
}

.item-tab > label {
  flex: 1 1;
  order: -1;
  min-width: 70px;
  padding: 0.7em 1em 0.5em;
  background-color: #f2f2f2;
  color: #999;
  font-weight: 600;
  font-size: clamp(25px, 1.8vw, 30px);
  text-align: center;
  cursor: pointer;
}
.item-tab > label span {
  font-size: 15px;
  font-weight: 400;
}
.item-tab > label p {
  font-weight: 400;
  font-size: clamp(15px, 1.8vw, 16px);
  padding: 0.3em;
  margin-top: 0.3em;
}

.item-tab > label:hover {
  opacity: unset;
}

.item-tab input {
  display: none;
}
.item-tab input p {
  display: none;
}

.item-tab > div {
  display: none;
  width: 100%;
  background-color: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.item-tab label:has(:checked) {
  border-bottom: 4px solid #13990e;
  background-color: #018b18;
  color: #fff;
}

.item-tab label:has(:checked) + div {
  display: block;
}

/* 各機器コンテナ */
.price-group-container {
  border-bottom: 1px solid var(--border_gray);
  padding-bottom: 1.5em;
}
/* 各機器それぞれ */
.price-group {
  padding: 1.5em 1em 0;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
/* 左側 */
.group-left {
  flex: 1;
}
/* 商品サンプル画像 */
.group-left img {
  display: block;
  width: min(100%, 350px);
  height: auto;
  margin: 0 auto 1em;
}

.group-left p {
  font-size: clamp(18px, 1.8vw, 20px);
  font-weight: bold;
  text-align: center;
}

/* 右側 */
.group-right {
  flex: 1;
}
.group-right h3 {
  font-size: clamp(18px, 1.8vw, 20px);
  font-weight: 400;
}
.price_block {
  padding: 0 1em 1em 0;
}

.price-display {
  text-align: right;
}

.large {
  font-size: clamp(48px, 1.8vw, 50px);
  padding-right: 0.1em;
  font-weight: 600;
}

.tag_wap {
  margin: 1em auto;
}

.fff_container li {
  list-style-type: disc;
  list-style-position: inside;
  font-size: 15px;
  color: var(--aside_gray);
}

/* /////////////////////////////////// */

/* この商品を詳しく見るアコーディオン */

/* /////////////////////////////////// */
.description_accordion {
  margin: 0 auto;
}

.description_accordion summary {
  width: calc(100% - 80px);
  max-width: 820px;
  margin: 0 auto;
  box-sizing: border-box;
  cursor: pointer;
  color: #0a7f42;
  margin: 0.5em auto;
}
/* アコーディオンの中身 */
.card-container {
  width: calc(100% - 40px);
  margin: 0 auto;
  padding: 0 0 4em;
  box-sizing: border-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  -webkit-align-items: stretch;
  align-items: stretch;
  gap: 1.5em;
}
.description_accordion .card {
  padding: 1.5em 1em;
  border: unset;
  box-shadow: unset;
}
.description_accordion .card h3 {
  padding-bottom: 1em;
}
.card_wap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: left;
  gap: 0.2em 0.5em;
}
.description_accordion .card_wap p {
  border: 1px solid #c5c5c5;
  padding: 0.5em 0.7em;
  margin-bottom: 0.5em;
  font-size: 14px;
}

/* /////////////////////////////////// */

/* description_accordion内のテーブル共通 */

/* /////////////////////////////////// */
.description_accordion table {
  margin: 0 auto 1em;
  width: 100%;
}
.description_accordion table tr td {
  border: 1px solid var(--border_gray);
  padding: 1em;
}

/* 左側 */
.description_accordion table tr td:nth-of-type(1) {
  background-color: #f7f7f7;
  font-weight: bold;
  text-align: center;
  width: 26%;
}
.item-detail p.pana_link {
  font-size: 15px;
  text-align: right;
}

/* コンセントタイプのアイコン */
.soc_type .tag_wap p {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6679a1;
  background: #dce8ff;
  border: 1px solid rgb(173, 194, 253);
  padding: 0.2em 0.6em;
  border-radius: 50px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .description_accordion table td {
    display: block;
    width: 100%;
  }
  .description_accordion table .last td:last-child {
    width: 100%;
  }
  .item-tab > label span {
    display: block;
  }
  .price-group {
    display: block;
  }
  .group-left p {
    text-align: left;
  }
  .description_accordion .card {
    padding: 1.5em 0;
  }
  .description_accordion table tr td:nth-of-type(1) {
    width: unset;
  }
}

/* /////////////////////////////////// */

/* .description_accordion内の2つ目のテーブル */
/* レスポンシブ対応済み */

/* /////////////////////////////////// */

#tab_section .table-wrap {
  margin: 3em auto;
}

#tab_section .table-wrap table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  margin: 2em auto;
}
#tab_section .table-wrap table th,
#tab_section .table-wrap table td {
  border: 1px solid var(--border_gray);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
  word-break: break-word;
}
#tab_section .table-wrap table thead th {
  background: #f7f7f7;
  font-weight: 700;
}

#tab_section .table-wrap table .price_block .large {
  font-size: 24px;
  font-weight: bold;
}

.col-type {
  width: 28%;
}
.col-power {
  width: 12%;
}
.col-model {
  width: 22%;
}
.col-cable {
  width: 15%;
}

.type-group {
  background: #fafafa;
  border-right: 1px solid #e5e7eb;
}
.type-group strong {
  display: block;
  font-weight: 700;
}
.type-group small {
  display: block;
  color: #6b7280;
  margin-top: 2px;
  font-size: 0.9em;
}

/* アクセシビリティ用スクリーンリーダー */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.table-wrap ul li {
  list-style-type: disc;
  list-style-position: inside;
  font-size: 15px;
  color: var(--aside_gray);
}

@media (max-width: 768px) {
  #tab_section .table-wrap table {
    border: 0;
  }
  #tab_section .table-wrap table thead {
    display: none;
  }
  #tab_section .table-wrap table,
  #tab_section .table-wrap table tbody,
  #tab_section .table-wrap table tr,
  #tab_section .table-wrap table td,
  #tab_section .table-wrap table th {
    display: block;
    width: 100%;
  }
  #tab_section .table-wrap table tbody tr {
    margin: 12px 0;
    overflow: hidden;
  }
  /* タイプ（rowspanセル）をカードの見出しに */
  #tab_section .table-wrap table .type-group {
    padding: 10px 12px;
  }
  #tab_section .table-wrap table td {
    border: 0;
    border-top: 1px dashed #eef2f7;
    padding: 10px 12px;
  }
  #tab_section .table-wrap table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 2px;
  }
  .ok {
    text-align: left;
  }
}

/* /////////////////////////////////// */

/* WK4322・WK4422おすすめオプションアコーディオン */

/* /////////////////////////////////// */

/* アコーディオン自体は「この商品を詳しく見る」と css共通 */

.type_aco_item {
  padding: 1em 1em 2em;
  max-width: 780px;
  width: calc(100% - 10px);
  margin: 0 auto;
  box-sizing: border-box;
}

.type_aco_item p {
  max-width: 700px;
  box-sizing: border-box;
}

.grid_container {
  width: calc(100% - 20px);
  max-width: 820px;
  margin: 2em auto 1em;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* PCでは2カラム */
  gap: 20px; /* カード間の余白 */
}

.type_aco_item .card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.type_aco_item .card h3 {
  padding-bottom: 0.5em;
  background-color: unset;
  color: #444;
  text-align: left;
}
.type_aco_item .card img {
  display: block;
  max-width: 200px;
  margin: auto;
}

.type_aco_item .card .price_block .large {
  font-size: 30px;
  font-weight: bold;
  margin-top: 10px;
  padding-right: 0.2em;
  color: #444;
}

.type_aco_item li {
  list-style-type: disc;
  list-style-position: inside;
}

.type_aco_item .aside {
  padding-top: 1em;
  font-size: 15px;
  font-weight: 400;
}
/* スマホ時は縦積み */
@media (max-width: 768px) {
  .grid_container {
    grid-template-columns: 1fr;
  }
  .grid_container,
  .type_aco_item p {
    width: calc(100% - 20px);
  }
}

/* ///////////////////////////////////

標準工事内容・よくある追加費用

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

基本はcommon.cssに記述

/////////////////////////////////// */

/* ///////////////////////////////////

施工事例

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

基本はcommon.cssに記述

/////////////////////////////////// */

@media screen and (max-width: 1024px) {
  #content #main #main_right {
    width: 100%;
    padding: unset;
    margin: 0 auto;
    box-shadow: unset;
  }
}
