@charset "UTF-8";

/* ==========================================================================
   全ページ共通のリセット ＆ 基本設定
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #00031e;
  background-color: #fff;
  line-height: 1.6;
}

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

ul,
ol {
  list-style: none;
}

/* ==========================================================================
   共通ヘッダーのスタイリング（PC用）★追従設定を追加
   ========================================================================== */
.site-header {
  position: sticky; /* スクロール時に固定 */
  top: 0; /* 画面の最上部に張り付く位置 */
  left: 0;
  width: 100%;
  z-index: 9997; /* ハンバーガーメニュー(9998, 9999)より下に配置 */
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 3, 30, 0.05); /* 固定時に見やすくなるよう薄い影を追加 */
}

/* ログイン時のWordPress管理バー対策 */
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.header-container {
  width: 100%;
  margin: 0 auto;
  padding: 25px 25px 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* テキストロゴエリア */
.site-logo a {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 500;
  color: #00031e;
  letter-spacing: 0.05em;
}

.logo-main-min {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: #9f9f9f;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.site-nav ul {
  display: flex;
  gap: 25px;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 400;
  color: #00031e;
  letter-spacing: 0.05em;
}

/* PC表示ではハンバーガーボタンを非表示 */
.hamburger-btn {
  display: none;
}

/* ==========================================================================
   共通フッターのスタイリング
   ========================================================================== */
.footer {
  background-color: #0098ff;
  padding: 60px 20px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.footer-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-title {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.title-small {
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
}

.title-large {
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}

.footer-address {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.6;
  color: #fff;
}

.footer-nav {
  margin-top: 10px;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
}

.footer-right {
  flex: 1;
  max-width: 400px;
}

.map-container {
  position: relative;
  width: 100%;
  padding-top: 75%;
  border-radius: 8px;
  overflow: hidden;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid #e1e8ed;
  text-align: center;
}

.copyright {
  font-size: 0.8rem;
  color: #fff;
  margin: 0;
}

/* ==========================================================================
   レスポンシブ：ハンバーガーメニュー設定 (1024px以下)
   ========================================================================== */
@media (max-width: 1024px) {
  .header-container {
    position: relative; /* ボタンの絶対配置の基準にする */
    padding: 20px;
  }

  /* --- ハンバーガーボタンのスタイリング --- */
  .hamburger-btn {
    display: block;
    position: relative;
    z-index: 9999; /* メニューより前面に表示 */
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
  }

  /* 三本線の共通スタイル */
  .hamburger-btn span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #00031e;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger-btn span:nth-child(1) {
    top: 0;
  }
  .hamburger-btn span:nth-child(2) {
    top: 11px;
  }
  .hamburger-btn span:nth-child(3) {
    top: 22px;
  }

  /* ボタンがアクティブ（✕印）になったときのアニメーション */
  .hamburger-btn.is-active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
    background-color: #fff; /* 背景が青になるので白線に変える */
  }
  .hamburger-btn.is-active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-btn.is-active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
    background-color: #fff;
  }

  /* --- ナビゲーションメニュー（スマホ時） --- */
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 152, 255, 0.98); /* 協会カラーの青（少し透過） */
    z-index: 9998;

    /* 初期状態は非表示（上に隠す、または非表示） */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;

    /* メニュー内の配置（画面中央に表示） */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* メニューが開いたときのクラス */
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* PC用の横並び flex をリセットし、縦並びに上書き */
  .site-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 25px !important;
    width: 100%;
    padding: 40px 20px;
  }

  .site-nav a {
    font-size: 1.2rem !important;
    font-weight: 500;
    color: #fff !important; /* スマホメニュー内は文字を白に */
    display: block;
    padding: 10px 0;
    letter-spacing: 0.1em;
  }

  /* メニューを開いている間、背面のスクロールを固定 */
  body.menu-open {
    overflow: hidden;
  }
}

/* ==========================================================================
   レスポンシブ：スマートフォン用個別調整 (768px以下)
   ========================================================================== */
@media (max-width: 768px) {
  /* ロゴテキストの縮小調整 */
  .logo-main {
    font-size: 1.1rem;
  }

  .logo-main-min {
    font-size: 0.75rem;
  }

  .logo-sub {
    font-size: 0.7rem;
  }

  /* フッターの2カラムを縦並びにする調整 */
  .footer-container {
    flex-direction: column;
  }

  .footer-right {
    width: 100%;
    max-width: 100%;
  }

  /* 下部余白と共通FVの調整 */
  .sub-main {
    padding-bottom: 60px;
  }

  .sub-fv {
    padding: 50px 0;
  }

  .sub-fv-jp {
    font-size: 1.6rem;
  }

  /* 共通のコンテンツパディング調整 */
  .breadcrumb-container,
  .sub-section {
    padding: 30px 20px;
  }
}
