#wrapper.realestate-test {
  min-width: 0;
}

.realestate-test {
  --ret-green: #b7ce6a;
  --ret-green-dark: #8eab34;
  --ret-green-pale: #eef7cb;
  --ret-orange: #f3a92d;
  --ret-ink: #333;
  --ret-cream: #fffdf5;
  color: var(--ret-ink);
  background: var(--ret-cream);
  font-family: fot-tsukuardgothic-std, "Noto Sans JP", "Yu Gothic", "YuGothic", sans-serif;
  line-height: 1.8;
}

.realestate-test *,
.realestate-test *::before,
.realestate-test *::after {
  box-sizing: border-box;
}

.realestate-test .header {
  position: relative;
  z-index: 30;
  width: 0;
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.realestate-test .header .navBtn {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
}

.realestate-test .header .navIcon {
  width: 132px;
  height: 132px;
  border-radius: 0 0 0 21px;
}

.realestate-test .ret-main {
  overflow: hidden;
  background: var(--ret-cream);
}

.realestate-test .ret-main img {
  display: block;
  max-width: 100%;
  height: auto;
}

.realestate-test .ret-container {
  width: min(100% - 60px, 1215px);
  margin: 0 auto;
}

.realestate-test .ret-container--cards {
  width: min(100% - 60px, 1350px);
}

.realestate-test .ret-container--wide {
  width: min(100% - 60px, 1470px);
}

.realestate-test .ret-hero {
  position: relative;
  min-height: 300px;
  aspect-ratio: 3.25 / 1;
  background: url("images/realestate_fv_bg.webp") center center / cover no-repeat;
}

.realestate-test .ret-hero__shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.realestate-test .ret-hero__title {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: nowrap;
}

.realestate-test .ret-hero__title img {
  width: 87px;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.realestate-test .ret-hero__title h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(31.5px, 3.34vw, 48px);
  font-weight: 700;
  letter-spacing: 0.16em;
}

/* 助詞「の」だけ小さく（見出し48pxに対して40px） */
.realestate-test .ret-hero__title h1 .ret-sml {
  font-size: 0.833em;
  font-weight: inherit;
}

.realestate-test .ret-hero__title span {
  margin-top: 6px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0.24em;
}

.realestate-test .ret-breadcrumb {
  width: min(100% - 60px, 1215px);
  margin: 0 auto;
  padding: 30px 0 15px;
  color: #999;
  font-size: 16.5px;
}

.realestate-test .ret-breadcrumb a {
  color: var(--ret-green-dark);
  text-decoration: underline;
}

.realestate-test .ret-breadcrumb span::before {
  content: "→";
  margin: 0 15px;
  color: var(--ret-orange);
}

.realestate-test .ret-trouble {
  padding: 81px 0 141px;
  background: var(--ret-cream);
}

.realestate-test .ret-section-head,
.realestate-test .ret-reasons__head,
.realestate-test .ret-bottom-contact {
  text-align: center;
}

.realestate-test .ret-section-head__mark {
  display: block;
  width: 282px;
  height: 10.5px;
  margin: 0 auto 21px;
  background-image: radial-gradient(circle, var(--ret-orange) 0 4.5px, transparent 5.25px);
  background-position: left center;
  background-size: 44.25px 10.5px;
  background-repeat: repeat-x;
}

.realestate-test .ret-section-head h2,
.realestate-test .ret-reasons__head h2,
.realestate-test .ret-bottom-contact h2 {
  margin: 12px 0 15px;
  color: var(--ret-green-dark);
  font-size: clamp(33px, 4.05vw, 43.5px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* 見出しの圏点（1文字ずつ上にオレンジのドット） */
.realestate-test .ret-section-head h2 .ret-em {
  font-weight: inherit;
  padding-top: 33px;
  background-image: radial-gradient(circle, var(--ret-orange) 0 4.5px, transparent 5.25px);
  background-position: left top;
  background-size: 1.08em 12px;
  background-repeat: repeat-x;
}

/* 助詞は小さく */
.realestate-test .ret-section-head h2 .ret-sml {
  font-size: 0.72em;
  font-weight: inherit;
}

.realestate-test .ret-keywords {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10.5px;
  margin: 21px 0 12px;
}

.realestate-test .ret-keywords span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 46.5px;
  padding: 6px 24px;
  border-radius: 1498.5px;
  color: #fff;
  background: var(--ret-orange);
  font-size: 19.5px;
  font-weight: 700;
}

.realestate-test .ret-keywords b {
  color: var(--ret-ink);
  font-size: 19.5px;
  font-weight: 700;
}

.realestate-test .ret-section-head p {
  margin: 15px 0 0;
  font-size: 21px;
}

.realestate-test .ret-question {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 57px auto 30px;
}

.realestate-test .ret-question img {
  width: 51px;
  margin-bottom: 7.5px;
}

.realestate-test .ret-question p {
  position: relative;
  width: 615px;
  margin: 0;
  padding: 10.5px 0 18px;
  font-size: 19.5px;
  text-align: center;
}

.realestate-test .ret-question p::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 21px;
  border-bottom: 3px solid #796f5e;
  border-radius: 0 0 50% 50%;
}

.realestate-test .ret-trouble-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1185px;
  margin: 45px auto 0;
  padding: 0;
  list-style: none;
}

