/* 外枠：横は伸ばす。上下センターのみ維持 */
.navmenu-button-wrap {
  width: 580px;
  height: 118px;
  background: linear-gradient(#6b7278, #4d5257);
  border-radius: 18px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25) inset,
    0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center; /* 垂直方向センター */
  align-items: stretch; /* ← 中身を横いっぱいに伸ばす（重要） */
  padding: 10px; /* ベースとボタン群の左右余白。お好みで 8?12px */
}

/* 中身のラッパー：幅・高さとも100%でベースいっぱいに */
.navmenu-button-inner {
  display: flex;
  flex-direction: column;
  gap: 6px; /* 上段と下段の間隔 */
  width: 100%;
  height: 100%;
}

/* 各行：横いっぱい。高さを2分割（間のgap 6pxを考慮） */
.navmenu-button-row {
  display: flex;
  gap: 6px;
  width: 100%;
  height: calc((100% - 6px) / 2);
}

.navmenu-button-row:last-child {
  margin-bottom: 0;
}

/* 各ボタンの“ベース”：角丸 + 立体 */
.navmenu-button-btn {
  min-width: 0; /* 念のため：フレックス計算時にテキストで押し広げられないように */

  flex: 1 1 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(#646a70, #3f444a) padding-box; /* 濃いグラデでベース */
  border: 1px solid #2b2f34;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.15) inset,
    /* 上のハイライト */ 0 -2px 0 rgba(0, 0, 0, 0.35) inset,
    /* 下の影 */ 0 1px 2px rgba(0, 0, 0, 0.25); /* 外側の影 */
  color: #fff;
  text-decoration: none;
  text-align: center;
  line-height: 1.15;
  padding: 0 10px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, Arial,
    sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 擬似的な“内光沢” */
.navmenu-button-btn::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 40%;
  border-radius: 10px 10px 8px 8px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

/* ボタン内テキスト（2行対応・中央寄せ） */
.navmenu-button-btn span {
  display: block;
  font-size: 14px;
}
.navmenu-button-btn .small {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
}

/* 仕切り（区切り溝） */
.navmenu-button-btn + .navmenu-button-btn {
  margin-left: 0;
}
.navmenu-button-btn:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 8px;
  bottom: 8px;
  width: 6px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.15),
    rgba(0, 0, 0, 0.55),
    rgba(255, 255, 255, 0.08)
  );
  border-radius: 3px;
  pointer-events: none;
}

/* 左端・右端の角フィット（見た目を整えるだけ） */
.navmenu-button-row .navmenu-button-btn:first-child {
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}
.navmenu-button-row .navmenu-button-btn:last-child {
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}
.navmenu-button-row .navmenu-button-btn:last-child::after {
  display: none;
}

/* ホバー／押下 */
.navmenu-button-btn:hover {
  filter: brightness(1.06);
}
.navmenu-button-btn:active {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 -1px 0 rgba(0, 0, 0, 0.45) inset, 0 1px 1px rgba(0, 0, 0, 0.25);
  transform: translateY(1px);
}

/* 1列の幅配分を調整したい場合は、任意で .w2 .w3 を使う */
.navmenu-button-w2 {
  flex: 2 1 0;
}
.navmenu-button-w3 {
  flex: 3 1 0;
}

/* 全体のテキストに白フチっぽい視認性アップ（古い画像風） */
.navmenu-button-btn span {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7), 0 0 2px rgba(0, 0, 0, 0.35);
}
