/* ─── 記事共通レイアウト ───
   ヘッダー分の上余白は、直下に必ず置かれる.page-heading側（--header-height基準）で確保するため、
   ここでは持たない（二重に余白がつくのを防ぐ） */
.article-main {
  max-width: 1200px;	/*900px;*/
  margin: 0 auto 60px;
  padding: 0 24px;
}

/* 予約投稿のプレビューバナー（公開予約日時前に直接URLでアクセスした場合のみ表示） */
.scheduled-post-banner {
  max-width: 800px;
  margin: 0 auto 24px;
  padding: 16px 20px;
  background: #fffbe6;
  border-left: 3px solid var(--color-yellow);
  border-radius: 0 var(--radius-1) var(--radius-1) 0;
  font-size: 14px;
  font-weight: 600;
  color: #5a4a00;
  line-height: 1.7;
}

/* --- 記事一覧ページ --- */
/*.article-list-header {
  margin-bottom: 40px;
}

.article-list-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}

.article-list-description {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.6;
}

.article-list-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}*/

.article-back-link {
  font-size: 13px;
  color: var(--color-gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-back-link:hover {
  color: var(--color-yellow);
}

/* 一覧パネルは白背景（ページ全体は黒基調なので浮かせる） * /
.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  padding: 24px;
  border-radius: 8px;
}

.article-card {
  display: block;
  padding: 24px;
  text-decoration: none;
  color: #333;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.3s ease;
}

.article-card:hover {
  border-color: #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-6px);
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.article-card-meta time {
  font-size: 12px;
  color: #999;
}

.article-card-tag {
  font-size: 11px;
  font-weight: 500;
  color: #666;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 4px;
}

.article-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
}

.article-card-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}*/

/* --- 個別記事ページ（白背景パネル。.article-mainは1200px幅だが、本文カードは900pxに絞って中央寄せ） --- */
.article-content {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-1);	/*8px;*/
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 48px 48px 64px;
  color: #333;
}

/* 記事詳細ページの見出し（本文カード先頭。フォントサイズはh1相当） */
.article-title {
  font-size: clamp(1.75rem, 1.4rem + 1.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.4;
  color: #222;
  margin-bottom: 24px;
}

.article-header {
  margin-bottom: 48px;
}

/* 記事詳細ページのアイキャッチ画像（お知らせ・マガジン共通。image未指定なら非表示） */
.article-eyecatch {
  margin-bottom: 32px;
}

.article-eyecatch img {
  width: 100%;
  border-radius: var(--radius-1);	/*8px;*/
  display: block;
}

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

.article-meta time {
  font-size: 13px;
  color: #999;
}

.article-tag {
  font-size: 11px;
  font-weight: 500;
  color: #666;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: var(--radius-s);	/*4px;*/
}

/* 記事本文 */
.article-body {
  margin-bottom: 60px;
}

.article-body p {
  font-size: 15px;
  line-height: 2;
  color: #333;
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e5e5;
}

/* 下線無しの見出し（<h2 class="no-border">を本文に直書きして使用） */
.article-body h2.no-border {
  padding-bottom: 0;
  border-bottom: none;
}

.article-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-top: 36px;
  margin-bottom: 16px;
}

/* 記事本文中の背景グレーの囲みブロック（.article-gray-box を書いたdivを本文に直書きして使用） */
.article-body .article-gray-box {
  background: #f5f5f5;
  border-radius: var(--radius-1);	/*8px;	*/
  padding: 24px 28px;
  margin: 32px 0;
}

.article-body .article-gray-box p:last-child {
  margin-bottom: 0;
}

.article-body blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  background: #f8f8f8;
  border-left: 3px solid var(--color-yellow);
  border-radius: 0 var(--radius-1) var(--radius-1) 0;
}

.article-body blockquote p {
  font-size: 14px;
  color: #666;
  margin-bottom: 0;
}

.article-body h4 {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-1);	/*4px;*/
}

.article-figure {
  margin: 24px 0;
}

.article-figure img {
  width: 100%;
  display: block;
}

.article-figure figcaption {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
  text-align: center;
}

.article-body ul {
  margin: 16px 0 24px;
  padding-left: 24px;
}

.article-body li {
  font-size: 15px;
  line-height: 2;
  color: #333;
  margin-bottom: 4px;
}

.article-body hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 48px 0;
}

/* 記事内CTA */
/*.article-body p a[href*="yoka-wan.biz"] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  margin-top: 32px;
  background: var(--color-yellow);
  color: var(--color-black);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.article-body p a[href*="yoka-wan.biz"]:hover {
  background: var(--color-yellow-hover);
}*/

.article-body p a[href*="blog"] {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 20px;
  margin-top: 32px;
  background: var(--color-yellow);
  color: var(--color-black);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-1);	/*8px;*/
  transition: background 0.2s ease;
}

.article-body p a[href*="blog"]:hover {
  background: var(--color-yellow-hover);
}

.section-divider {
  width: 100%;
  margin: 5px auto;
  border: none;
  border-top: 1px solid #e0e0e0;
}

/* 記事下部ナビ */
.article-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 32px;
  border-top: 1px solid #e5e5e5;
}

/*.article-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  text-decoration: none;
  color: #333;
  border-radius: 8px;
  border: 1px solid #333;
  transition: all 0.2s ease;
}

.article-nav-link:hover {
  background: #f5f5f5;
}

.article-nav-label {
  font-size: 13px;
  font-weight: 500;
}

.article-nav-arrow {
  font-size: 14px;
  color: #999;
  transition: color 0.2s ease;
}

.article-nav-link:hover .article-nav-arrow {
  color: #333;
}*/

/* 記事詳細ページ下部の前後記事ナビ（.article-contentと同じ900px幅で中央寄せ） */
.article-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 32px auto 0;
}

.article-pager-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-1);	/*8px;*/
  text-decoration: none;
  color: #333;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-pager-link:hover {
  border-color: #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.article-pager-next {
  text-align: right;
  align-items: flex-end;
}

.article-pager-empty {
  border: none;
  background: transparent;
}

.article-pager-label {
  font-size: 12px;
  color: #999;
  font-weight: 500;
}

.article-pager-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.5;
}

.article-pager-excerpt {
  font-size: 12px;
  color: #888;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .article-pager {
    grid-template-columns: 1fr;
  }

  .article-pager-next {
    text-align: left;
    align-items: flex-start;
  }
}

/* モバイル対応 */
@media (max-width: 768px) {
  .article-main {
    margin: 0 16px 40px;
    padding: 0;
  }

  .article-content {
    padding: 32px 20px 48px;
  }

  .article-body p {
    font-size: 14px;
  }

  .article-body h2 {
    font-size: 18px;
  }

}
