/* Styles for Single real-estate Page */

/* @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_single_real_estate_sp.png');
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    height: 100000px;
  }
} */

#single-real-estate {
  width: 100%;
}

/* Hero Section */
.real-estate-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}

.real-estate-hero-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.real-estate-hero-image img,
.real-estate-hero-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.real-estate-hero-placeholder {
  background-color: var(--color-primary);
}

.real-estate-hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.real-estate-hero-text {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.real-estate-hero .real-estate-title {
  font-family: "tt-commons-pro", sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: 7.5px;
  line-height: 1.2;
}

.real-estate-hero .real-estate-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-family: "dnp-shuei-gothic-gin-std", sans-serif;
  font-size: 15px;
  font-weight: 400;
}

.real-estate-hero .real-estate-location,
.real-estate-hero .real-estate-category-tag {
  color: white;
  opacity: 0.9;
}

.real-estate-hero .real-estate-location::after {
  content: " | ";
  margin-left: 10px;
}

/* Content Section */
.real-estate-content-section {
  padding: 80px 0;
  /* background-color: #fff; */
  width: 100%;
  overflow-x: hidden;
}

.real-estate-content-section .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 0 5%;
}

.real-estate-content-inner {
  display: flex;
  gap: 100px;
  max-width: 90%;
  overflow: hidden;
}

/* Left Content - Story */
.real-estate-content-left {
  width: 30%;
  flex-shrink: 0;
}

/* Information Section */
.real-estate-information {
  /* margin-top: 50px; */
  padding: clamp(20px, 4vw, 65px);
}

.real-estate-information h2 {
  font-family: "tt-commons-pro", sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 30px;
  color: var(--color-primary);
  letter-spacing: 1px;
}

.real-estate-information-content {
  font-family: "dnp-shuei-gothic-gin-std", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-primary);
}

.real-estate-info-item {
  display: flex;
  margin-bottom: 15px;
  align-items: flex-start;
}

.real-estate-info-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  min-width: 80px;
  flex-shrink: 0;
  margin-right: 10px;
}

.real-estate-info-value {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  flex: 1;
}

/* Voice Link */
.real-estate-link {
  margin-top: 50px;
  padding-right: clamp(20px, 4vw, 65px);
  padding-left: clamp(20px, 4vw, 65px);
}

.real-estate-link-anchor {
  display: flex;
  border-bottom: 1px solid var(--color-accent);
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--color-accent);
  font-family: "dnp-shuei-gothic-gin-std", sans-serif;
  font-size: 20px;
  font-weight: 400;
  transition: color 0.2s;
  padding-bottom: 20px;
}

.real-estate-link-anchor:hover {
  color: var(--color-primary);
}

.real-estate-link-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.real-estate-link-anchor:hover .real-estate-link-arrow {
  transform: translateX(2px);
}

/* Right Content */
.real-estate-content-right {
  width: 70%;
  flex-shrink: 0;
  max-width: calc(70% - 60px);
  overflow: hidden;
  min-width: 0;
  margin-top: 80px;
}

/* Story Images */
.real-estate-story-images {
  margin-bottom: 50px;
}

.story-image-item {
  margin-bottom: 20px;
  max-width: 100%;
  overflow: hidden;
}

.story-image-item img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  transition: transform 0.5s, opacity 0.5s;
  max-width: 100%;
  box-sizing: border-box;
}

.real-estate-details {
  margin-bottom: 50px;
}

.real-estate-details h3 {
  font-family: "tt-commons-pro", sans-serif;
  font-size: clamp(1.2rem, 0.8rem + 2vw, 1.8rem);
  font-weight: 400;
  margin-bottom: 30px;
  color: var(--color-primary);
  letter-spacing: 7.5px;
}

.real-estate-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
}

.real-estate-detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-family: "dnp-shuei-gothic-gin-std", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-accent);
  flex-shrink: 0;
}

.detail-value {
  font-family: "dnp-shuei-gothic-gin-std", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-primary);
  text-align: right;
  flex: 1;
  margin-left: 20px;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .real-estate-content-section .container {
    width: 100%;
    max-width: none;
    padding: 0 0 0 3%;
  }

  .real-estate-content-inner {
    gap: 40px;
  }

  .real-estate-content-left {
    width: 30%;
  }

  .real-estate-content-right {
    width: 70%;
    max-width: calc(70% - 40px);
    overflow: hidden;
  }
}

