/* 分譲戸建専用セクション（body.single-residential / .single-residential-main） */
/* 単位: rem（single-land-liquid: 1rem ≈ 10px） */

/* ---------- 基本情報上：タグ＋物件名（Figma: tags + h2） ---------- */
/* land用セレクタより詳細度を上げる: html body.single-residential main.single-land-main ... */
html body:is(.single-land, .single-residential) main.single-land-main .basic-info-area {
  padding-top: 12rem;
}

html body:is(.single-land, .single-residential) main.single-land-main .single-land-title {
  margin-bottom: 0;
}

/* Figma tags: row / gap 4 / padding-bottom 16 */
html body:is(.single-land, .single-residential) main.single-land-main .single-land-title-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0 0 1.6rem;
}

/* ラッパーはレイアウトに干渉させない（NEW / plan / merit を同一行に） */
html body:is(.single-land, .single-residential) main.single-land-main .single-land-title .single-new,
html body:is(.single-land, .single-residential) main.single-land-main .single-land-title .nkai,
html body:is(.single-land, .single-residential) main.single-land-main .single-land-title .merit-list {
  display: contents;
}

/* Figma list_card_tags type=new: #CB0000 / 51×26 / radius 15 / pad 6 12 7 / 12 Medium */
html body:is(.single-land, .single-residential) main.single-land-main .single-land-title .single-new .new-icon {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 5.1rem;
  height: 2.6rem;
  margin: 0;
  padding: 0.6rem 1.2rem 0.7rem;
  border: 0;
  border-radius: 1.5rem;
  background: #cb0000;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
}

/* Figma list_card_tags type=plan / meritピル: radius 15 / pad 6 12 7 / 12 Medium 白字 */
html body:is(.single-land, .single-residential) main.single-land-main .single-land-title .plan,
html body:is(.single-land, .single-residential) main.single-land-main .single-land-title .merit-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 2.6rem;
  margin: 0;
  padding: 0.6rem 1.2rem 0.7rem;
  border: 0;
  border-radius: 1.5rem;
  background: #000;
  background-color: #000;
  background-image: none;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
  list-style: none;
  white-space: nowrap;
}

html body:is(.single-land, .single-residential) main.single-land-main .single-land-title .merit-item {
  background: #172948;
  background-color: #172948;
}

/* Figma h2: Shippori Mincho 50/500 / lh 1 / padding-bottom 48 */
html body:is(.single-land, .single-residential) main.single-land-main .single-land-title h1 {
  position: relative;
  display: block;
  justify-content: initial;
  align-items: initial;
  flex-wrap: initial;
  row-gap: 0;
  margin: 0;
  padding: 0 0 4.8rem;
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 5rem;
  font-weight: 500;
  line-height: 1;
  color: #000;
  letter-spacing: 0;
}

html body:is(.single-land, .single-residential) main.single-land-main .single-land-title h1::before,
html body:is(.single-land, .single-residential) main.single-land-main .single-land-title h1::after {
  content: none;
  display: none;
}

html body:is(.single-land, .single-residential) main.single-land-main .single-land-title h1 p {
  max-width: none;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  line-height: inherit;
}

html body:is(.single-land, .single-residential) main.single-land-main .single-land-title h1 p br {
  display: inline;
}

/* ---------- カルーセル＋基本情報表（Figma: gap 56 / label width） ---------- */
body:is(.single-land, .single-residential) .basic-info-area .single-land-slider {
  align-items: flex-start;
  gap: 5.6rem;
  height: auto;
  margin-bottom: 6.4rem;
  overflow: visible;
}

body:is(.single-land, .single-residential) .basic-info-area .single-land-slider #image-carousel,
body:is(.single-land, .single-residential) .basic-info-area .single-land-slider .single-land-mv {
  width: 52rem;
  max-width: 47.2727272727%;
  flex: 0 0 auto;
  height: auto;
}

body:is(.single-land, .single-residential) .basic-info-area .single-land-slider #image-carousel .splide__track,
body:is(.single-land, .single-residential) .basic-info-area .single-land-slider .single-land-mv {
  height: 39rem;
}

body:is(.single-land, .single-residential) .basic-info-area .single-land-prices {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  margin-bottom: 0;
}

body:is(.single-land, .single-residential) .basic-info-area .single-land-prices ul li {
  align-items: flex-start;
  gap: 2.4rem;
  padding: 1.6rem 0.8rem;
}

body:is(.single-land, .single-residential) .basic-info-area .single-land-prices ul li:not(:last-child) {
  border-bottom: 0.1rem solid #000;
}

body:is(.single-land, .single-residential) .basic-info-area .single-land-prices ul li h4 {
  flex: 0 0 7.2rem;
  width: 7.2rem;
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.5;
  color: #000;
  white-space: nowrap;
}

body:is(.single-land, .single-residential) .basic-info-area .single-land-prices ul li p {
  flex: 1 1 auto;
  width: auto;
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.5;
  color: #000;
}

