@charset "UTF-8";

/* ==========================================================================
   観光農園ポータル 共通スタイル（デモ kanko-nouen-v1/css/common.css を移植）
   - 配色トークンは assets/css/_tokens.css 一本に集約（こちらでは :root を再定義しない）
   - デモの「仮」配色（primary緑 / accentオレンジ）は _tokens.css のブランド変数へ置換済み
   - BEM命名はデモのまま保持
   ========================================================================== */

/* デモCSS互換のための変数エイリアス（_tokens.css のブランド値へ橋渡し）
   ※ デモ common.css/index.css が参照する --color-status-* 系を、
      _tokens.css の --status-* / --font-display へマッピングする。 */
:root {
  --color-status-active: var(--status-active);
  --color-status-coming: var(--status-coming);
  --color-status-ended: var(--status-ended);
}

/* リセット */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  /* ページ間で縦スクロールバーの有無が変わっても横幅がズレない（ガタつき防止） */
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-base);
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* レイアウト */
.l-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ヘッダー */
.header {
  background-color: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-size: 1.8rem;
  font-weight: bold;
  font-family: var(--font-display);
  color: var(--color-primary-dark);
}

.header__nav {
  display: flex;
  gap: var(--space-lg);
}

.header__nav-item {
  color: var(--color-text);
  font-size: 1.4rem;
}

.header__lang {
  display: flex;
  gap: var(--space-sm);
  font-size: 1.2rem;
}

.header__lang-item {
  color: var(--color-text-sub);
}

.header__lang-item.is-active {
  color: var(--color-primary);
  font-weight: bold;
}

/* フッター */
.footer {
  background-color: #2a2a2a;
  color: #fff;
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__title {
  font-size: 1.8rem;
  font-weight: bold;
  font-family: var(--font-display);
  color: #fff;
  margin-bottom: var(--space-md);
}

.footer__desc {
  font-size: 1.3rem;
  color: #ccc;
  line-height: 1.8;
}

.footer__nav-title {
  font-size: 1.4rem;
  font-weight: bold;
  font-family: var(--font-display);
  color: #fff;
  margin-bottom: var(--space-md);
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__nav-item a {
  color: #ccc;
  font-size: 1.3rem;
}

.footer__copyright {
  text-align: center;
  font-size: 1.2rem;
  color: #999;
  border-top: 1px solid #444;
  padding-top: var(--space-lg);
}

/* セクション共通 */
.section {
  padding: var(--space-2xl) 0;
}

.section__heading {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__title {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.section__title-en {
  display: block;
  font-size: 1.2rem;
  color: var(--color-primary);
  letter-spacing: 0.2em;
  margin-bottom: var(--space-xs);
}

.section__lead {
  font-size: 1.4rem;
  color: var(--color-text-sub);
}

/* ステータスバッジ（共通コンポーネント） */
.status-badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 12px;
  color: #fff;
}

.status-badge--active {
  background-color: var(--color-status-active);
}

.status-badge--coming {
  background-color: var(--color-status-coming);
}

.status-badge--ended {
  background-color: var(--color-status-ended);
}

/* 通年で紹介する農園（収穫期を区切らないもの）。2026-09-18 追加 */
.status-badge--year_round {
  background-color: var(--color-status-active);
}

/* 農園カード（一覧／関連用 共通） */
.farm-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.farm-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.farm-card__image {
  aspect-ratio: 16 / 10;
  background-color: #eee;
  position: relative;
  overflow: hidden;
}

.farm-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.farm-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.farm-card__body {
  padding: var(--space-md);
}

.farm-card__area {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.farm-card__name {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.farm-card__period {
  font-size: 1.3rem;
  color: var(--color-text-sub);
  margin-bottom: var(--space-sm);
}

.farm-card__period::before {
  content: "🗓";
  margin-right: 4px;
}

.farm-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-sm);
}

.farm-card__tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 1.1rem;
  background-color: #f0f5ee;
  color: var(--color-primary-dark);
  border-radius: 4px;
}

.farm-card__excerpt {
  font-size: 1.3rem;
  color: var(--color-text-sub);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ボタン共通 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 1.4rem;
  font-weight: bold;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-align: center;
}

.btn--primary {
  background-color: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  opacity: 1;
}

.btn--accent {
  background-color: var(--color-accent);
  color: #fff;
}

.btn--accent:hover {
  background-color: var(--orange-600);
  opacity: 1;
}

.btn--outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.6rem;
}

/* パンくず */
.breadcrumb {
  padding: var(--space-md) 0;
  font-size: 1.2rem;
  color: var(--color-text-sub);
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.breadcrumb__item::after {
  content: ">";
  margin-left: var(--space-sm);
  color: var(--color-border);
}

.breadcrumb__item:last-child::after {
  content: "";
}

/* アクセシビリティ：スクリーンリーダー専用 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* レスポンシブ */
/* ハンバーガーボタン（モバイルのみ表示） */
.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
}
.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary-dark);
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .header__toggle { display: flex; }
  .header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
  }
  .header__nav.is-open { max-height: 70vh; }
  .header__nav-item {
    padding: 15px var(--space-md);
    font-size: 1.5rem;
    border-bottom: 1px solid var(--color-border);
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .section__title {
    font-size: 2.2rem;
  }
}

