/* ====== フォント読み込み ====== */
@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;
  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; }
}

/* ====== メイン ====== */
.main-visual {
  margin: 60px auto 0;
  padding: 0 20px;
  max-width: 1600px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 30px;
  justify-items: center;
}

/* ====== カード ====== */
.manga-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* ====== 画像リンク ====== */
.image-wrapper a {
  display: block;
  pointer-events: auto;
}

/* ====== 画像 ====== */
.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: 30px;
  overflow: hidden;
  border: 6px double #ffddee;
  box-shadow: 0 0 25px #ffc1e3;
  background: #fff;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.image-wrapper:hover img {
  transform: scale(1.03);
  opacity: 0.92;
}

/* ====== ラベル ====== */
.chapter-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(255, 240, 250, 0.95);
  border: 2px solid #ffb3d9;
  color: #d63384;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 1rem;
}

/* ====== ボタン ====== */
.read-button,
.home-button {
  display: inline-block;
  pointer-events: auto;
  font-family: 'PopRumCute', 'M PLUS Rounded 1c', sans-serif;
  background: #ffe6f3;
  border: 3px double #ffb3d9;
  color: #d63384;
  border-radius: 40px;
  text-decoration: none;
  padding: 14px 44px;
  font-size: 1.1rem;
  box-shadow: 0 0 15px #ffc1e3;
  transition: all 0.3s ease;
}

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

/* ====== フッター ====== */
footer {
  margin-top: 80px;
  padding: 40px 20px 60px;
  background: #fff5fb;
  border-top: 3px dotted #ffddee;
  box-shadow: 0 -4px 12px #ffe6f3;

  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

/* ====== レスポンシブ ====== */
@media (max-width: 992px) {
  .main-visual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-wrapper {
    max-width: 420px;
  }
}

@media (max-width: 768px) {
  .image-wrapper {
    max-width: 320px;
  }

  .read-button,
  .home-button {
    width: 90%;
    padding: 12px 0;
  }
}
