/* ===============================================
  ハンバーガーボタン
=============================================== */

.menu-wrapper {
  position: relative;
}

/* ハンバーガー本体 */
.menu-icon {
  width: 40px;
  height: 30px;
  position: fixed;
  top: 30px;
  right: 20px;   
  cursor: pointer;
  z-index: 100;
  display: inline-block;
}

.menu-icon span {
  display: block;
  height: 4px;
  margin: 6px 0;
  background: #7a7a7a;
  border-radius: 2px;
  transition: 0.4s;
}

/* Xに変形 */
#menu-toggle:checked + .menu-icon span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
#menu-toggle:checked + .menu-icon span:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked + .menu-icon span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* オーバーレイ */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
  z-index: 90;
}

#menu-toggle:checked ~ .overlay {
  opacity: 1;
  pointer-events: auto;
}

/* メニュー本体 */

.menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 95;
  opacity: 0;
}

/* ドット専用レイヤー */
.menu::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle, rgba(255,255,255,0.1) 4px, transparent 5px);

  background-size: 26px 26px;

  -webkit-mask-image: linear-gradient(to top, black 45%, transparent 100%);
  mask-image: linear-gradient(to top, black 45%, transparent 80%);

  pointer-events: none;
}

#menu-toggle:checked ~ .menu {
  transform: translateX(0);
  opacity: 1;
}

.menu ul {
  list-style: none;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  padding: 40px 40px;
  box-sizing: border-box;
}

.menu li {
  margin: 30px 0;
  position: static !important;
  display: block !important;
}

.menu a {
  position: relative;
  text-align: center;
  display: block;
  width: 100%;
  text-decoration: none;
  color: #fff;   /* ← 白に変更 */
  font-size: 2rem;
  transition: color 0.3s;
}
.menu a:hover {
  color: #ccc;   /* ← ホバーは少しグレー */
}
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.5s ease;
}

.menu a:hover::after {
  width: 100%;
}

.menu-sns {
  display: flex;
  flex-direction: column; /* 上下に並べる */
  align-items: center;    /* 全体中央揃え */
  gap: 20px;              /* 上下の間隔 */
}

.sns-row {
  display: flex;
  justify-content: center; /* 各行中央揃え */
  gap: 40px;               /* 各アイコン間 */
}

.sns-item {
  display: flex;
  flex-direction: column; /* 上下に並べる */
  align-items: center;    /* 横方向中央揃え */
  gap: 6px;               /* アイコンと案内文字の間隔 */
}


.menu-sns a {
  position: relative; /* 子要素の文字を重ねるため */
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(128, 128, 128, 0.5);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.menu-sns a span {
  position: absolute;
  color: #000;          /* 黒文字 */
  font-size: 0.9rem;
  font-weight: bold;
  opacity: 0;           /* 初期は非表示 */
  transition: opacity 0.3s ease;
  pointer-events: none; /* 文字にマウスイベントが行かないように */
  text-align: center;
  width: 100%;
}

.menu-sns a:hover span {
  opacity: 1;
}

.menu-sns a img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity 0.3s ease; /* なめらかに変化 */
}

.menu-sns a:hover img {
  opacity: 0.2; /* ホバーで20%の透明度に */
}

.sns-item .label {
  font-size: 0.85rem;
  font-weight: bold;
  color: #fff;        /* 白文字 */
  text-align: center;
}


@media (max-width: 600px) {
    /* ---------- メニュー ---------- */
  .menu a {
    font-size: 1.5rem;
  }

  .menu-icon {
    top: 15px;
  }
  .menu-sns a {
    position: relative; /* 子要素の文字を重ねる */
    width: 60px;
    height: 60px;
  }
  .menu-sns a img {
    width: 60px;
    height: 60px;
  }
  .sns-item .label {
    font-size: 0.7rem;
  }
}