/* ===================================================================
   News Page Styles - Archive and Single
   Extracted from https://www.onwords.co.jp/news (STUDIO site)
   =================================================================== */

/* ===================================================================
   NEWS ARCHIVE PAGE
   =================================================================== */

/* Archive List Section */
.archive-list__container {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 16px;
}

.archive-list__items {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.archive-list__items .news__item {
  border-bottom: 1px solid rgb(226, 226, 226);
  padding: 0;
}

.archive-list__items .news-item {
  display: flex;
  flex-direction: row;
  gap: 24px;
  padding: 24px 0;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.archive-list__items .news-item:hover {
  opacity: 0.7;
}

.archive-list__items .news-item__meta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.archive-list__items .news-item__date {
  font-size: 14px;
  font-weight: 500;
  color: rgb(66, 66, 66);
  margin: 0;
}

.archive-list__items .news-item__category {
  font-size: 12px;
  font-weight: 500;
  color: rgb(255, 255, 255);
  background: linear-gradient(90deg, rgb(231, 74, 74), rgb(231, 74, 74));
  padding: 2px 8px;
  margin: 0;
  border-radius: 2px;
}

.archive-list__items .news-item__title {
  font-size: 16px;
  font-weight: 500;
  color: rgb(51, 51, 51);
  line-height: 1.6;
  margin: 0;
}

.archive-list__no-posts {
  text-align: center;
  padding: 80px 0;
  font-size: 16px;
  color: rgb(102, 102, 102);
}

/* ===================================================================
   SINGLE POST PAGE (共通記事詳細)
   =================================================================== */

/* メインコンテナ */
.single-post {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 記事コンテナ */
.single-post__container {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* 記事ヘッダー */
.single-post__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 768px;
  width: 100%;
  margin-top: 64px;
  margin-bottom: 28px;
}

.single-post__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 57.6px;
  color: rgb(0, 0, 0);
  margin: 0;
  border-bottom: 1px solid rgb(226, 226, 226);
  padding-bottom: 10px;
}

.single-post__meta {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
}

.single-post__category,
.single-post__tag {
  font-size: 12px;
  font-weight: 500;
  line-height: 21px;
  color: rgb(34, 34, 34);
  background-color: rgb(246, 246, 246);
  padding: 0 6px;
  border-radius: 2px;
  text-decoration: none;
}

.single-post__date {
  font-size: 14px;
  font-weight: 500;
  line-height: 24.5px;
  color: rgb(34, 34, 34);
  margin: 0;
}

/* アイキャッチ画像 */
.single-post__featured-image {
  max-width: 768px;
  margin: 0 auto 28px;
  overflow: hidden;
}

.single-post__featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* クライアント情報（導入事例専用） */
.single-post__client {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.single-post__client-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.single-post__client-name {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.75;
  color: rgb(34, 34, 34);
  margin: 0;
  padding: 0;
}

/* カテゴリリスト（導入事例専用） */
.single-post__categories {
  display: flex;
}

.single-post__category-list {
  display: flex;
  flex-direction: row;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.single-post__category-item {
  display: flex;
  list-style: none;
}

.single-post__category-text {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.75;
  color: rgb(34, 34, 34);
  padding: 2px 6px;
  background-color: rgb(246, 246, 246);
  border-radius: 2px;
  margin: 0;
}

/* カテゴリリストがある場合、メタ情報を左右配置に変更 */
.single-post__meta:has(.single-post__categories) {
  justify-content: space-between;
}

/* 記事本文 */
.single-post__content {
  width: 100%;
}

/* 見出しスタイル */
.single-post__content h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 57.6px;
  color: rgb(0, 0, 0);
  margin-top: 0;
  margin-bottom: 0;
}

.single-post__content h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 38.4px;
  color: rgb(34, 34, 34);
  margin: 40px 0 24px;
  padding: 0 0 4px;
  border-bottom: 1px solid rgb(230, 1, 18);
}

.single-post__content h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 35px;
  color: rgb(34, 34, 34);
  margin: 10px 0;
  padding: 0;
}

.single-post__content h4 {
  font-size: 20px;
  font-weight: 700;
  line-height: 35px;
  color: rgb(34, 34, 34);
  margin: 10px 0;
}

.single-post__content h5,
.single-post__content h6 {
  font-size: 18px;
  font-weight: 700;
  line-height: 30px;
  color: rgb(34, 34, 34);
  margin-top: 10px;
  margin-bottom: 10px;
}

/* 段落スタイル */
.single-post__content p {
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: rgb(34, 34, 34);
  margin: 20px 0;
  padding: 0;
}

/* リストスタイル */
.single-post__content ul,
.single-post__content ol {
  margin: 20px 0;
  list-style-type: none;
}

.single-post__content li {
  font-size: 16px;
  font-weight: 400;
  line-height: 20.8px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.single-post__content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: rgb(34, 34, 34);
}

/* 引用スタイル */
.single-post__content blockquote {
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  line-height: 28px;
  color: rgb(34, 34, 34);
  background-color: transparent;
  border-left: 3px solid rgba(0, 0, 0, 0.15);
  padding: 10px 15px;
  margin: 20px 0;
}

/* 強調スタイル */
.single-post__content strong {
  font-weight: 900;
  color: rgb(34, 34, 34);
}

/* 斜体スタイル */
.single-post__content em {
  font-style: italic;
  color: rgb(34, 34, 34);
}

/* 区切り線スタイル */
.single-post__content hr {
  border: none;
  border-top: 1px solid rgb(204, 204, 204);
  height: 1px;
  margin: 10px 0;
}

/* リンクスタイル */
.single-post__content a {
  color: rgb(0, 124, 255);
  text-decoration: underline;
}

.single-post__content a:hover {
  text-decoration: underline;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */

/* モバイル（767px以下） */
@media (max-width: 767px) {
  /* メタ情報の幅調整 */
  .single-post__meta {
    width: 324px;
    margin-top: 14px;
  }

  /* 段落フォントサイズ調整 */
  .single-post__content p {
    font-size: 14px;
    line-height: 24.5px;
  }
}

/* タブレット（768px以下） */
@media (max-width: 768px) {
  .single-post__title {
    font-size: 28px;
    line-height: 44.8px;
  }

  .single-post__content h1 {
    font-size: 28px;
    line-height: 44.8px;
  }

  .single-post__content h2 {
    font-size: 20px;
    line-height: 32px;
  }
}

/* モバイル（540px以下） */
@media (max-width: 540px) {
  .single-post__title {
    font-size: 24px;
    line-height: 38.4px;
  }

  .single-post__content h1 {
    font-size: 24px;
    line-height: 38.4px;
  }

  .single-post__content h2 {
    font-size: 18px;
    line-height: 28.8px;
  }
}
