/* ==========================================================
   文字サイズをそろえる（役割ごと）
   値は css/common.css の :root（--fs-h2 など。スマホは767px以下で自動的に切り替わる）。
   新しいクラスを足したときは、役割に合う行へ、そのクラス名を追記する。
   ※ 各ページのCSSより後に読み込む。クラスを2回重ねて、詳細度でページ側の指定に勝たせている。
   ========================================================== */

/* セクション見出し（H2） */
html body.jaf-page main .common__title-ja.common__title-ja,
html body.jaf-page main .top__news-title.top__news-title,
html body.jaf-page main .company__name.company__name,
html body.jaf-page main .member__heading.member__heading {
  font-size: var(--fs-h2);
}

/* 見出しは、折り返すときに1文字だけが次の行に落ちないよう、行を均等に分ける */
html body.jaf-page main .common__title-ja.common__title-ja,
html body.jaf-page main .top__news-title.top__news-title,
html body.jaf-page main .member__heading.member__heading {
  text-wrap: balance;
  word-break: auto-phrase;   /* 文節の切れ目で折り返す（対応ブラウザ）。単語の途中では折り返さない */
}
/* 見出しの中で、途中で折り返したくない言葉（HTMLで <span class="common__nowrap"> で囲む） */
.common__nowrap {
  display: inline-block;
}

/* カード・項目の見出し（H3） */
html body.jaf-page main .top__plan-name.top__plan-name,
html body.jaf-page main .plan__name.plan__name,
html body.jaf-page main .top__reason-title.top__reason-title,
html body.jaf-page main .flow__head.flow__head,
html body.jaf-page main .plan__more-title.plan__more-title,
html body.jaf-page main .order__subtitle.order__subtitle,
html body.jaf-page main .order__howto-title.order__howto-title,
html body.jaf-page main .company__access-title.company__access-title,
html body.jaf-page main .member__card-title.member__card-title {
  font-size: var(--fs-h3);
}

/* 小見出し（H4） */
html body.jaf-page main .order__step-title.order__step-title,
html body.jaf-page main .plan__sub.plan__sub,
html body.jaf-page main .member__bus-stop-name.member__bus-stop-name {
  font-size: var(--fs-h4);
}

/* リード文 */
html body.jaf-page main .top__lead.top__lead,
html body.jaf-page main .top__plan-lead.top__plan-lead,
html body.jaf-page main .order__lead.order__lead,
html body.jaf-page main .member__lead.member__lead,
html body.jaf-page main .top__offer-text.top__offer-text,
html body.jaf-page main .top__member-text.top__member-text {
  font-size: var(--fs-lead);
}

/* 本文 */
html body.jaf-page main .company__access-text.company__access-text,
html body.jaf-page main .company__partner-text.company__partner-text,
html body.jaf-page main .plan__end.plan__end,
html body.jaf-page main .plan__note.plan__note,
html body.jaf-page main .top__plan-note.top__plan-note,
html body.jaf-page main .top__slide-text.top__slide-text,
html body.jaf-page main .top__voice-text.top__voice-text,
html body.jaf-page main .top__news-text.top__news-text,
html body.jaf-page main .top__flow-text.top__flow-text,
html body.jaf-page main .top__reason-text.top__reason-text,
html body.jaf-page main .member__bus-lead.member__bus-lead,
html body.jaf-page main .member__feature-lead.member__feature-lead,
html body.jaf-page main .member__rate-label.member__rate-label,
html body.jaf-page main .order__howto-text.order__howto-text,
html body.jaf-page main .order__step-msg.order__step-msg,
html body.jaf-page main .common__btn.common__btn,
html body.jaf-page main .news__pager-btn.news__pager-btn,
html body.jaf-page main .voice__pager-btn.voice__pager-btn {
  font-size: var(--fs-body);
}

