/* 
   hub.css?v=5 - standard-project.net Premium Hub Page Styles
   Dark Green Premium theme with glassmorphism.
   （ヘッダーロゴは白背景前提。ヒーロー以外はカード内文字に高コントラストを確保）
*/

:root {
  --bg-dark: #070B14;
  --bg-section-alt: #0B1120;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-hover: rgba(255, 255, 255, 0.10);
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.20);

  /* Accents */
  --accent-green: #22C55E;
  --accent-emerald: #10B981;
  --gradient-cta: linear-gradient(90deg, #22C55E, #16A34A);

  /* Category Colors */
  --cat-solar: #F59E0B;
  --cat-chikuden: #3B82F6;
  --cat-energy: #8B5CF6;
  --cat-smarthouse: #10B981;
  --cat-water: #06B6D4;

  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --font-jp: 'Noto Sans JP', sans-serif;
}

/* ===== BASE ===== */
body.hub-page {
  font-family: var(--font-jp);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* ===== LEGACY RESET ===== */
/* style.css の固定幅 (#wrapper, #bg, body など) を !important で上書き */
html.hub-page-html,
body.hub-page {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  margin: 0 !important;
}
.hub-page #wrapper.hub-wrapper,
.hub-page #bg {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  position: static !important;
}
/* ヘッダーは白背景・fixed で全幅固定 */
.hub-page #header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.hub-page #header .headcol {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  width: auto !important;
}
.hub-page #header ul {
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 60px;
  display: flex;
  align-items: center;
}
/* fixed header の分だけ body に padding を追加 */
body.hub-page {
  padding-top: 60px;
}

.hub-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ANIMATION ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  transition-delay: var(--delay, 0s);
}
.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TEXT GRADIENT ===== */
.text-gradient {
  background: linear-gradient(90deg, #4ADE80, #22C55E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
  overflow: hidden;
  background: url('../img/premium_eco_hero_bg.png') no-repeat center center;
  background-size: cover;
}

/* 画像の上に半透明グラデーション — 可読性確保しつつ画像を生かす */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 15, 8, 0.35) 0%,
    rgba(4, 15, 8, 0.50) 60%,
    rgba(4, 15, 8, 0.75) 100%
  );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 24px;
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 48px;
  line-height: 1.9;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #22C55E, #16A34A);
  color: #FFFFFF !important;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}
.hero-cta:hover {
  transform: translateY(-2px);

  box-shadow: 0 14px 28px rgba(34, 197, 94, 0.4);
}

/* ===== SERVICES GRID ===== */
.services-section {
  padding: 80px 0;
  background: #F8FAFC;
}

.section-title {
  color: #1E293B;
}
.section-desc {
  color: #64748B;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.site-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 28px 22px;
  text-decoration: none !important;
  color: #1E293B !important;
  transition: var(--transition-smooth);
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.site-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card-solar::before  { background: var(--cat-solar); }
.card-chikuden::before { background: var(--cat-chikuden); }
.card-energy::before { background: var(--cat-energy); }
.card-smarthouse::before { background: var(--cat-smarthouse); }
.card-water::before  { background: var(--cat-water); }

.site-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  border-color: #CBD5E1;
}
.site-card:hover::before {
  opacity: 1;
}

.card-icon-wrapper {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1E293B !important;
  margin-bottom: 10px;
}

.card-desc {
  color: #64748B !important;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ===== CROSS LINKS ===== */
.cross-links-section {
  padding: 80px 0;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.topics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.topic-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 12px 22px;
  border-radius: 50px;
  text-decoration: none !important;
  color: #1E293B !important;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.topic-item:hover {
  background: #22C55E;
  border-color: #22C55E;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.25);
}

/* ===== FAQ ===== */
.faq-section {
  padding: 80px 0 100px;
  background: #F8FAFC;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 24px 26px;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.faq-item:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.faq-q {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.q-mark {
  font-size: 1.2rem;
  font-weight: 900;
  color: #22C55E;
  line-height: 1.5;
  flex-shrink: 0;
}
.faq-q h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1E293B;
  margin: 0;
  line-height: 1.5;
}
.faq-a {
  padding-left: 30px;
}
.faq-a p {
  color: #64748B;
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}
.inline-link {
  display: inline-block;
  margin-top: 8px;
  color: #22C55E;
  font-weight: 600;
  text-decoration: none;
}
.inline-link:hover {
  text-decoration: underline;
  color: #16A34A;
}

/* ===== FOOTER ===== */
.hub-footer-wrapper {
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
}
.hub-page .copyright {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}
.hub-page .copyright p,
.hub-page .copyright p.copy {
  color: #64748B;
  font-size: 0.85rem;
  line-height: 1.7;
  text-align: center !important;
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* ヘッダー */
  body.hub-page {
    padding-top: 56px;
  }
  .hub-page #header ul {
    min-height: 56px;
  }

  /* ヒーロー */
  .hero-section {
    min-height: auto;
    padding: 60px 16px 48px;
  }
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.45;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 32px;
  }
  .hero-cta {
    padding: 14px 28px;
    font-size: 1rem;
  }

  /* セクションタイトル */
  .section-title { font-size: 1.5rem; }
  .section-desc  { font-size: 0.95rem; }

  /* カードグリッド → 1列 */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .site-card {
    padding: 22px 18px;
  }

  /* 目的から探す → 縦並び */
  .topics-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .topic-item {
    justify-content: flex-start;
    padding: 14px 20px;
    border-radius: 12px;
  }

  /* FAQセクション */
  .faq-section {
    padding: 60px 0 80px;
  }
  .faq-item {
    padding: 20px 18px;
  }
  .faq-q h3 {
    font-size: 1rem;
  }

  /* セクション間余白 */
  .services-section,
  .cross-links-section {
    padding: 60px 0;
  }

  .hub-container {
    padding: 0 16px;
  }
}
