*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #eaf3fb;
  color: #182366;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #eaf3fb;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.lfs-page {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 50px;
  overflow-x: hidden;
  background: #f3f9ff;
}

.lfs-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lfs-is-hidden {
  display: none !important;
}

.lfs-header {
  display: flex;
  align-items: flex-start;
  min-height: 60px;
  padding: 14px 0 0 15px;
  background: #fff;
}

.lfs-header__logo-link {
  display: inline-flex;
  width: 109px;
  min-height: 36px;
  align-items: center;
}

.lfs-header__logo {
  width: 109px;
  height: 36px;
  object-fit: contain;
}

.lfs-breadcrumb {
  padding: 13px 17px 10px;
  background: #f3f9ff;
  color: #5d689e;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.lfs-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lfs-breadcrumb li + li::before {
  content: ">";
  margin-right: 3px;
}

.lfs-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.lfs-hero {
  position: relative;
  background: #d9edf9;
}

.lfs-hero__title {
  margin: 0;
}

.lfs-hero__image {
  width: 100%;
  height: auto;
}

.lfs-hero__updated {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin: 0;
  padding: 8px 21px 0;
  background: #f3f9ff;
  color: #5d689e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.lfs-intro {
  padding: 50px 23px 50px;
}

.lfs-intro p {
  margin: 0;
  color: #1a276b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.63;
}

.lfs-start-card {
  margin: 0 22px 22px;
  padding: 27px 18px 24px;
  border-radius: 5px;
  background: #fff;
  text-align: center;
}

.lfs-start-card__lead {
  margin: 0 0 7px;
  color: #1d2873;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .lfs-start-card__mascot {
    width: 148px;
    height: auto;
    margin: 0 auto -32px;
    z-index: 10;
    position: relative;
  }
}

.lfs-main-button {
  display: inline-flex;
  width: min(100%, 323px);
  min-height: 66px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 33px;
  background: linear-gradient(100deg, #7374ee 5%, #99dff9 95%);
  box-shadow: 0 5px 0 rgba(35, 40, 120, 0.18), 0 12px 18px rgba(41, 73, 125, 0.18);
  color: #fff;
  font-size: clamp(18px, 5.3vw, 22px);
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}

.lfs-main-button:focus-visible,
.lfs-reset-button:focus-visible,
.lfs-feature__link:focus-visible,
.lfs-header__logo-link:focus-visible,
.lfs-unknown input:focus-visible,
.lfs-money-input input:focus-visible,
.lfs-select-wrap select:focus-visible {
  outline: 3px solid #75d6f5;
  outline-offset: 3px;
}

.lfs-form {
  margin: 0 14px 28px;
  padding: 0 0 1px;
  border-radius: 8px;
  background: #fff;
}

.lfs-form-section {
  margin: 0;
  padding: 18px 10px 21px;
  border: 1px solid #e8edf8;
  border-radius: 8px;
  background: #fff;
}

.lfs-form-section + .lfs-form-section {
  margin-top: 18px;
}

.lfs-section-heading {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 22px;
  padding: 0 0 7px;
  border-bottom: 2px solid #252c7d;
  color: #1f2a72;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.lfs-section-heading__icon {
  width: 22px;
  height: 22px;
  color: #263079;
  flex: 0 0 auto;
}

.lfs-section-heading__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.lfs-field {
  margin: 0 22px 22px;
  scroll-margin-top: 18px;
}

.lfs-field:last-child {
  margin-bottom: 0;
}

.lfs-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: #253078;
  font-size: 13px;
  font-weight: 900;
}

.lfs-badge {
  display: inline-flex;
  min-width: 29px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.lfs-badge--required {
  background: #ffe8eb;
  color: #ff7182;
}

.lfs-badge--optional {
  background: #eeeeee;
  color: #9a9a9a;
}

.lfs-select-wrap,
.lfs-money-input {
  position: relative;
  display: flex;
  align-items: center;
}

.lfs-select-wrap select,
.lfs-money-input input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d5dbea;
  border-radius: 9px;
  background: #fff;
  color: #253078;
  font-size: 14px;
  font-weight: 700;
}

.lfs-select-wrap select {
  appearance: none;
  padding: 0 38px 0 17px;
}

.lfs-select-wrap::after {
  position: absolute;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #333b86;
  border-bottom: 2px solid #333b86;
  content: "";
  pointer-events: none;
  transform: rotate(45deg) translateY(-3px);
}

