/* Styles for the real-estate Archive Layout */
/* @media ((min-width: 1600px) and (max-width: 1600px)) {
    body {
        background-image: url('../images/bg/bg_archive_works_pc.png');
        background-size: contain;
        background-position: top center;
        background-repeat: no-repeat;
        height: 100000px;
    }
} */

/* @media ((min-width: 400px) and (max-width: 400px)) {
  body {
    background-image: url('../images/bg/bg_archive_real_estate_sp.png');
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    height: 100000px;
  }
} */

/* アコーディオンとボタンのスタイルのリセット */
#real-estate-archive summary {
  display: block;
  list-style-type: none;
}

#real-estate-archive summary::marker {
  content: "";
}

#real-estate-archive summary::-webkit-details-marker {
  display: none;
}

#real-estate-archive button {
  all: unset;
  display: inline-block;
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

#real-estate-archive {
  padding: 180px 0 190px;
  width: 100%;
  overflow-x: hidden;
}

#real-estate-archive .container {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 0 5%;
}

#real-estate-archive .real-estate-section-inner {
  max-width: 100%;
  overflow: hidden;
}

#real-estate-archive .real-estate-section-body {
  display: flex;
  gap: 60px;
}

/* Left Sidebar - Categories and Filters */
#real-estate-archive .real-estate-section-left {
  width: 15%;
  flex-shrink: 0;
}

#real-estate-archive .real-estate-archive-title {
  display: flex;
  align-items: flex-end;
  column-gap: 55px;
}

#real-estate-archive .real-estate-archive-title--sub {
  margin-top: 0;
  margin-bottom: 40px;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.18em;
  font-weight: 400;
  color: var(--color-primary);
}

#real-estate-archive .real-estate-categories-filters-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

#real-estate-archive .real-estate-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#real-estate-archive .category-item {
  font-family: "dnp-shuei-gothic-gin-std", sans-serif;
  font-size: 16px;
  cursor: pointer;
  color: var(--color-accent);
  transition: color 0.2s;
  font-weight: 400;
  padding: 8px 0;
}

#real-estate-archive .category-item.active,
#real-estate-archive .category-item:hover {
  color: var(--color-primary);
}

#real-estate-archive .real-estate-filters {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#real-estate-archive .filter-group {
  margin-bottom: 69px;
}

#real-estate-archive .filter-group[open] .filter-icon::after {
  rotate: 0deg;
}

#real-estate-archive .filter-title {
  font-family: "dnp-shuei-gothic-gin-std", sans-serif;
  font-size: 15px;
  transition: color 0.2s;
  font-weight: 600;
  display: flex;
  align-items: center;
  column-gap: 5px;
}

#real-estate-archive .filter-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

#real-estate-archive .tag-checkboxes {
  margin-top: 18px;
}

#real-estate-archive .filter-button {
  font-size: 14px;
}

#real-estate-archive .filter-icon {
  position: relative;
  aspect-ratio: 1;
  width: 10px;
}

#real-estate-archive .filter-icon::before,
#real-estate-archive .filter-icon::after {
  position: absolute;
  content: "";
  width: 10px;
  height: 1px;
  background: var(--color-accent);
}

#real-estate-archive .filter-icon::before {
  top: 50%;
  left: 0;
  translate: 0 -50%;
}

#real-estate-archive .filter-icon::after {
  top: 50%;
  left: 0;
  translate: 0 -50%;
  rotate: 90deg;
  transition: rotate 0.3s;
}

#real-estate-archive .filter-title:hover {
  color: var(--color-primary);
}

#real-estate-archive label.tag-checkbox-label {
  display: inline-block;
  width: 100%;
  margin-bottom: 3px;
}

#real-estate-archive .tag-checkbox-text {
  font-size: 13px;
  font-weight: 400;
  margin-left: 13px;
}

#real-estate-archive .post-tags li.active a {
  font-weight: 600;
}

/* Right Main Content - real-estate Grid */
#real-estate-archive .real-estate-section-right {
  width: 85%;
  flex-grow: 1;
  max-width: calc(85% - 60px);
  overflow: hidden;
}

#real-estate-archive .real-estate-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8rem 50px;
  max-width: 100%;
  box-sizing: border-box;
  width: 100%;
}

#real-estate-archive .real-estate-item {
  transition: opacity 0.2s;
  max-width: calc(50% - 25px);
  overflow: hidden;
  width: calc(50% - 25px);
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  flex: 0 0 calc(50% - 25px);
}

#real-estate-archive .real-estate-item:hover {
  opacity: 0.8;
}

#real-estate-archive .real-estate-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

#real-estate-archive .real-estate-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-primary);
  max-width: 100%;
  box-sizing: border-box;
}

#real-estate-archive .real-estate-image img,
#real-estate-archive .real-estate-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: var(--color-primary);
}

#real-estate-archive .real-estate-content {
  padding: 0;
  margin-top: 15px;
  text-align: left;
  max-width: 100%;
  overflow: hidden;
}

#real-estate-archive .real-estate-title {
  font-family: "dnp-shuei-gothic-gin-std", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  color: var(--color-primary);
  margin-bottom: 8px;
  max-width: 75%;
}

