body.residence-page .pfi-header,
body.page-template-page-residence-php .pfi-header,
body.page-template-page-residence .pfi-header {
  background: none !important;
  z-index: 3;
}

body.residence-page .pfi-header__nav,
body.residence-page .pfi-header__right,
body.page-template-page-residence-php .pfi-header__nav,
body.page-template-page-residence-php .pfi-header__right,
body.page-template-page-residence .pfi-header__nav,
body.page-template-page-residence .pfi-header__right {
  display: none;
}

body.residence-page .pfi-header__inner,
body.page-template-page-residence-php .pfi-header__inner,
body.page-template-page-residence .pfi-header__inner {
  justify-content: flex-start;
}

body.residence-page .residence-lp,
body.page-template-page-residence-php .residence-lp,
body.page-template-page-residence .residence-lp {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.residence-page .pfi-logo--white,
body.page-template-page-residence-php .pfi-logo--white,
body.page-template-page-residence .pfi-logo--white {
  display: block !important;
}

body.residence-page .pfi-logo--black,
body.page-template-page-residence-php .pfi-logo--black,
body.page-template-page-residence .pfi-logo--black {
  display: none !important;
}

body.residence-page.is-conical-header-logo-dark .pfi-logo--white,
body.page-template-page-residence-php.is-conical-header-logo-dark .pfi-logo--white,
body.page-template-page-residence.is-conical-header-logo-dark .pfi-logo--white,
body.residence-page .pfi-header.is-dark-logo .pfi-logo--white,
body.page-template-page-residence-php .pfi-header.is-dark-logo .pfi-logo--white,
body.page-template-page-residence .pfi-header.is-dark-logo .pfi-logo--white {
  display: none !important;
}

body.residence-page.is-conical-header-logo-dark .pfi-logo--black,
body.page-template-page-residence-php.is-conical-header-logo-dark .pfi-logo--black,
body.page-template-page-residence.is-conical-header-logo-dark .pfi-logo--black,
body.residence-page .pfi-header.is-dark-logo .pfi-logo--black,
body.page-template-page-residence-php .pfi-header.is-dark-logo .pfi-logo--black,
body.page-template-page-residence .pfi-header.is-dark-logo .pfi-logo--black {
  display: block !important;
}

body.residence-page .page-wrapper,
body.page-template-page-residence-php .page-wrapper,
body.page-template-page-residence .page-wrapper {
  background: #ffffff;
}

body.residence-page #primary.site-main,
body.page-template-page-residence-php #primary.site-main,
body.page-template-page-residence #primary.site-main {
  max-width: none;
  width: 100%;
  padding: 0;
}

body.residence-page .pfi-bg-peek,
body.page-template-page-residence-php .pfi-bg-peek,
body.page-template-page-residence .pfi-bg-peek {
  display: none;
}

.residence-lp {
  background: #ffffff;
  font-family: "DIN 2014", "Noto Sans JP", sans-serif;
}

.residence-lp__hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-top: calc(-1 * var(--pfi-header-height, 64px));
  background: #000000;
  color: #ffffff;
  overflow: clip;
}

.residence-lp__hero-media {
  position: sticky;
  top: 0;
  display: block;
  width: 100%;
  height: 100vh;
  margin-bottom: -100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.residence-lp__hero-bg,
.residence-lp__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
}

.residence-lp__hero-bg {
  background-image: var(--residence-hero-bg-pc);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.residence-lp__hero-overlay {
  background: #000000;
  opacity: 0.74;
  animation: residence-hero-brighten 5s ease-out forwards;
}

@keyframes residence-hero-brighten {
  0% {
    opacity: 0.74;
  }

  100% {
    opacity: 0;
  }
}

.residence-lp__hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100vh;
  z-index: 1;
}

.residence-lp__hero-shell {
  width: min(calc(100% - 100px), 1446px);
  height: 100vh;
  min-height: 100vh;
  margin: 0 auto;
}

