:root {
  --color-bg: #f7f3f0;
  --color-white: #ffffff;
  --color-black: #323232;
  --color-text: #2a2a2a;
  --color-sub: #505050;
  --color-beige: #e4d8cc;
  --color-cta: #ad8661;
  --color-border: #5b5652;
  --color-line: #dedede;
  --color-link: #6188ad;
  --color-required: #dd231b;
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-pill: 99px;
  --gutter: 30px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--color-black);
  background: var(--color-bg);
  font-family:
    "Noto Sans JP",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-black);
  z-index: 10000;
}

/* 540px以上の背景 */
@media (min-width: 541px) {
  body.page::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("./img/bg_540plus.png") center / cover no-repeat;
    z-index: -2;
    pointer-events: none;
  }
}

.lp {
  max-width: 540px;
  margin: 0 auto;
  background: var(--color-bg);
}

.main {
  padding-bottom: calc(120px + 16px + env(safe-area-inset-bottom));
}

/* 固定CTA */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(324px, calc(100% - (var(--gutter) * 2)));
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--color-cta);
  border: 1px solid rgba(228, 216, 204, 0.5);
  color: var(--color-white);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.48px;
  z-index: 1000;
  transition: transform 0.15s ease;
}

/* header */
.header {
  background: var(--color-black);
  padding: 24px var(--gutter);
}

.header__logo {
  width: 122.4px;
  height: 16px;
}

/* FV */
.fv {
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 790;
  overflow: hidden;
  background: #d2d2d2;
}

.fv__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fv__title {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 330px;
  color: var(--color-white);
}

.fv__tagline {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 1.28px;
}

.fv__headline {
  margin: 83px 0 0;
  font-size: 28px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.fv__headline span {
  display: block;
}

.fv__logo {
  margin-top: 16px;
  width: 290.7px;
  height: 38px;
}

.fv__app {
  position: absolute;
  top: 349px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 308px;
}

.fv__app-img {
  position: absolute;
  object-fit: cover;
}

.fv__app-img--1 {
  left: 0;
  top: 0;
  width: 153.316px;
  height: 308px;
}

.fv__app-img--2 {
  left: 155.118px;
  top: 57.12px;
  width: 124.882px;
  height: 250.88px;
}

/* タイアップ動画 */
.promotion {
  padding: 40px var(--gutter) 56px;
}

.promotion__inner {
  display: grid;
  gap: 16px;
  width: 100%;
}

.promotion__head {
  display: grid;
  place-items: center;
  text-align: center;
}

.promotion__mc {
  margin: 0;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  color: var(--color-cta);
  font-family: "Outfit", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.52px;
  margin-bottom: 12px;
}

.promotion__mc-deco {
  display: inline-block;
  width: 20px;
  text-align: center;
}

.promotion__mc-name {
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
}

.promotion__sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.48px;
  color: var(--color-black);
}

.promotion__sub-en {
  font-family: "Outfit", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
}

.promotion__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--color-black);
}

.promotion__video {
  width: 100%;
  aspect-ratio: 560 / 315;
  background: #9b8989;
  overflow: hidden;
}

.promotion__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Sections */
.section {
  padding: 80px var(--gutter);
}

.section--white {
  background: var(--color-white);
}

.section--beige {
  background: var(--color-beige);
  padding: 48px var(--gutter);
}

.section--dark {
  background: var(--color-black);
  color: var(--color-white);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.section--white.section {
  padding: 80px var(--gutter);
}

.section--white.section:first-of-type {
  padding: 56px var(--gutter);
}

.section__head {
  display: grid;
  gap: 8px;
  margin-bottom: 32px;
}

.h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.5;
  font-weight: 600;
}

.h2--white {
  color: var(--color-white);
  margin-bottom: 32px;
}

.h2--center {
  text-align: center;
  font-size: 20px;
}

.h2__en {
  font-family: "Outfit", sans-serif;
  font-weight: 500;
}

.h2__ja {
  font-weight: 500;
}

.lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 400;
  color: var(--color-black);
}

.section--dark .lead {
  color: var(--color-white);
}

.note {
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
  color: var(--color-sub);
  letter-spacing: 0.1px;
}

.note--white {
  color: var(--color-white);
  text-align: center;
}

.p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-black);
}

.h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.54px;
}

/* stats */
.stats {
  margin: 32px 0px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.stats__item {
  flex: 1 1 140px;
  max-width: 200px;
}

.stats__label {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.48px;
}

.stats__value {
  margin: 8px 0 0;
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--color-black);
}

