/* ktnavi.jp ランディングページ スタイル */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

header {
  text-align: center;
  margin-bottom: 60px;
  padding-top: 40px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  /* color: #2c3e50; */
  color: #4a90e2;
  margin-bottom: 0;
}

.subtitle {
  font-size: 1.2rem;
  color: #7f8c8d;
  margin-bottom: 0;
}

.domain {
  font-size: 0.9rem;
  color: #95a5a6;
  font-weight: 400;
}

section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 2px solid #ecf0f1;
  padding-bottom: 15px;
}

.overview {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
}

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

.feature-card {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 25px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.feature-description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

.tech-stack {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 50px;
}

.tech-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.tech-item {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 15px;
  font-size: 0.9rem;
  color: #495057;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-direction: column;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tech-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tech-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.tech-item:hover .tech-icon {
  opacity: 1;
}

footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
  border-top: 1px solid #ecf0f1;
  color: #7f8c8d;
  font-size: 0.9rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

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

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

  .container {
    padding: 20px 15px;
  }

  header {
    margin-bottom: 40px;
    padding-top: 20px;
  }

  .overview {
    font-size: 1rem;
  }

  .tech-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .tech-item {
    padding: 12px;
    font-size: 0.85rem;
  }

  .tech-icon {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .feature-card {
    padding: 20px;
  }

  .tech-stack {
    padding: 20px;
  }

  .tech-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .tech-item {
    padding: 12px;
    font-size: 0.85rem;
  }

  .tech-icon {
    width: 36px;
    height: 36px;
  }
}

/* 404エラーページ用スタイル */
.error-container {
  text-align: center;
  padding: 80px 20px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: #e74c3c;
  line-height: 1;
  margin-bottom: 20px;
}

.error-message {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
}

.error-description {
  font-size: 1rem;
  color: #7f8c8d;
  margin-bottom: 40px;
  max-width: 500px;
}

.home-link {
  display: inline-block;
  padding: 12px 30px;
  background-color: #2c3e50;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.home-link:hover {
  background-color: #34495e;
}

@media (max-width: 768px) {
  .error-code {
    font-size: 6rem;
  }

  .error-message {
    font-size: 1.3rem;
  }

  .error-description {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .error-code {
    font-size: 4rem;
  }

  .error-message {
    font-size: 1.1rem;
  }

  .error-description {
    font-size: 0.9rem;
  }

  .home-link {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
}
