/* ===== フォント ===== */
@font-face {
  font-family: 'YDWyadewanoji';
  src: url('./fonts/YDWyadewanoji.otf') format('opentype');
}
@font-face {
  font-family: 'PopRumCute';
  src: url('./fonts/PopRumCute.otf') format('opentype');
}

/* ===== 背景グラデ＋グリッド ===== */
body {
  margin: 0;
  padding: 0;
  font-family: 'PopRumCute', sans-serif;
  background: linear-gradient(135deg, #f31dac, #7572bb, #2db9fb);
  color: #fff;
  overflow-x: hidden;
  position: relative;
  animation: bgGradientMove 30s ease-in-out infinite alternate;
}
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(117,114,187,0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,185,251,0.2) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
  animation: gridMove 30s linear infinite;
}
@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 100px 100px; }
}
@keyframes bgGradientMove {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* ===== ヘッダー ===== */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 30px;
  background: rgba(9,12,11,0.6);
  border-bottom: 2px solid #2db9fb;
  position: relative;
  z-index: 50;
}
.site-title {
  font-family: 'YDWyadewanoji';
  font-size: 2.8rem;
  text-align: center;
  text-shadow: 0 0 10px #f31dac,0 0 20px #27e65f,0 0 40px #5efcd4;
  transition: all 0.2s ease;
  animation: neonPulse 2s infinite alternate, floatTitle 6s ease-in-out infinite;
}
@keyframes neonPulse {
  from { text-shadow: 0 0 10px #f31dac,0 0 20px #27e65f,0 0 40px #5efcd4; }
  to   { text-shadow: 0 0 20px #f31dac,0 0 40px #27e65f,0 0 80px #5efcd4; }
}
@keyframes floatTitle {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ===== ハンバーガー ===== */
.menu-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 110;
}
.menu-toggle span {
  display: block;
  height: 4px;
  width: 100%;
  background: #f31dac;
  border-radius: 2px;
  box-shadow: 0 0 6px #f31dac, 0 0 12px #27e65f;
  transition: all 0.3s ease;
  animation: barPulse 2s infinite alternate;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); }
@keyframes barPulse {
  from { box-shadow: 0 0 6px #f31dac, 0 0 12px #27e65f; }
  to { box-shadow: 0 0 12px #f31dac, 0 0 24px #27e65f; }
}

/* ===== メニュー以外のオーバーレイ ===== */
#overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s;
  z-index: 50;
}
#overlay.active { opacity: 1; visibility: visible; }

/* ===== ナビメニュー ===== */
nav {
  position: fixed;
  top: 0;
  right: -400px;
  width: 280px;
  height: 100%;
  background: #7572bb;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  border-left: 2px solid #2db9fb;
  box-shadow: -4px 0 15px rgba(0,0,0,0.3);
  transition: right 0.4s cubic-bezier(0.77,0,0.175,1);
  z-index: 130;
}
nav.active { right: 0; }
nav ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 25px;
}
nav ul li a {
  color: #fff;
  font-family: 'YDWyadewanoji';
  font-size: 1.3rem;
  text-shadow: 0 0 8px #f31dac,0 0 16px #27e65f,0 0 32px #5efcd4;
  transition: transform 0.3s, text-shadow 0.3s;
}
nav ul li a:hover {
  transform: scale(1.1);
  text-shadow: 0 0 20px #f31dac,0 0 40px #27e65f,0 0 80px #5efcd4;
}

/* ===== メイン画像 ===== */
.main-visual img {
  width: 100%;
  height: auto;
  display: block;
  animation: swingHorizontal 6s ease-in-out infinite;
}
/* ===== セクション ===== */
section {
  padding: 60px 20px;
  text-align: center;
}
section h2 {
  font-family: 'YDWyadewanoji';
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 0 10px #f31dac,0 0 20px #27e65f,0 0 40px #5efcd4;
  animation: neonPulse 2s infinite alternate;
}
section p {
  font-family: 'PopRumCute';
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.7;
  text-shadow: 0 0 5px rgba(255,255,255,0.4);
}

/* ===== コンテンツ ===== */
.contents-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.top-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.top-row a img {
  width: 400px; /* 横並びは固定幅 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bottom-column a img {
  width: 100%;   /* 縦並びは画面幅いっぱい */
  max-width: 100%; /* 念のためはみ出さないように */
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-row a img:hover, .bottom-column a img:hover {
  transform: translateY(-5px) rotate(1deg);
  box-shadow: 0 0 15px #f31dac, 0 0 25px #27e65f;
}

.bottom-column {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%; /* 親幅いっぱいに */
 margin-top: 50px;
align-items: center
}
.bottom-column a img {
  width: 80%; /* 幅80%でも中央に配置される */
/* ===== コンタクト・バナー ===== */
}

.contact a {
  color: #fff; /* 白文字 */
 color: #fff;
  line-height: -20;
  text-shadow: 0 0 5px rgba(255,255,255,0.4);
  transition: text-shadow 0.3s ease, transform 0.3s ease;
  /* ===== コンタクトリンク ===== */
.contact a{
  color:#fff;
  text-decoration:none;
  font-family:'PopRumCute';
  text-shadow:0 0 5px #f31dac,0 0 10px #27e65f,0 0 20px #5efcd4;
  transition:text-shadow 0.3s, transform 0.3s;
  animation:neonPulseContact 2s infinite alternate;
}
.contact a:hover{
  transform:scale(1.05);
  text-shadow:0 0 15px #f31dac,0 0 30px #27e65f,0 0 60px #5efcd4;
}
@keyframes neonPulseContact {
  from{ text-shadow:0 0 5px #f31dac,0 0 10px #27e65f,0 0 20px #5efcd4;}
  to{ text-shadow:0 0 15px #f31dac,0 0 30px #27e65f,0 0 60px #5efcd4;}
}

}
.contact a:hover {
  transform: scale(1.05);
  text-shadow: 0 0 15px #f31dac, 0 0 30px #27e65f, 0 0 60px #5efcd4;
}
@keyframes neonPulseContact {
  from { text-shadow: 0 0 5px #f31dac, 0 0 10px #27e65f, 0 0 20px #5efcd4; }
  to   { text-shadow: 0 0 10px #f31dac, 0 0 20px #27e65f, 0 0 40px #5efcd4; }
}

.banners {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.banners img {
  width: 180px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation:neonPulseContact 2s infinite alternate;
}
.banners img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #f31dac, 0 0 25px #27e65f;
  animation:neonPulseContact 2s infinite alternate;
}

/* ===== フッター ===== */
footer {
  background: rgba(9,12,11,0.8);
  padding: 15px;
  margin-top: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  border-top: 2px solid #2db9fb;
  position: relative;
}
footer p {
  margin: 0;
  font-family: 'YDWyadewanoji';
  color: #fff;
  text-shadow: 0 0 5px #f31dac,0 0 10px #27e65f;
}
.hidden-link {
  width: 60px;
  height: 60px;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.hidden-link:hover { opacity: 1; }

/* ===== レスポンシブ ===== */
@media(max-width:768px){
  .top-row a img, .bottom-column a img { width: 90%; }
  nav { width: 220px; }
}

/* ===== カスタムカーソル ===== */
#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  z-index: 200;
  box-shadow: 0 0 15px #fff, 0 0 25px #fff, 0 0 35px #fff;
  transition: box-shadow 0.15s ease-in-out, transform 0.05s ease;
}
#cursor.hover {
  transform: translate(-50%, -50%) scale(1.5);
  box-shadow: 0 0 25px #f31dac, 0 0 40px #27e65f, 0 0 60px #5efcd4;