/*
 * 物件サイト（/property/）だけで使う部品（2026-11-13 追加）
 * lp_suumo の通常版にあり、新デザインのモックに無かったもの：
 * 1. 物件の紹介（ABOUT）  2. 工事の進み具合  3. 地図  4. 暮らしの周辺と学区
 * 5. ポイントが2つのとき  6. 担当の頭文字・肩書き  7. 画面下の帯の担当者名  8. 注意書き・小さな補足
 * style.css・sub.css の変数（--ink・--paper・--rule・--muted など）をそのまま使う。
 */

/* ================= 1. 物件の紹介（ABOUT） ================= */
.pd-concept .pd-ttl {
  margin-bottom: 20px;
}
.pd-concept-lead {
  font-size: 16px;
  line-height: 2;
  color: var(--ink);
}
.pd-concept-txt {
  margin-top: 16px;
  font-size: 14px;
  line-height: 2;
  color: var(--dark);
}

/* ================= 2. 工事の進み具合（売主物件・工事中） ================= */
.pd-progress-head {
  display: grid;
  gap: 12px;
  padding: 24px 28px;
  background: var(--paper);
}
.pd-progress-summary {
  font-size: 14px;
  line-height: 1.9;
}
.pd-progress-status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  font-size: 12px;
  color: var(--muted);
}
.pd-progress-status b {
  font-size: 15px;
  color: var(--ink);
}
.pd-steps {
  margin-top: 28px;
  display: grid;
  gap: 0;
  border-left: 1px solid var(--rule);
}
.pd-steps > li {
  position: relative;
  padding: 0 0 36px 28px;
}
.pd-steps > li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: #fff;
}
.pd-steps > li.is-latest::before {
  background: var(--ink);
}
.pd-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.pd-step-head .en {
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.pd-step-head em {
  padding: 1px 8px;
  background: var(--ink);
  color: #fff;
  font-style: normal;
  font-size: 11px;
}
.pd-steps h3 {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}
.pd-steps h3 + p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--dark);
}
.pd-step-photos {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pd-step-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.pd-step-photos span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* ================= 3. 地図 ================= */
.pd-access-lead {
  margin: -12px 0 20px;
  font-size: 15px;
  line-height: 1.9;
}
.pd-map {
  margin-top: 24px;
}
.pd-map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule);
}

