/* =========================================================
   custom.css Part 1 / 3
   東京都補助金テーブル：外枠・幅・見出し・ケース見出し
========================================================= */

.subsidy .tokyo-subsidy {
  padding: clamp(66px, 11.2244897959vw, 110px) 20px;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .subsidy .tokyo-subsidy {
    padding: 50px 15px;
  }
}

.subsidy .tokyo-subsidy .tokyo-subsidy__container {
  max-width: 940px;
  margin: 0 auto;
}

.subsidy .tokyo-subsidy .tokyo-subsidy__title {
  font-size: clamp(22.5px, 3.0612244898vw, 30px);
  font-family: "HondaGlobalFontJP-Bold", sans-serif;
  text-align: center;
  margin-bottom: clamp(18px, 3.0612244898vw, 30px);
  line-height: 1.5;
}

.subsidy .tokyo-subsidy .tokyo-subsidy__title small {
  font-size: clamp(15px, 2.0408163265vw, 20px);
}

.subsidy .tokyo-subsidy .tokyo-subsidy__title br {
  display: none;
}

@media screen and (max-width: 768px) {
  .subsidy .tokyo-subsidy .tokyo-subsidy__title {
    font-size: clamp(15px, 5.3333333333vw, 20px);
    margin-bottom: 30px;
  }

  .subsidy .tokyo-subsidy .tokyo-subsidy__title br {
    display: block;
  }
}

.subsidy .tokyo-subsidy .tokyo-subsidy__table {
  display: block;
  width: 100%;
  max-width: 940px;
  margin: 0 auto clamp(24px, 4.0816326531vw, 40px) !important;
  text-align: center;
  overflow: visible;
}

.subsidy .tokyo-subsidy .subsidy-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: auto;
}

.subsidy .tokyo-subsidy .subsidy-table th,
.subsidy .tokyo-subsidy .subsidy-table td {
  box-sizing: border-box;
  border: none;
}

.subsidy-table__corner {
  padding: 0;
  border: none;
  background: transparent;
}

.subsidy-table__col-header {
  padding: 0 4px 14px;
  background: transparent;
  border: none;
  text-align: center;
  vertical-align: bottom;
  font-weight: normal;
}

.subsidy-table__col-inner {
  position: relative;
  display: block;
  padding: 10px 12px;
  color: #fff;
  font-family: "HondaGlobalFontJP-Bold", sans-serif;
  font-size: clamp(13px, 1.6326530612vw, 16px);
  line-height: 1.4;
  letter-spacing: 0.05em;
  border-radius: 5px;
}

.subsidy-table__col-inner::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
  border-width: 12px 12px 0;
  border-color: transparent;
}

.subsidy-table__col-header--1 .subsidy-table__col-inner {
  background: #5bc9d5;
}

.subsidy-table__col-header--1 .subsidy-table__col-inner::after {
  border-top-color: #5bc9d5;
}

.subsidy-table__col-header--2 .subsidy-table__col-inner {
  background: #3db2c0;
}

.subsidy-table__col-header--2 .subsidy-table__col-inner::after {
  border-top-color: #3db2c0;
}

.subsidy-table__col-header--3 .subsidy-table__col-inner {
  background: #2298a8;
}

.subsidy-table__col-header--3 .subsidy-table__col-inner::after {
  border-top-color: #2298a8;
}

.subsidy-table__col-header--4 .subsidy-table__col-inner {
  background: #136878;
}

.subsidy-table__col-header--4 .subsidy-table__col-inner::after {
  border-top-color: #136878;
}
/* =========================================================
   custom.css Part 2 / 3
   表の中身・セル・線・矢印・内訳
========================================================= */

/* 左側見出し */
.subsidy-table__row-header {
  padding: 0;
  text-align: left;
  vertical-align: middle;
  font-weight: normal;
  border: none;
  background: #e9e9e9;
}

.subsidy-table__row-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 56px;
  padding: 12px 26px;
  background: #e9e9e9;
  box-sizing: border-box;
  white-space: nowrap;
  font-size: clamp(11px, 1.3265306122vw, 13px);
  line-height: 1.4;
}

.subsidy-table__row-header--price01 .subsidy-table__row-inner,
.subsidy-table__row-header--price02 .subsidy-table__row-inner {
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: #fff;
  color: #000;
  text-align: center;
  font-family: "HondaGlobalFontJP-Bold", sans-serif;
  font-size: clamp(14px, 1.8367346939vw, 18px);
}

.subsidy-table__row-header--total .subsidy-table__row-inner {
  justify-content: center;
  color: #000;
  text-align: center;
  font-family: "HondaGlobalFontJP-Bold", sans-serif;
  font-size: clamp(14px, 1.8367346939vw, 18px);
}

.subsidy-table__row-header--national .subsidy-table__row-inner,
.subsidy-table__row-header--tokyo .subsidy-table__row-inner {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  background: #e9e9e9;
  color: #000;
  font-family: "HondaGlobalFontJP-Bold", sans-serif;
  font-size: clamp(14px, 1.8367346939vw, 18px);
}

