@charset "utf-8";
@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Rounded+M+PLUS+1c:wght@400;700&display=swap');

/* すべてのテキスト要素を丸ゴシに（超強制） */
body,
.page-template-decarbon,
.page-template-decarbon *,
.page-template-decarbon *::before,
.page-template-decarbon *::after {
  font-family: 'Corporate Logo Rounded', 'Meiryo', 'sans-serif' !important;
}



/* === ページ全体背景グラデーション === */
.page-template-decarbon body,
body.page-template-decarbon {
  font-family: sans-serif;
  margin: 0;
  background: linear-gradient(to bottom, #ffffff 0%, #f0f8f4 100%);
  color: #333;
}

/* === カード2列グリッド === */
.page-template-decarbon .card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 通常時は3列 */
  gap: 3rem;
  justify-content: center;
  margin: 2.5rem auto;
  max-width: 1400px;
  padding: 0 1.5rem;
  align-items: stretch;
}

/* 💡 FHD（1300px以下）では2列に切り替え */
@media (max-width: 1300px) {
  .page-template-decarbon .card-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 99vw;
  }
}

/* 💡 タブレット〜小型デバイス用（768px以下）では1列に */
@media (max-width: 768px) {
  .page-template-decarbon .card-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
    max-width: 98vw;
  }
}

/* 💡 モバイル特化（480px以下）では余白さらに狭める */
@media (max-width: 480px) {
  .page-template-decarbon .card-container {
    padding: 0 0.5rem;
    max-width: 100vw;
  }
}


/* === 写真付きグリーン帯カード === */
.page-template-decarbon .media-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.28s, transform 0.18s;
  border-left: 9px solid #81c784;
  height: 100%;
  width: 100%;
  min-height: 360px;
  max-width: 576px;
  margin: 0 auto;
}