.realestate-test .ret-trouble-list li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  aspect-ratio: 1;
  padding: 33px 25.5px 40.5px;
  border-radius: 50%;
  background: #f1f1ef;
  text-align: center;
}

.realestate-test .ret-trouble-list li::after {
  content: "";
  position: absolute;
  bottom: -10.5px;
  left: 46%;
  width: 30px;
  height: 27px;
  background: #f1f1ef;
  clip-path: polygon(0 0, 100% 0, 20% 100%);
}

.realestate-test .ret-trouble-list span {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.65;
}

.realestate-test .ret-trouble-list img {
  position: absolute;
  bottom: -37.5px;
  left: -6px;
  z-index: 2;
  width: 84px;
  max-height: 114px;
}

.realestate-test .ret-reasons {
  position: relative;
  padding: 141px 0 132px;
  background: var(--ret-green);
  clip-path: polygon(0 0, 44% 0, 50% 42px, 56% 0, 100% 0, 100% 100%, 0 100%);
}

.realestate-test .ret-reasons__head {
  margin-bottom: 78px;
}

.realestate-test .ret-reasons__head img {
  width: 75px;
  margin: 0 auto 7.5px;
  filter: brightness(0) invert(1);
}

.realestate-test .ret-reasons__head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(34.5px, 4.05vw, 48px);
}

.realestate-test .ret-reason-card {
  position: relative;
  margin: 0 0 93px;
  padding: 99px 105px 93px;
  border-radius: 10.5px;
  background: #fff;
  box-shadow: 0 4.5px 18px rgba(78, 91, 35, 0.08);
}

.realestate-test .ret-reason-card:last-child {
  margin-bottom: 0;
}

.realestate-test .ret-reason-card__number {
  position: absolute;
  top: -40.5px;
  left: 50%;
  display: grid;
  width: 90px;
  height: 90px;
  place-items: center;
  border: 4.5px solid var(--ret-green);
  border-radius: 50%;
  color: var(--ret-green-dark);
  background: #fff;
  font-family: Arial, sans-serif;
  font-size: 42px;
  transform: translateX(-50%);
}

.realestate-test .ret-reason-card h3 {
  margin: 0;
  color: var(--ret-green-dark);
  font-size: clamp(34.5px, 4.05vw, 48px);
  line-height: 1.5;
  text-align: left;
}

/* カード直下のラベルは左揃え＋下に点線の区切り */
.realestate-test .ret-reason-card > .ret-label {
  margin: 21px 0 0;
}

.realestate-test .ret-divider {
  margin: 27px 0 0;
  border: 0;
  border-top: 3px dotted #dcdcd4;
}

.realestate-test .ret-label {
  display: table;
  margin: 15px auto 45px;
  padding: 6px 24px;
  border-radius: 1498.5px;
  color: #fff;
  font-size: 19.5px;
  font-weight: 700;
}

.realestate-test .ret-label--green {
  background: var(--ret-green-dark);
}

.realestate-test .ret-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.7fr);
  align-items: center;
  gap: 51px;
  margin: 45px 0 54px;
}

.realestate-test .ret-intro-grid h4 {
  margin: 0 0 22.5px;
  color: #444;
  font-size: 30px;
  line-height: 1.7;
}

.realestate-test .ret-intro-grid p {
  margin: 0;
  font-size: 21px;
  line-height: 2;
}

.realestate-test .ret-intro-grid > img {
  width: 100%;
  max-width: 352.5px;
  margin: 0 auto;
}

.realestate-test .ret-intro-grid--sale > img {
  max-width: 202.5px;
  max-height: 285px;
}

.realestate-test .ret-recommend {
  position: relative;
  margin: 37.5px 0 63px;
  padding: 45px 37.5px 27px;
  border: 3px solid var(--ret-orange);
  border-radius: 6px;
}

