/**
 * Single Post Page Styles
 * 投稿詳細ページのスタイル
 */

/* メインコンテナ */
.single-page {
  background: linear-gradient(135deg, #f4f3ee 0%, #e8f5e8 50%, #f0f8ff 100%);
  min-height: 100vh;
}

/* 投稿記事コンテナ */
.post-article {
  background: transparent;
  margin-bottom: 0;
}

/* 投稿ヒーローセクション（ヘッダー） */
.post-header {
  background: linear-gradient(135deg, #f4f3ee 0%, #e8f5e8 50%, #f0f8ff 100%);
  color: #3d405b;
  padding: 6rem 0 4rem;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.post-header::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(135deg, #f4f3ee, #e8f5e8);
  z-index: -1;
}

.post-header .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  padding-top: 80px;
}

/* 投稿メタ情報 */
.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.post-date {
  color: #81b29a;
  font-weight: 500;
}

.post-category {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-category.service {
  background: rgba(224, 122, 95, 0.1);
  color: #e07a5f;
}

.post-category.company {
  background: rgba(129, 178, 154, 0.1);
  color: #81b29a;
}

.post-category.media {
  background: rgba(242, 204, 143, 0.1);
  color: #f2cc8f;
}

.post-category.uncategorized {
  background: rgba(61, 64, 91, 0.1);
  color: #3d405b;
}

/* 投稿タイトル */
.post-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: #3d405b;
  letter-spacing: -0.02em;
}

/* 投稿コンテンツエリア */
.post-content {
  background: white;
  padding: 6rem 0;
  margin-top: 0;
}

.post-content .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* アイキャッチ画像 */
.post-thumbnail {
  margin-bottom: 2.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

/* 投稿本文 */
.post-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #3d405b;
  margin-bottom: 3rem;
}

.post-body h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 2.5rem 0 1.5rem;
  color: #3d405b;
  position: relative;
  padding-left: 1rem;
}

.post-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #e07a5f, #f2cc8f);
  border-radius: 2px;
}

.post-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: #3d405b;
}

.post-body p {
  margin-bottom: 1.5rem;
}

.post-body ul,
.post-body ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body blockquote {
  background: #f4f3ee;
  border-left: 4px solid #e07a5f;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

.post-body blockquote p {
  margin-bottom: 0;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post-body code {
  background: #f4f3ee;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.post-body pre {
  background: #f4f3ee;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-body pre code {
  background: none;
  padding: 0;
}

/* 投稿フッター */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
}

/* 投稿ナビゲーション */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.nav-previous,
.nav-next {
  background: #f4f3ee;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.nav-previous:hover,
.nav-next:hover {
  background: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: rgba(224, 122, 95, 0.2);
  transform: translateY(-2px);
}

.nav-previous a,
.nav-next a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.nav-subtitle {
  display: block;
  font-size: 0.85rem;
  color: #81b29a;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-title {
  display: block;
  font-size: 1rem;
  color: #3d405b;
  font-weight: 600;
  line-height: 1.4;
}

.nav-next {
  text-align: right;
}

/* 一記事表示の場合の調整 */
.post-navigation .nav-previous:only-child,
.post-navigation .nav-next:only-child {
  grid-column: 1 / -1;
  max-width: 50%;
}

.post-navigation .nav-next:only-child {
  margin-left: auto;
}

/* ニュース一覧に戻るボタン */
.back-to-news {
  text-align: center;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border: 2px solid #3d405b;
  color: #3d405b;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  background: transparent;
}

.btn-outline:hover {
  background: #3d405b;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 64, 91, 0.3);
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
  .post-header {
    padding: 5rem 0 3rem;
  }

  .post-header .container {
    padding-top: 60px;
  }

  .post-title {
    font-size: 2.8rem;
  }

  .post-content {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  .post-header {
    padding: 4rem 0 2rem;
  }

  .post-header .container {
    padding-top: 40px;
  }

  .post-title {
    font-size: 2rem;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .post-content {
    padding: 3rem 0;
  }

  .post-body {
    font-size: 1rem;
  }

  .post-body h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
  }

  .post-body h3 {
    font-size: 1.3rem;
  }

  .post-navigation {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nav-previous,
  .nav-next {
    padding: 1rem;
  }

  .nav-next {
    text-align: left;
  }

  .post-navigation .nav-previous:only-child,
  .post-navigation .nav-next:only-child {
    max-width: 100%;
  }

  .post-navigation .nav-next:only-child {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .post-header {
    padding: 3rem 0 1.5rem;
  }

  .post-header .container {
    padding-top: 20px;
  }

  .post-title {
    font-size: 1.8rem;
  }

  .post-content {
    padding: 2rem 0;
  }

  .post-body {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .post-body h2 {
    font-size: 1.3rem;
  }

  .post-body h3 {
    font-size: 1.2rem;
  }

  .nav-previous,
  .nav-next {
    padding: 0.8rem;
  }

  .nav-title {
    font-size: 0.9rem;
  }

  .btn-outline {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}