/* ================= 4. 暮らしの周辺と学区（売主物件） ================= */
.pd-life .pd-sub:first-of-type {
  margin-top: 0;
}
.pd-schools {
  display: grid;
  gap: 8px;
}
.pd-schools li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border: 1px solid var(--rule);
  font-size: 14px;
}
.pd-school-level {
  justify-self: start;
  padding: 2px 8px;
  background: var(--paper);
  font-size: 11px;
  color: var(--dark);
}
.pd-school-walk {
  font-size: 13px;
  color: var(--dark);
  white-space: nowrap;
}
.pd-env {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pd-env img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.pd-env p {
  margin-top: 8px;
  display: grid;
  gap: 4px;
  justify-items: start;
  font-size: 13px;
}
.pd-env small {
  font-size: 12px;
  color: var(--muted);
}
.pd-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ================= 5. ポイントが2つ・1つのとき ================= */
/* スマホ（767px以下）は sub.css で1列。このファイルは sub.css の後に読むので、PC・タブレットだけに効かせる */
@media (min-width: 768px) {
  .pd-points:has(> li:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pd-points:has(> li:only-child) {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ================= 6. 担当の頭文字・肩書き ================= */
.pd-card-face.is-initial {
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: #b4b4b4;
}
.pd-staff-name small {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.pd-staff-role {
  margin-top: 4px;
  font-size: 12px;
  color: var(--dark);
}

/* ================= 7. 画面下の帯：担当者名 ================= */
.pd-bar-staff {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

/* ================= 8. 注意書き・小さな補足 ================= */
.pd-shots-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.pd-plan-none {
  display: grid;
  place-items: center;
  min-height: 200px;
  padding: 24px;
  background: var(--paper);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.pd-plan-txt {
  margin-top: 20px;
  font-size: 14px;
  line-height: 2;
}
.pd-disclaimer {
  width: var(--w);
  margin: 40px auto 0;
  padding-bottom: 40px; /* フッターの罫線に文字が接しないように */
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

@media (max-width: 768px) {
  .pd-step-photos,
  .pd-env {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pd-schools li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .pd-steps > li {
    padding-left: 20px;
  }
  .pd-progress-head {
    padding: 20px;
  }
}

/* 物件概要の前の要約（構造化データの説明文と同じ文） */
.pd-summary {
  margin: -8px 0 24px;
  font-size: 14px;
  line-height: 2;
  color: var(--dark);
}

/* ================= 9. 物件一覧：会員 ================= */
.pc-members {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.pl-members {
  width: var(--w);
  margin: 32px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 18px 24px;
  border: 1px solid var(--ink);
  font-size: 13px;
  line-height: 1.8;
}
.pl-members.is-guest {
  border-color: var(--rule);
  background: var(--paper);
}
.pl-members-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  font-weight: 700;
}
.pl-members-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e9b5f;
}
.pl-members b {
  margin: 0 2px;
  font-size: 15px;
}
.pl-members > a:not(.readmore) {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ================= 10. エリアから探す（一覧の下・エリア別ページの下） ================= */
.pl-areas {
  border-top: 1px solid var(--rule);
}
.pl-areas-inner {
  width: var(--w);
  margin: 0 auto;
  padding: 72px 0 88px;
}
.pl-areas .pd-note {
  margin: -16px 0 28px;
}
.pl-area-group + .pl-area-group {
  margin-top: 28px;
}
.pl-area-group h3 {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
}
.pl-area-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pl-area-group a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  transition: border-color 0.25s;
}
.pl-area-group a:hover {
  border-color: var(--ink);
}
.pl-area-group small {
  font-size: 11px;
  color: var(--muted);
}

/* ================= 11. エリア別ページ ================= */
.pa {
  width: var(--w);
  margin: 0 auto;
  padding: 56px 0 88px;
}
.pa-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.pa-facts > div {
  padding: 18px 20px 18px 0;
  border-bottom: 1px solid var(--rule);
}
.pa-facts dt {
  font-size: 12px;
  color: var(--muted);
}
.pa-facts dd {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}
.pa-cta {
  margin-top: 32px;
}
.pa-cta .hex-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 28px;
  font-size: 14px;
}
.pa-cta svg {
  width: 22px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.pa-kind {
  margin-top: 72px;
}
.pa-kind .pd-ttl small {
  margin-left: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.pa-back {
  margin-top: 56px;
}
@media (max-width: 768px) {
  .pa-facts {
    grid-template-columns: 1fr;
  }
  .pl-members {
    padding: 16px;
  }
}

/* ================= 12. スタッフ紹介：登録された項目（data/staff.json の kana・role・licenses・message・qa） ================= */
.sf-name small {
  margin-left: 12px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.sf-role {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--rule);
}
.sf-licenses {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sf-licenses li {
  padding: 3px 10px;
  background: var(--paper);
  font-size: 12px;
}
.sf-msg {
  margin: 20px 0 0;
  padding: 16px 20px;
  border-left: 3px solid var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.9;
}
.sf-qa {
  margin-top: 20px;
  display: grid;
  gap: 12px;
  font-size: 14px;
  line-height: 1.8;
}
.sf-qa dt {
  font-weight: 700;
}
.sf-qa dd {
  margin: 4px 0 0;
  color: var(--dark);
}
.sf-qa .en {
  margin-right: 8px;
  font-weight: 600;
}
.sf-none {
  padding: 24px;
  background: var(--paper);
  font-size: 14px;
  color: var(--dark);
}

/* ================= 13. 掲載終了の物件ページ ================= */
.pe {
  width: var(--w);
  margin: 0 auto;
  padding: 56px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.pe-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(0.35);
}
.pe-body:only-child {
  grid-column: 1 / -1;
  max-width: 720px;
}
.pe-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.pe-actions .hex-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 28px;
  font-size: 14px;
}
.pe-actions .hex-pill svg {
  width: 22px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
@media (max-width: 768px) {
  .pe {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ================= 14. 会員ページのログイン画面 ================= */
.mg {
  width: var(--w);
  margin: 0 auto;
  padding: 56px 0 100px;
  display: grid;
  justify-items: center;
}
.mg-box {
  width: 100%;
  max-width: 480px;
  padding: 36px 32px 32px;
  border: 1px solid var(--ink);
  background: #fff;
}
.mg-label {
  display: block;
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 700;
}
.mg-label:first-of-type {
  margin-top: 0;
}
.mg-input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #b5b5b5;
  background: #fff;
  font: inherit;
  font-size: 16px;
}
.mg-input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgb(31 111 235 / 0.2);
}
.mg-pw {
  position: relative;
}
.mg-pw .mg-input {
  padding-right: 72px;
}
.mg-pw button {
  position: absolute;
  right: 8px;
  top: 50%;
  translate: 0 -50%;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  background: var(--paper);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.mg-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 28px;
  justify-content: center;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.mg-error {
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid var(--c-price);
  background: #fffafa;
  color: var(--c-price);
  font-size: 13px;
}
.mg-help {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.mg-help a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mg-back {
  margin-top: 20px;
}

/* ================= 9. 表示の調整（2026-11-13 見直し） ================= */
/* 写真直下の基本情報：項目が3の倍数でないとき、最後の項目を横に伸ばして空きマスを作らない（PCは3列） */
@media (min-width: 768px) {
  .pd-facts > div:last-child:nth-child(3n + 1) {
    grid-column: span 3;
  }
  .pd-facts > div:last-child:nth-child(3n + 2) {
    grid-column: span 2;
  }
}
/* スマホは2列。奇数個なら最後を2列分に */
@media (max-width: 767px) {
  .pd-facts > div:last-child:nth-child(odd) {
    grid-column: span 2;
  }
  .pd-facts dd b {
    font-size: 19px;
  }
  .pd-facts .is-price b {
    font-size: 24px;
  }
}

/* 毎月かかる費用：見出しは折り返さず、値は右寄せで折り返す。合計は「円／月」まで1行で */
.pd-cost dt {
  flex: none;
  max-width: 60%;
}
.pd-cost dd {
  min-width: 0;
  text-align: right;
}
.pd-cost .is-sum {
  align-items: center;
}
.pd-cost .is-sum dt small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.pd-cost .is-sum dd {
  white-space: nowrap;
}

/* 写真：間取り図・区画図は切り取らずに全体を見せる */
.pd-photo.is-plan {
  background: #fff;
  outline: 1px solid var(--rule);
  outline-offset: -1px;
}
.pd-photo.is-plan img {
  object-fit: contain;
  padding: 8px;
}
.pd-photos + .pd-more {
  margin-top: 20px;
}

/* 周辺の施設：1列に並べ、種類は折り返さない（2列だと施設名・種類が細かく折り返していた） */
.pd-near {
  grid-template-columns: minmax(0, 1fr);
}
.pd-near li {
  grid-template-columns: 104px minmax(0, 1fr) auto;
}
.pd-near-type {
  white-space: nowrap;
}
.pd-near + .pd-more {
  margin-top: 16px;
}
@media (max-width: 767px) {
  .pd-near li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
  }
  .pd-near-type {
    grid-column: 1 / -1;
  }
}

/* 申し込みカードの下の記事リンク：語の途中（「住／宅ローン」）で折り返さない */
.pd-loan {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* スマホ：読んでおきたい記事は「画像＋タイトル」の横並びにして縦に長くしない */
@media (max-width: 767px) {
  .pd-articles .nl-grid.is-small {
    gap: 20px;
  }
  .pd-articles .nl-card a {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }
  .pd-articles .nl-body {
    padding-top: 0;
  }
  .pd-articles .nl-vol {
    font-size: 9px;
    padding: 2px 6px;
  }
  .pd-articles .nl-grid.is-small .nl-title {
    font-size: 14px;
  }
}

/* スマホ：近くのエリアの物件は横スライド（縦に6件並ぶと長すぎる） */
@media (max-width: 767px) {
  .pd-related .pl-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -20px;
    padding: 0 20px 12px;
    scroll-padding: 0 20px;
    scrollbar-width: thin;
  }
  .pd-related .pl-grid:has(> .pc:only-child) {
    grid-auto-columns: 100%;
  }
}

/* ================= 10. 全ページ見直し（2026-11-13） ================= */
/* 間取り欄の表：「リフォーム」「所在階・構造」などの見出しが、隣の長い値に押されて縦に割れないように */
.pd-spec dt {
  flex: none;
  max-width: 45%;
}
.pd-spec dd {
  min-width: 0;
  text-align: right;
}
@media (max-width: 767px) {
  /* 物件概要の見出し列：「完成時期(築年月)」が収まる幅に */
  .pd-row {
    grid-template-columns: 132px minmax(0, 1fr);
  }
  .pd-row dt {
    padding-right: 8px;
  }
  /* 記事の号数：9px は小さすぎるので 10px に */
  .pd-articles .nl-vol {
    font-size: 10px;
  }
}
/* スマホ：画面下の申し込み帯。価格帯（5,180～5,680万円）でも価格・ボタンが2行に割れないように */
@media (max-width: 767px) {
  .pd-bar-price {
    min-width: 0;
    line-height: 1.25;
  }
  .pd-bar-price b {
    white-space: nowrap;
  }
  .pd-bar-price.is-range b {
    font-size: 19px;
  }
  .pd-bar-btn {
    flex: none;
    white-space: nowrap;
    padding: 0 20px;
  }
}

/* 価格の「億」：大きな数字（b.en）の中にあるため数字と同じ大きさになっていた。後ろの「万円」と同じ大きさ・書体にそろえる */
.pd-facts .oku,
.pd-card-price .oku,
.pd-bar-price .oku {
  margin: 0 1px;
  font-family: var(--jp);
  font-weight: 700;
  letter-spacing: 0;
}
.pd-facts .oku {
  font-size: 14px; /* .pd-facts dd */
}
.pd-card-price .oku {
  font-size: 15px; /* .pd-card-price */
}
.pd-bar-price .oku {
  font-size: 13px; /* .pd-bar-price */
}

/* ================= 15. サブメニュー（物件詳細・通常版のページ内メニュー。2026-11-26） ================= */
/* 左の列の先頭に置き、スクロールすると画面上部に追従する。ヘッダーが隠れているときは最上部、出ているときはその下 */
html:has(.pd-nav) {
  scroll-padding-top: calc(var(--hd-h-s) + 64px);
}
.pd-nav {
  position: sticky;
  top: var(--hd-h-s);
  z-index: 50;
  margin: -12px 0 32px;
  background: #fffffff2;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: top 0.7s var(--ease-expo);
}
.hd.is-hidden ~ #main .pd-nav {
  top: 0;
}
.pd-nav ul {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.pd-nav ul::-webkit-scrollbar {
  display: none;
}
.pd-nav li {
  flex: none;
}
.pd-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.25s;
}
.pd-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-expo);
}
.pd-nav a:hover,
.pd-nav a[aria-current="true"] {
  color: var(--ink);
}
.pd-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}
@media (max-width: 767px) {
  .pd-nav {
    margin: -8px -20px 24px; /* 画面の端まで（--w の左右20px） */
    padding: 0 8px;
  }
  .pd-nav a {
    min-height: 44px;
    padding: 0 12px;
  }
  .pd-nav a::after {
    left: 12px;
    right: 12px;
  }
}