#real-estate-archive .real-estate-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

#real-estate-archive .real-estate-location,
#real-estate-archive .real-estate-category-tag {
  font-family: "dnp-shuei-gothic-gin-std", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--color-accent);
}

#real-estate-archive .real-estate-location::after {
  content: " | ";
  margin-left: 8px;
}

#real-estate-archive .real-estate-category-tag {
  margin-left: 8px;
}

/* Responsive Grid Layout */
@media screen and (max-width: 1024px) {
  #real-estate-archive .container {
    padding: 0 3%;
  }

  #real-estate-archive .real-estate-section-body {
    gap: 40px;
    margin-top: 36px;
  }

  #real-estate-archive .real-estate-section-left {
    width: 25%;
  }

  #real-estate-archive .real-estate-section-right {
    width: 75%;
    /* padding-top: 100px; */
  }

  #real-estate-archive .real-estate-grid {
    gap: 6rem 30px;
  }
}

@media screen and (max-width: 768px) {
  #real-estate-archive {
    padding: 60px 0 113px;
  }

  #real-estate-archive .container {
    width: 100%;
    max-width: none;
    padding: 0 5%;
  }

  #real-estate-archive .real-estate-section-body {
    flex-direction: column;
    gap: 30px;
  }

  #real-estate-archive .real-estate-archive-title {
    padding-left: 5%;
    column-gap: 20px;
  }

  #real-estate-archive .real-estate-section-left {
    width: 100%;
    order: 1;
    padding-top: 12px;
    margin-left: 7.5%;
  }

  #real-estate-archive .real-estate-section-right {
    width: auto;
    padding-top: 0;
    order: 2;
    max-width: none;
    padding: 129px 0 0 7.5%;
  }

  #real-estate-archive .real-estate-archive-title--sub {
    margin-bottom: 20px;
  }

  #real-estate-archive .real-estate-section-inner h1 {
    font-size: clamp(1.2rem, 0.8rem + 2vw, 1.8rem);
    margin-bottom: 20px;
  }

  #real-estate-archive .real-estate-categories-filters-container {
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
  }

  #real-estate-archive .real-estate-categories {
    flex: 1;
  }

  #real-estate-archive .category-item {
    font-size: 14px;
    padding: 3px 0;
  }

  #real-estate-archive .real-estate-filters {
    flex: 1;
    align-items: flex-start;
    gap: 0px;
  }

  #real-estate-archive .tag-checkbox-text {
    font-size: 11px;
    margin-left: 7px;
  }

  #real-estate-archive .area-filters {
    margin-top: 30px;
  }

  #real-estate-archive .filter-group {
    margin-bottom: 0;
  }

  #real-estate-archive .filter-title {
    font-size: 14px;
    text-align: right;
    margin-right: 30px;
  }

  #real-estate-archive .real-estate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 4rem;
    column-gap: 20px;
    gap: 44px 0
  }

  #real-estate-archive .real-estate-item {
    max-width: 100%;
    width: 100%;
    flex: none;
  }

  #real-estate-archive .real-estate-content {
    margin-top: 5px;
  }

  #real-estate-archive .real-estate-title {
    font-size: 14px;
    max-width: 100%;
    margin-bottom: 5px;
  }

  #real-estate-archive .real-estate-location,
  #real-estate-archive .real-estate-category-tag {
    font-size: 12px;
    letter-spacing: 1px;
  }

  #real-estate-archive .real-estate-location::after {
    margin-left: 4px;
  }

  #real-estate-archive .real-estate-category-tag {
    margin-left: 0px;
  }
}

@media screen and (max-width: 480px) {
  #real-estate-archive {
    padding: 108px 0 113px;
  }

  #real-estate-archive .container {
    padding: 0 0%;
  }

  #real-estate-archive .real-estate-section-body {
    gap: 20px;
  }

  #real-estate-archive .real-estate-archive-title--sub {
    margin-bottom: 15px;
  }

  #real-estate-archive .real-estate-section-inner h1 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  #real-estate-archive .real-estate-categories-filters-container {
    flex-direction: row;
    justify-content: space-between;
    gap: 15px;
    margin: 0 auto;
  }

  #real-estate-archive .real-estate-categories {
    flex: 1;
    gap: 0;
  }

  #real-estate-archive .category-item {
    font-size: 13px;
  }

  #real-estate-archive .real-estate-filters {
    flex: 1;
  }

  #real-estate-archive .filter-title {
    font-size: 13px;
    text-align: right;
  }

  #real-estate-archive .real-estate-grid {
    grid-template-columns: 1fr;
  }

  #real-estate-archive .real-estate-title {
    font-size: 13px;
  }

  #real-estate-archive .real-estate-location,
  #real-estate-archive .real-estate-category-tag {
    font-size: 11px;
  }
}

/* Footer内のtop-arrowを保護 */
.footer .top-arrow {
  width: 13px;
  height: 13px;
  margin: 0;
  object-fit: contain;
}

/* Drawer内のtop-arrowを保護 */
.drawer .top-arrow {
  width: 13px;
  height: 13px;
  margin: 0;
  object-fit: contain;
}