/*-------------------------------------------
    見出しタイトル 共通
    ・見出しのスタイルはこのファイルに追記していく
    ・使う側は、該当ページ系統の cssfile.php にこのファイルを追加し、見出しに class を付ける
    ・既存のページ専用 CSS に勝つよう、cssfile.php の配列の最後に追加すること
    ・汎用性向上のため基本タグを指定した記述はしない、classを活用する
-------------------------------------------*/

/*-------------------------------------------
    .main-titl-heading
    common.css「新サブスク各セクションタイトル」(.default-main-titl h2) と同じ見た目を、タグを問わず適用する
    マークアップ: <div class="default-main-titl"><h1 class="main-titl-heading"><span class="topborder">見出し</span></h1></div>
-------------------------------------------*/
.default-main-titl .main-titl-heading {
  position: relative;
  margin: 0;
  font-size: 5rem;
  font-weight: bold;
  line-height: 1.2;
}

.default-main-titl .main-titl-heading .topborder::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(980px * 0.15);
  height: 8px;
  background-color: #ffe000;
}

@media (min-width: 768px) and (max-width: 1280px) {
  .default-main-titl .main-titl-heading {
    font-size: 4rem;
  }
  .default-main-titl .main-titl-heading .topborder::before {
    width: calc(680px * 0.15);
  }
}

@media screen and (max-width: 767px) {
  .default-main-titl .main-titl-heading {
    font-size: 2.8rem;
  }
  .default-main-titl .main-titl-heading .topborder::before {
    width: 50vw;
  }
}
