/* =========================================
   Common (Base / Header / Footer / Shared)
   common.css ver 2.6.4 (Mobile hamburger background fix)
========================================= */

/* --- レイアウトの根幹 --- */
html,
body {
  overflow-x: hidden;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================
   Base
========================================= */

:root {
  --c-bg: #edf3f7;
  --c-white: #ffffff;
  --c-dark: #283034;
  --c-gray: #7a8388;
  --c-border: #dde3e7;
  --c-green: #00a38a;
  --c-blue: #033491;
  --container-width: 1370px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--c-bg);
  color: var(--c-dark);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(92vw, var(--container-width));
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}

/* =========================================
   Buttons
========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn--primary {
  background: #129493;
  color: #fff;
  border: none;
}

.btn--white {
  background: #fff;
  color: #129493;
  border: none;
}

.btn--outline {
  background: #fff;
  color: #129493;
  border: solid;
}

.btn--primary:hover {
  opacity: 0.6; /* 指示通り60% */
}

/* =========================================
   Header（PC）
========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  height: 107px;
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.header__menu a {
  display: flex;
  align-items: center;
  height: 44px;
  line-height: 1;
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.header__menu a:hover {
  opacity: 0.6;
}

/* 下線（::after）を完全に無効化 */
.header__menu a::after {
  content: none !important;
  display: none !important;
}

/* --- ハンバーガー（PCでは非表示） --- */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-dark);
}

/* =========================================
   Footer（共通）
========================================= */


.site-footer {
  padding: 64px 16px 48px;
  background: #ffffff;
  color: #222;
  text-align: center;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ロゴ */
/* Footer logo center */
.site-footer__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.site-footer__logo img {
  max-width: 220px;
  height: auto;
}


/* ナビ */
.site-footer__nav-list {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

.site-footer__nav-list a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

/* CTA */
.site-footer__cta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid #6fb29a;
  color: #6fb29a;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
}

.footer-btn__icon {
  font-size: 18px;
}

/* 住所 */
.site-footer__address {
  font-style: normal;
  font-size: 14px;
  color: #333;
}

.footer__copyright {
  text-align: center;
}


/* =========================================
   Page Top & Subpage Hero
========================================= */

.totop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero {
  position: relative;
  height: 360px;
  background-color: #eef3f6;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  padding: 0 20px;
}

.page-hero__title {
  font-size: 28px;
  font-weight: 700;
}

/* ヘッダーを固定する設定 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* 他の要素より上に表示 */
    background-color: #fff; /* 背景が透けないように白に指定（必要に応じて調整） */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 少し影をつけると境目が見やすくなります */
}

/* ヘッダーが固定された分、メインコンテンツが隠れないように余白を作る */
body {
    padding-top: 80px; /* ヘッダーの高さに合わせて数値を調整してください */
}

/* =========================================
   全ページ共通：フッター最下部固定設定
========================================= */

/* 1. サイトの土台を画面いっぱいの高さにする */
html, body {
    height: 100%;
    margin: 0;
}

/* 2. bodyをFlexboxにして縦に並べる */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 3. メインエリアを「余ったスペース分だけ伸びる」設定にする */
/* 送っていただいたPHPの id="main" に対応させています */
#main {
    flex: 1 0 auto;
}

/* 4. フッターが勝手に縮まないように固定する */
.site-footer {
    flex-shrink: 0;
}


/* =========================================
   Responsive（モバイル）
========================================= */

@media (max-width: 960px) {

  /* ヘッダーの白背景を“確実に”出す */
  .site-header {
    height: 60px;
    position: fixed;
    width: 100%;
    background: #fff; /* ← ここが重要 */
    border-bottom: 1px solid var(--c-border);
    backdrop-filter: none;
  }

  .header__inner {
    padding: 0 16px;
  }

  .header__logo-img {
    height: 28px;
  }

  /* ハンバーガーを白い台にする（背景が消えた問題の対策） */
  .header__hamburger {
    display: flex;
    z-index: 21;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 12px;
  }

  /* ナビゲーション：全画面オーバーレイ（白） */
  .header__nav {
    position: fixed;
    inset: 0;
    background: #fff; /* ← ここも確実に白 */
    flex-direction: column;
    justify-content: center;

    /* 初期は非表示 */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  /* ★重要：開くクラス名を両対応にする（is-active / is-open） */
  .header__nav.is-active,
  .header__nav.is-open {
    opacity: 1;
    pointer-events: all;
  }

  .header__menu {
    flex-direction: column;
    gap: 24px;
  }

  /* フッター */
    .site-footer {
    padding: 48px 16px 40px;
  }

  .site-footer__nav-list {
    gap: 20px;
    margin-bottom: 32px;
  }

  .footer-btn {
    width: 100%;
    justify-content: center;
  }

  .site-footer__cta {
    gap: 16px;
  }
}
