/* PC版: 横ナビ・CTA常時表示 */

/* HERO: ビューポート全幅（100vw）＋矢印は画像上にオーバーレイ */
body.north-site--pc .site-banner-section.north-hero--pc-fullbleed {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

body.north-site--pc .north-hero--pc-fullbleed .north-hero__shell {
  display: block;
  width: 100%;
  min-height: 70vh;
}

body.north-site--pc .north-hero--pc-fullbleed .north-hero__viewport {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 70vh;
}

body.north-site--pc .north-hero--pc-fullbleed .theme-banner-slider.swiper {
  width: 100%;
  max-width: none;
  min-height: 70vh;
  height: 100%;
}

body.north-site--pc .north-hero--pc-fullbleed .theme-banner-slider .swiper-slide {
  min-height: 70vh;
}

body.north-site--pc .north-hero--pc-fullbleed .theme-banner-slider .wrapper {
  min-height: 70vh;
}

body.north-site--pc .north-hero--pc-fullbleed .north-hero__viewport .swiper-button-prev,
body.north-site--pc .north-hero--pc-fullbleed .north-hero__viewport .swiper-button-next {
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  margin: 0 !important;
  z-index: 5;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(20, 32, 50, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
  transition: background 0.2s, border-color 0.2s;
}

body.north-site--pc .north-hero--pc-fullbleed .north-hero__viewport .swiper-button-prev {
  left: clamp(0.75rem, 2vw, 1.5rem) !important;
  right: auto !important;
  transform: translateY(-50%) !important;
}

body.north-site--pc .north-hero--pc-fullbleed .north-hero__viewport .swiper-button-next {
  right: clamp(0.75rem, 2vw, 1.5rem) !important;
  left: auto !important;
  transform: translateY(-50%) !important;
}

body.north-site--pc .north-hero--pc-fullbleed .north-hero__viewport .swiper-button-prev::after,
body.north-site--pc .north-hero--pc-fullbleed .north-hero__viewport .swiper-button-next::after {
  font-size: 0.9rem !important;
  font-weight: 700;
}

body.north-site--pc .north-hero--pc-fullbleed .north-hero__viewport .swiper-button-prev:hover,
body.north-site--pc .north-hero--pc-fullbleed .north-hero__viewport .swiper-button-next:hover {
  background: rgba(20, 32, 50, 0.65) !important;
  border-color: rgba(255, 255, 255, 0.55);
}

body.north-site--pc #theme-toggle-offcanvas-button {
  display: none !important;
}

body.north-site--pc .theme-primary-menu {
  display: block !important;
  width: 100%;
}

body.north-site--pc .site-header-wrapper .site-header-right {
  display: flex !important;
  justify-self: end;
  flex-wrap: nowrap;
}

body.north-site--pc .site-header-wrapper {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

/*
 * ヘッダー内グリッド：透明／白帯／下層で gap を同一にし切替時のガタつきを防ぐ
 *（旧: 初期のみ別 column-gap のブロックがありズレの原因になっていた）
 */
body.north-site--pc #masthead .site-header-wrapper {
  column-gap: clamp(1.5rem, 4vw, 2.75rem);
  row-gap: 0.75rem;
}

body.north-site--pc .site-header-wrapper .site-header-left {
  justify-self: start;
}

body.north-site--pc .site-header-center {
  justify-self: stretch;
  min-width: 0;
  display: flex;
  justify-content: center;
}

body.north-site--pc .main-navigation .primary-menu {
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.15rem clamp(0.85rem, 1.55vw, 1.35rem);
}

body.north-site--pc .main-navigation .primary-menu > .menu-item > a {
  padding-inline: 0.15rem;
}

body.north-site--pc .main-navigation .primary-menu > .menu-item > a .nav-label-ja {
  font-size: 0.8125rem;
  white-space: nowrap;
  font-weight: 600;
  color: #123f65;
}

body.north-site--pc .main-navigation .primary-menu > .menu-item > a .nav-label-en {
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(16, 63, 101, 0.72);
}

/*
 * マストヘッド縦余白：TOP初期・スクロール後・下層で同一（差があると高さ・ナビ位置がズレる）
 */
body.north-site--pc #masthead .masthead-main-navigation {
  padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
  padding-bottom: 0.5rem;
  box-sizing: border-box;
}

/* ヘッダー：ロゴ画像の縦位置を整える（PC） */
body.north-site--pc .site-header-left .site-branding,
body.north-site--pc .site-header-left .site-logo.north-logo {
  display: flex;
  align-items: center;
}

body.north-site--pc .site-header-left .north-logo__link {
  display: flex;
  align-items: center;
}

/*
 * PC ヘッダーロゴ：固定アスペクト枠＋2枚を absolute 重ね／opacity で切替（display 切替によるレイアウト変動を排除）
 * 1920×700 ロゴと同一比率
 */
body.north-site--pc #masthead .site-header-left .north-logo__link {
  position: relative;
  display: block;
  width: clamp(132px, 12vw, 172px);
  max-width: 176px;
  aspect-ratio: 1920 / 700;
  flex-shrink: 0;
}

