/* ==========================================================================
   Meihou Theme — resident.css (ご入居者様 / PC)
   Design width: 1280
   ========================================================================== */

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

.p-resident-hero {
  width: var(--width-page);
  margin: 0 auto;
  padding: 0 var(--side) 80px;
}

.p-resident-hero .c-breadcrumb {
  margin: 0 0 98px;
  padding: 0;
}

.p-resident-hero__title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-blue-accent);
}

.p-resident-hero__en {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-text-soft);
}

.p-resident-hero__media {
  margin-top: 100px;
}

.p-resident-hero__media img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.p-resident-hero__catch {
  margin-top: 80px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-text);
}

.p-resident-hero__lead {
  margin-top: 36px;
  text-align: center;
  font-size: 14px;
  line-height: 2;
  color: var(--color-text);
}

.p-resident-hero__lead-em {
  font-weight: 600;
  color: var(--color-blue-accent);
}

/* --------------------------------------------------------------------------
   Meiho Club
   XAML: title y1270 / catch y1330 / body y1380
         cards 600×140 @ x580, gap 15 / icon circle 100 / text x730
   -------------------------------------------------------------------------- */

.p-resident-club {
  display: grid;
  /* 左380 + gap100 + 右600 = カード左端 x580 */
  grid-template-columns: 381px 600px;
  column-gap: 100px;
  align-items: start;
  width: var(--width-page);
  margin: 0 auto;
  padding: 80px var(--side) 100px;
}

.p-resident-club__intro {
  padding-top: 0;
}

.p-resident-club__title {
  display: flex;
  align-items: baseline;
  margin: 0 0 36px;
  line-height: 1.2;
}

/* Meiho Club = 大きく紺色 / とは = 普通サイズ・黒 */
.p-resident-club__title-brand {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  color: var(--color-blue-accent);
  letter-spacing: 0.02em;
}

.p-resident-club__title-ja {
  margin-left: 0.15em;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-text);
}

/* XAML: YuGothic / 20 / #130f3f */
.p-resident-club__catch {
  margin: 0 0 30px;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-navy);
}

/* XAML: YuGothic / 14 / #333333 */
.p-resident-club__body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 2;
  color: var(--color-text);
}

.p-resident-club__list {
  display: grid;
  gap: 15px;
}

.p-resident-club__item {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 600px;
  height: 140px;
  padding: 20px 30px 20px 20px;
  border-radius: 8px;
  background: var(--color-bg-soft);
}

.p-resident-club__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-white);
  overflow: hidden;
}

.p-resident-club__icon img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.p-resident-club__content {
  flex: 1;
  min-width: 0;
}

.p-resident-club__item-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-navy);
}

.p-resident-club__item-text {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Registration steps
   -------------------------------------------------------------------------- */

.p-resident-steps {
  background: var(--color-bg-soft);
}

.p-resident-steps__inner {
  width: var(--width-page);
  margin: 0 auto;
  padding: 100px var(--side);
}

.p-resident-steps__title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
}

.p-resident-steps__title-em {
  color: var(--color-blue-accent);
}

.p-resident-steps__lead {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  line-height: 2;
  color: var(--color-text);
}

.p-resident-steps__label {
  margin: 60px 0 20px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
}

.p-resident-steps__list {
  padding: 40px 50px;
  background: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
}

.p-resident-steps__item {
  position: relative;
  display: grid;
  grid-template-columns: 130px 120px 1fr auto;
  column-gap: 40px;
  align-items: center;
  min-height: 218px;
  padding: 31px 0;
  border-bottom: 1px solid var(--color-line);
}

.p-resident-steps__item:last-child {
  border-bottom: none;
  padding-bottom: 10px;
}

.p-resident-steps__item:first-child {
  padding-top: 10px;
}

/* XAML: STEP YuGothic 18 / #053795 @ x150
         数字 YuMincho 80 / #333 @ x221 — 数字の垂直中央に STEP を揃える */
.p-resident-steps__step {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
  align-self: center;
  min-height: 80px;
  padding-right: 30px;
  border-right: 1px solid var(--color-line);
}

.p-resident-steps__step-label {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--color-blue-accent);
}

.p-resident-steps__step-num {
  font-family: var(--font-serif);
  font-size: 80px;
  font-weight: 500;
  line-height: 0.85;
  color: var(--color-text);
}

.p-resident-steps__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--color-bg-soft);
}

.p-resident-steps__icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.p-resident-steps__item-title {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-navy);
}

.p-resident-steps__item-text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--color-text);
}

.p-resident-steps__link {
  color: var(--color-blue-accent);
  text-decoration: underline;
  word-break: break-all;
}

.p-resident-steps__link:hover {
  opacity: 0.8;
}

