/* タイトル */
.entry-title {
  font-size: 2rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 1rem;
  text-align: center;
}

/* セクション全体 */
.entry-section {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.entry-label {
  font-weight: bold;
  margin-bottom: 4px;
  color: #333;
}

.entry-value {
  margin-left: 8px;
  color: #555;
}

.entry-actions {
  margin-top: 20px;
}

.btn-edit {
  display: inline-block;
  padding: 8px 16px;
  background-color: #3490dc;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.btn-edit:hover {
  background-color: #2779bd;
}

.entry-wrapper {
    width: 95%;
    max-width: 800px;
    margin: 1.5rem auto;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.upload-instructions {
  border: 2px solid #ff6f61; /* 目立つ赤系 */
  background-color: #fff0f0;
  padding: 16px;
  margin: 20px 0;
  border-radius: 8px;
}

.upload-instructions h2 {
  color: #d32f2f;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.upload-instructions p {
  font-size: 1rem;
  margin-bottom: 8px;
}

.upload-instructions .folder-link a {
  color: #ffffff;
  background-color: #f06292; /* ピンク系ボタン色 */
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.upload-instructions .folder-link a:hover {
  background-color: #ec407a;
}

.upload-instructions ul {
  list-style: disc;
  margin-top: 12px;
  padding-left: 20px;
}

.upload-instructions li {
  margin-bottom: 6px;
  font-weight: 500;
}

.upload-instructions ul ul {
  list-style: circle;
  margin-top: 6px;
  font-weight: normal;
}


tr.status-pass td {
  background-color: #e6ffed;
  color: #155724;
}

tr.status-fail td {
  background-color: #ffe6e6;
  color: #721c24;
}

tr.status-pending td {
  background-color: #f0f0f0;
  color: #444;
}

.filter-bar {
  margin-bottom: 1em;
  display: flex;
  gap: 1em;
}

.stats {
  margin-top: 1em;
  font-size: 0.9em;
  color: #333;
}

.stats span {
  margin-right: 1em;
}

.category-stats {
  margin: 4px 0;
}
.badge {
  display:inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.badge-finalist {
  background: #28a745;
  color: #fff;
}

.badge-not-finalist {
  background: #e9ecef;
  color: #333;
}

.btn-finalist-toggle {
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.btn-finalist-toggle[formmethod="patch"] {
  /* optional */
}

#second_review_messages {
  width: 95%;
  max-width: 800px;
  margin: 1.5rem auto;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

#second_review_messages ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#second_review_messages li {
  background-color: #ffffff;
  border-left: 4px solid #0d6efd;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  line-height: 1.5;
}

#final_review_messages {
  width: 95%;
  max-width: 800px;
  margin: 1.5rem auto;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

#final_review_messages ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#final_review_messages li {
  background-color: #ffffff;
  border-left: 4px solid #0d6efd;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  line-height: 1.5;
}
.member-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;

  /* カード風スタイル */
  background: linear-gradient(145deg, #ffffff, #f0f4ff);
  border: 1px solid #d0d8ff;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.member-fields label {
  margin: 0;
  font-weight: 500;
  font-size: 0.95rem;
  color: #2c3e50;
}

.member-fields input[type="text"],
.member-fields input[type="date"] {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 0.4rem 0.6rem;
  border: 1px solid #aab6ff;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.member-fields input[type="text"]:focus,
.member-fields input[type="date"]:focus {
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
  outline: none;
}

.member-fields button {
  flex: 0 0 auto;
  background: #6c5ce7;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}

.member-fields button:hover {
  background: #4e3cc5;
  transform: translateY(-1px);
}

/* スマホ対応: 縦並び */
@media (max-width: 500px) {
  .member-fields {
    flex-direction: column;
    align-items: stretch;
  }

  .member-fields input,
  .member-fields button {
    width: 100%;
  }
}

/* 必須ラベル */
label.required::after {
  content: " *";
  color: #e74c3c; /* 赤色で目立たせる */
  font-weight: bold;
}

/* 入力必須欄の枠線強調 */
input:required,
textarea:required,
select:required {
  border: 2px solid #3498db; /* 青系で信頼感 */
  border-radius: 6px;
  padding: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:required:focus,
textarea:required:focus,
select:required:focus {
  border-color: #6c5ce7; /* フォーカス時にアクセントカラー */
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

/* エラー時の必須フィールド */
input:required.invalid,
textarea:required.invalid,
select:required.invalid {
  border-color: #e74c3c;
  background: #fdecea;
}

.field input[type="checkbox"] {
  width: auto;
  height: auto;
  cursor: pointer;
}

.highlight-message {
  background-color: #fff3cd;  /* 薄い黄色で注意を促す */
  border-left: 5px solid #f1c40f;  /* 左側にアクセントカラーのライン */
  padding: 1rem;
  border-radius: 8px;
  font-weight: 500;
  color: #856404;  /* 文字色は落ち着いたブラウン系で信頼感 */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
  line-height: 1.5;
  font-size: 1rem;
}

.field-note {
  font-size: 0.875rem;       /* 少し小さめ */
  color: #555555;            /* 薄いグレーで注釈感 */
  margin-top: 4px;           /* テキストボックスとの余白 */
  line-height: 1.4;          /* 読みやすさ向上 */
}

.field .required::after {
  content: " *";
  color: #d32f2f;            /* 赤色で必須マーク */
  margin-left: 2px;
}


@media (max-width: 500px) {
  .highlight-message {
    font-size: 0.95rem;
    padding: 0.8rem;
  }
}
.btn-review {
  background: #007bff;
  color: white;
  padding: 0.4em 0.8em;
  border-radius: 6px;
  text-decoration: none;
}

.modal-frame {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 1000;
  max-width: 900px;
  width: 90%;
}

.modal-frame.hidden {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 900;
}
.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tab {
  padding: 0.5rem 1rem;
  background: #eee;
  border-radius: 6px;
  text-decoration: none;
  color: black;
}

.tab:hover {
  background: #ddd;
}

.tab.active {
  background: #007bff;
  color: white;
  font-weight: bold;
}
/* ベースのスタイル */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 25px;
}

/* ヘッダー */
table thead {
  background: linear-gradient(135deg, #4f93d2, #285f8f);
  color: #fff;
  text-align: left;
}

table thead th {
  padding: 12px 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* 本文 */
table tbody tr {
  border-bottom: 1px solid #eaeaea;
  transition: background 0.2s ease;
}

table tbody tr:hover {
  background-color: #f9fbff;
}

table td {
  padding: 12px 16px;
  vertical-align: middle;
}

/* 操作リンク */
table td a {
  color: #4f93d2;
  text-decoration: none;
  font-weight: 500;
}

table td a:hover {
  text-decoration: underline;
}

/* スマホ対応 */
@media (max-width: 768px) {
  table {
    font-size: 13px;
  }
  table thead {
    display: none; /* モバイルではヘッダー非表示に */
  }
  table tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 8px;
  }
  table td {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
  }
  table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #666;
  }
}
 /* app/assets/stylesheets/application.css */
/*





 */
 /* ===== リセット系 ===== */
body, h1, h2, h3, p, ul, li, a {
  margin: 0;
  padding: 0;
}
ul { list-style: none; }
a { text-decoration: none; color: inherit; margin: 12px;  }
body {
  font-family: 
    "Noto Sans JP",     /* Google推奨の日本語Webフォント */
    "Hiragino Sans",    /* macOS */
    "Hiragino Kaku Gothic ProN", /* macOS旧 */
    "Meiryo",           /* Windows */
    "Yu Gothic UI",     /* Windows新 */
    sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2c3e50;
  background-color: #fafafa;
}
h1, h2, h3, .brand {
  font-family: 
    "M PLUS Rounded 1c", /* 丸ゴシックで柔らかい雰囲気 */
    "Kosugi Maru",
    "Hiragino Maru Gothic ProN", /* macOS */
    "Yu Gothic UI", 
    sans-serif;
  font-weight: 600;
  color: #2c3e50;
}
.container {
  margin: 2rem auto;
  padding: 0 1rem;
}
.nav { display:flex; justify-content:space-between; align-items:center; padding:12px 16px; border-bottom:1px solid #e5e7eb; }
.brand { font-weight:700; text-decoration:none; color:#111; }
.right .link, .brand { margin-right:12px; }
/* ===== リンク ===== */
.link {
  color: #1abc9c;               /* アクセントカラー */
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding: 0.1rem 0.2rem;
  transition: all 0.2s ease-in-out;
}

.link:hover {
  color: #16a085;
  border-bottom: 2px solid #16a085; /* 下線でアクセント */
}

.link:active {
  color: #0e6655;
}

.title { font-size: 1.5rem; margin: 0 0 16px; }
.field {
  display: flex;
  align-items: center;   /* チェックボックスとラベルを縦中央揃え */
  gap: 0.5rem;           /* チェックボックスとラベルの間隔 */
  flex-wrap: wrap;       /* 画面幅が狭い場合は折り返す */
  margin-bottom: 1rem;
}
.text { width: 100%; padding: 8px; border: 1px solid #d1d5db; border-radius: 4px; }
.btn, .btn-outline { padding: 8px 14px; border-radius: 6px; cursor:pointer; font-weight:600; }
.btn { background:#2563eb; color:#fff; border: none; }
.btn-outline { border:1px solid #9ca3af; background:#fff; }
.card { border:1px solid #e5e7eb; border-radius:8px; padding:12px; margin-bottom:12px; }
.muted { color:#6b7280; font-size: 0.9rem; }
.flash { margin: 12px 16px; padding: 10px; border-radius: 6px; }
.flash.notice { background:#ecfeff; border:1px solid #67e8f9; }
.flash.alert { background:#fef2f2; border:1px solid #fecaca; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.row-highlight { background-color: #fff9db; }
.col-highlight { background-color: #eaf3ff; }

/* ===== ヘッダー ===== */
header.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #625DA1;
  padding: 1rem 2rem;
  color: #fff;
}

header.nav .brand {
  font-size: 1.25rem;
  font-weight: bold;
  color: #fff;
}

header.nav nav.right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

header.nav .link {
  color: #ecf0f1;
  font-size: 0.95rem;
  transition: color 0.2s;
  text-decoration: none;
}

header.nav .link:hover {
  color: #1abc9c;
  text-decoration: underline;
}

header.nav form {
  margin: 0;
  background-color: transparent;
  padding: 0;
  border: none;
}

header.nav .btn-outline {
  background: transparent;
  border: 1px solid #ecf0f1;
  color: #ecf0f1;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  text-decoration: none;
}

header.nav .btn-outline:hover {
  background: #ecf0f1;
  color: #2c3e50;
}

/* =======================
   ベーススタイル（モバイルファースト）
   ======================= */
body {
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  background: #f5f7fb;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

form {
  width: 95%;
  max-width: 800px;
  margin: 1.5rem auto;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

h2, h3, h4 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.4rem;
  border-left: 6px solid #3498db;
  padding-left: 0.5rem;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

/* 入力フィールド */
 {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
  outline: none;
}

/* メンバー追加/削除ボタン */
button[data-action="members#add"],
button[data-action="members#remove"] {
  background: none;
  border: none;
  color: #6c5ce7;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 0.3rem;
}

button[data-action="members#remove"]:hover {
  color: #e74c3c;
}

/* エラー表示 */
.error-messages {
  border: 1px solid #e74c3c;
  background: #fdecea;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.error-messages h3 {
  color: #e74c3c;
  margin-top: 0;
}

/* 送信ボタン */
input[type="submit"] {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #3498db, #6c5ce7);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 0.9rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* =======================
   レスポンシブ対応
   ======================= */

/* タブレット以上 */
@media (min-width: 600px) {
  form {
    padding: 2rem 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  input[type="submit"] {
    font-size: 1.3rem;
    padding: 1rem;
  }
}

/* PC以上 */
@media (min-width: 900px) {
  form {
    padding: 2.5rem 3rem;
  }

  .field-group {
    display: flex;
    gap: 1rem;
  }

  .field-group .field {
    flex: 1;
  }

  input[type="submit"] {
    width: auto;
    min-width: 200px;
    margin-left: auto;
    margin-right: auto;
  }
}
