body.single-post,
body.page:not(.home):not(.blog) {
  background:
    radial-gradient(circle at 50% 18%, rgba(166, 128, 255, 0.2), transparent 18%),
    radial-gradient(circle at 52% 34%, rgba(126, 95, 229, 0.28), transparent 24%),
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.08), transparent 16%),
    radial-gradient(circle at 82% 28%, rgba(185, 171, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #071022 0%, #0b1330 48%, #091126 100%);
  color: #f5f0e6;
}

body.single-post::before,
body.single-post::after,
body.page:not(.home):not(.blog)::before,
body.page:not(.home):not(.blog)::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body.single-post::before,
body.page:not(.home):not(.blog)::before {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.35) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(217, 190, 122, 0.34) 0 1px, transparent 1.8px);
  background-size: 170px 170px, 110px 110px, 220px 220px;
  background-position: 0 0, 34px 46px, 72px 18px;
  opacity: 0.24;
}

body.single-post::after,
body.page:not(.home):not(.blog)::after {
  background:
    radial-gradient(circle at 50% 28%, rgba(166, 128, 255, 0.12), transparent 20%),
    radial-gradient(circle at 50% 46%, rgba(185, 171, 255, 0.08), transparent 24%);
  filter: blur(10px);
}

.single-post #content,
.page:not(.home):not(.blog) #content {
  padding-top: 24px;
}

.single-post #content-in,
.page:not(.home):not(.blog) #content-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 32px;
  align-items: start;
}

.single-post .content,
.single-post .main,
.single-post .article,
.single-post .entry-content,
.page:not(.home):not(.blog) .content,
.page:not(.home):not(.blog) .main,
.page:not(.home):not(.blog) .article,
.page:not(.home):not(.blog) .entry-content {
  background: transparent;
}

.single-post .main,
.page:not(.home):not(.blog) .main {
  width: auto;
  min-width: 0;
  padding-top: 32px;
}

.single-post #sidebar,
.single-post .sidebar,
.page:not(.home):not(.blog) #sidebar,
.page:not(.home):not(.blog) .sidebar {
  width: auto;
  min-width: 0;
  margin-top: 32px;
  border: 0;
  padding: 0;
  background-color: transparent;
}

.single-post .sidebar,
.page:not(.home):not(.blog) .sidebar {
  position: sticky;
  top: 92px;
}

.single-post .sidebar > div,
.single-post .sidebar .widget,
.page:not(.home):not(.blog) .sidebar > div,
.page:not(.home):not(.blog) .sidebar .widget {
  position: relative;
  border: 1px solid rgba(19, 27, 62, 0.08);
  border-radius: 24px;
  overflow: hidden;
}

.single-post .sidebar > div,
.page:not(.home):not(.blog) .sidebar > div {
  background: transparent;
  box-shadow: none;
}

.single-post .sidebar .widget,
.page:not(.home):not(.blog) .sidebar .widget {
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 16px 42px rgba(8, 13, 31, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.32);
}

.single-post .sidebar .widget,
.page:not(.home):not(.blog) .sidebar .widget {
  padding: 20px;
}

.single-post .sidebar .widget::before,
.page:not(.home):not(.blog) .sidebar .widget::before {
  content: "";
  position: absolute;
  top: -24px;
  right: -18px;
  width: 120px;
  height: 120px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none'%3E%3Ccircle cx='60' cy='60' r='38' stroke='%23c0acd8' stroke-width='1.2'/%3E%3Ccircle cx='60' cy='60' r='24' stroke='%23d9be7a' stroke-width='1.2'/%3E%3Cpath d='M60 10V110M10 60H110' stroke='%238a7de2' stroke-width='1'/%3E%3Cpath d='M32 32L88 88M88 32L32 88' stroke='%23c0acd8' stroke-width='1' stroke-opacity='.65'/%3E%3C/svg%3E")
    center/contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.single-post .sidebar h2,
.single-post .sidebar h3,
.page:not(.home):not(.blog) .sidebar h2,
.page:not(.home):not(.blog) .sidebar h3 {
  margin-top: 0;
  color: #16214d;
  background: none;
  border: 0;
  box-shadow: none;
}

.single-post .article,
.page:not(.home):not(.blog) .article {
  position: relative;
  border: 1px solid rgba(19, 27, 62, 0.08);
  border-radius: 28px;
  padding: 36px clamp(20px, 4vw, 48px) 52px;
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(255, 255, 255, 0.99)),
    rgba(255, 255, 255, 0.98);
  box-shadow:
    0 24px 70px rgba(8, 13, 31, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.42);
  overflow: hidden;
}

