@charset "UTF-8";

:root {
  --font-hansan-serif: "源ノ明朝", serif;
}

button,
a {
  color: inherit;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

main {
  padding-top: 84px;
}

body {
  font-weight: 400;
  font-size: 1.6rem;
}

footer {
  height: 90px;
  background-color: black;
  color: white;
}

footer p {
  text-align: center;
  font-weight: 500;
  font-size: 1.8rem;
  padding-top: 14px;
  padding-left: 20px;
}

.container {
  max-width: 1100px;
  width: 95%;
  margin-right: auto;
  margin-left: auto;
}

.header {
  background-color: #F3F3F3;
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  padding: 10px 0px;
  align-items: center;
}

.header-inner h1 {
  mix-blend-mode: multiply;
}

.header-contact {
  display: flex;
}

.header-contact>a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  width: 158px;
  background-color: #158FCB;
  font-weight: bold;
  font-size: 1.8rem;
  line-height: 1;
  color: white;
  border-radius: 10px;
}

.header-contact>dl {
  font-weight: 500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #158FCB;
  margin-right: 20px;
}

.header-contact>dl dt {
  font-size: 1.1rem;
  text-align: center;
  line-height: 19px;
  background-color: white;
  border-radius: 9.5px;
}

.header-contact>dl a {
  font-size: 3.5rem;
  line-height: 1;
}

.c-totop {
  font-size: 0;
  position: fixed;
  right: 20px;
  bottom: 50px;
  z-index: 9;
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  border: 2px solid #444444;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  transform: translateY(160px);
  transition: 0.5s;
}

.c-totop span {
  width: 14px;
  height: 14px;
  display: block;
  border-top: 2px solid #444444;
  border-right: 2px solid #444444;
  transform: rotate(-45deg);
  margin-top: 6px;
}

#document {
  overflow: hidden;
}

a[href^=tel] {
  pointer-events: none;
}

/* contact form */

.contact {
  padding: 75px 0 105px;
  background-color: #F3F3F3;
}

.contact__title {
  margin-bottom: 20px;
  color: #000000;
  font-size: 4.5rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.5em;
}

.contact__text {
  margin-bottom: 45px;
  color: #28A4E1;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.7em;
  letter-spacing: 0.1em;
}

.contact__body {
  background-color: #fff;
  border: 1px solid #B0B0B0;
}

.contactForm__body {
  background-color: #fff;
  border: 1px solid #B0B0B0;
}

.form__head {
  display: flex;
  border-bottom: 1px solid #B0B0B0;
}

.form__head li {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 33.33%;
  height: 78px;
  color: #B0B0B0;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.7em;
  transition: all 0.3s ease;
}

.form__head li.active {
  color: #158FCB;
}

.form__head li::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -30px;
  transform: translateY(-50%);
  width: 30px;
  height: 80px;
  background: url(../images/kirepillow/img_contact_shape.png) no-repeat center/cover;
}

.form__head li.gray {
  background-color: #B0B0B0;
  color: #808080;
}

.form__head li.gray::after {
  background: url(../images/kirepillow/img_contact_shape-02.png) no-repeat center/cover;
}

.form__head li:last-child::after {
  display: none;
}

.form__body {
  padding: 48px 42px;
}

.form__title {
  margin-bottom: 10px;
  color: #000000;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.5em;
}

.form__text {
  margin-bottom: 70px;
  color: #000000;
  font-weight: 700;
  line-height: 1.7em;
}

.form__row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.form__row:last-child {
  margin-bottom: 0;
}

.form__row dt {
  display: flex;
  align-items: center;
  width: 245px;
  margin-right: 20px;
  color: #000000;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.7em;
}

.form__row dd {
  max-width: 740px;
  width: calc(100% - 245px - 20px);
}

.form__row dt span {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 80px;
  height: 30px;
  margin-right: 24px;
  padding: 2px 10px 2px;
  background-color: #B0B0B0;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5em;
}

.form__required {
  background-color: #28A4E1 !important;
}

.form__holder {
  margin-bottom: 10px;
  color: #B0B0B0;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.5em;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 14px 10px;
  border: 1px solid #B0B0B0;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.5em;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: normal;
}

.form__textarea {
  height: 220px;
  resize: vertical;
}

.form__confirm {
  margin: 90px auto 25px;
  font-size: 1.6rem;
  font-weight: 400;
  text-align: center;
  line-height: 1.7em;
}

.form__link {
  display: inline-block;
  color: #28A4E1;
  text-decoration: underline;
}

.form__agree {
  margin-bottom: 52px;
  text-align: center;
}

.form__agree label {
  position: relative;
  cursor: pointer;
  font-size: 1.6rem;
}

