@charset "UTF-8";

/* 全体のコンテナ */
.container-home {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fafafa;
  min-height: calc(100vh - 200px);
}

/* イントロセクション */
.intro-section {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 40px;
  text-align: center;
}

.welcome-title {
  color: #2c3e50;
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
}

.intro-description {
  font-size: 1.2em;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.feature-item {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  text-align: left;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: #e3f2fd;
  border-color: #3498db;
  transform: translateY(-2px);
}

.feature-item h3 {
  color: #2c3e50;
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-item p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* スタットバー */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 32px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
}

.stat-number {
  font-size: 2.4em;
  font-weight: 700;
  color: #3498db;
  line-height: 1;
}

.stat-plus {
  font-size: 0.6em;
  vertical-align: super;
}

.stat-label {
  font-size: 0.9em;
  color: #888;
  margin-top: 6px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: #ddd;
  flex-shrink: 0;
}

/* セクション共通スタイル */
.section-title {
  color: #2c3e50;
  font-size: 1.8em;
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 3px solid #3498db;
  padding-bottom: 10px;
}

.indicators-section,
.guide-section,
.faq-section,
.news-section,
.data-source-section {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

/* 経済指標カテゴリセクション */
.category-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.category-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.category-link:hover {
  transform: translateY(-3px);
}

.category-item {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.category-item:hover {
  background: #e3f2fd;
  border-color: #3498db;
}

.category-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-right: 20px;
  flex-shrink: 0;
}

.category-info h3 {
  color: #2c3e50;
  font-size: 1.1em;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.category-info p {
  color: #666;
  font-size: 0.9em;
  line-height: 1.4;
  margin: 0 0 6px 0;
}

.update-badge {
  display: inline-block;
  font-size: 0.75em;
  color: #888;
  background: #f0f4f8;
  border-radius: 4px;
  padding: 2px 6px;
}

/* 全指標マップセクション */
.all-indicators-section {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.all-indicators-intro {
  text-align: center;
  color: #666;
  font-size: 1.05em;
  margin-bottom: 30px;
}

.category-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.category-group {
  background: #fafafa;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #e8e8e8;
}

.group-title {
  font-size: 0.95em;
  font-weight: 700;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid;
}

.group-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.indicator-badge {
  display: inline-block;
  background: white;
  color: var(--badge-color, #555);
  border: 1px solid var(--badge-color, #ccc);
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 0.82em;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.indicator-badge:hover {
  background: var(--badge-color, #555);
  color: white;
}

/* 使い方ガイド */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.step-number {
  background: #3498db;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2em;
  margin-right: 15px;
  flex-shrink: 0;
}

.step-content h3 {
  color: #2c3e50;
  font-size: 1.1em;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.step-content p {
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.step-content a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.step-content a:hover {
  text-decoration: underline;
}

/* FAQ セクション */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.1em;
  cursor: pointer;
  padding: 10px 0;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 10px;
  font-size: 1.5em;
  font-weight: 300;
  color: #3498db;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: #666;
  line-height: 1.7;
  margin-top: 15px;
  padding-left: 15px;
  border-left: 3px solid #3498db;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 0 8px 8px 0;
}

/* 今週の発表予定ウィジェット */
.this-week-section {
  background: white;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.this-week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.view-calendar-link {
  font-size: 0.9em;
  color: #3498db;
  text-decoration: none;
  white-space: nowrap;
}

.view-calendar-link:hover {
  text-decoration: underline;
}

.this-week-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.this-week-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #2c3e50;
  background: #f8f9fa;
  transition: background 0.15s;
  font-size: 0.95em;
}

.this-week-item:hover {
  background: #eaf4ff;
  color: #2176ae;
}

.this-week-date {
  font-weight: 600;
  color: #555;
  min-width: 40px;
  font-size: 0.9em;
}

.this-week-badge {
  font-size: 0.75em;
  padding: 2px 8px;
  border-radius: 10px;
  color: white;
  font-weight: 500;
  white-space: nowrap;
}

.this-week-badge.freq-monthly   { background: #3498db; }
.this-week-badge.freq-quarterly { background: #27ae60; }
.this-week-badge.freq-annual    { background: #9b59b6; }
.this-week-badge.freq-daily     { background: #95a5a6; }

.this-week-name {
  flex: 1;
}

/* ニュースセクション */
.news-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-link:hover .news-item {
  background: #f8fbff;
}

.no-updates {
  text-align: center;
  color: #999;
  padding: 20px 0;
}

.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 25px 0;
  position: relative;
  display: flex;
  gap: 20px;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item .date {
  font-size: 14px;
  color: #999;
  margin: 0;
  background: #f0f0f0;
  padding: 5px 10px;
  border-radius: 20px;
  white-space: nowrap;
  align-self: flex-start;
}

.news-content {
  flex: 1;
}

.news-content h3 {
  color: #2c3e50;
  font-size: 1.1em;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.news-content p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.news-item .arrow {
  position: absolute;
  right: 0;
  top: 30px;
  font-size: 20px;
  color: #999;
}

/* データソースセクション */
.data-source-intro {
  text-align: center;
  color: #666;
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.source-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.source-item h3 {
  color: #2c3e50;
  font-size: 1.2em;
  font-weight: 600;
  margin: 0 0 15px 0;
}

.source-item ul {
  margin: 0;
  padding-left: 20px;
}

.source-item li {
  color: #666;
  line-height: 1.6;
  margin: 8px 0;
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
  .container-home {
    padding: 15px;
  }

  .intro-section,
  .indicators-section,
  .all-indicators-section,
  .guide-section,
  .faq-section,
  .news-section,
  .data-source-section {
    padding: 25px;
  }

  .welcome-title {
    font-size: 2em;
  }

  .stat-item {
    padding: 0 20px;
  }

  .stat-number {
    font-size: 2em;
  }

  .category-section {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .category-item {
    padding: 15px;
  }

  .category-item img {
    width: 50px;
    height: 50px;
  }

  .guide-steps {
    grid-template-columns: 1fr;
  }

  .guide-step {
    padding: 15px;
  }

  .step-number {
    width: 35px;
    height: 35px;
    font-size: 1.1em;
  }

  .news-item {
    flex-direction: column;
    gap: 10px;
  }

  .news-item .date {
    align-self: flex-start;
  }

  .source-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .container-home {
    padding: 10px;
  }

  .intro-section,
  .indicators-section,
  .all-indicators-section,
  .guide-section,
  .faq-section,
  .news-section,
  .data-source-section {
    padding: 20px;
  }

  .welcome-title {
    font-size: 1.7em;
  }

  .section-title {
    font-size: 1.5em;
  }

  .category-item {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .category-item img {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .guide-step {
    flex-direction: column;
    text-align: center;
  }

  .step-number {
    margin: 0 auto 15px auto;
  }
}
