.page-hero {
  background: linear-gradient(135deg, #FFF8F0 0%, #FDF0E4 40%, #EAF6FB 100%);
  padding: 56px 0 42px;
  border-bottom: 1px solid var(--color-border-light);
}
.page-hero .hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}
.page-kicker {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--color-orange-light);
  color: var(--color-orange-dark);
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.page-hero h1 {
  font-size: 2rem;
  line-height: 1.35;
  color: var(--color-text-main);
  margin-bottom: 14px;
}
.page-hero p {
  color: var(--color-text-sub);
}
.hero-panel {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.hero-panel ul { list-style: none; }
.hero-panel li { padding: 10px 0; border-bottom: 1px dashed var(--color-border); }
.hero-panel li:last-child { border-bottom: 0; }
.mov-section { padding: 58px 0; }
.mov-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
}
.mov-card + .mov-card { margin-top: 24px; }
.mov-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mov-note,
.mov-alert,
.mov-success {
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: .92rem;
  line-height: 1.8;
}
.mov-note { background: var(--color-blue-light); border: 1px solid #c8e5f3; }
.mov-alert { background: #FFF3F1; border: 1px solid #f3c5bf; color: #8a3328; }
.mov-success { background: var(--color-green-light); border: 1px solid #cfe6d5; color: #255a31; }
.mov-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mov-step {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.mov-step .num {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-orange); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.form-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.form-table th,
.form-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: top;
}
.form-table tr:last-child th,
.form-table tr:last-child td { border-bottom: 0; }
.form-table th {
  width: 31%;
  background: #fffaf3;
  font-size: .95rem;
  text-align: left;
  color: var(--color-text-main);
}
.required-badge {
  display: inline-block;
  padding: 3px 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: #ffede6;
  color: #bf4c14;
  font-size: .72rem;
  font-weight: 700;
}
.field-help { font-size: 1.00rem; color: var(--color-text-sub); margin-top: 8px; line-height: 1.7; }
.form-input,
.form-select,
.form-textarea,
.form-file {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: #fff;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.form-file:focus { outline: none; border-color: var(--color-orange); box-shadow: 0 0 0 4px rgba(245,131,42,.12); }
.form-textarea { min-height: 140px; resize: vertical; }
.radio-stack, .check-stack { display: grid; gap: 12px; }
.radio-item, .check-item {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}
.radio-item input, .check-item input { margin-top: 6px; transform: scale(2.15); }
.form-actions {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px;
}
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.status-box {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.status-table { width: 100%; border-collapse: collapse; }
.status-table th, .status-table td { padding: 12px 0; border-bottom: 1px solid var(--color-border-light); text-align: left; vertical-align: top; }
.status-table th { width: 32%; color: var(--color-text-sub); font-weight: 600; }
.inline-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 1rem; font-weight: 700;
}
.badge-active { background: var(--color-green-light); color: var(--color-green-dark); }
.badge-cancelled { background: #f6e6e4; color: #8d3f35; }
.badge-pending { background: var(--color-blue-light); color: var(--color-blue-dark); }
.admin-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.admin-side { position: sticky; top: 100px; align-self: start; }
.admin-menu a { display: block; padding: 12px 14px; border-radius: var(--radius-md); margin-bottom: 8px; background: #fff; border: 1px solid var(--color-border-light); }
.admin-menu a:hover, .admin-menu a.active { background: var(--color-orange-light); color: var(--color-orange-dark); }
.admin-search { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; min-width: 1180px; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 14px 12px; border-bottom: 1px solid var(--color-border-light); text-align: left; vertical-align: top; }
.admin-table thead th { background: #fffaf3; position: sticky; top: 0; }
@media (max-width: 960px) {
  .page-hero .hero-grid, .mov-grid-2, .status-grid, .admin-layout, .admin-search { grid-template-columns: 1fr; }
  .mov-steps { grid-template-columns: 1fr 1fr; }
  .form-table, .form-table tbody, .form-table tr, .form-table th, .form-table td { display: block; width: 100%; }
  .form-table th { border-bottom: 0; padding-bottom: 8px; }
  .form-table td { padding-top: 0; }
}
@media (max-width: 640px) {
  .page-hero h1 { font-size: 1.58rem; }
  .mov-card { padding: 20px; }
  .mov-steps { grid-template-columns: 1fr; }
}



/* =========================
   応募状況確認 詳細カード
========================= */

.mov-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 24px;
}

.mov-status-card {
  background: #fff;
  border: 1px solid #e7e2d8;
  border-radius: 20px;
  padding: 28px 28px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.mov-status-card-title {
  margin: 0 0 22px;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
}

.mov-detail-list {
  display: flex;
  flex-direction: column;
}

.mov-detail-item {
  padding: 16px 0 18px;
  border-bottom: 1px solid #ece7de;
}

.mov-detail-item:first-child {
  padding-top: 8px;
}

.mov-detail-label {
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.6;
  color: #6c665d;
  letter-spacing: 0.02em;
}

.mov-detail-value {
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.8;
  color: #222;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.mov-work-no {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0f4c81;
}

.mov-inline-link {
  color: #1f6fb2;
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 111, 178, 0.25);
  transition: all 0.2s ease;
}

.mov-inline-link:hover {
  color: #0f4c81;
  border-bottom-color: rgba(15, 76, 129, 0.45);
}

.mov-url-link {
  display: inline-block;
  line-height: 1.8;
}

.mov-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.mov-status-badge.is-active {
  background: #e8f4ea;
  color: #21653a;
}

.mov-status-badge.is-cancelled {
  background: #f4e9e9;
  color: #8a2f2f;
}

.mov-status-badge.is-pending {
  background: #eaf3fb;
  color: #2f6ea1;
}

.mov-status-badge.is-review {
  background: #fff4dd;
  color: #8a6518;
}

.mov-status-badge.is-selected {
  background: #ede7fb;
  color: #5b3ca8;
}

.mov-status-badge.is-not-selected {
  background: #efefef;
  color: #666;
}

.mov-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.mov-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.mov-btn-secondary {
  background: #fff;
  color: #333;
  border: 1px solid #d8d2c7;
}

.mov-btn-secondary:hover {
  background: #f7f4ef;
  color: #222;
}

.mov-btn-danger {
  background: #b64242;
  color: #fff;
  border: 1px solid #b64242;
}

.mov-btn-danger:hover {
  background: #9f3434;
  color: #fff;
}

.mov-btn-disabled {
  background: #f1f1f1;
  color: #888;
  border: 1px solid #e0e0e0;
  cursor: not-allowed;
}

@media (max-width: 991.98px) {
  .mov-status-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mov-status-card {
    padding: 22px 20px 16px;
    border-radius: 16px;
  }

  .mov-status-card-title {
    margin-bottom: 18px;
    font-size: 1.3rem;
  }

  .mov-detail-item {
    padding: 14px 0 16px;
  }

  .mov-detail-label {
    margin-bottom: 6px;
    font-size: 0.85rem;
  }

  .mov-detail-value {
    font-size: 1rem;
    line-height: 1.75;
  }

  .mov-status-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mov-btn,
  .mov-btn-disabled {
    width: 100%;
    min-width: auto;
  }
}



/* =========================
   status.php 用 改善UI
========================= */

.mov-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 4px;
}

.mov-status-card {
  background: #fff;
  border: 1px solid #e7e2d8;
  border-radius: 20px;
  padding: 28px 28px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.mov-status-card-title {
  margin: 0 0 22px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
}

.mov-detail-list {
  display: flex;
  flex-direction: column;
}

.mov-detail-item {
  padding: 16px 0 18px;
  border-bottom: 1px solid #ece7de;
}

.mov-detail-item:first-child {
  padding-top: 8px;
}

.mov-detail-label {
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.6;
  color: #6c665d;
  letter-spacing: 0.02em;
}

.mov-detail-value {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.8;
  color: #222;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.mov-work-no {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0f4c81;
}

.mov-inline-link {
  color: #1f6fb2;
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 111, 178, 0.25);
  transition: all 0.2s ease;
}

.mov-inline-link:hover {
  color: #0f4c81;
  border-bottom-color: rgba(15, 76, 129, 0.45);
}

.mov-url-link {
  display: inline-block;
  line-height: 1.8;
}

.mov-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.mov-status-badge.is-active {
  background: #e8f4ea;
  color: #21653a;
}

.mov-status-badge.is-cancelled {
  background: #f4e9e9;
  color: #8a2f2f;
}

.mov-status-badge.is-pending {
  background: #eaf3fb;
  color: #2f6ea1;
}

.mov-status-badge.is-review {
  background: #fff4dd;
  color: #8a6518;
}

.mov-status-badge.is-selected {
  background: #ede7fb;
  color: #5b3ca8;
}

.mov-status-badge.is-not-selected {
  background: #efefef;
  color: #666;
}

.mov-check-card {
  background: #fcfbf8;
  border: 1px solid #ece7de;
  border-radius: 16px;
  padding: 18px 18px 14px;
}

.mov-check-list {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.9;
}

.mov-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.mov-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 180px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.mov-btn-secondary {
  background: #fff;
  color: #333;
  border: 1px solid #d8d2c7;
}

.mov-btn-secondary:hover {
  background: #f7f4ef;
  color: #222;
}

.mov-btn-danger {
  background: #b64242;
  color: #fff;
  border: 1px solid #b64242;
}

.mov-btn-danger:hover {
  background: #9f3434;
  color: #fff;
}

.mov-btn-disabled {
  background: #f1f1f1;
  color: #888;
  border: 1px solid #e0e0e0;
  cursor: not-allowed;
}

@media (max-width: 991.98px) {
  .mov-status-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mov-status-card {
    padding: 22px 20px 16px;
    border-radius: 16px;
  }

  .mov-status-card-title {
    margin-bottom: 18px;
    font-size: 1.28rem;
  }

  .mov-detail-item {
    padding: 14px 0 16px;
  }

  .mov-detail-label {
    margin-bottom: 6px;
    font-size: 0.85rem;
  }

  .mov-detail-value {
    font-size: 1rem;
    line-height: 1.75;
  }

  .mov-status-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mov-btn,
  .mov-btn-disabled {
    width: 100%;
    min-width: auto;
  }
}



/* =========================
   mov admin entries.php 調整
========================= */

.admin-search-flat {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
}

.admin-search-flat .btn {
  min-height: 48px;
}

.admin-table-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.admin-result-count {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

.admin-table-scroll {
  overflow-x: auto;
}

.admin-entry-no {
  font-weight: 700;
  color: #0f4c81;
}

.admin-empty {
  text-align: center;
  padding: 28px 16px;
  color: #666;
}

.admin-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 24px;
}

.inline-badge.badge-review {
  background: #fff4dd;
  color: #8a6518;
}

.inline-badge.badge-selected {
  background: #ede7fb;
  color: #5b3ca8;
}

.inline-badge.badge-not-selected {
  background: #efefef;
  color: #666;
}

@media (max-width: 991.98px) {
  .admin-search-flat {
    grid-template-columns: 1fr;
  }

  .admin-bottom-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-bottom-actions .btn {
    width: 100%;
  }
}



.admin-detail{
display:flex;
flex-direction:column;
gap:16px;
margin-top:20px;
}

.admin-detail-item{
display:flex;
flex-direction:column;
padding:14px 0;
border-bottom:1px solid #eee;
}

.admin-detail-item .label{
font-size:13px;
color:#888;
margin-bottom:4px;
}

.admin-detail-item .value{
font-size:16px;
font-weight:500;
word-break:break-all;
}


/* =========================
   admin entry_detail.php
========================= */

.admin-detail-card {
  padding: 34px 36px 30px;
}

.admin-detail-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

/* 詳細ブロック */
.admin-detail-block{
  position:relative;
  background:#fff;
  border:2px solid #e6e0d6;
  border-radius:12px;
  padding:22px 18px 18px;
}

/* ラベル */
.admin-detail-label{
  position:absolute;
  top:-11px;
  left:14px;
  background:#fff;
  padding:2px 10px;
  font-size:12px;
  font-weight:600;
  color:#666;
  border-radius:20px;
  border:1px solid #ddd;
}

/* 値 */
.admin-detail-value{
  font-size:16px;
  font-weight:600;
  color:#222;
  word-break:break-all;
}

.admin-inline-sub {
  color: #666;
  font-weight: 400;
}

.admin-file-path {
  margin-top: 8px;
  font-size: 0.92rem;
  color: #666;
  line-height: 1.7;
  word-break: break-all;
}

/* 作品番号だけ強調 */
.admin-entry-no{
  font-size:18px;
  font-weight:700;
  letter-spacing:1px;
  color:#0f4c81;
}

.admin-form-card {
  padding: 30px 36px 28px;
}

.admin-form-title {
  margin: 0 0 18px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #222;
}

.admin-update-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-form-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #444;
}

.admin-notes {
  min-height: 180px;
}

.admin-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 10px;
}

.admin-bottom-actions-center {
  justify-content: center;
}

@media (max-width: 991.98px) {
  .admin-detail-card,
  .admin-form-card {
    padding: 24px 18px 22px;
  }

  .admin-detail-stack {
    gap: 12px;
  }

  .admin-detail-block {
    padding: 14px 14px;
    border-radius: 12px;
  }

  .admin-detail-value {
    font-size: 1rem;
    line-height: 1.75;
  }

  .admin-bottom-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-bottom-actions .btn {
    width: 100%;
  }
}




.admin-table {
  width: 100%;
  table-layout: fixed;
}

.admin-table th,
.admin-table td {
  vertical-align: top;
  word-break: break-word;
}

.admin-table th:nth-child(1),
.admin-table td:nth-child(1) {
  width: 16%;
}

.admin-table th:nth-child(2),
.admin-table td:nth-child(2) {
  width: 11%;
}

.admin-table th:nth-child(3),
.admin-table td:nth-child(3) {
  width: 12%;
}

.admin-table th:nth-child(4),
.admin-table td:nth-child(4) {
  width: 14%;
}

.admin-table th:nth-child(5),
.admin-table td:nth-child(5) {
  width: 10%;
}

.admin-table th:nth-child(6),
.admin-table td:nth-child(6) {
  width: 11%;
}

.admin-table th:nth-child(7),
.admin-table td:nth-child(7) {
  width: 11%;
}

.admin-table th:nth-child(8),
.admin-table td:nth-child(8) {
  width: 11%;
}

.admin-table th:nth-child(9),
.admin-table td:nth-child(9) {
  width: 8%;
}



/* =========================
   admin entry_detail.php
   シンプル表示
========================= */

.admin-detail-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

.admin-detail-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-detail-label {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  color: #222;
}

.admin-detail-value {
  min-height: 52px;
  padding: 14px 16px;
  background: #fff;
  /*border: 1px solid #d9d1c3;
  border-radius: 14px;*/
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.8;
  color: #222;
  word-break: break-all;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.admin-entry-no {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f4c81;
  letter-spacing: 0.02em;
}

.admin-inline-sub {
  color: #666;
  font-weight: 400;
}

.admin-file-path {
  margin-top: 8px;
  font-size: 0.92rem;
  color: #666;
  line-height: 1.7;
  word-break: break-all;
}

@media (min-width: 900px) {
  .admin-detail-stack {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 899.98px) {
  .admin-detail-stack {
    grid-template-columns: 1fr;
  }

  .admin-detail-label {
    font-size: 0.92rem;
  }

  .admin-detail-value {
    font-size: 1rem;
    min-height: 48px;
    padding: 12px 14px;
  }
}



.admin-entry-link {
  color: #0f4c81;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 76, 129, 0.2);
  transition: all 0.2s ease;
}

.admin-entry-link:hover {
  color: #0b3a62;
  border-bottom-color: rgba(11, 58, 98, 0.45);
}