body {
  font-family: "DM Serif Text", serif;
  color: #5f4019;
}
body.is-fixed {
  overflow: hidden;
}

.button {
  display: flex;
  align-items: center;
  padding: 6px 10px 6px 30px;
  width: 160px;
  margin: 0 auto;
}
.button--bg {
  background-color: #fff;
}
.button--bg .button__text {
  color: #83a6ff;
}
.button--border {
  border: 1px solid #fff;
}
.button--border .button__text {
  color: #fff;
}
.button__icon {
  width: 24px;
  display: flex;
  align-items: center;
}
.button__icon-path {
  fill: #fff;
}
.button__icon-path--contact {
  fill: #83a6ff;
}
.button__text {
  margin-left: 10px;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #fff;
}

.loading {
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #83a6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.loading.active {
  opacity: 1;
  visibility: visible;
}

@keyframes flashing {
  50% {
    opacity: 0.5;
  }
}
.loadingText {
  animation: 0.5s flashing infinite;
}

.header {
  background-color: #83a6ff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}
.header__container {
  width: 100%;
  position: relative;
}
.header__logo {
  display: inline-block;
  padding: 14px 24px;
  font-size: 20px;
  color: #fff;
}
.header__menu-button {
  border: none;
  position: absolute;
  top: 24px;
  right: 24px;
  width: 30px;
  height: 36px;
  overflow: hidden;
  color: transparent;
  background: url(../img/bg_menu.png) center center no-repeat;
  background-size: 100% auto;
}
.header__menu-button.is-checked {
  background: url(../img/bg_menu-close.png) center center no-repeat;
  background-size: 100% auto;
}
.header__contents {
  display: none;
  height: calc(100vh - 88px);
  border-top: 1px solid #fff;
  padding-top: 60px;
}
.header__nav-item + .header__nav-item {
  margin-top: 24px;
}

.fv {
  background: url(../img/MAITO\ KOGA2.JPG) no-repeat top center/cover;
  padding-block: 100px 200px;
}

.fv_content {
  top: 400px;
}

.fv_text-main {
  font-size: 50px;
  color: #ffeaed;
  text-shadow: 3px 3px 0px #fa8072;
}

.fv_text-sub {
  font-size: 30px;
  color: #ffeaed;
  text-shadow: 3px 3px 0px #f51818;
}

.section {
  padding: 48px 0;
}
.section__inner {
  padding: 0 32px;
}
.section__head {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}
.section__head--center {
  text-align: center;
}
.section__head-main {
  font-size: 40px;
  letter-spacing: 0.1em;
  border-bottom: 3px solid #5f4019;
}
.section__head-sub {
  font-size: 11px;
}
.section__lead-text {
  font-size: 16px;
  line-height: 1.6;
}
.section__contents {
  margin-top: 40px;
}

.skills {
  background: #ffffef;
}
.skills__img {
  text-align: center;
  margin-bottom: 32px;
}
.skills__img img {
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.15);
}
.skills__text {
  font-size: 16px;
  line-height: 1.6;
}

.works {
  background-color: #ffedee;
}
.works__item + .works__item {
  margin-top: 40px;
}
.works__item-img {
  text-align: center;
  margin-bottom: 12px;
}
.works__item-img img {
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.15);
}
.works__item-name {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 6px;
}
.works__item-link {
  text-decoration: underline;
  text-decoration-color: #5f4019;
  font-size: 14px;
}

.about {
  background: #ffffef;
}
.about__img {
  text-align: center;
  margin-bottom: 32px;
}
.about__img img {
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.15);
}
.about__text-contents {
  width: 80%;
}
.about__text {
  font-size: 16px;
  line-height: 1.6;
}
.about__text + .about__text {
  margin-top: 1em;
}

.about__head {
  margin-top: 40px;
  font-size: 20px;
  font-weight: bold;
}

.about__head-2 {
  font-size: 20px;
  font-weight: bold;
  margin-top: 10px;
}

.contact {
  padding-top: 60px;
  padding-bottom: 60px;
  background: #ffedee;
}

