@charset "UTF-8";
html {
  font-size: 16px;
}

body {
  font-family: "Zen Old Mincho", serif;
}

a[href^="tel:"] {
  pointer-events: none;
}
@media screen and (max-width: 768px) {
  a[href^="tel:"] {
    pointer-events: auto;
  }
}

a {
  transition: opacity 0.3s;
}
a:hover {
  opacity: 0.7;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default padding */
ul,
ol {
  padding: 0;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Set core root defaults */
html {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Remove list styles on ul, ol elements with a class attribute */
ul,
ol {
  list-style: none;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  -webkit-text-decoration-skip: ink;
          text-decoration-skip-ink: auto;
}

a {
  text-decoration: none;
}

/* Make images easier to work with */
img {
  max-width: 100%;
  display: block;
  width: 100%;
}

/* Natural flow and rhythm in articles by default */
article > * + * {
  margin-top: 1em;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Blur images when they have no alt attribute */
img:not([alt]) {
  filter: blur(10px);
}

/* フォームリセット */
input,
button,
select,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  border-radius: 0;
  font: inherit;
  outline: none;
}

textarea {
  resize: vertical;
}

input[type=checkbox],
input[type=radio] {
  display: none;
}

input[type=submit],
input[type=button],
label,
button,
select {
  cursor: pointer;
}

select::-ms-expand {
  display: none;
}

.header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background-color: #F5EFE6;
}

.header__inner {
  display: flex;
  align-items: center;
  padding: 0 120px;
  height: inherit;
}
@media screen and (max-width: 1024px) {
  .header__inner {
    padding: 0 25px;
  }
}
@media screen and (max-width: 768px) {
  .header__inner {
    padding: 0 15px;
  }
}

.header__name {
  display: flex;
  align-items: center;
  margin-right: auto;
  height: inherit;
}

.header__name a {
  font-size: 24px;
  color: #333132;
  font-family: "Nunito", sans-serif;
  font-weight: 500;
}
@media screen and (max-width: 768px) {
  .header__name a {
    font-size: 21px;
  }
}

.header__nav {
  height: inherit;
}

.header__items {
  display: flex;
  align-items: center;
  height: inherit;
}

.header__item:not(:first-child) {
  margin-left: 65px;
}

.header__item {
  height: inherit;
}

.header__link {
  font-size: 16px;
  font-family: "Nunito", sans-serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  color: #333132;
  height: inherit;
}

.header__link:hover {
  color: #7895B2;
  opacity: 1;
}

.header__contact {
  margin-left: 65px;
}

.hamburger {
  position: fixed;
  z-index: 9999;
  top: 30px;
  right: 15px;
  width: 25px;
  height: 16px;
  cursor: pointer;
}

.hamburger.is-active {
  right: 20px;
}

.hamburger span {
  position: absolute;
  left: 0;
  display: inline-block;
  width: 100%;
  height: 2px;
  background-color: #7895B2;
  transition: transform 0.3s;
}

.hamburger span:first-child {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 8px;
  transition: opacity 0.3s;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

.hamburger.is-active span:first-child {
  top: 15px;
  transform: rotate(-45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  top: 15px;
  transform: rotate(45deg);
}

.drawer-menu {
  position: absolute;
  z-index: 5000;
  top: 0;
  left: 0;
  display: none;
  width: 100%;
  height: 100vh;
  background-color: #F5EFE6;
}

.drawer-menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: inherit;
}

.drawer-menu__items {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.drawer-menu__item {
  display: inline-block;
}

.drawer-menu__item:not(:first-child) {
  margin-top: 50px;
}

.drawer-menu__link {
  font-size: 16px;
  font-family: "Nunito", sans-serif;
  letter-spacing: 0.05em;
  color: #333132;
}

.drawer-menu__contact {
  margin-top: 50px;
}

.mv {
  width: 100%;
  height: 640px;
  background: linear-gradient(-20deg, #AEBDCA 0%, #7895B2 100%);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 75px;
}

.mv__inner {
  position: relative;
  width: 100%;
  height: inherit;
}

.mv__title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 48px;
  line-height: 1.375;
  letter-spacing: 0.05em;
  color: #fff;
  width: 100%;
  text-shadow: 3px 3px 6px #333132;
}
@media screen and (max-width: 768px) {
  .mv__title {
    font-size: 30px;
    line-height: 1.467;
  }
}

.mv__inner:before {
  border: 1px solid #fff;
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  display: inline-block;
  width: 80%;
  height: 80%;
}
@media screen and (max-width: 768px) {
  .mv__inner:before {
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
  }
}

.service__cards {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  -moz-column-gap: 35px;
       column-gap: 35px;
  row-gap: 45px;
}
@media screen and (max-width: 768px) {
  .service__cards {
    margin-top: 30px;
  }
}

.card__img {
  aspect-ratio: 4/3;
}

.card__title {
  margin-top: 30px;
  text-align: center;
  font-size: 18px;
  color: #333132;
  line-height: 1.562;
}
@media screen and (max-width: 768px) {
  .card__title {
    margin-top: 15px;
  }
}

.card__text {
  margin-top: 15px;
  font-size: 16px;
  color: #333132;
  line-height: 1.562;
}
@media screen and (max-width: 768px) {
  .card__text {
    margin-top: 15px;
  }
}

.works {
  margin: 100px 0 0 auto;
  background-color: #F5EFE6;
  max-width: calc(50vw + 600px);
}
@media screen and (max-width: 768px) {
  .works {
    margin: 50px 0 0 auto;
  }
}

.works__inner {
  padding-left: 80px;
}
@media screen and (max-width: 768px) {
  .works__inner {
    padding-left: 20px;
  }
}

.works__items {
  margin: 50px 0;
}
@media screen and (max-width: 768px) {
  .works__items {
    margin: 40px 0;
  }
}

.works-item__title {
  padding: 15px 0;
  font-size: 21px;
  text-align: center;
  color: #333132;
  background-color: #fff;
}
@media screen and (max-width: 768px) {
  .works-item__title {
    font-size: 16px;
  }
}

.swiper-pagination-bullet {
  background: #AEBDCA;
  height: 12px;
  margin: 0 10px !important;
  opacity: 1;
  position: relative;
  width: 12px;
  left: 0;
}
.swiper-pagination-bullet:focus {
  outline: none;
}
.swiper-pagination-bullet.swiper-pagination-bullet-active:after {
  border: solid 1px #7895B2;
  background-color: #7895B2;
  border-radius: 50%;
  content: "";
  display: block;
  height: 20px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  margin-bottom: 30px;
}

.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
  padding-bottom: 25px;
}

.works__button {
  margin-top: 130px;
}

.works__link {
  overflow: hidden;
  position: relative;
}

.works__link--mask {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.9);
  transition: all 0.6s ease;
}

.works__link--caption {
  font-size: 36px;
  color: #7895B2;
  text-align: center;
  margin-top: 50px;
}

.works__link:hover .works__link--mask {
  opacity: 1;
  padding-top: 80px;
}

.message__item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 50px 0;
}
@media screen and (max-width: 768px) {
  .message__item {
    flex-direction: column;
    margin: 30px 0;
  }
}

.message__item img {
  width: 28%;
}
@media screen and (max-width: 768px) {
  .message__item img {
    width: 50%;
    margin-bottom: 30px;
  }
}

.message__text {
  line-height: 1.6;
}

.message__text p span {
  color: #7895B2;
  font-weight: 700;
}

.message__text p + p {
  margin-top: 30px;
}
@media screen and (max-width: 768px) {
  .message__text p + p {
    margin-top: 20px;
  }
}

.price__table {
  width: 100%;
  border-collapse: collapse;
  margin: 50px 0;
}

.price__table th {
  position: relative;
  text-align: left;
  width: 30%;
  background-color: #F5EFE6;
  color: #333132;
  text-align: center;
  padding: 10px;
  font-size: 16px;
  vertical-align: middle;
}
@media screen and (max-width: 768px) {
  .price__table th {
    width: 100%;
    display: block;
  }
}

.price__table td {
  text-align: left;
  width: 35%;
  background-color: #F7F7F7;
  padding: 20px;
  font-size: 16px;
  vertical-align: middle;
}
@media screen and (max-width: 768px) {
  .price__table td {
    width: 100%;
    display: block;
    text-align: center;
  }
}

.price__table td:nth-of-type(2) {
  border-left: 1px solid #F7F7F7;
  text-align: center;
}

.price__table tr {
  border-bottom: solid 1px #fff;
}

.contact {
  width: 100%;
  height: 360px;
  background-image: url(/wp-content/themes/nzfactory_portfolio/images/contact-bg.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
@media screen and (max-width: 768px) {
  .contact {
    background-position: 40%;
  }
}

.contact__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: inherit;
}

.footer {
  padding: 30px;
  background-color: #F5EFE6;
}
@media screen and (max-width: 768px) {
  .footer {
    padding: 19.5px 15px;
  }
}

.footer__copyright {
  font-size: 14px;
  display: block;
  text-align: center;
  letter-spacing: 0.05em;
  color: #333132;
  font-family: "Nunito", sans-serif;
}

.inner {
  width: 100%;
  max-width: 1080px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 25px;
  padding-left: 25px;
}
@media screen and (max-width: 768px) {
  .inner {
    padding-left: 15px;
    padding-right: 15px;
  }
}

.unit {
  padding: 100px 0;
}
@media screen and (max-width: 768px) {
  .unit {
    padding: 80px 0;
  }
}

.heading {
  position: relative;
  font-size: 32px;
  font-weight: 700;
  padding-bottom: 35px;
  letter-spacing: 0.05em;
  color: #333132;
  text-align: center;
}
@media screen and (max-width: 768px) {
  .heading {
    font-size: 28px;
    padding-bottom: 30px;
  }
}

.heading span {
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  opacity: 0.1;
  font-size: 64px;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}
@media screen and (max-width: 768px) {
  .heading span {
    font-size: 48px;
    top: -15px;
  }
}

.heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 35px;
  height: 4px;
  border-radius: 3px;
  background-color: #7895B2;
}

.heading--left {
  text-align: left;
  display: inline-block;
  padding-left: 50px;
  padding-right: 50px;
}

.text {
  font-size: 16px;
  letter-spacing: 0.05rem;
  font-weight: 500;
  line-height: 1.875;
  color: #333132;
}
@media screen and (max-width: 768px) {
  .text {
    font-size: 14px;
  }
}

.contact-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 130px;
  padding: 15px;
  letter-spacing: 0.05em;
  color: #fff;
  font-family: "Nunito", sans-serif;
  border-radius: 4px;
  background-color: #7895B2;
  transition: background-color 0.3s;
}
.contact-button:hover {
  opacity: 0.9;
  color: #333132;
}