.stats__num {
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
}

.stats__unit {
  font-size: 16px;
  font-weight: 600;
}

.stats__text {
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

/* Embla */
.embla {
  width: 100%;
}

.embla__viewport {
  overflow: hidden;
}

.embla__container {
  display: flex;
  gap: 16px;
}

.embla__slide {
  flex: 0 0 280px;
}

/* app steps */
.app-step {
  background: var(--color-beige);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-12);
  padding: 24px 20px 40px;
  display: grid;
  gap: 4px;
  align-content: start;
}

.app-step__num {
  margin: 0 0 4px;
  font-family: "Outfit", sans-serif;
  font-size: 32px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.96px;
}

.app-step__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
}

.app-step__desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.app-step__img {
  margin: 20px auto 0;
  width: 150px;
  height: 301px;
  object-fit: cover;
}

/* feature cards (dark section) */
.feature-cards {
  display: grid;
  gap: 32px;
}

.feature-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-12);
  overflow: hidden;
  background: transparent;
}

.feature-card__img-wrap {
  height: 187px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  display: grid;
  place-items: center;
}

.feature-card__img {
  width: 330px;
  height: 187px;
  object-fit: cover;
}

.feature-card__body {
  background: var(--color-white);
  padding: 24px;
  display: grid;
  gap: 8px;
  color: var(--color-black);
}

.download-cta {
  margin-top: 32px;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.btn {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.48px;
  cursor: pointer;
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
}

/* case cards */
.case-card {
  width: 280px;
  display: grid;
  gap: 8px;
  cursor: pointer;
}

.case-card__label {
  width: fit-content;
  background: var(--color-cta);
  color: var(--color-white);
  border-radius: 2px;
  padding: 6px 12px;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.36px;
  line-height: 1;
}

.case-card__img-wrap {
  border-radius: 13px;
  overflow: hidden;
  background: var(--color-white);
  height: 183.392px;
}

.case-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card__meta {
  padding-top: 12px;
  display: grid;
  gap: 8px;
}

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

.case-card__price,
.case-card__yield {
  display: flex;
  gap: 3.275px;
  align-items: baseline;
  line-height: 1;
  color: var(--color-black);
}

.case-card__k {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.7px;
}

.case-card__n {
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

.case-card__sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-sub);
}

.case-card__link {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--color-link);
}

/* accordion */
.accordion {
  display: grid;
  gap: 16px;
}

.accordion__item {
  border-radius: var(--radius-12);
  overflow: hidden;
  background: var(--color-white);
}

.accordion__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 110px;
  padding: 20px 16px 20px 24px;
  cursor: pointer;
}

.accordion__summary::-webkit-details-marker {
  display: none;
}

.accordion__meta {
  display: grid;
  gap: 4px;
}

.accordion__num {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--color-cta);
  letter-spacing: 0.24px;
}

.accordion__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.36px;
  color: var(--color-black);
}

.accordion__icon {
  width: 40px;
  height: 40px;
  transition: transform 0.15s ease;
}

.accordion__item[open] .accordion__icon {
  transform: rotate(180deg);
}

.accordion__body {
  padding: 0 24px 24px;
  display: grid;
  gap: 16px;
}

.accordion__img-wrap {
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-beige);
  aspect-ratio: 282 / 178;
}

.accordion__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* store badges */
.store-badges {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.store-badge {
  display: block;
  line-height: 0;
}

.store-badge--appstore {
  width: 130px;
  height: 48px;
}

.store-badge--google {
  width: 162px;
  height: 48px;
}

.store-badge__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fineprint {
  margin: 24px 0 0;
  font-size: 10px;
  line-height: 1.6;
  color: var(--color-black);
}

/* contact */
.contact {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.field {
  width: 100%;
  display: grid;
  gap: 4px;
}

.field__label-row {
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.field__label {
  font-size: 14px;
  color: var(--color-text);
  letter-spacing: 0.42px;
}

.field__req {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-required);
  letter-spacing: 0.36px;
}

.field__input,
.field__select {
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 4px;
  padding: 12px 8px;
  font-size: 14px;
  line-height: 1.2;
  outline: none;
}

.field__input::placeholder {
  color: #ababab;
}

.field__select-wrap {
  position: relative;
}

.field__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  color: #ababab;
  background-image: url("./img/select_icon.svg");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px 16px;
}

.field__select:has(option:checked:not([value=""])) {
  color: var(--color-text);
}

/* privacy */
.privacy {
  width: 100%;
  padding: 12px 0;
}

.privacy__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.36px;
}