body:is(.single-land, .single-residential) .basic-info-area .single-land-prices ul li.price p,
body:is(.single-land, .single-residential) .basic-info-area .single-land-prices ul li.price p.ff-noto-serif {
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.5;
  color: #cb0000;
}

body.single-residential .single-residential-main .res-section {
  padding: 12rem 0;
}

body.single-residential .single-residential-main .res-section .heading-p3 {
  margin-bottom: 4rem;
}

/* ---------- 建物情報（センターモード＋サムネ） ---------- */
/* 比率を維持し、画像は見切れさせない（contain） */
body.single-residential .res-building {
  overflow-x: clip;
}

body.single-residential .res-building__carousel {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}

body.single-residential .res-building__main {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

body.single-residential .res-building__main .splide__track {
  overflow: visible;
}

body.single-residential .res-building__main .splide__list {
  align-items: center;
}

body.single-residential .res-building__main .splide__slide {
  opacity: 0.45;
  transition: opacity 0.25s ease;
}

body.single-residential .res-building__main .splide__slide.is-active {
  opacity: 1;
}

body.single-residential .res-building__main .res-building__figure {
  margin: 0;
}

body.single-residential .res-building__main .res-building__figure img,
body.single-residential .res-building__single .res-building__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

body.single-residential .res-building__caption {
  margin-top: 1.2rem;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #666;
  text-align: center;
}

body.single-residential .res-building__main .splide__arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* Figma indicator_arrow（建物：画像上オーバーレイ） */
body.single-residential .res-building__main .splide__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  margin: 0;
  padding: 0.8rem;
  border: 0;
  border-radius: 50%;
  background: #000;
  color: #fff;
  opacity: 1;
  pointer-events: auto;
  box-sizing: border-box;
}

body.single-residential .res-building__main .splide__arrow svg {
  display: block;
  width: 1.5rem;
  height: 0.6rem;
  fill: none;
  color: #fff;
  overflow: visible;
}

body.single-residential .res-building__main .splide__arrow--prev {
  left: calc(24% - 1.55rem);
}

body.single-residential .res-building__main .splide__arrow--next {
  right: calc(24% - 1.55rem);
}

body.single-residential .res-building__main .splide__arrow--prev svg {
  transform: scaleX(-1);
}

body.single-residential .res-building__main .splide__arrow:disabled {
  opacity: 0.35;
}

body.single-residential .res-building__thumbs {
  margin: 2.4rem auto 0;
  max-width: 100%;
  padding: 0;
}

body.single-residential .res-building__thumbs .splide__track {
  overflow: visible;
  padding-bottom: 0.7rem; /* gap 5px + bar 2px */
}

body.single-residential .res-building__thumbs .splide__list {
  justify-content: center;
  align-items: flex-start;
}

/* Figma list_thumb: 80×80 slot / gap 5px / 下線 2px フル幅 */
body.single-residential .res-building__thumbs .splide__slide {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 8rem;
  margin: 0;
  padding: 0 0 0.7rem;
  border: 0 !important;
  outline: none;
  background: transparent;
  box-sizing: border-box;
  cursor: pointer;
  opacity: 1;
}

body.single-residential .res-building__thumbs .splide__slide.is-active {
  border: 0 !important;
  outline: none;
}

body.single-residential .res-building__thumbs .splide__slide img {
  display: block;
  width: 8rem;
  height: 8rem;
  object-fit: contain;
  border: 0.1rem solid #f5f5f5;
  box-sizing: border-box;
  background: #f5f5f5;
}

body.single-residential .res-building__thumbs .splide__slide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 0.2rem;
  background: transparent;
}

body.single-residential .res-building__thumbs .splide__slide.is-active::after,
body.single-residential .res-building__thumbs .splide__slide.is-active.is-visible::after {
  background: #000;
}

body.single-residential .res-building__single {
  max-width: 90rem;
  margin: 0 auto;
}

body.single-residential .res-building__single .res-building__figure {
  margin: 0;
}

/* ---------- プラン情報（Figma accordion + carousels） ---------- */
body.single-residential .res-plan__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

body.single-residential .res-plan__item {
  width: min(110rem, 100%);
  margin: 0 auto;
  padding: 1.6rem 4rem;
  background: #f5f5f5;
  border: 0.1rem solid #ddd;
  box-sizing: border-box;
}

body.single-residential .res-plan__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

body.single-residential .res-plan__toggle-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
}

body.single-residential .res-plan__no {
  display: inline-flex;
  align-items: flex-end;
  padding-right: 4rem;
  font-family: "EB Garamond", "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 400;
  line-height: 1;
  color: #000;
}

body.single-residential .res-plan__no-label {
  font-size: 2.8rem;
}

body.single-residential .res-plan__no-num {
  font-size: 4.8rem;
}

body.single-residential .res-plan__toggle-divider {
  flex: 0 0 0.1rem;
  width: 0.1rem;
  height: 4.8rem;
  background: #000;
}

body.single-residential .res-plan__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4rem;
  padding: 0 4rem;
  min-width: 0;
}

