/* ==================================================
   typography.css（文字サイズの基準）
   - サイト全体の見出し・本文の文字サイズをここで統一する
   - 各ページのCSSより後に読み込み、サイズと行間だけを上書きする
   - サイズを変えるときは、下の変数（PC／SPの値）だけを編集する
   - SP（390px）〜PC（1440px）のあいだは画面幅に合わせてなめらかに変化
   - TOPのFV（メインビジュアル）は対象外（デザイン優先）
================================================== */

:root {
  /* 画面幅の基準（数字のみ・単位px）：この幅のあいだでSP値→PC値へ変化 */
  --type-sp: 390;
  --type-pc: 1440;

  /* ページタイトル（下層ページのFV）：SP 32px → PC 46px（数字のみ・単位px） */
  --type-h1-sp: 32;
  --type-h1-pc: 46;
  /* セクション見出し：SP 26px → PC 40px（数字のみ・単位px） */
  --type-h2-sp: 26;
  --type-h2-pc: 40;
  /* 小見出し（ブロック・カード・パネルの見出し）：SP 22px → PC 28px（数字のみ・単位px） */
  --type-h3-sp: 22;
  --type-h3-pc: 28;
  /* キャッチコピー（大きな一文）：SP 23px → PC 30px（数字のみ・単位px） */
  --type-catch-sp: 23;
  --type-catch-pc: 30;
  /* 小項目の見出し（注意書きの見出し・Q&Aの質問など）：SP 19px → PC 22px（数字のみ・単位px） */
  --type-h4-sp: 19;
  --type-h4-pc: 22;
  /* ラベル見出し（表や枠の小さな見出し）：SP 16px → PC 18px（数字のみ・単位px） */
  --type-label-sp: 16;
  --type-label-pc: 18;
  /* リード文（見出し直下の導入文）：SP 17px → PC 19px（数字のみ・単位px） */
  --type-lead-sp: 17;
  --type-lead-pc: 19;
  /* 本文：SP 16px → PC 17px（数字のみ・単位px） */
  --type-body-sp: 16;
  --type-body-pc: 17;
  /* 注記（※・補足・キャプション）：SP 13px → PC 14px（数字のみ・単位px） */
  --type-note-sp: 13;
  --type-note-pc: 14;

  /* 実際に使うサイズ（ここは編集不要） */
  --type-h1: clamp(
    calc(var(--type-h1-sp) * 1px),
    calc(var(--type-h1-sp) * 1px + (var(--type-h1-pc) - var(--type-h1-sp)) * (100vw - var(--type-sp) * 1px) / (var(--type-pc) - var(--type-sp))),
    calc(var(--type-h1-pc) * 1px)
  );
  --type-h2: clamp(
    calc(var(--type-h2-sp) * 1px),
    calc(var(--type-h2-sp) * 1px + (var(--type-h2-pc) - var(--type-h2-sp)) * (100vw - var(--type-sp) * 1px) / (var(--type-pc) - var(--type-sp))),
    calc(var(--type-h2-pc) * 1px)
  );
  --type-h3: clamp(
    calc(var(--type-h3-sp) * 1px),
    calc(var(--type-h3-sp) * 1px + (var(--type-h3-pc) - var(--type-h3-sp)) * (100vw - var(--type-sp) * 1px) / (var(--type-pc) - var(--type-sp))),
    calc(var(--type-h3-pc) * 1px)
  );
  --type-catch: clamp(
    calc(var(--type-catch-sp) * 1px),
    calc(var(--type-catch-sp) * 1px + (var(--type-catch-pc) - var(--type-catch-sp)) * (100vw - var(--type-sp) * 1px) / (var(--type-pc) - var(--type-sp))),
    calc(var(--type-catch-pc) * 1px)
  );
  --type-h4: clamp(
    calc(var(--type-h4-sp) * 1px),
    calc(var(--type-h4-sp) * 1px + (var(--type-h4-pc) - var(--type-h4-sp)) * (100vw - var(--type-sp) * 1px) / (var(--type-pc) - var(--type-sp))),
    calc(var(--type-h4-pc) * 1px)
  );
  --type-label: clamp(
    calc(var(--type-label-sp) * 1px),
    calc(var(--type-label-sp) * 1px + (var(--type-label-pc) - var(--type-label-sp)) * (100vw - var(--type-sp) * 1px) / (var(--type-pc) - var(--type-sp))),
    calc(var(--type-label-pc) * 1px)
  );
  --type-lead: clamp(
    calc(var(--type-lead-sp) * 1px),
    calc(var(--type-lead-sp) * 1px + (var(--type-lead-pc) - var(--type-lead-sp)) * (100vw - var(--type-sp) * 1px) / (var(--type-pc) - var(--type-sp))),
    calc(var(--type-lead-pc) * 1px)
  );
  --type-body: clamp(
    calc(var(--type-body-sp) * 1px),
    calc(var(--type-body-sp) * 1px + (var(--type-body-pc) - var(--type-body-sp)) * (100vw - var(--type-sp) * 1px) / (var(--type-pc) - var(--type-sp))),
    calc(var(--type-body-pc) * 1px)
  );
  --type-note: clamp(
    calc(var(--type-note-sp) * 1px),
    calc(var(--type-note-sp) * 1px + (var(--type-note-pc) - var(--type-note-sp)) * (100vw - var(--type-sp) * 1px) / (var(--type-pc) - var(--type-sp))),
    calc(var(--type-note-pc) * 1px)
  );
}

