/* ===== Post Header ===== */
.post-header {
  background: #1A1A1A;
  color: #fff;
  padding: 80px 0 48px;
  text-align: center;
}
.post-header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 48px;
}
.post-header-cat {
  display: inline-block;
  background: rgba(240,112,48,0.15);
  color: #F07030;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.post-header-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 24px;
}
.post-header-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
}
.post-header-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== Featured Image ===== */
.post-featured-wrap {
  max-width: 1000px;
  margin: -20px auto 0;
  padding: 0 48px;
  position: relative;
  z-index: 2;
}
.post-featured-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(45,27,0,0.12);
}
.post-featured-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Post Layout ===== */
.post-section {
  padding: 60px 0 100px;
  background: #FFFFFF;
}
.post-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* ===== Post Content Typography ===== */
.post-content {
  background: #fff;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 2px 12px rgba(45,27,0,0.04);
  margin-bottom: 40px;
}
.post-content p {
  font-size: 1rem;
  line-height: 2;
  color: #1A1A1A;
  margin-bottom: 1.6em;
}
.post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-top: 2.4em;
  margin-bottom: 0.8em;
  padding-bottom: 12px;
  border-bottom: 3px solid #F07030;
  line-height: 1.5;
}
.post-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-top: 2em;
  margin-bottom: 0.6em;
  padding-left: 16px;
  border-left: 4px solid #F07030;
  line-height: 1.5;
}
.post-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  line-height: 1.5;
}
.post-content ul, .post-content ol {
  margin-bottom: 1.6em;
  padding-left: 1.8em;
  color: #1A1A1A;
  line-height: 2;
}
.post-content ul li { list-style: disc; }
.post-content ol li { list-style: decimal; }
.post-content li {
  margin-bottom: 0.4em;
}
.post-content blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  background: #FFFFFF;
  border-left: 4px solid #F07030;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #555;
  line-height: 1.9;
}
.post-content blockquote p {
  margin-bottom: 0;
  color: #555;
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.6em 0;
  display: block;
}
.post-content figure {
  margin: 1.6em 0;
}
.post-content figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: #999;
  margin-top: 8px;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.92rem;
}
.post-content table th,
.post-content table td {
  padding: 12px 16px;
  border: 1px solid rgba(45,27,0,0.1);
  text-align: left;
  color: #1A1A1A;
}
.post-content table th {
  background: #FFFFFF;
  font-weight: 700;
}
.post-content table tr:nth-child(even) td {
  background: #FFFCF8;
}
.post-content code {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  background: #FFFFFF;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.88em;
  color: #c44700;
}
.post-content pre {
  margin: 1.6em 0;
  padding: 24px;
  background: #1A1A1A;
  border-radius: 12px;
  overflow-x: auto;
  line-height: 1.6;
}
.post-content pre code {
  background: transparent;
  color: #FFFFFF;
  padding: 0;
  font-size: 0.85rem;
}
.post-content a {
  color: #F07030;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content a:hover {
  color: #d45a1a;
}
.post-content .wp-block-image {
  margin: 1.6em 0;
}
.post-content .wp-block-image img {
  margin: 0;
}
.post-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.post-content .alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}
.post-content .alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

/* ===== Post Tags ===== */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.post-tags a {
  display: inline-block;
  background: #FFFFFF;
  color: #1A1A1A;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid rgba(45,27,0,0.08);
  transition: all 0.2s;
}
.post-tags a:hover {
  background: #F07030;
  color: #fff;
  border-color: #F07030;
}

/* ===== Share Buttons ===== */
.post-share {
  margin-bottom: 40px;
  padding: 24px 0;
  border-top: 1px solid rgba(45,27,0,0.08);
  border-bottom: 1px solid rgba(45,27,0,0.08);
}
.post-share-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.post-share-buttons {
  display: flex;
  gap: 10px;
}
.post-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s;
}
.post-share-btn:hover {
  opacity: 0.85;
}
.post-share-btn--twitter {
  background: #1DA1F2;
}
.post-share-btn--facebook {
  background: #1877F2;
}
.post-share-btn--line {
  background: #00C300;
}

/* ===== Author Box ===== */
.post-author-box {
  display: flex;
  gap: 20px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 40px;
}
.post-author-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #F07030;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  overflow: hidden;
}
.post-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.post-author-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 4px;
}
.post-author-bio {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.7;
}

/* ===== Post Navigation ===== */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 60px;
}
.post-nav-item {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  text-decoration: none;
  border: 1px solid rgba(45,27,0,0.06);
  transition: all 0.2s;
  display: block;
}
.post-nav-item:hover {
  box-shadow: 0 4px 16px rgba(45,27,0,0.08);
  border-color: #F07030;
}
.post-nav-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #F07030;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.post-nav-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-nav-item--next {
  text-align: right;
}

/* ===== Related Posts ===== */
.related-posts {
  margin-bottom: 40px;
}
.related-posts-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 24px;
  text-align: center;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(45,27,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(45,27,0,0.1);
}
.related-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.related-card-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #FFFFFF;
}
.related-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.related-card-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #F07030;
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  opacity: 0.4;
}
.related-card-body {
  padding: 16px 20px 20px;
}
.related-card-date {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 6px;
}
.related-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .post-header { padding: 60px 0 36px; }
  .post-header-inner { padding: 0 24px; }
  .post-header-title { font-size: 1.5rem; }
  .post-featured-wrap { padding: 0 20px; }
  .post-section { padding: 40px 0 64px; }
  .post-section .container { padding: 0 20px; }
  .post-content { padding: 28px 24px; }
  .post-content h2 { font-size: 1.3rem; }
  .post-content h3 { font-size: 1.1rem; }
  .post-author-box { flex-direction: column; align-items: center; text-align: center; }
  .post-nav { grid-template-columns: 1fr; }
  .related-posts-grid { grid-template-columns: 1fr; }
  .post-share-buttons { flex-wrap: wrap; }
}
