body.blog-article-page {
  background-color: #f8f3ea;
  background-image:
    linear-gradient(rgba(248, 243, 234, 0.54), rgba(248, 243, 234, 0.76)),
    url("/assets/blog-decor/article-stationery-bg.webp");
  background-position: center top 4rem;
  background-repeat: no-repeat;
  background-size: max(120rem, 100vw) auto;
  background-attachment: fixed;
}

.blog-article-page header {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(42, 46, 43, 0.06);
  backdrop-filter: blur(12px);
}

.blog-article-page header > div,
.blog-article-page footer > div {
  max-width: 86rem;
}

.blog-article-page main {
  max-width: min(86rem, 100vw);
  align-items: flex-start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: clamp(1.75rem, 3vw, 3rem);
  padding-bottom: 4rem;
}

.blog-article-page article {
  position: relative;
  flex: 1 1 min(0, calc(100% - 20.5rem));
  min-width: 0;
  border-color: rgba(215, 207, 193, 0.86);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.96);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 252, 247, 0.92)),
    url("/assets/blog-decor/article-paper-texture.webp");
  background-size: auto, cover;
  box-shadow:
    0 24px 62px rgba(38, 35, 28, 0.11),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
}

.blog-article-page article::before {
  content: "";
  position: absolute;
  top: 0;
  right: clamp(2rem, 5vw, 4.5rem);
  z-index: 1;
  width: 2.6rem;
  height: 5.25rem;
  background: linear-gradient(180deg, #a7b891, #8da579);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  opacity: 0.88;
  filter: drop-shadow(0 3px 4px rgba(50, 54, 45, 0.12));
}

.blog-article-page article > .p-8 {
  padding: clamp(2rem, 4.2vw, 3.6rem) clamp(1.5rem, 4.8vw, 4.25rem);
}

.blog-article-page article nav {
  margin-bottom: 1.9rem;
  color: #8e8b85;
  font-size: 0.8rem;
}

.blog-article-page article nav + div {
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 0.9rem;
  margin-bottom: 1.15rem;
}

.blog-article-page article nav + div > span:first-child {
  border: 1px solid #d7eadc;
  border-radius: 5px;
  background: #edf7ef;
  color: #0c7d3f;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.blog-article-page .blog-read-time::before {
  content: "|";
  margin-right: 0.9rem;
  color: #aaa39a;
}

.blog-article-page h1 {
  max-width: 55rem;
  margin-bottom: 1.7rem;
  color: #282a2b;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "BIZ UDPMincho", serif;
  font-size: clamp(2.25rem, 4.9vw, 3.75rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.02em;
}

.blog-article-hero {
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 2rem 0 2.65rem;
  border: 0;
  border-radius: 6px;
  background: #f5f1e8;
  box-shadow: 0 14px 28px rgba(48, 42, 32, 0.08);
}

.blog-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.blog-article-page .article-content p,
body.blog-article-page .article-content ul,
body.blog-article-page .article-content ol {
  color: #2f3132;
  font-size: clamp(1rem, 1.18vw, 1.08rem);
  line-height: 2;
  letter-spacing: 0;
}

body.blog-article-page .article-content p {
  margin-bottom: 1.65rem;
}

body.blog-article-page .article-content h2 {
  margin-top: 3.45rem;
  margin-bottom: 1.35rem;
  padding: 0.05rem 0 0.82rem 1rem;
  border-left: 6px solid #009045;
  border-bottom: 2px solid rgba(0, 64, 152, 0.92);
  background-image: linear-gradient(#009045, #009045);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: min(19rem, 72%) 2px;
  color: #222426;
  font-size: clamp(1.45rem, 2.25vw, 1.9rem);
  line-height: 1.32;
}

body.blog-article-page .article-content h3 {
  margin-top: 2.3rem;
  border-bottom-color: #d9d3ca;
  color: #303235;
  font-size: 1.18rem;
}

body.blog-article-page .article-content table {
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #d9e3d9;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(51, 56, 46, 0.04);
}

body.blog-article-page .article-content th,
body.blog-article-page .article-content td {
  border-color: #dfe6df;
  padding: 0.9rem 1rem;
}

body.blog-article-page .article-content th {
  background: #f2f7f1;
  color: #1f5f39;
}

body.blog-article-page .article-content > div.bg-stone-50 {
  border-color: #cfe5d3;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(242, 250, 244, 0.96), rgba(252, 253, 249, 0.95));
  box-shadow: 0 10px 24px rgba(23, 83, 48, 0.05);
}

.blog-article-page aside {
  position: sticky;
  top: 5.5rem;
  flex: 0 0 18rem;
  width: 18rem;
  max-width: 18rem;
}

.blog-article-page aside > div {
  position: relative;
  border-color: rgba(218, 211, 199, 0.92);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.93);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 252, 247, 0.92)),
    url("/assets/blog-decor/article-paper-texture.webp");
  background-size: auto, cover;
  box-shadow: 0 12px 28px rgba(42, 38, 31, 0.09);
}

.blog-article-page aside > div:first-child::before {
  content: "";
  position: absolute;
  top: -0.9rem;
  right: 1.35rem;
  width: 2.05rem;
  height: 0.62rem;
  border: 2px solid #b6915c;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: rotate(8deg);
  opacity: 0.78;
}

.blog-article-page aside h4,
.blog-article-page aside h5 {
  color: #25282a;
  letter-spacing: 0;
}

.blog-article-page aside h4 {
  padding-left: 0;
  padding-bottom: 0.7rem;
  border-left: 0;
  border-bottom: 2px solid #009045;
  font-size: 1.05rem;
}

.blog-article-page aside li {
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(215, 211, 203, 0.78);
}

.blog-article-page aside li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.blog-article-page aside li a span:last-child {
  color: #303235;
  font-weight: 700;
  line-height: 1.55;
}

.blog-article-page aside > div:nth-child(2) {
  color: #5f6668;
}

.blog-article-page aside > div:nth-child(2) p {
  opacity: 1;
}

.blog-article-page aside > div:nth-child(2) a:first-of-type,
.blog-article-page .blog-home-link {
  display: block;
  width: 100%;
  min-height: 2.45rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 2.45rem;
  text-align: center;
  text-decoration: none;
}

.blog-article-page aside > div:nth-child(2) a:first-of-type {
  margin-top: 1rem;
  background: linear-gradient(180deg, #0aa24f, #008c43);
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 144, 69, 0.18);
}

.blog-article-page .blog-home-link {
  margin-top: 0.75rem;
  border: 1px solid #009045;
  color: #00833f;
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1100px) {
  .blog-article-page main {
    flex-direction: column;
  }

  .blog-article-page aside {
    position: static;
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 1023px) {
  .blog-article-page main {
    max-width: 58rem;
  }
}

@media (max-width: 767px) {
  body.blog-article-page {
    background-attachment: scroll;
    background-position: center top 4rem;
    background-size: auto 45rem;
  }

  .blog-article-page main {
    padding-top: 1rem;
    padding-bottom: 2.5rem;
  }

  .blog-article-page article::before {
    right: 1.4rem;
    width: 1.8rem;
    height: 3.75rem;
  }

  .blog-article-page article > .p-8 {
    padding: 1.5rem 1.1rem 1.8rem;
  }

  .blog-article-page h1 {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }

  .blog-article-hero {
    margin: 1.4rem 0 1.8rem;
  }

  body.blog-article-page .article-content h2 {
    font-size: 1.35rem;
  }
}