body.north-site--pc #masthead .north-logo__link .north-logo__img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.2s ease;
}

/*
 * PC: HERO上は north-logo（--on-hero）、白帯・下層は north-logo2（--on-light）
 */
body.north-site--pc:not(.north-page-index) #masthead .north-logo__link .north-logo__img--on-hero {
  opacity: 0;
  pointer-events: none;
}

body.north-site--pc:not(.north-page-index) #masthead .north-logo__link .north-logo__img--on-light {
  opacity: 1;
  pointer-events: auto;
}

body.north-site--pc.north-page-index #masthead.site-header:not(.north-header--solid) .north-logo__link .north-logo__img--on-hero {
  opacity: 1;
  pointer-events: auto;
}

body.north-site--pc.north-page-index #masthead.site-header:not(.north-header--solid) .north-logo__link .north-logo__img--on-light {
  opacity: 0;
  pointer-events: none;
}

body.north-site--pc.north-page-index #masthead.site-header.north-header--solid .north-logo__link .north-logo__img--on-hero {
  opacity: 0;
  pointer-events: none;
}

body.north-site--pc.north-page-index #masthead.site-header.north-header--solid .north-logo__link .north-logo__img--on-light {
  opacity: 1;
  pointer-events: auto;
}

/* テーマの .north-logo__link:hover .north-logo__img が「非表示側」にも opacity を付けないよう固定 */
body.north-site--pc.north-page-index #masthead.site-header:not(.north-header--solid) .north-logo__link:hover .north-logo__img--on-light {
  opacity: 0;
}

body.north-site--pc.north-page-index #masthead.site-header.north-header--solid .north-logo__link:hover .north-logo__img--on-hero {
  opacity: 0;
}

body.north-site--pc:not(.north-page-index) #masthead .north-logo__link:hover .north-logo__img--on-hero {
  opacity: 0;
}

/* フッター：PC で左情報・右リンクの余白 */
body.north-site--pc .north-footer__upper-inner {
  column-gap: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 992px) and (max-width: 1199px) {
  body.north-site--pc .site-header-wrapper {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem 1rem;
  }

  body.north-site--pc .main-navigation .primary-menu {
    gap: 0.1rem 0.85rem;
  }

  body.north-site--pc .main-navigation .primary-menu > .menu-item > a .nav-label-ja {
    font-size: 0.75rem;
  }

  body.north-site--pc .main-navigation .primary-menu > .menu-item > a .nav-label-en {
    font-size: 0.4375rem;
  }

  body.north-site--pc #masthead.north-header--ref .main-navigation .primary-menu {
    gap: 0.1rem 0.55rem;
  }

  body.north-site--pc #masthead.north-header--ref .main-navigation .primary-menu > .menu-item > a {
    padding: 0.7rem 0.5rem;
    gap: 0.14rem;
  }

  body.north-site--pc #masthead.north-header--ref .main-navigation .primary-menu > .menu-item > a .nav-label-ja {
    font-size: 0.78rem;
  }

  body.north-site--pc #masthead.north-header--ref .main-navigation .primary-menu > .menu-item > a .nav-label-en {
    font-size: 0.46875rem;
    letter-spacing: 0.12em;
  }
}

@media screen and (max-width: 991px) {
  body.north-site--pc .site-header-wrapper {
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
  }

  body.north-site--pc .site-header-wrapper .site-header-left {
    justify-self: start;
    text-align: left;
  }

  body.north-site--pc .site-header-center {
    justify-self: end;
  }

  body.north-site--pc .site-header-wrapper .site-header-right {
    justify-self: end;
    flex-wrap: nowrap;
  }
}

/* TOP: hero1（3168×1344）全体を横切れなく表示 */
body.north-site--pc.north-page-index .site-banner-section.north-page-index-fv .north-hero__shell,
body.north-site--pc.north-page-index .site-banner-section.north-page-index-fv .north-hero__viewport,
body.north-site--pc.north-page-index .site-banner-section.north-page-index-fv .theme-banner-slider.swiper,
body.north-site--pc.north-page-index .site-banner-section.north-page-index-fv .theme-banner-slider .swiper-slide,
body.north-site--pc.north-page-index .site-banner-section.north-page-index-fv .theme-banner-slider .wrapper {
  min-height: 0;
  height: auto;
  aspect-ratio: 3168 / 1344;
  max-height: none;
}

body.north-site--pc.north-page-index .north-page-index-fv .theme-banner-slider .swiper-slide.north-home-hero-slide--hero1 {
  background-position: center center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

body.north-site--pc.north-page-index .north-page-index-fv .theme-banner-slider.north-hero-static .swiper-pagination,
body.north-site--pc.north-page-index .north-page-index-fv .north-hero-static ~ .swiper-button-prev,
body.north-site--pc.north-page-index .north-page-index-fv .north-hero-static ~ .swiper-button-next {
  display: none !important;
}

body.north-site--pc.north-page-index .north-page-index-fv .theme-banner-slider .wrapper.north-home-hero-slide__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding-top: clamp(8.2rem, 15vh, 11rem);
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
}

