.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh; /* 縦中央寄せ */
  pointer-events: none; /* タッチ不可 */
}

.main-logo {
  max-width: 60%;
  height: auto;
  opacity: 0.9;
  user-select: none;
}

header, footer {
  font-family: "Mochiy Pop P One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: #f0f0f0;
}

a {
  color: #00bcd4;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== ヘッダー ===== */
.site-header {
  background-color: #1e1e1e;
  border-bottom: 2px solid #00bcd4;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-title {
  font-size: 1.8rem;
  margin: 0;
}

.site-title a {
  color: #ffffff;
}

.site-nav {
  position: relative;
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #ffffff;
  user-select: none;
}

.nav-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.nav-links li a {
  color: #cccccc;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #00bcd4;
}

#menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #1e1e1e;
    padding: 1rem;
    border: 1px solid #444;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
  }

  #menu-toggle:checked + .hamburger + .nav-links {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

/* ===== メイン ===== */
.site-main {
  padding: 2rem 0;
}

/* ===== フッター ===== */
.site-footer {
  background-color: #1a1a1a;
  border-top: 2px solid #00bcd4;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: #00bcd4;
}

main {
  position: relative;
  z-index: 0;
  background-color: white;
  padding: 2rem 1.5rem; /* ← 上下2rem・左右1.5rem */
}

main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../img/bg.png');
  background-size: 300px;
  background-repeat: repeat;
  opacity: 0.3; /* ← ここで薄くする */
  z-index: -1;
  pointer-events: none;
}


.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #222;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3; /* 横4：縦3の枠に収める（調整OK） */
  object-fit: cover;    /* 中央をトリミングして埋める */
  object-position: top; /* ← 上を優先して表示 */
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.card span {
  font-size: 1.1rem;
  font-weight: bold;
  font-family: "Mochiy Pop P One", sans-serif;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}


.welcome-title,
.welcome-text {
  color: #222; /* くっきりダークに */
  text-align: center;
}


.welcome-overlay {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.welcome-title {
  color: #111;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.welcome-text {
  color: #333;
  font-size: 1.1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* デフォルトで3列 */
  gap: 1.5rem;
  margin: 2rem;
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr); /* スマホや小画面は2列に */
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr; /* 超小型スマホは1列に */
  }
}

.site-title a{
  color: #00bcd4;
}





/* --- 星をふわふわ浮かせる --- */
.floating-sparkle {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 1.5rem;
  color: #66e0ff;
  opacity: 0.8;
  animation: sparkle-float 6s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}

@keyframes sparkle-float {
  0% {
    transform: translate(-50%, -50%) translateY(0px) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) translateY(-20px) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) translateY(0px) scale(1);
    opacity: 0.8;
  }
}

.floating-icon {
  position: absolute;
  font-size: 2rem;
  opacity: 0.8;
  animation: icon-float 10s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.big-icon {
  font-size: 3rem;
  opacity: 0.9;
}

@keyframes icon-float {
  0% {
    transform: translateY(0px) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-25px) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.8;
  }
}