@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;
}

/* セクション共通スタイル */
.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;
}

/* 使い方ガイド */
.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;
}

/* ニュースセクション */
.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,
  .guide-section,
  .faq-section,
  .news-section,
  .data-source-section {
    padding: 25px;
  }

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

  .intro-description {
    font-size: 1.1em;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .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,
  .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;
  }
}