/* 写真部分の設定 */
.page-template-decarbon .media-card-img {
  border-radius: 0;    /* 画像自体に角丸は不要（親で角丸を制御） */
  width: 100%;
  height: auto;
  object-fit: contain;
  background: linear-gradient(135deg, #f1f8e9 0%, #ffffff 100%);
  display: block;
  margin: 0;
}
/* 画像部分：スマホ表示設定*/
/* --- スマホ時 画像が絶対に切れない設定に修正 --- */
@media (max-width: 700px) {
  .page-template-decarbon .media-card-img {
    width: 100%;
    max-width: 100vw;
    height: auto;
    aspect-ratio: 2.5/1;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 0;
    background: linear-gradient(135deg, #f1f8e9 0%, #ffffff 100%);
  }
  .page-template-decarbon .media-card {
    max-width: 100vw;
    min-width: 0;
    margin: 0 auto;
  }
}


/* カードhover時のグラデ・ボーダーは文章部分だけ */
.page-template-decarbon .media-card:hover .media-card-content {
  background: linear-gradient(135deg, #e5faea 0%, #d0f4d7 100%);
}
.page-template-decarbon .media-card:hover {
  box-shadow: 0 12px 36px rgba(36, 120, 90, 0.19), 0 4px 12px rgba(0,0,0,0.10);
  transform: translateY(-7px) scale(1.025);
  border-left: 9px solid #43aa65;
}

/* 文章部分 */
.page-template-decarbon .media-card-content {
  padding: 32px 30px 26px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: linear-gradient(135deg, #f1f8e9 0%, #ffffff 100%);
  min-height: 120px;
  transition: background 0.22s;
  justify-content: space-between;
}

/* カード内の数字・タイトル・テキスト */
.page-template-decarbon .media-card-number {
  font-size: 2.3rem;
  font-weight: bold;
  color: #229955;
  margin-bottom: 1.1rem;
  line-height: 1.0;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(129,199,132,0.08);
}
.page-template-decarbon .media-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #155730;
  margin-bottom: 1.4rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  word-break: break-word;
}
.page-template-decarbon .media-card-text {
  font-size: 1.18rem;
  color: #377759;
  flex-grow: 1;
  margin-bottom: 2rem;
  line-height: 1.85;
}

.media-card-link {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
}
.media-card-link:hover .media-card {
  /* hover演出は今までのまま反映される */
}
.media-card-link:focus {
  outline: 2px solid #43aa65; /* キーボード操作でも視認性UP */
}

.page-template-decarbon .card-link {
  display: inline-block;
  font-size: 1.08rem;
  color: #16845d;
  font-weight: bold;
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.6em;
  transition: color .18s;
  z-index: 2;
  position: relative;
}
.page-template-decarbon .card-link:hover {
  text-decoration: underline;
  color: #1ba573;
}

/* --- キービジュアル --- */
.page-template-decarbon .kv {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  min-height: 340px;
  height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: none;
  z-index: 1;
}

.page-template-decarbon .kv-slideshow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100%;
  z-index: 0;
}
.page-template-decarbon .kv-slide-img {
  width: 100vw;
  height: 100%;
  object-fit: cover;
  position: absolute;
  left: 0; top: 0;
  opacity: 0;
  transition: opacity 1s;
  z-index: 0;
}
.page-template-decarbon .kv-slide-img.active {
  opacity: 1;
  z-index: 1;
}

.page-template-decarbon .kv-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none !important;
  box-shadow: none !important;
  border-radius: 0;
  width: 92vw;
  max-width: 2000px;        /* 2枚分のカード幅に拡大 */
  min-width: 700px;
  padding: 2rem 2rem 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  max-width: 100vw;
  width: 100vw;
  padding-left: 2vw;
  padding-right: 2vw;
  box-sizing: border-box;
}

.page-template-decarbon .kv-content h1 {
  color: #fff !important;
  text-shadow: 0 4px 32px rgba(0,0,0,0.35), 0 1px 2px #222;
  font-size: clamp(2.1rem, 7vw, 5.0rem); /* ←画面幅で自動拡縮 */
  margin-bottom: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.08;
  word-break: break-word;
  white-space: normal;
  overflow-wrap: break-word;
}

.page-template-decarbon .kv-content p {
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0,0,0,0.38);
  font-size: clamp(1.1rem, 4vw, 3.0rem); /* ←画面幅で自動拡縮 */
  margin-bottom: 1.7rem;
  line-height: 1.22;
  font-weight: 500;
  word-break: break-word;
  white-space: normal;
  overflow-wrap: break-word;
}
.page-template-decarbon .kv-content a.btn {
  background: #207e4c;
  color: #fff;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.7em;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgba(22,94,66,0.08);
  text-decoration: none;
  transition: background 0.18s, color 0.17s;
  margin-top: 1.1rem;
  padding: 0.75em 2.7em;
}
.page-template-decarbon .kv-content a.btn:hover {
  background: #43aa65;
  color: #fff;
}
@media (max-width: 700px) {
  .page-template-decarbon .kv-content h1,
  .page-template-decarbon .kv-content p {
    font-size: min(7vw, 2.0rem);
    /* 2.0rem以下のときは7vwまで縮む */
  }
  .page-template-decarbon .kv-content {
    padding-left: 4vw;
    padding-right: 4vw;
    width: 100vw;
    max-width: 100vw;
  }
}



/* ==== グローバルナビ/ヘッダーを常に最前面に ==== */
header,
.site-header,
#header,
nav,
.global-nav,
.gnav,
#gnav {
  position: relative !important;
  z-index: 20000 !important;
}

/* ドロップダウンnavの子要素も最前面（必要なら） */
nav ul,
.global-nav ul,
.gnav ul,
#gnav ul {
  position: relative !important;
  z-index: 20001 !important;
}

/* ==== decarbon（kv等）はz-index低めにする ==== */
.page-template-decarbon .kv,
.page-template-decarbon .kv-content,
.page-template-decarbon .kv-slideshow,
.page-template-decarbon .kv-slide-img {
  z-index: 1 !important;
}


/* --- その他ユーティリティ --- */
.page-template-decarbon .clr { clear: both; }
.page-template-decarbon .m40 { margin: 40px 0; }
.page-template-decarbon .m60 { margin: 60px 0; }

section.decarbon-feature {
  max-width: 1534px !important; /* 960×2/3≒640、今の幅の1.5～1.7倍でオレンジ余白が2/3に */
  margin-left: auto !important;
  margin-right: auto !important;
  /* すでにmargin-top/bottomがある場合はそれを維持 */
}


/* リード文＋お知らせエリア */
.lead-news-wrap {
  display: flex;
  gap: 2.4rem;
  justify-content: center;
  align-items: flex-start;
  margin: 56px auto 64px auto;
  max-width: 1240px; /* カード2枚分の幅（必要に応じて調整！） */
  width: 96vw;
  z-index: 2;
  box-sizing: border-box;
}