.lfs-money-input input {
  padding: 0 14px;
}

.lfs-money-input input::placeholder {
  color: #9ca7c8;
  opacity: 1;
}

.lfs-money-input input:disabled {
  background: #f5f7ff;
  color: #2e377d;
  -webkit-text-fill-color: #2e377d;
}

.lfs-money-input__unit {
  width: 26px;
  margin-left: 8px;
  color: #263079;
  font-size: 13px;
  font-weight: 900;
}

.lfs-unknown {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 16px;
  margin-top: 7px;
  padding: 1px 9px;
  border: 1px solid #dce2f3;
  border-radius: 3px;
  background: #f5f7ff;
  color: #7b84a8;
  font-size: 10px;
  font-weight: 800;
}

.lfs-unknown input {
  width: 11px;
  height: 11px;
  margin: 0;
  accent-color: #6870e9;
}

.lfs-error {
  margin: 7px 0 0;
  color: #d9435a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.lfs-field.lfs-has-error .lfs-select-wrap select,
.lfs-field.lfs-has-error .lfs-money-input input {
  border-color: #ff7e8e;
  background: #fff7f8;
}

.lfs-submit-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 10px 25px;
  text-align: center;
}

.lfs-submit-area__heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 9px;
  color: #1e2871;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.lfs-submit-area__heading::before,
.lfs-submit-area__heading::after {
  display: block;
  width: 2px;
  height: 33px;
  background: #1e2871;
  content: "";
}

.lfs-submit-area__heading::before {
  transform: rotate(-28deg);
}

.lfs-submit-area__heading::after {
  transform: rotate(28deg);
}

.lfs-results {
  margin: 0 11px 28px;
}

.lfs-results__heading {
  margin: 0 0 8px;
  color: #1e2871;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.lfs-result-card {
  margin: 0 0 12px;
  padding: 15px 13px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(28, 43, 96, 0.06);
}

.lfs-result-card--summary {
  padding-bottom: 9px;
}

.lfs-result-title {
  margin: 0 0 12px;
  color: #1f2a72;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.lfs-balance {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 11px;
  align-items: center;
}

.lfs-donut {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: conic-gradient(#84d474 0deg 120deg, #ffc86d 120deg 240deg, #76cdf3 240deg 360deg);
}

.lfs-donut::after {
  position: absolute;
  inset: 27px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.lfs-donut__center {
  position: absolute;
  inset: 27px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #24307b;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.lfs-donut__center strong {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.lfs-legend {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lfs-legend li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 2px 6px;
  align-items: center;
  color: #24307b;
  font-size: 10px;
  font-weight: 800;
}

.lfs-legend__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.lfs-legend__dot--rent {
  background: #84d474;
}

.lfs-legend__dot--fixed {
  background: #ffc86d;
}

.lfs-legend__dot--variable {
  background: #76cdf3;
}

.lfs-legend strong,
.lfs-legend em {
  grid-column: 2;
  color: #24307b;
  font-style: normal;
  line-height: 1.15;
}

.lfs-legend li.lfs-legend__total {
  display: flex;
  gap: 4px;
  margin-top: 2px;
  color: #24307b;
  font-size: 11px;
  font-weight: 900;
}

.lfs-legend__total strong {
  grid-column: auto;
}

.lfs-diagnosis {
  margin-top: 12px;
  padding: 12px 13px 13px;
  border-radius: 7px;
  background: #e9fbec;
  color: #253078;
}

.lfs-diagnosis strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 900;
}

.lfs-diagnosis p {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.55;
}

.lfs-diagnosis--very-good {
  background: #eafaf0;
}

.lfs-diagnosis--good {
  background: #edf8ff;
}

.lfs-diagnosis--caution {
  background: #fff7dc;
}

.lfs-diagnosis--review {
  background: #fff0e2;
}

.lfs-diagnosis--danger {
  background: #ffeef2;
}

.lfs-ideal-rent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  margin-bottom: 12px;
}

