/* =========================================================
   apply.html / admin-apply.html 専用
   - 他ページは style.css のまま
   - apply/admin-apply だけ apply.css を読む
   ========================================================= */

@import url("/assets/style.css");

:root {
  --focus-ring: 0 0 0 1px rgba(99, 102, 241, 0.35), 0 0 0 4px rgba(99, 102, 241, 0.14);
}

/* =========================================
   admin-apply の横幅（左ベタ張り付き対策）
   ========================================= */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.header-nav a.active {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================
   apply.html（応募フォーム）
   ========================================= */
.detail-card {
  margin-top: 16px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

#apply-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#apply-form label {
  display: inline-block;
  font-size: 13px;
  color: var(--text-main);
  font-weight: 700;
  margin-top: 6px;
  padding-left: 10px;
  border-left: 3px solid rgba(99, 102, 241, 0.25);
}

#apply-form input[type="text"],
#apply-form input[type="email"],
#apply-form input[type="number"],
#apply-form select,
#apply-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #f9fafb;
  font-size: 14px;
  color: var(--text-main);
}

#apply-form input:hover,
#apply-form select:hover,
#apply-form textarea:hover {
  border-color: rgba(99, 102, 241, 0.35);
}

#apply-form textarea {
  min-height: 130px;
  resize: vertical;
}

#apply-form input:focus,
#apply-form select:focus,
#apply-form textarea:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: var(--focus-ring);
  background: #ffffff;
}

/* select の試作感を消す（矢印を整える） */
#apply-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(17,24,39,.55) 50%),
    linear-gradient(135deg, rgba(17,24,39,.55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.cf-turnstile { margin-top: 8px; }

#submit-btn {
  margin-top: 8px;
  align-self: flex-start;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.28);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

#submit-btn:hover { opacity: 0.95; transform: translateY(-1px); }
#submit-btn:active { transform: translateY(0px); }

.message {
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 0;
}
.message.error { color: #dc2626; font-weight: 800; }

/* =========================================
   admin-apply.html（応募管理）
   ========================================= */
.hero {
  margin-top: 18px;
  padding: 18px 18px 14px;
  border-radius: var(--radius-lg);
  background: rgba(238, 240, 255, 0.55);
  border: 1px solid var(--border-soft);
}
.hero-title { margin: 0 0 6px; font-size: 24px; letter-spacing: 0.03em; }
.hero-subtitle { margin: 0; font-size: 14px; color: var(--text-muted); }

.card {
  margin-top: 18px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
}
.card-body { padding: 20px 20px 18px; }

.section-title { margin: 0 0 10px; font-size: 18px; }
.section-subtitle { margin: 0 0 6px; font-size: 15px; color: var(--text-main); }

.muted { margin: 6px 0 12px; font-size: 13px; color: var(--text-muted); }

.divider { height: 1px; background: rgba(226, 232, 240, 0.9); margin: 16px 0; }

.checkline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-main);
}
.checkline input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

/* actions：ボタンとメッセージを中央揃えで固定 */
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.actions .msg {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  min-height: 36px; /* ボタン相当 */
  color: var(--text-muted);
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  transition: transform var(--transition-fast), opacity var(--transition-fast),
    background var(--transition-fast), box-shadow var(--transition-fast);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.28);
}
.btn.primary:hover { opacity: .95; transform: translateY(-1px); }

.btn.secondary {
  background: var(--accent-soft);
  color: #374151;
  border: 1px solid rgba(99, 102, 241, 0.18);
}
.btn.secondary:hover { opacity: .95; }

.btn.danger {
  background: rgba(239, 68, 68, 0.12);
  color: #b42318;
  font-weight: 800;
  min-width: 72px;
  white-space: nowrap;
}
.btn.small { padding: 7px 14px; }

/* 行カード（theme/slot 共通） */
.rowline {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 12px 12px;
}

/* 入力（admin-apply用） */
.card input[type="text"],
.card input[type="number"],
input.t-label,
input.s-label,
input.s-cap {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #f9fafb;
  font-size: 14px;
  color: var(--text-main);
}

.card input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: var(--focus-ring);
  background: #ffffff;
}

/* label.mini（JSが生成） */
label.mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
label.mini input { accent-color: var(--accent); }

/* --- テーマ（表示名だけ） --- */
.theme-card .theme-main {
  display: grid;
  grid-template-columns: 1fr auto 80px;
  gap: 10px;
  align-items: center;
}

/* --- 応募枠（表示名だけ + 有効） --- */
.slot-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  align-items: start;
}

.slot-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.slot-meta {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 12px;
  align-items: center;       /* ←「埋まり」と「削除」の縦ズレ防止 */
  justify-content: flex-end;
}

.slot-meta label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;       /* ←「募集人数」の変な改行防止 */
}

.cap-input { width: 110px; }

.booked-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  background: #f3f4f6;
  padding: 5px 10px;
  border-radius: 999px;
}

/* 応募一覧テーブル */
.table-wrap {
  overflow: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 13px;
}
.table thead th {
  text-align: left;
  font-weight: 800;
  padding: 10px 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  background: #f9fafb;
}
.table tbody td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  vertical-align: top;
}
.table tbody tr:hover { background: rgba(99, 102, 241, 0.06); }
.table tbody tr:last-child td { border-bottom: 0; }

/* =========================================
   モバイル
   ========================================= */
@media (max-width: 900px) {
  #submit-btn {
    width: 100%;
    align-self: stretch;
    justify-content: center;
  }

  .theme-card .theme-main {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .slot-card { grid-template-columns: 1fr; }
  .slot-main { grid-template-columns: 1fr; }

  .slot-meta {
    justify-content: flex-start;
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .detail-card { padding: 16px 14px 14px; }
  .card-body { padding: 16px 14px 14px; }
  .hero { padding: 16px 14px 12px; }
}




/* index.html（style.css）と同じヘッダーナビの文字サイズに揃える */
.header-nav{
  margin-top: 6px;
  font-size: 13px;
}

.header-nav a{
  color: var(--accent);
  text-decoration: none;
  margin-right: 12px;
}

.header-nav a:hover{
  text-decoration: underline;
}



/* index.html（style.css）と同じヘッダーナビの文字サイズに揃える */
.header-nav{
  margin-top: 6px;
  font-size: 13px;
}

.header-nav a{
  color: var(--accent);
  text-decoration: none;
  margin-right: 12px;
}

.header-nav a:hover{
  text-decoration: underline;
}


/* ヘッダー内リンクの文字サイズを統一（index / admin 共通） */
header a {
  font-size: 13px;
}

/* 念のため行間も揃える */
header {
  line-height: 1.6;
}

