/* =========================
   野菜価格安定補償制度：ページ専用CSS
   /systems/price-stabilization/price-stabilization.css
========================= */

/* ページ限定の目印（HTMLのbodyに class が無ければ追加推奨）
   body class="page-price-stabilization" を推奨。無くても動くが安定する */
body.page-price-stabilization{
  background: linear-gradient(180deg, #f7f7f7 0%, #ffffff 28%, #f7f7f7 100%);
}

/* ヘッダー固定分：ヒーローが隠れないように */
body.page-price-stabilization .main-content{
  padding-top: 0;
}

/* =========================
   HERO：LP感の核
========================= */
body.page-price-stabilization .hero{
  min-height: 62vh;
  color: #fff;
  background:
    radial-gradient(1100px 400px at 15% 10%, rgba(44,122,63,0.55), transparent 55%),
    radial-gradient(900px 360px at 85% 25%, rgba(44,122,63,0.35), transparent 55%),
    linear-gradient(135deg, rgba(10,20,10,0.92), rgba(10,20,10,0.70));
}

body.page-price-stabilization .hero-inner{
  padding-top: 84px; /* fixed header対策 */
  padding-bottom: 56px;
}

body.page-price-stabilization .hero-text{
  max-width: 760px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);
}

body.page-price-stabilization .hero-label{
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.18);
}

body.page-price-stabilization .hero h1{
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  letter-spacing: 0.02em;
}

body.page-price-stabilization .hero p{
  color: rgba(255,255,255,0.92);
  line-height: 1.85;
}

/* CTAボタンの統一感UP */
body.page-price-stabilization .hero-cta .btn{
  box-shadow: none;
}
body.page-price-stabilization .hero-cta .btn:hover{
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

/* =========================
   セクション：余白と見出しの気持ちよさ
========================= */
body.page-price-stabilization .section{
  padding: 72px 0;
}

body.page-price-stabilization .section-support{
  background: transparent; /* 共通CSSの白背景を抑えて、交互に見せる */
}

body.page-price-stabilization .section-support:nth-of-type(even){
  background: #ffffff;
}

body.page-price-stabilization .section-support:nth-of-type(odd){
  background: #f3f5f4;
}

body.page-price-stabilization .section h2{
  position: relative;
  padding-left: 14px;
}

body.page-price-stabilization .section h2::before{
  content:"";
  position:absolute;
  left:0;
  top:0.25em;
  width: 6px;
  height: 1.15em;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(44,122,63,1), rgba(44,122,63,0.25));
}

/* リード文を読みやすく */
body.page-price-stabilization .support-lead{
  max-width: 820px;
  color: #333;
}

/* =========================
   カード：影と浮遊感
========================= */
body.page-price-stabilization .support-item,
body.page-price-stabilization .faq-item{
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.page-price-stabilization .support-item:hover,
body.page-price-stabilization .faq-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.10);
}

/* =========================
   図解：既存クラスをリッチに
========================= */
body.page-price-stabilization .price-stabilization-diagram{
  max-width: 740px;
  margin: 26px auto 0;
}

body.page-price-stabilization .diagram-step{
  border: 1px solid rgba(44,122,63,0.12);
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}

body.page-price-stabilization .diagram-step.step-risk{
  border-color: rgba(210,34,34,0.12);
}

body.page-price-stabilization .diagram-step.step-protect{
  border-color: rgba(44,122,63,0.12);
}

body.page-price-stabilization .diagram-step.step-safe{
  border-color: rgba(44,122,63,0.14);
}

body.page-price-stabilization .diagram-icon{
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.12));
}

