@charset "UTF-8";

.plan-detail-page {
  background: #f2f2f2;
}

.plan-detail-page .site-header__nav > a[href$="plan/"] {
  background: #f0f0ed;
  pointer-events: none;
}

.plan-detail-page main {
  overflow: hidden;
}

.detail-mv,
.detail-mv picture {
  display: block;
  width: 100%;
}

.detail-mv img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
}

.detail-section {
  position: relative;
  z-index: 1;
  padding-bottom: 70px;
  margin-top: -154px;
}

.detail-panel {
  width: min(1400px, calc(100% - 100px));
  padding: 84px 100px 38px;
  margin-inline: auto;
  background: #fff;
}

.detail-grid {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  grid-template-areas:
    "heading floorplan"
    "specs floorplan"
    "features floorplan"
    "kukaku floorplan"
    "legend legend";
  grid-template-rows: auto auto auto 1fr auto;
  column-gap: 94px;
}

.detail-heading {
  grid-area: heading;
}

.detail-heading h1,
.detail-heading h2,
.detail-heading p {
  font-family: var(--latin);
  font-weight: 400;
}

.detail-heading h1 {
  padding-bottom: 7px;
  border-bottom: 1px solid #d2d2d2;
  font-size: 6.2rem;
  letter-spacing: 0.03em;
  line-height: 1;
}

.detail-heading__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0 12px;
  border-bottom: 1px solid #d2d2d2;
}

.detail-heading__meta h2 {
  font-size: 3.6rem;
  line-height: 1.1;
}

.detail-heading__meta p {
  font-size: 1.8rem;
  line-height: 1;
}

.detail-heading__meta strong {
  font-size: 4.4rem;
  font-weight: 400;
}

.detail-heading sup,
.detail-specs sup {
  font-size: 0.6em;
  vertical-align: super;
}

.detail-specs {
  grid-area: specs;
  margin-top: 26px;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  line-height: 1.72;
}

.detail-floorplan {
  display: flex;
  grid-area: floorplan;
  min-width: 0;
  align-items: flex-start;
  justify-content: center;
  padding-top: 70px;
}

.detail-floorplan picture {
  display: block;
  width: min(100%, 716px);
}

.detail-floorplan img {
  display: block;
  width: 100%;
  height: auto;
}

.detail-features {
  display: grid;
  grid-area: features;
  gap: 4px;
  margin-top: 28px;
}

.detail-features p {
  display: flex;
  min-height: 84px;
  align-items: center;
  padding: 14px 26px;
  background: #e1e1bd;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.detail-features p.detail-lead {
  display: block;
  min-height: 0;
  margin-bottom: 14px;
  padding: 0;
  background: transparent;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  line-height: 1.7;
}