.subsidy-table__row-header--national small,
.subsidy-table__row-header--tokyo small {
  width: 100%;
  font-size: 0.8em;
  opacity: 0.9;
}

.subsidy-table__row-header--tokyo .subsidy-table__row-inner {
  padding-bottom: 0;
}

.subsidy-table__row-header--item .subsidy-table__row-inner {
  position: relative;
  gap: 6px;
  background: #e9e9e9;
  color: #000;
}

/* データセル */
.subsidy-table__data,
.subsidy-table__data--tokyo {
  position: relative;
  text-align: center;
  vertical-align: middle;
  padding: 7px 10px;
  background: #d9d9d9;
  color: #333;
  font-size: clamp(13px, 1.6326530612vw, 18px);
  line-height: 1.4;
}

.subsidy-table__data::before,
.subsidy-table__data--tokyo::before {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  width: 2px;
  height: 70%;
  background: #fff;
}

.subsidy-table__data-case4::before,
.subsidy-table__data--total-case4::before,
.subsidy-table__data--national-case4::before,
.subsidy-table__data--tokyo-case4::before,
.subsidy-table__data--price02-case4::before,
.subsidy-table__data-uchiwake-case4::after {
  content: none;
}

.subsidy-table__data--tokyo {
  padding-bottom: 0;
}

.subsidy-table__row--00 .subsidy-table__data--tokyo::before {
  top: 15%;
  height: 85%;
}

.subsidy-table__row--01 .subsidy-table__data::before,
.subsidy-table__row--02 .subsidy-table__data::before,
.subsidy-table__row--03 .subsidy-table__data::before,
.subsidy-table__row--04 .subsidy-table__data::before {
  top: 0;
  height: 100%;
}

.subsidy-table__row--05 .subsidy-table__data::before {
  top: 0;
  height: 85%;
}

/* 全国メーカー希望小売価格 */
.subsidy-table__data--price01 {
  position: relative;
  background: #effbff;
  text-align: center;
  font-family: "HondaGlobalFontJP-Regular", sans-serif;
  font-size: clamp(14px, 1.8367346939vw, 18px);
}

.subsidy-table__data--price01 > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.subsidy-table__data--price01 strong {
  font-family: "HondaGlobalFontJP-Bold", sans-serif;
  font-size: 1.5em;
}

.subsidy-table__data--price01::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: solid 1px #e0e0e0;
  pointer-events: none;
}

/* 矢印 */
.subsidy-table__sep-arrow {
  position: relative;
  height: 30px;
}

.subsidy-table__sep-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 24px;
  transform: translate(-50%, -50%);
  background-image: url("../images/icon_arrow.png");
  background-repeat: no-repeat;
  background-size: contain;
}

/* 補助金受給後の参考価格 */
.subsidy-table__data--price02 {
  position: relative;
  background: #fff;
  font-family: "HondaGlobalFontJP-Bold", sans-serif;
}

.subsidy-table__data--price02::before {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  width: 1px;
  height: 70%;
  background: #e0e0e0;
}

.subsidy-table__data--price02::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-top: solid 1px #e0e0e0;
  border-bottom: solid 1px #e0e0e0;
  pointer-events: none;
}

.subsidy-table__data--price02-case1 {
  border-left: solid 1px #e0e0e0 !important;
}

.subsidy-table__data--price02-case4 {
  border-right: solid 1px #e0e0e0 !important;
}

/* 補助金総額・国の補助金 */
.subsidy-table__data--total {
  padding: 18px 14px;
  background: #d9d9d9;
  color: #333;
  font-family: "HondaGlobalFontJP-Bold", sans-serif;
  font-size: clamp(15px, 2.0408163265vw, 20px);
}

.subsidy-table__data--national {
  min-height: 70px;
  background: #e0e0e0;
  color: #333;
}

.subsidy-table__prefix {
  display: block;
  font-family: "HondaGlobalFontJP-Regular", sans-serif;
  font-size: 0.78em;
  line-height: 1.3;
}

.subsidy-table__data-row .subsidy-table__prefix {
  display: inline;
}

/* 区切り行 */
.subsidy-table__row--sep .subsidy-table__sep-label {
  padding: 8px 10px 4px 0;
  background: transparent;
  border: none;
  color: #666;
  vertical-align: bottom;
  white-space: nowrap;
  font-size: clamp(11px, 1.2244897959vw, 12px);
}

.subsidy-table__sep-space {
  height: 30px;
}

.subsidy-table__row-label {
  background: transparent;
}

.subsidy-table__row--sep .subsidy-table__sep-line {
  position: relative;
  padding: 0;
  border: none;
  vertical-align: bottom;
  background: #e9e9e9;
}

.subsidy-table__row--sep .subsidy-table__sep-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 2px;
  background: #fff;
}

/* プラス */
.subsidy-table__data-plus {
  padding: 0;
  background: #fff;
  color: #a6a6a6;
  font-family: "HondaGlobalFontJP-Bold", sans-serif;
  font-size: 30px;
  line-height: 1;
}

