/* 全体 */
body {
  background-color: #fbfafc;
  color: #292524;
  font-family: "Noto Sans JP", sans-serif;
}

.header {
  height: 80px;
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  justify-self: start;
}

.logo {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 1px;
}

/* サブタイトル */
.subtitle {
  font-size: 14px;
  font-weight: bold;
}

/* ナビ */
.header-nav {
  display: flex;
  align-items: center;
}

.header-nav ul {
  display: flex;
  align-items: center;
  gap: 50px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav a {
  color: #2563eb;
  font-size: 15px;
  font-weight: 600;

  text-decoration: underline;
  text-underline-offset: 4px;

  transition: .3s;
}

.header-nav a:hover {
  color: #1d4ed8;
}

.header-user {
  font-size: 18px;
  font-weight: 600;
}

.header-buttons {
  justify-self: end;
  display: flex;
  gap: 12px;
}

.logout-btn {
  padding: 10px 15px;
  border-radius: 20px;
  font-weight: bold;
  background-color: #2e8b57;
  color: white;
}

.user-name {
  font-weight: bold;
  line-height: 3;
}

/* ハンバーガーメニュー */
/* PCでは非表示 */
.menu-button,
.mobile-menu {
  display: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {

  .header {
    position: relative;
    height: 65px;
    padding: 0 16px;
  }

  /* ロゴ */
  .logo {
    font-size: 22px;
    letter-spacing: 0.5px;
  }

  .subtitle {
    font-size: 10px;
  }

  /* PC用ナビを非表示 */
  .header-nav {
    display: none;
  }

  /* PC用ユーザー操作を非表示 */
  .header-buttons {
    display: none;
  }

  /* ハンバーガーボタン */
  .menu-button {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 7px;
    border: none;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #292524;
    transition: 0.2s;
  }

  /* モバイルメニュー */
  .mobile-menu {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background-color: #fbfafc;
    border-top: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  /* メニューを開いた状態 */
  .mobile-menu.open {
    display: block;
  }

  .mobile-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-menu li {
    border-bottom: 1px solid #ddd;
  }

  .mobile-menu li a {
    display: block;
    padding: 14px 5px;
    color: #2563eb;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
  }

  /* ユーザー情報 */
  .mobile-user-area {
    padding-top: 15px;
  }

  .mobile-user-area .user-name {
    display: block;
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 14px;
  }

  /* ログアウトボタン */
  .mobile-user-area .logout-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
  }

}