/* 人生最後の部活 共通スタイル */
:root {
  --bg: #fdf9f4;
  --surface: #ffffff;
  --primary: #6aaa64;
  --primary-dark: #4e8a49;
  --accent: #f5a623;
  --text: #333333;
  --text-muted: #777777;
  --border: #ddd;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* ヘッダー */
.site-header {
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.site-header h1 {
  font-size: 20px;
  font-weight: bold;
  white-space: nowrap;
}
.header-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.btn-header {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-header:hover { background: rgba(255,255,255,0.35); }

/* メインコンテンツ */
.main-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

/* カード */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

/* 大ボタン（部室トップ等） */
.big-btn {
  display: block;
  width: 100%;
  min-height: 70px;
  font-size: 22px;
  font-weight: bold;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  padding: 16px 20px;
  margin-bottom: 14px;
  transition: filter 0.15s, transform 0.1s;
  line-height: 1.4;
}
.big-btn:hover { filter: brightness(0.95); transform: translateY(-1px); }
.big-btn:active { transform: translateY(0); }

.btn-genki  { background: #4caf50; color: #fff; }
.btn-heya   { background: #ff69b4; color: #fff; }
.btn-club   { background: #f5a623; color: #fff; }
.btn-event  { background: #5b9bd5; color: #fff; }
.btn-help   { background: #9e9e9e; color: #fff; }

/* 通常ボタン */
.btn {
  display: inline-block;
  padding: 12px 24px;
  min-height: 50px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
}
.btn-primary  { background: var(--primary); color: #fff; }
.btn-accent   { background: var(--accent); color: #fff; }
.btn-outline  { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-danger   { background: #e53935; color: #fff; }
.btn-gray     { background: #bdbdbd; color: #fff; }
.btn:hover { filter: brightness(0.93); }
.btn-full { display: block; width: 100%; text-align: center; margin-bottom: 12px; }

/* 投稿フォーム */
.post-form textarea {
  width: 100%;
  min-height: 100px;
  font-size: 18px;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  resize: vertical;
  font-family: inherit;
}
.post-form textarea:focus { outline: none; border-color: var(--primary); }
.post-form .form-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.file-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  min-height: 50px;
  background: #f0f4f0;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 17px;
  font-weight: bold;
  color: var(--text);
}
.file-label:hover { background: #e0ece0; }
.file-label input[type="file"] { display: none; }

/* 投稿一覧 */
.post-item {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px;
}
.post-item.pinned {
  border: 2px solid var(--accent);
  background: #fff9f0;
}
.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.post-author {
  font-weight: bold;
  font-size: 18px;
  color: var(--primary-dark);
}
.post-date {
  font-size: 14px;
  color: var(--text-muted);
}
.pin-badge {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: bold;
}
.post-content {
  font-size: 18px;
  margin-bottom: 10px;
  white-space: pre-wrap;
  word-break: break-word;
}
.post-image {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}
.post-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.reaction-btn {
  background: #fff3e0;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 18px;
  font-weight: bold;
  padding: 8px 18px;
  border-radius: 24px;
  cursor: pointer;
  min-height: 48px;
  transition: background 0.15s;
}
.reaction-btn.reacted {
  background: var(--accent);
  color: #fff;
}
.reaction-btn:hover { background: #ffe0b2; }
.reaction-count { font-size: 16px; color: var(--text-muted); }

/* コメント */
.comment-section { margin-top: 12px; }
.comment-item {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.comment-author { font-weight: bold; font-size: 16px; color: var(--primary-dark); }
.comment-date { font-size: 13px; color: var(--text-muted); margin-left: 8px; }
.comment-content { font-size: 17px; margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.comment-form textarea {
  width: 100%;
  min-height: 70px;
  font-size: 17px;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: 8px;
  resize: vertical;
  font-family: inherit;
  margin-top: 8px;
}
.comment-form textarea:focus { outline: none; border-color: var(--primary); }
.comment-form .btn { margin-top: 8px; }

/* 入力フォーム共通 */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
  width: 100%;
  font-size: 20px;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

/* メッセージ */
.msg-box {
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: bold;
}
.msg-success { background: #e8f5e9; color: #2e7d32; border: 2px solid #a5d6a7; }
.msg-error   { background: #ffebee; color: #c62828; border: 2px solid #ef9a9a; }
.msg-info    { background: #e3f2fd; color: #1565c0; border: 2px solid #90caf9; }
.msg-warn    { background: #fff8e1; color: #e65100; border: 2px solid #ffcc02; }

/* 見学部員向け案内 */
.upgrade-notice {
  background: #fff8e1;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}
.upgrade-notice p { font-size: 18px; margin-bottom: 14px; }

/* ページタイトル */
.page-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 部活カード */
.club-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
  border: 2px solid transparent;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.club-card:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(0,0,0,0.13); }
.club-icon { font-size: 40px; flex-shrink: 0; }
.club-info h3 { font-size: 22px; font-weight: bold; }
.club-info p  { font-size: 16px; color: var(--text-muted); margin-top: 4px; }

/* 元気ボタン */
.genki-btn {
  display: block;
  width: 100%;
  min-height: 80px;
  font-size: 24px;
  font-weight: bold;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 16px;
  color: #fff;
  text-align: center;
  padding: 18px;
  transition: filter 0.15s, transform 0.1s;
}
.genki-btn:hover { filter: brightness(0.93); transform: translateY(-2px); }
.genki-btn:active { transform: translateY(0); }
.genki-1 { background: #4caf50; }
.genki-2 { background: #ffc107; color: #333; }
.genki-3 { background: #90caf9; color: #333; }
.genki-4 { background: #ff9800; }

/* 出席バッジ */
.attend-msg {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #2e7d32;
  line-height: 1.8;
}
.attend-count { font-size: 32px; }

/* イベントカード */
.event-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 14px;
}
.event-date-badge {
  background: var(--primary);
  color: #fff;
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}
.event-title { font-size: 22px; font-weight: bold; margin-bottom: 8px; }
.event-desc  { font-size: 17px; color: var(--text-muted); margin-bottom: 12px; }

/* アコーディオン */
.accordion { margin-bottom: 10px; }
.accordion summary {
  font-size: 19px;
  font-weight: bold;
  padding: 14px 16px;
  background: #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before { content: '▶ '; color: var(--primary); }
.accordion[open] summary::before { content: '▼ '; }
.accordion .accordion-body {
  padding: 14px 16px;
  font-size: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

/* 今日も元気：押済み表示（赤文字） */
.genki-done-msg {
  color: #e53935;
  font-weight: bold;
  font-size: 15px;
}

/* フッター */
.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

/* ランディングページ */
.lp-hero {
  background: linear-gradient(135deg, #6aaa64, #4e8a49);
  color: #fff;
  text-align: center;
  padding: 60px 20px 50px;
}
.lp-hero h1 { font-size: 36px; line-height: 1.4; margin-bottom: 16px; }
.lp-hero p  { font-size: 20px; opacity: 0.92; line-height: 1.7; }
.lp-section { padding: 40px 20px; max-width: 700px; margin: 0 auto; }
.lp-section h2 { font-size: 26px; font-weight: bold; margin-bottom: 16px; color: var(--primary-dark); }
.plan-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  background: var(--surface);
}
.plan-card h3 { font-size: 22px; font-weight: bold; margin-bottom: 8px; }
.plan-price { font-size: 28px; font-weight: bold; color: var(--primary-dark); margin-bottom: 10px; }
.plan-card ul { padding-left: 20px; font-size: 17px; line-height: 2; }

/* レスポンシブ */
@media (max-width: 480px) {
  body { font-size: 17px; }
  .big-btn { font-size: 20px; min-height: 66px; }
  .lp-hero h1 { font-size: 28px; }
  .page-title { font-size: 22px; }
}
