/* ==========================================================================
   1. ベーススタイル（スマホ縦想定）
   ========================================================================== */
.news-single-card {
  max-width: 1280px;
  margin: 25px auto;
  background-color: #ffffff;
  border: 1px solid rgba(20, 47, 64, 0.08);
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 20px 45px rgba(20, 47, 64, 0.06);
  box-sizing: border-box;
}

.news-single-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.news-single-date {
  font-size: 0.9rem;
  color: var(--main-color-3, #666666);
  font-weight: 700;
}

.news-single-category {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
}

.news-single-category-recruit {
  background-color: rgba(166, 68, 93, 0.1);
  color: var(--main-color-1, #a6445d);
}

.news-single-category-notice {
  background-color: rgba(20, 47, 64, 0.1);
  color: var(--main-color-2, #142f40);
}

.news-single-entry-title {
  font-size: 1.5rem;
  color: var(--main-color-2, #142f40);
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 30px 0;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--sub-color-2, #f5f5f5);
}

.news-single-content.wp-content {
  color: #333333;
  font-size: 1rem;
  line-height: 1.95;
}

.news-single-content.wp-content p {
  margin: 0 0 1.6em 0;
  word-break: break-all;
}

.news-single-content.wp-content a {
  color: var(--main-color-1, #a6445d);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  word-break: break-all;
}

.news-single-content.wp-content img,
.news-single-content.wp-content .aligncenter img,
.news-single-content.wp-content p img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2em auto;
  display: block;
}

.news-single-content.wp-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2.5em 0;
  border: 1px solid rgba(20, 47, 64, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.news-single-content.wp-content table caption {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--main-color-2, #142f40);
  text-align: left;
  padding: 0 0 10px 4px;
  caption-side: top;
}

.news-single-content.wp-content th,
.news-single-content.wp-content td {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  text-align: left;
  line-height: 1.6;
  font-size: 0.95rem;
}

.news-single-content.wp-content th {
  background-color: var(--sub-color-2, #f5f5f5);
  color: var(--main-color-2, #142f40);
  font-weight: 700;
}

.news-single-content.wp-content td {
  background-color: #ffffff;
  margin-bottom: 12px;
}

.news-single-content.wp-content tr:last-child td:last-child {
  margin-bottom: 0;
}

.news-single-related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--sub-color-2, #f5f5f5);
}

.news-single-related__title {
  font-size: 1.3rem;
  color: var(--main-color-2, #142f40);
  font-weight: 700;
  margin: 0 0 28px 0;
  text-align: center;
}

.news-single-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.news-single-related__item {
  background: #faf8f5;
  border-radius: 10px;
  border: 1px solid rgba(231, 222, 205, 0.6);
}

.news-single-related__link {
  display: block;
  padding: 24px;
  text-decoration: none;
  color: #333333;
}

.news-single-related__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.news-single-related__date {
  font-size: 0.85rem;
  color: var(--main-color-3, #666666);
  font-weight: 700;
}

.news-single-related__label {
  font-size: 0.7rem;
  font-weight: 700;
  background-color: var(--sub-color-2, #f5f5f5);
  color: var(--main-color-2, #142f40);
  padding: 3px 10px;
  border-radius: 3px;
}

.news-single-related__item-title {
  font-size: 1.05rem;
  color: var(--main-color-2, #142f40);
  margin: 0 0 10px 0;
  font-weight: 700;
  line-height: 1.5;
}

.news-single-related__excerpt {
  font-size: 0.85rem;
  color: #666666;
  margin: 0;
}

.news-single-footer {
  margin-top: 50px;
  text-align: center;
}

.news-single-btn-back {
  display: inline-block;
  padding: 14px 64px;
  border: 1px solid var(--main-color-2, #142f40);
  color: var(--main-color-2, #142f40);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 30px;
}

/* ==========================================================================
   2. ブレイクポイント（スマホ横想定）
   ========================================================================== */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .news-single-card {
    padding: 30px;
  }
}

/* ==========================================================================
   3. ブレイクポイント（タブレット想定）
   ========================================================================== */
@media screen and (min-width: 768px) and (min-height: 501px) {
  .news-single-card {
    padding: 45px 50px;
  }

  .news-single-entry-title {
    font-size: 1.8rem;
  }

  .news-single-content.wp-content th,
  .news-single-content.wp-content td {
    display: table-cell;
    width: auto;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(20, 47, 64, 0.08);
  }

  .news-single-content.wp-content th {
    width: 22%;
    min-width: 130px;
    vertical-align: top;
    border-right: 1px solid rgba(20, 47, 64, 0.08);
  }

  .news-single-content.wp-content td {
    margin-bottom: 0;
  }

  .news-single-content.wp-content tr:last-child th,
  .news-single-content.wp-content tr:last-child td {
    border-bottom: none;
  }

  .news-single-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   4. ブレイクポイント（PC想定）
   ========================================================================== */
@media screen and (min-width: 1024px) and (min-height: 501px) {
  .news-single-card {
    padding: 64px 80px;
  }

  .news-single-entry-title {
    font-size: 2.1rem;
    line-height: 1.4;
    margin-bottom: 40px;
    padding-bottom: 30px;
  }
}
