/*
 * 記事詳細ページ用スタイル
 *
 * Figmaデザイン準拠：
 * - 最大幅1500px中央寄せ
 * - カテゴリ・日付・タイトル・本文・ライン・ナビゲーション
 * - 本文内画像・テーブル・iframe等のはみ出し対策
 *
 * @package ito-moku
 */

/* 全体ラッパー */
.single.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 100px 24px 0 24px;
  /* 上100px, 左右24px, 下0 */
  background: #fff;
  box-sizing: border-box;
}

/* メタ情報（カテゴリ・日付） */
.single__meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
  color: #000
}

.single__category {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.single__date {
  font-size: 16px;
  letter-spacing: 0.05em;
}

/* 記事タイトル */
.single__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 700;
  color: #4B4B4B;
  line-height: 1.2;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
  text-align: left;
}

/* 本文上下のライン */
.single__line {
  border: none;
  border-top: 1px solid #8B5A2B;
  /* Figma指定のブラウン */
  margin: 40px 0;
}

/* 本文エリア */
.single__content {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  word-break: break-word;
}

/* 本文内画像のはみ出し対策 */
.single__content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
}

/* テーブルのはみ出し対策 */
.single__content table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: block;
  border-collapse: collapse;
}

/* iframeや動画のはみ出し対策 */
.single__content iframe,
.single__content video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px 0;
}

/* pre/codeの横スクロール対策 */
.single__content pre {
  overflow-x: auto;
  max-width: 100%;
  background: #f5f5f5;
  padding: 16px;
  border-radius: 4px;
}

/* 全要素のbox-sizingを統一 */
.single__content * {
  box-sizing: border-box;
}

/* 前後ナビゲーション */
.single__post-nav {
  display: flex;
  justify-content: space-between;
  margin: 40px 0 0 0;
  gap: 24px;
}

.single__post-nav-prev,
.single__post-nav-next {
  font-size: 16px;
  color: #8B5A2B;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.single__post-nav-prev a,
.single__post-nav-next a {
  color: #8B5A2B;
  text-decoration: underline;
  transition: opacity 0.2s;
}

/* PCデバイスのみのホバー効果 */
@media (hover: hover) and (pointer: fine) {

  .single__post-nav-prev a:hover,
  .single__post-nav-next a:hover {
    opacity: 0.7;
  }
}

/* タッチデバイス用の無効化 */
@media (hover: none) {

  .single__post-nav-prev a:hover,
  .single__post-nav-next a:hover {
    opacity: 1;
  }
}

/* 記事本体（article）の背景・角丸・パディング・上下余白 */
.single__article {
  background: #ECE8D9;
  border-radius: 20px;
  padding: clamp(0.938rem, -0.268rem + 5.36vw, 3.75rem) clamp(1.25rem, -0.357rem + 7.14vw, 5rem);
  margin: clamp(0.938rem, -0.268rem + 5.36vw, 3.75rem) 0;
}

/* パンくずリストの現在ページ（記事タイトル）が長い場合は省略表示（ellipsis） */
#breadcrumbs span:last-child {
  display: inline-block;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

/* .breadcrumb {
  margin-bottom: 60px;
} */