/*==========================
common
==========================*/
html {
  font-size: 62.5%;
}

body {
  font-size: 1.4rem;
  line-height: 1.857;
  font-family: 'Noto Serif JP', serif;
}

body.nav-open {
  overflow: hidden;
}

:root {
  --text-white: rgba(255, 255, 255, 0.7);
  --text-black: #3f3f3f;
  --bg-light-beige: #f2efef;
  --bg-beige: #cec5c0;
  --bg-brown: #5e5454;
  --contact-btn: rgba(135, 122, 122, 1);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.section {
  padding: 20px;
}
.mv.section {
  padding: 0;
}
@media (min-width: 769px) {
  .section {
    padding: 60px 0;
  }
  .mv.section {
    padding: 0;
  }
}

/*==========================
animation (アニメーション)
==========================*/
@keyframes fadeDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/*==========================
common title
==========================*/

.section-title {
  position: relative;
  padding-left: 14px;
  margin-bottom: 60px;
}
.instructor .section-title--right {
  position: relative;
  padding-left: 0px;
  margin-bottom: 0px;
}

@media (min-width: 769px) {
  .instructor .section-title--right {
    position: relative;
    margin-bottom: 60px;
  }
}
.section-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background-color: var(--text-black);
}
/* ===== modifier ===== */
.section-title--right {
  padding-left: 0;
  padding-right: 14px;
}
/* ===== modifier ===== */
.section-title--right::before {
  left: auto;
  right: 0;
}
/* ===== modifier ===== */
.section-title__num--right {
  display: block;
  text-align: right;
}

@media (min-width: 769px) {
  .section-title__num--right {
    display: block;
    text-align: left;
    padding-left: 16px;
  }

  /* ===== modifier ===== */
  .section-title--right::before {
    right: auto;
  }
}

.section-title__text {
  display: flex;
  flex-direction: column;
}
.section-title__en {
  font-size: 2.4rem;
  line-height: 1;
}

.section-title__jp {
  font-size: 1rem;
  margin-bottom: 18px;
}

@media (min-width: 769px) {
  .instructor .section-title__text {
    padding-left: 16px;
  }
}
/*==========================
common text-btn
==========================*/
.text-btn {
  display: flex;
  width: fit-content;
  margin: 60px 0 24px auto;
  gap: 66px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--text-black);
}

.text-btn--left {
  margin: 60px auto 24px 0;
}

/*==========================
header
==========================*/
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--text-white);
  z-index: 100;
}

.header__inner {
  margin: 60px 20px 0;
  display: flex;
  justify-content: space-between;
}

.header__logo {
  width: 142px;
}

.header__logo a {
  display: block;
}

.header__btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50px;
  gap: 7px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 300;
}

.header__btn span {
  display: block;
  height: 1px;
  width: 100%;
  background-color: var(--text-white);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.header__btn.is-open span:nth-of-type(1) {
  transform: translateY(8px) rotate(30deg);
}

.header__btn.is-open span:nth-of-type(2) {
  opacity: 0;
}
.header__btn.is-open span:nth-of-type(3) {
  transform: translateY(-8px) rotate(-30deg);
}

@media (min-width: 769px) {
  .header {
    height: 100vh;
  }
  .header__logo {
    margin-left: 30px;
    animation: fadeDown 1s ease-out forwards;
  }
  .header__btn {
    display: none;
  }
}
/*==========================
nav 初期状態
==========================*/
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  padding: 50px 20px;
  background-color: rgba(69, 62, 62, 0.9);
  transform: translateX(-100%);
  transition: transform 0.4s;
  z-index: 200;
}
/*==========================
nav アクティブ
==========================*/
.nav.active {
  transform: translateX(0);
}
.nav__list {
  padding: 100px 38px;
}
.nav__item {
  margin-bottom: 15px;
}
.nav__link {
  display: flex;
  align-items: baseline;
  padding: 5px 0;
}
.nav__num {
  font-size: 1.2rem;
  margin-right: 10px;
}
.nav__en {
  display: flex;
  flex: 1;
  align-items: flex-end;
  font-size: 2rem;
}
.nav__en::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--text-white);
  margin: 0 10px 8px;
  opacity: 0.3;
}
.nav__jp {
  font-size: 1.2rem;
}

@media (min-width: 769px) {
  .nav {
    position: absolute;
    background: none;
    height: auto;
    width: auto;
    top: auto;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
  }

  .nav__list {
    display: flex;
    gap: 26px;
    padding: 0;
    animation: fadeDown 4s ease-out forwards;
  }
  .nav__item {
    margin: 0;
    border-right: 1px solid var(--text-white);
    line-height: 1;
  }

  .nav__item:last-child {
    border-right: none;
  }
  .nav__num {
    display: none;
  }
  .nav__en {
    font-size: 1.6rem;
  }

  .nav__jp {
    display: none;
  }

  .nav__link {
    padding: 0 26px 0 0;
  }

  .nav__en::after {
    content: none;
  }
}
/*==========================
mv
==========================*/
.mv {
  position: relative;
  overflow: hidden;
}

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

  .mv__inner {
    display: flex;
    flex-direction: column-reverse;
    top: auto;
    left: auto;
    right: 45px;
    transform: none;
    top: 53px;
    line-height: 2.2;
    text-align: right;
  }

  .mv__title {
    font-size: 1.2rem;
  }

  .mv__text {
    font-size: 2.1rem;
  }
}
/*==========================
about
==========================*/

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

.about__row {
  display: flex;
}

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

.about__profile dd {
  width: 70%;
}

.about__profile dd:nth-of-type(3) {
  margin-bottom: 20px;
}

@media (min-width: 769px) {
  .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;
  }
}

/*==========================
service
==========================*/

.service {
  background-color: var(--bg-light-beige);
}

.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: 769px) {
  .service__row {
    display: flex;
    justify-content: center;
    gap: 40px;
  }
  .service__group {
    padding: 36px 24px;
  }
}

/*==========================
instructor
==========================*/

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

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

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

@media (min-width: 769px) {
  .section-title--right {
    order: -1;
    flex: 0 0 100%;
  }
  .instructor__image {
    flex: 0 0 274px;
    max-width: 100%;
    margin: 0;
  }
  .instructor__description {
    flex: 1;
  }
  .instructor__description {
    margin: 0;
  }
}
/*==========================
works
==========================*/

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

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

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

.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);
}

/*==========================
contact
==========================*/

.contact {
  text-align: center;
  color: var(--text-white);
  background-color: var(--bg-brown);
}

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

/*==========================
footer
==========================*/

.footer {
  padding: 50px 0 20px 0;
  text-align: center;
  color: var(--text-white);
  background-color: var(--bg-brown);
}