/* ------------------------------
   ページタイトル（下層ページのFV）
------------------------------ */
.concerns-hero__title,
.nobo-case-fv__title,
.nobo-child-fv__title,
.nobo-clinic-fv__title,
.nobo-column-fv__title,
.nobo-mouthpiece-fv__title,
.nobo-orthodontics-fv__title,
.nobo-price-fv__title,
.nobo-sitemap-fv__title,
.nobo-wire-fv__title {
  font-size: var(--type-h1);
  line-height: 1.5;
}

/* ------------------------------
   セクション見出し
------------------------------ */
.concerns-faq__title,
.nobo-adult .nobo-adult__title,
.nobo-child-about__title,
.nobo-child-check__title,
.nobo-child-faq__title,
.nobo-child-timing__title,
.nobo-child-treatment__title,
.nobo-clinic-access__title,
.nobo-clinic-tour__title,
.nobo-clinic__title,
.nobo-column__title,
.nobo-concerns .nobo-concerns__title,
.nobo-doctors__title,
.nobo-faq__title,
.nobo-features__title,
.nobo-medical-deduction__title,
.nobo-mouthpiece-about__title,
.nobo-mouthpiece-angel__title,
.nobo-mouthpiece-concerns .nobo-mouthpiece-concerns__title,
.nobo-mouthpiece-faq__title,
.nobo-mouthpiece-notes__title,
.nobo-mouthpiece-proscons__title,
.nobo-orthodontics-about__title,
.nobo-orthodontics-consultation__title,
.nobo-orthodontics-flow__title,
.nobo-orthodontics-menu__title,
.nobo-orthodontics-policy__title,
.nobo-orthodontics-reasons__title,
.nobo-payment__title,
.nobo-price__title,
.nobo-wire-about__title,
.nobo-wire-faq__title,
.nobo-wire-notes__title,
.nobo-wire-proscons__title {
  font-size: var(--type-h2);
  line-height: 1.6;
}

