/* 背景画像（透過あり）を全体に敷くスタイル */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Hiragino Kaku Gothic ProN', sans-serif;
  background: url('./images/minowa.png') no-repeat center center fixed;
  background-size: cover;
  color: #1e293b;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  padding: 40px;
  box-sizing: border-box;
  animation: fadein 0.6s ease;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

h1, h2 {
  margin: 0 0 20px;
  color: #0f172a;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  border-left: 6px solid #3b82f6;
  padding-left: 12px;
}

h2 {
  font-size: 22px;
  font-weight: 600;
}

.event-box {
  border-left: 4px solid #3b82f6;
  background: rgba(255, 255, 255, 0.96);
  margin: 24px 0;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.event-date-highlight {
  font-size: 18px;
  font-weight: bold;
  color: #3b82f6;
  margin-bottom: 6px;
}

.event-detail {
  color: #475569;
  margin: 6px 0 10px;
  white-space: pre-wrap;
}

/* 出席サマリ：基本スタイル */
.attendance-summary {
  color: #000;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 10px;
  display: inline-block;
  font-size: 18px;
}

/* 出席サマリ内の名前表示 */
.attendance-summary .names {
  font-size: 18px;
  font-weight: 500;
}

/* 出席：緑 */
.attendance-summary.attendance-ok {
  background-color: rgba(200, 255, 200, 0.7);
}

/* 欠席：赤 */
.attendance-summary.attendance-ng {
  background-color: rgba(255, 200, 200, 0.7);
}

/* 未定：オレンジ */
.attendance-summary.attendance-maybe {
  background-color: rgba(255, 220, 180, 0.7);
}

/* 出席サマリ内のpillスタイル */
.pill {
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  font-weight: bold;
  font-size: 14px;
  color: white;
}

.pill.ok {
  background-color: #28a745;
}

.pill.ng {
  background-color: #dc3545;
}

.pill.maybe {
  background-color: #fd7e14;
}

.pill .count {
  font-weight: bold;
  margin-left: 4px;
}

/* コメントボックスのスタイル */
.comment-box {
  background-color: #fff3cd !important;
  border-left: 4px solid #ffc107 !important;
  padding: 10px 15px !important;
  margin: 10px 0 !important;
  border-radius: 4px !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
  color: #856404 !important;
  font-weight: 500 !important;
  display: block !important;
}

.comment-box br {
  margin-bottom: 5px;
}

/* テーブル */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
table th, table td {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
}
table th {
  background-color: #eff6ff;
  color: #1e3a8a;
}
table tr:nth-child(even) {
  background-color: #f9fafb;
}

/* フォーム */
input[type="text"],
input[type="password"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 15px;
  margin-top: 4px;
  box-sizing: border-box;
  background-color: #fff;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
form label {
  display: block;
  margin: 16px 0 6px;
  font-weight: 500;
}

/* ボタン（PC基準：スリム・文字16px） */
.btn,
input[type="submit"],
button {
  background-color: #3b82f6;
  color: white;
  padding: 6px 14px;
  border: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
  display: inline-block;
  margin-top: 12px;
}
.btn:hover,
input[type="submit"]:hover,
button:hover {
  background-color: #2563eb;
}

/* メッセージ */
.message-box {
  background-color: #e0f2fe;
  border-left: 4px solid #38bdf8;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 16px;
  color: #0369a1;
}
.success-icon {
  font-size: 30px;
  margin-bottom: 10px;
}

/* スマホ向け調整 */
@media screen and (max-width: 820px), (hover: none) and (pointer: coarse) {
  .container { margin: 20px; padding: 20px; }
  
  /* 見出し */
  h1 { font-size: 36px; }
  h2 { font-size: 34px; }
  
  /* イベント詳細 */
  .event-detail { font-size: 30px; }
  
  /* 日付表示 */
  .event-date-highlight { font-size: 30px; }
  
  /* 出席者名前リスト */
  .attendance-summary { font-size: 30px !important; }
  .attendance-summary .names { font-size: 30px; }
  
  /* pill（出席・欠席・未定バッジ）*/
  .pill { font-size: 30px; }

  /* コメントボックス（スマホ） */
  .comment-box {
    font-size: 30px !important;
    padding: 14px 20px !important;
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107 !important;
    color: #856404 !important;
    font-weight: 500 !important;
  }

  /* ボタン */
  .btn,
  input[type="submit"],
  button {
    font-size: 30px !important;
    padding: 14px 24px !important;
    min-height: auto !important;
    line-height: normal;
    width: auto !important;
  }
  
  /* フォーム要素 */
  input[type="text"],
  input[type="password"],
  input[type="date"],
  select,
  textarea {
    font-size: 30px;
    padding: 14px;
  }
  
  /* テーブル */
  table th, table td {
    font-size: 30px;
    padding: 16px;
  }
  
  /* メッセージボックス */
  .message-box {
    font-size: 30px;
  }
  
  /* フォームラベル */
  form label {
    font-size: 30px;
  }
}
