/* 目的：11月30日追加修正：共通メニュー文字、文章の折り返し、トップの案内画像、ヘッダー等の調整。 */
/* 2026-11-30: explicit client revisions; loaded last on every page. */

/* Shared menu: one step larger, preserving the existing header and CTA. */
.site-page .site-header .navbar .nav-link{font-size:1.25rem!important}

/* Running text follows the available width and normal Japanese line breaking.
   Navigation, badges, form values, addresses and diagram lists keep their roles. */
.site-page main :is(h1,h2,h3,h4,h5,h6,p){
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word;
  text-wrap:wrap!important;
}
.site-page main :is(h1,h2,h3,h4,h5,h6,p) .no-break-phrase{
  white-space:normal!important;
}
.top-page .hero-copy h1 :is(.hero-title-lead,.hero-title-future){
  display:inline;white-space:normal!important;overflow-wrap:normal;
}
.ai-adviser-page :is(.ai-value-main,.ai-value-extra){
  white-space:normal;word-break:normal;text-wrap:wrap;
}
.top-page .hero-intro .hero-lead{
  max-width:62rem;margin:.65rem 0 0;padding:0;font-size:1rem;line-height:1.85;
}
.top-page .service-scope .hero-proofline{max-width:none}

/* 240px x 1.10 = 264px. Keep both full illustrations proportional and uncropped.
   On narrow screens, the existing max-width:100% keeps them inside the column. */
.top-page .consultation-a1 .consult-choice .category-summary-image img{
  max-height:264px;
}

/* The field heading fits a desktop line without forcing nowrap on small screens. */
@media(min-width:992px){
  .top-page .field-story .section-heading{max-width:none}
  .top-page .field-story .section-heading h2{
    max-width:none;font-size:clamp(1.8rem,2.35vw,2.25rem);
  }
}

/* Tint only the header surface so its contents remain fully opaque. */
.site-header {
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 3px 8px -3px rgba(0, 0, 0, 0.14);
}
.site-header > .navbar.bg-white {
  --bs-bg-opacity: 0;
}

.page-hero > .page-photo {
  height: min(450px, 37.5vw);
}

footer .back-to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 1020;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #c91d28;
  color: white;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
}
footer .back-to-top[hidden] { display: none; }
@media (hover: hover) {
  footer .back-to-top:hover { background: #efbbbf; color: white; }
}
body:has(.grecaptcha-badge) .back-to-top {
  bottom: calc(84px + env(safe-area-inset-bottom));
}

/* 共通ヘッダーの識別性と、費用の比較に使う説明の読みやすさ */
.site-page .site-header .navbar-brand { width: 210px; }
.site-page .site-header .navbar-brand img { width: 100%; }
.site-page .price-guide-card small { font-size: 1rem; line-height: 1.65; }
@media (max-width: 575.98px) {
  .site-page .site-header .navbar-brand { width: 176px; }
}
@media (max-width: 359.98px) {
  .site-page .site-header .navbar-brand { width: 155px; }
}