/* ==========================================================================
   画像枠ガイド（★モック専用：本番WP実装では削除）
   - 各画像スロットの右下に「用途・推奨アスペクト比・推奨px」を表示
   - クライアント支給画像を準備する際の指標。実画像を入れたら body から .img-guide を外す
   ========================================================================== */
.img-guide .farm-card__image::after,
.img-guide .guide-card__image::after,
.img-guide .step__image::after,
.img-guide .about-banner::after,
.img-guide .detail-hero::after,
.img-guide .gallery__item::after,
.img-guide .hero::after {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 3;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.3;
  color: #fff;
  background: rgba(42, 42, 42, 0.78);
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.img-guide .farm-card__image::after { content: "農園メイン画像 ｜ 16:10 ｜ 推奨 1200×750px"; }
.img-guide .guide-card__image::after { content: "楽しみ方カード画像 ｜ 16:9 ｜ 推奨 800×450px"; }
.img-guide .step__image::after { content: "ステップ画像 ｜ 4:3 ｜ 400×300px"; font-size: 0.8rem; right: 4px; bottom: 4px; padding: 2px 5px; }
.img-guide .about-banner::after { content: "横バナー画像 ｜ 16:9 ｜ 推奨 800×450px"; }
.img-guide .detail-hero { position: relative; }
.img-guide .detail-hero::after { content: "詳細ヘッダー画像 ｜ 16:9 ｜ 推奨 1600×900px"; right: 16px; bottom: 16px; font-size: 1.2rem; }
.img-guide .gallery__item { position: relative; }
.img-guide .gallery__item::after { content: "サブ画像 ｜ 4:3 ｜ 推奨 800×600px"; }
.img-guide .hero { position: relative; }
.img-guide .hero::after { content: "トップKVバナー ｜ 推奨 1920×720px（支給）"; right: 16px; bottom: 16px; font-size: 1.2rem; }

/* ==========================================================================
   固定ページ（楽しみ方ガイド／このサイトについて）＝デザイン4テンプレ目「固定2P」
   ========================================================================== */
.page-hero {
  position: relative;
  background-color: var(--color-primary-dark); /* 画像未設定/読込前のフォールバック */
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: var(--space-2xl) 0;
  text-align: center;
  overflow: hidden;
}
/* 背景写真の上に重ねる暖色グリーンのオーバーレイ（文字可読性を確保） */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgba(0, 102, 51, 0.72), rgba(0, 56, 19, 0.84));
}
.page-hero .l-container {
  position: relative;
  z-index: 1;
}
.page-hero__title {
  font-size: 3rem;
  font-weight: bold;
  font-family: var(--font-display);
  margin-bottom: var(--space-sm);
}
.page-hero__lead {
  font-size: 1.5rem;
  opacity: 0.92;
}
.static {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
}
.prose h2 {
  font-size: 2.2rem;
  font-weight: bold;
  margin: var(--space-2xl) 0 var(--space-md);
  padding-left: var(--space-md);
  border-left: 5px solid var(--color-primary);
  line-height: 1.4;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.7rem;
  font-weight: bold;
  margin: var(--space-xl) 0 var(--space-sm);
  color: var(--color-primary-dark);
}
.prose p { margin-bottom: var(--space-md); line-height: 1.9; }
.prose ul.bullets { list-style: disc; padding-left: 1.6em; margin-bottom: var(--space-md); }
.prose ul.bullets li { margin-bottom: var(--space-xs); }

