/* RareDex public conversion path: clear meaning without losing the quiet botanical system. */

.botanical-hero-copy.rd-stone-card .botanical-hero-logo {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
}

.botanical-hero h1.botanical-hero-promise {
  margin: clamp(22px, 3.2vw, 34px) auto 0;
  color: var(--rd-heading);
  font-size: clamp(1.78rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.48;
  letter-spacing: 0;
  text-wrap: balance;
}

.botanical-hero-copy .botanical-hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 360px);
  gap: 8px;
  margin: clamp(21px, 3vw, 30px) auto 0;
}

.botanical-hero-copy .botanical-hero-button {
  width: 100%;
  min-height: 50px;
}

.botanical-hero-cta-note {
  margin: 2px 0 0;
  color: color-mix(in srgb, var(--rd-text) 72%, var(--rd-muted));
  font-size: .72rem;
  line-height: 1.65;
}

.botanical-hero-copy .botanical-hero-login-link {
  justify-self: center;
  min-height: 40px;
  padding-inline: 12px;
  color: var(--rd-heading);
  font-size: .78rem;
  text-underline-offset: 4px;
}

.botanical-hero-login-link[hidden],
.botanical-hero-cta-note[hidden] {
  display: none !important;
}

.plant-time-story-heading > p:last-child {
  max-width: 760px;
}

.plant-time-story-lead {
  display: grid;
  gap: 3px;
  line-break: strict;
  text-wrap: pretty;
}

.plant-time-story-sentence {
  display: block;
}

.raredex-copy-sentence {
  display: block;
}

.raredex-service-step {
  display: block;
  margin-bottom: 14px;
  color: var(--rd-brass);
  font-family: Arial, sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.raredex-service-difference {
  max-width: 780px;
  margin: 28px 0 0;
  padding-left: 18px;
  border-left: 1px solid color-mix(in srgb, var(--rd-brass) 52%, var(--rd-line));
  color: var(--rd-heading);
  font-family: Georgia, "Times New Roman", "Yu Mincho", serif;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.9;
}

.first-record-invitation {
  width: min(1040px, calc(100% - 44px));
  margin-top: clamp(52px, 7vw, 82px);
  margin-bottom: clamp(72px, 9vw, 112px);
  padding: clamp(28px, 4vw, 42px) 0;
}

.first-record-invitation-copy {
  max-width: 620px;
}

.first-record-invitation .first-record-invitation-eyebrow {
  margin: 0 0 9px;
  color: var(--rd-brass);
  font-family: Arial, sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.first-record-invitation .first-record-invitation-title {
  margin: 0;
  color: var(--rd-heading);
  font-family: Georgia, "Times New Roman", "Yu Mincho", serif;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.55;
}

.first-record-invitation-copy > span {
  display: block;
  margin-top: 8px;
  color: var(--rd-muted);
  font-size: .86rem;
  line-height: 1.75;
}

.first-record-invitation .rd-button {
  min-width: 17em;
}

.auth-box[data-auth-mode="signup"] {
  border-color: color-mix(in srgb, var(--rd-brass) 46%, var(--rd-reading-border));
}

.auth-box[data-auth-mode="signup"] h1 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", "Yu Mincho", serif;
  font-size: clamp(1.55rem, 4vw, 2rem);
  line-height: 1.45;
  white-space: nowrap;
}

.auth-box[data-auth-mode="signup"] .auth-lead {
  margin-bottom: 22px;
  color: var(--rd-text);
}

@media (max-width: 760px) {
  .auth-box[data-auth-mode="signup"] h1 {
    font-size: clamp(1.32rem, 6.2vw, 1.55rem);
  }

  .botanical-hero-copy.rd-stone-card .botanical-hero-logo {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
  }

  .botanical-hero h1.botanical-hero-promise {
    margin-top: 22px;
    font-size: clamp(1.62rem, 7.3vw, 2rem);
    line-height: 1.48;
  }

  .plant-time-story-phrase {
    display: block;
  }

  .raredex-mobile-phrase {
    display: block;
  }

  .botanical-hero-copy .botanical-hero-actions {
    margin-top: 19px;
  }

  .raredex-service-difference {
    margin-top: 22px;
    padding-left: 14px;
    font-size: 1rem;
  }

  .first-record-invitation {
    width: calc(100% - 28px);
    margin-top: 44px;
    margin-bottom: 68px;
    gap: 22px;
    padding: 28px 2px;
  }

  .first-record-invitation .rd-button {
    min-width: 0;
  }
}

@media (max-width: 360px) {
  .botanical-hero-cta-note {
    font-size: .68rem;
  }

  .first-record-invitation-copy > span {
    font-size: .8rem;
  }
}

@media (max-width: 760px) and (min-height: 600px) {
  .botanical-hero-copy .botanical-hero-actions {
    top: clamp(36px, 6svh, 52px);
  }
}

/* Homepage readability: every content panel follows the "残された時間" glass standard. */
.plant-time-story,
.raredex-service-intro,
.first-record-invitation {
  isolation: isolate;
}

.plant-time-story,
.raredex-service-intro,
.first-record-invitation {
  padding: clamp(28px, 4vw, 48px);
}

.entrance-page > :is(
  .plant-time-story,
  .raredex-service-intro,
  .recent-time-section,
  .first-record-invitation
) {
  box-sizing: border-box;
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  margin-left: 50%;
  margin-right: 0;
  transform: translateX(-50%);
}

/* The hero keeps its photographic treatment, but shares the same outer measure. */
.entrance-page > .botanical-hero {
  width: min(1180px, calc(100vw - 32px));
  margin-left: calc((100% - min(1180px, calc(100vw - 32px))) / 2);
  margin-right: calc((100% - min(1180px, calc(100vw - 32px))) / 2);
}

.plant-time-story-heading {
  gap: 9px;
  padding: 0 0 24px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--rd-brass) 35%, var(--rd-line));
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.plant-time-story-heading > p:last-child,
.raredex-service-intro-copy > p:last-child,
.raredex-service-points p,
.first-record-invitation-copy > span {
  color: color-mix(in srgb, var(--rd-text) 92%, var(--rd-heading));
}