body.north-site--pc.north-page-index .north-fv-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(1.25rem, 2.5vw, 3rem);
}

body.north-site--pc.north-page-index .north-fv-main__content {
  max-width: min(40rem, 78vw);
  color: #ffffff;
  text-shadow: 0 10px 24px rgba(8, 18, 31, 0.35);
  transform: translateY(60px);
}

body.north-site--pc.north-page-index .north-fv-main__label {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 600;
}

body.north-site--pc.north-page-index .north-fv-main__title {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.35;
  letter-spacing: 0.04em;
  font-weight: 700;
}

body.north-site--pc.north-page-index .north-fv-main__catch {
  margin: 0.85rem 0 0;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  line-height: 1.45;
  letter-spacing: 0.04em;
  font-weight: 700;
}

body.north-site--pc.north-page-index .north-fv-main__lead {
  margin: 1.1rem 0 0;
  font-size: clamp(0.95rem, 1.32vw, 1.08rem);
  line-height: 1.9;
  max-width: 38rem;
}

body.north-site--pc.north-page-index .north-fv-main__hours {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  opacity: 0.92;
}

body.north-site--pc.north-page-index .north-fv-main__checks,
body.north-site--pc.north-page-index .north-fv-main__badges {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.north-site--pc.north-page-index .north-fv-main__badges li {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(10, 28, 48, 0.28);
  font-size: clamp(0.78rem, 1.05vw, 0.88rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

body.north-site--pc.north-page-index .north-fv-main__checks li {
  position: relative;
  padding-left: 1.45rem;
  font-size: clamp(0.9rem, 1.25vw, 1rem);
  line-height: 1.68;
}

body.north-site--pc.north-page-index .north-fv-main__checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #74c6ff;
  box-shadow: 0 0 0 4px rgba(116, 198, 255, 0.18);
}

body.north-site--pc.north-page-index .north-fv-main__cta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

body.north-site--pc.north-page-index .north-fv-main__cta .theme-button {
  min-width: 13.5rem;
  justify-content: center;
}

body.north-site--pc.north-page-index .north-fv-main__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-right: clamp(0.1rem, 1vw, 0.7rem);
  opacity: 0.9;
}

body.north-site--pc.north-page-index .north-fv-main__side-line {
  width: 1px;
  height: clamp(4.2rem, 9vw, 6.2rem);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.25));
}

body.north-site--pc.north-page-index .north-fv-main__side-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
}

/*
 * TOP・HEROオーバーレイ: translateY はオフで張り付き回避（縦 padding は #masthead .masthead-main-navigation で全状態共通）
 */
body.north-site--pc.north-page-index #masthead.site-header:not(.north-header--solid) {
  transform: none;
}

/*
 * TOP HERO: キャプションブロックをやや上へ（flex 縦中央より約 40〜80px 相当）
 * 変更前: transform なし（.north-fv-slide__inner の align-items: center により縦中央）
 * 変更後: translateY でブロック全体のみ移動（内部の margin はそのまま）
 */
body.north-site--pc.north-page-index .north-page-index-fv .theme-banner-slider .wrapper.north-fv-slide__inner {
  transform: translateY(clamp(-5rem, -7vw, -2.5rem));
}

/*
 * SERVICE「頼れる許認可パートナーとして」スライドのみ：キャプションを下げ人物の顔と被らないように（他スライドは未指定）
 * 下げ幅: clamp(60px, 6vw, 110px) ≒ 60〜110px
 */
body.north-site--pc.north-page-index
  .north-page-index-fv
  .theme-banner-slider
  .swiper-slide.north-fv-slide--service-partner
  .north-fv-caption {
  transform: translateY(clamp(60px, 6vw, 110px));
}

/* PC 全ページ・全状態：ヘッダーCTAは角丸なし・寸法安定（border の有無で幅が変わらないよう常に 1px） */
body.north-site--pc #masthead .site-header-right .theme-button {
  box-sizing: border-box;
  border-radius: 0;
  border-width: 1px;
  border-style: solid;
}

body.north-site--pc #masthead .site-header-right .theme-button:focus-visible {
  border-radius: 0;
}

body.north-site--pc #masthead.site-header {
  box-sizing: border-box;
}

/* Q&Aアコーディオン時間は north-theme.css の --north-qa-* 変数で管理 */

/* ========== 参照サイト風ヘッダー（ロゴ＋テキストブランド＋2段） ========== */
.north-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.north-brand-logo {
  display: block;
  width: clamp(2.75rem, 3.7vw, 3.45rem);
  height: auto;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.north-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
  line-height: 1.25;
  min-width: 0;
}

.north-brand-text__lead {
  font-family: var(--north-font);
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #123f65;
}

.north-brand-text__name {
  font-family: var(--north-font);
  font-size: clamp(0.78rem, 1.05vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #3a5a78;
}

body.north-site--pc #masthead.north-header--ref {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: none;
  box-shadow: none;
}

