/* ==========================================================================
   REX COURT MIYAKOJIMA LP
   ========================================================================== */

html, body {
  margin: 0;
  padding: 0;
  background: #E6E0E0;
}

* {
  box-sizing: border-box;
}

a {
  color: #4C4348;
  text-decoration: none;
}

a:hover {
  color: #A2696F;
}

@keyframes floatUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes ctaPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 26px rgba(142, 68, 80, .38); }
  50% { transform: scale(1.025); box-shadow: 0 16px 34px rgba(142, 68, 80, .5); }
}

@keyframes ctaSheen {
  0% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(220%); }
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.page {
  font-family: 'Noto Sans JP', sans-serif;
  color: #2A2529;
  background: #E6E0E0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.site {
  width: min(100%, 480px);
  background: #FAF8F8;
  box-shadow: 0 0 60px rgba(42, 37, 41, .14);
  overflow: hidden;
  position: relative;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  height: 620px;
  background: #322C2F;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 37, 41, .5) 0%, rgba(42, 37, 41, .05) 30%, rgba(42, 37, 41, .45) 58%, rgba(42, 37, 41, .92) 100%);
  pointer-events: none;
}

.hero__top {
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.hero__top-row {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
}

.hero__location {
  font-family: 'Shippori Mincho B1', serif;
  color: #FAF8F8;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .18em;
  font-weight: 500;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
  text-align: center;
}

.hero__logo {
  height: 33px;
  width: auto;
  flex: none;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .45));
}

.hero__eyebrow {
  font-family: 'Shippori Mincho B1', serif;
  color: #FAF8F8;
  font-size: 15px;
  letter-spacing: .18em;
  font-weight: 500;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
  text-align: center;
  margin-top: -5px;
}

.hero__bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: none;
}

.hero__title {
  margin: 0;
  font-family: 'Shippori Mincho B1', serif;
  color: #FAF8F8;
  font-size: 34px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .02em;
  text-wrap: pretty;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.hero__lead {
  margin: 0;
  color: rgba(250, 248, 248, .88);
  font-size: 13.5px;
  line-height: 1.9;
  text-wrap: pretty;
}

.hero__plan-banner {
  width: 100%;
  background: #A2696F;
  color: #FAF8F8;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  pointer-events: auto;
}

.hero__plan-banner-title {
  font-size: 14px;
  letter-spacing: .06em;
  font-weight: 700;
  white-space: nowrap;
}

.hero__plan-banner-sub {
  font-size: 13px;
  opacity: .9;
  white-space: nowrap;
}

.hero__pills {
  display: flex;
  gap: 6px;
  pointer-events: auto;
}

.hero__pill {
  flex: 1;
  text-align: center;
  background: rgba(250, 248, 248, .14);
  border: 1px solid rgba(250, 248, 248, .4);
  color: #FAF8F8;
  font-size: 12.5px;
  padding: 6px 2px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Price block (under hero)
   -------------------------------------------------------------------------- */

.price {
  background: #4C4348;
  color: #FAF8F8;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price__label-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price__label {
  font-size: 13px;
  letter-spacing: .1em;
  opacity: .75;
}

.price__value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: 'Shippori Mincho B1', serif;
}

.price__value {
  font-size: 44px;
  line-height: 1;
  font-weight: 600;
}

.price__unit {
  font-size: 16px;
}

.price__tax {
  font-size: 13px;
  font-family: 'Noto Sans JP', sans-serif;
  opacity: .75;
  margin-left: 4px;
}

.price__divider {
  height: 1px;
  background: rgba(250, 248, 248, .22);
}

.price__plans-row {
  display: flex;
  gap: 8px;
}

.price__plan-item {
  flex: 1;
  text-align: center;
  background: rgba(250, 248, 248, .1);
  padding: 10px 4px;
}

.price__plan-label {
  font-size: 12px;
  letter-spacing: .08em;
  opacity: .8;
}

.price__plan-amount {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 18px;
  margin-top: 3px;
}

.price__plan-amount span {
  font-size: 12px;
}

.price__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  opacity: .7;
}

/* --------------------------------------------------------------------------
   CTA button (repeated across sections)
   -------------------------------------------------------------------------- */

.cta {
  padding: 20px 22px 24px;
  background: #F0EBEA;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta__intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cta__intro-text {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 15px;
  color: #8A5A60;
}

.cta__caption {
  text-align: center;
  font-size: 13.5px;
  color: #8A5A60;
  font-weight: 700;
}

.cta-button {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: none;
  appearance: none;
  background: linear-gradient(135deg, #C4566C 0%, #8E4450 100%);
  color: #fff;
  padding: 20px 18px;
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .06em;
  border-radius: 999px;
  cursor: pointer;
  animation: ctaPulse 2.4s ease-in-out infinite;
}

.cta-button--lg {
  padding: 21px 18px;
  font-size: 20px;
}

.cta-button--contact {
  background: linear-gradient(135deg, #D4667C 0%, #9A4A57 100%);
}

.cta-button__arrow {
  font-size: 17px;
}

.cta-button--lg .cta-button__arrow {
  font-size: 18px;
}

.cta-button__sheen {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0));
  animation: ctaSheen 3.2s ease-in-out infinite;
  pointer-events: none;
}

