/* ==============================================
   wa-single.css — 記事詳細ページスタイル
   ============================================== */

/* ==============================================
   記事ヘッダーエリア
   ============================================== */
.wa-post-hero {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
}

.wa-post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa-post-header {
  max-width: var(--max-content);
  margin: 40px auto 0;
  padding: 0 24px;
}

.wa-post-category-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.wa-post-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin: 0 0 16px;
}

.wa-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

/* ==============================================
   記事本文
   ============================================== */
.wa-post-content {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 40px 24px 80px;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

/* H2 見出し — 左に錆朱のボーダー */
.wa-post-content h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-text);
  border-left: 3px solid var(--color-accent);
  padding-left: 14px;
  margin: 56px 0 24px;
  line-height: 1.6;
}

/* H3 見出し */
.wa-post-content h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

/* H4 以降 */
.wa-post-content h4 {
  font-family: var(--font-serif);
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 32px 0 12px;
}

/* 段落 */
.wa-post-content p {
  margin: 0 0 1.5rem;
}

/* リスト */
.wa-post-content ul,
.wa-post-content ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.wa-post-content li {
  margin-bottom: 0.5rem;
}

.wa-post-content ul > li {
  list-style-type: none;
  position: relative;
  padding-left: 1rem;
}

.wa-post-content ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 5px;
  height: 5px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* 強調テキスト（マーカー） */
.wa-post-content strong,
.wa-post-content b {
  font-weight: 500;
  background: linear-gradient(transparent 60%, rgba(184, 92, 56, 0.15) 60%);
}

/* イタリック */
.wa-post-content em,
.wa-post-content i {
  font-family: var(--font-latin);
  font-style: italic;
  letter-spacing: 0.05em;
}

/* ブロッククォート */
.wa-post-content blockquote {
  border-left: 3px solid var(--color-accent);
  margin: 32px 0;
  padding: 16px 20px;
  background: var(--color-surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.wa-post-content blockquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.975rem;
  color: var(--color-muted);
  margin: 0;
}

/* リンク */
.wa-post-content a {
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s, border-color 0.2s;
}

.wa-post-content a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* 画像 */
.wa-post-content figure {
  margin: 32px 0;
}

.wa-post-content figure img {
  width: 100%;
  height: auto;
}

.wa-post-content figcaption {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-align: center;
  margin-top: 8px;
}

/* テーブル */
.wa-post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 32px 0;
}

.wa-post-content th {
  background: var(--color-surface);
  font-family: var(--font-serif);
  font-weight: 500;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--color-border);
}

.wa-post-content td {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  vertical-align: top;
}

.wa-post-content tr:nth-child(even) td {
  background: rgba(245, 240, 232, 0.4);
}

/* ==============================================
   YouTube 埋め込みエリア
   ============================================== */
.wa-video-section {
  max-width: var(--max-content);
  margin: 0 auto 48px;
  padding: 0 24px;
}

.wa-video-section h2 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  border-left: 2px solid var(--color-accent);
  padding-left: 10px;
}

.wa-video-embed {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: var(--color-surface);
}

.wa-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.wa-video-caption {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 10px;
  line-height: 1.7;
}

/* ==============================================
   著者プロフィールボックス
   ============================================== */
.wa-author-box {
  max-width: var(--max-content);
  margin: 0 auto 64px;
  padding: 24px 24px;
}

.wa-author-box__inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.wa-author-box__avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-border);
}

.wa-author-box__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa-author-box__name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 4px;
}

.wa-author-box__role {
  font-size: 0.7rem;
  color: var(--color-muted);
  letter-spacing: 0.1em;
  margin: 0 0 10px;
}

.wa-author-box__bio {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.8;
}

/* ==============================================
   SNS シェアボタン
   ============================================== */
.wa-share {
  max-width: var(--max-content);
  margin: 0 auto 48px;
  padding: 0 24px;
}

.wa-share__title {
  font-size: 0.75rem;
  color: var(--color-muted);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-align: center;
}

.wa-share__buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.wa-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: opacity 0.2s;
}

.wa-share__btn:hover {
  opacity: 0.85;
  color: inherit;
}

.wa-share__btn--x {
  background: #000;
  color: #fff;
}

.wa-share__btn--line {
  background: #06C755;
  color: #fff;
}

.wa-share__btn--hatena {
  background: #00A4DE;
  color: #fff;
}

/* ==============================================
   関連記事
   ============================================== */
.wa-related {
  background: var(--color-surface);
  padding: 64px 0;
}

.wa-related__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 32px;
}

.wa-related__grid {
  max-width: var(--max-layout);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ==============================================
   レスポンシブ
   ============================================== */
@media (max-width: 767px) {
  .wa-post-hero {
    height: 240px;
  }

  .wa-post-header,
  .wa-post-content,
  .wa-video-section,
  .wa-author-box,
  .wa-share {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wa-author-box__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .wa-related__grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .wa-share__buttons {
    flex-wrap: wrap;
  }
}

@media (max-width: 1023px) {
  .wa-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
