/* 会社HPの書体・文字サイズ・余白を整える、最終読み込み用の上書き。 */

/* 1. 小さい太字だけを専用のBold書体にする。 */
/* 太字用の書体名。中に通常の太さ・極太の子が入っても崩れないよう3つの太さを登録する。 */
@font-face {
  font-family:ZenBold;
  src:url('assets/ZenKakuGothicNew-Regular.woff2') format('woff2');
  font-weight:400;
  font-display:swap;
}
@font-face {
  font-family:ZenBold;
  src:url('assets/ZenKakuGothicNew-Bold.woff2') format('woff2');
  font-weight:700;
  font-display:swap;
}
@font-face {
  font-family:ZenBold;
  src:url('assets/ZenKakuGothicNew-Black.woff2') format('woff2');
  font-weight:800 900;
  font-display:swap;
}
body .header nav a,
body .eyebrow,
body .round-link,
body .footer-top,
body .strengths p strong,
body .pricing tbody th,
body .contact-steps li,
body .contact-mail__copy,
body .orbit-card figcaption,
body .proof-fact > span,
body .contact-cta > span,
body .art-core,
body .contact-form__link {
  font-family:ZenBold,Zen,'Hiragino Kaku Gothic ProN',sans-serif;
  font-weight:700;
}

/* リンクの中の矢印記号は、元の書体（極太側）のままにする。 */
body .round-link > span,
body .footer-top > span,
body .contact-form__link > span {
  font-family:Zen,'Hiragino Kaku Gothic ProN',sans-serif;
}

/* 2. 実績カードの見出しで末尾の1文字だけが残る折り返しを抑える。 */
.proof-fact strong {
  text-wrap:balance;
  word-break:auto-phrase;
}

/* 3. ヘッダーロゴの小さい標語を隠し、見える部分を中央に寄せる。 */
.header .brand img {
  clip-path:inset(0 0 24% 0);
  transform:translateY(9%);
}

/* 4. 実績・映像の章と3枚のカードの左右端を共通の余白にそろえる。 */
body .proof.proof-orbit {
  --gutter:inherit;
}
html.consultation-motion-ready body .consultation > .section-top,
html.consultation-motion-ready body .consultation > .consult-heading,
html.consultation-motion-ready body .consultation > .consult-bottom {
  margin-left:0;
  margin-right:0;
}
body .proof__facts {
  max-width:none;
}

/* 5. 料金数字の大小差を縮め、主役の行の強調を残す。 */
body .pricing strong {
  font-size:36px;
}
body .pricing .featured strong {
  font-size:52px;
}
@media (max-width:760px) {
  body .pricing strong {
    font-size:30px;
  }
  body .pricing .featured strong {
    font-size:42px;
  }
}

/* 6. PCの本文・補足をスマホと同じ文字サイズの基準にそろえる。 */
@media (min-width:760.02px) {
  body .opening .opening-copy .lede,
  body .services .service-text > p:not(.eyebrow),
  body .pricing-grid > div > p,
  body .contact-grid > div > p,
  body .partner-copy > p:not(.partner-promise),
  body .consult-heading > p,
  body .proof-fact p,
  body .contact-mail > p:not(.contact-mail__or),
  body .strengths p strong,
  body .pricing tbody th,
  body .contact-steps li,
  body .round-link {
    font-size:14px;
  }

  body .partner-copy > .partner-promise,
  body .service-foot,
  body .service-foot a,
  body .closing small,
  body .pricing td.private-price {
    font-size:13px;
  }

  body .contact-cta small,
  body .partner figcaption span,
  body .proof__note,
  body .pricing th small,
  body .price-note,
  body .opening-services a {
    font-size:12px;
  }

  body .opening .room-credit,
  body .section-top > span,
  body .section-top > span a,
  body .opening-index,
  body .orbit-foot small,
  body .agent-intro-photo figcaption,
  body .consult-photo figcaption,
  body .pricing td small,
  body .pricing thead th,
  body .opening-services a span,
  body .strengths p span,
  body .service-art.development-art i,
  body .footer-meta > span {
    font-size:11px;
  }
}

/* 7. PCの本文を文節で折り返し、1文字だけの最終行を避ける。 */
@media (min-width:760.02px) {
  body main p,
  body footer p {
    word-break:auto-phrase;
    text-wrap:pretty;
  }
}

/* 8. 横向きの小さい画面（幅830〜860px・高さ600px以下）では、フッターの行が折り返さないよう地名だけ10pxに保ち、リンクの間隔を詰める。 */
@media (min-width:829.99px) and (max-width:860px) and (max-height:600px) {
  body .footer-meta > span {
    font-size:10px;
  }
  body .footer-meta .footer-links {
    gap:14px;
  }
}

/* 9. AI伴走支援の図: 図の幅が狭い画面で、「試してみる」の札が中央の円に重ならないよう右下へ離す。 */
@media (max-width:480px) {
  body .services .advisory-art .art-tag.two {
    top:78%;
  }
}
@media (min-width:760.02px) and (max-width:1100px) {
  body .services .advisory-art .art-tag.two {
    top:76%;
    right:3%;
  }
}

/* 10. ロゴ: 軽い画像（webp）は幅ごとに縦横比がわずかに違う。元の画像の比に固定し、読み込みの前後で高さが変わらないようにする。 */
body .brand img {
  aspect-ratio:1271 / 768;
}
