/* ========================================
   背景英字：ブロック風の出現アニメーション
======================================== */

/* JSが準備できた要素だけアニメーション対象にする */
.nobo-bg-word-motion,
.nobo-concerns.is-bg-word-ready::before {
  clip-path: inset(0 100% 0 0);
}

/* 画面に入ったら左から右へ表示 */
.nobo-bg-word-motion.is-bg-word-visible,
.nobo-concerns.is-bg-word-ready.is-bg-word-visible::before {
  animation: nobo-bg-word-block 1.25s
    cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes nobo-bg-word-block {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

/* 動きを抑える設定 */
@media (prefers-reduced-motion: reduce) {
  .nobo-bg-word-motion,
  .nobo-concerns.is-bg-word-ready::before {
    clip-path: none;
    animation: none !important;
  }
}

/* ========================================
   日本語の改行調整（全ページ共通）
   - 全体：文節の途中で改行しない（「あります。」が「ありま／す。」にならない）
   - 本文：最後の行が短くなりすぎないよう、前の行と調整する
   - 見出し・ボタン・ラベル：行の長さをそろえ、1〜2文字だけ次の行に落ちるのを防ぐ
   - auto-phrase：文節の切れ目で改行（Chrome・Edge。未対応のブラウザでは通常の改行）
======================================== */
body {
  word-break: auto-phrase;
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6,
dt, th, figcaption, summary, label,
[class*="__title"],
[class*="__heading"],
[class*="__label"],
[class*="__button"],
[class*="__cta"],
[class*="__badge"],
[class*="__caption"] {
  text-wrap: balance;
  word-break: auto-phrase;
}

/* 改行させたくない語句（例：（金利0％）） */
.nobo-nowrap {
  white-space: nowrap;
}
