@charset "utf-8";

/* <input type="number">のスピンボタンを非表示にする */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

h2 {
  font-size: 2rem;
  font-weight: normal;
}

dl,
dd {
  display: flex;
}

dl {
  margin: 0 0 30px;
}

dd {
  width: 70%;
}

label:nth-child(2),
label:nth-child(3) {
  margin-left: 15px;
}

textarea {
  background-color: #F9F9F9;
  border: 1px solid #bec1c4;
  border-radius: 5px;
  height: 5rem;
  padding: 0.4rem 0.7rem;
  resize: none;
  width: 70%;
}

img {
  align-items: center;
  display: flex;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
}

/* 入力項目のスタイル */
input[type="text"],
input[type="number"],
select {
  background: #F9F9F9;
  border: 1px solid #bec1c4;
  border-radius: 5px;
  height: 100%;
  padding: 0.4rem 0.7rem;
}

.column_txt {
  width: 70%;
}

.other {
  margin-left: 4%;
  width: 30%;
}

.money_box {
  width: 6.7rem;
}

.unit_box {
  width: 3.5rem;
}

.unit {
  align-items: center;
  display: flex;
  font-size: 1.1rem;
}

.sub_remove {
  display: block !important;
  text-align: center;
}

.mail_search input[type="number"] {
  height: 80%;
  padding: 0.3rem;
}

.mail_search input[type="number"]:nth-child(2) {
  width: 10%;
}

.mail_search input[type="number"]:nth-child(4) {
  width: 15%;
}

/* フォーム送信時エラーメッセージ */
.error_message {
  color: red;
  display: none;
  font-size: 1.3rem;
  margin-top: 3%;
  text-align: center;
}

input[name="propertyName"].highlight,
.publish_radio.highlight::before,
.propertyStatus_radio.highlight::before {
  background-color: #f8d7da;
}