.single-post .article::before,
.single-post .article::after,
.page:not(.home):not(.blog) .article::before,
.page:not(.home):not(.blog) .article::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.single-post .article::before,
.page:not(.home):not(.blog) .article::before {
  top: 16px;
  right: 18px;
  width: 138px;
  height: 138px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 140' fill='none'%3E%3Ccircle cx='70' cy='70' r='48' stroke='%23d9be7a' stroke-width='1.2'/%3E%3Ccircle cx='70' cy='70' r='32' stroke='%23b3a1ff' stroke-width='1.2'/%3E%3Ccircle cx='70' cy='70' r='10' stroke='%23111a38' stroke-width='1'/%3E%3Cpath d='M70 6V134M6 70H134' stroke='%23d1c6ea' stroke-width='1' stroke-opacity='.75'/%3E%3Cpath d='M28 28L112 112M112 28L28 112' stroke='%23d1c6ea' stroke-width='1' stroke-opacity='.45'/%3E%3C/svg%3E")
    center/contain no-repeat;
  opacity: 0.1;
}

.single-post .article::after,
.page:not(.home):not(.blog) .article::after {
  bottom: 22px;
  left: 12px;
  width: 180px;
  height: 180px;
  background:
    radial-gradient(circle at center, rgba(185, 171, 255, 0.12), transparent 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180' fill='none'%3E%3Cpath d='M90 16L98 34L116 42L98 50L90 68L82 50L64 42L82 34L90 16Z' stroke='%23d9be7a' stroke-width='1.2'/%3E%3Ccircle cx='90' cy='90' r='44' stroke='%23c6b8ef' stroke-width='1.2' stroke-dasharray='3 7'/%3E%3Ccircle cx='90' cy='90' r='66' stroke='%23c6b8ef' stroke-width='1'/%3E%3Cpath d='M90 44V136M44 90H136' stroke='%23d1c6ea' stroke-width='1' stroke-opacity='.62'/%3E%3C/svg%3E")
    center/contain no-repeat;
  opacity: 0.08;
}

.single-post .entry-content,
.page:not(.home):not(.blog) .entry-content {
  color: #2b3040;
  font-size: 1rem;
  line-height: 2;
}

.single-post .entry-title,
.single-post .article h1,
.page:not(.home):not(.blog) .entry-title,
.page:not(.home):not(.blog) .article h1 {
  color: #111a38;
}

.single-post .entry-content > *:first-child,
.page:not(.home):not(.blog) .entry-content > *:first-child {
  margin-top: 0;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.page:not(.home):not(.blog) .entry-content h2,
.page:not(.home):not(.blog) .entry-content h3 {
  position: relative;
  margin-left: 0;
  margin-right: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #111a38;
  letter-spacing: 0.04em;
}

.single-post .entry-content h2::before,
.single-post .entry-content h2::after,
.single-post .entry-content h3::before,
.single-post .entry-content h3::after,
.page:not(.home):not(.blog) .entry-content h2::before,
.page:not(.home):not(.blog) .entry-content h2::after,
.page:not(.home):not(.blog) .entry-content h3::before,
.page:not(.home):not(.blog) .entry-content h3::after {
  content: none;
}

.single-post .entry-content h2,
.page:not(.home):not(.blog) .entry-content h2 {
  margin-top: 4.4rem;
  margin-bottom: 1.6rem;
  padding: 0 0 18px 26px;
  font-size: clamp(1.65rem, 2.2vw, 2.15rem);
  line-height: 1.45;
  background:
    linear-gradient(90deg, rgba(16, 24, 58, 1), rgba(58, 67, 137, 0.9) 44%, rgba(217, 190, 122, 0.96) 100%) left bottom / 100% 1px no-repeat,
    radial-gradient(circle at 0 100%, rgba(185, 171, 255, 0.28), transparent 26%) left bottom / 180px 54px no-repeat;
}

.single-post .entry-content h2::before,
.page:not(.home):not(.blog) .entry-content h2::before {
  content: "";
  position: absolute;
  top: 0.22em;
  left: 0;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(217, 190, 122, 0.9);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 250, 240, 0.95) 0 24%, transparent 28%),
    radial-gradient(circle, rgba(185, 171, 255, 0.24), transparent 72%);
  box-shadow: 0 0 20px rgba(185, 171, 255, 0.22);
}

