/* SEO対策用のsr-only　*/
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; /* 改行で表示されないようにする */
  border: 0;
}

/* body背景 */
body {
  margin: 0 auto;
}


/* PCヘッダー全体を固定表示 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: background-color 0.3s, border-color 0.3s;
}

/* スクロール後のスタイル */
.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.8); /* 半透明の白 */
  border-bottom: 1px solid #ddd;
}

/* ヘッダー内の横並び配置 */
.header-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between; /* 左：ロゴ / 右：メニュー */
  align-items: center;
}

/* ロゴ */
.logo img {
  width: 150px;
  height:auto;
  padding-top: 15px;
}

/* メニュー */
.nav-menu ul {
  display: flex;
  gap: 23px; /* 項目間の余白 */
  list-style: none;
  margin: 0;
  padding-right: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.2s;
  padding : 5px;
}

.nav-menu a:hover {
  color: white; /* ホバー時の色 */
  background-color: navy;
}


/* 端末での表示設定 */
.mobile-header { display: none; }

@media (max-width: 767px) {
  .site-header   { display: none; }  /* PCヘッダー隠す（既存） */
  .mobile-header { display: block; }
}

/* ========== モバイルヘッダー本体 ========== */
.mobile-header {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 65px;
  background: transparent; /* 初期は透明でもOK。必要なら白などに */
  border-bottom: 1px solid transparent;
  z-index: 1100;
  transition: background-color 0.3s, border-color 0.3s;
}

/* スクロールで背景白透過 */
.mobile-header.scrolled {
  background-color: rgba(255, 255, 255, 0.8); /* 半透明の白 */
  border-bottom: 1px solid #ddd;
}

.mobile-header__inner {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.mobile-logo img {
  height: auto;
  width: 120px;
  display: block;
  padding-top: 10px;
}

/* ========== ハンバーガーアイコン ========== */
.nav-toggle { display: none; } /* チェック用inputは非表示 */

.hamburger {
  --bar-w: 24px;
  --bar-h: 2px;
  --gap: 6px;
  width: var(--bar-w);
  height: calc(var(--bar-h) * 3 + var(--gap) * 2);
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1200; /* オーバーレイより上 */
}

.hamburger span {
  display: block;
  width: 100%;
  height: var(--bar-h);
  background: #111;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ========== オーバーレイ＆メニュー ========== */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: saturate(120%) blur(2px);
  pointer-events: none;
  transition: opacity .25s;
  opacity: 0;
  z-index: 1200;
}
/* 右上のCLOSEボタン */
.overlay-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 1203;               /* メニューより前に */
  display: inline-block;
  padding: 8px 12px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

/* 背景をタップして閉じるための透明ボタン（ラベルでトグル） */
.overlay-close {
  position: absolute;
  inset: 0;
  content: "";
  display: block;
}

/* メニュー本体（中央に縦並び） */
.mobile-nav {
  position: relative;
  z-index: 1202;         /* 透明閉じるレイヤーより上 */
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 24px 32px;
}

.mobile-nav li + li { margin-top: 12px; }

.mobile-nav a {
  display: block;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 30px;
  padding: 10px 8px;
  border-radius: 8px;
  transition: background-color .2s, color .2s;
}
.mobile-nav a:hover {
  background: #f0f2f5;
}

/* ========== チェックで表示ON ========== */
/* input:checked ~ overlay で切り替え（JS不要） */
.nav-toggle:checked ~ .mobile-nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* フッター設定　*/
.site-footer {
  background: #f7f7f8;
  border-top: 1px solid #e5e5e5;
  margin-top: 48px;
  padding: 28px;
  color: #333;
  font-size: 14px;
}

.footer-container {
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.footer-brand img {
  width: 200px;
  height: auto;
  display: block;
  margin: -30px 0;
}

.footer-copy {
  margin: 6px 0 0;
  color: #666;
  font-size: 12px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-links a {
  color: #333;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* 768px以上で3カラム */
@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 1.2fr 1fr 1.2fr;
    align-items: start;
  }
}