.flex_column {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.flex_row {
  display: flex;
  flex-direction: row;
}

/* タブ関連のスタイル */
.tabs {
  display: flex;
}

.tabs button:nth-child(4) {
  margin: 0;
}

.tab_btn {
  
  background-color: #c2c2c2;
  border: none;
  border-bottom: 3px solid #fff;
  border-radius: 0 0 15px 15px;
  color: #555;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  outline: none;
  padding: 10px 15px;
  transition: 0.3s;
  width: 30%;
  margin: 0 0 2%;
}

.tab_btn:hover {
  opacity: 0.7;
}

.tab_btn.active {
  background-color: #DAF8DC;
  border-bottom: 3px solid #0AC817;
  color: #000;
}

.tab_contents {
  display: none;
  margin-left: 3%;
}

.tab_contents.active {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.left_content,
.right_content {
  width: 47%;
}

/* 見出しのスタイル */
.form_title {
  font-size: 1.2rem;
  font-weight: bold;
  width: 30%;
}

/* 必須入力項目 */
.required {
  position: relative;
}

.required::after {
  border: 1px solid rgb(255, 0, 0);
  border-radius: 5px;
  content: '必須';
  color: rgb(255, 0, 0);
  font-size: 0.7rem;
  padding: 0.7% 1.5%;
  position: absolute;
  top: 0;
  right: 5%;
}

/* ラジオボタンとチェックボックスのスタイル */
input[type=radio],
input[type=checkbox] {
  opacity: 0;
  position: absolute;
}

input[type=radio]:checked+.radio_txt:after,
input[type=checkbox]:checked+.checkbox_txt:after {
  opacity: 1;
}

.radio_txt,
.checkbox_txt {
  cursor: pointer;
  padding-left: 30px;
  position: relative;
  white-space: nowrap;
}

.radio_txt:before {
  background: #F9F9F9;
  border: 1px solid #bfc1c4;
  border-radius: 50%;
  box-sizing: border-box;
  content: '';
  height: 20px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(0, -50%);
  width: 20px;
}

.radio_txt:after {
  background: #253038;
  border-radius: 50%;
  content: '';
  height: 10px;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translate(0, -50%);
  transition: opacity 0.2s;
  width: 10px;
}

.checkbox_txt:before {
  background: #F9F9F9;
  border: 1px solid #bdc0c3;
  border-radius: 4px;
  box-sizing: border-box;
  content: '';
  height: 20px;
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
}

.checkbox_txt:after {
  border-left: 3px solid #000;
  border-bottom: 3px solid #000;
  border-radius: 2px;
  content: '';
  height: 6px;
  opacity: 0;
  position: absolute;
  top: 1px;
  left: 4px;
  transform: rotate(-45deg);
  width: 15px;
}

.flex_column .radio {
  margin-bottom: 20px;
}

.radio {
  margin-top: 3px;
}

/* ボタンのスタイル */
.submit_btn {
  text-align: center;
  width: 100%;
}

.add_appeal {
  width: 100%;
}

.submit_btn button,
.appeal_add_btn {
  background-color: #0AC817;
  border: 2px solid transparent;
  border-radius: 30px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 2px;
  margin: 3% 0;
  padding: 1.2rem 3rem;
}

.appeal_add_btn {
  font-size: 1rem;
  letter-spacing: 0;
  margin: 0 0 0 5%;
  padding: 0.3rem 1rem;
}

.submit_btn button:hover,
.appeal_add_btn:hover,
.mail_search button:hover {
  background-color: #fff;
  border-color: #0AC817;
  color: #0AC817;
}

.remove_btn {
  background-color: transparent;
  border: none;
  height: 20px;
  position: relative;
  width: 20px;
}

.remove_btn::before,
.remove_btn::after {
  border-top: 3px solid #e74c3c;
  border-radius: 30px;
  content: '';
  position: absolute;
  top: 18px;
  left: 7px;
  width: 20px;
}

.sub_remove button::before,
.sub_remove button::after {
  top: 4px;
  left: 0;
}

.remove_btn::before {
  transform: rotate(45deg);
}

.remove_btn::after {
  transform: rotate(-45deg);
}

.remove_btn:hover::before,
.remove_btn:hover::after {
  opacity: 0.7;
}



.mail_search button {
  background-color: #0AC817;
  border: 2px solid transparent;
  border-radius: 30px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
  margin: 0 0 0 2%;
  padding: 0.2rem 0.6rem;
}

/* ファイル選択ボタンのスタイル */
input[type=file] {
  display: none;
}

.file_contents,
.file_container {
  border: 1px solid #fff;
  border-radius: 5px;
  box-shadow: 2px 2px 5px 0px rgba(200, 200, 200, 1);
  padding: 3%;
  text-align: center;
  width: 90%;
}

.file_contents div {
  display: flex;
}

.file_contents label {
  border: 2px solid #0AC817;
  border-radius: 5px;
  color: #0AC817;
  font-weight: bold;
  padding: 3px 3px 2px 2px;
  transition: 0.2s;
}

.file_contents label:hover {
  background-color: #0AC817;
  color: #fff;
}

.file_contents p {
  padding-top: 5px;
  margin-left: 10px;
}

.file_container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 0;
  justify-content: space-between;
}

.sub_img_content {
  background-color: gainsboro;
  height: 12rem;
  transition: .2s;
  width: 47%;
}

.sub_img_content label {
  align-items: center;
  display: flex;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.sub_img_content:hover {
  filter: brightness(0.9);
}

.sub_img_content.sub_img_show {
  height: 73vh;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
  z-index: 1;
}

.camera {
  background-color: #fff;
  border-radius: 50%;
  height: 2rem;
  width: 2rem;
}

.sub_img {
  display: none;
}

/* アピールポイント2のスタイル */
.appeal_point dl,
.appeal_point dd {
  flex-wrap: wrap;
}

.appeal_point dd {
  margin: 0 auto;
  width: 90%;
}

.appeal_point dl:nth-child(3) {
  flex-direction: column;
}

.appeal_point dt {
  display: flex;
  margin-bottom: 2%;
  width: 100%;
}

.appeal_point label {
  margin: 0 0 10px !important;
  width: 33%;
}

.add_appeal li {
  margin-bottom: 2%;
}

.add_appeal div,
.add_img div {
  display: flex;
}

/* プレビュー画像スタイル */
.main_img {
  height: 23rem;
  margin-top: 25px;
  width: 90%;
}

.add_img {
  display: flex;
  flex-wrap: wrap;
}

.add_img li {
  height: 12rem;
  margin: 3%;
  width: 44%;
}

.add_img div {
  flex-direction: column;
}

.add_img img {
  height: 11rem;
  padding: 13px;
  width: 100%;
}

@media (max-width: 1500px) {
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  label span {
    font-size: 0.9rem;
  }

  .form_title {
    font-size: 1rem;
  }

  .appeal_point dt {
    margin-bottom: 3%;
  }

  .appeal_point label {
    width: 45%;
  }

}

@media (max-width: 1150px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1rem;
  }

  dd {
    width: 60%;
  }

  label span {
    font-size: 1.1rem;
  }

  .form_title {
    font-size: 1.25rem;
    width: 40%;
  }

  .tab_contents {
    flex-direction: column;
    margin-left: 5%;
  }

  .left_content,
  .right_content {
    width: 100%;
  }
}

/* iPad Air 4 (横向き) */
@media screen and (min-width: 820px) and (max-width: 1180px) and (orientation: landscape) {



  h1 {
    font-size: 1.4rem;
  }


  dd {
    width: 100%;
  }

  .tab_btn {
    font-size: 0.9rem;
  }

  .tab_contents {
    flex-direction: row;
    margin-left: 5%;
  }

  .form_title {
    font-size: 1.1rem;
    width: 70%;
  }

  .main_img {
    height: 15rem;
  }

  .appeal_point dt {
    margin-bottom: 3%;
  }

  .appeal_point dd {
    margin: 0 0 0 auto;
  }

  .appeal_point label {
    width: 45%;
  }

  .mail_search input[type="number"]:nth-child(2) {
    width: 15%;
  }

  .mail_search input[type="number"]:nth-child(4) {
    width: 23%;
  }
}


/* iPad Mini (横向き) */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {

  body,
  label span {
    font-size: 0.8rem;
  }

  h1 {
    font-size: 1.3rem;
  }

  h2 {
    font-size: 1.3rem;
    width: 93%;
  }

  .tab_btn {
    font-size: 0.8rem;
  }

  .tab_contents {
    flex-direction: row;
    margin-left: 5%;
  }

  .form_title {
    font-size: 1rem;
  }

  .appeal_point dt {
    margin-bottom: 3%;
  }

  .appeal_point label {
    width: 45%;
  }

  .mail_search input[type="number"]:nth-child(2) {
    width: 15%;
  }

  .mail_search input[type="number"]:nth-child(4) {
    width: 23%;
  }
}