.single-post .entry-content h2::after,
.page:not(.home):not(.blog) .entry-content h2::after {
  content: "";
  position: absolute;
  top: calc(0.22em + 6px);
  left: 7px;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 190, 122, 0.72), rgba(97, 110, 196, 0));
}

.single-post .entry-content h2 + *,
.page:not(.home):not(.blog) .entry-content h2 + * {
  margin-top: 0;
}

.single-post .entry-content h2 .lang:lang(ja),
.single-post .entry-content h3 .lang:lang(ja),
.page:not(.home):not(.blog) .entry-content h2 .lang:lang(ja),
.page:not(.home):not(.blog) .entry-content h3 .lang:lang(ja) {
  letter-spacing: 0.06em;
}

.single-post .entry-content h3,
.page:not(.home):not(.blog) .entry-content h3 {
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  padding: 0 0 0 22px;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.6;
}

.single-post .entry-content h3::before,
.page:not(.home):not(.blog) .entry-content h3::before {
  content: "";
  display: block;
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(217, 190, 122, 0.88);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 248, 233, 0.92) 0 28%, transparent 32%),
    radial-gradient(circle, rgba(185, 171, 255, 0.28), transparent 70%);
  box-shadow: 0 0 18px rgba(185, 171, 255, 0.24);
}

.single-post .entry-content h3::after,
.page:not(.home):not(.blog) .entry-content h3::after {
  content: "";
  display: block;
  position: absolute;
  top: calc(0.42em + 5px);
  left: 5px;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 190, 122, 0.62), rgba(97, 110, 196, 0));
}

.single-post .entry-content p,
.page:not(.home):not(.blog) .entry-content p {
  margin-top: 0;
  margin-bottom: 2em;
}

.single-post .entry-content ul,
.single-post .entry-content ol,
.page:not(.home):not(.blog) .entry-content ul,
.page:not(.home):not(.blog) .entry-content ol {
  margin-top: 1.2rem;
  margin-bottom: 0;
}

.single-post .entry-content ul,
.single-post .entry-content ol,
.page:not(.home):not(.blog) .entry-content ul,
.page:not(.home):not(.blog) .entry-content ol {
  padding-left: 1.4rem;
}

.single-post .entry-content strong,
.page:not(.home):not(.blog) .entry-content strong {
  color: #172250;
}

@media (max-width: 834px) {
  .single-post #content-in,
  .page:not(.home):not(.blog) #content-in {
    grid-template-columns: 1fr;
  }

  .single-post .article,
  .page:not(.home):not(.blog) .article {
    padding: 28px 18px 40px;
    border-radius: 22px;
  }

  .single-post .article::before,
  .single-post .article::after,
  .single-post .sidebar .widget::before,
  .page:not(.home):not(.blog) .article::before,
  .page:not(.home):not(.blog) .article::after,
  .page:not(.home):not(.blog) .sidebar .widget::before {
    opacity: 0.06;
  }

  .single-post .sidebar,
  .page:not(.home):not(.blog) .sidebar {
    position: static;
    top: auto;
    margin-top: 0;
  }

  .single-post .entry-content h2,
  .page:not(.home):not(.blog) .entry-content h2 {
    margin-top: 3.4rem;
  }

  .single-post .entry-content h3,
  .page:not(.home):not(.blog) .entry-content h3 {
    margin-top: 2.4rem;
  }
}
