/* News Detail Styles */

/* Layout */
.news-detail-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px 100px;
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体",
    "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo,
    sans-serif;
  color: #333;
}

@media screen and (max-width: 768px) {
  .news-detail-container {
    padding: 40px 20px 80px;
  }
}

/* Loading & Error */
.loading,
.error-message {
  text-align: center;
  padding: 50px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.error-text {
  color: #e74c3c;
  margin-bottom: 20px;
}

/* Article Header */
.article-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 30px;
  margin-bottom: 40px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.article-date {
  font-size: 14px;
  color: #666;
  letter-spacing: 0.05em;
}

.article-category {
  font-size: 12px;
  color: #fff;
  background-color: #333; /* Default dark */
  padding: 4px 12px;
  border-radius: 20px;
}

.article-title {
  font-size: 28px;
  line-height: 1.5;
  font-weight: bold;
  letter-spacing: 0.05em;
}

@media screen and (max-width: 768px) {
  .article-title {
    font-size: 22px;
  }
}

/* Article Content */
.article-content {
  line-height: 1.8;
  font-size: 16px;
  margin-bottom: 60px;
}

.article-content h2 {
  font-size: 22px;
  font-weight: bold;
  border-left: 4px solid #005bac; /* Brand Blue */
  padding-left: 15px;
  margin: 40px 0 20px;
}

.article-content h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 30px 0 15px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 4px;
}

.article-content ul,
.article-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content a {
  color: #005bac;
  text-decoration: underline;
  transition: opacity 0.3s;
}

.article-content a:hover {
  opacity: 0.7;
}

.article-content blockquote {
  border-left: 4px solid #eee;
  padding-left: 15px;
  margin: 20px 0;
  color: #666;
}

/* Article Footer */
.article-footer,
.back-link-container {
  text-align: center;
  margin-top: 40px;
}

.back-link {
  display: inline-block;
  padding: 12px 40px;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  transition: background-color 0.3s;
  font-size: 14px;
}

.back-link:hover {
  background-color: #555;
  opacity: 1;
}

/* LP CTA Banner */
.lp-cta {
  margin-top: 60px;
  margin-bottom: 20px;
}

.lp-cta_card {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 24px;
  border: 2px solid #e0e6ed;
  border-radius: 12px;
  background-color: #f8fafb;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.lp-cta_card:hover {
  border-color: #004896;
  box-shadow: 0 4px 16px rgba(0, 72, 150, 0.12);
  transform: translateY(-2px);
}

.lp-cta_img {
  width: 260px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.lp-cta_img img {
  width: 100%;
  height: auto;
  display: block;
}

.lp-cta_body {
  flex: 1;
  min-width: 0;
}

.lp-cta_label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #004896;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.lp-cta_title {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
  color: #333;
  margin-bottom: 16px;
}

.lp-cta_btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  background-color: #004896;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.lp-cta_card:hover .lp-cta_btn {
  background-color: #003670;
}

.lp-cta_btn::after {
  content: "→";
}

@media screen and (max-width: 768px) {
  .lp-cta_card {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .lp-cta_img {
    width: 100%;
  }

  .lp-cta_title {
    font-size: 16px;
  }
}
