@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-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 (min-width: 768px) {
  .detail-kukaku {
    width: 112%;
    margin-bottom: 40px;
  }

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

@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-legend {
    margin-top: 19px;
  }

  .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;
  }
}
