/* -------------------------------
   初音ミク風 完全版スタイルガイド
   ------------------------------- */
:root {
  --miku-green: #39C5BB;        /* 初音ミクメインカラー */
  --miku-green-dark: #2BA399;   /* 濃いグリーン */
  --miku-pink: #FF4F9D;
  --bg-dark: #1A1A1A;
  --bg-card: rgba(26, 26, 26, 0.85);
  --text-main: #FFFFFF;
  --text-sub: #B0B0B0;
}

/* ページ全体 */
body {
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: var(--text-main);
  margin: 0;
  padding: 0;
}

/* ヘッダー */
.miku-header {
  background: var(--bg-dark);
  border-bottom: 2px solid var(--miku-green);
  text-align: center;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(57,197,187,0.5);
}
.miku-header h1 {
  color: var(--miku-green);
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
}

/* フッター */
.miku-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-sub);
  border-top: 1px solid var(--miku-green-dark);
  margin-top: 2rem;
}

.miku-container {
  display: flex;
  flex-wrap: wrap;     /* 画面が狭いときは折り返す */
  gap: 10px;           /* カード間の隙間 */
  justify-content: center; /* 中央揃え */
}

/* カード */
.miku-card {
  flex: 1 1 calc(50% - 10px); /* 2列にする（gapを引いた分） */
  max-width: 500px;           /* カードの最大幅（調整可） */

  background: var(--bg-card);
  border: 1px solid var(--miku-green);
  border-radius: 1.5rem;
  padding: 1.5rem;
  margin: 1.5rem auto;
  width: 90%;
  box-shadow: 0 0 12px rgba(57,197,187,0.4);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.miku-card h2 {
  color: var(--miku-pink);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.miku-card form {
  text-align: center;        /* テキストやボタンを中央揃え */
}

/* ボタン */
.miku-button {
  background: linear-gradient(135deg, var(--miku-green), var(--miku-green-dark));
  color: white;
  border: none;
  border-radius: 1rem;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  margin: 0.3rem;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(57,197,187,0.5);
  transition: 0.3s;
}
.miku-button:hover {
  box-shadow: 0 0 15px rgba(57,197,187,0.9);
  transform: scale(1.05);
}
.miku-button.small {
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 0.5rem;
  margin: 0.2rem;
}
.miku-button.pink {
  background: linear-gradient(135deg, #FF4F9D, #C62D6C);
  box-shadow: 0 0 8px rgba(255,79,157,0.5);
}
.miku-button.pink:hover {
  box-shadow: 0 0 12px rgba(255,79,157,0.9);
}

/* 入力フォーム */
.miku-input {
  background: var(--bg-dark);
  border: 1px solid var(--miku-green);
  border-radius: 0.5rem;
  padding: 0.6rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  transition: 0.3s;
  box-sizing: border-box;
}
.miku-input:focus {
  outline: none;
  box-shadow: 0 0 10px var(--miku-green);
  border-color: var(--miku-green-dark);
}

/* -------------------------------
   テーブル1～3共通
   ------------------------------- */
.miku-table, .miku-table2, .miku-table3 {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 1.00rem;
  overflow: hidden;
  border-radius: 0.8rem;
  box-shadow: 0 0 12px rgba(57,197,187,0.4);
  position: relative;
  overflow: hidden;
}
.miku-table thead, .miku-table2 thead, .miku-table3 th {
  background: linear-gradient(135deg, var(--miku-green), var(--miku-green-dark));
  text-shadow: 0 0 5px rgba(0,0,0,0.6);
  color: white;
}
.miku-table th, .miku-table2 th, .miku-table3 th {
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.8rem;
}
.miku-table th:last-child, .miku-table2 th:last-child, .miku-table3 th:last-child {
  border-right: none;
}
.miku-table td, .miku-table2 td, .miku-table3 td {
  padding: 0.6rem;
  border: 1px solid rgba(57,197,187,0.5);
  text-align: center;
}
.miku-table tbody tr:nth-child(even),
.miku-table2 tbody tr:nth-child(even),
.miku-table3 tbody tr:nth-child(even) {
  background: rgba(26, 26, 26, 0.8);
}
.miku-table tbody tr:nth-child(odd),
.miku-table2 tbody tr:nth-child(odd),
.miku-table3 tbody tr:nth-child(odd) {
  background: rgba(46, 46, 46, 0.8);
}
.miku-table tbody tr:hover,
.miku-table2 tbody tr:hover,
.miku-table3 tbody tr:hover {
  background: rgba(57,197,187,0.2);
  transition: 0.3s;
}
.miku-table .miku-input,
.miku-table2 .miku-input,
.miku-table3 .miku-input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.4rem;
  font-size: 0.9rem;
}

/* -------------------------------
   花びらアニメーション（緑系に変更）
   ------------------------------- */
@keyframes sakura-fall {
  0% { transform: translateY(-50px) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(500px) rotate(360deg); opacity: 0; }
}

.sakura-petal {
  position: absolute;
  top: -50px;
  width: 15px;
  height: 15px;
  background: radial-gradient(circle at 30% 30%, #39C5BB, #2BA399);
  border-radius: 50%;
  opacity: 0.9;
  pointer-events: none;
  animation: sakura-fall linear infinite;
}
.sakura-petal:nth-child(1) { left: 10%; animation-duration: 6s; animation-delay: 0s; }
.sakura-petal:nth-child(2) { left: 25%; animation-duration: 8s; animation-delay: 1s; }
.sakura-petal:nth-child(3) { left: 40%; animation-duration: 7s; animation-delay: 2s; }
.sakura-petal:nth-child(4) { left: 55%; animation-duration: 9s; animation-delay: 3s; }
.sakura-petal:nth-child(5) { left: 70%; animation-duration: 6s; animation-delay: 4s; }
.sakura-petal:nth-child(6) { left: 85%; animation-duration: 8s; animation-delay: 5s; }
