/* 文字組みの整え（ホーム・Web制作・事業内容・会社案内 共通）
   1) 本文の文字サイズを引き上げる（10〜12px → 13〜15px）。役割ごとに段階を保つ。
      リード（導入文）15px / 本文・リスト 14px / カード内の説明 13px / 補足・キャプション 12px
   2) 字間: 本文 +0.03em、見出し +0.02em（ごくわずかに広げて、詰まった印象をやわらげる）
   3) 行間: 本文 1.9、見出し h1 1.35 / h2 1.5 / h3・h4 1.55 にそろえる
   4) 改行: 言葉のまとまりで折り返す（word-break:auto-phrase）。見出しは行の長さをそろえる（text-wrap:balance）
   ヘッダー・フッター・ボタン・英字の小さなラベル（eyebrow）は、レイアウトを崩しやすいのでここでは触らない。
   既存のCSSは強い指定(!important)が多いので、指定の強さを上げて、最後に読み込んで置き換えている。 */

/* 指定の強さを上げるための共通の書き出し（.ref-home / .nkd-ref-page を3回重ねる） */
/* ===== 字間・行間・改行（全ページ共通）===== */
html body :is(.ref-home,.nkd-ref-page):is(.ref-home,.nkd-ref-page):is(.ref-home,.nkd-ref-page) :is(p:not(.web-eyebrow),li,dd,dt,small){letter-spacing:.03em!important;line-height:1.9!important}
html body :is(.ref-home,.nkd-ref-page):is(.ref-home,.nkd-ref-page):is(.ref-home,.nkd-ref-page) h1{letter-spacing:.03em!important;line-height:1.35!important}
html body :is(.ref-home,.nkd-ref-page):is(.ref-home,.nkd-ref-page):is(.ref-home,.nkd-ref-page) h2{letter-spacing:.02em!important;line-height:1.5!important}
html body :is(.ref-home,.nkd-ref-page):is(.ref-home,.nkd-ref-page):is(.ref-home,.nkd-ref-page) :is(h3,h4){letter-spacing:.02em!important;line-height:1.55!important}
html body :is(.ref-home,.nkd-ref-page):is(.ref-home,.nkd-ref-page):is(.ref-home,.nkd-ref-page) :is(p,li,dd,dt,small,h1,h2,h3,h4,strong){word-break:auto-phrase;line-break:strict}
html body :is(.ref-home,.nkd-ref-page):is(.ref-home,.nkd-ref-page):is(.ref-home,.nkd-ref-page) :is(h1,h2,h3,h4){text-wrap:balance}

/* ===== 文字サイズ ===== */
/* --- ホーム --- */
html body .ref-home.ref-home.ref-home .ref-hero__copy p{font-size:15px!important}
html body .ref-home.ref-home.ref-home .ref-thinking p,
html body .ref-home.ref-home.ref-home .ref-service__intro p,
html body .ref-home.ref-home.ref-home .ref-about p,
html body .ref-home.ref-home.ref-home .ref-cta>span{font-size:14px!important}
html body .ref-home.ref-home.ref-home .ref-values span{font-size:14px!important}
html body .ref-home.ref-home.ref-home .ref-values small{font-size:12px!important}
html body .ref-home.ref-home.ref-home .ref-services article p,
html body .ref-home.ref-home.ref-home .ref-services article a,
html body .ref-home.ref-home.ref-home .ref-flow li p{font-size:13px!important}
html body .ref-home.ref-home.ref-home .ref-photo small{font-size:11px!important}

/* --- Web制作 --- */
html body .nkd-ref-page--web-production.nkd-ref-page--web-production.nkd-ref-page--web-production :is(.web-section__intro,.web-basic__heading,.web-data__copy,.web-line-detail__copy,.web-price__head)>p{font-size:15px!important}
html body .nkd-ref-page--web-production.nkd-ref-page--web-production.nkd-ref-page--web-production .web-lead{font-size:15px!important}
html body .nkd-ref-page--web-production.nkd-ref-page--web-production.nkd-ref-page--web-production :is(.web-partner__top>p,.web-partner__bottom,.web-line-detail__copy li,.web-price__cards li,.web-final-cta p,.web-data__copy strong,.web-options>p){font-size:14px!important}
html body .nkd-ref-page--web-production.nkd-ref-page--web-production.nkd-ref-page--web-production :is(.web-three p,.web-service-grid p,.web-flow li p,.web-data__numbers span,.web-options__items p,.web-price__cards article>p){font-size:13px!important}
html body .nkd-ref-page--web-production.nkd-ref-page--web-production.nkd-ref-page--web-production :is(.web-partner__top>span,.web-price__note){font-size:12px!important}

/* --- 事業内容 --- */
html body .nkd-ref-page--business.nkd-ref-page--business.nkd-ref-page--business .info-hero>div>p:last-child{font-size:15px!important}
html body .nkd-ref-page--business.nkd-ref-page--business.nkd-ref-page--business :is(.business-service p,.business-service li,.info-cta p){font-size:14px!important}
html body .nkd-ref-page--business.nkd-ref-page--business.nkd-ref-page--business .business-more article p{font-size:13px!important}

/* --- 会社案内 --- */
html body .nkd-ref-page--company.nkd-ref-page--company.nkd-ref-page--company .info-hero>div>p:last-child{font-size:15px!important}
html body .nkd-ref-page--company.nkd-ref-page--company.nkd-ref-page--company :is(.company-mission>p,.company-message article p,.company-profile dt,.company-profile dd){font-size:14px!important}
html body .nkd-ref-page--company.nkd-ref-page--company.nkd-ref-page--company .company-values article p{font-size:13px!important}

/* ===== スマホ幅（760px以下）の見出しサイズ =====
   以前のスマホ用の指定は、このテーマのページ構造に合わない書き方（#main_content の中だけ）で、効いていなかった。
   そのため、スマホでも、PCと同じ大きな見出し（45〜47px）が出て、4〜5行になっていた。ここで、効く形で入れ直す。 */
@media(max-width:760px){
html body :is(.ref-home,.nkd-ref-page):is(.ref-home,.nkd-ref-page):is(.ref-home,.nkd-ref-page) :is(.ref-hero h1,.web-hero h1,.info-hero h1){font-size:27px!important}
html body :is(.ref-home,.nkd-ref-page):is(.ref-home,.nkd-ref-page):is(.ref-home,.nkd-ref-page) :is(.ref-thinking,.ref-service,.ref-about,.web-thinking,.web-basic,.web-data,.web-line-detail,.web-price,.web-options,.business-intro,.business-more,.company-mission,.company-values,.company-profile,.company-message) h2{font-size:24px!important}
/* 上に入っていない見出し（ご相談の流れ・最後の呼びかけ・事業内容の3つの見出し など）は、もともとスマホ用に小さいので、そのまま */
html body :is(.ref-home,.nkd-ref-page):is(.ref-home,.nkd-ref-page):is(.ref-home,.nkd-ref-page) .web-price__cards h3{font-size:22px!important}
html body :is(.ref-home,.nkd-ref-page):is(.ref-home,.nkd-ref-page):is(.ref-home,.nkd-ref-page) .web-price__cards h3 small{font-size:14px!important}
}