/* 補足・注記 */
html body.jaf-page main .order__card-name.order__card-name,
html body.jaf-page main .order__card-price.order__card-price,
html body.jaf-page main .order__note.order__note,
html body.jaf-page main .order__tel-note.order__tel-note,
html body.jaf-page main .order__step-lead.order__step-lead,
html body.jaf-page main .order__step-name.order__step-name,
html body.jaf-page main .order__small.order__small,
html body.jaf-page main .top__plan-sub.top__plan-sub,
html body.jaf-page main .top__plan-label.top__plan-label,
html body.jaf-page main .plan__course-text.plan__course-text,
html body.jaf-page main .plan__set-text.plan__set-text,
html body.jaf-page main .plan__brief-title.plan__brief-title,
html body.jaf-page main .plan__price-label.plan__price-label,
html body.jaf-page main .member__feature-note.member__feature-note,
html body.jaf-page main .member__note.member__note,
html body.jaf-page main .member__text.member__text,
html body.jaf-page main .member__card-sub.member__card-sub,
html body.jaf-page main .member__bus-stop-sub.member__bus-stop-sub,
html body.jaf-page main .member__bus-way-label.member__bus-way-label,
html body.jaf-page main .member__bus-way-note.member__bus-way-note,
html body.jaf-page main .company__partner-addr.company__partner-addr,
html body.jaf-page main .company__partner-name.company__partner-name,
html body.jaf-page main .news__excerpt.news__excerpt,
html body.jaf-page main .voice__excerpt.voice__excerpt,
html body.jaf-page main .voice__name.voice__name,
html body.jaf-page main .voice__more.voice__more,
html body.jaf-page main .news__cal-day.news__cal-day,
html body.jaf-page main .voice__cal-day.voice__cal-day,
html body.jaf-page main .news__cal-title.news__cal-title,
html body.jaf-page main .voice__cal-title.voice__cal-title {
  font-size: var(--fs-small);
}

/* タグ・カテゴリ・細かい注 */
html body.jaf-page main .member__tag.member__tag,
html body.jaf-page main .member__notice.member__notice,
html body.jaf-page main .member__small.member__small,
html body.jaf-page main .news__cat.news__cat,
html body.jaf-page main .voice__cat.voice__cat,
html body.jaf-page main .top__news-cat.top__news-cat,
html body.jaf-page main .order__step-note.order__step-note,
html body.jaf-page main .plan__small.plan__small,
html body.jaf-page main .news__cal-foot.news__cal-foot,
html body.jaf-page main .voice__cal-foot.voice__cal-foot,
html body.jaf-page main .company__partner-map.company__partner-map,
html body.jaf-page main .top__member-offer-label.top__member-offer-label,
html body.jaf-page main .top__member-offer-desc.top__member-offer-desc,
html body.jaf-page main .plan__urn-name.plan__urn-name {
  font-size: var(--fs-xs);
}

/* 英字ラベル */
html body.jaf-page main .common__title-en.common__title-en,
html body.jaf-page main .top__news-en.top__news-en,
html body.jaf-page main .common__hero-en.common__hero-en,
html body.jaf-page main .member__heading-en.member__heading-en,
html body.jaf-page main .top__member-badge.top__member-badge {
  font-size: var(--fs-en);
}

/* 例外：幅の狭いスマホのカードの中の本文は、本文より1段小さく（文章カードの幅が約210pxのため） */
html body.jaf-page main .top__reason-text.top__reason-text {
  font-size: var(--fs-body);
}
@media (max-width: 767px) {
  html body.jaf-page main .top__reason-text.top__reason-text {
    font-size: var(--fs-small);
  }
}

/* 例外：スマホの骨壺の名前は、4つが横1列に並ぶ幅（1つ約70px）に収まるよう、さらに少し小さく */
@media (max-width: 767px) {
  html body.jaf-page main .plan__urn-name.plan__urn-name {
    font-size: 11px;
  }
}

/* 例外：スマホの商品名（緑のバッジ）は、2列の狭いカードの幅に1行で収まるよう、画面幅に合わせて少し小さく */
@media (max-width: 767px) {
  html body.jaf-page main .order__card-name.order__card-name {
    padding-inline: 4px;
    font-size: clamp(10px, 3.1vw, 12px);
    letter-spacing: 0;
    white-space: nowrap;
  }
  html body.jaf-page main .order__card-price.order__card-price {
    font-size: clamp(10px, 3.1vw, 13px);
    letter-spacing: 0;
    white-space: nowrap;
  }
}
