/* header
-------------------------------------*/
header {
  position: fixed;
  width: calc(100vw - 100px);
  margin: auto;
  top: 20px;
  left: 0;
  right: 0;
  border-radius: 100px;
  box-shadow: 0px 0px 5px 0px #d0d0d0;
  background-color: white;
  z-index: 99;
}

@media screen and (max-width: 1200px) {
  header {
    width: 100%;
    box-shadow: none;
    background-color: transparent;
  }
}

header #header {
  position: relative;
  width: 100%;
  padding: 5px 50px 5px 40px;
}

@media screen and (max-width: 600px) {
  header #header {
    padding: 0 10px;
  }
}

header #header .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header #header .header .main .titl a img {
  width: 120px;
  margin: 5px 0 0 5px;
}

header #header .header .menu {
  width: 100%;
}

header #header .header .menu .cont nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

header #header .header .menu .cont nav ul li {
  margin-right: 50px;
}

@media screen and (max-width: 1200px) {
  header #header .header .menu .cont nav ul li {
    /* display: none; */
    margin: 0;
  }
}



header #header .header .menu .cont nav ul li:last-child {
  margin: 0;
}

@media screen and (max-width: 600px) {
  header #header .header .menu .cont nav ul li:last-child {
    margin: 0;
  }
}

header #header .header .menu .cont nav ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 600;
}

header #header .header .menu .cont nav ul li a .en {
  margin: 0 0 -5px;
  font-size: 16px;
}

header #header .header .menu .cont nav ul li a .ja {
  font-size: 12px;
}

header #header .header .menu .cont nav ul li a img {
  width: 40px;
  height: auto;
}

@media screen and (max-width: 375px) {
  header #header .header .menu .cont nav ul li a img {
    width: 30px;
  }
}

/* header
-------------------------------------*/

/* ▼ ハンバーガーボタン */
.hamburger {
  display: none;
  /* PCでは非表示 */
  width: 30px;
  height: 22px;
  position: absolute;
  top: 25px;
  right: 25px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  margin: 5px 0;
  background: #333;
  border-radius: 3px;
  transition: 0.4s;
}

/* アニメーション（開閉） */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

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

/* ▼ スマホ用メニュー全体 */
@media screen and (max-width: 1200px) {
  .hamburger {
    display: block;
  }

  .menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    display: none;
    /* 初期は非表示 */
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .menu.active {
    display: flex;
  }

  .menu ul {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .menu ul li {
    margin: 0;
  }

  .menu ul li a {
    font-size: 22px;
    color: #333;
    text-decoration: none;
  }

  .menu ul li a .ja {
    font-size: 13px;
    color: #777;
  }

  /* 固定ヘッダーの白背景削除（あなたの既存CSSに合わせる） */
  header {
    background: transparent;
    box-shadow: none;
  }
}