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

body {
  font-family: 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
}

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

header {
  background: #222;
  color: #fff;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: 20px;
}

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

.hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('images/profile.jpeg') center/cover no-repeat;
  color: white;
  padding: 180px 20px;
  /* ← 縦の余白を広げて高さを稼ぐ */
  text-align: center;
}

.hero h2,
.hero p {
  background: rgba(0, 0, 0, 0.5);
  /* 半透明の黒帯 */
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
  max-width: 90%;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
  /* テキストくっきり */
  margin-bottom: 20px;
}

.works .grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  flex: 1 1 calc(33.333% - 20px);
  /* PCでは3列 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.card a:hover h3 {
  text-decoration: underline;
}

.card img {
  max-width: 100%;
  border-radius: 6px;
}

.about {
  background: #fff;
}

.about-flex {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.about-image {
  flex: 1;
  max-width: 300px;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 2;
  min-width: 300px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
}


footer {
  text-align: center;
  padding: 30px 0;
  background: #eee;
}

/* スマホ向けレスポンシブ調整 */
.hamburger {
  display: none;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: #222;
    width: 100%;
    padding: 10px 0;
  }

  nav.open ul {
    display: flex;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1001;
  }

  .hamburger span {
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .hamburger span:nth-child(1) {
    top: 0;
  }

  .hamburger span:nth-child(2) {
    top: 9px;
  }

  .hamburger span:nth-child(3) {
    top: 18px;
  }

  .card {
    flex: 1 1 100%; /* ← 1列に変える（またはcalc(50% - 10px)で2列） */
  }
}