
/****************************************************************
  ETC CARD PAGE
*****************************************************************/
.etc-cover {
  overflow: hidden;
  padding-top: 209px;
  padding-bottom: 320px;
  position: relative;
}

/* 斜めの帯（fv-rectangle.webp 相当: 角度15度・垂直太さ約164px） */
.etc-cover::before {
  background-color: #F8F8F8;
  content: '';
  height: 158px;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 58%;
  transform: translate(-50%, -50%) rotate(-15deg);
  width: 120vw;
}

.etc-cover h1 {
  font-size: 48px;
  font-family: 'Noto Sans JP';
  font-weight: bold;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.etc-cover h1>span {
  display: block;
  font-size: 88px;
  line-height: 1.2;
}

.etc-kv-sub-heading-list>li {
  padding-left: 1em;
  text-indent: -1em;
}

.etc-kv-sub-heading-list>li span {
  color: #9C9C9C;
  position: relative;
  top: -10px;
  left: 2px;
  font-size: 12px;
}

.etc-kv-sub-heading-list>li::before {
  content: "・";
  font-weight: bold;
}

.etc-kv-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(20px 30px 50px rgba(0, 0, 0, 0.25));
}

/* PC・タブレットではカード画像を右側に絶対配置 */
@media (min-width: 1190px) {
  br.sp {
    display: none;
  }
}

@media (min-width: 768px) {
  .etc-kv-image-wrap {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    max-width: 623px;
    width: 57vw;
  }

  .sec-merit {
    margin-top: -130px;
  }
}

.merit-card-ul {
  max-width: 992px;
  margin-left: auto;
  margin-right: auto;
}

.merit-card {
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
}

.merit-card-wrap {
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.merit-card-wrap p {
  text-align: justify;
}

.merit-card-image {
  border-radius: 8px;
  width: 100%;
  max-width: 460px;
  height: auto;
}

.etc-information-card {
  background-color: #FAFAFA;
  border-radius: 24px;
  box-shadow: 0px 8px 32px 0px rgba(203, 203, 203, 0.4);
}

.etc-information-table>div {
  background-color: #FFFFFF;
  border-radius: 8px;
}

.etc-information-table>div+div {
  margin-top: 8px;
}

.etc-card-image {
  max-width: 444px;
  width: 100%;
  height: auto;
}

.etc-flow-image {
  background: none;
}

.etc-flow-image>img {
  height: 100%;
  width: 100%;
}

/* タブレット〜小型PC（768px〜1179px） */
@media (min-width: 768px) and (max-width: 1179px) {
  .etc-cover h1 {
    font-size: 32px;
  }

  .etc-cover h1>span {
    font-size: 56px;
  }

  .cover-btn-list a {
    font-size: 16px;
    height: 52px;
    width: 180px;
  }
}

/* ボタンが画像と被る幅は縦並びに戻す（768px〜1099px） */
@media (min-width: 768px) and (max-width: 1099px) {
  .cover-btn-list {
    display: block;
  }

  .cover-btn-list>li+li {
    margin-top: 12px;
  }

  .cover-btn-list a {
    width: 200px;
  }
}

@media (max-width: 767px) {
  .etc-cover {
    padding-bottom: 40px;
    padding-top: 88px;
    overflow: hidden;
  }

  /* 斜めの帯（fv-rectangle-sp.webp 相当: 角度15度・垂直太さ約65px） */
  .etc-cover::before {
    height: 63px;
    top: 68%;
  }

  .etc-cover-wrap {
    max-width: 326px;
    margin-left: auto;
    margin-right: auto;
  }

  .etc-cover h1 {
    font-size: 28px;
    line-height: 1.5;
    margin: auto;
  }

  .etc-cover h1>span {
    font-size: 48px;
  }

  ul.etc-kv-sub-heading-list {
    max-width: 268px;
    margin-left: auto;
    margin-right: auto;
  }

  .etc-kv-sub-heading-list>li {
    padding-left: 0;
    position: relative;
    text-indent: 0;
  }

  .etc-kv-sub-heading-list>li::before {
    position: absolute;
    left: -20px;
  }

  .etc-kv-sub-heading-list>li span {
    top: -7px;
    font-size: 10px;
  }

  .etc-kv-image-wrap {
    margin-top: 40px;
    margin-bottom: 40px;
    max-width: 268px;
    margin-left: auto;
    margin-right: auto;
  }

  .merit-card-image {
    margin: auto;
  }

  .etc-kv-image {
    filter: drop-shadow(9.41px 14.11px 23.52px rgba(0, 0, 0, 0.25));
  }
}

@media (max-width: 380px) {
  br.sp {
    display: none;
  }
}
/****************************************************************
 3D CARD WIDGET (INTEGRATION.md のスマホ用CSSをそのまま適用)
*****************************************************************/
@media (max-width: 1189px) {
  /* ヒーローのラッパーの固定幅を解除して本文幅に */
  .etc-kv-image-wrap { width: auto !important; max-width: none !important;
    margin-left: 0 !important; margin-right: 0 !important; }
  /* ヒーロー: 拡大+影を柔らかく(カードが元画像より大きい分そのままだと影が「板」に見える) */
  [data-etc-card-3d].etc-kv-image {
    transform: scale(1.245) !important; transform-origin: 50% 50% !important;
    filter: drop-shadow(0 22px 44px rgba(0,0,0,0.16)) !important; }
  /* 横スクロール防止。⚠️ウィジェットの親でclipするとdrop-shadowが四角く切れるので全幅ラッパーで */
  .wrapper { overflow-x: clip; }
  /* スペック表: ヒーローと同一幅・同一倍率=全モバイル幅でサイズ一致。
     ⚠️flex: 0 0 auto が無いと親flexのshrinkに負けてwidthが効かない */
  [data-etc-card-3d].etc-card-image {
    width: 326px !important; max-width: 92vw !important; margin: 0 auto !important;
    flex: 0 0 auto !important;
    transform: scale(1.245) !important; transform-origin: 50% 50% !important; }
}
