/* ============================================
   plan.css - Plan page additions
   ============================================ */

.u-hidden--pc {
  display: none;
}

@media screen and (max-width: 767px) {
  .u-hidden--pc {
    display: inline;
  }
}

.p-section__inner--no-top {
  padding-top: 64px;
}

.p-contents--panorama-wrapper {
  background: #fff;
  color: #333;
}

.p-contents--panorama {
  background: #fff;
  color: #333;
  padding-bottom: 48px;
}

.p-contents--panorama .p-contents__heading {
  padding-top: 56px;
  margin-bottom: 0;
}

/* ============================================
   Plan Concept Section
   ============================================ */
.p-contents--concept {
  background: #fff;
}

.p-contents--concept .p-heading__strong {
  color: #006C5A;
}

.p-contents--concept .p-contents__inner {
  max-width: 1200px;
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.p-contents--concept .p-contents__inner > * {
  width: 100%;
}

.p-concept__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 70px 0;
  width: 100%;
}

.p-concept__item {
  display: flex;
  flex-direction: column;
  padding: 0 35px;
}

.p-concept__item:nth-child(3n+1) {
  padding-left: 0;
}

.p-concept__item:nth-child(3n) {
  padding-right: 0;
}

.p-concept__item:nth-child(3n+2) {
  padding-left: 55px;
  padding-right: 55px;
}

.p-concept__item:not(:nth-child(3n)) {
  border-right: 3px solid #006C5A;
}

.p-concept__category {
  font-size: 15px;
  color: #006C5A;
  font-family: 'Shippori Mincho B1', serif;
  letter-spacing: 0.05em;
  margin: 0 0 14px;
  line-height: 1;
}

.p-concept__lead {
  font-size: 14px;
  line-height: 2;
  color: #444;
  text-align: center;
  margin: -24px 0 48px;
  font-family: 'Shippori Mincho B1', serif;
}

.p-concept__title {
  font-size: 22px;
  color: #1a1a1a;
  font-family: 'Shippori Mincho B1', serif;
  line-height: 1.5;
  margin: 0 0 24px;
}

.p-concept__title-accent {
  color: #006C5A;
}

.p-concept__figure {
  position: relative;
  margin: 0;
  height: 260px;
}

.p-concept__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.p-concept__title {
  min-height: calc(22px * 1.4 * 2);
}

.p-concept__figure--cover {
  overflow: hidden;
}

.p-concept__figure--cover .c-figure__picture {
  display: block;
  width: 100%;
  height: 100%;
}

.p-concept__figure--cover .p-concept__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center;
}

.p-concept__figure--portrait {
  aspect-ratio: unset;
  max-height: unset;
}

.p-concept__text {
  font-size: 12px;
  line-height: 2;
  color: #444;
  margin: 10px 0 0;
}

@media screen and (max-width: 767px) {
  .p-contents--concept .p-contents__inner {
    padding-top: 40px;
    padding-bottom: 40px;
    gap: 20px;
  }

  .p-concept__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    background-color: transparent;
  }

  .p-concept__item {
    padding: 12px 8px;
    background: #fff;
    margin-bottom: 40px;
  }

  .p-concept__item:nth-child(3n+1) {
    padding-left: 8px;
  }

  .p-concept__item:nth-child(3n) {
    padding-right: 8px;
  }

  .p-concept__item:not(:nth-child(3n)) {
    border-right: none;
  }

  .p-concept__item:not(:nth-child(2n)) {
    border-right: 2px solid #006C5A;
    padding-right: 8px;
  }

  .p-concept__item:nth-child(2n) {
    padding-left: 8px;
  }

  .p-concept__item:nth-child(2n+1) {
    padding-left: 0;
  }

  .p-concept__item:nth-child(2n) {
    padding-right: 0;
  }

  .p-concept__lead {
    font-size: 12px;
    line-height: 1.9;
    margin: -12px 0 32px;
  }

  .p-concept__category {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .p-concept__figure {
    height: 140px;
  }

  .p-concept__item .p-concept__figure--portrait {
    height: auto !important;
    max-height: none !important;
    aspect-ratio: unset !important;
    overflow: visible;
  }

  .p-concept__title {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 6px;
    height: 40px !important;
    overflow: visible;
  }

  .p-concept__text {
    font-size: 10px;
    line-height: 1.8;
    margin-top: 8px;
  }
}

/* ============================================
   Hero Small - thin font
   ============================================ */
.p-hero .p-hero__heading .p-hero__small {
  font-family: 'Shippori Mincho', serif;
  font-weight: 400;
}

/* ============================================
   Plan List Tabs
   ============================================ */
.p-plan-tabs {
  display: flex;
  gap: 16px;
  justify-content: center;
  width: 100%;
  margin-top: 40px;
}

.p-plan-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 1;
  max-width: 320px;
  padding: 20px 40px;
  background: #fff;
  border: 3px solid #006C5A;
  color: #006C5A;
  font-family: 'Shippori Mincho B1', serif;
  font-size: 22px;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.p-plan-tab::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px solid #006C5A;
  pointer-events: none;
}