.lfs-ideal-rent strong {
  grid-column: 2;
  justify-self: center;
  color: #24307b;
  font-size: 29px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.lfs-ideal-rent--centered {
  display: block;
}

.lfs-ideal-rent.lfs-ideal-rent--centered strong {
  display: block;
  text-align: center;
}

.lfs-ideal-rent__diff-badge {
  grid-column: 3;
  justify-self: start;
  align-self: center;
  margin-left: 6px;
  padding: 7px 10px;
  border-radius: 14px;
  max-width: 100%;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: normal;
  text-align: center;
  white-space: normal;
}

.lfs-ideal-rent__diff-prefix,
.lfs-ideal-rent__diff-amount {
  display: block;
}

.lfs-ideal-rent__diff-amount {
  white-space: nowrap;
}

.lfs-ideal-rent__diff-badge--plus {
  background: #e6f8ee;
  color: #17834f;
}

.lfs-ideal-rent__diff-badge--minus {
  background: #ffe9ef;
  color: #d13a58;
}

.lfs-rent-judgement {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 7px;
  background: #f6f9ff;
  color: #253078;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.lfs-rent-judgement--danger {
  background: #ffeef2;
  color: #d13a58;
}

.lfs-rent-judgement--caution {
  background: #fff5dd;
  color: #b36b00;
}

.lfs-rent-judgement--safe {
  background: #eafaf0;
  color: #187646;
}

.lfs-rent-judgement--excellent {
  background: #edf8ff;
  color: #2569a5;
}

.lfs-compare-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
  margin-bottom: 8px;
}

.lfs-compare-head .lfs-result-title {
  margin: 0;
  text-align: left;
}

.lfs-compare-legend {
  display: grid;
  gap: 3px;
  margin: 0;
  color: #1f2a72;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
}

.lfs-compare-legend div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.lfs-compare-legend dt,
.lfs-compare-legend dd {
  margin: 0;
}

.lfs-compare-legend__bar {
  width: 12px;
  height: 7px;
  background: #ffe0d2;
}

.lfs-compare-legend__line {
  width: 12px;
  height: 2px;
  background: #253078;
}

.lfs-chart {
  min-height: 185px;
  overflow: hidden;
}

.lfs-chart svg {
  width: 100%;
  height: auto;
}

.lfs-chart text {
  fill: #24307b;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-weight: 800;
}

.lfs-chart-source {
  margin: 3px 0 0;
  color: #6671a3;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
}

.lfs-reset-button {
  display: flex;
  width: min(100%, 286px);
  min-height: 39px;
  align-items: center;
  justify-content: center;
  margin: 16px auto 0;
  padding: 8px 18px;
  border: 2px solid #7077e8;
  border-radius: 20px;
  background: #fff;
  color: #253078;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
}

.lfs-feature {
  padding: 18px 18px 22px;
  border-top: 3px solid #20266f;
  border-bottom: 3px solid #20266f;
  background: #fff;
  text-align: center;
}

.lfs-feature__title {
  margin: 0 0 11px;
  color: #1f2a72;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.lfs-feature__link {
  display: inline-flex;
  position: relative;
  width: min(100%, 285px);
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 8px 16px;
  border: 4px solid transparent;
  border-radius: 28px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #7477ed 0%, #8188f1 38%, #90d9f4 76%, #9be4f7 100%) border-box;
  box-shadow: 0 4px 0 rgba(117, 214, 245, 0.28), 0 5px 10px rgba(38, 46, 126, 0.12);
  color: #1f2a72;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
}

.lfs-feature__icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: 0 0 auto;
}

@media (max-width: 360px) {
  .lfs-intro {
    padding-inline: 19px;
  }

  .lfs-start-card {
    margin-inline: 15px;
  }

  .lfs-field {
    margin-inline: 14px;
  }

  .lfs-balance {
    grid-template-columns: 105px 1fr;
  }

  .lfs-donut {
    width: 102px;
    height: 102px;
  }
}

