/* =========================================================
   Blog  —  多岐川装子の長いおしゃべり
   ========================================================= */
.blog-page { padding-top: 64px; }

.blog-hero {
  background: var(--burgundy);
  color: var(--cream);
  text-align: center;
  padding: 56px 0 50px;
}
.blog-hero .en {
  font-family: var(--latin); font-size: 14px; letter-spacing: .42em;
  text-transform: uppercase; color: var(--gold); display: block; padding-left: .42em;
}
.blog-hero__name {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(22px, 4.4vw, 32px); letter-spacing: .1em; margin: 10px 0 0;
}
.blog-hero__name a { text-decoration: none; }
.blog-hero__sub { margin: 14px 0 0; font-size: 14px; letter-spacing: .1em; color: var(--gold-soft); }

.blog-main { padding: 64px 0 96px; }
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 56px;
  align-items: start;
}

/* ---------- list ---------- */
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.post-card {
  display: flex; flex-direction: column;
  text-decoration: none; background: #fff;
  border: 1px solid var(--line);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(110,22,32,.1); border-color: var(--gold); }
.post-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-2); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__img--none { display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 28px; }
.post-card__body { display: block; padding: 18px 20px 22px; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12px; color: var(--ink-soft); }
.post-card__meta time { font-family: var(--latin); font-size: 14px; letter-spacing: .08em; color: var(--gold); }
.post-card__title {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: 17px; line-height: 1.6; letter-spacing: .04em; margin: 8px 0 8px;
}
.post-card__excerpt { display: block; font-size: 13px; line-height: 1.8; color: var(--ink-soft); }

.tag {
  display: inline-block; font-size: 11.5px; letter-spacing: .06em;
  color: var(--brick); border: 1px solid var(--line); padding: 1px 9px; border-radius: 999px;
  text-decoration: none; background: var(--cream);
}
a.tag:hover { border-color: var(--gold); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 48px; }
.pg {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); font-size: 13px; text-decoration: none; letter-spacing: .06em;
}
a.pg:hover { border-color: var(--gold); }
.pg--cur { background: var(--burgundy); border-color: var(--burgundy); color: var(--cream); }
.pg--gap { border: 0; min-width: 20px; padding: 0; }
.empty { color: var(--ink-soft); }

/* ---------- sidebar ---------- */
.blog-side { position: sticky; top: 90px; display: grid; gap: 28px; }
.side-box h2 {
  font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: .14em;
  margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--gold); color: var(--burgundy);
}
.side-box ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.side-box li a {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 7px 2px; border-bottom: 1px dotted var(--line); text-decoration: none;
}
.side-box li a:hover { color: var(--brick); }
.side-box li span { color: var(--ink-soft); font-family: var(--latin); }
.side-box p { font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; line-height: 1.8; }
.side-line {
  display: inline-block; background: #06C755; color: #fff; text-decoration: none;
  font-size: 12.5px; letter-spacing: .12em; padding: 10px 22px; border-radius: 999px;
}

/* ---------- single post ---------- */
.post { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 5vw, 56px); }
.post__head { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 30px; }
.post__meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 12px; font-size: 13px; }
.post__meta time { font-family: var(--serif); color: var(--ink-soft); letter-spacing: .06em; }
.post__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(21px, 3.8vw, 28px); line-height: 1.55; letter-spacing: .05em; margin: 0;
}
.post__body { font-size: 16px; line-height: 1.95; letter-spacing: .03em; overflow-wrap: anywhere; }
.post__body p { margin: 0; }
.post__body img.photo { width: auto; max-width: 100%; height: auto; margin: 18px auto; }
.post__body img.emoji { display: inline-block; height: 1.25em; width: auto; vertical-align: -0.2em; margin: 0 1px; }
.post__body a { color: var(--brick); }
.post__body blockquote { margin: 1em 0; padding: 10px 18px; border-left: 3px solid var(--gold); background: var(--cream); }
.post__body table { border-collapse: collapse; max-width: 100%; }
.post__body td, .post__body th { border: 1px solid var(--line); padding: 6px 10px; }
.post__body .linkcard { margin: 14px 0; }
.post__body .linkcard a {
  display: block; padding: 14px 18px; border: 1px solid var(--line); background: var(--cream);
  text-decoration: none; color: var(--ink); font-size: 14px;
}
.post__body .linkcard a::after { content: " ↗"; color: var(--gold); }
.post__body .linkcard a:hover { border-color: var(--gold); }
.post__body .embed { position: relative; aspect-ratio: 16 / 9; margin: 18px 0; }
.post__body .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line);
}
.post-nav__item { text-decoration: none; font-size: 14px; line-height: 1.6; padding: 12px 14px; border: 1px solid var(--line); }
.post-nav__item:hover { border-color: var(--gold); }
.post-nav__item span { display: block; font-size: 12px; color: var(--brick); letter-spacing: .1em; margin-bottom: 4px; }
.post-nav__item--older { text-align: right; }
.post__back { text-align: center; margin: 30px 0 0; }
.post__back a { font-size: 13px; letter-spacing: .16em; color: var(--brick); }

/* ---------- top page: latest posts ---------- */
.latest-posts { list-style: none; margin: 0 auto 36px; padding: 0; max-width: 760px; }
.latest-posts a {
  display: flex; gap: 18px; align-items: baseline;
  padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none;
}
.latest-posts a:hover span { color: var(--brick); }
.latest-posts time { font-family: var(--latin); color: var(--gold); letter-spacing: .08em; white-space: nowrap; font-size: 15px; }
.latest-posts span { font-family: var(--serif); letter-spacing: .04em; }

@media (max-width: 860px) {
  .blog-page { padding-top: 60px; }
  .blog-main { padding: 0 0 72px; }
  .blog-layout { grid-template-columns: 1fr; gap: 48px; }
  .blog-main .post-list { margin-top: 32px; }
  .blog-side { position: static; }
  .post-list { grid-template-columns: 1fr; }
  .post { border-left: 0; border-right: 0; margin: 0 -24px; }
}
@media (max-width: 520px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__item--older { text-align: left; }
  .latest-posts a { flex-direction: column; gap: 2px; }
}
.post__body video.video { display: block; max-width: 100%; max-height: 80vh; margin: 18px auto; background: #000; }
