/* =========================
   推しカノ 共通背景 CSS
   - 図形：カラー＋アウトライン
   - レスポンシブ対応
   ========================= */

/* ベース背景 */
body {
  background: #e5f4ff; /* 薄い水色 */
  overflow-x: hidden;
}

/* 図形レイヤー全体 */
.bg-shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none; /* クリック邪魔しない */
  overflow: hidden;
}

/* 図形共通（アニメーション設定） */
.shape {
  position: absolute;
  opacity: 0.9;
  animation: float 14s ease-in-out infinite alternate;
}

/* -------------------------
   カラー図形（中身あり）
   ------------------------- */
.yellow { background: #f9ff8d; }
.white  { background: #ffffff; }
.blue   { background: #1c5fb3; }

/* サイズ：少し小さめ */
.circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.square {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.triangle {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 13px 24px 13px;
  background: transparent;
}

/* 三角の色（中身ありタイプ） */
.triangle.yellow {
  border-color: transparent transparent #f9ff8d transparent;
}
.triangle.white {
  border-color: transparent transparent #ffffff transparent;
}
.triangle.blue {
  border-color: transparent transparent #1c5fb3 transparent;
}

/* -------------------------
   アウトライン図形（中身透明）
   ------------------------- */

/* 共通：中身透明＋青枠（1px） */
.outline {
  background: transparent !important;
  border: 1px solid #1c5fb3;
}

/* circle / square のアウトライン */
.outline.circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.outline.square {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

/* ▼ アウトライン三角だけは SVG 背景で描く */
.outline.triangle {
  width: 26px;
  height: 22px;
  border: none;                /* 四角の枠はいらない */
  background-color: transparent;
  position: relative;
}

/* SVG で描いた三角（枠だけ青・中身透明）を貼る */
.outline.triangle::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 35'%3E%3Cpolygon points='20,2 2,33 38,33' fill='none' stroke='%231c5fb3' stroke-width='2'/%3E%3C/svg%3E");
}

/* =========================
   位置設定（16個ぶん）
   HTMLの並びに対応
   ========================= */

/* カラー図形 10個 */
.bg-shapes .shape:nth-child(1)  { top: 8%;   left: 6%;   animation-duration: 13s; }
.bg-shapes .shape:nth-child(2)  { top: 60%;  left: 12%;  animation-duration: 14s; }
.bg-shapes .shape:nth-child(3)  { top: 14%;  right: 8%;  animation-duration: 12s; }
.bg-shapes .shape:nth-child(4)  { top: 40%;  left: 32%;  animation-duration: 15s; }
.bg-shapes .shape:nth-child(5)  { top: 75%;  left: 30%;  animation-duration: 16s; }
.bg-shapes .shape:nth-child(6)  { top: 52%;  left: 50%;  animation-duration: 14s; }
.bg-shapes .shape:nth-child(7)  { top: 22%;  right: 30%; animation-duration: 12s; }
.bg-shapes .shape:nth-child(8)  { top: 68%;  right: 15%; animation-duration: 14s; }
.bg-shapes .shape:nth-child(9)  { top: 5%;   left: 50%;  animation-duration: 12s; }
.bg-shapes .shape:nth-child(10) { bottom: 24%; left: 10%; animation-duration: 14s; }

/* アウトライン図形 6個 */
.bg-shapes .shape:nth-child(11) { top: 32%;  left: 5%;   animation-duration: 11s; }
.bg-shapes .shape:nth-child(12) { top: 35%;  right: 6%;  animation-duration: 13s; }
.bg-shapes .shape:nth-child(13) { bottom: 10%; right: 8%; animation-duration: 12s; }
.bg-shapes .shape:nth-child(14) { bottom: 6%; left: 42%; animation-duration: 14s; }
.bg-shapes .shape:nth-child(15) { top: 48%;  left: 70%;  animation-duration: 12s; }
.bg-shapes .shape:nth-child(16) { bottom: 35%; right: 35%; animation-duration: 15s; }

/* =========================
   動き（ちょい速め＋幅広め）
   ========================= */

@keyframes float {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(-30px, -40px) rotate(12deg); }
  100% { transform: translate(30px, 40px) rotate(-12deg); }
}

/* =========================
   スマホ調整（レスポンシブ）
   ========================= */

@media (max-width: 600px) {

  /* 少しだけ小さく */
  .circle,
  .outline.circle {
    width: 22px;
    height: 22px;
  }

  .square,
  .outline.square {
    width: 18px;
    height: 18px;
  }

  .triangle {
    border-width: 0 11px 20px 11px;
  }

  .outline.triangle {
    width: 22px;
    height: 18px;
  }

  /* 動きは少しだけ控えめに */
  @keyframes float {
    0%   { transform: translate(0, 0) rotate(0deg); }
    50%  { transform: translate(-20px, -28px) rotate(10deg); }
    100% { transform: translate(20px, 28px) rotate(-10deg); }
  }
}
