@import url(common.css);

#content .first_block {
  background-image: url(/parts/tesla-wc/top-tesla-wc.png);
  background-position: center;
}

.c-category-intro {
  padding: 15px 20px 35px;
}

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


製品カード微調整


------------------------
*/
.c-card-body {
  padding-bottom: unset;
}
.c-card__text .c-card__title__block {
  margin: 0 auto;
}
article.p-product-card .price_wap {
  padding: 1.5em 0;
}

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


よくある追加費用


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

.k-option-section {
  padding: 6em 0 3em;
}

/* =========================================
   Project
========================================= */

:root {
  --border-green: #9daebd;
  --back-green: #f2f7fb;
}
.p-ev-sim-section {
  margin: 4em auto 2em;
  border-radius: 16px;
  /* box-shadow: 0 0 6px rgba(3, 69, 1, 1); */
  background: #fff;
}

.p-ev-sim__inner .c-heading--flex {
  background-color: #2c3e50;
  border-radius: 16px 16px 0 0;
  padding: 1em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.c-heading--flex .u-flex-col {
  flex: 2;
}

/* 見出しの上のサブコピー
----------------------- */
.c-sub-copy-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: left;
  gap: 0.5em;
}
.c-sub-copy-wrap p {
  font-size: clamp(11px, 3.52vw, 14px);
  line-height: 1.6;
  background-color: #fff6d0;
  padding: 0.3em 1em;
  border-radius: 30px;
}
/* 見出し
----------------------- */
.p-ev-sim__inner .c-heading__title {
  color: #fff;
  font-size: clamp(23px, 3.52vw, 30px);
  line-height: 1.4;
}
/* 住宅街のイラスト
----------------------- */
.p-ev-sim__inner .c-heading--flex img {
  display: block;
  width: clamp(150px, 35.6vw, 240px);
  height: auto;
}

.p-ev-sim__panel {
  padding: 2.5em 2em 2.5em;
}

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

結果をみる・リセットボタン

------------------------
*/
.p-ev-sim__action {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* =========================================
   Component
========================================= */
.c-heading__title {
  margin: 0 0 10px;
  font-size: 1.75rem;
  line-height: 1.4;
}

/* 使い方と条件を選択
----------------------- */
.c-select-heading {
  font-size: 1.35rem;
  font-weight: 700;
  padding-top: 0.5em;
}

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

シュミレーションボディ

----------------------- */
.c-simulation-body {
  padding: 3em 0 0;
}

.c-section-title img {
  display: block;
  width: clamp(14px, 35.6vw, 16px);
  height: auto;
}
/*シュミレーター内h3 */
.c-section-title h3 {
  font-size: 1.25rem;
}

.c-form-unit + .c-form-unit {
  margin-top: 20px;
}
.c-form-unit .u-flex--hold {
  padding-bottom: 0.5em;
}

.c-form-unit__label {
  display: inline-block;
  font-weight: 700;
}
/*
------------------------

契約アンペア（プルダウン式）

------------------------
*/
.c-select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border-green);
  border-radius: 6px;
  background: #fff;
  font-size: 1rem;
}

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

充電スピード ラベル

------------------------
*/
.charge-speed-unit .u-flex--left {
  padding-bottom: 0.5em;
}
.charge-speed-unit .u-flex--left p {
  font-size: clamp(14px, 3.52vw, 13px);
  color: var(--aside_gray);
}

.c-radio-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--border-green);
  border-radius: 6px;
  background: var(--back-green);
  cursor: pointer;
}
.c-radio-group label span {
  line-height: 1.4;
}

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

家電選択

------------------------
*/
.u-select-home-appliances {
  display: flex;
  flex-direction: column;
  gap: 3em;
  margin: 3em auto;
}
.u-select-home-appliances .u-flex--left {
  padding-bottom: 0.5em;
}

.c-check-card {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border-green);
  border-radius: 6px;
  background: var(--back-green);
  cursor: pointer;
}
/* 家電の名前（タイトル） */
.c-check-card__name {
  font-weight: 700;
}

/* 使用電力目安 */
.c-check-card__meta {
  color: #475569;
  font-size: 0.95rem;
}

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

結果を見る・リセットボタン

-----------------------
 */
.c-btn {
  min-width: 180px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: 0.2s ease;
}

.c-btn--primary {
  border-radius: 6px;
  background: linear-gradient(180deg, #ff8a1f, #f7790b);
  color: #fff;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
  border-radius: 50px;
}

.c-btn--primary:hover {
  opacity: 0.9;
}

/* リセットボタン
----------------------- */
.c-btn--secondary {
  background: #fff;
  color: #475569;
  border: unset;
  outline: 1px solid var(--border-green);
  outline-offset: -1px;
}

.c-btn--secondary:hover {
  background-color: #f1faff;
}

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


シュミレーション結果部分


------------------------
*/
.u-hidden {
  display: none;
}
.p-result {
  padding: 3em 1.5em;
}
.p-result .c-section-title {
  border-top: 2px dotted var(--border-green);
  padding: 2em 0 1.5em;
  font-size: clamp(23px, 3.52vw, 25px);
}
.c-calc-box__title {
  font-weight: 600;
}

/* シュミレーション結果の計算式部分 */
.c-calc-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px 12px;
  margin: 1em 0;
  font-weight: 700;
  line-height: 1.6;
}
/* 項目とアンペア数の部分 */
.c-calc-formula .u-flex-col {
  gap: 0.4em;
}

