:root {
  --bg: #ffffff;
  --fg: #111111;
  --accent: #4f46e5;
  --soft-gray: #f5f5f5;
  --transition: 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0d;
    --fg: #f5f5f5;
    --soft-gray: #1a1a1a;
  }

  .work-card p {
    color: #fff !important;
  }
}

body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  transition: background-color var(--transition), color var(--transition);
}

a {
  color: var(--accent);
  text-decoration: none;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  background: var(--soft-gray);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.hero {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-content h2 {
  font-size: 2.5rem;
}

.hero-content .accent {
  color: var(--accent);
}

.section {
  padding: 60px 10%;
  max-width: 900px;
  margin: 0 auto;
}

.profile {
  text-align: center;
}

.profile img {
  max-width: 300px;
  margin: 60px 0 20px;
}

.profile-details {
  margin: 40px;
}

.profile-details p {
  text-align: left;
}

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

.work-card {
  display: block;
  background-color: var(--soft-gray);
  padding: 15px;
  border-radius: 8px;
  transition: transform 0.3s;
}

.work-card p {
  color: #333;
}

.work-card img {
  width: 100%;
  height: auto;
}

.work-card:hover {
  transform: translateY(-5px);
}

.skills-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills-list li {
  background-color: var(--soft-gray);
  padding: 10px 15px;
  border-radius: 20px;
}

.contact-button {
  display: inline-block;
  margin-top: 15px;
  background-color: var(--accent);
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  transition: background-color var(--transition);
}

.contact-button:hover {
  background-color: #3730a3;
}

.site-footer {
  text-align: center;
  padding: 20px 10%;
  background-color: var(--soft-gray);
  font-size: 0.9rem;
}

/* アニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}