@media (min-width: 768px) {
  .lfs-page {
    max-width: 760px;
    padding-bottom: 72px;
  }

  .lfs-header {
    min-height: 72px;
    padding: 18px 0 0 32px;
  }

  .lfs-breadcrumb {
    padding: 16px 48px 12px;
    font-size: 11px;
  }

  .lfs-hero {
    background: #f3f9ff;
  }

  .lfs-hero__title,
  .lfs-hero__updated {
    max-width: none;
    margin-inline: auto;
  }

  .lfs-hero__updated {
    padding: 10px 48px 0;
  }

  .lfs-intro {
    padding: 58px 72px 52px;
  }

  .lfs-intro p {
    font-size: 16px;
    line-height: 1.75;
  }

  .lfs-start-card,
  .lfs-form,
  .lfs-results {
    max-width: 640px;
    margin-inline: auto;
  }

  .lfs-start-card {
    margin-bottom: 30px;
    padding: 34px 52px 32px;
  }

  .lfs-start-card__lead {
    margin-bottom: 9px;
    font-size: 15px;
  }

  .lfs-main-button {
    width: min(100%, 380px);
    min-height: 64px;
    border-radius: 32px;
    font-size: 22px;
  }

  .lfs-form {
    margin-bottom: 38px;
  }

  .lfs-form-section {
    padding: 26px 48px 30px;
  }

  .lfs-form-section + .lfs-form-section {
    margin-top: 24px;
  }

  .lfs-section-heading {
    gap: 8px;
    margin-bottom: 26px;
    padding-bottom: 9px;
    font-size: 17px;
  }

  .lfs-section-heading__icon,
  .lfs-section-heading__icon svg {
    width: 24px;
    height: 24px;
  }

  .lfs-field {
    max-width: 492px;
    margin-inline: auto;
    margin-bottom: 25px;
  }

  .lfs-label {
    margin-bottom: 9px;
    font-size: 14px;
  }

  .lfs-badge {
    min-width: 32px;
    height: 17px;
    font-size: 10px;
  }

  .lfs-select-wrap select,
  .lfs-money-input input {
    min-height: 42px;
    border-radius: 10px;
    font-size: 15px;
  }

  .lfs-money-input__unit {
    width: 30px;
    margin-left: 10px;
    font-size: 14px;
  }

  .lfs-unknown {
    min-height: 18px;
    margin-top: 8px;
    font-size: 11px;
  }

  .lfs-submit-area {
    padding: 36px 20px 34px;
  }

  .lfs-submit-area__heading {
    margin-bottom: 13px;
    font-size: 23px;
  }

  .lfs-submit-area__heading::before,
  .lfs-submit-area__heading::after {
    height: 38px;
  }

  .lfs-results {
    margin-bottom: 42px;
  }

  .lfs-results__heading {
    margin-bottom: 16px;
    font-size: 22px;
  }

  .lfs-result-card {
    margin-bottom: 16px;
    padding: 24px 32px;
  }

  .lfs-result-card--summary {
    padding-bottom: 22px;
  }

  .lfs-result-title {
    margin-bottom: 18px;
    font-size: 15px;
  }

  .lfs-balance {
    max-width: 480px;
    grid-template-columns: 170px 1fr;
    gap: 32px;
    margin: 0 auto;
  }

  .lfs-donut {
    width: 152px;
    height: 152px;
  }

  .lfs-donut::after,
  .lfs-donut__center {
    inset: 38px;
  }

  .lfs-donut__center {
    font-size: 12px;
  }

  .lfs-donut__center strong {
    font-size: 13px;
  }

  .lfs-legend {
    gap: 8px;
  }

  .lfs-legend li {
    grid-template-columns: 12px 1fr;
    gap: 3px 8px;
    font-size: 12px;
  }

  .lfs-legend__dot {
    width: 10px;
    height: 10px;
  }

  .lfs-legend li.lfs-legend__total {
    margin-top: 5px;
    font-size: 13px;
  }

  .lfs-diagnosis {
    margin-top: 20px;
    padding: 16px 18px;
  }

  .lfs-diagnosis strong {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .lfs-diagnosis p {
    font-size: 12px;
    line-height: 1.65;
  }

  .lfs-ideal-rent {
    margin-bottom: 16px;
  }

  .lfs-ideal-rent strong {
    font-size: 37px;
  }

  .lfs-rent-judgement {
    margin-top: 12px;
    padding: 13px 16px;
    font-size: 14px;
  }

  .lfs-compare-head {
    margin-bottom: 12px;
  }

  .lfs-compare-legend {
    font-size: 10px;
  }

  .lfs-chart {
    max-width: 540px;
    min-height: 0;
    margin: 0 auto;
  }

  .lfs-chart-source {
    margin-top: 8px;
    font-size: 10px;
    text-align: left;
  }

  .lfs-reset-button {
    width: min(100%, 360px);
    min-height: 44px;
    margin-top: 22px;
    border-radius: 23px;
    font-size: 13px;
  }

  .lfs-feature {
    padding: 26px 48px 44px;
  }

  .lfs-feature__title {
    margin-bottom: 14px;
    font-size: 16px;
  }

  .lfs-feature__link {
    width: min(100%, 360px);
    min-height: 52px;
    padding-inline: 22px;
    font-size: 13px;
  }
}
