/*====================================
top header
====================================*/

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: auto;
  padding: 40px 20px 0 20px;
}

@media (min-width: 768px) {
  .header {
    height: 100dvh;
  }
  .header__logo {
    margin-left: 30px;
  }
  .header__btn {
    display: none;
  }
}
/*====================================
top nav pc
====================================*/
@media (min-width: 768px) {
  .nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav__list {
    color: var(--text-white);
  }
}

/*====================================
top mv
====================================*/
.mv {
  position: relative;
  overflow: hidden;
  height: 100svh;
}

.mv::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.08) 40%, rgba(0, 0, 0, 0.18) 100%);
}

.mv__inner {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 50%;
  left: 21px;
  transform: translateY(-50%);
  color: var(--text-white);
  z-index: 2;
}
.mv__content {
  animation: fadeDown 1.2s ease-out forwards;
}
.mv__title {
  font-size: 1.4rem;
}
.mv__text {
  font-size: 1.8rem;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .mv {
    position: relative;
    height: 100vh;
  }
  .mv__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mv__inner {
    top: 40px;
    left: auto;
    right: 45px;
    transform: none;
    line-height: 1;
    text-align: right;
  }
  .mv__content {
    display: flex;
    flex-direction: column-reverse;
  }
  .mv__title {
    font-size: 1.2rem;
  }

  .mv__text {
    font-size: 2.1rem;
    line-height: 1.4;
    margin-top: -5px;
    margin-bottom: 8px;
  }
}
/*====================================
top mv animation
====================================*/

.mv__img {
  animation: mvZoomOut 3.5s ease-out forwards;
}

@keyframes mvZoomOut {
  0% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

/*====================================
top about
====================================*/

.about {
  background-color: var(--bg-about);
  color: var(--text-black);
}

.about__row {
  display: flex;
}

.about__profile {
  margin: 60px 0;
}

@media (min-width: 768px) {
  .about__profile {
    margin: 0;
  }
}
.about__profile dt {
  width: 30%;
}

.about__profile dd {
  width: 70%;
}

@media (min-width: 768px) {
  .about__container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 60px;
    margin-top: 60px;
  }

  .about__image {
    flex: 0 1 412px;
    max-width: 100%;
    height: 312px;
    overflow: hidden;
  }
  .about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 65%;
    transform: scale(1.3);
    transform-origin: left center;
  }
  .about__profile {
    flex: 1;
  }
}
/*====================================
top service
====================================*/

.service {
  background-color: var(--bg-service);
  color: var(--text-black);
}

.service__description {
  margin: 60px 0;
}

.service__group {
  padding: 16px 24px;
}
.service__row {
  border: 1px solid var(--text-black);
}

.service__group-title {
  margin: 24px 0 3px 0;
}

.service__group-title:nth-of-type(1) {
  margin-top: 0;
}

@media (min-width: 768px) {
  .service__row {
    display: flex;
    justify-content: center;
    gap: 40px;
  }
  .service__group {
    padding: 36px 24px;
  }
}
/*====================================
top instructor
====================================*/

.instructor {
  background-color: var(--bg-instructor);
  color: var(--text-black);
}
.instructor__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
  gap: 20px;
}
@media (min-width: 768px) {
  .instructor__content {
    align-items: flex-start;
    row-gap: 0;
    column-gap: 60px;
  }
}

.instructor__img {
  width: 50%;
}
.section-title--right {
  width: 40%;
}

.instructor__text {
  margin: 60px 10px 0 0;
}

@media (min-width: 768px) {
  .section-title--right {
    text-align: right;
    order: -1;
    flex: 0 0 100%;
  }
  .instructor__img {
    flex: 0 0 274px;
    max-width: 100%;
    margin: 0;
  }
  .instructor__text {
    flex: 1;
    margin: 0;
  }
}

/*====================================
top works
====================================*/

.works__list {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  padding: 0 20px;
}

.works {
  color: var(--text-white);
  background-color: var(--bg-works);
}

.works__item {
  text-align: center;
}

.works__item p {
  margin: 8px 0 20px 0;
}

.works .section-title::before {
  background-color: var(--text-white);
}

.works .text-btn {
  border-bottom: 1px solid var(--text-white);
}

@media (min-width: 768px) {
  .works__list {
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
  }
}

/*====================================
top contact
====================================*/
.contact {
  text-align: center;
  color: var(--text-white);
  background-color: var(--bg-works);
}

.contact__btn {
  display: inline-block;
  line-height: 45px;
  padding: 0 20px;
  background-color: var(--contact-btn);
}
