.property-list {
  margin-top: 80px;
  margin-bottom: 120px;
}

.c-breadcrumb__nav {
  margin-top: 20px;
  margin-bottom: 30px;
}

.c-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.4rem;
  color: #666;
}

.c-breadcrumb li {
  display: flex;
  align-items: center;
}

.c-breadcrumb li + li::before {
  content: "/";
  margin: 0 6px;
  color: #999;
}

.c-breadcrumb a {
  color: #333;
  text-decoration: none;
}

.c-breadcrumb a:hover {
  text-decoration: underline;
}

.c-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.c-detail__left {
  text-align: left;
}

.c-detail__price {
  color: #dc6e75;
  font-size: 3.2rem;
}

.c-detail__price-yen {
  color: #333;
  font-size: 1.6rem;
}

.c-detail__right .c-button__box {
  margin-top: 0;
}

.c-detail__table {
  display: grid;
  width: 100%;
}

@media screen and (max-width: 768px) {

  .property-list {
    margin-top: min(13.3vw, 50px);
    margin-bottom: min(13.3vw, 50px);
  }
}

.p-land-sale__title {
  font-size: 2rem;
}

.c-card--wide {
  margin-top: 40px;
  border: 1px solid #ccc;
  padding: 20px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

@media screen and (max-width: 768px) {

  .c-card--wide {
    margin-top: min(10.66vw, 40px);
    padding: 2rem;
  }
}

.c-card--wide:hover {
  opacity: 0.8;
}

.c-card__body {
  display: flex;
  gap: 30px;
}

.c-card__body__img {
  max-width: 250px;
  width: 100%;
  aspect-ratio: 80 / 60;
}

.c-card__body__img-image {
  width: 100%;  
  height: auto;
}

.c-card__body__detail {
  flex: 1;
}

.c-card__body__detail-table {
  width: 100%;
}

.c-card__body__detail-table tr {
  border-bottom: 1px solid #ccc;
}

.c-card__body__detail-table tr:last-child {
  border: none;
}

.c-card__body-th {
  font-weight: bold;
  width: 160px;
  padding: 10px 0;
  text-align: left;
}

.c-card__body-td {
  padding: 10px 0;
  text-align: left;
}

.c-card__body-td--price {
  font-weight: bold;
  color: #dc6e75;
  font-size: 1.8rem;
}

.c-card__body-td--price span {
  color: #333;
  font-size: 1.6rem;
  font-weight: normal;
}

@media screen and (max-width: 768px) {

  .c-card__body {
    flex-direction: column;
    gap: min(2.66vw, 10px);
  }

  .c-card__body__img {
    max-width: none;
  }

  .c-card__body__detail-table tr {
    display: grid;
    grid-template-columns: 40% 1fr;
    align-items: center;
  }

  .c-card__body-th {
    padding: min(2.66vw, 10px) 0;
    font-size: 1.5rem;
    width: auto;
  }

  .c-card__body-td {
    font-size: 1.5rem;
    padding: min(2.66vw, 10px) 0;
    padding-left: min(1.3vw, 10px);
  }

  .c-card__body-td--price {
    font-size: 1.8rem;
  }

  .c-card__body-td--price span {
    font-size: 1.5rem;
  }
}

.c-gallery-container {
  margin-top: 40px;
}

.c-gallery {
  display: flex;
}

.c-gallery__left {
  width: 65%;
}

.c-gallery__left img {
  height: 100%;
  object-fit: cover;
}

.c-gallery__right {
  width: 35%;
}

.c-gallery__right-img {
  height: 50%;
  object-fit: cover;
}

.c-gallery__main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: pointer;
  background: #f0f0f0;
  border-radius: 4px;
}

.c-gallery__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.c-gallery__thumb {
  flex: 0 0 auto;
  width: 120px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
}

.c-gallery__thumb:focus-visible {
  outline: 3px solid #EE9954;
  outline-offset: 2px;
}

.c-gallery__thumb.is-selected {
  outline: 3px solid #EE9954;
  outline-offset: 2px;
}

.c-gallery__thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f0f0f0;
  border-radius: 4px;
  display: block;
}

.c-gallery__modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
}

.c-gallery__modal.is-active {
  display: flex;
}