.raredex-service-intro-copy {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.raredex-service-points {
  gap: 0;
  border-top: 1px solid color-mix(in srgb, var(--rd-brass) 32%, var(--rd-line));
  border-bottom: 1px solid color-mix(in srgb, var(--rd-brass) 32%, var(--rd-line));
}

.raredex-service-points article,
.raredex-service-points article:first-child,
.raredex-service-points article:last-child {
  min-width: 0;
  padding: 26px clamp(18px, 3vw, 32px) 28px;
  border: 0;
  border-left: 1px solid color-mix(in srgb, var(--rd-brass) 22%, var(--rd-line));
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.raredex-service-points article:first-child {
  padding-left: 0;
  border-left: 0;
}

.raredex-service-points article:last-child {
  padding-right: 0;
}

.raredex-service-difference {
  margin-top: 28px;
  padding: 0 0 0 18px;
  border: 0;
  border-left: 1px solid color-mix(in srgb, var(--rd-brass) 52%, var(--rd-line));
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.raredex-service-more {
  min-height: 44px;
  margin-top: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.first-record-invitation-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.first-record-invitation .first-record-invitation-title {
  text-wrap: balance;
}

@media (max-width: 860px) {
  .first-record-invitation {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }

  .first-record-invitation .rd-button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 700px) {
  .plant-time-story,
  .raredex-service-intro,
  .first-record-invitation {
    padding: 24px 16px;
    border-radius: 22px;
  }

  .plant-time-story-heading {
    padding: 0 0 19px;
  }

  .plant-time-story-heading h2 {
    white-space: normal;
    text-wrap: pretty;
  }

  .raredex-service-points {
    gap: 0;
  }

  .raredex-service-points article,
  .raredex-service-points article:first-child,
  .raredex-service-points article:last-child {
    padding: 21px 0;
    border: 0;
    border-top: 1px solid color-mix(in srgb, var(--rd-brass) 20%, var(--rd-line));
  }

  .raredex-service-points article:first-child {
    border-top: 0;
  }

  .raredex-service-difference {
    margin-top: 22px;
    padding: 0 0 0 14px;
  }

  .first-record-invitation {
    padding: 24px 16px;
  }
}

/* Homepage section rhythm: one editorial hierarchy across the five content cards. */
.entrance-page {
  --home-section-gap: clamp(24px, 3vw, 32px);
  --home-section-title-size: clamp(1.5rem, 3.2vw, 2.5rem);
}

.entrance-page .home-section-heading {
  text-align: left;
}

html body main.entrance-page .home-section-heading .home-section-eyebrow {
  margin: 0 0 12px;
  color: var(--rd-brass);
  font-family: Arial, "Noto Sans JP", sans-serif;
  font-size: var(--rd-type-meta, 13px) !important;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .16em;
  text-align: left;
  text-transform: uppercase;
}

.entrance-page :is(h2, p).home-section-title,
.entrance-page .recent-time-heading > .rd-section-title {
  margin: 0;
  color: var(--rd-heading);
  font-family: Georgia, "Times New Roman", "Yu Mincho", serif;
  font-size: var(--home-section-title-size);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
  text-wrap: balance;
}

.entrance-page .recent-time-heading .recent-time-lead {
  max-width: none;
  margin: 12px 0 clamp(28px, 4vw, 44px);
  text-align: left;
}

.entrance-page > .plant-time-story + .recent-time-section,
.entrance-page > .recent-time-section + .raredex-service-intro,
.entrance-page > .raredex-service-intro + .first-record-invitation,
.entrance-page > .first-record-invitation + .seed-home-section,
.entrance-page > .seed-home-section + .raredex-footer {
  margin-top: var(--home-section-gap);
}

.entrance-page > .first-record-invitation {
  margin-bottom: 0;
}

html.text-comfort main.entrance-page :is(h2, p).home-section-title,
html.text-comfort main.entrance-page .recent-time-heading > .rd-section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.75rem);
}

@media (max-width: 700px) {
  .entrance-page {
    --home-section-gap: 24px;
    --home-section-title-size: 1.5rem;
  }

  .entrance-page :is(h2, p).home-section-title,
  .entrance-page .recent-time-heading > .rd-section-title {
    line-height: 1.38;
  }

  .entrance-page .recent-time-heading .recent-time-lead {
    margin-top: 10px;
    margin-bottom: 24px;
  }
}
