/* 共通フォント */
div {
    font: normal normal medium Zen Kaku Gothic New;
    color: #000000;
}

.button {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    right: 0;
    bottom: 0;
}

.bg_text {
    position: absolute;
    font-size: 72px;
    font-weight: 500;
    color: #f5f5f5;
    letter-spacing: 3.6px;
    line-height: 57px;
    z-index: -10;
}

/* 全体の構成 */
.container {
    width: 1106px;
    margin: 0 auto;
    text-align: left;
}

/* ページヘッダー */
.page_header {
    text-align: left;
}

.page_header .header {
    font-size: 40px;
    line-height: 56px;
    letter-spacing: 3.2px;
    color: #222;
}

.page_header .header span {
    color: #dc000c;
}

.page_header .txt {
    margin-top: 27px;
    font-size: 16px;
    line-height: 32px;
    letter-spacing: 1.6px;
}

/* 物件一覧につながるリンク部 */
.property_links {
    display: flex;
    margin-top: 31px;
    width: 100%;
    justify-content: space-between;
}

.property_links .property_type_list {
    width: 420px;
    margin-top: 12px;
}

.property_type_list .item {
    border-top: 1px solid #cccccc;
    height: 70px;
    width: 100%;
    position: relative;
    padding: 0 35px;
    font-size: 18px;
    letter-spacing: 0.72px;
    line-height: 31px;
    display: flex;
    align-items: center;
}

.property_type_list .item:nth-child(6) {
    border-bottom: 1px solid #cccccc;
}

.property_type_list .item span {
    position: absolute;
    right: 35px;
}

.property_type_list .item img {
    width: 28px;
    height: 33.5px;
    margin-right: 26px;
}

/* 地図に差し替え */
.city_link_list .sample_size {
    width: 582px;
    height: 477px;
    border: 1px solid black;
    position: relative;
}

.properties_num_circle {
    position: absolute;
    top: 27px;
    right: 0;
    height: 177.5px;
    width: 177.5px;
    border-radius: 50%;
    background-color: #dc000c;
}

.properties_num_circle .circle_text {
    color: #ffffff;
    width: 100%;
    font-size: 13px;
    letter-spacing: 1.04px;
    font: normal normal bold Zen Kaku Gothic New;
    line-height: 28px;
    margin-top: 39px;
    margin-left: 29px;
}

.circle_text .number {
    font-size: 65px;
    line-height: 53px;
    letter-spacing: 0;
    margin-right: 4px;
}

.circle_text .case {
    font-size: 21px;
    line-height: 29px;
    letter-spacing: 1.68px;
}

/* おすすめ物件 */

.recommend_property .header {
    margin-bottom: 39px;
    position: relative;
    text-align: left;
}

.recommend_property .header h1 {
    font-size: 40px;
    letter-spacing: 2.56px;
    line-height: 56px;
    font-weight: normal;
}

.recommend_property .header span {
    color: #dc000c;
}

.recommend_property .bg_recommend {
    bottom: -36px;
    right: 0;
}

.recommend_property .property_cards {
    width: 100%;
    height: auto;
}

/* 会員登録 */
.member_registration {
    margin-top: 100px;
    border: 2px solid #dc000c;
    height: 222px;
    width: 100%;
}

.member_registration .content {
    position: relative;
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
}

.member_registration img {
    margin-left: 43px;
    height: 143px;
    width: 170px;
    border: 1px;
}

.member_registration .text {
    margin-left: 31px;
}

.member_registration h1 {
    font-size: 28px;
    letter-spacing: 2.8px;
    line-height: 56px;
}

.member_registration p {
    margin-top: 20px;
    font-size: 17px;
    letter-spacing: 1.7px;
    line-height: 34px;
}

.member_registration a {
    width: 253px;
    height: 52px;
    background-color: #dc000c;
    color: #ffffff;
    font-size: 17px;
    letter-spacing: 1.7px;
    line-height: 34px;
}

.member_registration span {
    position: absolute;
    right: 27px;
}

/* 購入の流れ */
.purchase_flow {
    position: relative;
    margin: 190px 0 121.5px 0;
    width: 100%;
    height: 220px;
    border-top: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
}

.purchase_flow .content {
    position: relative;
    display: flex;
    height: 100%;
    width: 100%;
    margin-top: 37.5px;
}

.purchase_flow img {
    width: 250px;
    height: 145px;
    margin-left: 30px;
}

.purchase_flow .text {
    margin-left: 30px;
    width: 654px;
    height: 80px;
    padding: 0;
}

.purchase_flow h2 {
    font-size: 24px;
    letter-spacing: 1.92px;
    line-height: 56px;
    font-weight: normal;
}

.purchase_flow p {
    font-size: 16px;
    letter-spacing: 0.64px;
    line-height: 28px;
}

.purchase_flow a {
    width: 48px;
    height: 48px;
    background-color: #000;
    color: #ffffff;
    bottom: 37.5px;
}

.purchase_flow .bg_contents {
    top: -62px;
    right: 85px;
}

/* カード全体 */
.hover-card {
    position: relative;
    overflow: hidden;
}

/* ---- 矢印アニメ ---- */
.arrow-box {
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
    overflow: hidden;
}

/* 矢印2枚 */
.arrow-box::before,
.arrow-box::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    animation-fill-mode: forwards;
    animation-duration: 0.6s;
}

.arrow-box::after {
    transform: translate(calc(-100% - 10px), -50%);
}

.hover-card.hovered .arrow-box::before {
    animation-name: arrowRightLeft;
}

.hover-card.hovered .arrow-box::after {
    animation-name: arrowLeftRight;
    animation-delay: 0.18s;
}

/* ---- 四辺の線アニメ ---- */

/* 下線（→ ←） */
.hover-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.5s ease;
}

/* 右線（↓ ↑） */
.hover-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 2px;
    height: 0;
    background: #000;
    transition: height 0.5s ease;
}

/* 上線 */
.hover-card .line-top {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.5s ease 0.5s;
}

/* 左線 */
.hover-card .line-left {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: #000;
    transition: height 0.5s ease 0.5s;
}

/* ---- ホバー時 ---- */
.hover-card.hovered::before {
    width: 100%;
}
.hover-card.hovered::after {
    height: 100%;
}
.hover-card.hovered .line-top {
    width: 100%;
}
.hover-card.hovered .line-left {
    height: 100%;
}

/* ---- ホバー解除時（逆再生） ---- */
.hover-card.reverse::before {
    width: 0;
    transition-delay: 0.5s;
}
.hover-card.reverse::after {
    height: 0;
    transition-delay: 0.5s;
}
.hover-card.reverse .line-top {
    width: 0;
    transition-delay: 0s;
}
.hover-card.reverse .line-left {
    height: 0;
    transition-delay: 0s;
}

/* ---- 矢印アニメ keyframes ---- */
@keyframes arrowRightLeft {
    0% {
        transform: translate(0, -50%);
        opacity: 1;
    }
    100% {
        transform: translate(100%, -50%);
        opacity: 0;
    }
}

@keyframes arrowLeftRight {
    0% {
        transform: translate(-100%, -50%);
        opacity: 0;
    }
    100% {
        transform: translate(0, -50%);
        opacity: 1;
    }
}