body.single-residential .res-plan__madori {
  font-family: "EB Garamond", "Cormorant Garamond", "Times New Roman", serif;
  font-size: 4.8rem;
  font-weight: 400;
  line-height: 1;
  color: #000;
}

body.single-residential .res-plan__areas {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body.single-residential .res-plan__area {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.5;
  color: #313131;
}

body.single-residential .res-plan__area em {
  font-style: normal;
}

body.single-residential .res-plan__toggle-icon {
  position: relative;
  flex: 0 0 4.8rem;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  background: #000;
}

body.single-residential .res-plan__toggle-icon::before,
body.single-residential .res-plan__toggle-icon::after {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  width: 1.6rem;
  height: 0.2rem;
  background: #fff;
  transform: translate(-50%, -50%);
}

body.single-residential .res-plan__toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.single-residential .res-plan__toggle[aria-expanded="true"] .res-plan__toggle-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

body.single-residential .res-plan__panel {
  padding: 1.6rem 0 0;
}

body.single-residential .res-plan__panel[hidden] {
  display: none !important;
}

body.single-residential .res-plan__floors {
  display: block;
  margin: 0 0 0.1rem;
  padding: 4rem 0 6.4rem;
  border-top: 0.1rem solid #000;
}

body.single-residential .res-plan__floor-carousel {
  width: 100%;
  overflow: hidden;
}

body.single-residential .res-plan__floor-carousel .splide__track {
  overflow: visible;
}

body.single-residential .res-plan__floor-carousel .splide__slide {
  width: 48rem;
  max-width: 100%;
}

body.single-residential .res-plan__floor-single {
  width: min(48rem, 100%);
  margin: 0 auto;
}

body.single-residential .res-plan__floor-carousel figure,
body.single-residential .res-plan__floor-single {
  margin: 0;
}

body.single-residential .res-plan__floor-carousel img,
body.single-residential .res-plan__floor-single img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
}

body.single-residential .res-plan__floor-carousel figcaption,
body.single-residential .res-plan__floor-single figcaption {
  margin-top: 0.8rem;
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
  text-align: right;
  color: #000;
}

body.single-residential .res-plan__floor-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.6rem 2.4rem;
  margin-top: 1.6rem;
}

body.single-residential .res-plan__floor-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

body.single-residential .res-plan__floor-legend-swatch {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border: 0.1rem solid rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

body.single-residential .res-plan__floor-legend-swatch--storage {
  background: #f1eede;
}

body.single-residential .res-plan__floor-legend-swatch--water {
  background: #e4f4fd;
}

body.single-residential .res-plan__floor-legend-label {
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
  color: #000;
}

body.single-residential .res-plan__floor-carousel .splide__arrows {
  display: none;
}

body.single-residential .res-plan__floor-carousel .splide__pagination {
  display: none;
}

body.single-residential .res-plan__detail {
  margin-top: 0;
}

body.single-residential .res-plan__detail-title {
  margin: 0 0 2.4rem;
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.5;
  color: #000;
}

body.single-residential .res-plan__detail-body {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 4rem;
  align-items: flex-start;
  padding-bottom: 4rem;
  overflow: visible;
}

body.single-residential .res-plan__photos {
  flex: 0 1 52rem;
  width: 52rem;
  max-width: 52rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: visible;
}

body.single-residential .res-plan__photo-main,
body.single-residential .res-plan__photo-single {
  position: relative;
  width: 100%;
  overflow: visible;
}

/* Figma 520×390（4:3）。枠は固定比率、画像は見切れなしで上下左右中央 */
body.single-residential .res-plan__photo-main {
  aspect-ratio: 520 / 390;
  background: #000;
}

body.single-residential .res-plan__photo-main .splide__track,
body.single-residential .res-plan__photo-main .splide__list,
body.single-residential .res-plan__photo-main .splide__slide,
body.single-residential .res-plan__photo-main figure {
  height: 100%;
}

body.single-residential .res-plan__photo-main .splide__track {
  overflow: hidden;
}

body.single-residential .res-plan__photo-main figure,
body.single-residential .res-plan__photo-single {
  margin: 0;
}

body.single-residential .res-plan__photo-main img,
body.single-residential .res-plan__photo-single > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: transparent;
}

body.single-residential .res-plan__photo-single > img {
  aspect-ratio: 520 / 390;
  height: auto;
  background: #000;
}

body.single-residential .res-plan__photo-caption {
  display: block;
  margin: 0.8rem 0 0;
  min-height: 2.1rem;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #666;
  text-align: left;
}

body.single-residential .res-plan__photo-main .res-plan__photo-caption,
body.single-residential .res-plan__photo-main figcaption {
  display: none;
}

/* Figma: 矢印は画像左右端（円の中心が辺）／画像高さの中央 */
body.single-residential .res-plan__photo-main .splide__arrows {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: auto;
  pointer-events: none;
  z-index: 2;
}

body.single-residential .res-plan__photo-main .splide__arrow {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  margin: 0;
  padding: 0.8rem;
  border: 0;
  border-radius: 50%;
  background: #000;
  color: #fff;
  opacity: 1;
  pointer-events: auto;
  box-sizing: border-box;
}

