#contact h2 {
  background-image: none !important;
  color: #f29c97 !important;
}

#contact ul {
  padding-left: 1.5em;
}

#contact ul li {
  list-style: disc;
}

#contact .inner ol {
  margin-top: 0;
  margin-left: 0;
  padding-left: 1.5em;
}

#contact ol li {
  list-style: none;
  list-style-type: decimal;
  margin-top: 0;
}

#contact .inner ol li:before {
  display: none;
}

#contact_form {
  margin-top: 80px;
}

#contact_form .row {
  border-top: 1px solid #ddd;
  padding: 1.6rem 0;

  @media (min-width: 769px) {
    display: flex;
    align-items: center;
  }
}

#contact_form .row:first-of-type {
  margin-top: 40px;
}

#contact_form .row .title {
  width: 300px;
  padding: 0 1.6rem;

  @media (min-width: 769px) {
    max-width: 33.3333%;
  }

  @media (max-width: 768px) {
    margin-bottom: 1.6rem;
  }
}

#contact_form .row .title .required {
  color: #fff;
  background-color: #e9536b !important;
  padding: 0 0.5em;
  font-size: 0.875em;
  border-radius: 5px;
  margin-left: 1em;
}

.attention {
  font-size: 0.875em;
  color: #999;
  margin-top: 0 !important;
}

.attention::before {
  content: "※";
}

.input:not(.input_split) {
  display: block;
  flex: 1;
  padding: 0 1.6rem;
}

.input.input_split {
  flex: 1;
  @media (min-width: 576px) {
  display: flex;
  align-items: flex-start;
  }
}

.input.input_split>div {
  display: flex;
  flex: 1;
  padding: 0 1.6rem;
}

.input.input_split>div:first-of-type {
  @media (max-width: 575px) {
    margin-bottom: 1.6rem;
  }
}
.input.input_split>div label {
  width: 38px;
  line-height: 40px;
}

.input.input_split>div .input_box {
  flex: 1;
}

.input .input_box input,
.input .input_box textarea {
  width: 100%;
  border-radius: 5px;
}

.input .input_box input:focus,
.input .input_box input:focus-visible,
.input .input_box textarea:focus,
.input .input_box textarea:focus-visible {
  border-color: #85b7d9;
  outline: none;
}
.input_box ~ .input_box{
  margin-top: 1.6rem;
}
.inner {
  padding-left: 15px;
  padding-right: 15px;
}
.zipcode_box{
  display: flex;
  margin-bottom: 1.6rem;
}
.zipcode_box label{
  line-height: 40px;
  width: 38px;
}

.send_button button{
  display: block;
  font-family: "Zen Maru Gothic", "游ゴシック Medium", "游ゴシック", Yu Gothic Medium, YuGothic, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, system-ui, sans-serif;
  margin: 40px auto;
  color: #fff;
  background-color: #f29c97;
  padding: 1em 1.5em;
  border-radius: 50vw;
  font-size: 1.6rem;
  width: 40%;
  border: none;
  font-weight: bold;
  position: relative;
  @media (max-width: 768px){
    width: 80%;
  }
}

/* 確認画面へボタンに右矢印（>）を追加 */
.send_button .fb-confirm::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg) translateY(-50%);
  margin-left: 12px;
  vertical-align: middle;
  position: absolute;
  top: 50%;
  right: 1.6rem;
}

.send_button button:hover{
  opacity: 0.65;
  cursor: pointer;
}

/* 確認画面のボタンコンテナ */
.confirm_buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  @media (max-width: 768px) {
    flex-direction: column;
    gap: 15px;
  }
}

/* 戻るボタンのスタイル */
.confirm_buttons .fb-back {
  background-color: #f89b2c !important;
  color: #fff;
  padding: 1em 1.5em;
  border-radius: 50vw;
  font-size: 1.6rem;
  border: none;
  font-weight: bold;
  font-family: "Zen Maru Gothic", "游ゴシック Medium", "游ゴシック", Yu Gothic Medium, YuGothic, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, system-ui, sans-serif;
  min-width: 200px;
  position: relative;
  width: 40%;
  @media (max-width: 768px) {
    width: 80%;
    margin: 0 auto;
  }
}

/* 戻るボタンに左矢印（<）を追加 */
.confirm_buttons .fb-back::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(45deg) translateY(-50%);
  margin-right: 12px;
  vertical-align: middle;
  position: absolute;
  top: 50%;
  left: 1.6rem;
}

/* 送信ボタンのスタイル */
.confirm_buttons .fb-submit {
  background-color: #f29c97 !important;
  color: #fff;
  padding: 1em 1.5em;
  border-radius: 50vw;
  font-size: 1.6rem;
  border: none;
  font-weight: bold;
  font-family: "Zen Maru Gothic", "游ゴシック Medium", "游ゴシック", Yu Gothic Medium, YuGothic, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, system-ui, sans-serif;
  min-width: 200px;
  position: relative;
  width: 40%;
  @media (max-width: 768px) {
    width: 80%;
    margin: 0 auto;
  }
}

/* 送信ボタンに右矢印（>）を追加 */
.confirm_buttons .fb-submit::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  margin-left: 12px;
  vertical-align: middle;
  position: absolute;
  top: 50%;
  right: 1.6rem;
}

.confirm_buttons button:hover {
  opacity: 0.65;
  cursor: pointer;
}

/* フッターを常にページ下部に配置 */
body #wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body #wrapper #contents {
  flex: 1;
}

#footer{
  margin-top: 0;
}
.confirm_table{
  width: 100%;
}
.confirm_table th, .confirm_table td{
  text-align: left;
  padding: 1.6rem;
  border-bottom: 1px solid #999;
  vertical-align: top;
  @media (max-width: 768px){
    display: block;
    width: 100%;
  }
}
.confirm_table th{
  width: 30%;
  @media (min-width: 769px){
  border-right: 1px solid #999;
  }
  @media (max-width: 768px){
    width: 100%;
    border-bottom: none;
    padding-bottom: 0;
  }
}

.end_text {
    text-align: center;
    padding: 100px 0;
    font-size: 2rem;
}

/* =================================
   バリデーション用スタイル
   ================================= */

/* バリデーション状態のインプット */
.input_box input.valid {
  border-color: #27ae60;
  background-color: #f8fff8;
}

.input_box input.invalid {
  border-color: #e74c3c;
  background-color: #fff8f8;
}

.input_box select.valid {
  border-color: #27ae60;
  background-color: #f8fff8;
}

.input_box select.invalid {
  border-color: #e74c3c;
  background-color: #fff8f8;
}

.input_box textarea.valid {
  border-color: #27ae60;
  background-color: #f8fff8;
}

.input_box textarea.invalid {
  border-color: #e74c3c;
  background-color: #fff8f8;
}

/* 入力欄直下のエラーメッセージ */
.field_error {
  color: #e60012;
  font-size: 12px;
  margin-top: 4px;
  margin-bottom: 4px;
  display: none;
  font-weight: normal;
}

.field_error.show {
  display: block;
}

/* セレクトボックスのスタイル */
.input_box select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  background-color: #fff;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="#666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}