@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

:root {
  /* --- カラーパレット (和モダン) --- */
  --cl-bg-body: #FDFCF8;       /* 全体の背景：和紙のような生成り色 */
  --cl-text-main: #333333;     /* 基本文字色：墨色 */
  --cl-text-accent: #5A4D42;   /* 見出しなど：焦茶 */
  --cl-primary: #E88E23;       /* メインアクセント：みかん色 */
  --cl-green: #8BA864;         /* サブアクセント：葉っぱ色 */
  --cl-gray-light: #F4F4F4;    /* 薄いグレー背景 */

  /* --- フォント --- */
  --font-serif: "Shippori Mincho", "Yu Mincho", serif; /* 明朝体（見出し用） */
  --font-sans: "Zen Kaku Gothic New", "Yu Gothic", sans-serif; /* ゴシック体（本文用） */

  /* --- レイアウト --- */
  --border-radius-card: 12px;  /* カードの角丸 */
}

body {
  background-color: var(--cl-bg-body);
  color: var(--cl-text-main);
  font-family: var(--font-sans);
}

/* 共通コンポーネント：セクション見出し（和風） */
.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--cl-text-accent);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}

/* 共通コンポーネント：ボタン */
.btn-primary {
  display: inline-block;
  background-color: var(--cl-primary);
  color: #fff;
  padding: 10px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: opacity 0.3s;
  font-weight: bold;
}
.btn-primary:hover {
  opacity: 0.8;
  color: #fff;
}

.footer-meta {
  display: none;
}

.main {
	padding: 0;
}

.content {
	margin: 0;
}

.tagline {
	text-align: left;
	padding-left: 10px;
	margin-bottom: 0;
}

.logo {
	text-align: left;
}

.logo-text {
	padding: 0px 0 30px;
}

.wrap{
  width: 100%;
}

/************************************
** Orchard ヒーロー（トップページ専用）
************************************/

/* トップページだけに適用 */
.home #orchard-visual {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0;
}

/* ステージ本体 */
.home #orchard-visual .orchard-stage {
  position: relative;
  width: 100%;
  /* max-width: 1280px;     コンテンツの最大幅 */
  height: min(90vh, 620px);
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
}

/* 右下の角丸背景（必要なければ消してOK） */
.home #orchard-visual .bg-shape {
  position: absolute;
  width: 120%;
  height: 100%;
  right: -10%;
  bottom: -10%;
  background: #fff;
  border-radius: 0 0 200px 0;
  z-index: 1;
}

/* 地面 */
.home #orchard-visual .ground {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  z-index: 2;
}

/* 木（PC） */
.home #orchard-visual .tree {
  position: absolute;
  left: 52%;
  bottom: 0;
  width: 40%;
  transform: translateX(-50%);
  z-index: 3;
}

/* 果物（PC） */
.home #orchard-visual .fruit {
  position: absolute;
  width: 6vw;
  max-width: 70px;
  height: auto;
  cursor: pointer;
  z-index: 4;
}

.home #orchard-visual .apple  { left: 52%; top: 12%; }
.home #orchard-visual .lemon  { left: 42%; top: 22%; }
.home #orchard-visual .grape  { left: 45%; top: 42%; }
.home #orchard-visual .orange { left: 58%; top: 40%; }

/* 農夫・ロボット（PC） */
.home #orchard-visual .mover {
  position: absolute;
  bottom: 5%;
  width: 10vw;
  max-width: 120px;
  z-index: 5;
}

.home #orchard-visual .farmer {
  left: 80%;
  bottom: 5%;
  width: 14vw;
  max-width: 180px;
}

.home #orchard-visual .robot {
  left: -20vw;
  bottom: 6%;
}

/* ドローン（PC） */
.home #orchard-visual .drone {
  position: absolute;
  left: 20%;
  top: 12%;
  width: 12vw;
  max-width: 140px;
  z-index: 6;
}

/* ------- スマホ調整 ------- */
@media (max-width: 767px) {

  .home #orchard-visual .orchard-stage {
    height: 65vh;
  }

  .home #orchard-visual .tree {
    left: 50%;
    bottom: -5%;
    width: 85%;
    transform: translateX(-50%);
  }

  .home #orchard-visual .fruit {
    width: 12vw;
    max-width: 85px;
  }

  .home #orchard-visual .apple  { left: 50%; top: 48%;  transform: translateX(-50%); }
  .home #orchard-visual .lemon  { left: 26%; top: 57%; transform: none; }
  .home #orchard-visual .grape  { left: 50%; top: 65%; transform: translateX(-50%); }
  .home #orchard-visual .orange { left: 65%; top: 62%; transform: none; }

  .home #orchard-visual .farmer {
    left: 80%;
    bottom: 0;
    width: 24vw;
    max-width: 150px;
  }

  .home #orchard-visual .robot {
    bottom: 0;
    width: 18vw;
    max-width: 100px;
  }

  .home #orchard-visual .drone {
    left: 15%;
    top: 6%;
    width: 20vw;
    max-width: 125px;
  }
}