body.single-residential .res-plan__photo-main .splide__arrow svg {
  display: block;
  width: 1.5rem;
  height: 0.6rem;
  fill: none;
  color: #fff;
  overflow: visible;
}

body.single-residential .res-plan__photo-main .splide__arrow--prev {
  left: 0;
  transform: translate(-50%, -50%);
}

body.single-residential .res-plan__photo-main .splide__arrow--next {
  right: 0;
  transform: translate(50%, -50%);
}

body.single-residential .res-plan__photo-main .splide__arrow--prev svg {
  transform: scaleX(-1);
}

body.single-residential .res-plan__photo-main .splide__arrow:disabled {
  opacity: 0.35;
}

/* Figma: サムネ固定 80×60（4:3）/ gap 5px / 左寄せ・枚数で伸縮しない */
body.single-residential .res-plan__photo-thumbs {
  margin-top: 1.6rem;
  overflow: hidden;
}

body.single-residential .res-plan__photo-thumbs .splide__track {
  overflow: hidden;
  padding-bottom: 0.8rem; /* gap 下線分 */
}

body.single-residential .res-plan__photo-thumbs .splide__list {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

body.single-residential .res-plan__photo-thumbs .splide__slide {
  position: relative;
  flex: 0 0 auto;
  width: 8rem;
  margin: 0;
  padding: 0 0 0.8rem;
  border: 0 !important;
  outline: none;
  background: transparent;
  box-sizing: border-box;
  cursor: pointer;
  opacity: 1;
}

body.single-residential .res-plan__photo-thumbs .splide__slide.is-active {
  border: 0 !important;
  outline: none;
}

body.single-residential .res-plan__photo-thumbs .splide__slide img {
  display: block;
  width: 8rem;
  height: 6rem;
  object-fit: cover;
  border: 0.1rem solid #f5f5f5;
  box-sizing: border-box;
  background: #f5f5f5;
}

body.single-residential .res-plan__photo-thumbs .splide__slide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 0.3rem;
  background: transparent;
}

body.single-residential .res-plan__photo-thumbs .splide__slide.is-active::after,
body.single-residential .res-plan__photo-thumbs .splide__slide.is-active.is-visible::after {
  background: #000;
}

body.single-residential .res-plan__specs {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body.single-residential .res-plan__specs > div {
  display: flex;
  gap: 2.4rem;
  padding: 1.6rem 0.8rem;
  border-bottom: 0.1rem solid #000;
}

body.single-residential .res-plan__specs dt {
  flex: 0 0 8rem;
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 1.5;
  color: #000;
  white-space: nowrap;
}

body.single-residential .res-plan__specs dd {
  flex: 1;
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 1.8rem;
  line-height: 1.5;
  color: #000;
}

body.single-residential .res-plan__free {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 2;
  color: #333;
}

/* ---------- 設備・仕様（Figma: lineup_tab 2×5 密着グリッド） ---------- */
@media (min-width: 768px) {
  body.single-residential .res-equipment .form-inner {
    width: min(110rem, calc(100% - 10rem));
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
  }
}

body.single-residential .res-equipment__tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 2.4rem;
  padding: 0;
  border-top: 0.1rem solid #ddd;
  border-left: 0.1rem solid #ddd;
  box-sizing: border-box;
}

body.single-residential .res-equipment__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 0;
  padding: 1.6rem 0.8rem;
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.5;
  color: #000;
  text-align: center;
  white-space: nowrap;
  background: #f5f5f5;
  border: 0;
  border-right: 0.1rem solid #ddd;
  border-bottom: 0.1rem solid #ddd;
  cursor: pointer;
  box-sizing: border-box;
}

body.single-residential .res-equipment__tab.is-active {
  color: #fff;
  background: #2b2b2b;
}

body.single-residential .res-equipment__panel {
  display: none;
}

body.single-residential .res-equipment__panel.is-active {
  display: block;
}

body.single-residential .res-equipment__panel[hidden] {
  display: none !important;
}

body.single-residential .res-equipment__panel-inner {
  --res-equip-gap: 2.4rem;
  --res-equip-cols: 3;
  --res-equip-card-w: calc((100% - (var(--res-equip-gap) * (var(--res-equip-cols) - 1))) / var(--res-equip-cols));
  padding: 4rem;
  background: #f5f5f5;
  border: 0.1rem solid #ddd;
  box-sizing: border-box;
}

body.single-residential .res-equipment__catch {
  margin: 0 0 2.4rem;
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  color: #000;
}

body.single-residential .res-equipment__detail {
  margin: 0 0 2.4rem;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.8;
  text-align: center;
  color: #333;
}

body.single-residential .res-equipment__carousel {
  width: 100%;
}

body.single-residential .res-equipment__carousel .splide__track {
  overflow: hidden;
}

body.single-residential .res-equipment__carousel .splide__list {
  display: flex;
  align-items: stretch;
}

