/*
Theme Name: Kiuchi_Farm_ver1.0
Theme URI: https://kiuchifarm.com/
Description: 果樹園紹介・ブログ・EC導線用のオリジナルテーマ
Version: 1.1
Author: RK
Text Domain: kiuchi-farm
*/

/* ==============================
  リセット & ベース
============================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Noto Sans JP",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  line-height: 1.8;
  color: #333;
  background: #fff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ==============================
  共通レイアウト
============================== */

.site-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ==============================
  ヘッダー
============================== */

.site-header {
  background: #f7f7f7;
  border-bottom: 1px solid #e0e0e0;
}

/* 上段：ロゴ＋説明＋EC */
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ロゴ＋説明 */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ロゴ画像（高さ基準・比率固定） */
.custom-logo-link img {
  height: 96px;        /* PC基準 */
  width: auto;
}

/* ロゴ説明テキスト */
.site-logo-text {
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 600;
}

/* ECボタン */
.ec-button {
  background: #e06b2d;
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.ec-button:hover {
  opacity: 0.9;
}

/* ==============================
  グローバルナビ
============================== */

.global-nav {
  background: #fff;
  border-top: 1px solid #e0e0e0;
}

.global-nav-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

.global-nav-list a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding-bottom: 0.3rem;
}

/* 現在ページ */
.global-nav-list .current-menu-item > a {
  color: #2a6a39;
  border-bottom: 2px solid #2a6a39;
}

/* ==============================
  ヒーロー
============================== */

.hero {
  background: #f9f9f9;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.hero-image,
.hero-content {
  flex: 1;
}

.hero-image img {
  width: 100%;
  border-radius: 12px;
}

.hero-title {
  font-size: 2.4rem;
  line-height: 1.3;
  color: #2a6a39;
  margin: 0 0 0.6rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: #555;
}

/* ==============================
  シーズン案内（PC・SP共通）
============================== */

.season-notice {
  max-width: 900px;
  margin: 2rem auto 3rem;
  padding: 1.4rem 1.3rem;

  background: #f8fbf9;       /* ほぼ白に近い緑 */
  border: 1px solid #e6eee9; /* 気配だけの枠 */

  border-radius: 14px;
  text-align: center;
}

.season-notice p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 600;
  color: #2a6a39;
}

/* ==============================
  セクション共通
============================== */

section {
  margin-bottom: 4rem;
}

section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #2a6a39;
}

/* ==============================
  最新記事
============================== */

.post-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.8rem;
}

.post-item a {
  display: block;
  padding: 1.2rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  background: #fff;
}

.post-item a:hover {
  background: #fafafa;
}

@media (min-width: 1024px) {
  .post-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==============================
  記事ページ（single.php）
============================== */

/* 記事全体の横幅を最適化 */
.single-post {
  max-width: 760px;
  margin: 0 auto 4rem;
}

/* ===== 記事ヘッダー ===== */

.entry-header {
  margin-bottom: 2.5rem;
}

.entry-title {
  font-size: 2rem;
  line-height: 1.45;
  margin: 0 0 0.8rem;
  color: #2a6a39;
}

.entry-meta {
  font-size: 0.85rem;
  color: #777;
}

/* ===== 本文 ===== */

.entry-content {
  font-size: 1rem;
  line-height: 1.9;          /* ← 最重要 */
  letter-spacing: 0.02em;
}

/* 段落 */
.entry-content p {
  margin: 0 0 1.6rem;
}

/* 見出し */
.entry-content h2 {
  font-size: 1.4rem;
  margin: 3rem 0 1.2rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e6eee9;
  color: #2a6a39;
}

.entry-content h3 {
  font-size: 1.2rem;
  margin: 2.4rem 0 1rem;
  color: #2a6a39;
}

/* リスト */
.entry-content ul,
.entry-content ol {
  margin: 1.5rem 0 1.5rem 1.5rem;
}

.entry-content li {
  margin-bottom: 0.6rem;
}

/* 画像 */
.entry-content img {
  margin: 2rem auto;
  border-radius: 10px;
}

/* ===== フッター（カテゴリ・タグ） ===== */

.entry-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e6eee9;
  font-size: 0.85rem;
  color: #666;
}

.entry-footer a {
  color: #2a6a39;
  text-decoration: none;
}

.entry-footer a:hover {
  text-decoration: underline;
}

/* ===== 前後記事ナビ ===== */

.post-navigation {
  max-width: 760px;
  margin: 3rem auto 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.post-navigation a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #2a6a39;
}

.post-navigation a:hover {
  text-decoration: underline;
}

/* ==============================
  フッター
============================== */

.site-footer {
  background: #f7f7f7;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ==============================
  モバイル調整
============================== */

@media (max-width: 768px) {

  body {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  p {
    margin-bottom: 1.2em;
  }

  section h2 {
    margin-bottom: 0.6rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-logo {
    flex-direction: column;
    gap: 0.4rem;
  }

  .custom-logo-link img {
    height: 80px;     /* モバイル基準 */
  }

  .site-logo-text {
    font-size: 1.05rem;
    line-height: 1.5;
  }

  .header-ec {
    width: 100%;
  }

  .header-ec .ec-button {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .global-nav-list {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero {
    margin-bottom: 1.5rem;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }

  .hero-content {
    padding: 0.5rem 0;
  }

  .hero-title {
    font-size: 1.6rem;      /* ↓ 少しだけ抑える */
    line-height: 1.35;      /* 呼吸感を保つ */
    margin-bottom: 0.6rem; /* 縦間延び防止 */
    letter-spacing: 0.02em;
  }

  .hero-subtitle {
    display: none;
  }

  .hero-cta.ec-button {
    font-size: 0.85rem;
    padding: 0.5rem 1.4rem;
  }

  .about-orchard p {
    max-width: 34em;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.02em;
    color: #444;
  }

  .season-notice {
    margin: 2rem 1rem 3rem;
    padding: 1.3rem 1.2rem;
  }

  .season-notice p {
    font-size: 1.05rem;
  }

  .single-post {
    padding: 0 0.5rem;
  }

  .entry-title {
    font-size: 1.6rem;
    line-height: 1.4;
  }

  .entry-content {
    font-size: 1.05rem;   /* ← 少し大きく */
    line-height: 1.85;
  }

  .post-navigation {
    flex-direction: column;
    gap: 0.8rem;
  }

}