/* メニューラッパー（相対配置してパネルを絶対配置）*/
  .menu {
    display: inline-block;
    position: relative;
  }

  /* メニューを開くトリガー（質問どおり span を使用）*/
  .menu-toggle {
    appearance: none;    /* 標準のボタン装飾を消す */
    display: inline-block;
    padding: 1px 1px;
    border-radius: 2px;
    background: rgba(0,0,0,0.05);
    /* border: 1px solid #ddd; */
    background-color: #003d4c;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  }

  /* パネル：初期では非表示、ホバーで出てくる */
  .menu-panel {
    position: absolute;
    top: calc(100% + 1px); /* トリガーの下に表示 */
    left: 0;
    right: 0;
    width: 95vw;
    padding: 4px 5px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.45); /* 半透明の白 */
    color: #003d4c;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transform: translateY(-6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
    z-index: 100;
    pointer-events: none; /* 非表示時はイベントを受けない */
    overflow: hidden;
  }

  /* パネル表示（ラッパーに hover があるとき） */
  .menu:hover .menu-panel,
  .menu:focus-within .menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
    pointer-events: auto; /* 表示中はクリックできる */
  }

  /* メニューアイテム */
  .menu-item {
    float: left;
    /* display: block; */
    padding: 4px 5px;
    border-radius: 2px;
    text-decoration: none;
    color: #003d4c;
    background-color: aliceblue;
    margin: 4px;
    font-size: 14px;
  }
  .menu-item:hover {
    background: rgba(255,255,55,0.28);
  }

  /* 小さい矢印（任意） */
  /* .menu-panel::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    transform: rotate(45deg);
    background: rgba(0,0,0,0.55);
    z-index: -1;
  } */