/* ブログ詳細専用。共通のstyle.cssの後に読み込みます。 */
.blog-detail-page {
  background: #fffcf9;
}
.blog-detail-body p {
  margin: 0 0 1em;
}

.blog-detail-body p:last-child {
  margin-bottom: 0;
}
/* 記事タイトル・日付をまとめたコンパクトな上部エリア */
.blog-detail-page .page-hero {
  padding: 20px 0 28px;
}

.blog-detail-page .page-breadcrumb {
  margin-bottom: 20px;
}

.blog-detail-page .page-eyebrow {
  margin-bottom: 8px;
  font-size: 16px;
}

.blog-detail-page .page-hero h1 {
  margin: 0;
  padding: 0;
  font-size: clamp(24px, 2.7vw, 32px);
  line-height: 1.6;
  letter-spacing: .03em;
  overflow-wrap: anywhere;
}

.blog-detail-date {
  display: block;
  margin-top: 12px;
  color: #7b887f;
  font-size: 13px;
}

.blog-detail-container {
  width: min(960px, calc(100% - 60px));
  margin-inline: auto;
  padding-block: 32px 65px;
}

.blog-detail-article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #eee8e1;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(65, 60, 45, .035);
}

.blog-detail-main-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
  background: #f1f6f0;
}

/* 固定の縦横比を付けず、縦長画像も切り取らず表示 */
.blog-detail-main-photo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(75svh, 720px);
  object-fit: contain;
}

.blog-detail-inner {
  padding: 36px 52px;
}

.blog-detail-body {
  overflow-wrap: anywhere;
}

/* 本文内の見出しは通常の文章と同じ文字サイズ・書体 */
.blog-detail-body h1,
.blog-detail-body h2,
.blog-detail-body h3,
.blog-detail-body h4,
.blog-detail-body h5,
.blog-detail-body h6 {
  margin: 0 0 1.7em;
  color: inherit;
  font: inherit;
}

.blog-detail-body a {
  color: #287f64;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blog-detail-body img {
  display: inline;
  max-width: 100%;
  height: auto;
}

.blog-detail-body figure {
  max-width: 100%;
  margin: 28px 0;
}

.blog-detail-body figcaption {
  margin-top: 8px;
}

.blog-detail-body ul,
.blog-detail-body ol {
  padding-left: 1.5em;
}

.blog-detail-body blockquote {
  margin: 0 0 1.7em;
}

.blog-detail-categories {
  margin-top: 32px;
}

.blog-detail-categories p {
  margin: 0 0 12px;
  color: #829085;
  font-size: 12px;
}

.blog-detail-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-detail-categories a {
  color: #47745a;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blog-detail-categories a:hover {
  color: #287f64;
}

.blog-detail-adjacent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.blog-adjacent-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid #e7ece2;
  border-radius: 20px;
  background: #fff;
  transition: border-color .2s ease, transform .2s ease;
}

.blog-adjacent-prev {
  grid-column: 1;
}

.blog-adjacent-next {
  grid-column: 2;
}

.blog-adjacent-card:hover {
  border-color: #90c4a5;
  transform: translateY(-2px);
}

.blog-adjacent-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #568b70;
  font-size: 12px;
  font-weight: 600;
}

.blog-adjacent-next .blog-adjacent-label {
  justify-content: flex-end;
}

.blog-adjacent-arrow {
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.blog-adjacent-prev .blog-adjacent-arrow {
  transform: rotate(-135deg);
}

.blog-adjacent-content {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.blog-adjacent-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: #f0f5ee;
}

.blog-adjacent-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.blog-adjacent-text {
  display: block;
  min-width: 0;
}

.blog-adjacent-date {
  display: block;
  margin-bottom: 5px;
  color: #7b887f;
  font-size: 12px;
}

.blog-adjacent-title {
  display: block;
  color: #46564c;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.blog-detail-back {
  margin-top: 36px;
  text-align: center;
}

.blog-detail-back a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 13px 28px;
  border: 1px solid #d7e7cf;
  border-radius: 999px;
  background: #f0f7ec;
  color: #4f845e;
  font-size: 14px;
  font-weight: 600;
}

.blog-detail-back a:hover {
  background: #e7f1e1;
}

@media (max-width: 760px) {
  .blog-detail-inner {
    padding: 30px;
  }

.blog-adjacent-content {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
  }

  .blog-adjacent-card {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .blog-detail-page .page-hero {
    padding: 16px 0 22px;
  }

  .blog-detail-page .page-breadcrumb {
    margin-bottom: 16px;
  }

  .blog-detail-article {
    border-radius: 20px;
  }

  .blog-detail-main-photo {
    padding: 14px;
  }

  .blog-detail-inner {
    padding: 26px 22px;
  }

  .blog-detail-container {
    width: calc(100% - 36px);
    padding-block: 24px 50px;
  }

.blog-detail-main-photo {
    padding: 14px;
  }

  .blog-detail-main-photo img {
    max-height: 70svh;
  }

.blog-detail-body {
    font-size: 14px;
    line-height: 2;
  }

.blog-detail-adjacent {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 26px;
  }

  .blog-adjacent-prev,
  .blog-adjacent-next {
    grid-column: 1;
  }

  .blog-adjacent-content {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 16px;
  }

  .blog-detail-back {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-adjacent-card {
    transition: none;
  }
}
