main {
  width: 70%;
  margin: 5vw auto 0;
  padding-bottom: 5vw;
}

main h2 {
  width: 100%;
  font-size: 2.5vw;
  font-weight: 500;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
}

main h2 span {
  font-size: 2vw;
  font-weight: 500;
  color: #333;
}

main .catch-copy {
  font-size: 2.5vw;
  font-weight: 600;
  margin-top: 5vw;
  font-family: "Playfair Display", serif;
  text-align: center;
}

main h4 {
  text-align: center;
  font-size: 1.5vw;
  font-weight: 400;
  color: #444;
  margin-top: 5vw;
}

.job-links {
  display: flex;
  justify-content: center;
  gap: 3vw;
  margin-top: 5vw;
  margin-bottom: 3vw;
  list-style: none;
  padding: 0;
}

.job-links li a {
  background: linear-gradient(135deg, #ff6b6b, #f06595);
  color: white;
  padding: 1vw 2vw;
  border-radius: 2vw;
  text-decoration: none;
  font-size: 1vw;
  font-weight: bold;
  transition: 0.3s;
}

.job-links li a:hover {
  opacity: 0.8;
}

.job-section {
  margin-top: 5vw;
  margin-bottom: 5vw;
  scroll-margin-top: 5.5vw;
}

.job-section h3 {
  font-size: 1.5vw;
  margin-bottom: 2vw;
  color: #444;
  border-left: 1vw solid #f06595;
  padding-left: 2vw;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 1vw 2vw;
  border: 1px solid #ddd;
  text-align: left;
}

th {
  background-color: #f06595;
  color: white;
  font-weight: normal;
  width: 25%;
  font-size: 1vw;
}

td {
  background-color: #fff0f5;
  font-size: 1vw;
}

tr:nth-child(even) td {
  background-color: #ffe4ec;
}

#entry {
  background-color: #f0fdf4; /* 薄いグリーン */
  padding: 3vw;
  border-radius: 2vw;
}

#entry h3 {
  color: #2e7d32; /* 濃いめのグリーン */
  margin-bottom: 2vw;
  border-left: 1vw solid #2e7d32;
  padding-left: 1vw;
}

#entry table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 1vw;
  overflow: hidden;
}

#entry th,
#entry td {
  padding: 1vw 2vw;
  border-bottom: 1px solid #d0e9d4;
  text-align: left;
}

#entry th {
  background-color: #e0f2e9;
  color: #2e7d32;
  font-weight: normal;
  width: 30%;
  text-align: center;
}

#entry td {
  background-color: #ffffff;
}

#entry input[type="text"],
#entry input[type="tel"],
#entry input[type="email"],
#entry select,
#entry textarea {
  width: 100%;
  padding: 0.8vw;
  border: 1px solid #c8e6c9;
  border-radius: 0.5vw;
  background-color: #f9fff9;
  font-size: 1vw;
  margin: 1vw 0;
}

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

#entry textarea {
  resize: vertical;
}

#entry button[type="submit"] {
  background-color: #66bb6a;
  color: white;
  border: none;
  padding: 1vw 3vw;
  font-size: 1.2vw;
  border-radius: 1vw;
  cursor: pointer;
  transition: background-color 0.3s;
}

#entry button[type="submit"]:hover {
  background-color: #4caf50;
}

.birth-selects {
  display: flex;
  gap: 1vw;
}

.birth-selects select {
  flex: 1;
}

.required {
  color: red;
  font-size: 1vw;
}

@media screen and (orientation: portrait) {
  main {
    width: 90%;
    padding-bottom: 5vw;
  }

  main h2 {
    font-size: 5vw;
    margin: 10vw auto 0;
  }

  main h2 span {
    font-size: 4vw;
  }

  main .catch-copy {
    font-size: 4vw;
    margin-top: 8vw;
    font-weight: 600;
  }

  main h4 {
    font-size: 4vw;
    margin-top: 8vw;
    font-weight: 500;
  }

  .job-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 5vw;
    margin-bottom: 3vw;
  }

  .job-links li {
    margin: 2vw;
  }

  .job-links li a {
    padding: 2vw 4vw;
    border-radius: 5vw;
    font-size: 4vw;
  }

  .job-section {
    margin-top: 5vw;
    margin-bottom: 5vw;
    scroll-margin-top: 16vw;
  }

  .job-section h3 {
    font-size: 4vw;
    margin: 8vw 0 4vw;
    border-left: 2vw solid #f06595;
    padding-left: 2vw;
  }

  th,
  td {
    padding: 2vw 3vw;
  }

  th {
    font-size: 3vw;
  }

  td {
    font-size: 3vw;
  }

  #entry {
    margin-top: 20vw;
    padding: 5vw 3vw;
    border-radius: 4vw;
  }

  #entry h3 {
    margin-bottom: 4vw;
    border-left: 2vw solid #2e7d32;
    font-size: 4vw;
    padding-left: 2vw;
  }

  #entry th,
  #entry td {
    padding: 2vw 4vw;
    font-size: 3.5vw;
  }

  #entry input[type="text"],
  #entry input[type="tel"],
  #entry input[type="email"],
  #entry select,
  #entry textarea {
    padding: 2vw;
    border-radius: 2vw;
    font-size: 2vw;
    margin: 2vw 0;
  }

  #entry button[type="submit"] {
    padding: 3vw 4vw;
    font-size: 4vw;
    border-radius: 2vw;
    margin: 3vw auto;
  }

  .birth-selects {
    gap: 2vw;
  }

  .required {
    font-size: 3vw;
  }
}