/* 計算式の数字部分 */
.c-calc-formula__item {
  min-width: 88px;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 1.1rem;
  background: #ffffff;
  border: 1px solid #d7dee7;
}
.c-calc-formula .u-flex-col span:first-of-type {
  font-size: clamp(10px, 3.52vw, 18px);
  line-height: 1.3;
  text-align: center;
  word-break: break-word;
}

/* 残りアンペアだけ他より太く */
.c-calc-formula__result {
  min-width: 88px;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #d7dee7;
  font-weight: bolder;
  font-size: clamp(20px, 3.52vw, 24px);
}

/* 計算式の－や＋の部分 */
.c-calc-formula__operator {
  font-size: 1.25rem;
  font-weight: 700;
}

/*-----------------------
計算式の結果部分の色分け
------------------------*/
/* デフォ：青系 */
.c-calc-formula__result {
  background: #eff6ff;
  border: 1px solid #93c5fd;
}
/* 余裕あり：緑系 */
.c-calc-formula__result.is-safe {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}
/* 一旦様子見：黄色系 */
.c-calc-formula__result.is-caution {
  background: #fefce8;
  border-color: #fde047;
  color: #854d0e;
}
/* 数字上では足りてるけど：オレンジ系 */
.c-calc-formula__result.is-danger {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}
/* 容量不足：赤系 */
.c-calc-formula__result.is-minus {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

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

シュミレーション結果テキスト部分

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

/*-----------------------
デフォルト：青系
-----------------------*/
.c-status-box {
  margin-bottom: 20px;
  border-radius: 6px;
  padding: 16px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}
/* 説明テキスト見出し？ */
.c-status-box__title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: clamp(17px, 3.52vw, 21px);
}
/* 説明テキスト内容 */
.c-status-box__text {
  margin: 0;
  line-height: 1.8;
  color: #374151;
}

/* ------------------------
余裕ありライン
------------------------ */
.c-status-box.is-safe {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}
.c-status-box.is-safe .c-status-box__text {
  color: #166534;
}

/* ------------------------
ちょっと注意が必要ライン
------------------------ */
.c-status-box.is-caution {
  background: #fefce8;
  border-color: #fde047;
  color: #854d0e;
}
.c-status-box.is-caution .c-status-box__text {
  color: #553a10;
}

/* ------------------------
見直し必須ライン
------------------------ */
.c-status-box.is-warning {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}
.c-status-box.is-warning .c-status-box__text {
  color: #553a10;
}

/* ------------------------
容量不足ライン
------------------------ */
.c-status-box.is-danger {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}
.c-status-box.is-danger .c-status-box__text {
  color: #af2d2d;
}

/* このシュミレーションは目安です */
.c-micro-notice {
  text-align: center;
  font-size: clamp(14px, 3.52vw, 15px);
  color: var(--aside_gray);
}

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

選択中の家電リスト

------------------------ */
.c-selected-list {
  padding-top: 2em;
}

.c-selected-list h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
}

.c-selected-list ul {
  line-height: 1.9;
  border: 1px solid #dfdfdf;
  padding: 1em;
  border-radius: 6px;
}
.c-selected-list ul li {
  list-style-type: disc;
  list-style-position: inside;
  font-size: clamp(15px, 3.52vw, 16px);
  padding-bottom: 0.3em;
}

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


アンペアアップの目安表


------------------------
*/
.table-section {
  padding: 2em 0 0;
  background-color: #fff;
  padding: 2em;
  border-radius: 16px;
}

.c-compare-table {
  table-layout: fixed;
}
.c-compare-table thead th:first-child,
.c-compare-table tbody td:first-child {
  width: 20%;
}

.c-compare-table thead th.ampere,
.c-compare-table tbody td.ampere {
  width: 16.4%;
}

.table-section .caution {
  background-color: #fff3cd;
  font-size: clamp(12px, 3.52vw, 13px);
}
.table-section .warning {
  background-color: #fff7ed;
  font-size: clamp(12px, 3.52vw, 13px);
}

.table-section .safe {
  background-color: #ecfdf5;
  font-size: clamp(12px, 3.52vw, 13px);
}

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


レスポンシブ
768px


----------------------------------------
*/
@media (max-width: 768px) {
  .p-ev-sim-section {
    border-radius: unset;
  }
  .p-ev-sim__inner .c-heading--flex {
    border-radius: unset;
  }
  .c-calc-formula__item,
  .c-calc-formula__result {
    min-width: auto;
    padding: 8px 10px;
    font-size: 1rem;
  }

  .c-check-list {
    grid-template-columns: 1fr;
  }
}

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


レスポンシブ
460px


---------------------------------------- */
@media (max-width: 460px) {
  .c-heading__title {
    font-size: 1.4rem;
  }

  .c-btn {
    width: 100%;
    min-width: 0;
  }

  /* シュミレーション結果
  ----------------------- */
  /* 計算式の部分微調整 */
  .c-calc-formula {
    gap: 10px 0.5em;
  }
}