body.north-site--pc #masthead.north-header--ref::before {
  display: none !important;
}

body.north-site--pc #masthead.north-header--ref .masthead-main-navigation {
  padding: 0;
}

body.north-site--pc #masthead.north-header--ref .masthead-main-navigation > .wrapper {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.north-site--pc #masthead.north-header--ref .site-header-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand cta"
    "nav nav";
  column-gap: 1.5rem;
  row-gap: 0;
  align-items: center;
}

body.north-site--pc #masthead.north-header--ref .site-header-left {
  grid-area: brand;
  padding: 0.95rem clamp(1.25rem, 3vw, 2.5rem);
}

body.north-site--pc #masthead.north-header--ref .site-header-right {
  grid-area: cta;
  display: flex !important;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 0.75rem clamp(1.25rem, 3vw, 2.5rem) 0.75rem 0;
}

body.north-site--pc #masthead.north-header--ref .site-header-center {
  grid-area: nav;
  justify-self: stretch;
  width: 100%;
  background: #fff;
  border-top: 1px solid #d9e2ea;
  border-bottom: 1px solid #d9e2ea;
  padding: 0;
}

body.north-site--pc #masthead.north-header--ref .main-navigation {
  width: 100%;
}

body.north-site--pc #masthead.north-header--ref .primary-menu-wrapper {
  width: 100%;
  max-width: min(100%, 1320px);
  margin-inline: auto;
  padding-inline: clamp(0.5rem, 1.5vw, 1.25rem);
}

body.north-site--pc #masthead.north-header--ref .main-navigation .primary-menu {
  justify-content: center;
  gap: 0.15rem 0.95rem;
  flex-wrap: nowrap;
}

body.north-site--pc #masthead.north-header--ref .main-navigation .primary-menu > .menu-item > a {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  padding: 0.8rem 0.75rem;
  font-size: 0.875rem;
  color: #1a3a56;
  border-bottom: 3px solid transparent;
  line-height: 1.15;
}

body.north-site--pc #masthead.north-header--ref .main-navigation .primary-menu > .menu-item > a .nav-label-en {
  display: block;
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.15;
  color: rgba(16, 63, 101, 0.7);
}

body.north-site--pc #masthead.north-header--ref .main-navigation .primary-menu > .menu-item > a .nav-label-ja {
  font-size: 0.875rem;
  font-weight: 600;
  color: #123f65;
  white-space: nowrap;
}

body.north-site--pc #masthead.north-header--ref .main-navigation .primary-menu > .menu-item > a:hover,
body.north-site--pc #masthead.north-header--ref .main-navigation .current-menu-item > a {
  color: #0d3a63;
  border-bottom-color: #0d3a63;
}

body.north-site--pc #masthead.north-header--ref .north-header-tel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  line-height: 1.2;
}

body.north-site--pc #masthead.north-header--ref .north-header-tel__num {
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  font-weight: 700;
  color: #123f65;
  text-decoration: none;
  letter-spacing: 0.02em;
}

body.north-site--pc #masthead.north-header--ref .north-header-tel__hours {
  font-size: 0.75rem;
  color: #5a7388;
}

body.north-site--pc #masthead.north-header--ref .north-header-inquiry {
  background: #123f65 !important;
  border-color: #123f65 !important;
  color: #fff !important;
  min-width: 9rem;
  text-align: center;
  padding: 0.8rem 1.25rem;
  font-size: 0.95rem;
}

body.north-site--pc #masthead.north-header--ref .north-header-inquiry:hover {
  background: #0d2f4c !important;
  border-color: #0d2f4c !important;
}

/* 参照風：TOPはヘッダー下に通常フローでヒーロー（オーバーレイしない） */
body.north-site--pc.north-page-index #masthead.north-header--ref {
  position: sticky;
}

body.north-site--pc.north-page-index.north-header--ref-layout #masthead,
body.north-site--pc.north-page-index #masthead.north-header--ref {
  /* keep sticky white bar above content */
}

body.north-site--pc.north-page-index #masthead.north-header--ref.header-has-height-none {
  /* override absolute overlay if any */
  position: sticky !important;
}

body.north-site--pc.north-page-index #masthead.site-header.north-header--ref {
  position: sticky !important;
  transform: none !important;
  background: #fff !important;
  border-bottom: none !important;
  box-shadow: 0 1px 0 rgba(16, 63, 101, 0.08);
}

/* Hero panel (centered message box) */
body.north-site--pc.north-page-index .north-page-index-fv .theme-banner-slider .wrapper.north-home-hero-slide__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(5rem, 12vh, 8rem);
  padding-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

body.north-site--pc .north-fv-panel {
  width: min(54rem, 96%);
  margin: 0 auto;
  padding: clamp(2.25rem, 3.8vw, 3.5rem) clamp(2rem, 3.5vw, 3.25rem);
  background: rgba(12, 42, 72, 0.82);
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  transform: translateY(1.75rem);
}

body.north-site--pc .north-fv-panel__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