.realestate-test .ret-recommend strong {
  position: absolute;
  top: -22.5px;
  left: 50%;
  min-width: 277.5px;
  padding: 7.5px 25.5px;
  border-radius: 1498.5px;
  color: #fff;
  background: var(--ret-orange);
  font-size: 19.5px;
  text-align: center;
  transform: translateX(-50%);
}

.realestate-test .ret-recommend ul {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 15px 60px;
  width: -webkit-fit-content;
  width: fit-content;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

/* 項目数が多い枠は3列に（SPは下のメディアクエリで1列に戻る） */
.realestate-test .ret-recommend--col3 ul {
  grid-template-columns: repeat(3, auto);
  gap: 15px 45px;
}

/* タブレット幅：3列のままだと文字が折り返すため2列に */
@media (max-width: 1199px) {
  .realestate-test .ret-recommend--col3 ul {
    grid-template-columns: repeat(2, auto);
  }
}

/* さらに狭い画面：2列でも折り返すため1列に */
@media (max-width: 991px) {
  .realestate-test .ret-recommend ul,
  .realestate-test .ret-recommend--col3 ul {
    grid-template-columns: 1fr;
    gap: 9px;
  }
}

.realestate-test .ret-recommend li {
  position: relative;
  padding-left: 34.5px;
  font-size: 19.5px;
}

.realestate-test .ret-recommend li::before {
  content: "";
  position: absolute;
  top: 4.5px;
  left: 0;
  width: 25.5px;
  height: 25.5px;
  background: url("images/i_circle-check_orange.svg") center center / contain no-repeat;
}

.realestate-test .ret-plan-example h4 {
  margin: 0;
  color: var(--ret-green-dark);
  font-size: 45px;
  text-align: center;
}

.realestate-test .ret-plan-example .ret-label {
  min-width: 585px;
  margin-top: 24px;
  margin-bottom: 0;
  padding: 10.5px 42px;
  font-size: 22.5px;
}

.realestate-test .ret-plan-example__lead {
  margin: 27px 0 105px;
  font-size: 18px;
  text-align: center;
}

.realestate-test .ret-plan-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 42px;
}

.realestate-test .ret-plan-column {
  min-width: 0;
}

.realestate-test .ret-plan {
  position: relative;
  padding: 108px 51px 60px;
  border-radius: 21px;
  background: var(--ret-green-pale);
  text-align: center;
}

.realestate-test .ret-plan--a {
  min-height: 765px;
}

.realestate-test .ret-plan--b {
  min-height: 1207.5px;
}

.realestate-test .ret-plan__person {
  position: absolute;
  top: -46.5px;
  left: 50%;
  width: 144px;
  height: 147px;
  object-fit: contain;
  transform: translateX(-50%);
}

.realestate-test .ret-plan h5 {
  margin: 0 0 19.5px;
  font-size: 30px;
  font-weight: 500;
}

.realestate-test .ret-plan__badge {
  display: inline-block;
  min-width: 78%;
  margin-bottom: 51px;
  padding: 10.5px 30px;
  border-radius: 1498.5px;
  color: #fff;
  background: var(--ret-orange);
  font-size: 22.5px;
  font-weight: 700;
}

.realestate-test .ret-plan__step {
  display: flex;
  align-items: center;
  min-height: 69px;
  padding: 16.5px 24px;
  border-radius: 10.5px;
  background: #fff;
  font-size: 21px;
  font-weight: 600;
  text-align: left;
}

.realestate-test .ret-plan__step i,
.realestate-test .ret-plan__goal i {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -3px;
  width: 22.5px;
  height: 22.5px;
  margin-right: 13.5px;
  border: 3px solid var(--ret-green-dark);
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
}

.realestate-test .ret-plan__step i::before,
.realestate-test .ret-plan__goal i::before {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  bottom: 3px;
  left: 3px;
  border-radius: 50%;
  background: var(--ret-green-dark);
}

.realestate-test .ret-plan__timeline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 255px;
  padding-left: 99px;
}

.realestate-test .ret-plan__timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 18px;
  width: 30px;
  background: #a6a6a6;
  clip-path: polygon(50% 0, 100% 21px, 65% 21px, 65% calc(100% - 21px), 100% calc(100% - 21px), 50% 100%, 0 calc(100% - 21px), 35% calc(100% - 21px), 35% 21px, 0 21px);
}

.realestate-test .ret-plan__timeline::after {
  content: none;
}

