/* ===================================
   特定非営利活動法人 陽だまり
   共通スタイルシート
   =================================== */

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

:root {
  --primary:      #5A9E78;   /* セージグリーン */
  --primary-dark: #3D7A58;
  --primary-light:#E8F5EE;
  --secondary:    #7ABFB5;   /* ソフトティール */
  --green:        #5A9E78;
  --text:         #1E3530;   /* 深いグリーンダーク */
  --text-light:   #5A7870;   /* やわらかなグレーグリーン */
  --bg:           #F6FAF6;   /* 自然なオフホワイト */
  --bg-warm:      #FFF3EA;   /* あたたかいピーチクリーム */
  --bg-section:   #E8F2EC;   /* やわらかなセージ */
  --border:       #B8D4C4;   /* やさしいセージ罫線 */
  --radius:       8px;
  --shadow:       0 2px 16px rgba(60,120,80,0.10);
  --shadow-lg:    0 6px 32px rgba(60,120,80,0.14);
  --font-ja: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', 'Yu Gothic', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ja);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* --- コンテナ --- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* --- セクション共通 --- */
.section { padding: 72px 0; }
.section--warm {
  background: linear-gradient(rgba(235,248,242,0.32), rgba(228,245,238,0.34)),
              url('../bg-section-木漏れ日.png') center center / cover no-repeat;
  background-attachment: fixed;
}
.section--white {
  background: linear-gradient(rgba(245,252,248,0.72), rgba(240,250,244,0.72)),
              url('../bg-section-木漏れ日.png') center center / cover no-repeat;
  background-attachment: fixed;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 48px;
}

/* --- ヘッダー --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--primary-light);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.logo-text { line-height: 1.2; }
.logo-text .sub  { font-size: 10px; color: var(--text-light); letter-spacing: 0.5px; }
.logo-text .main { font-size: 17px; font-weight: 700; color: var(--text); }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover { background: var(--primary-light); color: var(--primary); }
.site-nav a.current { color: var(--primary); font-weight: 700; }

.nav-cta {
  margin-left: 8px;
  background: var(--primary) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 24px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  transition: background 0.2s, transform 0.1s !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }

/* ハンバーガーメニュー（モバイル） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* --- ヒーローセクション --- */
.hero {
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

/* スライダー背景 */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}
.hero-slider .slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255,255,255,0.82) 40%, rgba(255,255,255,0.10) 100%),
    linear-gradient(rgba(255,255,255,0.02), rgba(240,250,245,0.18));
  z-index: 1;
}
.hero > .container { position: relative; z-index: 2; }

.hero::before {
  content: '🌿';
  position: absolute;
  right: -40px;
  top: -40px;
  font-size: 260px;
  opacity: 0.06;
  line-height: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-title em {
  font-style: normal;
  color: var(--primary);
  position: relative;
}

.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 32px;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  border: none;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(60,120,80,0.30);
}
.btn--primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 6px 20px rgba(60,120,80,0.40); }

.btn--outline {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
}
.btn--outline:hover { background: var(--primary-light); color: var(--primary); }

.btn--green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 16px rgba(90,158,107,0.30);
}
.btn--green:hover { background: #488556; color: #fff; }

.btn--lg { padding: 18px 36px; font-size: 17px; }

/* ヒーロービジュアル */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.60);
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 4px 24px rgba(60,100,80,0.10);
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-card:first-child {
  grid-column: 1 / -1;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.72);
  color: var(--text);
}
.hero-card .icon { font-size: 36px; margin-bottom: 8px; }
.hero-card .label { font-size: 13px; font-weight: 700; color: var(--text); }
.hero-card:first-child .label { font-size: 15px; color: var(--text); }
.hero-card .num { font-size: 28px; font-weight: 700; color: var(--primary); }