.privacy__checkbox {
  width: 13px;
  height: 13px;
  border-radius: 1.444px;
  border: 0.722px solid #b4b4b4;
  appearance: none;
  -webkit-appearance: none;
  background: var(--color-white);
  display: grid;
  place-items: center;
}

.privacy__checkbox:checked::after {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--color-link);
  border-radius: 1px;
}

.privacy__link {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact__submit {
  width: min(324px, calc(100% - (var(--gutter) * 2)));
  height: 48px;
  border-radius: var(--radius-8);
  border: none;
  background: var(--color-cta);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.48px;
  cursor: pointer;
}

.contact__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* company */
.company {
  padding: 80px var(--gutter);
}

.company__list {
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

.company__item {
  display: grid;
  gap: 8px;
}

.company__k {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.48px;
  color: var(--color-black);
}

.company__v {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #5b5652;
}

.company__p {
  margin: 0;
}

/* footer */
.footer {
  background: var(--color-black);
  padding: 24px var(--gutter) 120px;
  display: grid;
  gap: 32px;
}

.footer__logo {
  width: 153px;
  height: 20px;
}

.footer__nav {
  display: grid;
  gap: 13px;
  width: 330px;
}

.footer__link {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--color-white);
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.modal[aria-hidden="false"] {
  display: block;
}

.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(68, 68, 68, 0.8);
  border: 0;
  padding: 0;
}

.modal__inner {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  overflow-y: auto;
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 330px;
  background: var(--color-white);
  border: 1px solid #efedeb;
  border-radius: var(--radius-8);
  padding: 16px;
  display: grid;
  gap: 16px;
  z-index: 1;
}

.modal__close {
  position: absolute;
  right: 0;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  padding: 0;
  z-index: 2;
  cursor: pointer;
  transform: translateY(calc(-100%));
}

.modal__close-icon {
  width: 32px;
  height: 32px;
}

.modal__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 700;
  letter-spacing: 0.48px;
}

.modal__dl {
  margin: 0;
  display: grid;
  gap: 4px;
}

.modal__row {
  display: flex;
  gap: 4px;
  align-items: baseline;
}

.modal__k {
  width: 180px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-sub);
  letter-spacing: 0.42px;
}

.modal__v {
  margin: 0;
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  align-items: baseline;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.5;
}

.modal__v span[data-m-sale],
.modal__v span[data-m-cash],
.modal__v span[data-m-yield],
.modal__v span[data-m-rent],
.modal__v span[data-m-loan],
.modal__v span[data-m-fee],
.modal__v span[data-m-tax],
.modal__v span[data-m-balance] {
  font-family: Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.16px;
}

.modal__v--accent {
  color: var(--color-cta);
}

.modal__v--accent span[data-m-balance] {
  font-size: 18px;
  letter-spacing: 0.18px;
}

.modal__unit {
  font-size: 14px;
  letter-spacing: 0.14px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
}

.modal__unit--accent {
  font-size: 16px;
  letter-spacing: 0.16px;
}

.modal__separator {
  width: 100%;
  height: 2px;
}

.modal__fineprint {
  margin: 0;
  font-size: 10px;
  line-height: 1.6;
  color: var(--color-sub);
}

/* thanks page */
.page--thanks {
  background: var(--color-bg);
}

.thanks {
  max-width: 540px;
  margin: 0 auto;
  padding: 169px var(--gutter);
  display: grid;
  gap: 48px;
  place-items: center;
  min-height: 100vh;
}

.thanks__head {
  width: 100%;
  text-align: center;
  display: grid;
  gap: 8px;
}

.thanks__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
}

.thanks__lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

.thanks__card {
  width: 100%;
  background: var(--color-white);
  border-radius: var(--radius-8);
  padding: 32px 24px;
  display: grid;
  gap: 24px;
  text-align: center;
}

.thanks__card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.72px;
}

.thanks__card-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  text-align: left;
}

.thanks__btn {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--color-cta);
  border: 1px solid rgba(228, 216, 204, 0.5);
  color: var(--color-white);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.48px;
}

.thanks__note {
  margin: 0;
  font-size: 10px;
  line-height: 1.75;
  text-align: left;
}

.thanks__back {
  padding: 12px 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-sub);
}
/* PCだけ：FVの縦を縮める（最終版） */
@media (min-width: 541px) {
  .fv {
    aspect-ratio: 390 / 640;
  }
}
