/* Shared typography roles. Values are CSS pixels at 100% desktop zoom. */
:root{
  --type-label:12px;
  --type-body:14px;
  --type-action:16px;
  --type-card:22px;
  --type-section:34px;
  --type-page:50px;
}

body{font-size:var(--type-body)!important}
body,button,input,select,textarea,.price-choice-no{font-family:"M PLUS Rounded 1c",Meiryo,"メイリオ",sans-serif!important}
main :is(div,p,li,dt,dd,td,th,span,strong,small,em,a,button,summary,figcaption){font-size:inherit!important}
main h1{font-size:var(--type-page)!important}
main h2{font-size:var(--type-section)!important}
main h3{font-size:var(--type-card)!important}
main :is(h1,h2,h3,.eyebrow,.section-kicker,.plan-name p,.plan-price,.panel-price strong,.price-board-type,.price-board-price strong,.designated-plan-price strong,.price-option-price,.weekly-price-table td strong,.mobile-plan-price strong,.button){font-weight:700!important}

/* Short labels, captions, badges, and notes. */
main :is(
  .eyebrow,.section-kicker,.breadcrumb,.panel-kicker,.panel-note,
  .hero-trial-badge,.focus-system-number,.focus-system-problem,.focus-system-en,
  .manner-chip,.seat-variety-note,.store-area,.store-distance,.store-hero-tag,
  .store-fact-label,.store-fact-note,.price-board-sub,.price-board-rank-note,
  .price-board-recommend,.price-choice-label,.price-option-label,
  .contract-info-number,.price-table-note,.price-hero-mini-kicker,
  .price-next-step-kicker,.system-ui-label,.badge,
  .plan-name span,.plan-price small,.panel-price .per,.panel-price .yen,
  .price-board-price small,.designated-plan-price small,
  .price-option-price small,.mobile-plan-price small,.mobile-plan-all-stores,
  .price-board-fit span,.price-function-table thead th span,
  .price-function-table tbody td small,.price-function-table tbody th small,
  .seat-variety-item figcaption,.store-hero-caption,.hero-photo-copy span
){font-size:var(--type-label)!important}

main .mobile-plan-all-stores{margin:0 0 3px;color:var(--green);font-weight:700;line-height:1.3;letter-spacing:-.04em;white-space:nowrap}

/* Buttons, strong facts, and navigation inside content. */
main :is(
  .button,.price-board-button,.price-main-apply,.price-mini-link,
  .focus-system-detail-link,.panel-link,.arrow-link,.store-mini-link,
  .price-section-tabs a,.price-disclosure>summary,.store-fact-value,
  .offpeak-disclosure>summary
){font-size:var(--type-action)!important}

/* Card titles and price figures. */
main :is(
  .plan-name p,.plan-price,.panel-price strong,.price-board-type,.mobile-plan-head strong,
  .price-board-price span,.price-board-price strong,
  .designated-plan-price span,.designated-plan-price strong,
  .price-option-price,.weekly-price-table td strong,
  .price-table td strong,.mobile-plan-price strong,
  .price-function-table thead th strong
){font-size:var(--type-card)!important}

/* Smaller headings within cards and redirect pages. */
main :is(.price-hero-mini-card h2,.contact-simple-card h2,.store-info-card h2){font-size:var(--type-card)!important}
main .placeholder-card h1{font-size:30px!important}

/* Header and footer use the same body, label, and action roles. */
main .feature-icon{font-size:11px!important}
.site-header :is(a,button,span),.site-footer :is(a,p,small,span){font-size:var(--type-body)!important}
.site-header :is(.brand-sub),.site-footer :is(.brand-sub,.footer-nav p,.footer-bottom small){font-size:var(--type-label)!important}
.site-header .brand-mark,.site-footer .brand-mark{font-size:22px!important}
.site-header .button{font-size:var(--type-action)!important}

@media screen and (min-width:1051px){
  main :is(.store-detail-hero h1,.system-detail-hero-copy h1){font-size:38px!important}
  main .hero-title-two-lines{font-size:50px!important}
}

@media screen and (min-width:451px) and (max-width:1050px){
  :root{--type-action:14px;--type-card:20px;--type-section:28px;--type-page:38px}
  main .hero-title-two-lines{font-size:38px!important}
}

@media screen and (max-width:450.99px){
  :root{--type-action:14px;--type-card:18px;--type-section:22px;--type-page:clamp(26px,calc(7vw - 2px),30px)}
  main .hero-title-two-lines{font-size:var(--type-page)!important}
  main .placeholder-card h1{font-size:26px!important}
  main .feature-icon{font-size:10px!important}
  .site-header .brand-sub,.site-footer .brand-sub{font-size:8px!important}
  .site-header .brand-mark,.site-footer .brand-mark{font-size:22px!important}
  .site-header .mypage-link,.site-header .button{font-size:12px!important;white-space:nowrap}
  .site-header .button .button-arrow{display:none}
}
