/*基本設定なので触らないこと。触る＆追加は各々のcssにて*/
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100dvh;
  font-size: 62.5%;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  position: relative;
  font-size: 1.6rem;
}

/*テキスト全般ベース*/
.txt {
  font-size: 1.6rem;
  line-height: 1.75;
  letter-spacing: 0.06em;
}
.txt.center {
  text-align: center;
}

.txt_sub {
  font-size: 1.4rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.ttl {
  font-size: 4rem;
  line-height: 1.5;
  letter-spacing: 0.2em;
}
.ttl_sub {
  font-size: 2.4rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.ttl_sub .left {
  text-align: left;
}

/*ボタンベース*/
.btn {
  font-size: 2rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  border-radius: 2.5em;
  padding: 0.5em 1.5em;
  border: 0;
  font-weight: 600;
  cursor: pointer;
}

/*mailform*/
.mailform {
  padding-top: 3em;
}
.mailform input,
.mailform textarea {
  margin-top: 0.5em;
  padding: 1.5em;
  width: 100%;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
}
.mailform table {
  margin: 1em auto 0;
  width: min(1000px, 100%);
  border-spacing: 1em;
}
.mailform table th {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1.6rem;
  line-height: 1.5;
  font-weight: 500;
}
.mailform table th.inq::after {
  content: "必須";
  display: inline-block;
  font-size: clamp(1.2rem, calc(1rem + 0.625vw), 1.1rem);
  border-radius: 24px;
  padding: 0.4em 0.5em;
}
.mailform table td {
  font-size: clamp(1.4rem, calc(1rem + 0.625vw), 1.6rem);
  letter-spacing: 0.06em;
}
@media (max-width: 896px) {
  .mailform table tbody {
    display: block;
  }
  .mailform table tbody tr {
    display: flex;
    flex-wrap: wrap;
    margin: 1em 0 0;
    width: 100%;
  }
  .mailform table tbody th {
    width: auto;
  }
  .mailform table tbody th::after {
    margin-left: 2em;
  }
  .mailform table tbody td {
    width: 100%;
    margin: 0.5em 0 0;
  }
}

.box-send {
  margin: 1.5em auto 0;
  padding: 0 0 80px;
  text-align: center;
}
.box-send a {
  text-decoration: none;
}
.box-send .btn {
  margin: 1em auto 0;
  min-width: 146px;
  box-sizing: content-box;
}

/*footer*/
.footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 2vw 1.5em 2vw;
}
.footer .footer_navi {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-weight: 600;
}
.footer .copy {
  padding: 2vw;
  width: 100%;
  text-align: center;
  font-size: clamp(1.2rem, 1.2rem + 0.625vw, 1.4rem);
  line-height: 1.75;
}
.footer .copy img {
  display: inline;
  padding-left: 1em;
}
@media (max-width: 896px) {
  .footer {
    justify-content: center;
  }
  .footer .footer_navi.box-menu {
    position: relative;
    right: unset;
    top: unset;
    width: 100%;
    height: auto;
    margin: 0;
    overflow: hidden;
    z-index: 0;
  }
  .footer .menu {
    display: block;
    opacity: 1;
    margin: auto;
    height: auto;
  }
  .footer .menu li {
    margin: 2vw auto 0;
    width: 100%;
  }
  .footer .copy {
    margin: 4vw auto 0;
  }
}
@media (max-width: 480px) {
  .footer {
    padding: 12vw 0 0;
  }
}

/*メール確認*/
.box-confirm {
  width: min(1000px, 80%);
  margin: 0 auto;
  text-align: center;
}
.box-confirm .note {
  font-weight: 600;
}
.box-confirm table {
  margin: 1em auto 0;
  border: 1px solid #666;
  text-align: left;
}
.box-confirm table th {
  padding: 1vw;
  width: 30%;
}
.box-confirm table td {
  padding: 1vw;
  width: 70%;
}
.box-confirm .box-send {
  display: flex;
  justify-content: center;
  width: min(500px, 80%);
  gap: 3vw;
}
@media (max-width: 896px) {
  .box-confirm {
    margin: 0;
    width: 100%;
  }
  .box-confirm tr {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .box-confirm tr th {
    width: 100%;
  }
  .box-confirm tr td {
    width: 100%;
  }
}
/*topへ*/
.pagetop {
  position: fixed;
  right: 1vw;
  bottom: 1vw;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8rem;
  height: 8rem;
  border-radius: 100%;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: .3s ease all;
}
.pagetop.on{
  position: absolute;
  bottom: 11vw;
}
.pagetop.visible{
  opacity: 1;
}
.pagetop a {
  text-decoration: none;
}
