/************* PC *************/
/*** 背景 ***/
.oh-bg__image__pc {
  width: 55% !important;
  height: auto;
  margin-top: 40px;
}

/*** フォーム ***/
.oh-mvForm {
  position: absolute;
  top: 27rem;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 1166px;
  height: auto;
  margin: 0 auto;
  border: 6px solid #D60010;
  border-radius: 8px;
  background-color: #F4F4F4;
  box-shadow: 0 4px 15px #777;
}

.oh-mvForm__contents {
  display: flex;
  margin: 2.5rem 5rem 0;
  gap: 32px;
}

.oh-mvForm__contents__titleText {
  padding-left: 10px;
  margin-bottom: 15px;
  border-left: 6px solid #D60010;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.oh-mvForm__contents__titleText--highlight {
  font-size: 20px;
  font-weight: 700;
  margin-right: -4px;
}

.oh-mvForm__bannerImage__pc {
  width: 100%;
  height: auto;
}

/* 埋め込みフォーム選択項目(物件種別)のスタイル */
.oh-mvForm__contents__bukkenType {
  width: 100%;
  max-width: 600px;
  height: auto;
}

.oh-mvForm__contents__bukkenTypeItems {
  display: flex;
  padding: 0;
  gap: 16px;
  list-style: none;
}

.oh-mvForm__contents__bukkenTypeItem {
  width: 100%;
  max-width: 200px;
  height: auto;
  padding-bottom: 20px;
  border: 2px solid #CCC;
  border-radius: 4px;
  box-shadow: 0 -5px #C2C2C2 inset;
  background-color: #FFF;
}

.oh-mvForm__contents__bukkenTypeItem__radio {
  visibility: hidden;
}

.oh-mvForm__contents__bukkenTypeItem__radioLabel {
  display: inline-block;
  position: relative;
  width: 100%;
  height: 105px;
}

.oh-mvForm__contents__bukkenTypeItem__radioIcon {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto;
}

.oh-mvForm__contents__bukkenTypeItem__radioButtonIcon {
  display: inline-block;
  position: absolute;
  top: 5px;
  left: 5px;
  width: 24px;
  height: 24px;
  border: 2px solid #CCC;
  border-radius: 50%;
  background-color: #FFF;
}

.oh-mvForm__contents__bukkenTypeItem__radioButtonIcon::before {
  content: "";
  display: inline-block;
  position: absolute;
  top: 4px;
  left: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9F9F9F;
}

input[type="radio"]:checked ~ .oh-mvForm__contents__bukkenTypeItem__radioButtonIcon::before {
  background-color: #0088C3;
}

input[type="radio"]:checked ~ .oh-mvForm__contents__bukkenTypeItem__radioIcon path {
  fill: #0088C3;
}

.oh-mvForm__contents__bukkenTypeItem:has(input[type="radio"]:checked) {
  border-color: #0088C3;
  margin-top: 5px;
  background-color: #E8F0F2;
  box-shadow: none;
}