/* ------------------------------
   小見出し（ブロック・カード・パネルの見出し）
------------------------------ */
.nobo-adult .nobo-adult__card-title,
.nobo-child-about__point-title,
.nobo-child-check__item-title,
.nobo-child-treatment__card-title,
.nobo-child-treatment__equipment-title,
.nobo-clinic-access__name,
.nobo-clinic__name,
.nobo-concern__title,
.nobo-consultation .nobo-consultation__points-title,
.nobo-doctor-card__name,
.nobo-feature .nobo-feature__title,
.nobo-greeting__media-title,
.nobo-medical-deduction__heading,
.nobo-mouthpiece-angel__license-title,
.nobo-mouthpiece-notes__item-title,
.nobo-mouthpiece-price-cta__title,
.nobo-mouthpiece-proscons__panel-title,
.nobo-ortho-fees__group-title,
.nobo-orthodontics-consultation__details-title,
.nobo-orthodontics-flow__step-title,
.nobo-orthodontics-guide__title,
.nobo-orthodontics-menu__card-title,
.nobo-orthodontics-toc__title,
.nobo-price-consultation__title,
.nobo-price__heading,
.nobo-price__monthly-title,
.nobo-wire-about__partial-title,
.nobo-wire-notes__item-title,
.nobo-wire-price-cta__title,
.nobo-wire-proscons__guidance-title,
.nobo-wire-proscons__panel-title,
.nobo-wp-archive h2 {
  font-size: var(--type-h3);
  line-height: 1.6;
}

/* ------------------------------
   キャッチコピー（大きな一文）
------------------------------ */
.nobo-child-about__catch,
.nobo-child-timing__catch,
.nobo-child-timing__lead,
.nobo-child-timing__phase,
.nobo-concern-article__lead,
.nobo-director__catch,
.nobo-doctor-card__catch,
.nobo-mouthpiece-about__catch,
.nobo-mouthpiece-angel__brand,
.nobo-orthodontics-consultation__lead,
.nobo-wire-about__catch {
  font-size: var(--type-catch);
  line-height: 1.7;
}

/* ------------------------------
   小項目の見出し（注意書きの見出し・Q&Aの質問など）
------------------------------ */
.concerns-faq__question-text,
.nobo-child-about__notice-title,
.nobo-child-check__notice-title,
.nobo-child-faq__question-text,
.nobo-child-timing__notice-title,
.nobo-child-treatment__equipment-group-title,
.nobo-child-treatment__method-title,
.nobo-clinic-access__transport-title,
.nobo-concern-article .nobo-concern-article__subheading,
.nobo-consultation .nobo-consultation__point-title,
.nobo-doctors__info-title,
.nobo-faq__question-content h3,
.nobo-mouthpiece-about__notice-title,
.nobo-mouthpiece-angel__alternative-title,
.nobo-mouthpiece-angel__feature-title,
.nobo-mouthpiece-faq__question-text,
.nobo-mouthpiece-notes__risk-title,
.nobo-mouthpiece-proscons__item-title,
.nobo-orthodontics-concerns__card-title,
.nobo-payment__notice-title,
.nobo-price__support-title,
.nobo-wire-faq__question-text,
.nobo-wire-notes__notice-title,
.nobo-wire-proscons__item-title {
  font-size: var(--type-h4);
  line-height: 1.6;
}

/* ------------------------------
   ラベル見出し（表や枠の小さな見出し）
------------------------------ */
.nobo-clinic-access__schedule-title,
.nobo-doctor-card__panel-title,
.nobo-orthodontics-consultation__item-title,
.nobo-orthodontics-toc__children-title {
  font-size: var(--type-label);
  line-height: 1.6;
}

/* ------------------------------
   リード文（見出し直下の導入文）
------------------------------ */
.concerns-faq__lead,
.nobo-child-check__lead,
.nobo-child-faq__answer-lead,
.nobo-child-treatment__lead,
.nobo-clinic-tour__lead,
.nobo-concern-article__intro,
.nobo-medical-deduction__lead,
.nobo-mouthpiece-faq__answer-lead,
.nobo-mouthpiece-faq__lead,
.nobo-mouthpiece-notes__lead,
.nobo-orthodontics-comparison__lead,
.nobo-orthodontics-concerns__message,
.nobo-orthodontics-flow__lead,
.nobo-orthodontics-menu__lead,
.nobo-orthodontics-policy__lead,
.nobo-orthodontics-reasons__lead,
.nobo-orthodontics-toc__lead,
.nobo-payment__lead,
.nobo-wire-faq__answer-lead,
.nobo-wire-notes__lead {
  font-size: var(--type-lead);
  line-height: 1.9;
}

