body.single-post {
  background: #ffffff;
  color: #0f172a;
}

.single-post-main {
  padding-top: 4rem;
}

.single-post-article {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
  padding: 2rem 1.5rem;
}

.single-post-header {
  margin-bottom: 1.5rem;
}

.single-post-category {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(226, 115, 44, 0.3);
  color: #e2732c;
  background: rgba(226, 115, 44, 0.08);
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.12em;
  font-size: 10px;
  padding: 0.3rem 0.55rem;
  text-transform: uppercase;
}

.single-post-date {
  color: #64748b;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
}

.single-post-eyecatch-wrap {
  margin-bottom: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
  background: #f8fafc;
}

.single-post-eyecatch {
  width: 100%;
  height: auto;
  display: block;
}

.single-post-content {
  color: #334155;
  line-height: 1.9;
  font-size: 1rem;
}

.single-post-content > *:first-child {
  margin-top: 0;
}

.single-post-content > *:last-child {
  margin-bottom: 0;
}

.single-post-content p,
.single-post-content ul,
.single-post-content ol,
.single-post-content blockquote,
.single-post-content pre {
  margin: 1.2rem 0;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content h5,
.single-post-content h6 {
  font-family: 'Noto Serif JP', serif;
  color: #0f172a;
  margin-top: 2.2rem;
  margin-bottom: 0.9rem;
  line-height: 1.5;
}

.single-post-content h2 {
  font-size: 1.75rem;
}

.single-post-content h3 {
  font-size: 1.45rem;
}

.single-post-content a {
  color: #e2732c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-post-content ul,
.single-post-content ol {
  padding-left: 1.4rem;
}

.single-post-content li {
  margin: 0.35rem 0;
}

.single-post-content blockquote {
  border-left: 3px solid rgba(226, 115, 44, 0.5);
  background: #fff7f2;
  padding: 1rem 1rem 1rem 1.1rem;
}

.single-post-content pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 0;
  font-size: 0.92rem;
}

.single-post-content code {
  background: #f1f5f9;
  color: #0f172a;
  padding: 0.1rem 0.35rem;
  font-size: 0.9em;
}

.single-post-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.single-post-content img {
  max-width: 100%;
  height: auto;
}

.single-post-nav {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
}

.single-post-nav-item {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  min-height: 84px;
}

.single-post-nav-item a {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
}

.single-post-nav-prev a {
  align-items: flex-start;
}

.single-post-nav-next a {
  align-items: flex-end;
  text-align: right;
}

.single-post-nav-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #e2732c;
  margin-bottom: 0.25rem;
}

.single-post-nav-title {
  color: #0f172a;
  line-height: 1.5;
  font-size: 14px;
}

.single-post-nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .single-post-main {
    padding-top: 5rem;
  }

  .single-post-article {
    padding: 2.8rem 2.2rem;
  }
}

@media (max-width: 900px) {
  .single-post-nav {
    grid-template-columns: 1fr;
  }

  .single-post-nav-next a {
    align-items: flex-start;
    text-align: left;
  }
}