/* ------- トップページのタイトルなどを消したい場合 ------- */
.home .entry-title,
.home .entry-header,
.home .entry-meta {
  display: none;
  margin: 0;
  padding: 0;
}

.home .entry-content {
  margin-top: 0;
  padding-top: 0;
}


/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* --- 共通変数（前回の提案に追加・調整） --- */
:root {
  --cl-bg-beige: #F4F1EA;     /* 画像にある薄いベージュ背景 */
  --cl-dark-brown: #4A3B32;   /* 濃い茶色の文字 */
  --font-mincho: "Shippori Mincho", "Yu Mincho", serif;
}

/* 汎用クラス */
.bg-beige {
  background-color: var(--cl-bg-beige);
}

.section-container {
  padding: 80px 20px;
}

.container-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* --- セクションタイトル --- */
.jp-title {
  text-align: center;
  font-family: var(--font-mincho);
  color: var(--cl-dark-brown);
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  line-height: 1.4;
}
.small-en {
  font-size: 1rem;
  color: #E88E23; /* アクセントカラー */
  font-family: sans-serif;
  letter-spacing: 0.2em;
}

/* --- 1. きになるニュース --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.news-card a {
  display: block;
  background: #fff;
  border-radius: 15px;
  padding: 15px;
  text-decoration: none;
  color: var(--cl-text-main);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}
.news-card a:hover {
  transform: translateY(-5px);
}

.news-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.news-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 10px;
}
.news-cat-label {
  background: #E88E23;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 10px;
  font-size: 0.75rem;
}

.news-title {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  min-height: 3.2em; /* 2行分確保 */
}

.read-more {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--cl-dark-brown);
}

/* ボタン */
.btn-secondary {
  display: inline-block;
  border: 1px solid var(--cl-dark-brown);
  padding: 10px 40px;
  border-radius: 50px;
  text-decoration: none;
  color: var(--cl-dark-brown);
  transition: all 0.3s;
}
.btn-secondary:hover {
  background: var(--cl-dark-brown);
  color: #fff;
}
.btn-area {
  text-align: center;
}


/* --- 2. 果樹農業最前線 (縦書きレイアウト) --- */
.frontline-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

/* 左側：縦書きエリア */
.frontline-title-area {
  width: 200px;
  writing-mode: vertical-rl; /* 縦書き指定 */
  text-orientation: mixed;
}

.vertical-title {
  font-family: var(--font-mincho);
  font-size: 2.5rem;
  color: var(--cl-dark-brown);
  letter-spacing: 0.2em;
  margin-left: 20px; /* 縦書きなのでleftが上方向のマージン的意味合いになる場合あり要調整 */
}

.vertical-desc {
  font-size: 1rem;
  line-height: 2;
  color: #555;
  margin-top: 20px;
  letter-spacing: 0.1em;
}

.btn-circle {
  writing-mode: horizontal-tb; /* ボタンは横書きに戻す */
  display: inline-block;
  border: 1px solid var(--cl-dark-brown);
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--cl-dark-brown);
  margin-top: 30px; /* 縦書きエリア内での配置調整 */
}

/* 右側：カードエリア */
.frontline-cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列 */
  gap: 20px;
}

.frontline-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}

.frontline-card img {
  width: 100%;
  height: 350px; /* 縦長画像 */
  object-fit: cover;
  transition: transform 0.5s;
}

.frontline-card:hover img {
  transform: scale(1.1);
}

.card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding: 20px 10px;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .frontline-layout {
    flex-direction: column;
  }
  .frontline-title-area {
    width: 100%;
    writing-mode: horizontal-tb; /* スマホでは横書きに戻すのが一般的 */
    text-align: center;
    margin-bottom: 30px;
  }
  .vertical-title {
    font-size: 1.8rem;
    margin-left: 0;
    margin-bottom: 15px;
  }
  .frontline-cards {
    grid-template-columns: 1fr; /* 1列に */
  }
  .frontline-card img {
    height: 200px;
  }
}