.realestate-test .ret-plan__years {
  position: absolute;
  top: 50%;
  left: 33px;
  padding: 7.5px 0;
  background: var(--ret-green-pale);
  color: #333;
  font-size: 24px;
  transform: translate(-50%, -50%);
}

.realestate-test .ret-plan__timeline strong {
  position: relative;
  display: inline-block;
  padding: 15px 21px;
  border-radius: 10.5px;
  color: #fff;
  background: var(--ret-green-dark);
  font-size: 21px;
  white-space: nowrap;
}

.realestate-test .ret-plan__timeline strong::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -24px;
  border-top: 15px solid transparent;
  border-right: 25.5px solid var(--ret-green-dark);
  border-bottom: 15px solid transparent;
  transform: translateY(-50%);
}

.realestate-test .ret-plan__timeline small {
  font-size: 13.5px;
}

.realestate-test .ret-plan__goal {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 15px 144px 15px 24px;
  border-radius: 10.5px;
  color: #fff;
  background: var(--ret-green-dark);
  font-size: 19.5px;
  text-align: left;
}

.realestate-test .ret-plan__goal img {
  position: absolute;
  right: 3px;
  bottom: 0;
  width: 162px;
  max-height: none;
  object-fit: contain;
}

.realestate-test .ret-plan__goal i {
  border-color: #fff;
}

.realestate-test .ret-plan__goal i::before {
  background: #fff;
}

.realestate-test .ret-plan__step--continue {
  display: block;
  padding: 22.5px 24px;
}

.realestate-test .ret-plan__step--continue strong {
  display: block;
  margin-bottom: 15px;
  white-space: nowrap;
}

.realestate-test .ret-plan__step--continue p {
  margin: 0;
  padding-left: 42px;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.7;
}

.realestate-test .ret-plan-notes {
  padding: 48px 60px 0;
  text-align: left;
}

.realestate-test .ret-plan-notes section + section {
  margin-top: 57px;
}

.realestate-test .ret-plan-notes h6 {
  margin: 0 0 13.5px;
  color: var(--ret-green-dark);
  font-size: 31.5px;
  line-height: 1.5;
}

.realestate-test .ret-plan-notes p {
  margin: 0;
  font-size: 18px;
  line-height: 2;
}

/* ラビーネットのボタン（トップページ page-toptest.php の同ボタンと同デザイン） */
.realestate-test .ret-rabbynet {
  position: relative;
  z-index: 0;
  display: block;
  width: min(100%, 630px);
  margin: 0 auto;
}

/* 下に敷く緑の面（押し込み表現の影） */
.realestate-test .ret-rabbynet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 4.5px solid var(--ret-green);
  border-radius: 15px;
  background: var(--ret-green);
}

.realestate-test .ret-rabbynet__inner {
  position: relative;
  top: -12px;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 24px 84px 24px 24px;
  border: 4.5px solid var(--ret-green);
  border-radius: 15px;
  background: #fff;
  color: var(--ret-green);
  font-size: 22.5px;
  font-weight: 700;
  line-height: 1.4;
  transition: top 0.15s ease-out;
}

/* 右端の矢印 */
.realestate-test .ret-rabbynet__inner::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 42px;
  width: 27px;
  aspect-ratio: 20.098 / 17.228;
  background: url("images/arw_01_r_g.svg") center center / contain no-repeat;
  transform: translateY(-50%);
}

/* ロゴ＋うさぎアイコン */
.realestate-test .ret-rabbynet__logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0 24px 0 0;
}

.realestate-test .ret-rabbynet__logo-main {
  width: 165px;
  height: auto;
}

.realestate-test .ret-rabbynet__logo-icon {
  width: 40.5px;
  height: auto;
  margin: 0 0 0 3px;
}

.realestate-test .ret-rabbynet:hover {
  opacity: 0.78;
}

/* ホバーで押し込む */
.realestate-test .ret-rabbynet:hover .ret-rabbynet__inner {
  top: 0;
}

.realestate-test .ret-contact-area {
  padding: 93px 0 132px;
  background: var(--ret-cream);
}

.realestate-test .ret-sale-contact {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 330px;
  align-items: end;
  min-height: 495px;
  padding: 66px 97.5px 0;
  border-radius: 9px;
  color: #fff;
  background: var(--ret-orange);
  overflow: hidden;
}

.realestate-test .ret-sale-contact__body {
  padding-bottom: 63px;
  text-align: center;
}

