/* 全体初期化 */
* { margin:0; padding:0; box-sizing:border-box; font-family:Arial,sans-serif; }

header {
  position: relative;
  background: #e0f2fe;
  color: #0c4a6e;
  padding: 20px 0;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
}

/* ハンバーガー共通 */
.hamburger {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 1000;
}

/* 三本線 */
.hamburger div {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: 0.4s;
  transform-origin: center;
  margin: 0;
}

/* PCでは文字表示、線非表示 */
.menu-text { display: none; }

@media (min-width: 768px) {
  .hamburger {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }

  .hamburger div { display: none; }

  .menu-text {
    display: inline;
    font-size: 18px;
    color: #333;
    margin-left: 5px;
  }
}

/* メニュー本体 */
.menu {
  position: absolute;
  top: 70px;
  right: 20px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: none;
  overflow: hidden;
  z-index: 999;
}

.menu a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  font-weight: normal;
  font-size: 16px;
}

.menu a:hover { background: #e0f2fe; }

.menu.open { display: block; }

/* スマホ用 三本線を×に変える */
.hamburger.active div:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active div:nth-child(2) { opacity: 0; }
.hamburger.active div:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