/* ------------------------------
   本文
------------------------------ */
.concerns-faq__answer-body p,
.nobo-adult .nobo-adult__description,
.nobo-child-about__description p,
.nobo-child-about__notice-text,
.nobo-child-check__action-text,
.nobo-child-check__notice-text,
.nobo-child-faq__answer-text,
.nobo-child-timing__description,
.nobo-child-timing__notice-text,
.nobo-child-timing__text,
.nobo-child-treatment__equipment-description,
.nobo-child-treatment__equipment-detail p,
.nobo-child-treatment__equipment-lead,
.nobo-child-treatment__method-text,
.nobo-child-treatment__text,
.nobo-clinic-access__transport-description,
.nobo-concern-article__approach p,
.nobo-concern-article__body > .nobo-concern-article__closing,
.nobo-concern-article__body p,
.nobo-concern-article__box p,
.nobo-concern-article__definition dd,
.nobo-concern-article__item p,
.nobo-concern__checklist li,
.nobo-concern__text,
.nobo-concerns__bottom-note,
.nobo-director__text p,
.nobo-doctor-card__text p,
.nobo-faq__answer p,
.nobo-faq__footer-note,
.nobo-feature__description,
.nobo-feature__supplement p,
.nobo-greeting__message p,
.nobo-medical-deduction__list li,
.nobo-medical-deduction__text,
.nobo-mouthpiece-about__description p,
.nobo-mouthpiece-about__notice-text,
.nobo-mouthpiece-angel__alternative-text,
.nobo-mouthpiece-angel__description p,
.nobo-mouthpiece-angel__feature-text,
.nobo-mouthpiece-angel__license-description,
.nobo-mouthpiece-faq__answer-text,
.nobo-mouthpiece-notes__risk-text p,
.nobo-mouthpiece-notes__text,
.nobo-mouthpiece-price-cta__description,
.nobo-mouthpiece-proscons__guidance-text,
.nobo-mouthpiece-proscons__item-text,
.nobo-orthodontics-about__text p,
.nobo-orthodontics-flow__text,
.nobo-orthodontics-menu__description,
.nobo-orthodontics-reasons__text p,
.nobo-payment__notice-text,
.nobo-payment__text,
.nobo-price-consultation__description,
.nobo-wire-about__description p,
.nobo-wire-about__partial-text,
.nobo-wire-faq__answer-text,
.nobo-wire-notes__notice-text,
.nobo-wire-notes__text,
.nobo-wire-price-cta__description,
.nobo-wire-proscons__guidance-text,
.nobo-wire-proscons__text {
  font-size: var(--type-body);
  line-height: 1.9;
}

/* ------------------------------
   注記（※・補足・キャプション）
------------------------------ */
.concerns-faq__note,
.nobo-child-faq__note,
.nobo-child-timing__note,
.nobo-child-treatment__equipment-note,
.nobo-clinic-access__schedule-note p,
.nobo-clinic-tour__instruction,
.nobo-clinic__schedule-note,
.nobo-concern-article__note p,
.nobo-concerns .nobo-concerns__instruction,
.nobo-concerns__note,
.nobo-medical-deduction__footer .nobo-medical-deduction__text,
.nobo-medical-deduction__note,
.nobo-mouthpiece-angel__image-caption,
.nobo-mouthpiece-angel__license-note,
.nobo-mouthpiece-angel__note,
.nobo-ortho-fees__note,
.nobo-ortho-fees__tax-note,
.nobo-ortho-fees__treatment-note,
.nobo-orthodontics-comparison__note,
.nobo-orthodontics-concerns__note,
.nobo-orthodontics-consultation__note,
.nobo-orthodontics-flow__note p,
.nobo-payment__notes li,
.nobo-payment__notice-note,
.nobo-payment__small,
.nobo-price-consultation__hours-note,
.nobo-price__support-note,
.nobo-price__tax-note,
.nobo-wire-about__partial-note,
.nobo-wire-faq__note {
  font-size: var(--type-note);
  line-height: 1.8;
}
