/*
Theme Name: 三健不動産 2026
Author: Tokyo Drive
Version: 1.0
*/

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
  border-bottom: 1px solid #eee;
}

.hero {
  height: 60vh;
  background: #ddd;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo a {
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.site-header.is-scrolled .site-logo a {
  color: #222;
}

.hero {
  padding-top: 100px; /* ヘッダー分＋余白 */
}

/* =========================
   ハンバーガーメニュー
========================= */

/* ハンバーガーボタン本体 */
.hamburger {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}

/* ハンバーガーの線 */
.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #000;
  transition: 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

/* =========================
   スマホ時の表示制御
========================= */
@media (max-width: 768px) {

  /* ハンバーガー表示 */
  .hamburger {
    display: block;
  }

  /* ナビは通常非表示 */
  .global-nav {
    display: none;
  }

  /* 開いた時 */
  .global-nav.is-open {
    display: block;
  }
}

/* =========================
   ヘッダー共通（高さ確保）
========================= */
.site-header {
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px; /* ← これが重要 */
  padding: 0 20px;
}

/* =========================
   ヘッダー基準位置
========================= */
.site-header {
  position: relative;
}

@media (max-width: 768px) {

  /* ナビ本体（開いたとき） */
  .global-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;          /* ヘッダーの真下 */
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
  }

}

/* =========================
   ヘッダー中身を最前面に
========================= */
.header-inner {
  position: relative;
  z-index: 1100;
}

/* =========================
   ヘッダー背景（初期）
========================= */
.site-header {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
}
