/* リセットとベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* ヘッダー */
header {
  background-color: #f8f9fa;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
  text-align: center;
  margin-bottom: 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

nav a:hover {
  color: #007bff;
}

/* メインコンテンツ */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

section {
  margin-bottom: 4rem;
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #2c3e50;
}

/* サービスセクション */
.service-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

article {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

article h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

/* お問い合わせフォーム */
form {
  max-width: 600px;
  margin: 0 auto;
}

form div {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
}

input,
textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

textarea {
  height: 150px;
  resize: vertical;
}

.contact-button {
  background: linear-gradient(45deg, #6366f1, #8b5cf6);
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
}

.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(99, 102, 241, 0.3);
  background: linear-gradient(45deg, #4f46e5, #7c3aed);
}

/* フッター */
footer {
  background: #f8f9fa;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

.accordion-item {
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  margin-bottom: 1rem;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.accordion-header {
  width: 100%;
  padding: 1.25rem;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #2c3e50;
  transition: all 0.3s ease;
}

.accordion-header:hover {
  background: rgba(99, 102, 241, 0.05);
}

.accordion-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: #2c3e50;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.25rem;
  opacity: 0;
  color: #64748b;
  line-height: 1.6;
}

.accordion-header[aria-expanded="true"]+.accordion-content {
  padding: 1rem 1.25rem 2.45rem;
  opacity: 1;
}

.accordion-icon {
  width: 12px;
  height: 12px;
  border-right: 2.5px solid #6366f1;
  border-bottom: 2.5px solid #6366f1;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-left: 1rem;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(-135deg);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .service-items {
    grid-template-columns: 1fr;
  }
}
