/* ============================================
   環境への取り組みページ用CSS
   Lightning子テーマ - 株式会社無垢
   ============================================ */

.page-template-page-environmental {
  font-family: 'Noto Sans JP', sans-serif;
}

/* Hero Section (product-hero style) */
.page-template-page-environmental .product-hero {
  background: linear-gradient(rgba(44, 62, 80, 0.75), rgba(44, 62, 80, 0.75)),
              url('images/hero-company-green2.jpg') center/cover no-repeat;
  color: white;
  padding: 100px 0 80px;
  position: relative;
  z-index: 1;
}

.page-template-page-environmental .product-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  color: #fff;
}

.page-template-page-environmental .product-hero p {
  font-size: 20px;
  opacity: 0.95;
  font-weight: 300;
  color: #fff;
}

/* 既存のheroスタイル（互換性のため残す） */
.page-template-page-environmental .hero {
  padding: 80px 0;
}

.page-template-page-environmental .hero h1 {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
}

.page-template-page-environmental .hero p {
  color: #fff;
  font-size: 18px;
  opacity: 0.95;
}

/* Initiative Section - 各セクションの統一スタイル */
.page-template-page-environmental .initiative-section {
  padding: 80px 0;
  border-bottom: 1px solid #e8e8e8;
}

.page-template-page-environmental .initiative-section:last-of-type {
  border-bottom: none;
}

.page-template-page-environmental .initiative-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 24px;
  text-align: center;
}

.page-template-page-environmental .initiative-section h3 {
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
  margin: 32px 0 16px;
}

.page-template-page-environmental .initiative-section p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 16px;
}

.page-template-page-environmental .initiative-section ul {
  margin: 16px 0;
  padding-left: 24px;
}

.page-template-page-environmental .initiative-section li {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 12px;
}

/* Intro Section（既存スタイル - 互換性のため残す） */
.page-template-page-environmental .section {
  padding: 80px 0;
}

.page-template-page-environmental .section p {
  font-size: 18px;
  line-height: 2;
  color: #555;
  text-align: center;
}

/* Timeline - タイムライン表示 */
.page-template-page-environmental .timeline {
  position: relative;
  padding-left: 40px;
  margin: 32px 0;
}

.page-template-page-environmental .timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #27ae60;
}

.page-template-page-environmental .timeline-item {
  position: relative;
  margin-bottom: 32px;
  padding-left: 0;
}

.page-template-page-environmental .timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #27ae60;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #27ae60;
}

.page-template-page-environmental .timeline-item h3 {
  margin-top: 0;
}

/* Story Grid - ストーリーカードグリッド */
.page-template-page-environmental .story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.page-template-page-environmental .story-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.page-template-page-environmental .story-card img {
  width: 100%;
  height: auto;
  display: block;
}

.page-template-page-environmental .story-card-content {
  padding: 20px;
}

.page-template-page-environmental .story-card-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 12px 0;
}

.page-template-page-environmental .story-card-content p {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

/* Environmental Grid（会社概要ページ用 - 互換性のため残す） */
.environmental-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 48px 0;
}

.environmental-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.environmental-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.environmental-card .number {
  font-size: 48px;
  font-weight: 800;
  color: #337ab7;
  margin-bottom: 16px;
  line-height: 1;
  opacity: 0.8;
}

.environmental-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #2c3e50;
}

.environmental-card p {
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
  text-align: left;
  color: #666;
}

/* Button Styles */
.page-template-page-environmental .hero-btn {
  display: inline-block;
  padding: 20px 56px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  letter-spacing: 1.5px;
  position: relative;
  overflow: hidden;
}

.page-template-page-environmental .hero-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: width 0.4s ease;
}

.page-template-page-environmental .hero-btn:hover::before {
  width: 100%;
}

.page-template-page-environmental .hero-btn-primary {
  background: #337ab7;
  color: white;
  box-shadow: 0 2px 16px rgba(51, 122, 183, 0.3);
}

.page-template-page-environmental .hero-btn-primary:hover {
  background: #2563a0;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(51, 122, 183, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  /* Product Hero レスポンシブ */
  .page-template-page-environmental .product-hero h1 {
    font-size: 32px;
  }

  .page-template-page-environmental .product-hero p {
    font-size: 16px;
  }

  /* Initiative Section レスポンシブ */
  .page-template-page-environmental .initiative-section {
    padding: 60px 0;
  }

  .page-template-page-environmental .initiative-section h2 {
    font-size: 28px;
  }

  /* Story Grid レスポンシブ */
  .page-template-page-environmental .story-grid {
    grid-template-columns: 1fr;
  }

  /* 既存のheroスタイル（互換性のため残す） */
  .page-template-page-environmental .hero h1 {
    font-size: 32px;
  }

  /* Environmental Grid レスポンシブ */
  .environmental-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .environmental-card .number {
    font-size: 40px;
  }
}
