/*
Theme Name: Community Revitalization Theme
Description: 一般社団法人向け町おこし事業サイトテーマ - 緑系カラーで親しみやすく信頼感のあるデザイン
Version: 1.0
Author: Community Organization
*/

/* ===== カラープロファイル ===== */
:root {
  /* メインカラー（緑系） */
  --primary-green: #2E7D32;        /* 深緑 - メイン */
  --secondary-green: #66BB6A;      /* 明るい緑 - アクセント */
  --light-green: #E8F5E8;          /* 薄緑 - 背景 */
  --forest-green: #1B5E20;         /* フォレストグリーン - 濃いアクセント */
  
  /* サブカラー */
  --earth-brown: #8D6E63;          /* アースブラウン */
  --warm-beige: #FFF8E1;           /* ウォームベージュ */
  --soft-gray: #F5F5F5;            /* ソフトグレー */
  
  /* テキストカラー */
  --text-dark: #2C2C2C;            /* ダークグレー */
  --text-medium: #666666;          /* ミディアムグレー */
  --text-light: #999999;           /* ライトグレー */
  --text-white: #FFFFFF;           /* ホワイト */
  
  /* その他 */
  --border-color: #E0E0E0;         /* ボーダー */
  --shadow-light: rgba(0,0,0,0.1); /* ライトシャドウ */
  --shadow-medium: rgba(0,0,0,0.15); /* ミディアムシャドウ */
}

/* ===== リセット・基本設定 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic Medium', 'Meiryo', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--warm-beige);
}

/* ===== レイアウト ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ヘッダー ===== */
.site-header {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--forest-green) 100%);
  box-shadow: 0 2px 8px var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.site-logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-white);
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.main-nav a {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--secondary-green);
}

/* ===== メインコンテンツ ===== */
.hero-section {
  background: linear-gradient(rgba(46, 125, 50, 0.8), rgba(46, 125, 50, 0.8)), 
              url('images/hero-bg.jpg') center/cover;
  color: var(--text-white);
  text-align: center;
  padding: 100px 0;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px var(--shadow-medium);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: var(--secondary-green);
  color: var(--text-white);
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-light);
}

.cta-button:hover {
  background: var(--forest-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow-medium);
}

/* ===== セクション共通 ===== */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary-green);
}

/* ===== 事業紹介セクション ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: var(--text-white);
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: all 0.3s ease;
  border-top: 4px solid var(--secondary-green);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-medium);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 20px;
}

.service-title {
  font-size: 1.3rem;
  color: var(--primary-green);
  margin-bottom: 15px;
}

/* ===== お知らせセクション ===== */
.news-section {
  background: var(--light-green);
}

.news-list {
  background: var(--text-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-light);
}

.news-item {
  display: flex;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.news-item:hover {
  background-color: var(--light-green);
}

.news-date {
  background: var(--primary-green);
  color: var(--text-white);
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-right: 20px;
  white-space: nowrap;
}

.news-title {
  flex: 1;
  color: var(--text-dark);
  text-decoration: none;
}

.news-title:hover {
  color: var(--primary-green);
}

/* ===== フッター ===== */
.site-footer {
  background: var(--forest-green);
  color: var(--text-white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--secondary-green);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
  color: var(--text-white);
  text-decoration: none;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--secondary-green);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-light);
}

/* ===== レスポンシブデザイン ===== */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .news-date {
    margin-right: 0;
  }
}

/* ===== プログレス（進捗）表示パターン ===== */
.progress-section {
  background: var(--text-white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow-light);
  margin: 30px 0;
}

.progress-item {
  margin-bottom: 30px;
}

.progress-item:last-child {
  margin-bottom: 0;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-label {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 1rem;
}

.progress-percentage {
  font-weight: bold;
  color: var(--primary-green);
  font-size: 0.9rem;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background-color: var(--soft-gray);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary-green) 0%, var(--primary-green) 100%);
  border-radius: 6px;
  transition: width 1s ease-in-out;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 円形プログレス */
.circular-progress {
  width: 120px;
  height: 120px;
  position: relative;
  margin: 20px auto;
}

.circular-progress svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circular-progress .progress-circle {
  fill: none;
  stroke: var(--soft-gray);
  stroke-width: 8;
}

.circular-progress .progress-circle-fill {
  fill: none;
  stroke: var(--primary-green);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1s ease-in-out;
}

.circular-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-green);
}

/* ステップ式プログレス */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0;
  position: relative;
}

.step-progress::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 2px;
  background-color: var(--soft-gray);
  z-index: 1;
}

.step-progress-line {
  position: absolute;
  top: 20px;
  left: 20px;
  height: 2px;
  background: var(--primary-green);
  transition: width 1s ease-in-out;
  z-index: 2;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.step-number.completed {
  background: var(--primary-green);
  color: var(--text-white);
}

.step-number.current {
  background: var(--secondary-green);
  color: var(--text-white);
  box-shadow: 0 0 20px rgba(102, 187, 106, 0.5);
}

.step-number.pending {
  background: var(--soft-gray);
  color: var(--text-medium);
}

.step-label {
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-medium);
  max-width: 80px;
}

.step.completed .step-label {
  color: var(--primary-green);
  font-weight: 500;
}

.step.current .step-label {
  color: var(--secondary-green);
  font-weight: 500;
}

/* アニメーション付きプログレスカード */
.animated-progress-card {
  background: linear-gradient(135deg, var(--light-green) 0%, var(--text-white) 100%);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 30px var(--shadow-light);
  transition: transform 0.3s ease;
}

.animated-progress-card:hover {
  transform: translateY(-5px);
}

.progress-icon {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 20px;
}

.progress-title {
  font-size: 1.3rem;
  color: var(--primary-green);
  margin-bottom: 15px;
  font-weight: 600;
}

.progress-description {
  color: var(--text-medium);
  margin-bottom: 25px;
  line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .step-progress {
    flex-direction: column;
    gap: 30px;
  }
  
  .step-progress::before,
  .step-progress-line {
    display: none;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
  }
  
  .step-label {
    max-width: 120px;
  }
  
  .progress-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* ===== ユーティリティクラス ===== */
.text-center { text-align: center; }
.text-green { color: var(--primary-green); }
.bg-light-green { background-color: var(--light-green); }
.mb-30 { margin-bottom: 30px; }
.mt-30 { margin-top: 30px; }