body.single-residential .res-equipment__carousel .splide__slide {
  width: var(--res-equip-card-w);
  margin: 0;
  box-sizing: border-box;
}

/* 1〜3枚（PC）: カルーセルなし。カード幅は常に3列基準で同一 */
body.single-residential .res-equipment__carousel.is-static .splide__track {
  overflow: visible;
}

body.single-residential .res-equipment__carousel.is-static .splide__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--res-equip-gap);
  transform: none !important;
  width: 100% !important;
  margin: 0 !important;
}

body.single-residential .res-equipment__carousel.is-static .splide__slide {
  flex: 0 0 var(--res-equip-card-w);
  width: var(--res-equip-card-w) !important;
  max-width: var(--res-equip-card-w);
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.single-residential .res-equipment__carousel.is-static .splide__arrows,
body.single-residential .res-equipment__carousel.is-static .res-figma-indicator,
body.single-residential .res-equipment__carousel.is-static .res-equipment__controls {
  display: none !important;
}

body.single-residential .res-equipment__card {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  width: 100%;
  height: 100%;
}

body.single-residential .res-equipment__media {
  width: 100%;
  overflow: hidden;
  background: #ddd;
}

body.single-residential .res-equipment__media img {
  display: block;
  width: 100%;
  height: 22.5rem;
  object-fit: cover;
}

body.single-residential .res-equipment__title {
  margin: 0;
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.5;
  color: #000;
}

body.single-residential .res-equipment__text {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8;
  color: #313131;
}

/* ---------- Figma indicator（prev | dots | next） ---------- */
body.single-residential .res-figma-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  width: max-content;
  max-width: 100%;
  margin: 4rem auto 0;
}

body.single-residential .res-figma-indicator__dots {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.single-residential .res-figma-indicator__dot-item {
  margin: 0;
  padding: 0;
}

body.single-residential .res-figma-indicator__dot {
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
}

body.single-residential .res-figma-indicator__dot.is-active {
  width: 1rem;
  height: 1rem;
  background: #ddd;
}

body.single-residential .res-figma-indicator .splide__arrow {
  position: static;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  margin: 0;
  padding: 0.8rem;
  border: 0;
  border-radius: 50%;
  background: #000;
  color: #fff;
  opacity: 1;
  box-sizing: border-box;
}

body.single-residential .res-figma-indicator .splide__arrow svg {
  display: block;
  width: 1.5rem;
  height: 0.6rem;
  fill: none;
  color: #fff;
  overflow: visible;
}

body.single-residential .res-figma-indicator .splide__arrow--prev svg {
  transform: scaleX(-1);
}

body.single-residential .res-figma-indicator .splide__arrow:disabled {
  opacity: 0.35;
}

/* 基本情報カルーセル: 矢印は画像左右（中心が端）、ドットは下 */
body:is(.single-land, .single-residential) .basic-info-area .single-land-slider #image-carousel {
  position: relative;
  overflow: visible;
}

body:is(.single-land, .single-residential) .basic-info-area .single-land-slider #image-carousel .splide__track {
  overflow: hidden;
  height: 100%;
}

body:is(.single-land, .single-residential) .basic-info-area .single-land-slider #image-carousel .splide__arrows {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 39rem;
  pointer-events: none;
  z-index: 2;
}

body:is(.single-land, .single-residential) .basic-info-area .single-land-slider #image-carousel .splide__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  margin: 0;
  padding: 0.8rem;
  border: 0;
  border-radius: 50%;
  background: #000;
  color: #fff;
  opacity: 1;
  pointer-events: auto;
  box-sizing: border-box;
}

body:is(.single-land, .single-residential) .basic-info-area .single-land-slider #image-carousel .splide__arrow svg {
  display: block;
  width: 1.5rem;
  height: 0.6rem;
  fill: none;
  color: #fff;
  overflow: visible;
}

body:is(.single-land, .single-residential) .basic-info-area .single-land-slider #image-carousel .splide__arrow--prev {
  left: 0;
  transform: translate(-50%, -50%);
}

body:is(.single-land, .single-residential) .basic-info-area .single-land-slider #image-carousel .splide__arrow--next {
  right: 0;
  transform: translate(50%, -50%);
}

body:is(.single-land, .single-residential) .basic-info-area .single-land-slider #image-carousel .splide__arrow--prev svg {
  transform: scaleX(-1);
}

body:is(.single-land, .single-residential) .basic-info-area .single-land-slider #image-carousel .splide__arrow:disabled {
  opacity: 0.35;
}

/* 土地 建物参考プラン: 矢印はサムネイル列の左右 */
html body.single-land main.single-land-main #planarea .tsankou-plan-img {
  overflow: visible;
}

html body.single-land main.single-land-main #planarea .tsankou-plan-img > .splide:not(.thumb-carousel) {
  position: relative;
  overflow: visible;
  z-index: 2;
}

html body.single-land main.single-land-main #planarea .tsankou-plan-img > .splide:not(.thumb-carousel) > .splide__arrows {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  pointer-events: none;
  z-index: 2;
}

