/* ====== フォント読み込み ====== */
@font-face {
  font-family: 'PopRumCute';
  src: url('./fonts/PopRumCute.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* ====== ベース ====== */
body {
  font-family: 'PopRumCute', 'M PLUS Rounded 1c', sans-serif;
  background-color: #fff0fa;
  background-image:
    radial-gradient(#ffddee 1.5px, transparent 1.5px),
    radial-gradient(#ffddee 1.5px, transparent 1.5px);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
  color: #a0446f;
  margin: 0;
  text-align: center;
  line-height: 1.6;
}

/* ====== ヘッダー ====== */
header {
  background: #fff5fb;
  padding: 40px 20px;
  border-bottom: 3px dotted #ffddee;
  box-shadow: 0 4px 10px #ffe6f3;
}

header h1.logo {
  font-size: 2.2rem;
  color: #d63384;
  text-shadow: 0 1px 3px #fff;
  background: #fff5fb;
  display: inline-block;
  padding: 12px 28px;
  border-radius: 40px;
  box-shadow: 0 0 20px #ffc1e3;
  border: 3px double #ffddee;
  animation: glowTitle 6s ease-in-out infinite;
}

@keyframes glowTitle {
  0%, 100% { box-shadow: 0 0 20px #ffc1e3; }
  50% { box-shadow: 0 0 30px #ff99cc, 0 0 40px #ffcce6; }
}

/* ====== キャラクターリスト ====== */
.character-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 15px;
}

/* ====== キャラクターカード（今回は画像だけ） ====== */
.character-card {
  background: #fff5fb;
  border: 4px double #ffddee;
  border-radius: 30px;
  padding: 15px;
  box-shadow: 0 4px 15px #ffc1e3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.character-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 25px #ff99cc;
}

.character-card img {
  width: 100%;
  max-width: 150px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 0 10px #ffc1e3;
  transition: transform 0.3s ease;
}

.character-card img:hover {
  transform: scale(1.05);
}

/* ====== モーダル（動画表示） ====== */
.modal {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff5fb;
  border-radius: 25px;
  padding: 20px;
  z-index: 1001;
  max-width: 90%;
  box-shadow: 0 6px 25px #ffc1e3;
}

.modal video {
  width: 100%;
  border-radius: 20px;
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #d63384;
}

/* オーバーレイ */
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,182,217,0.3);
  backdrop-filter: blur(2px);
  z-index: 1000;
}

/* 戻るボタン */
.back-button {
  display: inline-block;
  margin: 30px auto 50px;
  padding: 12px 36px;
  font-size: 1rem;
  background: #ffe6f3;
  border: 3px double #ffb3d9;
  color: #d63384;
  border-radius: 40px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 15px #ffc1e3;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: #ffd1eb;
  transform: translateY(-2px);
  box-shadow: 0 0 25px #ff99cc;
}

/* ====== レスポンシブ ====== */
@media (max-width: 992px) {
  header h1.logo { font-size: 2rem; padding: 10px 24px; }
  .character-card img { max-width: 130px; }
}

@media (max-width: 768px) {
  header h1.logo { font-size: 1.8rem; padding: 8px 20px; }
  .character-list { gap: 15px; }
  .character-card img { max-width: 120px; }
  .back-button { width: 80%; padding: 12px 0; }
}