.detail-note {
  margin-top: 28px;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.detail-kukaku {
  grid-area: kukaku;
  align-self: end;
  margin-top: 58px;
}

.detail-kukaku img {
  display: block;
  width: 350px;
  height: auto;
}

.detail-legend {
  grid-area: legend;
  margin-top: 34px;
  text-align: center;
}

.detail-legend picture,
.detail-legend img {
  display: block;
}

.detail-legend img {
  width: min(100%, 720px);
  height: auto;
  margin-inline: auto;
}

.detail-back {
  position: relative;
  display: flex;
  width: 400px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin: 52px auto 0;
  background: #414141;
  color: #fff;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  transition: filter 0.25s ease;
}

.detail-back::after {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 32px;
  height: 10px;
  background: url("../../assets/images/common/button-arrow_white.png") center / contain no-repeat;
  content: "";
  transform: translateY(-50%);
}

.detail-back:hover,
.detail-back:focus-visible {
  filter: brightness(1.15);
}

@media (min-width: 1101px) {
  .detail-floorplan {
    padding-top: 105px;
  }

  .detail-legend {
    margin-top: 190px;
  }
}

@media (max-width: 1100px) and (min-width: 768px) {
  .detail-panel {
    width: calc(100% - 64px);
    padding-inline: 48px;
  }

  .detail-grid {
    grid-template-columns: 300px minmax(0, 1fr);
    column-gap: 50px;
  }

  .detail-heading h1 {
    font-size: 4.6rem;
  }

  .detail-heading__meta h2 {
    font-size: 2.7rem;
  }

  .detail-heading__meta strong {
    font-size: 3.4rem;
  }

  .detail-kukaku img {
    width: 300px;
  }
}

@media (max-width: 767px) {
  .plan-detail-page .site-footer {
    padding-top: 15px;
  }

  .detail-mv img {
    height: auto;
  }

  .detail-section {
    padding-bottom: 31px;
    margin-top: -77px;
  }

  .detail-panel {
    width: calc(100% - 50px);
    padding: 24px 25px 31px;
  }

  .detail-grid {
    grid-template-columns: 122px minmax(0, 1fr);
    grid-template-areas:
      "heading kukaku"
      "specs specs"
      "floorplan floorplan"
      "features features"
      "legend legend";
    grid-template-rows: auto;
    column-gap: 15px;
  }

  .detail-heading h1 {
    padding-bottom: 7px;
    font-size: 3rem;
  }

  .detail-heading__meta {
    display: block;
    padding: 0;
    border-bottom: 0;
  }

  .detail-heading__meta h2 {
    padding: 8px 0 7px;
    border-bottom: 1px solid #d2d2d2;
    font-size: 2.1rem;
  }

  .detail-heading__meta p {
    padding-top: 8px;
    font-size: 1.2rem;
  }

  .detail-heading__meta strong {
    font-size: 2.8rem;
  }

  .detail-kukaku {
    align-self: start;
    margin-top: 10px;
  }

  .detail-kukaku img {
    width: 100%;
  }

  .detail-specs {
    margin-top: 14px;
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .detail-specs p {
    display: inline;
  }

  .detail-specs p:not(:last-child)::after {
    content: "　";
  }

  .detail-floorplan {
    padding-top: 10px;
  }

  .detail-floorplan picture {
    width: min(100%, 170px);
  }

  .detail-features {
    gap: 2px;
    margin-top: 17px;
  }

  .detail-features p {
    min-height: 52px;
    padding: 8px 15px;
    font-size: 1.2rem;
    line-height: 1.5;
  }

  .detail-features p.detail-lead {
    margin-bottom: 10px;
    padding: 0;
    font-size: 1.3rem;
  }

  .detail-legend {
    margin-top: 19px;
  }

  .detail-note {
    margin-top: 16px;
    font-size: 1rem;
  }

  .detail-legend img {
    width: 100%;
  }

  .detail-back {
    width: calc(100% - 100px);
    min-height: 38px;
    margin-top: 21px;
    font-size: 1.4rem;
  }

  .detail-back::after {
    right: 14px;
    width: 35px;
  }
}

/* Yutenji property adaptation */

.detail-grid{grid-template-columns:280px minmax(0,1fr);column-gap:48px;}
.detail-floorplan{padding-top:0;}
.unit-floors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;width:100%;align-items:start;}
.unit-floors figure{margin:0;min-width:0;}
.unit-floors img{display:block;width:100%;height:auto;}
.unit-floors figcaption{text-align:center;font-family:var(--latin);font-size:18px;margin-top:8px;}
.detail-kukaku img{width:100%;}
.detail-legend{margin-top:40px;}
@media(max-width:1100px){.detail-panel{padding:40px;}.detail-grid{grid-template-columns:240px minmax(0,1fr);gap:25px;}}
@media(max-width:767px){.detail-panel{width:calc(100% - 32px);padding:26px 20px;}.detail-grid{display:block;}.detail-heading{max-width:100%;}.detail-heading__meta{display:flex;gap:16px;}.detail-specs{font-size:12px;margin:22px 0;}.detail-specs p{display:block;}.detail-features{margin-bottom:40px;}.unit-floors{grid-template-columns:1fr;gap:30px;}.detail-kukaku{margin-top:32px;}.detail-legend{margin-top:22px;}}


/* Keep the unit summary and site plan together on mobile. */
@media (max-width: 767px) {
  .detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "heading"
      "kukaku"
      "specs"
      "features"
      "floorplan"
      "legend";
    grid-template-rows: auto;
    gap: 0;
  }

  .detail-heading {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d2d2d2;
    white-space: nowrap;
  }

  .detail-heading h1 {
    padding: 0;
    border-bottom: 0;
    font-size: clamp(24px, 7.5vw, 30px);
  }

  .detail-heading__meta {
    display: flex;
    flex: 1;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 0;
    border-bottom: 0;
  }

  .detail-heading__meta h2 {
    padding: 0;
    border-bottom: 0;
    font-size: clamp(16px, 5.25vw, 21px);
  }

  .detail-heading__meta p {
    padding: 0;
  }

  .detail-heading__meta strong {
    font-size: clamp(24px, 7vw, 28px);
  }

  .detail-kukaku {
    width: min(100%, 300px);
    align-self: start;
    margin: 20px auto 0;
  }
}
