/* フォント読み込み */
@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;
  margin: 0;
  padding: 0;
  background-color: #ffe6f0; /* パステルピンク系に調整 */
  background-image:
    radial-gradient(#ffd6f2 1.5px, transparent 1.5px),
    radial-gradient(#ffd6f2 1.5px, transparent 1.5px);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
  color: #4d4d4d; /* 読みやすい濃いグレー */
  text-align: center;
}

/* ロゴ */
.logo-section .logo {
  width: 200px; /* 少し小さめで可愛く */
  height: auto;
  margin: 20px auto 15px;
  animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* カード */
.card {
  background: #fff0f8; /* 薄いピンク系 */
  border: 2px solid #ffb6d9; /* 柔らかいピンク */
  border-radius: 20px;
  padding: 25px;
  margin: 25px auto;
  max-width: 700px;
  box-shadow: 0 4px 12px rgba(255,182,217,0.3);
  font-family: 'PopRumCute', cursive, 'M PLUS Rounded 1c', sans-serif;
  position: relative;
}

/* レース風飾り */
.card::before {
  content: "";
  position: absolute;
  top: -8px; left: -8px; right: -8px; bottom: -8px;
  border: 4px dotted #ffccd9; /* 柔らかく淡め */
  border-radius: 35px;
  z-index: -1;
}

/* 見出し */
.card h2 {
  font-size: 1.6rem;
  color: #ff80bf; /* パステルピンク */
  margin-bottom: 14px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 画像 */
.hero-image,
.comic-image,
.illust-image {
  max-width: 85%;
  height: auto;
  border-radius: 15px;
  margin-top: 10px;
  box-shadow: 0 0 8px rgba(255,182,217,0.3);
}

/* ボタン */
.ui-button {
  display: inline-block;
  font-size: 1rem;
  font-family: 'PopRumCute', cursive, 'M PLUS Rounded 1c', sans-serif;
  background: linear-gradient(145deg, #ff9ecf, #a0e7ff); /* 柔らかいグラデーション */
  color: #4d4d4d; /* 濃いめで可読性 */
  font-weight: bold;
  padding: 10px 22px;
  margin: 10px 6px;
  border-radius: 25px;
  border: 2px solid #ffb6d9;
  text-decoration: none;
  box-shadow: 0 3px 6px rgba(255,182,217,0.3);
  transition: all 0.3s ease;
}

.ui-button:hover {
  transform: scale(1.03);
  background: linear-gradient(145deg, #ffa6d1, #90dfff);
}

/* ハンバーガー */
.hamburger span {
  background: #ffb6d9;
  height: 3.5px;
  border-radius: 8px;
  box-shadow: 0 0 4px rgba(255,182,217,0.3);
}

/* メニュー */
nav.menu {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0; right: 0;
  width: 100%; height: 100vh;
  background: radial-gradient(circle at center, #ffe6f0 10%, #ffd6f2 50%, #ffcce6 100%);
  z-index: 9998;
  overflow-y: auto;
  padding: 40px 20px;
}

nav.menu.active { display: flex; }

nav.menu ul li a {
  display: block;
  font-size: 1.35rem;
  text-decoration: none;
  color: #4d4d4d;
  background: rgba(255,182,217,0.25);
  padding: 12px 26px;
  border-radius: 18px;
  margin: 8px 0;
  transition: all 0.3s ease;
}

nav.menu ul li a:hover {
  background: rgba(255,182,217,0.5);
  color: #4d4d4d;
  transform: scale(1.03);
}

/* ストーリータイトル */
.story-title {
  font-size: 2rem;
  color: #ff80bf;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  padding: 8px 20px;
  border-radius: 18px;
  background: #ffd6f2;
  box-shadow: 0 0 8px rgba(255,182,217,0.3);
}

/* 本文 */
#story .card p {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4d4d4d;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

/* カードホバー */
.card.animated:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255,182,217,0.4);
}

/* カードのコンテナ */
.card-container {
  display: flex;
  flex-wrap: wrap; 
  justify-content: space-between; /* カード間の余白を均等に */
  gap: 20px; 
  margin: 30px auto;
  max-width: 1200px;
}

/* 各カード */
.card-container .card {
  flex: 0 1 calc((100% - 40px) / 3); /* 3列に均等割り */
  max-width: 350px; /* 大きすぎないよう制限 */
  margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
  .card-container .card {
    flex: 0 1 calc((100% - 20px) / 2); /* 2列に変更 */
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .card-container {
    flex-direction: column;
    gap: 16px;
    margin: 20px auto;
  }

  .card-container .card {
    flex: 1 1 100%;
    max-width: 90%;
  }
}
