/* common.css: header & footer basic style */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Noto Sans JP', "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: #333;
  background: #f1f1f1;
}
a {
  text-decoration: none;
  color: #333;
}

/* header {
  background: #fff;
} */

/* header の透過切り替え用（一旦コメントアウト） */
/* header { */
/* デフォルトは透明 */
/* background: transparent; */
/* transition: background 0.3s ease; */
/* } */

/* header.scrolled { */
/* スクロール時に付ける背景色 */
/* background: rgba(255, 255, 255, 1); */
/* } */

/* ----------------------------------------
   ヘッダー・基本レイアウト
---------------------------------------- */
:root {
  --header-height: 90px;
}
@media (max-width: 991px) {
:root {
  /* モバイルではヘッダーの高さを少し低めに */
  --header-height: 70px;
}
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: transparent;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.header-inner {
  max-width: 1100px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

/* ページ内リンクの見切れ防止（ヘッダー分オフセット） */
:target {
  scroll-margin-top: calc(var(--header-height) + 12px);
}

/* スキップリンク */
.skip-link {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1100;
}

/* ロゴ */
.logo img {
  height: 50px;
  width: auto;
}

/* デスクトップナビ */
.desktop-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
}
.desktop-nav a {
  color: #333;
  font-weight: 600;
  text-decoration: none;
}
.desktop-nav a:hover {
  color: #000;
}

/* ----------------------------------------
   モバイルメニュー
---------------------------------------- */
/* 初期は非表示、.open で表示 */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  overflow-y: auto;
  padding: 1rem;
  z-index: 999;
}
.mobile-nav.open {
  display: block;
}
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-items {
  padding-top: 1rem;
  padding-top: 0.5rem;
  text-align: center;
  border-bottom: 1px solid #dbdbdb;
}
.mobile-nav a {
  color: #333;
  font-size: 1.2rem;
  text-decoration: none;
}

/* ----------------------------------------
   ハンバーガーメニューアイコン
---------------------------------------- */
.hamburger {
  display: none; /* モバイルのみ later で flex に */
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger-box {
  width: 24px;
  height: 18px;
  position: relative;
  display: inline-block;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}
.hamburger-inner::before {
  top: -6px;
}
.hamburger-inner::after {
  top: 6px;
}
/* トグル時 (×) */
.hamburger.active .hamburger-inner {
  background-color: transparent;
}
.hamburger.active .hamburger-inner::before {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.active .hamburger-inner::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ----------------------------------------
   メディアクエリ：モバイル専用
---------------------------------------- */
@media (max-width: 991px) {
  /* デスクトップナビを隠す */
  .desktop-nav {
    display: none;
  }
  /* ハンバーガーを表示＆中央寄せ */
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e05414;
    width: 45px;
    height: 45px;
    border-radius: 5px;
  }
}


/* -------------------------------------------
    サブヒーロー（中央寄せ）
---------------------------------------------*/
.subhero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.subhero__inner { width: 100%; }


/* ==========================
   Section Banner  (BEM命名)
========================== */
.section-banner {
  background-repeat: no-repeat;
  background-color: #002b7d;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100vw;
  height: 10vh;
  min-height: 220px; /* 好みの高さに調整 */
  color: #fff;
  text-align: center;
  background-size: cover;
  background-position: center var(--pos-y, 50%);
  overflow: hidden;
}

.section-banner::before {
  /* 画像を暗くして文字を可読に */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* 透過黒幕 */
  z-index: 1;
}

.section-banner__heading {
  position: relative; /* before の上に配置 */
  z-index: 2;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
}

@media screen and (max-width: 991px) {
  .section-banner {
    background-size: 150%;
    background-position: bottom;
  }
}

@media screen and (max-width: 768px) {
  .section-banner {
    background-size: 175%;
    background-position: bottom;
  }
}

@media screen and (max-width: 425px) {
  .section-banner {
    background-size: 280%;
    background-position: bottom;
  }
}

/* 画面外では GPU 負荷を減らすため背景を固定しない */
.section-banner:not(.is-active) {
  background-attachment: scroll;
}

/* ===========================
   CTA 用パララックスバナー
=========================== */
.section-banner--cta {
  background-image: url("../img/contact-back05.jpg");
  min-height: 300px;
}

.section-banner__box {
  position: relative; /* before の上に配置 */
  z-index: 2;
}

.section-banner__h3 {
  color: #ec8555;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
.contact-item-box {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.contact-item-box > .btn {
  border-radius: 5px;
  width: 50%;
}

@media screen and (max-width: 991px) {
  .contact-item-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .contact-item-box > .btn {
    width: 100%;
  }
}

/* フッター前セパレーター内のCTAスタイル */
.footer-separator > section {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: 100%; /* 必要に応じて max-width を追加 */
}

.footer-separator h2 {
  color: #fff;
  margin-bottom: 1.5rem;
}
.footer-separator .btn-tel {
  position: relative;
  padding: 0.75rem 2rem;
  z-index: 100;
  background-color: #198754;
}
.footer-separator .btn-tel:hover {
  background-color: #19794c;
  box-shadow: 0 0 0 .2rem rgba(171, 184, 195, .25);
}

.footer-separator .btn-primary {
  position: relative;
  padding: 0.75rem 2rem;
  z-index: 100;
}
.footer-separator .btn-primary:hover {
  box-shadow: 0 0 0 .2rem rgba(171, 184, 195, .25);
}

footer {
  background: #f8f9fa;
  color: #666;
  font-size: 0.9rem;
}

/* 選択時のハイライトをオレンジに */
::selection {
  background-color: #e05414;
  color: #fff;
}
::-moz-selection {
  background-color: #e05414;
  color: #fff;
}

/* スクロールアップボタン */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background-color: #e05414;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: none;              /* 初期は非表示 */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease;
}
.scroll-top.show {
  display: flex;
  opacity: 1;
}
.scroll-top.hide {
  opacity: 0;
}