.p-plan-tab::after {
  content: '›';
  position: absolute;
  right: 20px;
  font-size: 22px;
  line-height: 1;
  opacity: 0.8;
}

.p-plan-tab:hover {
  background: #f0f8f6;
  box-shadow: inset 0 0 0 4px #006C5A;
}

@media screen and (max-width: 767px) {
  .p-plan-tabs {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
  }

  .p-plan-tab {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    padding: 16px 40px;
  }

  .p-property__price {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: center !important;
    padding: 8px 16px;
    white-space: normal;
    box-sizing: border-box;
  }
  .p-property__price-label {
    display: inline-block !important;
    position: relative !important;
    left: -45px !important;
  }
  .p-property__price-row {
    display: inline-block !important;
    position: relative !important;
    left: 0 !important;
  }
}

/* ============================================
   Plan Category Headings (4LDK / 3LDK / 2LDK)
   ============================================ */
.p-plan-category {
  width: 100%;
  margin-top: 40px;
  margin-bottom: 20px;
}

.p-plan-category__heading {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  color: #fff;
  font-family: 'Shippori Mincho B1', serif;
  font-size: 22px;
  line-height: 1;
}

.p-plan-category__num {
  font-size: inherit;
}

.p-plan-category__ldk {
  font-size: inherit;
}

.p-plan-category__label {
  font-size: inherit;
  margin-left: 4px;
}

@media screen and (max-width: 767px) {
  .p-plan-category {
    margin-top: 32px;
    margin-bottom: 16px;
  }

  .p-plan-category__heading {
    font-size: 18px;
  }
}

/* ============================================
   Property Price Banner
   ============================================ */
.p-property__price {
  background: #fff;
  color: #333;
  font-family: 'Shippori Mincho B1', serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 16px 120px;
  text-align: center !important;
  width: fit-content;
  max-width: 90%;
  box-sizing: border-box;
  display: block;
  line-height: 1;
  white-space: nowrap;
  margin: 12px auto 0;
}

.p-contents--plan .p-contents__inner > .p-property__price {
  width: fit-content;
  max-width: 90%;
}

@media screen and (max-width: 767px) {
  .p-contents--plan .p-contents__inner > .p-property__price {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    padding: 12px 16px;
  }
}

.p-property__price-label {
  display: inline-block;
  transform: translateX(-20px);
}

.p-property__price-row {
  display: inline-block;
  vertical-align: bottom;
}

.p-property__price-num {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 36px;
  color: #b29422;
  letter-spacing: 0.02em;
  vertical-align: bottom;
  line-height: 1;
  padding: 0 4px;
}

/* ============================================
   Plan Market Section
   ============================================ */
.p-plan-market {
  width: 100%;
  background: #014555;
}

.p-plan-market__inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 64px 48px;
  box-sizing: border-box;
}

.p-plan-market__header {
  margin-bottom: 52px;
  text-align: center;
}

.p-plan-market__heading {
  font-size: 22px;
  color: #fff;
  font-family: 'Shippori Mincho B1', serif;
  font-weight: bold;
  margin-bottom: 24px;
}

.p-plan-market__lead {
  font-size: 14px;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.85);
}

.p-plan-market__body {
  text-align: center;
}

.p-plan-market__subheading {
  font-size: 15px;
  color: #fff;
  font-family: 'Shippori Mincho B1', serif;
  letter-spacing: 0.15em;
  margin-bottom: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.p-plan-market__body-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 2;
  margin-top: 24px;
  margin-bottom: 40px;
}

.p-plan-market__stats {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 16px;
}

.p-plan-market__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 320px;
}

.p-plan-market__stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Shippori Mincho B1', serif;
  margin-bottom: 10px;
}

.p-plan-market__stat-rate {
  font-size: 16px;
  color: #fff;
  margin-bottom: 20px;
  font-family: 'Shippori Mincho B1', serif;
}

.p-plan-market__stat-num {
  font-size: 52px;
  font-family: 'Shippori Mincho B1', serif;
  color: #fff;
  line-height: 1;
  vertical-align: baseline;
}

.p-plan-market__figure {
  margin: 0;
  width: 100%;
}

.p-plan-market__img {
  width: 100%;
  height: auto;
  display: block;
}

.p-plan-market__notice {
  margin-top: 20px;
  text-align: left;
  color: rgba(255, 255, 255, 0.6);
}

.p-plan-market__notice .c-list__item {
  color: rgba(255, 255, 255, 0.6);
}

@media screen and (max-width: 767px) {
  .p-plan-market__inner {
    padding: 40px 16px;
  }

  .p-plan-market__heading {
    font-size: 18px;
  }

  .p-plan-market__subheading {
    font-size: 13px;
  }

  .p-plan-market__stats {
    flex-direction: column;
    align-items: center;
    gap: 36px;
  }

  .p-plan-market__stat {
    max-width: 260px;
    width: 100%;
  }

  .p-plan-market__stat-num {
    font-size: 40px;
  }
}

/* ============================================
   Property row-2 is-logout style
   ============================================ */
.p-property--row-2 .p-property__anchor.is-logout {
  cursor: default;
}

.p-property--row-2 .p-property__anchor.is-logout .p-property__image {
  overflow: hidden;
}