/* ステップ（予約〜当日の流れ） */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: var(--space-md); margin: var(--space-lg) 0; }
.step {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: var(--space-lg) var(--space-lg) var(--space-lg) calc(var(--space-2xl) + 8px);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: var(--space-md);
  top: var(--space-lg);
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: #fff;
  font-weight: bold;
  font-size: 1.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
/* ステップに写真サムネを横並び */
.step { display: flex; align-items: center; gap: var(--space-lg); }
.step__body { flex: 1; min-width: 0; }
.step__image {
  flex-shrink: 0;
  width: 180px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #eee;
}
.step__image img { width: 100%; height: 100%; object-fit: cover; }
.step__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem;
  background: linear-gradient(135deg, #9ccc8f, #7bb86a);
}
.step__title { font-size: 1.6rem; font-weight: bold; margin-bottom: var(--space-xs); }
.step__desc { font-size: 1.4rem; color: var(--color-text-sub); line-height: 1.8; }

/* 横バナー画像（このサイトについて「サイトの目的」等 / 16:9） */
.about-banner {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #eee;
  margin: var(--space-md) 0 var(--space-lg);
}
.about-banner img { width: 100%; height: 100%; object-fit: cover; }
.about-banner__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem;
  background: linear-gradient(135deg, #9ccc8f, #7bb86a);
}

/* QA / 情報テーブル（このサイトについて） */
.info-block { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: 10px; padding: var(--space-lg); margin-bottom: var(--space-md); }
.about-table { width: 100%; border-collapse: collapse; font-size: 1.4rem; }
.about-table th, .about-table td { text-align: left; padding: var(--space-md); border-bottom: 1px solid var(--color-border); vertical-align: top; }
.about-table th { width: 30%; color: var(--color-text-sub); font-weight: bold; white-space: nowrap; }
.about-table tr:last-child th, .about-table tr:last-child td { border-bottom: none; }

@media (max-width: 768px) {
  .page-hero__title { font-size: 2.4rem; }
  .about-table th { width: 36%; }
}

/* CTA帯（全ページ共通＝中央揃え・ブランド緑グラデ）。front/guide/about で統一。 */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: var(--space-2xl) 0;
  text-align: center;
}
.cta-banner__title {
  font-size: 2.4rem;
  font-weight: bold;
  font-family: var(--font-display);
  margin-bottom: var(--space-md);
}
.cta-banner__lead {
  font-size: 1.4rem;
  margin-bottom: var(--space-lg);
}

/* お知らせ（一覧 home.php / index.php・詳細 single.php） */
.news-hero .section__title-en {
  display: block;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  opacity: 0.85;
  margin-bottom: var(--space-xs);
}
.news-hero__date { font-size: 1.4rem; opacity: 0.92; margin-bottom: var(--space-xs); }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-list__item { border-bottom: 1px solid var(--color-border); }
.news-list__link {
  display: grid;
  grid-template-columns: 140px 110px 1fr;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xs);
  align-items: start;
  transition: background-color 0.2s ease;
}
.news-list__link:hover { background: var(--color-bg-card); }
.news-list__date { font-size: 1.3rem; color: var(--color-text-sub); padding-top: 2px; }
.news-list__title {
  display: block;
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}
.news-list__excerpt { display: block; font-size: 1.3rem; color: var(--color-text-sub); line-height: 1.8; }
/* お知らせ一覧のサムネイル（アイキャッチ無しの記事は従来どおり2列に戻る）。 */
.news-list__link--nothumb { grid-template-columns: 110px 1fr; }
.news-list__thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-bg-card);
  aspect-ratio: 4 / 3;
}
.news-list__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* お知らせ詳細 */
.news-single__thumb { margin-bottom: var(--space-lg); border-radius: 10px; overflow: hidden; }
.news-single__thumb img { width: 100%; height: auto; display: block; }
.news-single__back { margin-top: var(--space-2xl); text-align: center; }

