.header-block {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.header-inner__logo {
  width: 200px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
  padding: 10px;
}

.header-inner__logo__img {
  width: 100%;
  height: auto;
}

.header-inner {
  position: relative;
  /* ← 追加：基準をつくる */
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  padding: 0 10px;
  width: 100%;

}

.header {
  background-color: #fff;


}

.header-menu {
  display: flex;
  gap: 30px;
  margin-left: 15px;
}

.header-menu li {
  list-style-type: none;
}

.header-menu__category {
  transition: .2s;
  color: #616161;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
}

.header-menu__category:hover {
  color: black;
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
    flex-direction: row-reverse;
  }

  .drawer-user {
    margin-left: 15px;
  }
}


.header-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  list-style-type: none;
}

.header-nav__company {
  transition: .2s;
  color: #616161;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.header-nav__signin {
  transition: .2s;
  color: #616161;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.header-nav__company:hover,
.header-nav__signin:hover {
  color: black;
}

.header-nav__signup {
  margin: -2px 0;
  padding: 8px 15px;
  border-radius: 18px;
  background: #27b46d;
  color: #fff;
  line-height: 20px;
  text-decoration: none;
}





/* ---------- 共通 ---------- */
.hamburger {
  display: none;
  /* 初期は隠す（PC） */
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  position: fixed;
  top: 30px;
  right: 30px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: .3s;
}

@media (min-width: 768px) {

  .drawer-user__hr,
  .drawer-user__name {
    display: none;
  }
}

.header-nav img {
  width: 56px;
  height: auto;
  border-radius: 9999px;
}

/* ---------- 768px 以下 ---------- */
@media (max-width: 768px) {

  /* ─── ドロワー内ユーザ情報 ─── */
  .drawer-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 80px 20px 0 20px;
  }

  .drawer-user img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
  }

  .drawer-user__name {
    font-weight: 700;
    font-size: 18px;
    color: #616161;
  }

  /* ─── ドロワーのメニューリスト ─── */
  .drawer-menu li {
    width: 100%;
  }

  .drawer-menu a:hover {
    color: #000;
  }

  /* ログアウトだけ色を変えたい場合 */
  .drawer-menu a.logout {
    color: #007aff;
  }





  .header-inner__logo {
    width: 150px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    padding: 10px;
  }

  .header-nav__user {
    display: flex;

  }

  .header-nav img {
    width: 64px;
    height: auto;
    border-radius: 9999px;
  }

  /* デフォルト＝ヘッダーの中で absolute → スクロールと一緒に流れる */
  .hamburger {
    display: flex;
    position: absolute;
    /* ← fixed ではなく absolute */
    top: 40px;
    /* ヘッダー中央 */
    right: 30px;
    transform: translateY(-50%);
    z-index: 1101;
  }

  /* ドロワーを開いた瞬間だけ fixed に切替えて右上へ */
  .hamburger.active {
    position: fixed;
    top: 30px;
    right: 30px;
    transform: none;
    /* 中央寄せ解除 */
  }

  /* ボタン表示 */
  .header-nav {
    position: fixed;
    /* ドロワー風 */
    top: 0;
    right: -100%;
    /* 画面外に隠す */
    width: 60%;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    transition: 0.6s;
    transform: translateX(100%);
    /* ←NEW: 右に隠す */
    flex-direction: column;
    z-index: 1100;
    /* ボタンより下 */
  }

  .header-nav.active {
    right: 0;
    transform: translateX(0);
  }

  /* ボタンで表示 */

  .header-nav ul {
    flex-direction: column;
    gap: 25px;
    padding: 0 15px;
  }
}

/* ---------- ボタン変形（開閉アニメ） ---------- */
.hamburger.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}



/* ====== 暗幕ノード用 ====== */

/* ========= 全面暗幕 (#hamb-overlay) ========= */
#hamb-overlay {
  position: fixed;
  inset: 0;
  /* 画面全体を覆う */
  background: rgba(0, 0, 0, .45);
  /* 半透明黒 */
  opacity: 0;
  /* 初期は透明 */
  pointer-events: none;
  /* クリック無効 */
  transition: opacity .35s ease;
  /* ←速度はここで調整 */
  z-index: 1099;
  /* nav の直下 */
}

#hamb-overlay.active {
  opacity: 1;
  /* フェードイン */
  pointer-events: auto;
  /* クリック有効化 */
}

/* PC 幅では暗幕を消す（任意） */
@media (min-width:768px) {
  #hamb-overlay {
    display: none !important;
  }
}


.header-nav.active li {
  width: 100%;
}