.residence-lp__shell {
  width: min(calc(100% - 100px), 1446px);
  margin: 0 auto;
}

.residence-lp__hero-flow {
  position: relative;
  z-index: 1;
  margin-top: -100vh;
  padding-top: 0;
  padding-bottom: 0;
  display: grid;
  gap: 94vh;
}

.residence-lp__hero-step {
  display: grid;
  align-items: center;
}

.residence-lp__hero-step-shell {
  width: min(calc(100% - 100px), 1446px);
  margin: 0 auto;
}

.residence-lp__hero-step--intro {
  align-items: start;
}

.residence-lp__hero-step--proposal {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  background: #ffffff;
  color: #000000;
}

.residence-lp__hero-step-shell--proposal {
  display: grid;
}

.residence-lp__hero-copy-stage {
  display: grid;
}

.residence-lp__hero-copy-stage--title {
  min-height: calc(100vh - 50px);
  align-items: end;
}

.residence-lp__hero-copy-stage--lead {
  margin-top: 18vh;
  min-height: 100vh;
  align-items: end;
}

.residence-lp__hero-copy-block {
  max-width: min(740px, 100%);
  width: min(740px, 100%);
  margin-left: 0;
  padding-bottom: clamp(16px, 2vw, 24px);
}

.residence-lp__hero-copy-block--title {
  padding-bottom: 0;
}

.residence-lp__hero-copy-title {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 46px;
  line-height: 1.5;
}

.residence-lp__hero-copy-text {
  margin: 80px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 29px;
  line-height: 1.5;
  font-weight: 500;
}

.residence-lp__hero-copy-detail {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 21px;
  line-height: 1.75;
  font-weight: 400;
}

.residence-lp__hero-copy-next {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 29px;
  line-height: 1.5;
  font-weight: 500;
}

.residence-lp__hero-copy-next-detail {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 21px;
  line-height: 1.9;
  font-weight: 400;
}

.residence-lp__hero-step--proposal .residence-lp__hero-copy-next,
.residence-lp__hero-step--proposal .residence-lp__hero-copy-next-detail {
  color: #000000;
}

.residence-fourth {
  position: relative;
  z-index: 2;
  padding: 120px 0px;
  background: #ffffff;
}

.residence-fourth__inner {
  display: grid;
  justify-items: start;
}

.residence-fourth__lead {
  margin: 0;
  color: #000000;
  font-size: 29px;
  line-height: 1.5;
  font-weight: 500;
}

.residence-fourth__description {
  margin: 20px 0 0;
  color: #000000;
  font-size: 21px;
  line-height: 1.9;
  font-weight: 400;  
}

.residence-fourth__media {
  margin: 60px 0 0;
}

.residence-fourth__media img {
  display: block;
  width: 716px;
  max-width: 100%;
  height: auto;
}

.residence-fourth__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 8px 12px 8px 0;
  border-radius: 8px;
  color: #000000;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}

.residence-fourth__cta-label {
  display: block;
}

.residence-fourth__cta-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 5px;
}

.residence-fourth__cta-icon svg {
  display: block;
  width: 30px;
  height: 12px;
}

.residence-fourth__cta-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.residence-fourth__cta:hover,
.residence-fourth__cta:focus-visible {
  color: rgba(0, 0, 0, 0.5);
}

.residence-fourth__cta:focus-visible {
  outline: none;
}

.residence-fourth__cta:hover .residence-fourth__cta-icon,
.residence-fourth__cta:focus-visible .residence-fourth__cta-icon {
  border-color: rgba(0, 0, 0, 0.5);
}

.residence-fifth {
  position: relative;
  z-index: 2;
  padding: 120px 0px;
  background: #ffffff;
}

.residence-fifth__inner {
  display: grid;
  justify-items: start;
}

.residence-fifth__lead {
  margin: 0;
  color: #000000;
  font-size: 29px;
  line-height: 1.5;
  font-weight: 500;
}

