@import url('https://fonts.googleapis.com/css2?family=Zen+Antique&display=swap');

/* pc */
/* ヘッダー */
header {
  position: fixed;
  width: 100%;
  height: 88px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(3px);
  top: 0;
  left: 0;
  box-shadow: 0 1px 4px #c8c8c8;
  z-index: 999;
}

.header__wrapper {
  max-width: 1200px;
  width: 100%;
  padding: 10px 0;
  margin: 0 auto;
}

.header__logo-img {
  margin-left: 20px;
}
/* ヘッダー終わり */

/* メインコンテンツ */

body {
  font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 300;
  font-style: normal;
  line-height: 1.5;
}

main {
  width: 100%;
  color: #2a0e3e;
  background-image: url(../images/bg_main_under.png);
  background-size: 1280px auto;
  background-position: left calc(50% + 832px) bottom -40px;
  background-repeat: no-repeat;
}

.section {
  max-width: 948px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.br-sp {
  display: none;
}

.section__title {
  text-align: center;
  font-size: 35px;
  font-weight: 400;
  margin-bottom: 60px;
  font-family: 'Zen Antique', serif;
  font-style: normal;
}

/* メインビジュアル */
.mainvisual {
  width: 100%;
  max-width: 100%;
  height: 835px;
  background-image: url(../images/bg_mainvisual.png);
  background-repeat: no-repeat;
  background-size: min(205%, 2080px);
  background-position: 52% 74%;
  color: #301544;
  opacity: 0;
  animation: fadeIn 3s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
.mainvisual__spacer {
  padding-left: 37px;
}

.mainvisual__head {
  padding-top: 220px;
  text-align: center;
  font-size: 35px;

  font-family: 'Zen Antique', serif;
  font-weight: 400;
  font-style: normal;
}
.mainvisual__subhead {
  text-align: center;
  font-size: 16px;
  padding-top: 40px;
}

/* サービス */
.service {
  padding: 0 24px;
}
.service__content {
  display: grid;

  grid-template-columns: 1fr 1fr;
  row-gap: 100px;
  column-gap: clamp(24px, 3vw, 52px);
  margin-bottom: 170px;
}

.service__item {
  text-align: center;
}
.service__img {
  max-width: 424px;
  width: 100%;
  height: auto;
  aspect-ratio: 425 / 268;
}
.service__name {
  font-size: 22px;
  margin: 20px 0 24px;
}
.service__desc {
  text-align: left;
  font-size: 16px;
}
.br-tab {
  display: none;
}
.service__br {
  display: inline-block;
}

/* 会社概要 */
.overview {
  width: fit-content;
}
.overview__content {
  margin: 0 auto;
  margin-bottom: 170px;
}
.overview__item {
  display: flex;
  margin-bottom: 31px;
}
.overview__name {
  width: 162px;
  font-size: 20px;
  font-weight: 600;
}
.overview__desc {
  white-space: nowrap;
  font-size: 20px;
}

/* お問い合わせ */
.contact {
  text-align: center;
  padding-bottom: 188px;
}

.contact__desc {
  font-size: 20px;
  line-height: 1.2;
}
.contact__mail {
  font-size: 20px;
  margin-top: 30px;
  line-height: 1.2;
}

/* メインコンテンツ終わり */

/* フッター */
footer {
  width: 100%;
  height: auto;
  margin-bottom: 26px;
  color: #2a0e3e;
}

.footer__wrapper {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  height: 100%;
  text-align: right;
  margin-right: 48px;
  vertical-align: middle;
}

.footer__privacy-policy {
  color: #2a0e3e;
  transition: opacity 0.3s;
  order: 2;
}

.footer__privacy-policy:hover {
  opacity: 0.6;
}

.footer__copyright {
  margin-right: 16px;
  order: 1;
}

.footer__copyright::after {
  content: '|';
  margin-left: 16px;
}
/* フッター終わり */
/* pc終わり */

/* コマ幅可変　改行調整 */
@media screen and (max-width: 862px) {
  .br-tab {
    display: block;
  }
}

/* sp */
@media screen and (max-width: 680px) {
  /* ヘッダー */
  header {
    height: 70px;
  }
  .header__wrapper {
    width: 100%;
    text-align: center;
  }
  .header__logo-img {
    width: 180px;
    height: 44px;
    margin-left: -18px;
  }
  /* ヘッダー終わり */

  /* メインコンテンツ */
  main {
    padding-bottom: 86px;
    background-image: url(../images/bg_main_under.png);
    background-size: 520px auto;
    background-position: left calc(50% + 160px) bottom -118px;
    background-repeat: no-repeat;
  }

  .section {
    padding: 0 10px;
  }
  .br-sp {
    display: block;
  }
  /* メインビジュアル */
  .mainvisual {
    padding: 0;
    height: 432px;
    background-image: url(../images/bg_mainvisual_sp.png);
    background-size: 840px;
    background-position: 56% -228px;
    opacity: 0;
    animation: fadeIn 3s forwards;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .mainvisual__head {
    padding-top: 122px;
    font-size: 24px;
  }
  .mainvisual__spacer {
    padding: 0;
  }
  .mainvisual__subhead {
    font-size: 12px;
    padding-top: 16px;
  }

  /* サービス */
  .service {
    max-width: 100%;
    padding: 0 10px;
  }
  .service__title {
    font-size: 24px;
    margin-bottom: 32px;
  }
  .service__content {
    width: 100%;
    grid-template-columns: 1fr;
    row-gap: 60px;
    margin-bottom: 100px;
  }
  .service__desc {
    max-width: 540px;
    width: fit-content;
    margin: 0 auto;
  }
  .service__img {
    width: 82%;
    height: auto;
  }

  .br-tab {
    display: none;
  }

  /* 会社概要 */
  .overview__title {
    margin-bottom: 52px;
  }
  .overview__content {
    width: 100%;
    margin-bottom: 100px;
  }
  .overview__item {
    display: block;
    text-align: center;
  }
  .overview__name {
    width: 100%;
    margin-bottom: 16px;
  }
  .overview__desc {
    width: 100%;
    font-size: 16px;
  }
  /* お問い合わせ */
  .contact {
    padding-bottom: 94px;
  }
  .contact__title {
    margin-bottom: 58px;
  }
  .contact__desc {
    font-size: 16px;
  }
  .contact__mail {
    margin-top: 36px;
  }
  /* メインコンテンツ終わり */
  /* フッター */
  footer {
    padding-bottom: 30px;
    margin-top: -86px;
    margin-bottom: 0;
  }

  .footer__wrapper {
    flex-direction: column;
    justify-content: center;
    margin: 0;
    text-align: center;
  }

  .footer__privacy-policy {
    order: 1;
    float: none;
  }

  .footer__copyright {
    order: 2;
    margin: 0;
  }

  .footer__copyright::after {
    content: '';
  }
  /* フッター終わり */
}
@media screen and (max-width: 358px) {
  .mainvisual__head {
    font-size: 21px;
  }
}
