/* ===================================
   お問い合わせフォーム
   =================================== */
.l-contents-inner {
  max-width: 56.25rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

/* ステップバー */
.stepbar-row {
  width: 100%;
  margin-bottom: 2.5rem;
}

.stepbar {
  display: flex;
  position: relative;
  padding: 0;
  margin: 0;
  text-align: center;
  list-style: none;
}

.stepbar li {
  font-size: 0.875rem;
  font-weight: bold;
  list-style: none;
  position: relative;
  width: 33.333%;
  padding-left: 5%;
  color: #999;
}

.stepbar li:first-child {
  padding-left: 0;
}

.stepbar li:after {
  background-color: #ddd;
  content: "";
  height: 0.25rem;
  left: -50%;
  position: absolute;
  top: 1rem;
  width: 100%;
  z-index: 1;
}

.stepbar li:first-child:after {
  display: none;
}

.stepbar li span {
  background-color: #ddd;
  border-radius: 50%;
  color: #fff;
  display: inline-block;
  height: 2.25rem;
  margin-bottom: 0.5rem;
  line-height: 2.25rem;
  text-align: center;
  width: 2.25rem;
  position: relative;
  z-index: 2;
  font-weight: bold;
}

.stepbar .done {
  color: #ceb2ce;
}

.stepbar .done:after {
  background-color: #ceb2ce;
}

.stepbar .done span {
  background-color: #ceb2ce;
}

/* インフォボックス */
.infobox {
  background-color: #f9f2f9;
  border-left: 0.25rem solid #ceb2ce;
  padding: 20px 25px;
  margin-bottom: 30px;
}

.infobox p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.6;
}

.infobox p:first-child {
  margin-top: 0;
}

.infobox p:last-child {
  margin-bottom: 0;
}

/* フォームコンテナ */
.mw_wp_form {
  background-color: #fff;
  padding: 40px;
  border-radius: 0;
  border: 0.0625rem solid #e0e0e0;
}

form {
  font-size: 0.875rem;
}

.contactBox dl {
  margin: 0 0 25px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.contactBox dt {
  width: 15.625rem;
  font-weight: bold;
  padding: 12px 0;
  color: #2c3e50;
}

.contactBox dd {
  flex: 1;
  margin: 0;
  padding: 0;
}

/* 必須マーク */
.mustbox {
  display: inline-block;
  background-color: #b70000;
  color: #fff;
  font-size: 0.6875rem;
  padding: 3px 8px;
  /* border-radius: .1875rem; */
  margin-left: 8px;
  vertical-align: middle;
  font-weight: bold;
}

/* フォーム入力フィールド */
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  border: 0.0625rem solid #ccc;
  padding: 5px 15px;
  font-size: 0.875rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
  background-color: #fff;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #7e457c;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color: #999;
}

/* 郵便番号・電話番号フィールド */
.mwform-zip-field,
.mwform-tel-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mwform-zip-field input[type="text"],
.mwform-tel-field input[type="text"] {
  width: auto;
}

.add_zip:first-of-type {
  width: 5rem;
}

.add_zip:last-of-type {
  width: 6.25rem;
}

.txt_phone {
  width: 5.625rem;
}

/* セレクトボックス */
select {
  cursor: pointer;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

#add_area01,
#about_category {
  max-width: 25rem;
}

/* テキストエリア */
textarea {
  min-height: 9.375rem;
  resize: vertical;
  line-height: 1.6;
}

/* 確認テーブル */
.contactBox dl {
  margin: 0 0 25px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.contactBox dl:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.contactBox dt {
  width: 240px;
  font-weight: bold;
  padding: 0;
  color: #2c3e50;
}

.contactBox dd {
  flex: 1;
  margin: 0;
  padding: 0;
  color: #333;
  word-break: break-word;
  line-height: 1.8;
}

/* 空の値の場合 */
.contactBox dd:empty::before {
  content: "（未入力）";
  color: #999;
}
/* hiddenフィールドは非表示 */
input[type="hidden"] {
  display: none;
}
/* ボタンエリア */
.btnArea {
  margin-top: 2.5rem;
  text-align: center;
  padding: 0 10%;
  display: flex;
  gap: 3.125rem;
  justify-content: center;
}

.btn_back,
.btn_subcon {
  width: 100%;
  max-width: 25rem;
  height: 4.0625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9375rem;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  color: #fff;
  background-color: #7e457c;
  border: 0.3125rem solid white;
  box-shadow: 0 0 0 0.0625rem #7e457c;
  text-decoration: none;
}

.btn_subcon::after {
  content: "";
  width: calc(38 * (100vw / 780));
  height: calc(18 * (100vw / 780));
  right: calc(20 * (100vw / 780));
  background-image: url("/wp/wp-content/themes/otsuma/assets/images/common/btn-arrow.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  transition: transform 0.3s ease;
}

.btn_subcon:hover::after {
  transform: translateX(calc(5 * (100vw / 780)));
}

.btn_subcon:active {
  background-color: #6a3a68;
  box-shadow: 0 0 0 0.0625rem #6a3a68;
}

/* 戻るボタン */
.btn_back {
  background-color: #888888;
  border: 5px solid white;
  box-shadow: 0 0 0 1px #888888;
}

.btn_back::before {
  content: "";
  width: 24px;
  height: 13px;
  background-image: url("/wp/wp-content/themes/otsuma/assets/images/common/btn-arrow.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  left: 15px;
  transition: transform 0.3s ease;
}

/* レスポンシブ対応 */
@media screen and (max-width: 48rem) {
  .l-contents-inner {
    padding: 1.875rem 0;
  }

  .mw_wp_form {
    padding: 1.5625rem 1.25rem;
  }

  .contactBox dl {
    flex-direction: column;
  }

  .contactBox dt {
    width: 100%;
    padding: 0 0 0.5rem 0;
  }

  .contactBox dd {
    width: 100%;
  }

  .stepbar li {
    font-size: 0.8125rem;
  }

  .stepbar li span {
    height: 2rem;
    width: 2rem;
    line-height: 2rem;
    margin-bottom: 0.375rem;
  }

  .stepbar li:after {
    top: 0.875rem;
    left: -50%;
  }

  #add_area01,
  #about_category {
    max-width: 100%;
  }

  .btnArea {
    flex-direction: column-reverse;
    gap: 15px;
    padding: 0;
  }

  .btn_back,
  .btn_subcon {
    padding: 0.875rem 0;
    font-size: 0.875rem;
    height: 3.75rem;
  }

  .mwform-zip-field,
  .mwform-tel-field {
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 30rem) {
  .stepbar li {
    font-size: 0.75rem;
    padding-left: 3%;
  }

  .stepbar li:after {
    left: -45%;
  }

  input[type="text"],
  input[type="email"],
  select,
  textarea {
    font-size: 0.875rem; /* iOSのズーム防止 */
  }
}
