@charset "utf-8";

/**********************************　
ハンバーガーメニュー（最終完成版）
************************************/

@media (max-width: 1080px) {

  /* =========================
     ハンバーガーボタン
  ========================= */
  .hamburger {
    position: fixed;
top: 60px;
            right: 60px;
            width: 75px;
            height: 65px;
    border: 1px solid #b89b4c;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 9999;
    background: rgba(0,0,0,0.6);
  }

  .hamburger span {
    width: 22px;
    height: 2px;
    background: #fff;
    transition: 0.4s;
  }

  /* × に変形 */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* =========================
     メニュー背景（横100%・高さは中身）
  ========================= */
  .hamburger-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;              /* ← 横全面 */
    background: rgba(0,0,0,0.88);
    padding: 40px 0;          /* 上下余白 */
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
    z-index: 9998;
  }

  .hamburger-menu.active {
    opacity: 1;
    visibility: visible;
  }

  /* =========================
     メニュー縦並び
  ========================= */
  .hamburger-menu ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;           /* 中央寄せ */
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hamburger-menu li {
    width: 100%;
    text-align: center;
    padding: 18px 0;
    position: relative;
  }

  /* 金色の仕切り線 */
  .hamburger-menu li:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      #b89b4c,
      transparent
    );
  }

  /* =========================
     リンク文字
  ========================= */
  .hamburger-menu a {
    font-size: 22px;
    color: #b89b4c;
    letter-spacing: 0.15em;
    text-decoration: none;
    display: block;
  }

  .hamburger-menu a:hover {
    opacity: 0.7;
  }

}
