@charset "UTF-8";

/*======================================================================================
# test
====================================================================================== */
.test iframe {
  display: block;
}

/*======================================================================================
# contact page style
====================================================================================== */
.heading-01 {
  margin-bottom: 32px;
}

.top {
  margin: 64px 0 80px;
}

.top-desc {
  font-weight: bold;
  font-size: 20px;
}

.top-desc .red {
  margin-top: 8px;
  font-size: 16px;
  color: #980000;
}

/* 
.main {
    margin-top: -74px;
} */

.contact {
  margin-bottom: 64px;
}

.contact-visual.small>figure img {
  min-height: 250px;
}

.contact-visual>figure img {
  min-height: 400px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.main-content2 {
  position: absolute;
  padding: 0px 20px;
  left: 0px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-content2 h2 {
  width: 450px;
  height: 100px;
  border: 1px solid #fff;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.1em;
  font-family: "Noto Serif JP", serif;
  font-size: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 75px;
}

@media screen and (max-width: 768px) {
  .contact-visual>figure img {
    object-position: -80rem;
  }

  .main-content2 h2 {
    height: 80px;
    bottom: 85px;
  }
}

@media screen and (max-width: 500px) {
  .contact-visual>figure img {
    object-position: -90rem;
  }

  .main-content2 h2 {
    width: 350px;
  }
}

.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: #F8DA0F;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.7em;
  letter-spacing: 0.1em;
}

.contact__body {
  background-color: #F5F5F5;
}

.form__head {
  display: flex;
}

.form__head li {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 33.33%;
  height: 78px;
  color: #cccccc;
  background-color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.7em;
  transition: all 0.3s ease;
  border: 2px solid #cccccc;
}

.form__head li.active {
  color: #212121;
  background-color: #F8DA0F;
  border: #F8DA0F;
}

.form__head li::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -30px;
  transform: translateY(-50%);
  width: 30px;
  height: 78px;
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-image: url(../images/contact/shape-yw.svg);
  mask-image: url(../images/contact/shape-yw.svg);
}

.form__head li.active::after {
  -webkit-mask-image: url(../images/contact/shape-yw.svg);
  mask-image: url(../images/contact/shape-yw.svg);
  background-color: #F8DA0F;
}

.form__head li.gray {
  color: #212121;
  background-color: #EDE9E4;
  border: #F8DA0F;
}

.form__head li.gray::after {
  -webkit-mask: unset;
  mask: unset;
  background: url("../images/contact/shape-gr.svg") no-repeat center center/cover;
}

.form__head li.white {
  border-right: none;
}

.form__head li.white::after {
  -webkit-mask-image: unset;
  mask-image: unset;
  background: url("../images/contact/shape-wh.svg") no-repeat center 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 dt.top {
  align-items: flex-start;
}

.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;
  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: #EF4B4B !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: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 2rem;
  line-height: 1.5em;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: normal;
}

.form__textarea {
  height: 220px;
  resize: none;
}

.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: #158FCB;
  text-decoration: underline;
}

.form__agree {
  margin-bottom: 52px;
  text-align: center;
}

.form__agree label {
  position: relative;
  cursor: pointer;
  font-size: 1.6rem;
  overflow: hidden;
}

.form__agree input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0;
  margin: 0;
  position: absolute;
  z-index: 1;
  border-radius: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 10px;
}

.form__agree label::before {
  content: "";
  position: relative;
  top: 5px;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 1px solid #CCCCCC;
  background-color: #fff;
  -webkit-transition: border 0.3s ease, background 0.3s ease;
  -o-transition: border 0.3s ease, background 0.3s ease;
  transition: border 0.3s ease, background 0.3s ease;
}

.form__agree label::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 3px;
  width: 14px;
  height: 10px;
  background: url(../images/contact/icon_check.svg) no-repeat center/contain;
  opacity: 0;
}

.form__agree input:checked+label::before {
  background-color: #EF4B4B;
}

.form__agree input:checked+label::after {
  opacity: 1;
}

.submit-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.submit-btn a {
  max-width: 314px;
  width: 100%;
  height: 100%;
}

.submit-btn .back {
  cursor: pointer;
  padding: 4px;
  transition: all 0.5s;
  margin-top: 2em;
}

.submit-btn .back:hover {
  opacity: 0.7;
}

.form__button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 18px 24px;
  margin: 0 auto;
  background-color: #4F2322;
  border-radius: 10px;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5em;
  transition: all 0.3s ease;
  font-family: "Noto Sans JP", sans-serif;
  max-width: 314px;
  border-radius: 64px;
}

.form__button:hover {
  opacity: 0.7;
}

input[type=radio],
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 10px;
  margin: 0;
  position: absolute;
  border-radius: 0;
  border: 0;
  outline: none;
  background: transparent;
  z-index: 1;
  /* width: 100%; */
  /* display: none; */
}

input[type=radio],
input[type=checkbox] {
  border: unset;
  height: 1px;
}

