/*
 * 英語版（/en/）だけに当てる調整。inc/i18n-en.php が英語のページでだけ読み込む。
 * 日本語の短い語に合わせて組んだ箇所（改行させない語・大きな数字）が、英語では長くなってはみ出すのを直す。
 */

/* 月額ホームページ: 申し込み欄の補足と選択肢は、日本語では語の途中で折らないために nowrap。英語は折り返す */
html[lang^="en"] #entry-flow .entry-assurance span,
html[lang^="en"] #entry-flow .entry-timing-options label > span { white-space: normal; }

/* 月額ホームページ: 冒頭の価格。「月1万円」の「1」に合わせた大きさのままだと「¥10,000」が画面からはみ出す */
html[lang^="en"] .campaign-cover .campaign-price b,
html[lang^="en"] .campaign-cover .campaign-heading .campaign-price b { font-size: 1.28em; letter-spacing: -.02em; }
html[lang^="en"] .campaign-price small { display: block; font-size: .38em; margin-top: .25em; letter-spacing: 0; }

/* 月額ホームページ: 「最短 即日 公開」の数字欄。英語の語は長いので、折り返しを許して大きさを下げる */
html[lang^="en"] .press-facts .sales-stat { flex-wrap: wrap; white-space: normal; row-gap: 2px; }
html[lang^="en"] body:has(.campaign-cover) .press-facts .sales-stat b.stat-word { font-size: clamp(26px, 2.6vw, 40px); }

/* 月額ホームページ: 見出しの字間は和文に合わせて強く詰めてある（-.08em 前後）。英語では語がくっついて読めないので戻す */
html[lang^="en"] .campaign-cover.ch-monthly-offer h1#at-title { letter-spacing: -.02em !important; }
html[lang^="en"] .campaign-heading .campaign-price,
html[lang^="en"] .campaign-price b { letter-spacing: -.03em; }
html[lang^="en"] .campaign-examples .catalog-intro h2 { letter-spacing: -.02em; }
html[lang^="en"] body:has(.campaign-cover) .press-facts .sales-stat small,
html[lang^="en"] .press-facts .sales-stat span { letter-spacing: 0; margin-left: .15em; }

/* ---- 2026-11-25 目視の独立審査の指摘（英語だけの崩れ） ---- */

/* 和文に合わせた強い字詰め（-.07em 前後）を英語では戻す。語がくっついて読めなくなるため */
html[lang^="en"] :is(.mh-h2, .sweep-letters, .closing-line, .process-words h3, .stat-word, .catalog-intro h2, .catalog-intro h3),
html[lang^="en"] .rd-mh dt > span,
html[lang^="en"] .rd-mh h2, html[lang^="en"] .rd-mh h3 { letter-spacing: -.01em !important; word-spacing: .04em; }
html[lang^="en"] .mh-price__value .unit,
html[lang^="en"] #body_wrap.rd .rd-mh .mh-price__value .unit { letter-spacing: 0 !important; margin-left: .2em; }

/* 月額ホームページ: 締めの見出しは和文では1行に保つが、英語は長いので折り返す */
html[lang^="en"] #mh-contact .closing-heading .closing-line { white-space: normal; }

/* 表の中は和文向けに語の途中でも折る設定（break-all）。英語は語の境目で折る */
html[lang^="en"] :is(th, td, dt, dd) { word-break: normal !important; overflow-wrap: break-word; }

/* サービスの冒頭の料金欄: 単位（JPY/month and up）が長いので数字の下へ */
html[lang^="en"] .sv-facts strong span { display: block; margin-top: .15em; }

/* レポートの見本: 「見方 01」の欄は和文の幅。英語の「Tip 01」が収まる幅にする */
html[lang^="en"] .rs-howto__label { width: auto; min-width: 5.5em; flex-shrink: 0; white-space: nowrap; }
html[lang^="en"] .rs-panel__body::before { content: "→ Scroll the table sideways" !important; }

/* 検索の面の見出し（CSS の content で出している和文） */
html[lang^="en"] .rd #search_modal .p-searchModal__inner::before { content: "Search articles"; }

/* 特商法の題: 単語ごとの大文字化をやめる（The・On まで大文字になる） */
html[lang^="en"] .c-pageTitle__inner, html[lang^="en"] .c-pageTitle { text-transform: none; }

/* 自社で作ったもの: 狭い画面で見出しの末尾が切れる */
@media (max-width: 480px) {
	html[lang^="en"] .rd-products h1, html[lang^="en"] .rd-page h1 { font-size: clamp(1.6rem, 7.4vw, 2.2rem); overflow-wrap: break-word; }
}

/* トップ（/en/ は日本語のトップの英訳）: 見出しは和文の句ごとに改行しない箱（.nb）で組んである。
   英語では箱の端の空白が消えて語がくっつき、狭い画面で折り返せずにはみ出すので、普通の文として流す */
html[lang^="en"] .rd-hero__copy .nb { display: inline !important; white-space: normal !important; }
html[lang^="en"] .rd-page #content .rd-hero__copy { overflow-wrap: break-word; letter-spacing: -.01em; }
