@charset "utf-8";

/* =========================================
   rent-flow.css — 賃貸契約の流れ（PC）
   Figma: 95548 初回_賃貸契約の流れ
   ========================================= */

#content {
    width: 100%;
}

#contents {
    width: 100%;
    padding-bottom: 0;
}

.rent-flow {
    width: 100%;
    overflow-x: hidden;
}

.l-top-inner {
    width: 1140px;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.top-purpose__inner.l-top-inner {
    display: flex;
    align-items: center;
    gap: 45px;
    justify-content: space-between;
}

/* ----- メインビジュアル ----- */
.rent-flow .mv--rent-flow {
    position: relative;
    width: 100%;
    height: 470px;
    margin: 0;
    overflow: hidden;
}

.rent-flow .mv--rent-flow .mv__h1-image {
    margin: 0;
    line-height: 0;
    height: 100%;
}

.rent-flow .mv--rent-flow .mv__h1-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ----- セクション本体 ----- */
.rent-flow .flow {
    width: 100%;
    box-sizing: border-box;
    background-color: var(--color-primary-grayscale-white);
    border-bottom: 1px solid var(--color-primary-grayscale-gray);
    padding: 64px 0 59px;
    overflow-x: visible;
}

.rent-flow .flow__inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    overflow-x: visible;
}

.rent-flow .flow__headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.rent-flow .flow__headline-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.rent-flow .flow__headline-title {
    margin: 0;
    font-size: var(--font-size-xxl);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    color: var(--color-primary-grayscale-black);
}

.rent-flow .flow__headline-lead {
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    color: var(--color-primary-default-brown);
}

.rent-flow .flow__headline-en {
    margin: 0;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    color: var(--color-primary-default-sub);
}

.rent-flow .flow__estimate {
    margin-top: 31px;
    text-align: center;
}

.rent-flow .flow__estimate-label {
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    line-height: 1.25;
    color: var(--color-primary-default-sub);
}

.rent-flow .flow__estimate-body {
    margin-top: 5px;
}

.rent-flow .flow__estimate-text {
    margin: 0;
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    color: var(--color-text-default);
}

.rent-flow .flow__estimate-note {
    margin: 1px 0 0;
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-medium);
    line-height: 1.8;
    color: #9e9e9e;
}

/* ----- 概要マップ（上段4 / 下段3） ----- */
.rent-flow .flow__map {
    position: relative;
    margin-top: 30px;
    overflow: visible;
}

.rent-flow .flow__map-rows {
    position: relative;
    z-index: 1;
}

.rent-flow .flow__map-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.rent-flow .flow__map-row--first {
    justify-content: flex-start;
}

.rent-flow .flow__map-row--second {
    justify-content: center;
}

.rent-flow .flow__map-row+.flow__map-row {
    margin-top: 20px;
}

/*
 * マップ枠（.flow__map）は flow__inner 内の幅だが、ラインは Figma どおり画面端まで。
 * left:50%+translate だと親の中心＝画面中心と一致しないケースで途切れるため、
 * margin-left: calc(50% - 50vw) でレイヤー左端をビューポート左に固定する。
 */
.rent-flow .flow__map-lines {
    position: absolute;
    width: 100%;
    max-width: none;
    top: 48px;
    height: calc(100% - 24px);
    pointer-events: none;
    z-index: 0;
    box-sizing: border-box;
    margin: 0 auto;
}

.rent-flow .flow__map-line {
    position: absolute;
    height: 1px;
    background-color: var(--color-primary-default-main);
    width: 1920px;
}

/* Figma: 始点 60px から画面右端まで（右方向のみフルブリード） */
.rent-flow .flow__map-line--1 {
    top: 0;
    left: 0;
    right: auto;
    width: \;
}

/* Figma: 画面左端 0 から max 1285px（左方向起点・幅限定＝左側の帯。右端まで伸ばさない） */
.rent-flow .flow__map-line--2 {
    top: 128px;
    left: auto;
    right: 0;
}