html body.single-land main.single-land-main #planarea .tsankou-plan-img > .splide:not(.thumb-carousel) .splide__arrow {
  position: absolute;
  top: 50%;
  bottom: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  margin: 0;
  padding: 0.8rem;
  border: 0;
  border-radius: 50%;
  background: #000;
  color: #fff;
  opacity: 1;
  pointer-events: auto;
  box-sizing: border-box;
  transform: translateY(-50%);
}

html body.single-land main.single-land-main #planarea .tsankou-plan-img > .splide:not(.thumb-carousel) .splide__arrow svg {
  display: block;
  width: 1.5rem;
  height: 0.6rem;
  fill: none;
  color: #fff;
  overflow: visible;
}

html body.single-land main.single-land-main #planarea .tsankou-plan-img > .splide:not(.thumb-carousel) .splide__arrow--prev {
  left: 0;
  transform: translate(calc(-100% - 0.8rem), -50%);
}

html body.single-land main.single-land-main #planarea .tsankou-plan-img > .splide:not(.thumb-carousel) .splide__arrow--next {
  right: 0;
  transform: translate(calc(100% + 0.8rem), -50%);
}

html body.single-land main.single-land-main #planarea .tsankou-plan-img > .splide:not(.thumb-carousel) .splide__arrow--prev svg {
  transform: scaleX(-1);
}

html body.single-land main.single-land-main #planarea .tsankou-plan-img > .splide:not(.thumb-carousel) .splide__arrow:disabled {
  opacity: 0.35;
}

body:is(.single-land, .single-residential) .basic-info-area .single-land-slider #image-carousel .splide__pagination {
  display: none;
}

body:is(.single-land, .single-residential) .basic-info-area .single-land-slider #image-carousel .res-figma-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

body:is(.single-land, .single-residential) .basic-info-area .single-land-slider #image-carousel .res-figma-dots__item {
  margin: 0;
  padding: 0;
}

body:is(.single-land, .single-residential) .basic-info-area .single-land-slider #image-carousel .res-figma-dots__dot {
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
}

body:is(.single-land, .single-residential) .basic-info-area .single-land-slider #image-carousel .res-figma-dots__dot.is-active {
  width: 1rem;
  height: 1rem;
  background: #ddd;
}

/* トップ画像カルーセルの旧 indicator 行は使わない */
body.single-land .single-land-slider #image-carousel .res-figma-indicator,
body.single-residential .single-land-slider #image-carousel .res-figma-indicator {
  display: none;
}

body.single-residential .res-plan__floor-carousel .res-figma-indicator {
  margin-top: 2.4rem;
}

body.single-residential .res-equipment__carousel .res-figma-indicator {
  margin-top: 4rem;
}