.section__head-main-contact {
  font-size: 40px;
  letter-spacing: 0.1em;
  display: flex;
  flex-direction: column;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .section__head-main-contact {
    font-size: 60px;
  }
}
.section__head-sub-contact {
  font-size: 11px;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .contact {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}
.contact__box {
  margin-left: 20px;
  margin-right: 20px;
  border-radius: 40px;
  background: #fff;
  padding: 60px 50px;
}

@media screen and (min-width: 768px) {
  .contact__box {
    margin-left: 100px;
    margin-right: 100px;
  }
}
.contact__form {
  margin-top: 30px;
}

@media screen and (min-width: 768px) {
  .contact__form {
    margin-top: 50px;
    max-width: 612px;
    margin-left: auto;
    margin-right: auto;
  }
}
.contact__fields {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact__privacy {
  margin-top: 29px;
  text-align: center;
}

.contact__button {
  text-align: center;
}

.submit__button {
  font-weight: 700;
  letter-spacing: 0.48px;
  padding: 8px 28px;
  display: inline-block;
  border: 2px solid #5f4019;
  background: #fff;
  font-size: 16px;
  line-height: 1.7;
  color: #5f4019;
  min-width: 150px;
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
  outline: none;
  margin-top: 29px;
  text-align: center;
  font-family: "DM Serif Text", serif;
}

.submit__button:hover {
  background-color: #fe7f9c;
  cursor: pointer;
}

@media screen and (min-width: 768px) {
  .submit__button {
    margin-top: 38px;
  }
}
@media screen and (min-width: 768px) {
  .form-field {
    display: flex;
    gap: 32px;
  }
}
.form-field__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media screen and (min-width: 768px) {
  .form-field__head {
    width: 180px;
    flex-shrink: 0;
    justify-content: flex-end;
  }
}
.form-field__label {
  font-weight: 700;
  line-height: 1.4375;
}

.form-field__tag {
  display: inline-block;
  border-radius: 2px;
  background: #fe7f9c;
  padding: 6px 8px 5px 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.98px;
}

.form-field__tag.is-option {
  background-color: #f5c3c2;
}

.form-field__item {
  margin-top: 15px;
  flex-grow: 1;
}

@media screen and (min-width: 768px) {
  .form-field__item {
    margin-top: 0;
  }
}
.form-text {
  width: 100%;
  border-radius: 5px;
  border: 3px solid #ffedee;
  background: #ffffef;
  padding: 12px 13px 11px;
  transition: border-color 0.3s;
}

.form-text:hover,
.form-text:focus {
  border-color: #f5c3c2;
  outline: none;
}

.form-select {
  appearance: none;
  width: 100%;
  border-radius: 5px;
  border: 3px solid #ffedee;
  background: #ffffef;
  font-weight: 700;
  padding: 12px 43px 11px 13px;
  background: url(../img/checkmark.png) no-repeat center right 14px/9.451px 6.969px;
  transition: border-color 0.3s;
}

.form-select:hover,
.form-select:focus {
  border-color: #f5c3c2;
  outline: none;
}

.form-textarea {
  border-radius: 5px;
  border: 3px solid #ffedee;
  background: #ffffef;
  width: 100%;
  height: 180px;
  padding: 13px;
  transition: border-color 0.3s;
}

.form-textarea:hover,
.form-textarea:focus {
  border-color: #f5c3c2;
  outline: none;
}

.form-field__radios {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

@media screen and (min-width: 768px) {
  .form-field__radios {
    flex-direction: row;
    gap: 30px;
  }
}
.form-checkbox:hover .form-checkbox__text::before {
  border-color: #f5c3c2;
}

.form-checkbox__input {
  width: 1px;
  height: 1px;
  position: absolute;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}

.form-checkbox__input:checked + .form-checkbox__text:after {
  opacity: 1;
}

.form-checkbox__input:focus + .form-checkbox__text::before {
  border-color: #f5c3c2;
}

.form-checkbox__text {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  font-weight: 700;
}

.form-checkbox__text::before,
.form-checkbox__text::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: border-color 0.3s;
}

.form-checkbox__text::before {
  width: 20px;
  height: 20px;
  border-radius: 1px;
  border: 1px solid #5f4019;
}

@media screen and (min-width: 768px) {
  .form-checkbox__text::before {
    margin-top: 2px;
  }
}
.form-checkbox__text::after {
  width: 23px;
  height: 17.53px;
  left: -1px;
  margin-top: -1.2px;
  background: url(../img/checkmark.png) no-repeat center center/contain;
  opacity: 0;
}

@media screen and (min-width: 768px) {
  .form-checkbox__text::after {
    margin-top: 0.8px;
  }
}
.form-checkbox__text a {
  text-decoration-line: underline;
  text-decoration-color: #5f4019;
  font-weight: 700;
  transition: color 0.3s;
}

.form-checkbox__text a:hover {
  color: #fe7f9c;
}

.footer {
  text-align: center;
  padding: 10px;
  background: #5f4019;
}
.footer__copylight {
  color: #fff;
  font-size: 11px;
}

@media screen and (min-width: 900px) {
  .wrapper {
    display: flex;
  }
  .main {
    flex-basis: 79.2%;
  }
  .header {
    position: relative;
    flex-basis: 20.8%;
    padding: 50px 20px;
  }
  .header__container {
    width: 160px;
    margin: 0 auto;
    position: sticky;
    top: 50px;
  }
  .header__logo {
    font-size: 30px;
    letter-spacing: 0.12em;
    line-height: 1;
  }
  .header__menu-button {
    display: none;
  }
  .header__contents {
    display: block;
    border: none;
  }
  .button {
    transition: background 0.3s, color 0.3s, opacity 0.3s;
  }
  .button:hover {
    background-color: #fff;
  }
  .button:hover .button__icon-path {
    fill: #5f4019;
  }
  .button:hover .button__text {
    color: #5f4019;
  }
  .button--bg {
    color: #5f4019;
  }
  .button--bg:hover {
    opacity: 0.7;
  }
  .section__inner {
    max-width: 944px;
    margin: 0 auto;
  }
  .section__head {
    margin-bottom: 24px;
  }
  .section__head-main {
    font-size: 60px;
  }
  .fv {
    position: relative;
    background-image: url(../img/MAITO\ KOGA2.JPG);
    padding-block: 250px 270px;
  }
  .fv_inner {
    margin-bottom: 230px;
  }
  .fv_content {
    position: absolute;
    top: 80px;
    left: 50px;
  }
  .fv_img {
    width: 100%;
  }
  .fv_img img {
    max-width: 1520px;
  }
  .fv_text-sub {
    color: #ffeaed;
    font-size: 40px;
    text-shadow: 3px 3px 0px #f51818;
  }
  .fv_text-main {
    font-size: 100px;
    color: #ffeaed;
    text-shadow: 3px 3px 0px #fa8072;
  }
  .skills {
    padding-top: 150px;
    padding-bottom: 180px;
  }
  .skills__container {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
  }
  .works {
    padding-top: 150px;
    padding-bottom: 180px;
  }
  .works__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8%;
  }
  .works__item + .works__item {
    margin-top: 0;
  }
  .about {
    padding-top: 150px;
    padding-bottom: 180px;
  }
  .about__container {
    display: flex;
    flex-direction: row;
    gap: 40px;
  }
  .swiper-slide img {
    width: 100%;
    max-height: 100px;
  }
}
@media screen and (min-width: 900px) and (min-width: 768px) {
  .swiper-slide img {
    height: 100px;
    width: 100px;
    max-height: 200px;
  }
}
@media screen and (min-width: 600px) and (max-width: 899px) {
  .section__head-main {
    font-size: 54px;
  }
  .fv {
    background: url(../img/MAITO\ KOGA2.JPG) no-repeat top center/cover;
    padding-block: 150px 230px;
  }
  .fv__contents {
    bottom: 50%;
    transform: translateY(50%);
  }
  .fv_text-main {
    font-size: 80px;
    color: #ffeaed;
    text-shadow: 3px 3px 0px #fa8072;
  }
  .fv_text-sub {
    color: #ffeaed;
    font-size: 50px;
    text-shadow: 3px 3px 0px #f51818;
  }
  .flow__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 16px;
  }
}
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s, transform 1s;
}
.fade-in-up.is-in-view {
  opacity: 1;
  transform: translateY(0);
}