@media screen and (max-width: 768px) {
  .real-estate-information h2 {
    font-size: 18px;
    letter-spacing: 0.5px;
  }

  .real-estate-hero {
    height: 100vh;
    min-height: 100vh;
  }

  .real-estate-hero-image {
    width: 100%;
    height: 100%;
  }

  .real-estate-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .real-estate-hero .real-estate-title {
    font-size: 2rem;
  }

  .real-estate-hero .real-estate-meta {
    font-size: 13px;
    gap: 15px;
  }

  .real-estate-content-section {
    padding: 60px 0;
  }

  .real-estate-content-section .container {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .real-estate-content-inner {
    flex-direction: column;
    gap: 40px;
    margin: 0 auto;
  }

  .real-estate-content-left {
    width: 100%;
  }

  .real-estate-content-right {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .real-estate-information {
    margin-top: 0;
    margin-bottom: 121px;
    padding: 0;
  }

  .real-estate-information-content {
    margin-top: 43px;
  }

  .real-estate-info-item {
    margin-bottom: 8.2px;
  }

  .real-estate-info-label {
    font-size: 11px;
    font-weight: 600;
    margin-right: 0;
    width: 50%;
    max-width: 121px;
  }

  .real-estate-link {
    width: 175px;
    padding-left: 0;
    padding-right: 0;
  }

  a.real-estate-link-anchor {
    display: flex;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    padding-bottom: 13px;
    justify-content: space-between;
  }

  .real-estate-link-arrow {
    width: 12px;
    height: 12px;
  }

  .real-estate-info-value {
    font-size: 11px;
    font-weight: 400;
    color: var(--color-third);
  }

  .real-estate-content-right {
    margin-top: 71px;
  }

  .real-estate-story-images {
    width: 100%;
  }

  .story-image-item {
    margin-bottom: 55px;
    width: 100%;
  }

  .story-image-item img {
    width: 100%;
    height: auto;
    border-radius: 0;
  }
}

@media screen and (max-width: 480px) {
  .real-estate-hero {
    height: 100vh;
    min-height: 100vh;
  }

  .real-estate-hero-image {
    width: 100%;
    height: 100%;
  }

  .real-estate-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .real-estate-hero .real-estate-title {
    font-size: 1rem;
  }

  .real-estate-hero-text {
    max-width: 300px;
  }

  .real-estate-hero .real-estate-meta {
    font-size: 13px;
    gap: 10px;
  }

  .real-estate-content-section {
    padding: 40px 0;
  }

  .real-estate-content-section .container {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .real-estate-content-right {
    width: 100%;
    max-width: 100%;
  }

  .story-image-item {
    margin-bottom: 55px;
    width: 100%;
  }

  .story-image-item img {
    width: 100%;
    height: auto;
    border-radius: 0;
  }

  .real-estate-detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .detail-value {
    text-align: left;
    margin-left: 0;
  }
}

/* Navigation Styles */
.real-estate-single-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px 0;
  transform: translateX(-5%);
}

.real-estate-nav-container {
  display: flex;
  align-items: center;
  gap: 100px;
}

.real-estate-nav-archives {
  text-decoration: none;
  color: #545b6a;
  font-family: "tt-commons-pro", sans-serif;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.2s;
}

.real-estate-nav-archives:hover {
  color: var(--color-primary);
}

.real-estate-nav-arrow-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s, opacity 0.2s;
}

.real-estate-nav-arrow-link:hover {
  transform: scale(1.03);
}

.real-estate-nav-arrow-link.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.real-estate-nav-arrow-left,
.real-estate-nav-arrow-right {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.real-estate-nav-arrow-left,
.real-estate-nav-arrow-link.disabled:hover .real-estate-nav-arrow-left {
  transform: rotate(180deg);
}

.real-estate-nav-arrow-link:hover .real-estate-nav-arrow-left {
  transform: rotate(180deg) translateX(5px);
}

.real-estate-nav-arrow-link:hover .real-estate-nav-arrow-right {
  transform: translateX(5px);
}

.real-estate-nav-arrow-link.disabled:hover .real-estate-nav-arrow-right {
  transform: none;
}

.real-estate-nav-text {
  letter-spacing: 0.5px;
}

/* Responsive Navigation */
@media screen and (max-width: 768px) {
  .real-estate-single-nav {
    margin: 40px 0;
    padding: 20px 0;
    transform: none;
  }

  .real-estate-nav-container {
    gap: 50px;
  }

  .real-estate-nav-archives {
    font-size: 14px;
    margin-top: 50px;
  }

  .real-estate-nav-arrow-link {
    margin-top: 50px;
  }

  .real-estate-nav-arrow-left,
  .real-estate-nav-arrow-right {
    width: 14px;
    height: 14px;
  }
}

/* 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;
}