/* 基本スタイル */

#navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* 初期状態：背景透明 */
#navbar.transparent {
  background-color: transparent;
  box-shadow: none;
}

/* スクロール後：背景白＋影 */
#navbar.scrolled {
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.site-header {
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 999;
}

.header-inner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #0e0d0d;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 999;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: left;
  color: white;
  background: rgba(24, 23, 23, 0.3);
  backdrop-filter: blur(1px); /* 背景ぼかし効果 */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 1000;
  transition: background 0.3s ease;
}

/* ロゴ */
.logo img {
  max-height: 70px;
  width: auto;
}

.main-nav span { 
  color: #ffffff;
}

/* PCナビゲーション */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin-left: 200px;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: #f5f5fa;
  font-weight: 500;
  font-size: 16px;
}

.main-nav a:hover {
  color: #ff5e5e;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 30px;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 5px;
  z-index: 3000;
}

.hamburger .menu_box span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 4px 0;
  background-color: #0106f5;
  border-radius: 3px;
  transition: all 0.3s ease;
}

  .hamburger .i-menu_button_label::after {
    content: "MENU";
    color: #0106f5;
    font-size: 90%;
    text-align: center;
  }

  .hamburger .i-menu_button_label_close::after {
    content: "CLOSE";
    color: #0106f5;
  }

/* ハンバーガー → X */
.hamburger.active .menu_box span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .menu_box span:nth-child(2) {
  opacity: 0;
}
.hamburger.active .menu_box span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ページ上部の余白 */
body {
  padding-top: 0px;
}



/*menu top*/
/* 全体 */
#header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  font-family: 'Noto Sans JP', sans-serif;
}

/* 上段メニュー（ロゴ + 電話） */
#h_menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

#logo img {
  height: 50px;
}

#h_menu ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

#h_menu li {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #0e0d0d;
}

#h_menu .s_blue {
  background-color: #285ab5;
  color: #fff;
  font-weight: bold;
  padding: 2px 5px;
}

#h_menu .num {
  font-size: 1.2rem;
  /*font-size: 28px;*/
  font-weight: 900;
}

#h_menu a {
  text-decoration: none;
  color: inherit;
}

/* 下段メニュー */
#main_menu {
  background: #285ab5;
}

#main_menu .inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ナビゲーション */
#main_menu ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

#main_menu li a {
  display: block;
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

#main_menu li a:hover {
  background: rgba(255,255,255,0.2);
}

/* ハンバーガーメニュー */
.hamburger-menu {
  position: relative;
}

.menu-btn {
  display: none;
  cursor: pointer;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  content: '';
  display: block;
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* メニュー非表示（スマホ） */
#menu-btn-check {
  display: none;
}

.menu-content {
  display: flex;
}

/* ---------- スマホ対応 ---------- */
@media (max-width: 930px) {
    #h_menu ul {
    display: none;
    height: 1px;
  }
}
@media (max-width: 768px) {
  #h_menu ul {
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
  }

  /* ハンバーガー表示 */
  .menu-btn {
    /*display: block;*/
  }

  .menu-content {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: #007ACC;
    width: 200px;
    flex-direction: column;
  }

  #menu-btn-check:checked ~ .menu-content {
    /*display: flex; */
  }

  #main_menu ul {
    flex-direction: column;
    align-items: flex-start;
  }

  #main_menu li a {
    color: #333;
    width: 100%;
    padding: 12px 15px;
  }

  .main-nav {
    /*display: none;*/
    flex-direction: column;
    position: fixed;
    /*top: 90px;*/
    top: -400%;
    left:0;
    right: -100%;
    width: 100%;
    /*height: 100%; */
    background-color: #fff;
    /* padding: 60px 20px; */
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: top 0.3s ease;
  }

  .main-nav.open {
    top: 95px;
  }

  .header-inner {
    background: rgba(24, 23, 23, 0.0);
  }

  .main-nav.active {
    display: flex;
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    row-gap: 0;
    /*gap: 20px;*/
    padding: 0;
    margin: 0;
    text-align: center;
  }

  .main-nav li {
    border-top: 1px solid #ccc;
    background: #F2F0F0;
    color: #333;
    display: block;
    height: 100%;
    line-height: 50px;
    width: 100%;
  }

  .main-nav span {
    color:#333;
    
  }
  .main-nav a {
    display: block;
    color:#333;
    width: 100%;
    height: 100%;
  }

  .hamburger {
    display: flex;
    background-color: #ffffff;
  }
}