/* ============================================================
   野獣先輩 応援サイト — スタイルシート
   ============================================================ */

/* ---------- リセット & ベース ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", "BIZ UDPGothic", sans-serif;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  min-height: 100vh;
  color: #1b5e20;
  line-height: 1.6;
}

/* ---------- ヘッダー ---------- */
header {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #388e3c 100%);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

header::after {
  content: "🦍🦍🦍";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  opacity: 0.15;
  letter-spacing: 1rem;
  white-space: nowrap;
  pointer-events: none;
}

header h1 {
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

header h1 .emoji {
  font-size: 1.2em;
}

header p {
  margin-top: 0.5rem;
  opacity: 0.85;
  font-size: 1rem;
}

/* ---------- メインコンテナ ---------- */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ---------- カード ---------- */
.card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* ---------- 語録表示カード ---------- */
#goroku-card {
  text-align: center;
  position: relative;
}

#goroku-phrase {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  color: #1b5e20;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  min-height: 3.5rem;
}

#goroku-speaker {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.25rem;
}

#goroku-speaker::before {
  content: "🎙 ";
}

#goroku-meaning {
  font-size: 0.95rem;
  color: #888;
  font-style: italic;
}

/* ---------- 応援エリア ---------- */
.upvote-area {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px dashed #c8e6c9;
}

#upvote-count {
  font-size: 2rem;
  font-weight: 800;
  color: #f44336;
  display: inline-block;
}

#upvote-count::before {
  content: "🦍 × ";
  font-size: 1.4rem;
  color: #2e7d32;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px) scale(1.03);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-green {
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  color: #fff;
  box-shadow: 0 4px 12px rgba(76,175,80,0.4);
}

.btn-green:hover {
  box-shadow: 0 6px 20px rgba(76,175,80,0.6);
}

.btn-gold {
  background: linear-gradient(135deg, #ffd700, #ffab00);
  color: #1b5e20;
  box-shadow: 0 4px 12px rgba(255,215,0,0.4);
}

.btn-gold:hover {
  box-shadow: 0 6px 20px rgba(255,215,0,0.6);
}

.btn-outline {
  background: transparent;
  border: 2px solid #2e7d32;
  color: #2e7d32;
}

.btn-outline:hover {
  background: #2e7d32;
  color: #fff;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.btn-group {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ---------- 巨大114514 ---------- */
#big-114514 {
  text-align: center;
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 900;
  color: #ffd700;
  text-shadow:
    2px 2px 0 #2e7d32,
    -2px -2px 0 #2e7d32,
    2px -2px 0 #2e7d32,
    -2px 2px 0 #2e7d32,
    0 0 30px rgba(255,215,0,0.3);
  letter-spacing: 0.3em;
  margin: 1rem 0;
  user-select: none;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow:
    2px 2px 0 #2e7d32,
    -2px -2px 0 #2e7d32,
    2px -2px 0 #2e7d32,
    -2px 2px 0 #2e7d32,
    0 0 20px rgba(255,215,0,0.2); }
  to { text-shadow:
    2px 2px 0 #1b5e20,
    -2px -2px 0 #1b5e20,
    2px -2px 0 #1b5e20,
    -2px 2px 0 #1b5e20,
    0 0 50px rgba(255,215,0,0.6); }
}

/* ---------- 検索ボックス ---------- */
.search-box {
  width: 100%;
  padding: 0.8rem 1.2rem;
  font-size: 1.1rem;
  border: 2px solid #a5d6a7;
  border-radius: 50px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 1.5rem;
}

.search-box:focus {
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46,125,50,0.2);
}

/* ---------- テーブル ---------- */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
}

th {
  background: #2e7d32;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:nth-child(even) {
  background: #f1f8e9;
}

tr:hover {
  background: #e8f5e9;
}

td.phrase-cell {
  font-weight: 700;
  font-size: 1.1rem;
}

td.upvote-cell {
  text-align: center;
  font-weight: 700;
  color: #f44336;
}

/* ---------- フッター ---------- */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #666;
  font-size: 0.9rem;
}

footer a {
  color: #2e7d32;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ---------- ステータスメッセージ ---------- */
.status-msg {
  text-align: center;
  padding: 2rem;
  color: #999;
  font-size: 1.1rem;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 600px) {
  header { padding: 1.2rem 0.8rem; }
  .container { padding: 1rem 0.8rem; }
  .card { padding: 1.2rem; }
  table { font-size: 0.85rem; }
  th, td { padding: 0.5rem 0.6rem; }
}