.c-gallery__modal-content {
  position: relative;
  background-color: #fff;
  width: 90%;
  max-width: 1200px;
  padding: 60px 20px 20px;
  border-radius: 4px;
}

.c-gallery__close {
  position: absolute;
  top: 8px;
  right: 15px;
  color: #333;
  font-size: 40px;
  font-weight: normal;
  background: none;
  border: none;
  cursor: pointer;
}

.c-gallery__modal-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  height: auto;
}

.c-gallery__modal-left {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: max-content;
  gap: 10px;
  overflow-y: auto;
  align-content: start;
}

.c-gallery__modal-left img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  object-fit: cover;
  cursor: pointer;
  border: 3px solid transparent;
}

.c-gallery__modal-left img.is-selected {
  border-color: #EE9954;
}

.c-gallery__modal-right {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.c-gallery__modal-right img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.c-detail__table {
  margin-top: 30px;
}

.c-detail__table tbody {
  display: flex;
  flex-wrap: wrap;
}

.c-detail__table tr {
  border-bottom: 1px solid #1B9AAA;
  padding-bottom: 12px;
  padding-top: 12px;
  width: 50%;
  display: flex;
  align-items: center;
}

.c-detail__table tr:last-child {
  flex: 2;
}

.c-detail__table th {
  color: #707070;
  line-height: 2rem;
  width: 130px;
  margin-right: 10px;
  font-weight: normal;
  line-height: 1.2;
  text-align: left;
}

.c-detail__table td {
  line-height: 2rem;
  text-align: left;
}

.c-detail__table tr:last-child td {
  width: 100%;
}

.c-detail__table td.price {
  color: #dc6e75;
}

.c-dealer {
  margin-top: 30px;
  margin-bottom: 120px;
}

.c-dealer .label {
  font-size: 1.6rem;
}

#gmap_set {
  margin-top: 50px;
}

@media screen and (max-width: 768px) {
  .c-breadcrumb__nav {
    margin-top: 16px;
    margin-bottom: 24px;
  }

  .c-breadcrumb {
    font-size: 1.2rem;
    gap: 4px;
  }

  .c-breadcrumb li + li::before {
    margin: 0 4px;
  }

  .c-gallery {
    display: flex;
    gap: 12px;
    flex-direction: column;
  }

  .c-gallery__left {
    width: 100%;
  }

  .c-gallery__right {
    width: 100%;
    gap: 10px;
  }

  .c-gallery__right img {
    aspect-ratio: 200 / 150;
    object-fit: cover;
  }

  .c-gallery__thumb {
    width: min(28vw, 110px);
  }

  .c-gallery__modal-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
  }

  .c-gallery__modal-left {
    grid-template-columns: repeat(3, 1fr);
  }

  .c-detail {
    display: flex;
    flex-direction: column;
  }

  .c-detail__center {
    margin-top: min(5.3vw, 20px);
  }

  .c-detail__right {
    margin-top: min(8vw, 30px);
    margin-left: auto;
    margin-right: auto;
  }

  .c-detail__price {
    font-size: 2.4rem;
  }

  .c-detail__table th {
    font-size: 1.4rem;
    width: 40%;
  }

  .c-detail__table td {
    width: 60%;
    font-size: 1.4rem;
  }

  .c-detail__table tbody {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: min(4vw, 15px);
  }

  .c-detail__table tr {
    padding: min(2.6vw, 10px) 0;
    width: 100%;
  }

  #map_canvas {
    height: auto !important;
    aspect-ratio: 16 / 12;
  }

  #gmap_set {
    margin-top: min(13.3vw, 50px);
  }

  .c-dealer {
    margin-top: min(8vw, 30px);
    margin-bottom: min(13.3vw, 120px);
  }

  #company_gaiyo .c-button__box--flex {
    flex-direction: column;
    margin-top: min(4vw, 15px);
    gap: min(4vw, 15px);
  }

  .c-gallery__right {
    flex-wrap: nowrap;
    min-width: 0;
    display: flex;
  }

  .c-gallery__right img {
    flex: 1;
    min-width: 0;
    width: 0;
    height: auto;
    object-fit: cover;
    display: block;
  }
}