.rent-flow .flow__map-item {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 19px 10px;
    background-color: var(--color-primary-light-main);
    border: 1px solid var(--color-primary-grayscale-gray);
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: 0.4s;
}

.rent-flow .flow__map-item:hover {
    transition: 0.4s;
    transform: translateY(4px);
}

.rent-flow .flow__map-item--w270 {
    width: 270px;
    flex: 0 0 auto;
}

.rent-flow .flow__map-item--w368 {
    width: 368px;
    flex: 0 0 auto;
}

.rent-flow .flow__map-item--w366 {
    width: 366px;
    flex: 0 0 auto;
}

.rent-flow .flow__map-num {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--color-primary-default-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 2px;
    box-sizing: border-box;
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    color: var(--color-primary-grayscale-black);
}

.flow__map-num--6,
.flow__map-num--7 {
    position: relative;
    bottom: 12px;
}

.rent-flow .flow__map-text {
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    color: var(--color-primary-grayscale-black);
}

/* ----- 詳細ステップ ----- */
.rent-flow .flow__steps {
    margin-top: 40px;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.rent-flow .flow-step {
    position: relative;
    z-index: 1;
    padding-top: 0;
    padding-bottom: 24px;
    scroll-margin-top: 20px;
}

.rent-flow .flow-step__head {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rent-flow .flow-step__num {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--color-primary-default-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 2px;
    box-sizing: border-box;
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    color: var(--color-primary-grayscale-black);
}

.rent-flow .flow-step__title {
    margin: 0;
    flex: 1;
    max-width: 1096px;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    line-height: 1.273;
    color: var(--color-text-default);
}

.rent-flow .flow-step__title-sub {
    display: block;
    margin-top: 4px;
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
}

.rent-flow .flow-step__body {
    margin-top: 8px;
    margin-left: 44px;
    max-width: 1096px;
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    color: var(--color-text-default);
}

#rent-flow-step-5 .flow-step__body {
    margin-top: 18px;
}

.rent-flow .flow-step__text {
    margin: 0;
    font-size: 16px;
}

.rent-flow .flow-step__text+.flow-step__text {
    margin-top: 0;
}

.rent-flow .flow-step__line {
    position: absolute;
    top: 0;
    left: 17px;
    bottom: 0;
    width: 1px;
    background-color: var(--color-primary-default-main);
    z-index: -1;
}

.rent-flow .flow-step--last .flow-step__line {
    display: none;
}

.rent-flow .flow-step--last {
    padding-bottom: 0;
}

.rent-flow .flow-step__sub-blocks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rent-flow .flow-step__sub-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rent-flow .flow-step__sub-head {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    color: var(--color-primary-default-sub);
}

.rent-flow .flow-step__sub-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    color: var(--color-primary-default-sub);
}

.rent-flow .flow-step__sub-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.rent-flow .flow-step__sub-note {
    margin: 12px 0 0;
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    color: #9e9e9e;
}

/* ----- CTA ----- */
.rent-flow .flow__cta-wrap {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.rent-flow .flow__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 340px;
    min-height: 70px;
    padding: 18px 34px 18px 30px;
    border-radius: 6px;
    background-color: var(--color-primary-default-sub);
    box-shadow: 0 2px 1.5px rgba(38, 50, 56, 0.1);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    color: var(--color-text-white);
    text-decoration: none;
    position: relative;
    transition: 0.4s;
}

.rent-flow .flow__cta:hover {
    opacity: 1;
    transform: translateY(4px);
    transition: 0.4s;
}

.rent-flow .flow__cta-text {
    text-align: center;
}

.rent-flow .flow__cta-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.rent-flow .flow__cta-arrow img {
    display: block;
    width: 15px;
    height: 20px;
    max-width: 15px;
    max-height: 20px;
}

.bkn__float-btn:hover {
    transform: translateY(4px);
}

.bkn__float-btn--store .bkn__float-btn-text {
    color: #000;
}