.realestate-test .ret-sale-contact h2 {
  position: relative;
  margin: 0 0 37.5px;
  padding-bottom: 21px;
  color: #fff;
  font-size: clamp(37.5px, 4.95vw, 57px);
  letter-spacing: 0.1em;
}

.realestate-test .ret-sale-contact h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  border-bottom: 3px dotted rgba(255, 255, 255, 0.65);
}

.realestate-test .ret-sale-contact p {
  margin: 0 0 12px;
  font-size: 19.5px;
  font-weight: 700;
}

.realestate-test .ret-sale-contact > img {
  width: 315px;
  max-height: 412.5px;
  object-fit: contain;
  object-position: center bottom;
}

/* 電話番号は画像（緑／白の2種）で表示 */
.realestate-test .ret-tel {
  display: block;
  width: min(100%, 548px);
  margin: 15px auto 0;
  line-height: 1;
  text-decoration: none;
}

.realestate-test .ret-tel img {
  display: block;
  width: 100%;
  height: auto;
}

.realestate-test .ret-tel:hover {
  opacity: 0.75;
}

.realestate-test .ret-sale-contact small,
.realestate-test .ret-bottom-contact small {
  display: block;
  margin: 6px 0 22.5px;
  font-size: 15px;
}

.realestate-test .ret-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 360px;
  min-height: 66px;
  padding: 13.5px 36px;
  border-radius: 1498.5px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.realestate-test .ret-button::after {
  content: "›";
  margin-left: 27px;
  font-size: 27px;
  line-height: 1;
}

.realestate-test .ret-button:hover {
  opacity: 0.82;
  transform: translateY(-1.5px);
}

.realestate-test .ret-button--white {
  color: var(--ret-orange);
  background: #fff;
}

.realestate-test .ret-button--orange {
  color: #fff;
  background: var(--ret-orange);
}

.realestate-test .ret-flow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 72px;
  max-width: 1140px;
  margin: 108px auto 0;
}

.realestate-test .ret-flow-card {
  position: relative;
  padding: 72px 48px 45px;
  border-radius: 13.5px;
  background: var(--ret-green-pale);
  text-align: center;
}

.realestate-test .ret-flow-card__type {
  position: absolute;
  top: -40.5px;
  left: 50%;
  display: grid;
  width: 90px;
  height: 90px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ret-orange);
  font-size: 22.5px;
  font-weight: 700;
  transform: translateX(-50%);
}

/* 1段目：人物イラスト（名前付き）＋カードの横並び */
.realestate-test .ret-flow-card__lead {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.realestate-test .ret-flow-card__person {
  margin: 0;
  text-align: center;
}

.realestate-test .ret-flow-card__person img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.realestate-test .ret-flow-card__person figcaption {
  margin-top: 3px;
  font-size: 16.5px;
  font-weight: 700;
}

.realestate-test .ret-flow-card h3,
.realestate-test .ret-flow-card__step {
  display: grid;
  min-height: 96px;
  margin: 0;
  padding: 18px;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  font-size: 18px;
  line-height: 1.7;
}

.realestate-test .ret-flow-card__step {
  grid-template-columns: auto 1fr;
  gap: 18px;
}

.realestate-test .ret-flow-card__step img {
  width: 63px;
  max-height: 72px;
}

.realestate-test .ret-flow-card__down {
  display: block;
  margin: 9px 0;
  color: var(--ret-green-dark);
  font-size: 21px;
  line-height: 1;
}

.realestate-test .ret-flow-card__goal {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 117px;
  padding: 16.5px;
  border-radius: 9px;
  color: #fff;
  background: var(--ret-green-dark);
  font-size: 19.5px;
}

/* 喜んでいるイラストはカードの上に重ねる */
.realestate-test .ret-flow-card__goal img {
  position: absolute;
  top: 0;
  left: 12px;
  width: 97.5px;
  max-height: 87px;
  object-fit: contain;
  transform: translateY(-68%);
}

/* カードの外側にはみ出すイラスト */
.realestate-test .ret-flow-card__step--icon {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
}

.realestate-test .ret-flow-card__icon {
  position: absolute;
  top: 50%;
}

.realestate-test .ret-flow-card__icon--left {
  left: 0;
  width: 63px;
  transform: translate(-72%, -50%);
}

.realestate-test .ret-flow-card__icon--right {
  right: 0;
  width: 84px;
  transform: translate(58%, -46%);
}

.realestate-test .ret-bottom-contact {
  padding: 157.5px 0 15px;
}

.realestate-test .ret-bottom-contact h2 {
  margin: 0 0 6px;
  font-size: 63px;
  letter-spacing: .08em;
}

.realestate-test .ret-bottom-contact > p:first-of-type {
  margin: 0;
  font-size: 33px;
  font-weight: 700;
}

.realestate-test .ret-bottom-contact__bubbles {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 57px 0 93px;
  padding: 0;
  list-style: none;
}

.realestate-test .ret-bottom-contact__bubbles li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 255px;
  height: 204px;
  padding: 45px 24px 22.5px;
  border-radius: 50%;
  color: #fff;
  background: var(--ret-orange);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.65;
}