.residence-fifth__feature {
  margin-top: 50px;
}

html.js .residence-fifth__feature.js-residence-reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--residence-reveal-delay, 0s);
}

html.js .residence-fifth__feature.js-residence-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

html.js .residence-fifth__inner > .residence-fifth__feature.js-residence-reveal:nth-of-type(2) {
  --residence-reveal-delay: 0.16s;
}

html.js .residence-fifth__inner > .residence-fifth__feature.js-residence-reveal:nth-of-type(3) {
  --residence-reveal-delay: 0.32s;
}

.residence-fifth__feature-head {
  display: flex;
  align-items: center;
  gap: 26px;
}

.residence-fifth__icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.residence-fifth__feature-title {
  margin: 0;
  color: #000000;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.residence-fifth__feature-description {
  margin: 10px 0 0 77px;
  color: #000000;
  font-size: 16px;
  line-height: 1.9;
  font-weight: 400;
}

.residence-sixth {
  position: relative;
  z-index: 2;
  padding: 120px 0px 0px;
  background: #ffffff;
}

.residence-sixth__inner {
  display: grid;
  justify-items: start;
}

.residence-sixth__lead {
  margin: 0;
  color: #000000;
  font-size: 29px;
  line-height: 1.5;
  font-weight: 500;
}

.residence-sixth__flow {
  width: 100%;
  margin-top: 60px;
}

.residence-sixth__item {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: clamp(32px, 3vw, 82px);
  align-items: start;
  min-height: 220px;
}

.residence-sixth__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 13px;
  bottom: -15px;
  border-left: 1px dotted #1d1d1d;
  transform: translateX(-50%);
  z-index: 0;
}

.residence-sixth__marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1d1d1d;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
}

.residence-sixth__content {
  min-width: 0;
  padding-bottom: 80px;
}

.residence-sixth__title {
  margin: 0;
  color: #000000;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.residence-sixth__description {
  margin: 10px 0 0;
  color: #000000;
  font-size: 16px;
  line-height: 1.8;
}

.residence-sixth__image {
  display: block;
  width: 716px;
  max-width: 100%;
  margin-top: 40px;
}

.residence-seventh {
  position: relative;
  z-index: 2;
  padding: 0px 0px;
  background: #ffffff;
}

.residence-seventh__inner {
  display: grid;
  justify-items: start;
}

.residence-seventh__lead {
  margin: 0;
  color: #000000;
  font-size: 29px;
  line-height: 1.5;
  font-weight: 500;
}

.residence-seventh__description {
  margin: 20px 0 0;
  color: #000000;
  font-size: 21px;
  line-height: 1.8;
  font-weight: 400;
}

.residence-eighth {
  position: relative;
  z-index: 2;
  padding: 160px 0px 120px;
  background: #ffffff;
}

.residence-eighth__inner {
  display: grid;
  justify-items: start;
}

.residence-eighth__lead {
  margin: 0;
  color: #000000;
  font-size: 29px;
  line-height: 1.5;
  font-weight: 500;
}

.residence-eighth__faq {
  display: grid;
  gap: 16px;
  width: 100%;
  margin-top: 60px;
}

.residence-eighth__faq + .residence-eighth__faq {
  margin-top: 60px;
}

.residence-eighth__faq-row {
  display: flex;
  align-items: baseline;
  column-gap: 24px;
}

