/* ==========================================
   News Detail Page — Mobile First
   ========================================== */

.tai-news-detail-page {
  --news-detail-red: #c50018;
  --news-detail-text: #222;
  --news-detail-muted: #737373;
  overflow: hidden;
  background: #fff;
  color: var(--news-detail-text);
  font-family: var(--font-ja);
}

.tai-news-detail-page *,
.tai-news-detail-page *::before,
.tai-news-detail-page *::after {
  box-sizing: border-box;
}

.tai-news-detail-page a {
  color: inherit;
  text-decoration: none;
}

.tai-news-detail-page h1,
.tai-news-detail-page h2,
.tai-news-detail-page p {
  margin: 0;
}

.tai-news-detail-page img {
  display: block;
  width: 100%;
  height: auto;
}

.news-detail {
  padding: 111px 0 143px;
}

.news-detail-container {
  width: auto;
  margin: 0;
  padding: 0 8%;
}

.news-detail-article {
  margin-top: 64px;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.news-detail-meta time {
  color: var(--news-detail-muted);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: normal;
  line-height: 1;
}

.news-detail-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 17px 8px;
  border-radius: 8px;
  background: var(--news-detail-red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.news-detail-header h1 {
  margin-top: 40px;
  font-size: 29px;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  letter-spacing: 0.02em;
}

.news-detail-eyecatch {
  margin-top: 69px;
}

.news-detail-eyecatch img {
  aspect-ratio: 629 / 373;
  object-fit: cover;
}

.news-detail-body {
  margin-top: 85px;
}

.news-detail-body section + section {
  margin-top: 78px;
}

.news-detail-body h2 {
  position: relative;
  padding-left: 12px;
  font-size: 24px;
  margin-top: 60px;
  font-weight: 700 !important;
  line-height: 1.55 !important;
  letter-spacing: 0.01em;
}

.news-detail-body h3 {
  margin-top: 30px;
}

.news-detail-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.26em;
  width: 1px;
  height: 1.22em;
  background: var(--news-detail-text);
}

.news-detail-body p {
  margin-top: 35px;
  color: var(--news-detail-muted);
  font-size: 22px;
  font-weight: normal !important;
  line-height: 2.14 !important;
  letter-spacing: 0.02em;
}

.news-detail-back {
  display: flex;
  justify-content: flex-end;
  margin-top: 136px;
}

.news-detail-back a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 31px;
  min-width: 290px;
  min-height: 73px;
  padding: 18px 35px;
  border: 2px solid var(--news-detail-red);
  border-radius: 999px;
  background: #fff;
  color: var(--news-detail-red);
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.news-detail-back a:hover,
.news-detail-back a:focus-visible {
  background: var(--news-detail-red);
  color: #fff;
}

.news-detail-back span {
  --circle-size: 6px;
  position: relative;
  width: 50px;
  height: 12px;
  background-image: radial-gradient(circle, currentColor var(--circle-size), transparent var(--circle-size)),
                    linear-gradient(currentColor, currentColor);
  background-size: calc(var(--circle-size) * 2) calc(var(--circle-size) * 2), 100% 2px;
  background-position: 0% 50%, center;
  background-repeat: no-repeat;
  transition: background-position 0.3s ease;
}

.news-detail-back a:hover span,
.news-detail-back a:focus-visible span {
  background-position: 100% 50%, center;
}

@media screen and (max-width: 767px) {
  .news-detail-header h1 {
    font-size: 25px;
  }

  .news-detail-body p {
    font-size: 16px;
  }

  .news-detail-eyecatch {
    margin-top: 39px;
  }

  .news-detail-body {
    margin-top: 43px;
  }

  .news-detail-back {
    justify-content: center;
  }

  .news-detail-back a {
    gap: 18px;
    min-width: 220px;
    min-height: 54px;
    padding: 14px 24px;
    border-width: 1px;
    font-size: 16px;
  }

  .news-detail-back span {
    --circle-size: 4px;
    width: 34px;
    height: 8px;
    background-size: calc(var(--circle-size) * 2) calc(var(--circle-size) * 2), 100% 1px;
  }
}