* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: sans-serif;
  color: #333;
  background-color: #f8f8f6;
  line-height: 1.8;
}

/* ナビゲーションメニュー */
header h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

header p {
  margin-top: 15px;
  color: #fff;
  letter-spacing: 0.05em;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 20px;
}

section {
  margin-bottom: 80px;
}

h2 {
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

h3 {
  margin-bottom: 5px;
  font-size: 20px;
  font-weight: 500;
}

/* フッター */
footer {
  padding: 30px;
  text-align: center;
  background-color: #333;
  color: #fff;
  font-size: 14px;
}

header {
  padding: 30px 50px 140px;
  background-image: url("./image/profile1.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero {
  text-align: center;
  margin-top: 130px;
}

.logo a {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  letter-spacing: 0.08em;
}

.nav-list {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.08em;
}


/* About */
section:first-child {
  background-color: #fff;
  padding: 50px 60px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

section:first-child h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
  color: #234567;
}

section:first-child h2::after {
  content: "";
  display: block;
  width: 45px;
  height: 2px;
  margin-top: 10px;
  background-color: #9bbbd3;
}

section:first-child p {
  margin: 0;
  color: #555;
  line-height: 2;
  letter-spacing: 0.04em;
}


/* Works */
.work-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.work-list>div {
  background-color: #fff;
  padding: 30px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:nth-child(2) img {
  width: 100%;
  display: block;
  margin-bottom: 20px;
  border-radius: 4px;
}

.work-list>div:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

section:nth-child(2) h3 {
  color: #234567;
  letter-spacing: 0.04em;
}

section:nth-child(2) p {
  margin-bottom: 20px;
  color: #777;
}

section:nth-child(2) a {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid #9bbbd3;
  border-radius: 20px;
  color: #234567;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

section:nth-child(2) a:hover {
  background-color: #234567;
  color: #fff;
}

@media (max-width: 768px) {

  /* ナビゲーション */
  header {
    padding: 30px 20px 100px;
  }

  nav {
    gap: 20px;
  }

  .nav-list {
    gap: 15px;
  }

  .nav-list a {
    font-size: 12px;
  }

  header h1 {
    font-size: 30px;
  }


  /* Works */
  .work-list {
    grid-template-columns: 1fr;
  }

  .work-list>div {
    padding: 20px;
  }

}