/* --- 活動カード --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-icon-wrap {
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.card h3 { font-size: 17px; font-weight: 700; color: var(--text); }
.card p { font-size: 14px; color: var(--text-light); line-height: 1.8; }
.card-link {
  display: block;
  padding: 14px 24px;
  border-top: 1px solid #f0e8e0;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}
.card-link:hover { background: var(--primary-light); }

/* --- 理念 --- */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.philosophy-item {
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.philosophy-item h4 { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.philosophy-item p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* --- 寄付CTA --- */
.cta-section {
  background: linear-gradient(rgba(30,110,90,0.28), rgba(20,85,70,0.34)),
              url('../bg-cta-夕暮れの海.png') center center / cover no-repeat;
  background-attachment: fixed;
  padding: 72px 0;
  text-align: center;
  color: #fff;
}
.cta-section .section-title { color: #fff; }
.cta-section .section-lead { color: rgba(255,255,255,0.85); }

/* --- 法人情報テーブル --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.info-table th,
.info-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.info-table th { width: 180px; font-weight: 700; color: var(--text-light); white-space: nowrap; }
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }

/* --- 銀行振込ボックス --- */
.bank-box {
  background: var(--primary-light);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
}
.bank-box h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.bank-row { display: flex; gap: 16px; margin-bottom: 8px; font-size: 15px; }
.bank-row .key { width: 100px; color: var(--text-light); font-weight: 500; flex-shrink: 0; }
.bank-row .val { font-weight: 700; color: var(--text); }
.bank-caution { font-size: 13px; color: var(--text-light); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

/* --- 支援方法カード --- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.support-card {
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}
.support-card .icon { font-size: 40px; margin-bottom: 14px; }
.support-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.support-card p { font-size: 14px; color: var(--text-light); line-height: 1.8; }

/* --- お問い合わせフォーム --- */
.contact-form { max-width: 680px; margin: 0 auto; }
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.form-group label .required {
  color: #fff;
  background: #E05050;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-ja);
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 140px; }

/* --- フッター --- */
.site-footer {
  background: #2A1F15;
  color: rgba(255,255,255,0.8);
  padding: 56px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo .logo-icon { background: var(--primary); }
.footer-logo .main { color: #fff; }
.footer-logo .sub { color: rgba(255,255,255,0.6); }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.8; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.9); margin-bottom: 14px; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--secondary); }
.footer-contact p { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 2; }
.footer-safety {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 14px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* --- ページヘッダー（内部ページ用） --- */
.page-header {
  background: linear-gradient(rgba(255,255,255,0.20), rgba(235,248,242,0.22)),
              url('../bg-header-竹林の小道.png') center center / cover no-repeat;
  background-attachment: fixed;
  padding: 52px 0 44px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header .breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.page-header .breadcrumb a { color: var(--primary); }
.page-header .breadcrumb span { margin: 0 8px; }
.page-header h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 700; color: var(--text); }
.page-header p { font-size: 15px; color: var(--text-light); margin-top: 10px; }

/* --- ユーティリティ --- */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary);
  margin-right: 6px;
  margin-bottom: 6px;
}

/* ニュースリスト */
.news-list { list-style: none; }
.news-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.news-list li:last-child { border-bottom: none; }
.news-date { font-size: 13px; color: var(--text-light); white-space: nowrap; min-width: 90px; padding-top: 2px; }
.news-body a { font-size: 15px; color: var(--text); transition: color 0.2s; }
.news-body a:hover { color: var(--primary); }

/* --- 緊急退出ボタン --- */
.quick-exit-btn {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 9999;
  background: #1a6b3a;
  color: #fff;
  border: 3px solid #7fe87f;
  border-radius: 5px;
  padding: 10px 18px 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 14px rgba(40,180,80,0.7);
  transition: box-shadow 0.2s, transform 0.1s;
  animation: qe-glow 2s ease-in-out infinite;
  font-family: var(--font-ja);
}
.quick-exit-btn:hover {
  background: #155c30;
  box-shadow: 0 0 22px rgba(40,180,80,0.95);
  transform: scale(1.04);
}
@keyframes qe-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(40,180,80,0.7); }
  50% { box-shadow: 0 0 26px rgba(40,180,80,1); }
}

  50%      { box-shadow: 0 4px 28px rgba(192,57,43,0.75); }
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); z-index: 200; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 16px; border-radius: var(--radius); }
  .nav-cta { text-align: center; }
  .hamburger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .info-table th { width: 120px; }
}
