/* ===== jojojo.css - Responsive ===== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Rajdhani:wght@500;700&family=Noto+Serif+JP:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: #121212;
  color: #eee;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0 0 40px;
}

/* --- タイトル --- */
h1 {
  text-align: center;
  margin: 0 0 20px;
  padding: 20px 10px 0;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(1.8em, 7vw, 3.2em);
  letter-spacing: 0.18em;
  color: #f05454;
  text-shadow: 0 0 32px rgba(240, 84, 84, 0.35);
}

/* --- ナビゲーション --- */
.navber {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  background: #1a0000;
  position: sticky;
  top: 0;
  z-index: 100;
}

.dropmenu {
  list-style-type: none;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  padding: 0;
}

.dropmenu li {
  background: #923232;
  text-align: center;
  box-shadow: 1px 1px 1px rgba(53,6,6,0.7) inset,
              -1px -1px 1px rgba(143,22,22,0.7) inset;
  width: 25%;
  margin: 0;
  padding: 0;
  position: relative;
}

.dropmenu li a {
  margin: 0;
  padding: 10px 4px;
  display: block;
  color: #000;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(0.85em, 2.5vw, 1.15em);
  letter-spacing: 0.1em;
  text-decoration: none;
  white-space: nowrap;
}

.dropmenu li a:hover {
  background: #e01414;
}

/* --- コンテンツ wrapper --- */
.content {
  z-index: 1;
  text-align: center;
  padding: 0 16px;
  overflow-x: hidden;
}

/* --- メインビジュアル（フル幅） --- */
#main-visual {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

/* --- プロローグテキスト --- */
#prol {
  text-align: center;
  margin: 28px auto;
  overflow-x: auto;
}

#prol p {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(0.6em, 1.8vw, 0.95em);
  line-height: 2.2;
  letter-spacing: 0.12em;
  color: #d8d8d8;
  white-space: nowrap;
  margin: 0 0 0.4em;
}

#prol p:last-child {
  margin-bottom: 0;
}

/* --- カードグリッド --- */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 16px;
  padding: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background-color: #1f1f1f;
  border: 1px solid #333;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255,0,0,0.2);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(255,0,0,0.4);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 14px;
}

.card-content h2 {
  margin: 0 0 8px;
  font-size: clamp(1em, 3.5vw, 1.4em);
  color: #f05454;
}

.card-content p {
  font-size: clamp(0.8em, 2.3vw, 0.95em);
  line-height: 1.6;
  color: #ccc;
}

a.card {
  text-decoration: none;
  color: inherit;
}

canvas {
  background: transparent;
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
}

/* ===== タブレット (≤768px) ===== */
@media (max-width: 768px) {
  .card-container {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px;
  }
}

/* ===== スマホ大 (≤500px) ===== */
@media (max-width: 500px) {
  .card-container {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
  }

  .card img {
    height: 130px;
  }

  .card-content {
    padding: 10px;
  }

  #prol p {
    font-size: 0.55em;
    letter-spacing: 0.08em;
  }
}

/* ===== iPhone 12 Pro / 標準スマホ (≤390px) ===== */
@media (max-width: 390px) {
  #prol p {
    font-size: 0.46em;
    letter-spacing: 0.05em;
    line-height: 2.0;
  }
}

/* ===== iPhone SE / 小型スマホ (≤375px) ===== */
@media (max-width: 375px) {
  #prol p {
    font-size: 0.43em;
    letter-spacing: 0.04em;
    line-height: 2.0;
  }
}

/* ===== 極小 (≤360px) ===== */
@media (max-width: 360px) {
  .card-container {
    grid-template-columns: 1fr;
  }

  .card img {
    height: 200px;
  }

  #prol p {
    font-size: 0.4em;
    letter-spacing: 0.03em;
    line-height: 1.9;
  }
}