/* Secondary CTA banner used between content sections */

.cta-banner {
  padding: 26px 22px;
  background: #FAF8F8;
  border-top: 1px solid #E2DADA;
  border-bottom: 1px solid #E2DADA;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-banner--plain {
  padding: 0 22px 34px;
  background: transparent;
  border: none;
}

.cta-banner__lead {
  text-align: center;
  font-family: 'Shippori Mincho B1', serif;
  font-size: 17px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #E2DADA;
}

.stats__item {
  background: #FAF8F8;
  padding: 16px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.stats__value {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.stats__value span {
  font-size: 12px;
}

.stats__label {
  font-size: 12px;
  color: #7A7276;
}

/* --------------------------------------------------------------------------
   LDK visual
   -------------------------------------------------------------------------- */

.ldk {
  padding: 34px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ldk__visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
}

.ldk__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ldk__caption {
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ldk__caption-title {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 16px;
  line-height: 1.6;
}

.ldk__caption-note {
  font-size: 12.5px;
  color: #7A7276;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Section heading block (badge + title + lead)
   -------------------------------------------------------------------------- */

.section {
  padding: 36px 22px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section--tint {
  background: #F0EBEA;
  padding: 34px 22px;
  gap: 16px;
}

.section--wide {
  padding: 40px 22px;
  gap: 16px;
}

.section--dark {
  background: #322C2F;
  color: #F5F0F0;
  padding: 36px 22px;
  gap: 16px;
}

.section-badge {
  font-size: clamp(18px, 5.5vw, 26px);
  line-height: 1.2;
  color: #8A5A60;
  letter-spacing: .01em;
  font-weight: 600;
  text-align: center;
  font-family: 'Shippori Mincho B1', serif;
  overflow-wrap: anywhere;
  background: #EDE3E3;
  padding: 14px 22px;
  margin: 0 -22px;
}

.section-badge--dark {
  color: #D9AFB2;
  background: rgba(250, 248, 248, .08);
}

.section-title {
  margin: 0;
  font-family: 'Shippori Mincho B1', serif;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 600;
  text-align: center;
}

.section-title--lg {
  font-size: 24px;
}

.section-title--tight {
  line-height: 1.45;
}

.section-lead {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: #4E464A;
  text-align: center;
}

.section-lead--tight {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Plan tabs
   -------------------------------------------------------------------------- */

.plan-tabs-hint {
  padding: 6px 22px 0;
  text-align: center;
  font-size: 13px;
  color: #7A7276;
  font-weight: 700;
}

.plan-tabs {
  padding: 10px 22px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  align-items: stretch;
}

.plan-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 4px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
  border: 1px solid #E2DADA;
  background: #FAF8F8;
  color: #7A7276;
  box-shadow: none;
  transform: none;
}

.plan-tab span {
  display: block;
}

.plan-tab__code {
  font-size: 12px;
  letter-spacing: .1em;
}

.plan-tab__type {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 19px;
  line-height: 1.1;
}

.plan-tab__ldk {
  font-size: 12px;
  opacity: .85;
}

.plan-tab__price {
  font-size: 12px;
  font-weight: 700;
}

.plan-tab.is-active {
  border: 2px solid #8E4450;
  background: linear-gradient(160deg, #C4566C 0%, #8E4450 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(142, 68, 80, .35);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Plan detail panels
   -------------------------------------------------------------------------- */

.plan-panel {
  padding: 20px 22px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plan-panel[hidden] {
  display: none;
}

.plan-panel__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-panel__code {
  font-size: 13px;
  color: #A2696F;
  letter-spacing: .14em;
  font-weight: 700;
  text-align: center;
}

.plan-panel__title {
  margin: 0;
  font-family: 'Shippori Mincho B1', serif;
  font-size: clamp(18px, 5.4vw, 22px);
  line-height: 1.5;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.plan-panel__desc {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: #4E464A;
  text-wrap: pretty;
  text-align: center;
}

.plan-panel__drawing {
  background: #fff;
  border: 1px solid #E2DADA;
  padding: 12px;
  width: min(100%, 300px);
  align-self: center;
}

.plan-panel__drawing img {
  width: 100%;
  display: block;
}

.plan-panel__photo {
  height: 210px;
  position: relative;
}

.plan-panel__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plan-panel__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #E2DADA;
  border: 1px solid #E2DADA;
}

.plan-panel__spec {
  background: #FAF8F8;
  padding: 10px 12px;
}

.plan-panel__spec-label {
  font-size: 12px;
  color: #7A7276;
}

.plan-panel__spec-value {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 17px;
}

.plan-panel__total {
  border-top: 1px solid #E2DADA;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-panel__total-label {
  font-size: 13px;
  color: #7A7276;
  letter-spacing: .08em;
}

.plan-panel__total-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan-panel__total-value {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 30px;
  color: #4C4348;
}

.plan-panel__total-value span {
  font-size: 14px;
}

.plan-panel__total-note {
  font-size: 13px;
  color: #7A7276;
}

/* --------------------------------------------------------------------------
   Before (existing floor plan)
   -------------------------------------------------------------------------- */

.before-drawing {
  background: #fff;
  border: 1px solid #E2DADA;
  padding: 12px;
  width: 100%;
}

.before-drawing img {
  width: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   Payment example
   -------------------------------------------------------------------------- */

.payment-box {
  border: 1px solid #4C4348;
  background: #4C4348;
  color: #FAF8F8;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.payment-box__condition {
  font-size: 13px;
  opacity: .8;
}

.payment-box__headline {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: 'Shippori Mincho B1', serif;
}

.payment-box__amount {
  font-size: 44px;
  line-height: 1;
  font-weight: 600;
}

.payment-box__unit {
  font-size: 15px;
}

.payment-box__breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-box__row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  border-bottom: 1px dashed rgba(250, 248, 248, .3);
  padding-bottom: 6px;
}

.payment-box__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.payment-box__row-label {
  opacity: .85;
}

.payment-box__row-value {
  font-weight: 700;
}

.payment-box__totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border-top: 1px solid rgba(250, 248, 248, .25);
  padding-top: 14px;
}

.payment-box__total-item {
  background: rgba(250, 248, 248, .1);
  padding: 10px 4px;
  text-align: center;
}

.payment-box__total-label {
  font-size: 12px;
  opacity: .8;
  letter-spacing: .08em;
}

.payment-box__total-value {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 17px;
  margin-top: 3px;
  white-space: nowrap;
}

.payment-box__total-value span {
  font-size: 12px;
}

.payment-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: #7A7276;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Area visual (full width photo band)
   -------------------------------------------------------------------------- */

.area-visual {
  position: relative;
  height: 260px;
}

.area-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   Location
   -------------------------------------------------------------------------- */

.location-photo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.location-photo__frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
}

.location-photo__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.location-photo__caption {
  font-size: 12.5px;
  color: #7A7276;
}

.location-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

.location-point {
  display: flex;
  gap: 12px;
  border-top: 1px solid #E2DADA;
  padding-top: 14px;
}

.location-point__index {
  font-family: 'Shippori Mincho B1', serif;
  color: #A2696F;
  font-size: 14px;
  flex: 0 0 22px;
}

.location-point__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.location-point__title {
  font-weight: 700;
  font-size: 14px;
}

.location-point__text {
  font-size: 14px;
  line-height: 1.9;
  color: #4E464A;
}

/* --------------------------------------------------------------------------
   Access & school
   -------------------------------------------------------------------------- */

.info-card {
  background: #FAF8F8;
  border: 1px solid #E2DADA;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card__title {
  font-size: 13px;
  color: #7A7276;
  letter-spacing: .1em;
  font-weight: 700;
}

.info-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.info-card__row + .info-card__row {
  border-top: 1px dashed #E2DADA;
  padding-top: 10px;
}

.info-card__row-label {
  font-size: 14px;
}

.info-card__row-value {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 16px;
  white-space: nowrap;
}

.info-card__note {
  font-size: 12.5px;
  color: #7A7276;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Specification
   -------------------------------------------------------------------------- */

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #E2DADA;
  border: 1px solid #E2DADA;
}

.spec-list__item {
  background: #fff;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-list__label {
  font-size: 13px;
  color: #A2696F;
  font-weight: 700;
  letter-spacing: .06em;
}

.spec-list__value {
  font-size: 14px;
  line-height: 1.85;
  color: #4E464A;
}

.spec-note {
  font-size: 12.5px;
  color: #7A7276;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Building data
   -------------------------------------------------------------------------- */

.building-visual {
  width: 100%;
  aspect-ratio: 3 / 2;
  position: relative;
}

.building-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.building-table {
  display: flex;
  flex-direction: column;
}

.building-table__row {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid rgba(244, 239, 230, .18);
  padding: 11px 0;
}

.building-table__row:last-child {
  border-bottom: none;
}

.building-table__label {
  flex: 0 0 92px;
  font-size: 13px;
  opacity: .7;
}

.building-table__value {
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  background: #4C4348;
  color: #FAF8F8;
  padding: 40px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  opacity: .88;
  text-align: center;
}

.contact__caption {
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
}

.contact__company {
  border-top: 1px solid rgba(250, 248, 248, .2);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.9;
  text-align: center;
}

.contact__logo {
  height: 69px;
  width: auto;
  flex: none;
  object-fit: contain;
  display: block;
  margin-bottom: 6px;
}

.contact__company-name {
  font-weight: 700;
  font-size: 18px;
}

.contact__disclaimer {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  opacity: .6;
  text-wrap: pretty;
}
