@import url("/nd/pages/lower-common.css");

/* 「今の状況に近いほう」を選ぶ2枚。トップのお悩みカードと同じ、写真+下へ濃くなる膜+黄緑の「?」 */
.page-owner_souzoku-akiya .sa-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.page-owner_souzoku-akiya .sa-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-card);
}
.page-owner_souzoku-akiya .sa-card-head {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: 28px;
  color: #fff;
  background: #2a2b2c;
}
.page-owner_souzoku-akiya .sa-card-head img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-owner_souzoku-akiya .sa-card-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 21, 22, 0.05) 20%, rgba(20, 21, 22, 0.85) 100%);
}
.page-owner_souzoku-akiya .sa-card-head h3 {
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
}
.page-owner_souzoku-akiya .sa-card-head h3::before {
  content: "?";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--brand-green);
  color: var(--color-text);
  font-size: 19px;
  line-height: 1;
}
.page-owner_souzoku-akiya .sa-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 26px 28px 30px;
}
.page-owner_souzoku-akiya .sa-card-label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}
.page-owner_souzoku-akiya .sa-card-body .check-list {
  display: grid;
  gap: 8px;
}
.page-owner_souzoku-akiya .sa-card-body .btn {
  width: 100%;
  margin-top: auto;
}

/* 分かれ道の図: 問いから2枚のカードへ線で分ける */
.page-owner_souzoku-akiya .sa-branch-q {
  width: fit-content;
  margin-inline: auto;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.page-owner_souzoku-akiya .sa-branch-lines {
  position: relative;
  height: 56px;
}
.page-owner_souzoku-akiya .sa-branch-lines span {
  position: absolute;
  top: 28px;
  bottom: 0;
  width: calc(25% + 6px);
  border-top: 3px solid var(--brand-green);
}
.page-owner_souzoku-akiya .sa-branch-lines span:first-child {
  right: 50%;
  border-left: 3px solid var(--brand-green);
}
.page-owner_souzoku-akiya .sa-branch-lines span:last-child {
  left: 50%;
  border-right: 3px solid var(--brand-green);
}
.page-owner_souzoku-akiya .sa-branch-lines::before {
  content: "";
  position: absolute;
  left: calc(50% - 1.5px);
  top: 0;
  width: 3px;
  height: 28px;
  background: var(--brand-green);
}
.page-owner_souzoku-akiya .sa-card {
  position: relative;
  overflow: visible;
}
.page-owner_souzoku-akiya .sa-card-head {
  border-radius: 15px 15px 0 0;
  overflow: hidden;
}
.page-owner_souzoku-akiya .sa-card-tag {
  position: absolute;
  z-index: 2;
  top: -16px;
  left: 28px;
  padding: 4px 16px;
  background: var(--brand-green);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.page-owner_souzoku-akiya .sa-prep-note {
  margin-top: 28px;
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
}
@media (max-width: 760px) {
  .page-owner_souzoku-akiya .sa-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .page-owner_souzoku-akiya .sa-card-head {
    min-height: 220px;
    padding: 22px 20px;
  }
  .page-owner_souzoku-akiya .sa-card-head h3 {
    font-size: 19px;
  }
  .page-owner_souzoku-akiya .sa-card-body {
    padding: 22px 20px 24px;
  }
  /* スマホは問いと短い線だけ。どちらのカードかは札で分かる */
  .page-owner_souzoku-akiya .sa-branch-lines {
    height: 30px;
  }
  .page-owner_souzoku-akiya .sa-branch-lines span {
    display: none;
  }
  .page-owner_souzoku-akiya .sa-branch-q {
    border-radius: 12px;
    font-size: 15px;
    text-align: center;
  }
  .page-owner_souzoku-akiya .sa-prep-note {
    text-align: left;
  }
}

/* 際立たせる文字は明朝(決まりは style.css の :root) */
.page-owner_souzoku-akiya .sa-card-head h3 {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
}

/* スマホ・タブレットの再総点検(2026-11-10): iPhone の Safari で言葉の途中から折れる所は、句読点・空白・<wbr> の所でだけ折る */
@media (max-width: 1100px) {
  .page-owner_souzoku-akiya :is(.sa-branch-q, .nx-glass p, main .btn) {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  .page-owner_souzoku-akiya main .btn {
    text-align: center;
  }
}
/* 帯の写真(生け垣と門のある家)は、玄関と門が右寄りにあるので、スマホの細い帯でも玄関が入るよう右へ寄せる(たいち 11/13 差し替え) */
.page-owner_souzoku-akiya .page-hero-photo img {
  object-position: 75% 50%;
}