/* 今行ける農園・お知らせ 0件メッセージ */
.now-open__empty,
.news__empty {
  text-align: center;
  color: var(--color-text-sub);
  font-size: 1.4rem;
  padding: var(--space-lg) 0;
}
.news__more { text-align: center; margin-top: var(--space-lg); }

@media (max-width: 768px) {
  .news-list__link,
  .news-list__link--nothumb { grid-template-columns: 1fr; gap: var(--space-xs); }
  .news-list__thumb { max-width: 260px; }
}

/* ==========================================================================
   スクロール演出（リッチな入場アニメ）
   - JS有効時(.js-reveal)のみセクションを初期非表示→ビューポート進入でフェード＆スライドイン
   - JS無効・読込失敗・prefers-reduced-motion は通常表示（フッター含め必ず見える）
   ========================================================================== */
.js-reveal :is(.section, .cta-banner, .step, .info-block, .about-banner, .list-main, .no-results, .detail-layout) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 0.84, 0.44, 1);
  will-change: opacity, transform;
}
.js-reveal :is(.section, .cta-banner, .step, .info-block, .about-banner, .list-main, .no-results, .detail-layout).is-visible {
  opacity: 1;
  transform: none;
}
/* セクション内カードの軽いスタッガー（リッチさ向上） */
.js-reveal .section.is-visible .farm-card,
.js-reveal .section.is-visible .seasonal-fruits__item,
.js-reveal .section.is-visible .guide__item {
  animation: kn-rise 0.6s both;
}
.js-reveal .section.is-visible .farm-card:nth-child(2),
.js-reveal .section.is-visible .seasonal-fruits__item:nth-child(2),
.js-reveal .section.is-visible .guide__item:nth-child(2) { animation-delay: 0.08s; }
.js-reveal .section.is-visible .farm-card:nth-child(3),
.js-reveal .section.is-visible .seasonal-fruits__item:nth-child(3),
.js-reveal .section.is-visible .guide__item:nth-child(3) { animation-delay: 0.16s; }
.js-reveal .section.is-visible .farm-card:nth-child(4),
.js-reveal .section.is-visible .seasonal-fruits__item:nth-child(4) { animation-delay: 0.24s; }
.js-reveal .section.is-visible .farm-card:nth-child(n+5) { animation-delay: 0.3s; }
@keyframes kn-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal .section,
  .js-reveal .cta-banner { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js-reveal .section.is-visible .farm-card,
  .js-reveal .section.is-visible .seasonal-fruits__item,
  .js-reveal .section.is-visible .guide__item { animation: none !important; }
}

/* ==========================================================================
   挿絵（楽し気な雰囲気の装飾イラスト・透過PNG）
   ========================================================================== */
/* CTA帯の左右に対称のコーナーあしらい（右は左右反転） */
.cta-banner { position: relative; overflow: hidden; }
.cta-banner::before,
.cta-banner::after {
  content: "";
  position: absolute;
  top: 0;
  width: 160px;
  height: 160px;
  background: url("../img/illust/corner.png") no-repeat top left / contain;
  opacity: 0.9;
  pointer-events: none;
}
.cta-banner::before { left: 0; }
.cta-banner::after { right: 0; transform: scaleX(-1); }
@media (max-width: 768px) {
  .cta-banner::before,
  .cta-banner::after { width: 96px; height: 96px; opacity: 0.8; }
}


/* ============================================================
   サイトロゴ（2026-08-18 先方確定分に差し替え）
   ヘッダー=横ロゴ / フッター=丸ロゴ。
   ⚠️ フッターは背景 #2a2a2a のため、丸ロゴは白い円の上に置く
      （ロゴ本体の文字色が茶系で、暗い地色では沈むため）
   ============================================================ */
.header__logo {
  display: flex;
  align-items: center;
  line-height: 0;            /* 画像下の隙間を消す */
}

.header__logo img {
  height: 44px;
  width: auto;
  display: block;
}

.footer__title {
  line-height: 0;
}

.footer__logo {
  width: 96px;
  height: 96px;
  padding: 8px;
  background-color: #fff;
  border-radius: 50%;
  box-sizing: border-box;
  display: block;
}

@media (max-width: 768px) {
  .header__logo img { height: 32px; }
  .footer__logo { width: 80px; height: 80px; }
}
