/* ---------- 文字サイズ：4種類にそろえる（Ramps コーポレートサイトの全ページで共通） ----------
   見出し・小見出し・本文・注記の4つ。トップページのヒーロー（header#top）と、観光DXの画面の見本（data-ui-mock）は対象外。
   各ページの style="font-size: …px" の値を、近い種類に置き換える。PC と スマホ（840px 以下）でサイズを変える。 */
:root { --fs-h: 44px; --fs-t: 22px; --fs-b: 16px; --fs-n: 13px; }
@media (max-width: 840px) { :root { --fs-h: 24px; --fs-t: 19px; --fs-b: 15px; --fs-n: 12.5px; } }

/* 見出しの要素（サイズの指定がないもの） */
html body h1:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]), html body h2:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]) { font-size: var(--fs-h) !important; text-wrap: balance !important; }
html body h3:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]) { font-size: var(--fs-t) !important; text-wrap: balance !important; }

/* 見出し：30px 以上 */
html body [style*="font-size: 30px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:30px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 32px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:32px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 34px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:34px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 36px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:36px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 38px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:38px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 40px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:40px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 42px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:42px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 44px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:44px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 46px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:46px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 48px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:48px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 50px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:50px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 52px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:52px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 56px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:56px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 60px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:60px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 64px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:64px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]) { font-size: var(--fs-h) !important; text-wrap: balance !important; }

/* 小見出し：19〜28px */
html body [style*="font-size: 19px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:19px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 20px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:20px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 21px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:21px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 22px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:22px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 23px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:23px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 24px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:24px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 26px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:26px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 27px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:27px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 28px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:28px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]) { font-size: var(--fs-t) !important; text-wrap: balance !important; }

/* 本文：14〜18px */
html body [style*="font-size: 14px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:14px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 14.5px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:14.5px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 15px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:15px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 15.5px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:15.5px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 16px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:16px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 17px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:17px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 18px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:18px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]) { font-size: var(--fs-b) !important; }

/* 注記：13.5px 以下 */
html body [style*="font-size: 9px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:9px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 9.5px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:9.5px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 10px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:10px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 10.5px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:10.5px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 11px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:11px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 11.5px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:11.5px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 12px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:12px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 12.5px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:12.5px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 13px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:13px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size: 13.5px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]),
html body [style*="font-size:13.5px"]:not(header#top *):not([data-ui-mock] *):not([data-ui-mock]) { font-size: var(--fs-n) !important; }

/* チームページの英字の名前（スマホで2行目に出す部分）も注記のサイズに */
html body [data-team-card] h3 [data-name-en] { font-size: var(--fs-n) !important; }