.lead-board {
  background: #c0aa8e url('https://www.transparenttextures.com/patterns/wood-pattern.png');
  background-size: 480px;
  border-radius: 22px;
  box-shadow: 0 2px 16px rgba(60, 40, 0, 0.11);
  padding: 2.6rem 2.3rem 2.2rem 2.3rem;
  border: 4px solid #b49b7a;
  display: flex;
  flex-direction: column;
  flex: 4 0 0%;      
  min-width: 260px;
  max-width: 100%;
  box-sizing: border-box;
}
.lead-board-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #67430d;
  margin-bottom: 0.5em;
  letter-spacing: 0.04em;
}
.lead-board-text {
  font-size: 2.0rem;
  color: #574117;
  line-height: 1.9;
}

.news-list-board {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(70,90,80,0.09);
  padding: 2rem 1.2rem 1.7rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 6 0 0%;     
  min-width: 320px;
  max-width: 100%;
  box-sizing: border-box;
}


.news-list-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #238b2c;
  margin-bottom: 0.7em;
  letter-spacing: 0.04em;
  padding-left: 0.25em;
}
.news-list {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0.92rem 0;
  margin-bottom: 0.6em;
}
.news-card {
  display: flex;
  gap: 0.9em;
  align-items: flex-start;
  background: #f7fcfa;
  border-radius: 13px;
  box-shadow: 0 1px 8px rgba(45,90,70,0.07);
  padding: 0.92em 1em 0.88em 1em;
  transition: box-shadow 0.16s;
}
.news-card:hover {
  box-shadow: 0 8px 22px rgba(60,110,80,0.10), 0 2px 6px rgba(60,80,80,0.09);
}
.news-card-img img {
  width: 100%; 
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #ddd;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  flex-shrink: 0;
  display: block;
  margin: 0 auto;
}
.news-card-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  flex-grow: 1;
}
.news-card-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6em; 
}

.news-card-date {
  font-size: 1.5em;
  color: #6a9980;
  margin-bottom: 0.18em;
  letter-spacing: 0.07em;
}
.news-card-title {
  color: #207e4c;
  font-size: 2.0em;
  font-weight: bold;
  line-height: 1.55;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.17s;
}
.news-card-title:hover {
  color: #125938;
  text-decoration: underline;
}

.news-card-category {
  display: inline-block;
  padding: 0.15em 0.9em;
  border-radius: 12px;
  font-weight: bold;
  margin-left: 0.7em;
}

.news-card-category.cat-co2_interview {
  background: #e2f5ff;
  color: #0082ca;
}

.news-card-category.cat-sumpo-epd {
  background: #ffe2ef;
  color: #c82155;
}

.news-card-category.cat-co2_column {
  background: #e6f2a2;
  color: #217519;
}

/* デフォルト色（未指定カテゴリ用） */
.news-card-category:not([class*="cat-"]) {
  background: #ebeccf;
  color: #27613a;
}


.news-card-date,
.news-card-category {
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 0;
}

.news-list-more {
  text-align: right;
  margin-top: 0.3em;
}
.news-list-more a {
  font-size: 1.5em;
  color: #207e4c;
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.18s;
}
.news-list-more a:hover {
  color: #125938;
}

/* --- スマホ：1カラムで幅をカード1枚分に --- */
@media (max-width: 1000px) {
  .lead-news-wrap {
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
    max-width: 98vw;
    width: 100vw;
    margin-left: auto;
    margin-right: auto;
  }
  .lead-board,
  .news-list-board {
    width: 98vw !important;
    max-width: 576px !important;  /* ← カードと同じ */
    min-width: 0 !important;
    box-sizing: border-box;
  }
}


/* レスポンシブ */
@media (max-width: 1100px) {
  .lead-news-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 2.2rem;
    width: 99vw;
  }
  .lead-board, .news-list-board {
    max-width: 99vw;
    width: 98vw;
    margin: 0 auto;
  }
}
/* お知らせエリアのボタンも共通で緑に */
.news-list-more .btn.news-btn {
  display: inline-block;
  background: #207e4c;
  color: #fff;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.08em;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgba(22,94,66,0.08);
  text-decoration: none;
  transition: background 0.18s, color 0.17s;
  margin-top: 0.6rem;
  padding: 0.5em 2.2em;
}
.news-list-more .btn.news-btn:hover {
  background: #43aa65;
  color: #fff;
}