.residence-eighth__faq-label {
  flex: 0 0 auto;
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.residence-eighth__faq-label--question {
  color: #172a88;
}

.residence-eighth__faq-label--answer {
  color: #ea5614;
}

.residence-eighth__faq-text {
  margin: 0;
  color: #000000;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
}

.residence-ninth {
  position: relative;
  z-index: 2;
  padding: 120px 0px 120px;
  background: #ffffff;
}

.residence-ninth__inner {
  display: grid;
  justify-items: start;
}

.residence-ninth__lead {
  margin: 0;
  color: #000000;
  font-size: 29px;
  line-height: 1.5;
  font-weight: 500;
}

.residence-ninth__description {
  margin: 20px 0 0;
  color: #000000;
  font-size: 21px;
  line-height: 1.8;
  font-weight: 400;
}

.residence-scenes {
  position: relative;
  z-index: 2;
  background: #ffffff;
}

.residence-scenes__sticky {
  position: relative;
}

.residence-scenes__viewport {
  position: relative;
  background: #ffffff;
}

.residence-scenes__track {
  display: grid;
  gap: 0;
}

.residence-scenes__panel {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.residence-scenes__panel-inner {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: clamp(0px, 0vw, 120px);
  align-items: end;
}

.residence-scenes__copy {
  max-width: 370px;
}

.residence-scenes__title {
  margin: 0;
  /* font-size: clamp(3.25rem, 5.2vw, 4.8rem); */
  font-size: 68px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.residence-scenes__subtitle {
  margin: 48px 0 0;
  font-size: 20px;
  line-height: 1.5;
}

.residence-scenes__description {
  margin: 12px 0 0;
  /* color: rgba(0, 0, 0, 0.78); */
  color: #000000;
  font-size: 16px;
  line-height: 1.9;
}

.residence-scenes__media {
  margin: 0;
}

.residence-scenes__media img {
  display: block;
  /* width: 68%; */
  width: 70%;
  aspect-ratio: 1.52;
  object-fit: cover;
}

.residence-scenes.is-enhanced {
  min-height: 100vh;
}

.residence-scenes.is-enhanced .residence-scenes__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.residence-scenes.is-enhanced .residence-scenes__viewport {
  height: 100vh;
  overflow: hidden;
}

.residence-scenes.is-enhanced .residence-scenes__track {
  display: flex;
  width: max-content;
  height: 100%;
  transform: translate3d(0, 100vh, 0);
  will-change: transform;
}

.residence-scenes.is-enhanced .residence-scenes__panel {
  flex: 0 0 var(--residence-scenes-panel-width, 100%);
  width: var(--residence-scenes-panel-width, 100%);
}

body.residence-page .residence-lp {
  color: #000000;
}

body.residence-page .residence-lp__inner {
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  body.residence-page .pfi-header__inner,
  body.page-template-page-residence-php .pfi-header__inner,
  body.page-template-page-residence .pfi-header__inner {
    height: 50%;
  }

  body.residence-page .pfi-header__logo img,
  body.page-template-page-residence-php .pfi-header__logo img,
  body.page-template-page-residence .pfi-header__logo img {
    /* width: 155px; */
    margin-top: 50px;
  }

  .residence-lp__hero-copy-stage--title {
    box-sizing: border-box;
    min-height: 100vh;
    align-items: start;
    padding-top: 118px;
  }

  .residence-lp__hero-bg {
    background-image: var(--residence-hero-bg-sp, var(--residence-hero-bg-pc));
  }

  .residence-lp__shell,
  .residence-lp__hero-shell {
    width: min(calc(100% - 40px), 1446px);
  }

  .residence-lp__hero-copy-block {
    width: min(100%, 720px);
    max-width: 720px;
    margin-left: 0;
    padding-bottom: 8px;
  }

  .residence-lp__hero-step-shell {
    width: min(calc(100% - 40px), 1446px);
  }

  .residence-lp__hero-copy-title {
    /* font-size: 27px; */
    font-size: clamp(2rem, 3.1vw, 3.35rem);
    line-height: 1.5;
    font-weight: 600;
  }

  .residence-lp__hero-copy-text {
    font-size: 22px;
    font-weight: 600;
  }

  .residence-lp__hero-copy-detail {
    /* font-size: 12px; */
    font-size: clamp(0.95rem, 1.35vw, 1.06rem);
    font-weight: 500;
  }

  .residence-lp__hero-copy-next {
    font-size: 22px;
    font-weight: 600;
  }

  .residence-lp__hero-copy-next-detail {
    /* font-size: 12px; */
    font-size: clamp(0.95rem, 1.35vw, 1.06rem);
    font-weight: 500;
  }

  .residence-fourth {
    padding: 56px 0px;
  }

  .residence-fourth__lead {
    font-size: 22px;
  }

  .residence-fourth__description {
    /* font-size: 12px; */
    font-size: clamp(0.95rem, 1.35vw, 1.06rem);
  }

  .residence-fourth__cta {
    font-size: 12px;
  }

  .residence-fourth__cta-icon {
    width: 20px;
    height: 20px;
  }

  .residence-fourth__cta-icon svg {
    width: 20px;
    height: 9px;
  }

  .residence-fifth {
    padding: 56px 0px;
  }

  .residence-fifth__lead {
    font-size: 22px;
  }

  .residence-fifth__feature-head {
    gap: 20px;
  }

  .residence-fifth__icon {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
  }

  .residence-fifth__feature-description {
    margin-left: 70px;
    /* font-size: 12px; */
    font-size: clamp(0.95rem, 1.35vw, 1.06rem);
    margin-top: 5px;
  }

  .residence-sixth__flow {
    margin-top: 28px;
  }

  .residence-sixth__item {
    min-height: 174px;
  }

  .residence-sixth__content {
    padding-bottom: 60px;
  }

  .residence-sixth__lead {
    font-size: 16px;
  }

  .residence-sixth__title {
    font-size: 18px;
    /* line-height: 2.5; */
    line-height: 1.8;
    font-weight: 600;
  }

  .residence-sixth__description {
    /* font-size: 12px; */
    font-size: clamp(0.95rem, 1.35vw, 1.06rem);
  }

  .residence-seventh__lead {
    font-size: 22px;
  }

  .residence-seventh__description {
    /* font-size: 12px; */
    font-size: clamp(0.95rem, 1.35vw, 1.06rem);
  }

  .residence-eighth {
    padding: 160px 0px 0px;
  }

  .residence-eighth__lead {
    font-size: 22px;
  }

  .residence-eighth__faq-text {
    /* font-size: 12px; */
    font-size: clamp(0.95rem, 1.35vw, 1.06rem);
    font-weight: 500;
    letter-spacing: -0.02rem;
  }

  .residence-eighth__faq-row {
    column-gap: 10px;
  }

  .text-q{
    color: #172a88;
  }

  .text-a{
    color: #ea5614;;
  }

  .residence-eighth__faq-label{
    font-size: 20px;
  }

  .residence-ninth__lead {
    font-size: 22px;
  }

  .residence-ninth__description {
    /* font-size: 12px; */
    font-size: clamp(0.95rem, 1.35vw, 1.06rem);
  }

  .residence-scenes__panel {
    min-height: auto;
    padding: 64px 0;
  }

  .residence-scenes__panel-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .residence-scenes__copy {
    max-width: none;
  }

  .residence-scenes__media img {
    width: 100%;
  }

  .residence-scenes__title {
    font-size: 34px;
  }

  .residence-scenes__subtitle {
    margin-top: 28px;
    font-size: 18px;
    font-weight: 500;
  }

  .residence-scenes__description {
    font-size: clamp(0.95rem, 1.35vw, 1.06rem);
    line-height: 1.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .residence-lp__hero-overlay {
    animation: none;
    opacity: 0;
  }

  html.js .residence-fifth__feature.js-residence-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .residence-scenes.is-enhanced .residence-scenes__sticky {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .residence-scenes.is-enhanced .residence-scenes__viewport {
    height: auto;
    overflow: visible;
  }

  .residence-scenes.is-enhanced .residence-scenes__track {
    display: grid;
    width: auto;
    height: auto;
    transform: none;
  }

  .residence-scenes.is-enhanced .residence-scenes__panel {
    flex: none;
  }
}