.form__agree input {
  /* display: none; */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.form__agree label::before {
  content: '';
  position: relative;
  top: 5px;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 1px solid #CCCCCC;
}

.form__agree label::after {
  content: '';
  position: absolute;
  top: 9px;
  left: 3px;
  width: 14px;
  height: 10px;
  background: url(../images/kirepillow/icon_check.svg) no-repeat center/contain;
  opacity: 0;
}

.form__agree input:checked+label::before {
  background-color: #28A4E1;
}

.form__agree input:checked+label::after {
  opacity: 1;
}

.submit-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.submit-btn a {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 410px;
  width: 100%;
  height: 72px;
  margin: 0 auto;
  background-color: #28A4E1;
  border-radius: 10px;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5em;
  transition: all 0.3s ease;
  font-family: inherit;
  margin-bottom: 4px;
}

.submit-btn .back {
  cursor: pointer;
  padding: 4px;
  transition: all .5s;
}

.submit-btn .back:hover {
  opacity: .7;
}

.form__button {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 410px;
  width: 100%;
  height: 72px;
  margin: 0 auto;
  background-color: #28A4E1;
  border-radius: 10px;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5em;
  transition: all 0.3s ease;
}

.form__button:hover {
  opacity: 0.7;
}

/* confirm */
.confirm,
.result {
  background: #F3F3F3;
  padding: 64px 0 120px;
}

.confirm .form__text {
  margin-bottom: 40px;
}

.confirm .form__item {
  display: flex;
  align-items: center;
  padding: 24px 40px 24px 0;
}

.confirm .form__item-title {
  width: 200px;
  font-weight: bold;
  font-size: 18px;
}

.confirm .form__item-box {
  width: calc(100% - 200px);
}

.confirm .form__confirmArea {
  margin-bottom: 40px;
}

/* result */
.result .form__desc {
  margin-bottom: 64px;
  text-align: justify;
}

.result .form__desc>*:not(:last-child) {
  margin-bottom: 40px;
}

.result .form__desc>*>*:not(:last-child) {
  margin-bottom: 24px;
}

.result .group dl {
  display: flex;
}

.result .group dl dt::after {
  content: "：";
}

.result .form__button a {
  color: #fff;
  width: inherit;
  height: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


@media screen and (max-width: 980px) {
  .contact {
    padding: 60px 0;
  }
}


@media screen and (max-width: 768px) {
  a[href^=tel] {
    pointer-events: all;
  }

  main {
    padding-top: 62px;
  }

  body {
    font-size: 1.4rem;
  }

  footer {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  footer p {
    font-size: 1.4rem;
    padding-left: 0px;
    padding-top: 0px;
    font-size: clamp(1.2rem, 4vw, 1.4rem);
  }

  .container {
    padding: 0px 15px;
    width: 100%;
  }

  .header-inner h1 {
    max-width: 160px;
    width: calc(100vw - 240px);
    min-width: 120px;
  }

  .header-contact>a {
    height: 40px;
    font-size: 1.6rem;
    max-width: 120px;
    font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    max-width: clamp(60px, 50vw - 120px, 120px);
  }

  .header-contact>dl {
    margin-right: 10px;
    margin-right: clamp(5px, 10vw - 35px, 10px);
  }

  .c-totop {
    right: 20px;
    bottom: 40px;
    width: 40px;
    height: 40px;
    border-radius: 40px;
  }

  .c-totop span {
    transform: rotate(-45deg) scale(0.8);
  }

  .header-contact>dl a {
    font-size: 1.8rem;
    font-size: clamp(1.6rem, 5vw, 1.8rem);
  }

  .header-contact>dl dt {
    font-size: 0.7rem;
    white-space: nowrap;
    border-radius: 7px;
    line-height: 14px;
  }

  .contact__title {
    font-size: 2.6rem;
  }

  .contact__text {
    font-size: 1.6rem;
    text-align: left;
  }


  .form__head li {
    height: 55px;
    padding-left: 20px;
    font-size: 1.4rem;
  }

  .form__head li::after {
    right: -30px;
    width: 22px;
    height: 55px;
  }

  .form__head li::after {
    right: -30px;
    width: 22px;
    height: 55px;
  }

  .form__head li.gray::after {
    right: -22px;
    height: 56px;
  }

  .form__title {
    font-size: 2rem;
  }

  .form__body {
    padding: 30px 20px;
  }

  .form__text {
    margin-bottom: 40px;
  }

  .form__row {
    margin-bottom: 25px;
  }

  .form__row dt {
    width: 100%;
    margin: 0 0 10px;
    font-size: 1.6rem;
  }

  .form__row dd {
    width: 100%;
  }

  .form__row dt span {
    width: 60px;
    height: 25px;
    margin-right: 15px;
    font-size: 1.4rem;
  }

  .form__holder {
    margin-bottom: 5px;
    font-size: 1.4rem;
  }

  .form__input,
  .form__textarea {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.6rem;
  }

  .form__textarea {
    height: 130px;
  }

  .form__confirm {
    margin: 30px auto 20px;
    font-size: 1.6rem;
  }

  .form__button {
    max-width: 370px;
    height: 60px;
    border-radius: 5px;
    font-size: 1.6rem;
  }


  .confirm,
  .result {
    margin-bottom: 64px;
    padding-top: 32px;
  }

  .confirm .form__text {
    margin-bottom: 24px;
  }

  .confirm .form__item {
    display: block;
    padding: 0;
  }

  .confirm .form__item:not(:last-child) {
    margin-bottom: 16px;
  }

  .confirm .form__item-title {
    font-size: 16px;
    width: 100%;
  }

  .confirm .form__item-box {
    width: 100%;
  }

  .result .form__desc {
    margin-bottom: 40px;
  }

  .result .form__desc>*:not(:last-child) {
    margin-bottom: 24px;
  }

  .result .form__desc>*>*:not(:last-child) {
    margin-bottom: 16px;
  }

  .result .group .time {
    display: block;
  }

}

@media screen and (max-width: 550px) {
  .header-contact>a {
    width: 70px;
  }

  .header-contact>dl {
    margin-right: 5px;
  }

  .header-contact>dl dt {
    font-size: 6.5px
  }

  .header-contact>a {
    font-size: 1.2rem;
  }
}
.textarea_confirm {
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* validator */
.error {
  color: #EF4B4B;
  display: none;
}

form.submitted input:invalid:not([type=checkbox]):not([type=radio]) {
  border: #EF4B4B 2px solid;
}
form.submitted textarea:invalid {
  border: #EF4B4B 2px solid;
}
textarea {
  border-radius: 4px !important;
  /* resize: none; */
}

form.submitted textarea:invalid ~ .error,
form.submitted input:invalid ~ .error  {
  display: block;
}