/* 内訳 */
.subsidy-table__data-uchiwake {
  position: relative;
  background: #d9d9d9;
  font-family: "HondaGlobalFontJP-Bold", sans-serif;
  font-size: 14px;
}

.subsidy-table__data-uchiwake::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 2px;
  background: #fff;
}

.subsidy-table__data-uchiwake::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: #fff;
}

.subsidy-table__data-uchiwake span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 0.5em;
  background: #d9d9d9;
}

/* 左側の縦線 */
.subsidy-table__sep-blank,
.subsidy-table__sep-blank1,
.subsidy-table__sep-blank2 {
  position: relative;
  width: 80px;
  background: transparent;
}

.subsidy-table__sep-blank::after,
.subsidy-table__sep-blank1::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: #9a9a9a;
}

.subsidy-table__sep-blank1::before,
.subsidy-table__sep-blank2::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50%;
  height: 1px;
  background: #9a9a9a;
}

.subsidy-table__sep-blank2::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 50%;
  background: #9a9a9a;
}
/* =========================================================
   custom.css Part 3 / 3
   SP対応・表下余白・注釈・リンク
========================================================= */

/* SP時：横スクロール */
@media screen and (max-width: 600px) {
  .subsidy .tokyo-subsidy .tokyo-subsidy__table {
    width: calc(100% + 30px);
    margin-left: -15px !important;
    margin-right: -15px !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .subsidy .tokyo-subsidy .subsidy-table {
    min-width: 560px;
  }
}

/* 表下の余白を確実に確保 */
.subsidy .tokyo-subsidy .tokyo-subsidy__table {
  margin-bottom: clamp(24px, 4.0816326531vw, 40px) !important;
  padding-bottom: clamp(24px, 4.0816326531vw, 40px) !important;
}

/* 直後のテキスト */
.subsidy .tokyo-subsidy .tokyo-subsidy__table + .tokyo-subsidy__note {
  clear: both;
  margin-top: 0 !important;
}

/* 表下の文章 */
.subsidy .tokyo-subsidy .tokyo-subsidy__note {
  text-align: center;
  font-size: clamp(13.5px, 1.8367346939vw, 18px);
  margin: 0 0 15px 0 !important;
  color: #666;
  line-height: 1.6;
}

.subsidy .tokyo-subsidy .tokyo-subsidy__note br {
  display: none;
}

@media screen and (max-width: 768px) {
  .subsidy .tokyo-subsidy .tokyo-subsidy__note {
    font-size: 16px;
    margin-bottom: 15px !important;
  }

  .subsidy .tokyo-subsidy .tokyo-subsidy__note br {
    display: block;
  }
}

/* 地方自治体リンク */
.subsidy .tokyo-subsidy .tokyo-subsidy__link {
  text-align: center;
  margin-bottom: clamp(30px, 5.1020408163vw, 50px);
}

.subsidy .tokyo-subsidy .tokyo-subsidy__link a {
  color: #666;
  font-size: clamp(12px, 1.6326530612vw, 16px);
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .subsidy .tokyo-subsidy .tokyo-subsidy__link a {
    font-size: 14px;
  }
}

/* 別窓アイコン */
.subsidy .tokyo-subsidy .link-blank {
  position: relative;
  display: inline-block;
}

.subsidy .tokyo-subsidy .link-blank::after {
  display: block;
  content: "";
  width: 12px;
  aspect-ratio: 12 / 12;
  background: url(/Super-ONE/common/images/icon/icon_blank.svg) no-repeat;
  background-size: contain;
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
}

/* CTAボタンとの間隔 */
.subsidy .tokyo-subsidy .btn__cta {
  margin-top: 0;
  margin-bottom: clamp(30px, 5.1020408163vw, 50px);
}

/* 注釈 */
.subsidy .tokyo-subsidy .tokyo-subsidy__disclaimers {
  max-width: 980px;
  margin: 0 auto;
}

.subsidy .tokyo-subsidy .tokyo-subsidy__disclaimer {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
  text-indent: -27px;
  padding-left: 27px;
}

.subsidy .tokyo-subsidy .tokyo-subsidy__disclaimer + .tokyo-subsidy__disclaimer {
  margin-top: clamp(10.8px, 1.8367346939vw, 18px);
}

.subsidy .tokyo-subsidy .tokyo-subsidy__disclaimer a {
  color: #666;
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .subsidy .tokyo-subsidy .tokyo-subsidy__disclaimer {
    font-size: 12px;
    text-indent: -23px;
    padding-left: 23px;
  }
}
/* 補助金総額だけ少し左寄せ */
.subsidy-table__row-header--total .subsidy-table__row-inner {
  justify-content: flex-start !important;
  padding-left: 40px !important;
}
/* ケース4の「内訳」の右線を消す */
.subsidy .tokyo-subsidy
.subsidy-table__data-uchiwake.subsidy-table__data-uchiwake-case4::after {
    content: none !important;
    display: none !important;
}