/* ===========================================================
   blog.css — お知らせ・日記の記事ページ
   位置はFigma「PC_ブログページ」の座標。本文の長さで高さが変わるので、流して並べる
   =========================================================== */

/* --- 01 記事 --------------------------------------------- */
/* カンプ：白の枠 y=204。左に記事（710幅、x=256）、右に一覧（192幅、x=999） */

.post-page {
  min-height: 1382px;
  padding: 120px 0 64px;
}

.post-page__inner {
  display: grid;
  grid-template-columns: 710px 192px;
  column-gap: 33px;
  width: 935px;
  margin-left: calc(50% - 464px);
  align-items: start;
}

/* 題名：小さな「title:」を左に添える */
.post__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  max-width: 544px;
  font-size: 32px;
  line-height: 1.45;
}

.post__label {
  flex: none;
  color: var(--c-text-sub);
  font-size: 20px;
  letter-spacing: .3em;
}

.post__date {
  display: block;
  width: 544px;
  margin-top: 32px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: right;
}

/* 一覧の写真。縦長のチラシもあるので、切り抜かずに縦横の比率を保つ */
.post__eyecatch {
  width: 544px;
  height: auto;
  margin-top: 8px;
  background: var(--c-placeholder);
}

/* 本文（microCMS のリッチエディタから入る） */
.post__body {
  min-height: 558px;
  margin-top: 72px;
  font-size: 16px;
  line-height: 1.8;
}
.post__body > * + * { margin-top: 1.6em; }
.post__body figure { margin-inline: 0; }
.post__body img { width: auto; max-width: 100%; max-height: 640px; }
.post__body figcaption { margin-top: 4px; color: var(--c-text-sub); font-size: 14px; }
.post__body a { color: var(--c-orange); text-decoration: underline; }
.post__body h2 { font-size: 24px; }
.post__body h3 { font-size: 20px; }
.post__body ul { padding-left: 1.4em; list-style: disc; }
.post__body ol { padding-left: 1.4em; list-style: decimal; }

/* 右の一覧：カテゴリ y=216 → 一覧 y=283、最近の投稿 y=419 → 一覧 y=486 */
.post-side { padding-top: 96px; }
.post-side__block + .post-side__block { margin-top: 68px; }

.post-side__title {
  font-size: 24px;
  line-height: 1.45;
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.side-list a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}

.side-list__icon {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--c-text-sub);
  stroke-width: 1.5;
}

/* 一覧へ：記事の下、真ん中 */
.post-page__back { margin-top: 36px; text-align: center; }

/* --- スマホ ---------------------------------------------- */
/* 記事 → 右の一覧 → 一覧へ、の順に縦に並べる */

@media (max-width: 767px) {
  .post-page { min-height: 0; padding: 32px var(--margin-x) 72px; }
  .post-page__inner { display: block; width: auto; margin: 0; }

  .post__title { flex-direction: column; align-items: flex-start; gap: 4px; max-width: none; font-size: 22px; }
  .post__label { font-size: 13px; }
  .post__date  { width: auto; margin-top: 8px; color: var(--c-text-sub); font-size: 14px; text-align: left; }
  .post__eyecatch { width: 100%; margin-top: 16px; border-radius: 10px; }

  .post__body { min-height: 0; margin-top: 32px; }
  .post__body img { max-height: 480px; border-radius: 10px; }

  .post-side {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px dotted rgb(159 175 100 / .6);
  }
  .post-side__block + .post-side__block { margin-top: 32px; }
  .post-side__title { font-size: var(--fs-h3); }
  .side-list { gap: 0; margin-top: 8px; }
  .side-list a { align-items: center; min-height: 44px; }

  .post-page__back { margin-top: 40px; }
}