/* ==============================================
   Cocoonのデフォルトスタイルを強制解除 (トップページのみ)
   ============================================== */
.home.page .content,
.home.page .main,
.home.page .wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: transparent !important; /* 白背景を消す */
  border: none !important;
  box-shadow: none !important; /* 影を消す */
}

/* サイト全体の背景色を確実に適用 */
body.home {
  background-color: var(--cl-bg-body);
}

/* コンテナ内の幅調整（これをしないと中身が広がりすぎる） */
.container-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px; /* スマホで端がくっつかないように */
  position: relative;
}

/* ==============================================
   既存セクションの微調整 (News, Frontline)
   ============================================== */

/* 画像のアスペクト比を固定（潰れ防止） */
.news-thumb img,
.frontline-card img {
  object-fit: cover;
}

/* 縦書きエリアの調整 */
.frontline-title-area {
  min-width: 140px; /* 幅を確保 */
  display: flex;
  flex-direction: column;
  align-items: center; /* 中央揃え */
}

.vertical-title {
  margin-left: 0; /* マージンリセット */
  margin-bottom: 20px;
  line-height: 1.2;
}

/* ==============================================
   新規セクション用スタイル (パイロット事業, マガジン)
   ============================================== */

/* --- 3. パイロット事業 (Map) --- */
.pilot-section {
  position: relative;
  background-color: #fff; /* ベースは白 */
  overflow: hidden;
}

/* 背景に日本地図を配置（画像パスは適宜合わせてください） */
.pilot-bg {
  position: relative;
  width: 100%;
  min-height: 600px;
  background-image: url('/wp-content/uploads/2025/11/japan-map-bg.png'); /* ←地図画像を背景にする */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.pilot-content {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9); /* 読みやすくするための白透過背景 */
  padding: 40px;
  border-radius: 20px;
  max-width: 500px;
  margin-left: auto; /* 右寄せにする場合 */
  margin-right: 5%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.pilot-desc {
  line-height: 2;
  margin-bottom: 30px;
  font-feature-settings: "palt";
}

/* --- 4. 支援制度バナー --- */
.support-banner {
  background-color: var(--cl-text-accent); /* 濃い茶色 */
  color: #fff;
  padding: 40px 20px;
  margin: 60px 0;
}
.support-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.support-text h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 5px;
  font-family: var(--font-sans);
}
.btn-arrow-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  color: var(--cl-text-accent);
  font-size: 1.5rem;
  text-decoration: none;
  transition: transform 0.3s;
}
.btn-arrow-circle:hover {
  transform: translateX(5px);
}

/* --- 5. きになるマガジン --- */
.magazine-circles {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.mag-circle-item {
  text-align: center;
  width: 180px;
  text-decoration: none;
  color: var(--cl-text-main);
}
.mag-circle-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px;
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.mag-circle-item:hover .mag-circle-img {
  transform: scale(1.05);
}
.mag-circle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mag-circle-title {
  font-weight: bold;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* マガジン記事リスト（横長） */
.magazine-list-horiz {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}
.mag-horiz-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  text-decoration: none;
  color: var(--cl-text-main);
}
.mag-horiz-img {
  width: 180px;
  height: 120px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.mag-horiz-body {
  flex: 1;
}
.mag-horiz-title {
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.5;
}
.mag-horiz-desc {
  font-size: 0.85rem;
  color: #666;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .pilot-content {
    margin: 20px;
    max-width: 100%;
  }
  .support-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .magazine-list-horiz {
    grid-template-columns: 1fr;
  }
  .mag-horiz-card {
    flex-direction: column;
  }
  .mag-horiz-img {
    width: 100%;
    height: 180px;
  }
}

/* =====================================================
   トップページ(front-page)の強制フル幅対応
   ===================================================== */

/* 1. Cocoonのデフォルトの枠（wrap）とメインカラムの幅制限を解除 */
body.home .content-in.wrap,
body.home #main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background-color: transparent !important; /* 白背景を透明に */
}

/* 2. 背景色の補正 */
body.home #content,
body.home .content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 3. コンテンツが画面端にくっつかないようにする内部コンテナの制御
      ※すでに記述済みかもしれませんが、念のため確認してください */
.container-inner {
  max-width: 1100px; /* 読みやすい幅に戻す */
  margin: 0 auto;
  padding: 0 20px;   /* スマホで見切れないように余白 */
  position: relative;
}

