/* ==========================
   投稿詳細ページ用スタイル
============================== */
#post-detail {
  padding: 60px 0;
}

.post-content {
  max-width: 1000px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
}

.post-header {
  margin-bottom: 30px;
  padding-bottom: 10px;
}

.post-meta {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.post-meta .category {
  display: inline-block;
  min-width: 100px;
  text-align: center;
  padding: 5px 15px;
  margin-right: 15px;
  background-color: #8B0000;
  color: white;
  font-size: 14px;
  border-radius: 4px;
  font-weight: 600;
}

.post-meta .date {
  color: #666;
  font-size: 14px;
}

.post-title {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.4;
}

.post-thumbnail {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.post-thumbnail img:hover {
  transform: scale(1.02);
}

.post-body {
  line-height: 1.8;
  color: #333;
  font-size: 16px;
}

.post-body p {
  margin-bottom: 20px;
}

.post-body h2 {
  font-size: 24px;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f2f2f2;
  color: #444;
}

.post-body h3 {
  font-size: 20px;
  margin: 30px 0 15px;
  color: #555;
}

.post-body ul, 
.post-body ol {
  margin-bottom: 25px;
  padding-left: 25px;
}

.post-body li {
  margin-bottom: 10px;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin: 20px 0;
}

.post-body a {
  color: #8B0000;
  text-decoration: none;
  border-bottom: 1px dotted #8B0000;
  transition: all 0.3s;
}

.post-body a:hover {
  color: #6d0000;
  border-bottom: 1px solid #6d0000;
}

.post-body blockquote {
  background-color: #f9f9f9;
  border-left: 4px solid #8B0000;
  padding: 15px 20px;
  margin: 20px 0;
  font-style: italic;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
}

.post-body table th,
.post-body table td {
  border: 1px solid #eee;
  padding: 10px;
  text-align: left;
}

.post-body table th {
  background-color: #f5f5f5;
  font-weight: bold;
}

/* 投稿ナビゲーション */
.post-navigation {
  max-width: 1000px;
  margin: 40px auto 0;
}

.post-nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.prev-post, 
.next-post {
  flex: 0 0 auto;
}

.prev-post a, 
.next-post a {
  display: flex;
  align-items: center;
  color: #555;
  text-decoration: none;
  transition: color 0.3s;
  padding: 10px;
}

.prev-post a:hover, 
.next-post a:hover {
  color: #8B0000;
}

.nav-arrow {
  font-size: 18px;
  line-height: 1;
}

.nav-text {
  margin: 0 5px;
}

.back-to-list {
  flex: 0 0 auto;
}

.back-to-list a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #8B0000;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s;
  font-weight: 600;
}

.back-to-list a:hover {
  background-color: #6d0000;
  color: white;
}

/* レスポンシブスタイル */
@media (max-width: 768px) {
  #post-detail {
    padding: 40px 20px;
  }
  
  .post-content {
    padding: 20px;
  }
  
  .post-title {
    font-size: 24px;
  }
  
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .post-meta .category {
    margin-bottom: 10px;
  }
  
  .post-body {
    font-size: 15px;
  }
  
  .post-body h2 {
    font-size: 20px;
  }
  
  .post-body h3 {
    font-size: 18px;
  }
  
  .post-nav-links {
    flex-direction: column;
    gap: 15px;
  }
  
  .prev-post, 
  .next-post,
  .back-to-list {
    width: 100%;
    text-align: center;
  }
  
  .back-to-list a {
    display: block;
  }
}

@media (max-width: 480px) {
  #post-detail {
    padding: 30px 15px;
  }
  
  .post-content {
    padding: 15px;
  }
  
  .post-title {
    font-size: 20px;
  }
  
  .post-body {
    font-size: 14px;
  }
} 
