/* ============================================================
   Opportunities Archive
   ============================================================ */

.opp-inner {
  max-width: 980px;
  margin: 0 auto;
}

.opp-hero .page-hero__inner {
  min-height: 220px;
}

.opp-hero .page-hero__watermark {
  opacity: 0.5;
}

.opp-hero .page-hero__title {
  color: #145393;
}

.opp-hero .page-hero__subtitle {
  color: #1f2f39;
}

.opp-list-section {
  padding: 80px var(--gutter-width);
}

/* 下の CONTACT セクションと白カードが接してしまうため余白を入れる */
.page-opportunities-entry .ct-form {
  padding-bottom: 100px;
}

.page-opportunities-entry .ct-inner {
  padding-top: 32px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-opportunities-entry .ct-form form {
  padding: 42px 0 80px;
}

.page-opportunities-entry .ct-sellside {
  margin-bottom: 34px;
}

.page-opportunities-entry .ct-sellside__header {
  margin-bottom: 24px;
}

.page-opportunities-entry .ct-sellside__title {
  letter-spacing: 0.12em;
}

.page-opportunities-entry .ct-sellside__desc {
  max-width: 760px;
}

/* 案件が選択されていないときの案内（.ct-inner の白カード内に置く） */
.opp-entry-empty {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px 90px;
  text-align: center;
}

.opp-entry-empty__title {
  margin: 0 0 18px;
  font-family: var(--font-ja);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1f2f39;
}

.opp-entry-empty__text {
  margin: 0 0 32px;
  font-family: var(--font-ja);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: #55636d;
}

.opp-entry-empty__btn {
  margin-top: 0;
}

.opp-entry-summary {
  max-width: 600px;
  margin: 0 auto;
  padding: 26px 30px;
  background: #fff;
  border: 1px solid #dbe4ea;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.opp-entry-summary__label {
  margin: 0 0 10px;
  font-family: var(--font-ja);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #6a818f;
}

.opp-entry-summary__case-no {
  margin: 0 0 8px;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: var(--font-weight-demi);
  letter-spacing: 0.12em;
  color: #145393;
}

.opp-entry-summary__title {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.08em;
  color: #1f2f39;
}

.opp-entry-summary--warning {
  background: #fff7f7;
  border-color: #f0caca;
  box-shadow: none;
}

/* 案件情報の表示欄（JS で readonly を付与）— フォーカス不可の表示専用 */
.page-opportunities-entry .ct-form input[readonly],
.page-opportunities-entry .ct-form input[readonly]:focus {
  background: #eceef0;
  border-color: #e1e5e8;
  color: #555;
  cursor: default;
  outline: none;
  pointer-events: none;
  user-select: none;
}

.opp-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.opp-card {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 30px;
  padding: 30px;
  background: #fff;
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
}

.opp-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8ed;
}

.opp-card__media img,
.opp-card__placeholder {
  width: 100%;
  height: 100%;
}

.opp-card__media img {
  object-fit: cover;
  display: block;
}

.opp-card__placeholder {
  background: linear-gradient(135deg, #dce6ec 0%, #f1f5f8 100%);
}

.opp-card__body {
  min-width: 0;
}

.opp-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-bottom: 10px;
}

.opp-card__meta-item--no {
  margin-left: auto;
}

.opp-card__meta-item {
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 22px;
  letter-spacing: 0.12em;
  color: #555;
}

.opp-card__title {
  margin: 0 0 16px;
  font-family: var(--font-ja);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: #1f2f39;
}

.opp-card__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin-bottom: 14px;
  background: #cfd9e1;
}

.opp-card__spec {
  min-width: 0;
}

.opp-card__spec dt,
.opp-card__spec dd {
  margin: 0;
  padding: 10px 12px;
  font-family: var(--font-ja);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.opp-card__spec dt {
  background: #edf4f8;
  font-weight: 700;
  color: #4e606c;
}

.opp-card__spec dd {
  background: #dbeaf3;
  font-weight: 700;
  color: #145393;
}

.opp-card__detail {
  font-family: var(--font-ja);
  line-height: 28px;
  letter-spacing: 0.12em;
  font-size: 14px;
  background-color: #f1f5f8;
  padding: 8px;
}

.opp-card__actions {
  margin-top: 10px;
  text-align: center;
}

.opp-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 0.12em;
  color: #fff;
  text-decoration: none;
}

.opp-card__btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.opp-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.opp-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 4px;
  font-family: var(--font-en);
  font-size: 14px;
  color: #728390;
}

.opp-pagination .page-numbers.current {
  color: #145393;
  font-weight: var(--font-weight-demi);
}

.opp-empty {
  text-align: center;
  font-family: var(--font-ja);
  color: #5a6973;
}

@media (max-width: 768px) {
  .opp-hero .page-hero__inner {
    min-height: 180px;
  }

  .page-opportunities-entry .ct-form {
    padding-right: var(--gutter-width);
    padding-left: var(--gutter-width);
    padding-bottom: 60px;
  }

  .opp-list-section {
    padding-bottom: 72px;
  }

  .opp-entry-empty {
    padding: 48px 4px 56px;
  }

  .opp-entry-empty__title {
    font-size: 17px;
  }

  .opp-entry-empty__text {
    margin-bottom: 26px;
    font-size: 14px;
    line-height: 1.9;
  }

  .opp-entry-empty__btn {
    width: 100%;
    max-width: 300px;
  }

  .opp-entry-summary {
    margin-top: 0;
    padding: 18px 18px 20px;
  }

  .page-opportunities-entry .ct-inner {
    padding-top: 20px;
  }

  .page-opportunities-entry .ct-form form {
    padding: 30px 0 40px;
  }

  .opp-entry-summary__title {
    font-size: 14px;
  }

  .opp-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .opp-card__meta {
  }

  .opp-card__meta-item {
    font-size: 13px;
  }

  .opp-card__title {
    font-size: 18px;
    line-height: 1.6;
  }

  .opp-card__specs {
    grid-template-columns: 1fr;
  }

  .opp-card__detail {
    font-size: 12px;
  }

  .opp-card__btn {
    width: 100%;
    min-width: 0;
  }
}