@media (max-width: 767px) {
  body.single-residential .single-residential-main .res-section {
    padding: 6rem 0;
    padding-bottom: 0;
  }

  body.single-residential .single-residential-main .res-equipment {
    padding-top: 0;
    padding-bottom: 6rem;
  }

  body.single-residential #res-equipment {
    margin-top: 8rem;
  }

  body.single-residential .res-building__main .res-building__figure img,
  body.single-residential .res-building__single .res-building__figure img {
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  body.single-residential .res-building__main .splide__arrow {
    width: 3.1rem;
    height: 3.1rem;
  }

  body.single-residential .res-building__main .splide__arrow--prev {
    left: calc(8% - 1.55rem);
  }

  body.single-residential .res-building__main .splide__arrow--next {
    right: calc(8% - 1.55rem);
  }

  body.single-residential .res-building__thumbs {
    margin-top: 1.6rem;
    overflow: hidden;
    max-width: 100%;
  }

  body.single-residential .res-building__thumbs .splide__track {
    overflow: hidden;
    padding-bottom: 0.7rem;
  }

  body.single-residential .res-building__thumbs .splide__list {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100% !important;
  }

  body.single-residential .res-building__thumbs .splide__slide {
    flex: 1 1 0 !important;
    min-width: 0;
    width: auto !important;
    height: auto !important;
    margin-right: 0 !important;
    padding: 0 0 0.7rem;
  }

  body.single-residential .res-building__thumbs .splide__slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }

  body.single-residential .res-plan__item {
    padding: 1.6rem 2rem;
  }

  body.single-residential .res-plan__toggle-main {
    align-items: flex-end;
  }

  body.single-residential .res-plan__no {
    padding-right: 2rem;
  }

  body.single-residential .res-plan__no-label {
    font-size: 1.8rem;
  }

  body.single-residential .res-plan__no-num {
    font-size: 2.5rem;
  }

  body.single-residential .res-plan__toggle-divider {
    height: 2.5rem;
  }

  /* Figma: No.|間取り が1行、面積はその下 */
  body.single-residential .res-plan__summary {
    display: contents;
  }

  body.single-residential .res-plan__madori {
    font-size: 2.5rem;
    padding: 0 0 0 2rem;
  }

  body.single-residential .res-plan__areas {
    flex-basis: 100%;
    width: 100%;
    gap: 0.2rem;
    padding-top: 0.4rem;
  }

  body.single-residential .res-plan__area {
    font-size: 1.2rem;
  }

  body.single-residential .res-plan__toggle-icon {
    flex-basis: 4rem;
    width: 4rem;
    height: 4rem;
  }

  body.single-residential .res-plan__floors {
    padding: 2.4rem 0 4rem;
  }

  body.single-residential .res-plan__detail-title {
    font-size: 2.2rem;
  }

  body.single-residential .res-plan__detail-body {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2.4rem;
    padding-bottom: 2.4rem;
  }

  body.single-residential .res-plan__photos {
    flex: none;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  body.single-residential .res-plan__specs {
    flex: none;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
  }

  body.single-residential .res-plan__specs > div {
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
  }

  body.single-residential .res-plan__photo-main .splide__arrows {
    overflow: visible;
  }

  body.single-residential .res-plan__photo-main,
  body.single-residential .res-plan__photo-single {
    overflow: visible;
  }

  body.single-residential .res-plan__specs dt {
    flex-basis: 7.2rem;
    font-size: 1.4rem;
  }

  body.single-residential .res-plan__specs dd {
    font-size: 1.4rem;
  }

  body.single-residential .res-plan__free {
    font-size: 1.4rem;
  }

  body.single-residential .res-equipment .form-inner {
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
  }

  body.single-residential .res-equipment__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 2.4rem;
    padding: 0;
    overflow: visible;
    border-top: 0.1rem solid #ddd;
    border-left: 0.1rem solid #ddd;
    border-right: 0;
    border-bottom: 0;
  }

  body.single-residential .res-equipment__tab {
    flex: none;
    min-width: 0;
    min-height: 4.8rem;
    padding: 1.2rem 0.8rem;
    font-size: 1.3rem;
    line-height: 1.4;
    white-space: normal;
    background: #f5f5f5;
    border: 0;
    border-right: 0.1rem solid #ddd;
    border-bottom: 0.1rem solid #ddd;
    margin: 0;
  }

  body.single-residential .res-equipment__tab.is-active {
    position: relative;
    z-index: 1;
    color: #fff;
    background: #2b2b2b;
  }

  /* 末尾タブ（品質・アフターサービス想定）を全幅 */
  body.single-residential .res-equipment__tab:last-child {
    grid-column: 1 / -1;
  }

  body.single-residential .res-equipment__panel-inner {
    --res-equip-cols: 1;
    --res-equip-gap: 0rem;
    padding: 2.4rem 1.6rem 3.2rem;
  }

  body.single-residential .res-equipment__catch {
    margin: 0 0 2rem;
    font-size: 2rem;
    line-height: 1.5;
  }

  body.single-residential .res-equipment__detail {
    margin: 0 0 2rem;
    font-size: 1.4rem;
    line-height: 1.8;
  }

  body.single-residential .res-equipment__carousel.is-static .splide__list {
    flex-direction: column;
    gap: 2.4rem;
  }

  body.single-residential .res-equipment__carousel.is-static .splide__slide {
    flex: 0 0 auto;
    width: 100% !important;
    max-width: none;
  }

  body.single-residential .res-equipment__media img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  body.single-residential .res-equipment__title {
    font-size: 1.8rem;
  }

  body.single-residential .res-equipment__text {
    font-size: 1.4rem;
    line-height: 1.8;
  }

  body.single-residential .res-figma-indicator {
    gap: 2rem;
    margin-top: 3.2rem;
  }

  body.single-residential .res-figma-indicator .splide__arrow {
    width: 3.1rem;
    height: 3.1rem;
  }

  html body:is(.single-land, .single-residential) main.single-land-main .basic-info-area {
    padding-top: 0;
  }

  html body:is(.single-land, .single-residential) main.single-land-main .single-land-title-label {
    padding-bottom: 1.2rem;
  }

  html body:is(.single-land, .single-residential) main.single-land-main .single-land-title h1 {
    padding: 0 0 3.2rem;
    font-size: 2.8rem;
    line-height: 1.3;
  }

  body:is(.single-land, .single-residential) .basic-info-area .single-land-slider {
    flex-direction: column;
    gap: 3.2rem;
    margin-bottom: 4rem;
  }

  body:is(.single-land, .single-residential) .basic-info-area .single-land-slider #image-carousel,
  body:is(.single-land, .single-residential) .basic-info-area .single-land-slider .single-land-mv {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  body:is(.single-land, .single-residential) .basic-info-area .single-land-slider #image-carousel .splide__track,
  body:is(.single-land, .single-residential) .basic-info-area .single-land-slider .single-land-mv {
    height: auto;
    aspect-ratio: 520 / 390;
  }

  body:is(.single-land, .single-residential) .basic-info-area .single-land-slider #image-carousel .splide__arrows {
    height: auto;
    bottom: auto;
    aspect-ratio: 520 / 390;
  }

  html body.single-land main.single-land-main #planarea .tsankou-plan-img > .splide:not(.thumb-carousel) .splide__arrow {
    width: 3.1rem;
    height: 3.1rem;
    left: auto;
    right: auto;
  }

  html body.single-land main.single-land-main #planarea .tsankou-plan-img > .splide:not(.thumb-carousel) .splide__arrow--prev {
    left: 0;
    transform: translateY(-50%);
  }

  html body.single-land main.single-land-main #planarea .tsankou-plan-img > .splide:not(.thumb-carousel) .splide__arrow--next {
    right: 0;
    transform: translateY(-50%);
  }

  body:is(.single-land, .single-residential) .basic-info-area .single-land-prices ul li {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.4rem 0;
  }

  body:is(.single-land, .single-residential) .basic-info-area .single-land-prices ul li h4 {
    flex-basis: 6.4rem;
    width: 6.4rem;
    font-size: 1.6rem;
    font-weight: 500;
  }

  body:is(.single-land, .single-residential) .basic-info-area .single-land-prices ul li p {
    font-size: 1.4rem;
    font-weight: 400;
  }

  body:is(.single-land, .single-residential) .basic-info-area .single-land-prices ul li.price p,
  body:is(.single-land, .single-residential) .basic-info-area .single-land-prices ul li.price p.ff-noto-serif {
    font-size: 2.2rem;
  }
}

