/*---------
共通
----------*/

.l-page {
  padding-top: 120px;
}

.properties_detail_title {
  font-size: 16px;
  font-weight: 500;
  color: #6a5d20;
  letter-spacing: 0.2em;
  font-family: var(--sub-font);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  white-space: nowrap;
}

.properties_detail_title::after {
  content: "";
  background: #707070;
  width: 100%;
  height: 1px;
}

@media (min-width: 768px) {
  section {
    padding: 0 20px;
  }

  .l-page {
    padding-bottom: 160px;
  }

  .l-page .section_space {
    max-width: 1084px;
  }

  .properties_detail_title {
    font-size: 24px;
    margin-bottom: 80px;
  }
}

/*---------
properties_detail_header
----------*/

.properties_detail_header {
  margin-bottom: 80px;
}

.detail_header_title {
  margin-bottom: 16px;
}

.detail_header_title-area {
  font-size: 20px;
  font-weight: bold;
  line-height: calc(28 / 20);
  font-family: var(--sub-font);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.detail_header_title-area::before {
  content: "";
  background: #6a5d20;
  width: 8px;
  height: 37px;
}

.detail_header_title-name {
  font-size: 18px;
  font-weight: bold;
  line-height: calc(28 / 18);
  font-family: var(--sub-font);
}

.detail_header_main-img {
  width: 100%;
  aspect-ratio: 328 / 184;
  margin-bottom: 16px;
  position: relative;
  box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.detail_header_main-img img,
.detail_header_sub-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* .detail_header_main-img::before {
  content: "メイン画像";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: bold;
} */

.detail_header_sub-img-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
  margin-bottom: 40px;
}

.detail_header_sub-img-item {
  aspect-ratio: 101 / 57;
  box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.15);
}

.detail_group_btn {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: max-content;
  margin: 0 auto;
}

.detail_group_btn_flex {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

[class*="group_btn--"] a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 335px;
  height: auto;
  max-width: 100%;
  padding: 20px 16px;
}

.group_btn--pdf a {
  display: block;
  background: #8e8e8e;
}

.group_btn--contact a {
  background: #111111;
}

.group_btn--visit a {
  background: #c2a64b;
}

.group_btn--pdf-name {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  font-family: var(--sub-font);
  margin-bottom: 10px;
}

.group_btn--pdf-link {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  font-family: var(--sub-font);
  text-align: center;
  padding-bottom: 6px;
  border-bottom: 1px solid #fff;
  position: relative;
}

.group_btn--pdf-link::after {
  content: "";
  display: block;
  position: absolute;
  background: #fff;
  width: 20px;
  height: 1px;
  bottom: 6px;
  right: -4px;
  transform: rotate(50deg);
}

.btn-icon {
  display: flex;
}

.group_btn--contact .btn-icon {
  width: 33px;
  height: 21px;
}

.group_btn--visit .btn-icon {
  width: 33px;
  height: 27px;
}

.group_btn-text {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  font-family: var(--sub-font);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.group_btn-text::after {
  content: "";
  background: url("../images/details/group_btn_arrow.png") center / cover
    no-repeat;
  width: 23px;
  height: 6px;
}

@media (min-width: 768px) {
  .properties_detail_header .section_space {
    max-width: 1084px;
  }

  .properties_detail_header {
    margin-bottom: 150px;
    padding: 0 20px;
  }

  .detail_header_content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 80px;
  }

  .detail_header_flex {
    display: flex;
    flex-direction: column;
    flex: 1 1 50%;
    max-width: 532px;
  }

  .detail_header_title {
    margin-bottom: 40px;
  }

  .detail_header_title-area {
    font-size: 24px;
    line-height: calc(48 / 24);
    gap: 14px;
    margin-bottom: 30px;
  }

  .detail_header_title-area::before {
    height: 60px;
  }

  .detail_header_title-name {
    font-size: 24px;
    line-height: calc(48 / 24);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .detail_header_main-img {
    flex: 1 1 50%;
    aspect-ratio: 532 / 335;
    margin: 0;
  }

  .detail_header_sub-img-list {
    gap: 20px;
    margin: 0;
  }

  .detail_header_sub-img-item {
    aspect-ratio: 164 / 109;
  }

  .detail_group_btn {
    gap: 20px;
    max-width: 896px;
    width: 100%;
  }

  .detail_group_btn_flex {
    flex-direction: row;
    gap: 20px;
  }

  .group_btn--contact,
  .group_btn--visit {
    flex: 1;
  }

  [class*="group_btn--"] a {
    gap: clamp(20px, calc(80px + 50vw - 570px), 80px);
    width: 100%;
    height: auto;
    max-width: 100%;
    padding: 20px clamp(10px, calc(30px + 50vw - 570px), 30px);
    transition: all 0.3s ease;
  }

  .group_btn--pdf a {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: #8e8e8e;
    padding: 30px 70px;
  }

  .group_btn--contact a {
    background: #111111;
    border: 1px solid #111111;
  }

  .group_btn--visit a {
    background: #c2a64b;
    border: 1px solid #c2a64b;
  }

  .group_btn--pdf-name {
    font-size: 20px;
  }

  .group_btn--pdf-link {
    font-size: 20px;
    border-bottom: none;
  }

  .group_btn--pdf-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% + 40px);
    height: 1px;
    background: #fff;
  }

  .group_btn--pdf-link::after {
    bottom: 7px;
    right: -24px;
    transform: rotate(45deg);
  }

  .group_btn-text {
    font-size: 20px;
    gap: clamp(20px, calc(50px + 50vw - 570px), 50px);
  }

  .group_btn-text::after {
    width: 52px;
    height: 12px;
  }

  /*---------
    ホバー
    ----------*/

  .group_btn--contact a:hover,
  .group_btn--visit a:hover {
    background: #fff;
  }

  .group_btn--contact a:hover .group_btn-text {
    color: #111111;
  }

  .group_btn--visit a:hover .group_btn-text {
    color: #c2a64b;
  }

  .group_btn--contact a:hover .btn-icon,
  .group_btn--visit a:hover .btn-icon {
    overflow: hidden;
  }

  .group_btn--contact a:hover .btn-icon img,
  .group_btn--visit a:hover .btn-icon img {
    visibility: hidden;
  }

  .group_btn--contact a:hover .btn-icon {
    background: url("../images/details/icon-btn-email_bk.png") center / cover
      no-repeat;
  }

  .group_btn--visit a:hover .btn-icon {
    background: url("../images/details/icon-btn-user_gd.png") center / cover
      no-repeat;
  }

  .group_btn--contact a:hover .group_btn-text::after {
    background: url("../images/details/group_btn_arrow_bk.png") center / cover
      no-repeat;
  }

  .group_btn--visit a:hover .group_btn-text::after {
    background: url("../images/details/group_btn_arrow_gd.png") center / cover
      no-repeat;
  }
}