.oh-mvForm__contents__bukkenTypeItem__radioTitle {
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

/* 埋め込みフォーム選択項目(都道府県)のスタイル */
.oh-mvForm__contents__prefecture {
  width: 100%;
  max-width: 21rem;
  height: auto;
}

.oh-mvForm__contents__prefectureItems {
  width: 100%;
  max-width: 370px;
  height: 45px;
  padding: 8px;
  box-sizing: border-box;
  appearance: none;
  border: 1px solid #CCC;
  border-radius: 8px;
  font-size: 16px;
  background-color: #FFF;
  background-image: url('https://kaitori.openhouse-group.com/img/black_arrow_down.svg');
  background-repeat: no-repeat;
  background-position: 97% 50%;
}

/* 埋め込みフォーム送信ボタンのスタイル */
.oh-mvForm__buttonSticky--pc {
  width: 100%;
  max-width: 566px;
  height: auto;
  margin: 32px auto 48px;
  text-decoration: none;
  box-shadow: none !important;
}

.oh-mvForm__iconArrow {
  width: 40px;
  height: 40px;
  border-width: 3px;
  margin-right: 15px;
}

/*** 相談フォームのCTAボタン***/
.oh-button__formSoudan {
  width: 100%;
  max-width: 700px;
  margin: 16rem auto 9rem;
  text-align: center;
}

.oh-button__formSoudanLink {
  display: inline-flex;
  background-color: #0080BB;
}

.oh-button__formSoudanImage--pc {
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

/*** オープンハウスの買取はこんな方におすすめ！ ***/
.oh-section__recBody {
  width: 100%;
  max-width: 767px;
  margin: 0 auto 6rem;
}

.oh-wrapper__recListItems {
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.oh-image__iconRecReason {
  max-width: 220px;
  min-width: 130px;
  width: 100%;
  height: auto;
}

.oh-text__recReason {
  margin-top: 15px;
  text-align: center;
  font-size: 1.7vw;
}

.oh-text__recReason--highlight {
  font-weight: 700;
}

/*** 地域ビルダー ***/
.oh-container__builder {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  gap: 20px;
}

.oh-wrapper__builderText {
  width: 380px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 2;
}

.oh-text__builderNote {
  font-size: 10px;
  line-height: 15px;
  color: #868686;
  margin-bottom: 10px;
}

.oh-wrapper__builderImage--pc {
  width: 100%;
  max-width: 550px;
}

.oh-image__builder--pc {
  width: 100%;
  height: auto;
}

/************* SP *************/
@media screen and (max-width: 768px) {
  /*** 背景 ***/
  .intro {
    min-height: 50vw;
    background: url('https://kaitori.openhouse-group.com/img/top_bg_sp.png') 0% 0% / cover no-repeat;
  }

  /*** フォーム ***/
  .oh-mvForm {
    top: calc(100vw * 0.658);
    border: none;
    border-radius: 20px;
    background-color: #FFF;    
  }

  .oh-mvForm__bannerImage__sp {
    width: 100%;
    height: auto;
  }

  .oh-mvForm__contents {
    display: block;
    padding: 0.875rem 0;
    margin: 0.625rem;
    background-color: #F4F4F4;
  }

  .oh-mvForm__contents__banner--sp {
    margin-bottom: 0.5rem;
    text-align: center;
  }

  .oh-mvForm__contents__bannerImage--sp {
    width: 100%;
    max-width: 60vw;
    height: auto;
  }

  /* 埋め込みフォーム選択項目(物件種別)のスタイル */
  .oh-mvForm__contents__bukkenType {
    width: 100%;
    max-width: 90vw;
    height: auto;
    margin: 0 auto 1rem;
  }

  .oh-mvForm__contents__bukkenTypeItems {
    justify-content: space-between;
    gap: 0;
  }

  .oh-mvForm__contents__bukkenTypeItem {
    width: 100%;
    max-width: 29vw;
    height: auto;
    padding-bottom: 3vw;
  }

  .oh-mvForm__contents__bukkenTypeItem__radioLabel {
    height: 95px;
  }

  .oh-mvForm__contents__bukkenTypeItem__radioIcon {
    width: 40px;
    height: 40px;
  }


  /* 埋め込みフォーム選択項目(都道府県)のスタイル */
  .oh-mvForm__contents__prefecture {
    width: 100%;
    max-width: 90vw;
    height: auto;
    margin: 0 auto 6vw;
  }

  .oh-mvForm__contents__prefectureItems {
    max-width: none;
  }

  /*** 査定フォームのCTAボタン***/
  .oh-mvForm__buttonSticky--sp {
    width: 95%;
    padding: 3.6vw 6vw;
    margin: 0 auto;
  }

  .oh-mvForm__iconArrow {
    width: 30px;
    height: 30px;
    border-width: 1px;
    margin-right: 15px;
  }

  /*** 相談フォームのCTAボタン***/
  .oh-button__formSoudan {
    width: 100%;
    max-width: 90vw;
    margin: 28rem auto 4rem;
  }

  .oh-button__formSoudanImage--sp {
    width: 100%;
    max-width: 90vw;
    height: auto;
  }

  .oh-button__formSoudanLink {
    width: 100%;
    margin-top: 2rem;
  }
  
  /*** オープンハウスの買取はこんな方におすすめ！ ***/
  .oh-section__recBody {
    margin: 0 auto 3.5rem;
  }

  .oh-image__iconRecReason {
    max-width: 90px;
    min-width: 20px;
  }

  .oh-text__recReason {
    font-size: 4vw;
  }

  .oh-text__recReason--highlight {
    color: #1F86BC;
  }
  
  /*** 地域ビルダー ***/
  .oh-image__builder--sp {
    width: 100%;
    height: auto;
    margin-top: 2.5rem;
  }

  .oh-wrapper__builderImage--sp {
    margin-bottom: 1.735rem;
  }

  .oh-wrapper__builderText {
    width: 100%;
    font-size: 16px;
    letter-spacing: 0.02em;
    line-height: 1.68;
  }

  .oh-text__builder {
    margin-bottom: 0.5rem;
  }
}

/************* Tablet *************/
@media screen and (min-width: 769px) and (max-width: 1280px) {
  /*** フォーム ***/
  .oh-mvForm {
    width: 95vw;
    top: calc(100vw * 0.33);
  }

  .oh-mvForm__contents {
    margin: 2.5rem 2rem 0;
    gap: 20px;
  }

  .oh-mvForm__contents__bukkenTypeItems {
    gap: 5px;
  }

  .oh-mvForm__contents__bukkenTypeItem__radioIcon {
    width: 50px;
    height: 50px;
  }

  .oh-mvForm__contents__prefecture {
    max-width: 28.5rem;
  }

  /*** 相談フォームのCTAボタン***/
  .oh-button__formSoudan {
    margin: 18rem auto 4rem;
  }

  /*** オープンハウスの買取はこんな方におすすめ！ ***/
  .oh-text__recReason {
    font-size: 3vw;
  }
}