/* 4. 画像の隙間対策（念のため） */
img {
  vertical-align: bottom;
}

/* =====================================================
   トップページ(front-page)の強制フル幅対応 & 枠解除
   ===================================================== */

/* 1. Cocoonのデフォルトの枠（wrap）とメインカラムの幅制限・余白を解除 */
body.home .content,
body.home .content-in,
body.home .wrap,
body.home #main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important; /* 影を消す */
  background-color: transparent !important; /* 白背景を透明に */
}

/* 2. 余計な隙間（ヘッダー下など）を削除 */
body.home #content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 3. 内部コンテナの幅定義（解除した分、中身が広がりすぎないように制御） */
/* ※これは既に記述済みであれば不要ですが、念のため確認してください */
.container-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* 4. 画像の下に微妙な隙間ができるのを防ぐ */
img {
  vertical-align: bottom;
}

/* =====================================================
   レスポンシブデザイン (スマホ・タブレット対応)
   max-width: 768px 以下のときに適用
   ===================================================== */
@media screen and (max-width: 768px) {

  /* --- 全体共通設定 --- */
  .section-container {
    padding: 50px 15px; /* 上下の余白を少し狭く */
  }
  .section-title {
    font-size: 1.5rem; /* 見出しの文字サイズを調整 */
    margin-bottom: 30px;
  }
  .container-inner {
    padding: 0 15px; /* 左右の余白確保 */
  }

  /* --- 1. きになるニュース --- */
  .news-grid {
    grid-template-columns: 1fr; /* 1列にする */
    gap: 25px;
  }
  .news-thumb img {
    height: 180px; /* 画像の高さを少し抑える */
  }

  /* --- 2. 果樹農業最前線 (縦書き→横書きへ変更) --- */
  .frontline-layout {
    flex-direction: column; /* 縦並びにする */
    gap: 30px;
  }

  /* タイトルエリア */
  .frontline-title-area {
    width: 100%;
    writing-mode: horizontal-tb; /* 横書きに戻す */
    text-align: center;
    margin-bottom: 10px;
  }

  .vertical-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
    /* デザインに合わせて下線を引くなど */
    display: inline-block;
    border-bottom: 3px solid var(--cl-primary);
    padding-bottom: 5px;
  }

  .vertical-desc {
    font-size: 0.95rem;
    text-align: left; /* 説明文は左揃え */
    line-height: 1.8;
  }

  .frontline-title-area .btn-circle {
    margin-top: 20px;
  }

  /* カードエリア */
  .frontline-cards {
    grid-template-columns: 1fr; /* 1列にする */
    width: 100%;
  }
  .frontline-card img {
    height: 220px;
  }

  /* --- 3. パイロット事業 --- */
  .pilot-section .pilot-bg {
    min-height: auto;
    padding: 40px 0;
    background-position: center; /* 背景位置を中心に */
  }

  .pilot-content {
    margin: 0 15px;
    padding: 30px 20px;
    max-width: 100%;
    margin-right: 15px; /* 右寄せ解除 */
  }

  /* タイトルの縦書きも横書きに戻す */
  .pilot-content .vertical-rl {
    writing-mode: horizontal-tb;
    font-size: 1.5rem;
    display: block;
    margin-bottom: 10px;
  }
  .pilot-content .section-title-area {
    text-align: center !important; /* 強制中央揃え */
    margin-bottom: 20px !important;
  }
  .pilot-content .section-title-area > div {
    /* 下線の棒 */
    margin: 0 auto;
    width: 60px !important;
  }

  .pilot-desc {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  /* --- 4. 支援制度バナー --- */
  .support-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .support-text h3 {
    font-size: 1.3rem;
  }

  /* --- 5. きになるマガジン --- */
  /* 丸いアイコン群 */
  .magazine-circles {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-around; /* 均等配置 */
  }
  .mag-circle-item {
    width: 45%; /* 2列にする */
    margin-bottom: 10px;
  }
  .mag-circle-img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    border-width: 3px;
  }
  .mag-circle-title {
    font-size: 0.8rem;
  }

  /* 記事リスト（横長→縦積みに変更） */
  .magazine-list-horiz {
    grid-template-columns: 1fr;
  }
  .mag-horiz-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .mag-horiz-img {
    width: 100%;
    height: 180px;
    margin-bottom: 15px;
  }
  .mag-horiz-body {
    width: 100%;
  }
  .mag-horiz-title {
    font-size: 1.1rem;
  }
}