/* ---------- 戸建 販売区画 4列（区画 / 価格 / 土地面積 / 建物面積） ---------- */
/* テーブル本体は Figma どおり 1100px（fix-inner の左右50pxを打ち消し） */
@media (min-width: 768px) {
  body.single-residential .sales_section_change_area > .fix-inner,
  body.single-residential .sales_section_change_area > .form-inner {
    width: min(110rem, calc(100% - 10rem));
    max-width: 110rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
}

body.single-residential main.single-land-main .sales_section_change_area .single-land-division,
body.single-residential main.single-land-main .sales_section_change_area .single-land-division ul {
  width: 100%;
  max-width: 110rem;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body.single-residential main.single-land-main .single-land-division ul li p {
  width: 25%;
}

/* Figma 販売表: ヘッダー #2B2B2B / 区画列 #DDD / 他白 / 枠 #DDD */
body.single-residential main.single-land-main .single-land-division ul li.division-header,
body.single-residential main.single-land-main .single-land-division ul li.division-header p {
  background-color: #2b2b2b;
  color: #fff;
  border-color: #ddd;
}

body:is(.single-land, .single-residential) main.single-land-main .single-land-division ul li.division-header p.division-price-pre {
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1.5;
}

body.single-residential main.single-land-main .single-land-division ul li:not(.division-header) p {
  background-color: #fff;
  border-color: #ddd;
  color: #000;
}

body:is(.single-land, .single-residential) main.single-land-main .single-land-division ul li p {
  font-weight: 400;
}

body:is(.single-land, .single-residential) main.single-land-main .single-land-division ul li.division-header {
  background-color: #2b2b2b;
}

body:is(.single-land, .single-residential) main.single-land-main .single-land-division ul li:not(.division-header) p:first-child {
  background-color: #ddd;
}

@media (max-width: 767px) {
  body:is(.single-land, .single-residential) main.single-land-main .single-land-section {
    margin-bottom: 0;
  }

  body:is(.single-land, .single-residential) main.single-land-main .single-land-division ul li p {
    font-size: 1.4rem;
    line-height: 1.2;
  }

  body.single-land main.single-land-main .single-land-division ul li:not(.division-header) p:first-child {
    justify-content: center;
    text-align: center;
    padding-right: 0;
  }

  body.single-residential main.single-land-main .single-land-division ul li:not(.division-header) p {
    word-break: break-all;
    text-align: center;
    justify-content: center;
    padding-right: 0;
  }

  body.single-residential main.single-land-main .single-land-division ul li p:first-child,
  body.single-residential main.single-land-main .single-land-division ul li p:nth-child(2),
  body.single-residential main.single-land-main .single-land-division ul li p:nth-child(3),
  body.single-residential main.single-land-main .single-land-division ul li p:nth-child(4) {
    width: 25%;
  }

  body:is(.single-land, .single-residential) main.single-land-main .single-land-division ul li.division-header p.division-price-pre {
    flex-direction: column;
    line-height: 1.2;
  }
}

/* 戸建 問い合わせ先見出し */
body.single-residential main.single-land-main .bottom-inquiry h2 {
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  text-align: center;
}

/* 末尾問い合わせ CTA（Figma CTA_area: #F5F5F5 / 金・黒） */
body:is(.single-land, .single-residential) main.single-land-main .top-inquiry {
  background: #f5f5f5;
  padding: 4rem;
  box-sizing: border-box;
}

body:is(.single-land, .single-residential) main.single-land-main .top-inquiry .top-inquiry__inquiry a {
  background: #c9a964;
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-weight: 500;
}

body:is(.single-land, .single-residential) main.single-land-main .top-inquiry .top-inquiry__reserve a {
  background: #000;
  color: #fff;
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-weight: 500;
}
