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

body {
  font-family: 'Noto Sans KR', sans-serif;
}

.first, .third{
  background-color: #f4f4f5;
}

.first, .fourth {
  align-content: center;
  vertical-align: middle;
  text-align: center;
}


/* 네비게이션 바 */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background-color: #ffffff;
}

nav a {
  color: #000;
  text-decoration: none;
}

nav li {
  list-style-type: none;
}

nav ul {
  list-style-type: none;
  display: inline;
  margin-left: 16px;
  word-break: keep-all;

  color: #000;
  font-style: normal;
  font-weight: 400;
  font-size: 14.5px;
}

nav > li a:hover {
  text-decoration: underline;
}

@media (min-width: 350px) {
  nav {
    padding: 14px 25px;
  }

  nav ul {
      font-size: 15px;
  }
}


/* 첫 번째 섹션 */
.first {
  padding: 8rem 25px;
}

.first > h1 {
  font-style: normal;
  font-weight: 700;
  font-size: 40px;
  color: #000000;
  margin-bottom: 8px;
  word-break: keep-all;
}

.first-detail {
  display: inline-block;
  margin-bottom: 24px;
  color: #71717a;
  font-style: normal;
  font-weight: 400;
  font-size: 17px;
  align-content: center;
  text-align: center;
}

.first button {
  padding: 9px 30px;
  text-align: center;
  background-color: #2e2e30;
  color: #ffffff;
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 10px;
}

.first > div > button > a {
  color: #fff;
  text-decoration: none;
}

.first div > button > a:hover {
  text-decoration: underline;
}

@media (min-width: 365px) {
  .first > h1 {
    font-size: 45px;
  }
}

@media (min-width: 420px) {
  .first > h1 {
    font-size: 50px;
  }

  .first-detail {
    font-size: 18px;
  }
}

@media (min-width: 768px) {
  .first > h1 {
    font-size: 55px;
  }

  .first-detail {
    font-size: 19px;
  }
}

/* 두 번째 섹션 */

#members {
  width: 100%;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

#members-container {
  width: 100%;
  max-width: 1400px;
  margin-right: auto;
  margin-left: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

#members h2 {
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 2.25rem;
  text-align: center;
  margin-bottom: 2rem;
}

#members-list {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.member {
  text-align: center;
  padding: 1rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  border-radius: 0.8rem;
  border-color: #e4e4e7;
  border-width: 1px;
  border-style: solid;
}

.member > img {
  object-fit: cover;
  border-radius: 9999px;
  margin-bottom: 1rem;
  max-width: 100%;
  height: auto;
  display: block;
}

.name {
  font-weight: 700;
  font-size: inherit;
}

.profile-title {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(240 3.8% 46.1%);
}


@media (min-width: 640px) {
  #members h2 {
      font-size: 2.25rem;
      line-height: 2.5rem;
  }
}

@media (min-width: 768px) {
  #members {
      padding-top: 6rem;
      padding-bottom: 6rem;
  }

  #members-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  #members h2 {
    font-size: 2.6rem;
    line-height: 1;
  }

  #members-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  #members {
      padding-top: 8rem;
      padding-bottom: 8rem;
  }

  #members-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* 세 번째 섹션 */
#about {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

#about-container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 1400px;
}

#about-container > div {
  display: grid;
  align-items: center;
  gap: 1.5rem;
}

.family-photo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  border-radius: calc(0.5rem + 4px);
  object-fit: cover;
  object-position: center;
  width: 100%;
}

#about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#about-text > h2 {
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: -0.05rem;
}

#story-detail {
  max-width: 600px;
  color: hsl(240 3.8% 46.1%);
  margin-top: calc(1rem + 1px);
  margin-bottom: calc(1rem + 1px);
}

@media (min-width: 640px) {
  #about-text h2 {
      font-size: 2.25rem;
      line-height: 2.5rem;
  }
}

@media (min-width: 768px) {
  #about {
      padding-top: 6rem;
      padding-bottom: 6rem;
  }

  #about-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  #story-detail {
    font-size: 1.25rem;
    line-height: 1.625;
  }
}

@media (min-width: 1024px) {
  #about {
      padding-top: 8rem;
      padding-bottom: 8rem;
  }

  #about-container > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }

  .family-photo {
      order: 9999;
  }

  #story-detail {
    font-size: 1rem;
    line-height: 1.625;
  }
}

@media (min-width: 1280px) {
  #story-detail {
      font-size: 1.25rem;
      line-height: 1.625;
  }
}


/* 네 번째 섹션 */
.fourth {
  padding: 8.3rem 30px;
}

.fourth > h2 {
  font-style: normal;
  font-weight: 700;
  font-size: 33px;
  color: #000000;
  margin-bottom: 10px;
  word-break: keep-all;
}

.fourth-detail {
  display: block;
  margin-bottom: 24px;
  color: #71717a;
  font-style: normal;
  font-weight: 400;
  font-size: 17px;
  align-content: center;
  text-align: center;
}

@media (min-width: 420px) {
  .fourth > h2 {
    font-size: 38px;
  }

  .fourth-detail {
    font-size: 18px;
  }
}

@media (min-width: 750px) {
  .fourth > h2 {
    font-size: 47px;
  }

  .fourth-detail {
    font-size: 20px;
  }
}

.fourth button {
  padding: 8px 27px;
  text-align: center;
  background-color: #2e2e30;
  color: #ffffff;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 7px;
}

.fourth > button > a {
  color: #fff;
  text-decoration: none;
}

.fourth button > a:hover {
  text-decoration: underline;
}

/* 최하단 푸터 */
footer {
  border-top: 1px solid #ccc;
  padding: 15px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#copyright, #termsofuse, #privacy {
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
}

footer li {
  list-style-type: none;
}

footer ul {
  list-style-type: none;
  display: inline;
}

#termsofuse {
  margin-right: 20px;
}

footer a {
  color: #000;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (min-width: 450px) {
  #copyright, #termsofuse, #privacy {
    font-size: 13px;
  }
}