/* 共通スタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #f8f9fa;
  color: #333;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}
header {
  background: #001f3f;
  color: white;
  padding: 20px 0;
}
header h1 {
  text-align: center;
  margin-bottom: 10px;
}
nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 20px;
}
nav a {
  color: white;
  text-decoration: none;
}
.hero {
  text-align: center;
  padding: 40px 0;
  background-color: #e0f0ff;
}
.hero img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  margin-bottom: 20px;
}
.intro, .features, .services, .company-info, .contact-form {
  padding: 40px 0;
}
.features ul {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}
.features li {
  list-style: none;
  width: 250px;
  text-align: center;
}
.features img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.service-item {
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: left;
}
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
input, textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
button {
  padding: 10px;
  background: #001f3f;
  color: white;
  border: none;
  cursor: pointer;
}
footer {
  background: #001f3f;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 50px;
}

/* ===== レスポンシブ対応 ===== */

@media (max-width: 1024px) {
  nav ul {
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero img {
    max-height: 240px;
  }

  .features ul,
  .service-list {
    flex-direction: column;
    align-items: center;
  }

  .features li,
  .service-item {
    width: 100%;
    max-width: 500px;
  }

  .container {
    width: 95%;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 1.5rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .hero h2 {
    font-size: 1.25rem;
  }

  .page-title h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  .intro p,
  .service-item p,
  .company-info td,
  .contact-form p {
    font-size: 0.95rem;
  }

  .contact-form form {
    gap: 10px;
  }

  input,
  textarea {
    font-size: 0.95rem;
  }

  button {
    font-size: 1rem;
    padding: 10px 16px;
  }

  footer {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero img {
    max-height: 200px;
  }

  .hero h2 {
    font-size: 1rem;
    padding: 0 10px;
  }

  .features img,
  .features li img {
    width: 60px;
    height: 60px;
  }

  th,
  td {
    font-size: 0.85rem;
  }

  input,
  textarea {
    font-size: 0.85rem;
  }

  nav a {
    font-size: 0.9rem;
  }
}
