/*
Theme Name: SFJ
Theme URI: https://step-forward-japan.jp
Author: SFJ
Author URI: https://step-forward-japan.jp
Description: Step Forward Japan - 失敗できる社会の醸成
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sfj
*/

/* ============================
   詳細ページ用追加CSS
   ============================ */

/* 下層ページ共通 */
.single-content-wrap {
  width: 95%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 5rem;
  background:#fff;
  border-radius:12px;
	
}

/* 詳細ページ アイキャッチ */
.single-thumbnail {
  width: 100%;
  max-height: 400px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.single-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 2.5/1;
  object-fit: cover;
}

/* 詳細ページ メタ情報 */
.single-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.single-date {
  font-size: 0.9rem;
  color: #888;
  font-family: sans-serif;
  letter-spacing: 0.05em;
}

.single-cat {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.single-cat li {
  background: #0072c4;
  color: #fff;
  padding: 4px 12px;
  font-size: 0.75rem;
  border-radius: 50px;
  font-weight: bold;
  line-height: 1;
}

/* 詳細ページ タイトル */
.single-title {
  font-size: 1.75rem;
  color: #222;
  line-height: 1.5;
  margin-bottom: 2rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}

/* 詳細ページ 本文 */
.single-body {
  font-size: 1rem;
  line-height: 2;
  color: #333;
  letter-spacing: 0.05em;
}

.single-body p {
  margin-bottom: 1.5rem;
}

.single-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.single-body h2 {
  font-size: 1.5rem;
  color: #222;
  margin: 2.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 5px solid #048ead;
  line-height: 1.4;
}

.single-body h3 {
  font-size: 1.3rem;
  color: #333;
  margin: 2rem 0 0.8rem;
  line-height: 1.4;
}

.single-body blockquote {
  background: #f5fcff;
  border-left: 5px solid #048ead;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  font-style: normal;
  color: #444;
}

.single-body ul,
.single-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.single-body li {
  margin-bottom: 0.5rem;
  list-style: disc;
}

/* 記事ナビゲーション */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
  gap: 1rem;
}

.post-navigation a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #048ead;
  font-weight: bold;
  transition: color 0.3s;
  max-width: 45%;
}

.post-navigation a:hover {
  color: #0072c4;
}

.nav-prev::before {
  content: "←";
}

.nav-next::after {
  content: "→";
}

.nav-back-list {
  text-align: center;
  margin-top: 2rem;
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 50%;
  font-size: 0.9rem;
  color: #333;
  font-weight: bold;
  transition: all 0.3s;
}

.pagination .page-numbers.current {
  background: #048ead;
  color: #fff;
  border-color: #048ead;
}

.pagination .page-numbers:hover:not(.current) {
  background: #f5f5f5;
  border-color: #048ead;
  color: #048ead;
}

.pagination .prev,
.pagination .next {
  width: auto;
  padding: 0 1rem;
  border-radius: 50px;
}

/* CF7カスタマイズ */
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  display: block;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 16px;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  background: #f6f6f6;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  font-family: "Noto Serif", serif;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #9aa0a6;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: #2da5a8;
  box-shadow: 0 0 0 3px rgba(45, 165, 168, 0.15);
  background: #fff;
}

.wpcf7 .wpcf7-checkbox .wpcf7-list-item {
  display: block;
  margin: 8px 0;
  font-size: 15px;
  color: #333;
}

.wpcf7 input[type="submit"] {
  appearance: none;
  border: 1px solid #0072c4;
  background: #0072c4;
  padding: 1rem 2rem;
  display: block;
  color: #fff;
  font-weight: bold;
  text-align: center;
  width: 300px;
  margin: 4rem auto 0;
  font-size: 1.1rem;
  cursor: pointer;
  font-family: "Noto Serif", serif;
  letter-spacing: 0.15em;
}

.wpcf7 input[type="submit"]:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* 投稿がない場合 */
.no-posts {
  text-align: center;
  padding: 4rem 2rem;
  color: #888;
  font-size: 1.1rem;
}

/* レスポンシブ追加 */
@media (max-width: 768px) {
  .single-title {
    font-size: 1.5rem;
  }

  .post-navigation {
    flex-direction: column;
  }

  .post-navigation a {
    max-width: 100%;
  }

  .single-content-wrap {
    padding: 2rem 1rem 3rem;
  }
}

@media (max-width: 480px) {
  .single-title {
    font-size: 1.3rem;
  }

  .single-body {
    font-size: 0.95rem;
  }

  .single-body h2 {
    font-size: 1.3rem;
  }
}