body.north-site--pc .north-fv-panel__title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

body.north-site--pc .north-fv-panel__text {
  margin: 0 auto;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.95;
}

body.north-site--pc .north-fv-panel__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

body.north-site--pc .north-fv-panel__cta .theme-button {
  border-radius: 0;
}

/* CTA band under hero */
.north-top-cta-band {
  background: #123f65;
  color: #fff;
}

.north-top-cta-band__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem 2rem;
  align-items: center;
  padding-block: 1.25rem;
}

.north-top-cta-band__copy,
.north-top-cta-band__tel,
.north-top-cta-band__action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.north-top-cta-band__copy {
  align-items: flex-start;
}

.north-top-cta-band__tel {
  align-items: center;
  text-align: center;
}

.north-top-cta-band__action {
  align-items: flex-end;
  text-align: right;
}

.north-top-cta-band__label {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.north-top-cta-band__office {
  margin: 0.3rem 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  opacity: 1;
}

.north-top-cta-band__hours {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0.88;
}

.north-top-cta-band__num {
  display: block;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.north-top-cta-band__action-label {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

.north-top-cta-band__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff !important;
  background: transparent !important;
  color: #fff !important;
  border-radius: 0 !important;
  padding: 0.65rem 1.25rem;
  line-height: 1.2;
}

.north-top-cta-band__btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

@media (max-width: 991px) {
  .north-top-cta-band__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .north-top-cta-band__copy,
  .north-top-cta-band__tel,
  .north-top-cta-band__action {
    align-items: center;
    text-align: center;
  }
}

/* contact: PC 2カラムのサイドカード余白 */
body.north-site--pc.north-page-contact .north-contact-main__side {
  position: sticky;
  top: 7.5rem;
}

/* TOP: SECOND LOOK カード右端の装飾アイコン */
body.north-site--pc.north-page-index .north-lp-risk {
  position: relative;
  padding-right: 6rem;
}

body.north-site--pc.north-page-index .north-lp-risk__icon {
  position: absolute;
  right: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  color: #12385f;
  opacity: 0.22;
  pointer-events: none;
}

body.north-site--pc.north-page-index .north-lp-risk__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

body.north-site--pc.north-page-index .north-lp-risk:hover .north-lp-risk__icon {
  opacity: 0.32;
}

/* TOP TROUBLE: セクション横幅を広げ、カード1枚あたりの余白を活用 */
body.north-site--pc.north-page-index #section-troubles > .wrapper {
  max-width: 1280px;
}

body.north-site--pc.north-page-index #section-troubles .north-lp-card-grid {
  gap: 1.5rem;
}

body.north-site--pc.north-page-index #section-troubles .north-lp-card {
  padding: 1.35rem 1.4rem 1.5rem;
}

body.north-site--pc.north-page-index #section-troubles .north-lp-card__title {
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-wrap: pretty;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 事業所概要: アクセス — 住所＋外観画像 */
body.north-site--pc.north-page-about .north-about-access__inner {
  max-width: 56rem;
}

body.north-site--pc.north-page-about .north-about-access__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

body.north-site--pc.north-page-about .north-about-access__info .north-about-access__map-note {
  margin-bottom: 0;
}

