/* =========================
   Hamburger Button
========================= */
.menuBtn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 1000;
  color: #000;
}

.menuBtn__bars{
  width: 34px;
  height: 22px;
  position: relative;
  display: inline-block;
}
.menuBtn__bars::before,
.menuBtn__bars::after{
  content:"";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: currentColor;   /* ←色をmenuBtnに追従 */
  border-radius: 999px;
}
.menuBtn__bars::before{ top: 4px; }
.menuBtn__bars::after { bottom: 4px; }

.menuBtn__label{
  font-size: 12px;
  letter-spacing: .12em;
}

/* =========================
   Overlay
========================= */
.drawerOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9998;
}

/* =========================
   Drawer
========================= */
.drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(420px, 92vw);
  background: var(--yellow);
  z-index: 9999;
  transform: translateX(104%);
  transition: transform .25s ease;
  box-shadow: -18px 0 40px rgba(0,0,0,.18);
}
.drawer.is-open{ transform: translateX(0); }

.drawer__inner{
  height: 100%;
  overflow: auto;
  padding: 18px 14px 20px;
}

.drawer__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.drawer__title{
  margin: 0;
  font-weight: 1000;
  font-size: 18px;
  letter-spacing: .08em;
}

.drawer__close{
  /* ブラウザ標準UIを無効化 */
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: rgba(255,255,255,.55);  /* 白寄りで黄色背景に馴染ませる */
  color: #111;                         /* 念のため */
  text-decoration: none;

  /* タップ時の青ハイライト除去（iOS） */
  -webkit-tap-highlight-color: transparent;

  width: 44px;
  height: 44px;
  border-radius: 14px;
  cursor: pointer;

  /* “×”文字は使わない（フォント差/青化の原因になることがある） */
  font-size: 0;
  line-height: 0;

  position: relative;
}


/* ×を線で描画（端末差なし） */
.drawer__close::before,
.drawer__close::after{
  content:"";
  position:absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 3px;
  background: #111;
  border-radius: 999px;
  transform-origin: center;
}

.drawer__close::before{
  transform: translate(-50%, -50%) rotate(45deg);
}
.drawer__close::after{
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* 押したときも青くしない */
.drawer__close:focus,
.drawer__close:focus-visible{
  outline: 2px solid rgba(17,17,17,.35);
  outline-offset: 2px;
}
.drawer__close:active{
  transform: translateY(1px);
}

/* =========================
   Group (white card)
========================= */
.drawerGroup{
  margin-top: 12px;
  padding: 14px 12px 12px;
  background: rgba(255,255,255,.40);
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}

.drawerGroup__title{
  margin: 0 0 10px;
  font-weight: 1000;
  font-size: 18px;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.drawerGroup__title::before{
  content:"";
  width: 4px;
  height: 22px;
  background: rgba(17,17,17,.55);
  border-radius: 2px;
}

/* =========================
   Links (1 item per row)
========================= */
.drawerLinks{
  list-style: none;
  margin: 12px 0 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start; /* 左寄せ */
}

.drawerLinks > li{
  width: 100%;
}

/* pillリンク */
.drawerLinks > li > a{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;

  width: 100%;
  max-width: 520px;

  text-decoration: none;
  color: rgba(17,17,17,.92);
  font-weight: 900;
  font-size: 14px;
  line-height: 1.25;

  background: rgba(255,255,255,.65);
  border: 1px solid rgba(17,17,17,.10);
  border-radius: 999px;
  padding: 8px 12px 8px 42px;
}

/* 黒丸＋矢印 */
.drawerLinks > li > a::before{
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #111;
}
.drawerLinks > li > a::after{
  content: "›";
  position: absolute;
  left: 12px;
  top: 45%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--yellow);
  font-size: 14px;
  line-height: 1;
}

.drawerLinks > li > a:hover{ opacity: .85; }

/* =========================
   PC
========================= */
@media (min-width: 900px){
  .drawer{ width: min(400px, 42vw); }
  .drawerLinks > li > a{ font-size: 15px; }
}