.select {
  position: relative;
  display: inline-block;
  min-height: 45px;
}

.select::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 180px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 8px 0 8px;
  border-color: #212121 transparent transparent transparent;
  pointer-events: none;
  z-index: 1;
}

select {
  display: block;
  width: 100%;
  max-width: 214px;
  height: 100%;
  min-height: 45px;
  padding: 8px;
  background: #fff;
  text-indent: 0.01px;
  text-overflow: ellipsis;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  z-index: 0;
}

input[type=radio]+span {
  cursor: pointer;
  position: relative;
  padding-left: 32px;
}

input[type=radio]+span::before {
  content: "";
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-color: #FFFFFF;
  border-radius: 50%;
  border: 1px solid #B7B7B7;
  transition: border 0.05s ease;
  max-width: 100%;
}

input[type=radio]+span::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: #980000;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.5s ease;
  max-width: 100%;
}

input[type=radio]:checked+span::after {
  opacity: 1;
}

.radio-field:not(:last-child) {
  margin-bottom: 8px;
}

/* confirm */
.confirm,
.result {
  padding: 64px 0 120px;
}

.form__heading {
  padding: 0 42px;
}

.confirm .form__body {
  padding: 48px 0;
}

.result .form__body {
  padding: 48px 42px;
}

.contactForm__body {
  background-color: #F5F5F5;
}

.confirm .form__text {
  margin-bottom: 40px;
  font-weight: normal;
}

.confirm .form__item {
  display: flex;
  align-items: center;
}

.confirm .form__item-content {
  word-wrap: break-word;
  text-align: justify;
}

.confirm .form__item:not(:last-child) {
  border-bottom: 2px solid #CCCCCC;
}

.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;
}

.confirm .form__item,
.result .form__item {
  padding: 24px 42px;
}

.confirm .form__item.textarea {
  align-items: flex-start;
}

.confirm .form__item.textarea .form__item-box p {
  white-space: pre-wrap;
}

/* 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: 768px) {
  .top-desc {
    font-size: 18px;
  }

  input,
  select {
    vertical-align: middle;
  }

  #document,
  .p-top,
  .container {
    width: 100%;
    overflow: hidden;
  }

  .radio-field-text {
    display: flex;
    font-size: 1.5rem;
  }

  input[type=radio]+span {
    width: 100%;
    text-align: justify;
    padding-left: 24px;
    display: block;
  }

  input[type=radio]+span::before {
    width: 20px;
    height: 20px;
  }

  input[type=radio]+span::after {
    width: 12px;
    height: 12px;
  }

  .main-h2 {
    max-width: 100%;
  }

  .contact .column {
    display: block;
    width: 100%;
    overflow: hidden;
  }

  .contactForm__title {
    font-size: 2.6rem;
  }

  .contactForm__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: -20px;
    width: 22px;
    height: 55px;
  }

  .form__head li.white::after {
    height: 51px;
  }

  .form__title {
    font-size: 2rem;
  }

  .form__body {
    padding: 30px 16px;
  }

  .form__text {
    margin-bottom: 40px;
  }

  .form__row {
    margin-bottom: 25px;
    display: block;
  }

  .form__row dt {
    width: 100%;
    margin: 0 0 10px;
    font-size: 1.6rem;
  }

  .form__row dd {
    width: 100%;
    max-width: 100%;
  }

  .form__row dt span {
    width: 60px;
    height: 25px;
    margin-right: 15px;
    font-size: 1.4rem;
    max-width: 100%;
  }

  .form__holder {
    margin-bottom: 5px;
    font-size: 1.5rem;
  }

  input[type=radio]+span {
    width: 100%;
    text-align: justify;
    padding-left: 24px;
    display: block;
  }

  .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: 100%;
    font-size: 1.6rem;
    width: 240px;
    padding: 16px;
  }

  .confirm,
  .result {
    padding: 32px 0;
  }

  .form__heading {
    padding: 0 16px;
  }

  .confirm .form__body {
    padding: 30px 0 48px;
  }

  .result .form__body {
    padding: 30px 16px 48px;
  }

  .confirm .form__text {
    margin-bottom: 24px;
  }

  .confirm .form__item {
    display: block;
    padding: 0 16px 16px 16px;
  }

  .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;
  }
}

.ww {
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

/* 制約検証 */
.error {
  color: #EF4B4B;
}

/*
select:focus {
  color: inherit;
}
*/
input:invalid~p .error,
input[type="radio"]:invalid~p .error,
textarea:invalid~p .error,
input[type="checkbox"]:invalid~p .error {
  display: initial;
}

input:valid~p .error,
input[type="radio"]:valid~p .error,
textarea:valid~p .error,
input[type="checkbox"]:valid~p .error {
  display: none;
}

/*
input:focus ~ p .error
, input[type="radio"]:focus ~ p .error
, textarea:focus ~ p .error
, input[type="checkbox"]:focus ~ p .error
 {
  display: none;
}
*/