/* ===================================================
   recruit-detail.css — 募集要項詳細ページ共通
   =================================================== */

/* ===== HERO ===== */
.detail-hero {
  padding: 120px 24px 60px;
  text-align: center;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
}

.detail-hero-title {
  font-family: 'Shippori Mincho B1', serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 16px;
}

.detail-hero-deadline {
  font-size: 0.9rem;
  color: var(--text-sub);
  letter-spacing: 0.05em;
}
.detail-hero-deadline strong {
  color: var(--gold);
}

/* ===== LAYOUT ===== */
.detail-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 100px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* ===== MAIN CONTENT ===== */
.detail-main {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.detail-block {}

.detail-h2 {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-gold);
  margin-bottom: 20px;
}

.detail-block p {
  font-size: 0.93rem;
  color: var(--text-sub);
  line-height: 2;
}

.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-list li {
  font-size: 0.93rem;
  color: var(--text-sub);
  padding-left: 18px;
  position: relative;
  line-height: 1.8;
}
.detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

.detail-list--caution li::before {
  background: #e07070;
}
.detail-list--caution li {
  color: rgba(255,255,255,0.65);
}

.detail-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 12px;
  border-left: 2px solid var(--border);
}

/* ===== TABLE ===== */
.detail-table-wrap {
  overflow-x: auto;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.detail-table th,
.detail-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  line-height: 1.7;
}

.detail-table th {
  width: 140px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.detail-table td {
  color: var(--text-main);
}

/* sponsor table */
.detail-table--sponsor thead tr {
  background: var(--bg-surface);
}
.detail-table--sponsor thead th {
  color: var(--text-sub);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  width: auto;
}

.sponsor-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.sponsor-badge--gold   { background: rgba(212,175,55,0.2);  color: #d4af37; }
.sponsor-badge--silver { background: rgba(180,180,180,0.15); color: #b4b4b4; }
.sponsor-badge--bronze { background: rgba(176,100,60,0.18); color: #c87941; }
.sponsor-badge--goods  { background: rgba(255,255,255,0.08); color: var(--text-sub); }

/* ===== SIDEBAR ===== */
.detail-sidebar {
  position: sticky;
  top: 88px;
}

.detail-sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-sidebar-label {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.detail-sidebar-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.detail-sidebar-info div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.86rem;
}
.detail-sidebar-info span { color: var(--text-muted); }
.detail-sidebar-info strong { color: var(--gold); }

.detail-apply-btn {
  display: block;
  text-align: center;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: opacity 0.2s;
}
.detail-apply-btn:hover { opacity: 0.88; }

.detail-back-link {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.detail-back-link:hover { color: var(--text-sub); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
    padding: 48px 20px 80px;
  }
  .detail-sidebar {
    position: static;
    order: -1;
  }
  .detail-sidebar-card {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
  }
  .detail-sidebar-label { width: 100%; }
  .detail-sidebar-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 24px;
    flex: 1;
  }
  .detail-apply-btn { width: 100%; }
  .detail-back-link { width: 100%; }
}

@media (max-width: 600px) {
  .detail-hero { padding: 100px 20px 48px; }
  .detail-table th { width: 100px; }
}