.realestate-test .ret-bottom-contact__icon {
  position: absolute;
  top: 27px;
  left: 50%;
  width: 36px;
  height: 36px;
  object-fit: contain;
  transform: translateX(-50%);
}

.realestate-test .ret-bottom-contact__person {
  position: absolute;
  bottom: -12px;
  left: -18px;
  width: 93px;
  max-height: 112.5px;
  object-fit: contain;
  object-position: left bottom;
}

.realestate-test .ret-bottom-contact__copy {
  margin: 0 0 24px;
  font-size: 21px;
  font-weight: 600;
  line-height: 2;
}

.realestate-test .footer {
  padding-top: 30px;
  background: var(--ret-cream);
}

.realestate-test .footer .fix_to_top_btn {
  display: none;
}

.realestate-test .footer .foot_address_wrap {
  padding-top: 37.5px;
}

.realestate-test .footer .copy {
  display: block;
  padding: 15px 22.5px;
  color: #fff;
  background: #43aed0;
  text-align: center;
}

@media (max-width: 767px) {
  .realestate-test .header .navIcon {
    width: 87px;
    height: 87px;
    border-radius: 0 0 0 15px;
  }

  .realestate-test .header .navtxt {
    font-size: 15px;
  }

  .realestate-test .ret-container,
  .realestate-test .ret-container--cards,
  .realestate-test .ret-container--wide,
  .realestate-test .ret-breadcrumb {
    width: min(100% - 45px, 840px);
  }

  .realestate-test .ret-hero {
    min-height: 217.5px;
    aspect-ratio: auto;
  }

  .realestate-test .ret-hero__title img {
    width: 42px;
    margin-bottom: 4.5px;
  }

  .realestate-test .ret-hero__title h1 {
    font-size: 25.5px;
  }

  .realestate-test .ret-hero__title span {
    font-size: 10.5px;
  }

  .realestate-test .ret-breadcrumb {
    padding: 18px 0 6px;
    font-size: 13.5px;
  }

  .realestate-test .ret-trouble {
    padding: 52.5px 0 96px;
  }

  .realestate-test .ret-section-head h2,
  .realestate-test .ret-bottom-contact h2 {
    font-size: 30px;
  }

  .realestate-test .ret-keywords {
    flex-wrap: wrap;
    gap: 7.5px;
  }

  .realestate-test .ret-keywords span {
    min-width: 73.5px;
    min-height: 36px;
    padding: 4.5px 12px;
    font-size: 15px;
  }

  .realestate-test .ret-section-head p {
    font-size: 16.5px;
  }

  .realestate-test .ret-question {
    margin-top: 42px;
  }

  .realestate-test .ret-question p {
    width: min(100%, 435px);
    font-size: 16.5px;
  }

  .realestate-test .ret-trouble-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 55.5px 22.5px;
    max-width: 555px;
  }

  .realestate-test .ret-trouble-list li {
    min-height: 202.5px;
    padding: 30px 15px;
  }

  .realestate-test .ret-trouble-list span {
    font-size: 15px;
  }

  .realestate-test .ret-trouble-list img {
    bottom: -31.5px;
    width: 72px;
  }

  .realestate-test .ret-reasons {
    padding: 114px 0 87px;
    clip-path: polygon(0 0, 42% 0, 50% 30px, 58% 0, 100% 0, 100% 100%, 0 100%);
  }

  .realestate-test .ret-reasons__head {
    margin-bottom: 67.5px;
  }

  .realestate-test .ret-reasons__head h2 {
    font-size: 28.5px;
  }

  .realestate-test .ret-reason-card {
    margin-bottom: 78px;
    padding: 69px 30px 48px;
  }

  .realestate-test .ret-reason-card h3 {
    font-size: 28.5px;
  }

  .realestate-test .ret-label {
    margin-bottom: 33px;
    font-size: 13.5px;
  }

  .realestate-test .ret-intro-grid {
    grid-template-columns: minmax(0, 1fr) 157.5px;
    gap: 21px;
    margin: 33px 0 45px;
  }

  .realestate-test .ret-intro-grid h4 {
    margin-bottom: 13.5px;
    font-size: 21px;
  }

  .realestate-test .ret-intro-grid p {
    font-size: 15px;
    line-height: 1.8;
  }

  .realestate-test .ret-intro-grid--sale > img {
    width: 129px;
  }

  .realestate-test .ret-recommend {
    margin-bottom: 48px;
    padding: 40.5px 21px 22.5px;
  }

  .realestate-test .ret-recommend ul {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .realestate-test .ret-plan-example h4 {
    font-size: 27px;
  }

  .realestate-test .ret-plan-example .ret-label {
    min-width: 0;
    width: 100%;
    padding: 9px 15px;
    font-size: 13.5px;
  }

  .realestate-test .ret-plan-example__lead {
    margin: 18px 0 75px;
    font-size: 13.5px;
  }

  .realestate-test .ret-plan-columns {
    gap: 15px;
  }

  .realestate-test .ret-plan {
    padding: 87px 15px 27px;
  }

  .realestate-test .ret-plan__person {
    top: -30px;
    width: 90px;
    height: 93px;
  }

  .realestate-test .ret-plan h5 {
    margin-bottom: 10.5px;
    font-size: 19.5px;
  }

  .realestate-test .ret-plan__badge {
    min-width: 90%;
    min-height: 54px;
    margin-bottom: 27px;
    padding: 7.5px 10.5px;
    font-size: 12px;
  }

  .realestate-test .ret-plan__step {
    min-height: 60px;
    padding: 10.5px;
    font-size: 12px;
  }

  .realestate-test .ret-plan__timeline {
    min-height: 168px;
    padding-left: 60px;
  }

  .realestate-test .ret-plan__timeline::before {
    top: 15px;
    bottom: 15px;
    left: 9px;
    width: 21px;
  }

  .realestate-test .ret-plan__timeline::after {
    bottom: 25.5px;
    left: 7.5px;
    border-top-width: 12px;
    border-right-width: 10.5px;
    border-left-width: 10.5px;
  }

  .realestate-test .ret-plan__years {
    left: 19.5px;
    padding: 4.5px 0;
    font-size: 13.5px;
  }

  .realestate-test .ret-plan__timeline strong {
    padding: 10.5px 7.5px;
    font-size: 12px;
  }

  .realestate-test .ret-plan__timeline strong::before {
    left: -12px;
    border-top-width: 10.5px;
    border-right-width: 13.5px;
    border-bottom-width: 10.5px;
  }

  .realestate-test .ret-plan__goal {
    min-height: 66px;
    padding: 10.5px 84px 10.5px 10.5px;
    font-size: 12px;
  }

  .realestate-test .ret-plan__goal img {
    width: 93px;
    height: auto;
  }

  .realestate-test .ret-plan__step--continue strong {
    white-space: normal;
  }

  .realestate-test .ret-plan__step--continue p {
    padding-left: 0;
    font-size: 10.5px;
  }

  .realestate-test .ret-plan--a {
    min-height: 585px;
  }

  .realestate-test .ret-plan--b {
    min-height: 930px;
  }

  .realestate-test .ret-plan-notes {
    padding: 33px 12px 0;
  }

  .realestate-test .ret-plan-notes section + section {
    margin-top: 30px;
  }

  .realestate-test .ret-plan-notes h6 {
    font-size: 19.5px;
  }

  .realestate-test .ret-plan-notes p {
    font-size: 12px;
  }

  .realestate-test .ret-contact-area {
    padding: 60px 0 96px;
  }

  .realestate-test .ret-sale-contact {
    grid-template-columns: 1fr 138px;
    min-height: 390px;
    padding: 45px 25.5px 0;
  }

  .realestate-test .ret-sale-contact__body {
    padding-bottom: 45px;
  }

  .realestate-test .ret-sale-contact h2 {
    margin-bottom: 25.5px;
    font-size: 33px;
  }

  .realestate-test .ret-sale-contact p {
    font-size: 15px;
  }

  .realestate-test .ret-sale-contact > img {
    width: 150px;
    max-width: none;
    max-height: 255px;
  }

  .realestate-test .ret-tel {
    margin-top: 12px;
  }

  .realestate-test .ret-sale-contact small,
  .realestate-test .ret-bottom-contact small {
    font-size: 12px;
  }

  .realestate-test .ret-button {
    min-width: 285px;
    min-height: 57px;
    padding: 10.5px 22.5px;
    font-size: 13.5px;
  }

  .realestate-test .ret-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 87px;
  }

  .realestate-test .ret-flow-card {
    padding: 66px 15px 22.5px;
  }

  .realestate-test .ret-flow-card__type {
    width: 78px;
    height: 78px;
    font-size: 18px;
  }

  /* SPは横幅が足りないため人物を上に積み、イラストのはみ出しをやめる */
  .realestate-test .ret-flow-card__lead {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .realestate-test .ret-flow-card__person img {
    max-height: 75px;
  }

  .realestate-test .ret-flow-card__person figcaption {
    font-size: 12px;
  }

  .realestate-test .ret-flow-card__icon {
    position: static;
    width: 48px;
    margin: 0 auto;
    transform: none;
  }

  .realestate-test .ret-flow-card__icon--left,
  .realestate-test .ret-flow-card__icon--right {
    width: 48px;
    transform: none;
  }

  .realestate-test .ret-flow-card__step--icon {
    gap: 4.5px;
  }

  .realestate-test .ret-flow-card__goal img {
    position: static;
    width: 67.5px;
    height: 60px;
    transform: none;
  }

  .realestate-test .ret-flow-card h3,
  .realestate-test .ret-flow-card__step {
    min-height: 93px;
    padding: 12px 7.5px;
    font-size: 13.5px;
  }

  .realestate-test .ret-flow-card__step {
    grid-template-columns: 1fr;
    gap: 4.5px;
  }

  .realestate-test .ret-flow-card__step img {
    width: 48px;
    margin: 0 auto;
  }

  .realestate-test .ret-flow-card__goal {
    flex-direction: column;
    gap: 3px;
    min-height: 114px;
    font-size: 13.5px;
  }

  .realestate-test .ret-flow-card__goal img {
    width: 67.5px;
    height: 60px;
  }

  .realestate-test .ret-bottom-contact {
    padding-top: 97.5px;
  }

  .realestate-test .ret-bottom-contact h2 {
    font-size: 37.5px;
  }

  .realestate-test .ret-bottom-contact > p:first-of-type {
    font-size: 19.5px;
  }

  .realestate-test .ret-bottom-contact__bubbles {
    gap: 10.5px;
    margin: 40.5px 0 33px;
  }

  .realestate-test .ret-bottom-contact__bubbles li {
    width: 138px;
    height: 138px;
    padding: 33px 10.5px 12px;
    font-size: 13.5px;
  }

  .realestate-test .ret-bottom-contact__icon {
    top: 15px;
    width: 25.5px;
    height: 25.5px;
  }

  .realestate-test .ret-bottom-contact__person {
    bottom: -7.5px;
    left: -7.5px;
    width: 57px;
    max-height: 67.5px;
  }

  .realestate-test .ret-bottom-contact__copy {
    font-size: 15px;
  }

  .realestate-test .footer .foot_address_wrap {
    padding-top: 15px;
  }

  /* ラビーネットのボタン：SPは横幅が足りないためロゴと文言を縦積みに */
  .realestate-test .ret-rabbynet__inner {
    flex-direction: column;
    padding: 18px 42px 18px 18px;
    font-size: 15px;
  }

  .realestate-test .ret-rabbynet__inner::after {
    right: 18px;
    width: 21px;
  }

  .realestate-test .ret-rabbynet__logo {
    margin: 0 0 6px;
  }

  .realestate-test .ret-rabbynet__logo-main {
    width: 132px;
  }

  .realestate-test .ret-rabbynet__logo-icon {
    width: 33px;
  }
}

@media (max-width: 390px) {
  .realestate-test .ret-intro-grid {
    grid-template-columns: 1fr;
  }

  .realestate-test .ret-intro-grid > img {
    width: 180px;
  }

  .realestate-test .ret-intro-grid--sale {
    grid-template-columns: 1fr 114px;
  }

  .realestate-test .ret-plan-columns {
    grid-template-columns: 1fr;
    gap: 33px;
  }

  .realestate-test .ret-plan {
    padding-right: 27px;
    padding-left: 27px;
  }

  .realestate-test .ret-sale-contact {
    display: block;
    padding: 42px 25.5px 0;
  }

  .realestate-test .ret-sale-contact__body {
    position: relative;
    z-index: 2;
  }

  .realestate-test .ret-sale-contact > img {
    position: absolute;
    right: -15px;
    bottom: -22.5px;
    width: 127.5px;
    opacity: 0.45;
  }
}