body.north-site--pc.north-page-about .north-about-access__gaikan {
  margin: 0;
  background: var(--north-white);
  border: 1px solid var(--north-line);
  border-radius: var(--north-radius);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(20, 32, 50, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.north-site--pc.north-page-about .north-about-access__gaikan-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

@media (min-width: 768px) {
  body.north-site--pc.north-page-about .north-about-access__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.5rem;
    align-items: start;
  }

  body.north-site--pc.north-page-about .north-about-access__info .north-about-section-title {
    margin-bottom: 1rem;
  }
}

/* 下層ページ: 最終コンテンツとフッターの間に余韻を確保 */
body.north-site--pc .north-subpage-main {
  padding-bottom: 96px;
}

@media (max-width: 768px) {
  body.north-site--pc .north-subpage-main {
    padding-bottom: 64px;
  }
}

/* ========== PC HTML responsive mode (tablet / smartphone) ========== */
/*
 * ルート配下を単一のレスポンシブHTMLとして使うための上書き。
 * 992px 以上の既存PCレイアウトには影響させない。
 */

/* Mobile fixed CTA: hidden by default (PC), shown only in max-width:991px block */
body.north-site--pc .north-mobile-fixed-cta {
  display: none;
}

@media (max-width: 991px) {
  html,
  body.north-site--pc {
    max-width: 100%;
    overflow-x: hidden;
  }

  body.north-site--pc .site,
  body.north-site--pc .site-content-area,
  body.north-site--pc main,
  body.north-site--pc section,
  body.north-site--pc .wrapper {
    min-width: 0;
    max-width: 100%;
  }

  /* Header (mobile): fixed bar — logo left + hamburger right */
  body.north-site--pc {
    --north-mobile-header-h: 4.3125rem;
  }

  body.north-site--pc #masthead.north-header--ref,
  body.north-site--pc.north-page-index #masthead.north-header--ref,
  body.north-site--pc.north-page-index #masthead.north-header--ref.header-has-height-none,
  body.north-site--pc.north-page-index #masthead.site-header.north-header--ref {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1200;
    background: #fff !important;
    border-bottom: 1px solid #d5dde6 !important;
    box-shadow: 0 2px 10px rgba(20, 32, 50, 0.1) !important;
  }

  /* Prevent content from sliding under the fixed header */
  body.north-site--pc .site-content-area {
    padding-top: var(--north-mobile-header-h);
  }

  body.north-site--pc #masthead.north-header--ref .masthead-main-navigation,
  body.north-site--pc #masthead.north-header--ref .masthead-main-navigation > .wrapper {
    position: static;
  }

  body.north-site--pc #masthead.north-header--ref .masthead-main-navigation > .wrapper,
  body.north-site--pc #masthead.site-header.north-header--solid .masthead-main-navigation .wrapper {
    max-width: none;
    width: 100%;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }

  body.north-site--pc #masthead.north-header--ref .site-header-wrapper {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand";
    gap: 0;
    padding-left: 0;
    padding-right: 0;
  }

  body.north-site--pc #masthead.north-header--ref .site-header-left,
  body.north-site--pc #masthead.site-header.north-header--solid .site-header-left {
    grid-area: brand;
    width: 100%;
    min-width: 0;
    min-height: 4rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0.7rem 0.875rem 0.7rem 0.75rem; /* ~14px right, ~12px left */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
  }

  body.north-site--pc #masthead.north-header--ref .site-branding {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }

  body.north-site--pc #theme-toggle-offcanvas-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.625rem;
    width: 2.625rem;
    height: 2.625rem;
    order: 2;
    margin: 0 0 0 auto;
    padding: 0.5rem;
    color: #123f65;
    background: transparent;
    border: 1px solid rgba(18, 63, 101, 0.18);
    border-radius: 0.25rem;
  }

  body.north-site--pc #masthead.north-header--ref .site-header-center,
  body.north-site--pc .theme-primary-menu {
    display: none !important;
  }

  body.north-site--pc #masthead.north-header--ref .north-brand-link {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    gap: 0.625rem;
  }

  body.north-site--pc #masthead.north-header--ref .north-brand-logo {
    width: 2.875rem;
    height: 2.875rem;
    flex: 0 0 2.875rem;
  }

  body.north-site--pc #masthead.north-header--ref .north-brand-text {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.north-site--pc #masthead.north-header--ref .north-brand-text__lead,
  body.north-site--pc #masthead.north-header--ref .north-brand-text__name {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.north-site--pc #masthead.north-header--ref .north-brand-text__lead {
    font-size: clamp(0.78rem, 2.7vw, 0.92rem);
    line-height: 1.3;
  }

  body.north-site--pc #masthead.north-header--ref .north-brand-text__name {
    font-size: clamp(0.74rem, 2.5vw, 0.88rem);
    font-weight: 600;
  }

  /* Hide header phone / hours / inquiry on smartphone only */
  body.north-site--pc #masthead.north-header--ref .site-header-right {
    display: none !important;
  }

  body.north-site--pc .theme-offcanvas-panel {
    width: min(20rem, 88vw);
    max-width: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* Offcanvas top: compact close row, no divider line */
  body.north-site--pc .theme-offcanvas-header {
    min-height: 3.25rem;
    height: 3.25rem;
    padding: 0.4rem 0.65rem 0.2rem;
    align-items: center;
    border-bottom: none !important;
    box-shadow: none !important;
  }

  body.north-site--pc .theme-offcanvas-header::before,
  body.north-site--pc .theme-offcanvas-header::after {
    content: none;
    display: none;
  }

  body.north-site--pc .theme-offcanvas-header #theme-offcanvas-close {
    margin: 0;
    padding: 0.35rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.north-site--pc .theme-offcanvas-content {
    padding-top: 0;
    margin-top: 0;
  }

  body.north-site--pc .theme-offcanvas-menu {
    margin-top: 0;
    padding-top: 0.35rem;
    padding-bottom: 1rem;
  }

  body.north-site--pc .theme-offcanvas-menu > li:first-child {
    margin-top: 0;
  }

  body.north-site--pc .theme-offcanvas-menu > li:first-child > .ancestor-wrapper > a,
  body.north-site--pc .theme-offcanvas-menu > li:first-child > a {
    padding-top: 0.55rem;
  }

  body.north-site--pc .theme-offcanvas-menu a {
    overflow-wrap: anywhere;
  }

  /* TOP hero: match hero2 portrait ratio so top/bottom crop less */
  body.north-site--pc.north-page-index .site-banner-section.north-page-index-fv .north-hero__shell,
  body.north-site--pc.north-page-index .site-banner-section.north-page-index-fv .north-hero__viewport,
  body.north-site--pc.north-page-index .site-banner-section.north-page-index-fv .theme-banner-slider.swiper,
  body.north-site--pc.north-page-index .site-banner-section.north-page-index-fv .theme-banner-slider .swiper-slide,
  body.north-site--pc.north-page-index .site-banner-section.north-page-index-fv .theme-banner-slider .wrapper {
    width: 100%;
    height: auto;
    min-height: 0;
    /* hero2.png = 896x1200 — height follows width to keep vertical composition */
    aspect-ratio: 896 / 1200;
    max-width: 100%;
  }

  body.north-site--pc.north-page-index .north-page-index-fv .theme-banner-slider .swiper-slide.north-home-hero-slide--hero1 {
    /* スマホのみ hero2（インライン background を上書き） */
    background-image: url("hero2.png") !important;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }

  body.north-site--pc.north-page-index .north-page-index-fv .theme-banner-slider .wrapper.north-home-hero-slide__inner {
    padding: clamp(3.1rem, 9vw, 4.25rem) 0 clamp(2.25rem, 6vw, 3.25rem);
  }

  body.north-site--pc .north-fv-panel {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    padding: clamp(1.5rem, 5vw, 2.35rem) clamp(0.75rem, 3.2vw, 1rem);
    transform: none;
  }

  body.north-site--pc .north-fv-panel__title {
    font-size: clamp(18px, 5vw, 22px);
    line-height: 1.35;
    letter-spacing: 0;
    white-space: nowrap;
    text-wrap: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  body.north-site--pc .north-fv-panel__text {
    font-size: clamp(0.88rem, 2.5vw, 1rem);
    line-height: 1.75;
  }

  body.north-site--pc .north-fv-panel__br {
    display: none;
  }

  body.north-site--pc .north-top-cta-band__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding-block: 1.2rem;
    text-align: center;
  }

  body.north-site--pc .north-top-cta-band__copy,
  body.north-site--pc .north-top-cta-band__tel,
  body.north-site--pc .north-top-cta-band__action {
    align-items: center;
    text-align: center;
  }

  body.north-site--pc .north-top-cta-band__btn {
    width: min(100%, 20rem);
  }

  /* TOP card/layout safeguards */
  body.north-site--pc.north-page-index #north-lp-second-title {
    white-space: normal;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  body.north-site--pc.north-page-index .north-lp-risk {
    padding-right: clamp(3.5rem, 12vw, 5rem);
  }

  body.north-site--pc.north-page-index .north-lp-card-grid--3,
  body.north-site--pc.north-page-index .north-lp-service-grid,
  body.north-site--pc.north-page-index .north-lp-case-grid,
  body.north-site--pc.north-page-index .north-lp-office,
  body.north-site--pc.north-page-index .north-lp-path {
    grid-template-columns: minmax(0, 1fr);
  }

  body.north-site--pc.north-page-index .north-lp-card,
  body.north-site--pc.north-page-index .north-lp-service,
  body.north-site--pc.north-page-index .north-lp-path__step,
  body.north-site--pc.north-page-index .north-lp-risk {
    min-width: 0;
    max-width: 100%;
  }

  /* Subpage media, tables, forms and embeds */
  body.north-site--pc .north-construction-hero__title,
  body.north-site--pc .north-construction-hero__lead,
  body.north-site--pc .north-price-hero__title,
  body.north-site--pc .north-qa-hero__title,
  body.north-site--pc .north-contact-hero__title,
  body.north-site--pc .north-about-hero__title,
  body.north-site--pc .north-privacy__title {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.north-site--pc .north-construction-table-wrap,
  body.north-site--pc .north-price-table-wrap,
  body.north-site--pc .north-inheritance-table-wrap,
  body.north-site--pc .north-lp-price-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.north-site--pc iframe,
  body.north-site--pc .north-about-map iframe {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  body.north-site--pc img,
  body.north-site--pc svg {
    max-width: 100%;
  }

  body.north-site--pc .north-footer__upper-inner,
  body.north-site--pc .north-footer__nav-list {
    min-width: 0;
  }

  body.north-site--pc .north-footer__address,
  body.north-site--pc .north-footer__tel,
  body.north-site--pc .north-footer__fax,
  body.north-site--pc .north-footer__mail,
  body.north-site--pc .north-footer__nav-list a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  /* Mobile footer: hide global nav + LINE pending (keep office info) */
  body.north-site--pc .north-footer__nav {
    display: none !important;
  }

  body.north-site--pc .north-footer__cta-wrap {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0;
    min-height: 0;
    overflow: hidden;
  }

  body.north-site--pc .north-footer__upper-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  body.north-site--pc .north-footer__upper {
    padding-block: clamp(1.75rem, 5vw, 2.5rem);
  }

  body.north-site--pc .north-footer__hours {
    margin-bottom: 0;
  }

  body.north-site--pc .north-footer__lower {
    padding-block: 0.85rem;
  }
}

@media (max-width: 768px) {
  body.north-site--pc .wrapper,
  body.north-site--pc .wrapper-fluid {
    padding-inline: clamp(1rem, 4vw, 1.25rem);
  }

  body.north-site--pc.north-page-index .north-lp-section {
    padding-block: clamp(2.5rem, 9vw, 4rem);
  }

  body.north-site--pc.north-page-index .north-lp-check-grid,
  body.north-site--pc.north-page-index .north-lp-steps,
  body.north-site--pc .north-construction-card-grid,
  body.north-site--pc .north-construction-steps,
  body.north-site--pc .north-inheritance-card-grid,
  body.north-site--pc .north-inheritance-card-grid--three,
  body.north-site--pc .north-inheritance-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  body.north-site--pc .north-construction-hero {
    min-height: clamp(13rem, 58vw, 17rem);
  }

  body.north-site--pc .north-construction-hero__inner {
    padding-block: clamp(2rem, 8vw, 3rem);
  }

  body.north-site--pc .north-construction-hero__title {
    font-size: clamp(1.4rem, 6vw, 1.85rem);
    line-height: 1.4;
  }

  body.north-site--pc .north-construction-hero__lead {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  body.north-site--pc .north-construction-breadcrumb ol {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body.north-site--pc .north-construction-cta__actions,
  body.north-site--pc .north-price-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.north-site--pc .north-construction-cta__actions .theme-button,
  body.north-site--pc .north-price-cta__btn,
  body.north-site--pc .north-footer__inquiry-btn {
    width: 100%;
    max-width: 100%;
  }

  body.north-site--pc .north-footer__upper-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  body.north-site--pc .north-footer__nav-list {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Bottom fixed CTA (LINE + phone) — smartphone only */
  body.north-site--pc {
    --north-mobile-cta-h: 3.5rem;
    padding-bottom: calc(var(--north-mobile-cta-h) + env(safe-area-inset-bottom, 0px));
  }

  body.north-site--pc .site-content-area,
  body.north-site--pc main#main {
    padding-bottom: 0;
  }

  body.north-site--pc .north-footer {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  body.north-site--pc .north-footer__lower {
    margin-bottom: 0;
    padding-bottom: 0.85rem;
  }

  body.north-site--pc .north-footer__lower::before,
  body.north-site--pc .north-footer__lower::after,
  body.north-site--pc .north-footer::before,
  body.north-site--pc .north-footer::after {
    content: none;
    display: none;
  }

  body.north-site--pc .north-mobile-fixed-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    height: var(--north-mobile-cta-h);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: content-box;
    background: #f3f6f9;
    border-top: 0;
    box-shadow: none;
    margin: 0;
  }

  body.north-site--pc .north-mobile-fixed-cta__btn {
    flex: 1 1 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: var(--north-mobile-cta-h);
    margin: 0;
    padding: 0 0.5rem;
    font-family: var(--north-font);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    border: 0;
    border-radius: 0;
    line-height: 1.2;
    white-space: nowrap;
  }

  body.north-site--pc .north-mobile-fixed-cta__btn--line {
    background: #06c755;
    color: #fff;
    border-right: 1px solid rgba(20, 32, 50, 0.08);
  }

  body.north-site--pc .north-mobile-fixed-cta__btn--line:hover,
  body.north-site--pc .north-mobile-fixed-cta__btn--line:focus-visible {
    background: #05b34c;
    color: #fff;
  }

  body.north-site--pc .north-mobile-fixed-cta__btn--tel {
    background: #e7edf3;
    color: #154476;
  }

  body.north-site--pc .north-mobile-fixed-cta__btn--tel:hover,
  body.north-site--pc .north-mobile-fixed-cta__btn--tel:focus-visible {
    background: #dfe6ee;
    color: #154476;
  }

  /* Keep offcanvas above fixed CTA; hide CTA while menu is open */
  body.north-site--pc.offcanvas-open .north-mobile-fixed-cta {
    visibility: hidden;
    pointer-events: none;
  }
}

@media (max-width: 430px) {
  body.north-site--pc #masthead.north-header--ref .site-header-left {
    padding-left: 0.75rem;
    padding-right: 0.875rem;
  }

  body.north-site--pc.north-page-index .north-lp-risk {
    padding-right: 3.75rem;
  }
}

/* 1024px前後: 2段PCヘッダーを維持しつつナビを画面内に収める */
@media (min-width: 992px) and (max-width: 1099px) {
  body.north-site--pc #masthead.north-header--ref .primary-menu-wrapper {
    padding-inline: 0.25rem;
  }

  body.north-site--pc #masthead.north-header--ref .main-navigation .primary-menu {
    gap: 0.1rem 0.2rem;
  }

  body.north-site--pc #masthead.north-header--ref .main-navigation .primary-menu > .menu-item > a {
    padding: 0.65rem 0.25rem;
  }

  body.north-site--pc #masthead.north-header--ref .main-navigation .primary-menu > .menu-item > a .nav-label-ja {
    font-size: 0.7rem;
  }

  body.north-site--pc #masthead.north-header--ref .main-navigation .primary-menu > .menu-item > a .nav-label-en {
    font-size: 0.42rem;
    letter-spacing: 0.08em;
  }
}