.p-resident-steps__qr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  padding: 9px;
  background: var(--color-white);
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.p-resident-steps__qr img {
  display: block;
  width: 102px;
  height: 102px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .p-resident-hero {
    padding-bottom: 64px;
  }

  .p-resident-hero .c-breadcrumb {
    margin-bottom: 48px;
  }

  .p-resident-hero__title {
    font-size: 28px;
  }

  .p-resident-hero__media {
    margin-top: 56px;
  }

  .p-resident-hero__media img {
    height: auto;
    min-height: 280px;
    max-height: 420px;
  }

  .p-resident-hero__catch {
    margin-top: 48px;
    font-size: 26px;
  }

  .p-resident-hero__lead {
    margin-top: 24px;
  }

  .p-resident-club {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 40px;
    padding: 64px var(--side) 80px;
  }

  .p-resident-club__title-brand {
    font-size: 32px;
  }

  .p-resident-club__title-ja {
    font-size: 20px;
  }

  .p-resident-club__catch {
    font-size: 18px;
  }

  .p-resident-club__item {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 120px;
    padding: 20px;
  }

  .p-resident-steps__inner {
    padding: 80px var(--side);
  }

  .p-resident-steps__title {
    font-size: 26px;
  }

  .p-resident-steps__label {
    margin-top: 48px;
    font-size: 18px;
  }

  .p-resident-steps__list {
    padding: 32px 28px;
  }

  .p-resident-steps__item {
    grid-template-columns: auto auto;
    grid-template-areas:
      "step icon"
      "content content"
      "qr qr";
    column-gap: 24px;
    row-gap: 24px;
    align-items: start;
    min-height: 0;
    padding: 28px 0;
  }

  .p-resident-steps__step {
    grid-area: step;
    min-height: 0;
    padding-right: 20px;
  }

  .p-resident-steps__step-num {
    font-size: 56px;
  }

  .p-resident-steps__icon {
    grid-area: icon;
    width: 96px;
    height: 96px;
    justify-self: start;
  }

  .p-resident-steps__icon img {
    width: 64px;
    height: 64px;
  }

  .p-resident-steps__content {
    grid-area: content;
  }

  .p-resident-steps__qr {
    grid-area: qr;
    width: 100%;
    max-width: 160px;
    height: auto;
    aspect-ratio: 1;
    justify-self: center;
    margin-top: 8px;
  }

  .p-resident-steps__qr img {
    width: 100%;
    height: auto;
    max-width: 120px;
    max-height: 120px;
  }
}

@media (max-width: 767px) {
  .p-resident-hero {
    padding-bottom: 48px;
  }

  .p-resident-hero .c-breadcrumb {
    margin-bottom: 32px;
  }

  .p-resident-hero__title {
    font-size: 24px;
  }

  .p-resident-hero__media {
    margin-top: 40px;
  }

  .p-resident-hero__media img {
    min-height: 200px;
    max-height: 320px;
  }

  .p-resident-hero__catch {
    margin-top: 32px;
    font-size: 22px;
    text-align: left;
  }

  .p-resident-hero__lead {
    text-align: left;
  }

  .p-resident-hero__lead br {
    display: none;
  }

  .p-resident-club {
    padding: 48px var(--side) 64px;
  }

  .p-resident-club__title {
    flex-wrap: wrap;
    margin-bottom: 24px;
  }

  .p-resident-club__title-brand {
    font-size: 28px;
  }

  .p-resident-club__title-ja {
    font-size: 18px;
  }

  .p-resident-club__catch {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .p-resident-club__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 16px;
  }

  .p-resident-club__icon {
    width: 72px;
    height: 72px;
  }

  .p-resident-club__icon img {
    width: 56px;
    height: 56px;
  }

  .p-resident-club__item-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .p-resident-steps__inner {
    padding: 64px var(--side);
  }

  .p-resident-steps__title {
    font-size: 22px;
    text-align: left;
  }

  .p-resident-steps__lead {
    text-align: left;
  }

  .p-resident-steps__lead br {
    display: none;
  }

  .p-resident-steps__list {
    padding: 24px 16px;
    border-radius: 8px;
  }

  .p-resident-steps__item {
    column-gap: 16px;
    row-gap: 20px;
    padding: 24px 0;
  }

  .p-resident-steps__step {
    padding-right: 12px;
  }

  .p-resident-steps__step-label {
    font-size: 14px;
  }

  .p-resident-steps__step-num {
    font-size: 44px;
  }

  .p-resident-steps__icon {
    width: 72px;
    height: 72px;
  }

  .p-resident-steps__icon img {
    width: 48px;
    height: 48px;
  }

  .p-resident-steps__item-title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .p-resident-steps__qr {
    max-width: 140px;
  }
}