/* =========================
   テーブル：スマートに見せる
   ※HTMLにインラインstyleを置いてるので、上書き用
========================= */
body.page-price-stabilization table{
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

body.page-price-stabilization thead tr{
  background: rgba(44,122,63,0.08) !important;
}

body.page-price-stabilization th{
  font-weight: 800;
  color: #1f3a26;
}

body.page-price-stabilization tbody tr:hover{
  background: rgba(44,122,63,0.06);
}

/* =========================
   CTA（最後の締めを“LPっぽく”）
========================= */
body.page-price-stabilization .section-cta{
  background: linear-gradient(
    135deg,
    rgba(44,122,63,0.10),
    rgba(44,122,63,0.04)
  );
}

body.page-price-stabilization .section-cta .container{
  max-width: 920px;
}

body.page-price-stabilization .section-cta h2{
  padding-left: 0;
}
body.page-price-stabilization .section-cta h2::before{
  display:none;
}

body.page-price-stabilization .section-cta .cta-buttons .btn-outline{
  background: rgba(255,255,255,0.94);
}

/* =========================
   スマホ最適化：余白とヒーロー
========================= */
@media (max-width: 768px){
  body.page-price-stabilization .hero{
    min-height: 56vh;
  }

  body.page-price-stabilization .hero-inner{
    padding-top: 24px; /* スマホはヘッダー固定解除されるので詰める */
    padding-bottom: 38px;
  }

  body.page-price-stabilization .section{
    padding: 56px 0;
  }

  body.page-price-stabilization .hero-text{
    padding: 1.1rem 1.1rem;
  }
}

/* =========================
   野菜価格安定補償制度：横フロー図解（LP用）
========================= */

.price-flow-diagram{
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  max-width: 1080px;
}

/* ステップカード */
.price-flow-step{
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 18px 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  text-align: center;
}

/* アイコン */
.price-flow-icon{
  font-size: 1.9rem;
  display: inline-block;
  margin-bottom: 6px;
}

/* 見出し */
.price-flow-step h4{
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}

/* 説明文 */
.price-flow-step p{
  margin: 0;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.6;
}

/* 矢印（PCのみ） */
.price-flow-arrow{
  display: none;
}

/* 状態ごとの色味 */
.price-flow-step.is-risk{
  background: linear-gradient(180deg, #fbf5f5, #ffffff);
  border-color: rgba(210,34,34,0.18);
}

.price-flow-step.is-check{
  background: linear-gradient(180deg, #f4f7fb, #ffffff);
  border-color: rgba(36,108,184,0.18);
}

.price-flow-step.is-support{
  background: linear-gradient(180deg, #f3f8f4, #ffffff);
  border-color: rgba(44,122,63,0.18);
}

.price-flow-step.is-safe{
  background: linear-gradient(180deg, #f1f7f2, #ffffff);
  border-color: rgba(44,122,63,0.28);
}

/* =========================
   PC：横フロー感を強調
========================= */
@media (min-width: 900px){
  .price-flow-diagram{
    grid-template-columns:
      minmax(0,1fr) 40px
      minmax(0,1fr) 40px
      minmax(0,1fr) 40px
      minmax(0,1fr);
  }

  .price-flow-arrow{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #2c7a3f;
    opacity: 0.6;
  }
}

/* =========================
   スマホ：縦フローに自動変形
========================= */
@media (max-width: 899px){
  .price-flow-diagram{
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
/* =========================
   数字カード（LP用）
========================= */

.stats-grid{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stat-card{
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 30px rgba(0,0,0,0.07);
  position: relative;
  overflow: hidden;
}

/* 上部アクセント帯 */
.stat-card::before{
  content:"";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, rgba(44,122,63,0.95), rgba(44,122,63,0.25));
}

.stat-label{
  margin: 0 0 8px;
  font-weight: 700;
  color: #2c7a3f;
  letter-spacing: 0.02em;
}

.stat-value{
  margin: 0 0 8px;
  font-weight: 900;
  font-size: clamp(2.0rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  color: #111;
}

.stat-note{
  margin: 0;
  font-size: 0.86rem;
  color: #555;
  line-height: 1.7;
}

/* 一番強調したいカード（村の負担） */
.stat-card.is-strong{
  background: linear-gradient(180deg, rgba(44,122,63,0.10), rgba(255,255,255,0.95));
  border-color: rgba(44,122,63,0.20);
}

.stat-card.is-strong::before{
  background: linear-gradient(90deg, rgba(44,122,63,1), rgba(44,122,63,0.35));
}

/* 小さめ注記 */
.mini-note{
  margin-top: 12px;
  font-size: 0.85rem;
  color: #666;
}

/* =========================
   レスポンシブ
========================= */
@media (max-width: 1024px){
  .stats-grid{
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================
   対象作物・期間：バッジカード（LP用）
========================= */

.target-grid{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.target-card{
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 30px rgba(0,0,0,0.07);
  position: relative;
  overflow: hidden;
}

.target-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:8px;
  background: linear-gradient(90deg, rgba(44,122,63,0.85), rgba(44,122,63,0.20));
}

/* 目立たせるカード（主要品目） */
.target-card.is-strong{
  background: linear-gradient(180deg, rgba(44,122,63,0.10), rgba(255,255,255,0.95));
  border-color: rgba(44,122,63,0.20);
}
.target-card.is-strong::before{
  background: linear-gradient(90deg, rgba(44,122,63,1), rgba(44,122,63,0.35));
}

.target-head{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.target-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(44,122,63,0.10);
  font-size: 1.35rem;
}

.target-title{
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
}

.target-period{
  margin: 0 0 8px;
  font-weight: 700;
  color: #222;
}

.target-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(44,122,63,0.10);
  color: #2c7a3f;
  font-size: 0.82rem;
  font-weight: 800;
  margin-right: 8px;
}

.target-note{
  margin: 0;
  font-size: 0.86rem;
  color: #555;
  line-height: 1.7;
}

/* レスポンシブ */
@media (max-width: 1024px){
  .target-grid{
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================
   加入条件：チェックリスト（LP用）
========================= */

.eligible-wrap{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.eligible-card{
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 30px rgba(0,0,0,0.07);
  position: relative;
  overflow: hidden;
}

.eligible-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:8px;
  background: linear-gradient(90deg, rgba(44,122,63,0.85), rgba(44,122,63,0.20));
}

.eligible-card.is-strong{
  background: linear-gradient(180deg, rgba(44,122,63,0.10), rgba(255,255,255,0.95));
  border-color: rgba(44,122,63,0.20);
}
.eligible-card.is-strong::before{
  background: linear-gradient(90deg, rgba(44,122,63,1), rgba(44,122,63,0.35));
}

.eligible-title{
  margin: 0 0 12px;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.35;
}

/* ✅ チェックリスト */
.checklist{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checklist li{
  position: relative;
  padding-left: 34px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #333;
}

.checklist li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 24px;
  height: 24px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(44,122,63,0.12);
  color: #2c7a3f;
  font-weight: 900;
}

/* ✅ 3ステップ */
.steplist{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.steplist li{
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(44,122,63,0.06);
  border: 1px solid rgba(44,122,63,0.10);
}

.step-no{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2c7a3f;
  color: #fff;
  font-weight: 900;
}

.step-text{
  font-size: 0.92rem;
  color: #222;
  line-height: 1.6;
}

.eligible-note{
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #666;
}

/* レスポンシブ */
@media (max-width: 1024px){
  .eligible-wrap{
    grid-template-columns: minmax(0, 1fr);
  }
}

/* FAQセクション（制度ページだけ少し強調） */
body.page-price-stabilization #faq-system .faq-item h3{
  font-size: 1rem;
  line-height: 1.45;
}

body.page-price-stabilization #faq-system .faq-item p{
  margin: 0;
  color: #444;
}
/* =========================
   このページはサイドバー無しで全幅表示
========================= */
body.no-sidebar .layout-with-sidebar{
  display: block;         /* flexを解除 */
  padding-top: 64px;      /* 固定ヘッダー分の余白は維持（スマホは共通CSSで解除される） */
}

body.no-sidebar .main-content{
  margin-left: 0 !important;  /* 260pxずれを解除 */
  width: 100%;
}

/* 念のため：サイドナビがHTMLに残ってても非表示 */
body.no-sidebar .side-nav{
  display: none !important;
}

/* =========================
   ヒーロー動画対応（このページだけ）
========================= */

/* 動画ヒーローでは背景グラデを弱める（動画が主役） */
body.page-price-stabilization .hero.hero-video{
  background: none;
}

/* 動画の上の暗幕を少し強めて文字を読みやすく */
body.page-price-stabilization .hero.hero-video .hero-video-overlay{
  background: linear-gradient(
    to bottom right,
    rgba(10,20,10,0.78),
    rgba(10,20,10,0.60)
  );
}

/* ガラス風ボックスはそのまま活かす（さらに読みやすく微調整） */
body.page-price-stabilization .hero.hero-video .hero-text{
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* 動画が重い端末向け：動きを減らす設定の人には動画を非表示 */
@media (prefers-reduced-motion: reduce){
  body.page-price-stabilization .hero.hero-video .hero-video-bg{
    display: none;
  }
  body.page-price-stabilization .hero.hero-video{
    background: linear-gradient(135deg, rgba(10,20,10,0.92), rgba(10,20,10,0.70));
  }
}