.contact-button.contact-button--wide {
  font-size: 20px;
  width: 290px;
  padding: 25px 15px;
}
@media screen and (max-width: 768px) {
  .contact-button.contact-button--wide {
    font-size: 18px;
    width: 260px;
  }
}

@media screen and (max-width: 768px) {
  .md-none {
    display: none;
  }
}

.md-show {
  display: none;
}
@media screen and (max-width: 768px) {
  .md-show {
    display: block;
  }
}

.eachTextAnime span {
  opacity: 0;
}

.eachTextAnime.appeartext span {
  -webkit-animation: text_anime_on 1s ease-out forwards;
          animation: text_anime_on 1s ease-out forwards;
}

@-webkit-keyframes text_anime_on {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes text_anime_on {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.page-works__mv {
  width: 100%;
  height: 260px;
  background: linear-gradient(-20deg, #AEBDCA 0%, #7895B2 100%);
  background-size: cover;
  margin-top: 75px;
}

.page-works__mv__inner {
  position: relative;
  width: 100%;
  height: inherit;
}

.page-works__mv__title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 48px;
  line-height: 1.375;
  letter-spacing: 0.05em;
  color: #fff;
  width: 100%;
  text-shadow: 3px 3px 6px #333132;
}

.page-works__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  -moz-column-gap: 35px;
       column-gap: 35px;
  row-gap: 80px;
}
@media screen and (max-width: 768px) {
  .page-works__cards {
    margin-top: 30px;
  }
}

.page-works__card__img {
  aspect-ratio: 4/3;
}
@media screen and (max-width: 768px) {
  .page-works__card__img {
    aspect-ratio: 0;
  }
}

.page-works__card__title {
  text-align: center;
  font-size: 16px;
  color: #333132;
  line-height: 1.562;
}
@media screen and (max-width: 768px) {
  .page-works__card__title {
    margin-top: 15px;
    text-align: left;
  }
}

.page-works__card__text {
  margin-top: 15px;
  font-size: 14px;
  color: #333132;
  line-height: 1.562;
  height: 70px;
}

.page-works__card__button {
  margin: 30px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 130px;
  padding: 10px;
  letter-spacing: 0.05em;
  color: #333132;
  font-size: 16px;
  font-family: "Nunito", sans-serif;
  border-radius: 4px;
  transition: background-color 0.3s;
  border: 1px solid #AEBDCA;
}
@media screen and (max-width: 768px) {
  .page-works__card__button {
    margin: 20px auto 0;
  }
}
.page-works__card__button:hover {
  opacity: 0.5;
  background-color: #AEBDCA;
}

.form__list {
  margin-top: 40px;
}

.form__name {
  font-size: 21px;
  color: #333132;
  font-family: "Zen Old Mincho", serif;
  line-height: 1.562;
}

.form__field + .form__field,
.form__acceptance {
  margin-top: 24px;
}

.form__required {
  color: #e20000;
}

.form__input,
.form__textarea {
  font-size: 14px;
  width: 100%;
  padding: 12px;
  border: 1px solid #7895B2;
  border-radius: 4px;
}

.form__submit-button {
  margin: 40px auto 0;
}

.form__submit-input {
  color: #fff;
}

.contact__buttons {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
@media screen and (max-width: 768px) {
  .contact__buttons {
    display: block;
  }
}

.contact__back-button {
  color: #333132;
  border: 1px solid #333132;
  background-color: #fff;
}

.form__submit-input:hover {
  color: #7895B2;
  opacity: 1;
  color: #333132;
}

.contact__text {
  margin-bottom: 40px;
  font-size: 28px;
  color: #e20000;
}
@media screen and (max-width: 768px) {
  .contact__text {
    font-size: 21px;
  }
}

.contact__item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
@media screen and (max-width: 768px) {
  .contact__item {
    display: block;
  }
}

.contact__term {
  width: 30%;
}

.page-contact-finish__text {
  text-align: center;
  font-size: 21px;
  color: #333132;
}
@media screen and (max-width: 768px) {
  .page-contact-finish__text {
    font-size: 18px;
  }
}

.wpcf7-spinner {
  display: none;
}

@media screen and (max-width: 768px) {
  .CF7_table tr, .CF7_table td, .CF7_table th {
    display: block;
    line-height: 2.5em;
    width: 100%;
  }
}
.wpcf7-mail-sent-ok {
  display: none !important;
}

.wpcf7-mail-sent-ok {
  display: none !important;
}

.fadeUp {
  -webkit-animation-name: fadeUpAnime;
  animation-name: fadeUpAnime;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

@-webkit-keyframes fadeUpAnime {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeUpAnime {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.fadeUpTrigger {
  opacity: 0;
}

.page-top-button {
  position: fixed;
  z-index: 9000;
  right: 50px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  background-color: #7895B2;
}
@media screen and (max-width: 768px) {
  .page-top-button {
    right: 20px;
  }
}

.page-top-button::after {
  position: absolute;
  top: 45%;
  left: 55%;
  width: 10px;
  height: 10px;
  content: "";
  transform: rotate(-45deg) translate(-50%, -50%);
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}