/*---------
drawing
----------*/

.drawing_list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.drawing_item {
  width: 100%;
}

.drawing_detail_img {
  margin-bottom: 10px;
  box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.15);
}

.drawing_detail_title {
  font-size: 16px;
  font-weight: 500;
  font-family: var(--sub-font);
  text-align: center;
}

@media (min-width: 768px) {
  .drawing_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, 348px);
    justify-content: center;
    gap: 40px 20px;
  }

  .drawing_detail {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .drawing_detail_img {
    order: 2;
    margin: 0;
  }

  .drawing_detail_title {
    order: 1;
    font-size: 20px;
  }
}

/*---------
environment
----------*/

.section_content--environment .section_space {
  width: 100%;
}

.section_content--environment .properties_detail_title {
  width: calc(100% - 40px);
  margin: 0 auto 40px;
}

.environment_list {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-left: 20px;
}

.environment_item {
  width: 256px;
  flex-shrink: 0;
}

.environment_item:last-child {
  margin-right: 20px;
}

.environment_detail_img {
  width: 256px;
  height: 171px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.15);
}

.environment_detail_title {
  font-size: 16px;
  font-weight: 500;
  font-family: var(--sub-font);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

@media (min-width: 768px) {
  .section_content--environment .properties_detail_title {
    width: 100%;
    margin-bottom: 80px;
  }

  .environment_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, 256px);
    overflow-x: visible;
    justify-content: center;
    margin: 0;
  }
}

/*---------
property_info
----------*/

.l-page .section_content--property_info {
  padding-bottom: 40px;
}

.property_info_table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e3e3e3;
  margin-bottom: 80px;
}

.property_info_row {
  border-bottom: 1px solid #e3e3e3;
}

.property_info_label {
  background: #c2a64b;
  width: 120px;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  vertical-align: top;
  line-height: calc(24 / 14);
}

.property_info_data {
  padding: 10px;
  font-size: 14px;
  font-weight: 400;
  vertical-align: middle;
  line-height: calc(20 / 14);
}

.property_info_data p:first-child {
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .l-page .section_content--property_info {
    padding-bottom: 80px;
  }

  .property_info_table {
    display: grid;
    grid-template-columns: 160px 1fr 160px 1fr;
    border-top: 1px solid #e3e3e3;
    border-left: 1px solid #e3e3e3;
    border-collapse: unset;
  }

  .property_info_table tbody,
  .property_info_row {
    display: contents;
  }

  .property_info_label,
  .property_info_data {
    border-bottom: 1px solid #e3e3e3;
    border-right: 1px solid #e3e3e3;
  }

  .property_info_label {
    width: auto;
    padding: 20px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .property_info_data {
    padding: 20px;
    display: flex;
    align-items: center;
  }

  .property_info_row:nth-last-child(2) .property_info_label,
  .property_info_row:last-child .property_info_label {
    grid-column: 1;
  }

  .property_info_row:nth-last-child(2) .property_info_data,
  .property_info_row:last-child .property_info_data {
    grid-column: 2 / -1;
  }

  .property_info_row:last-child .property_info_data {
    display: block;
  }
}

/*---------
pager
----------*/

.detail_pager_inner {
  display: flex;
  gap: 40px;
}

.detail_pager_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 1;
  padding: 10px;
  background: #c2a64b;
  border-radius: 2px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  line-height: 1;
}
.detail_pager_btn--next {
  margin-left: auto;
  margin-right: 0;
}
.detail_pager_btn--prev::before,
.detail_pager_btn--next::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-style: solid;
  border-color: #fff;
}

.detail_pager_btn--prev::before {
  border-width: 0 0 1px 1px;
  transform: rotate(45deg);
}

.detail_pager_btn--next::after {
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
}

@media (min-width: 768px) {
  .detail_pager {
    padding: 0 20px;
  }

  .detail_pager_inner {
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .detail_pager_btn {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
  }
}
