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

.break {
    display: none;
}

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

/* ページヘッダー */
.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: 24px;
    font-size: 16px;
    line-height: 32px;
    letter-spacing: 1.6px;
}

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

.property_links .property_type_list {
    width: 40%;
    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 .end {
    border-bottom: 1px solid #cccccc;
}




.property_type_list .item img {
    width: 43px;
    height: 33.5px;
    margin-right: 20px;
}

/* 親要素（固定サイズ） */
.city_link_list {
    position: relative;
    width: 60%;
}

/* 地図画像 */
.map-base {
    position: absolute;
    transform: translate(-50%, -100%);
}
.himeji_img {
    top: 100%;
    left: 50%;
}

.tatuno_img {
    top: 100%;
    left: 29.5%;
}

.takasago_img {
    top: 106.5%;
    left: 62.2%;
}

.kakogawa_img {
    top: 112.8%;
    left: 71.3%;
}

.map12639_img {
    top: 109.4%;
    left: 80.6%;
}

.map12645_img {
    top: 115.9%;
    left: 72.9%;
}

.map12627_img {
    top: 124.2%;
    left: 90.9%;
}

.akashi_img {
    top: 128.7%;
    left: 83.4%;
}

.member-button {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text {
    margin-left: 30px;
}

.flex_registration {
    display: flex;
}

/* ピン共通 */
.map-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    cursor: pointer;
}

/* ピン個別位置 */
.pin1 {
    top: 69%;
    left: 48%;
}
.pin2 {
    top: 81%;
    left: 35%;
}
.pin3 {
    top: 94%;
    left: 72%;
}
.pin4 {
    top: 103%;
    left: 62%;
}
.pin5 {
    top: 121%;
    left: 80%;
}

.map-extra {
    position: absolute;
    transform: translate(-50%, -100%);
    cursor: pointer;
}

.extra1 {
    top: 46%;
    left: 55%;
}
.extra2 {
    top: 73%;
    left: 70%;
}
.extra3 {
    top: 116%;
    left: 43%;
}
.extra4 {
    top: 92%;
    left: 92%;
}

.map-base {
    transition: filter 0.3s ease;
    cursor: pointer;
    filter: none;
}

.map-base:hover {
    filter: brightness(0.7) saturate(1.9) contrast(1.3);
}

/* 物件数サークル */
.properties_num_circle {
    position: absolute;
    top: 5%;
    right: 1%;
    width: 25%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-color: #dc000c;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.properties_num_circle .circle_text {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
}

.properties_num_circle .text-top {
    position: relative;
    top: 10px;
    left: 0;
    font-size: 13px;
    color: #fff;
    right: 7px;
}

.properties_num_circle .text-bottom {
    display: flex;
    align-items: center;
}

.properties_num_circle .number {
    position: relative;
    margin-right: 4px;
    font-size: 65px;
    color: #fff;
    font-weight: 50;
    top: -5px;
    font-weight: 500;
}

.case {
    position: relative;
    font-size: 21px;
    top: 8px;
    color: #fff;
}

/* おすすめ物件 */
.recommend_property {
    margin: 0 auto;
    margin-top: 160px;
    max-width: 1106px;
}

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

.recommend_property .header h1 {
    font-size: 32px;
    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;
}

.recommend_property .list_button {
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    border-top: 0.3px solid #6b68684b;
    border-bottom: 0.3px solid #6b68684b;
    font-size: 18px;
    letter-spacing: 1.44px;
}

/* 会員登録 */
.member_registration {
    position: relative;
    margin-top: 160px;
    border-top: 2px solid #dc000c;
    border-bottom: 2px solid #dc000c;
    width: 100%;
    padding: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.member_registration .main {
    display: flex;
    height: 100%;
    max-width: 1100px;
    width: 100%;
    gap: 30px;
    align-items: center;
}
.member_registration img {
    max-width: 200px;
    max-height: 190px;
    width: 100%;
    border: 1px;
}
.member_registration h1 {
    font-size: 28px;
    letter-spacing: 2.8px;
    line-height: 56px;
    font-weight: 500;
}
.member-button {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.flex_registration {
    display: flex;
    width: 100%;
}
.member_registration p {
    font-size: 17px;
    letter-spacing: 0.5px;
    line-height: 34px;
}
.member_registration a {
    position: absolute;
    top: 50%;
    right: 0;
    width: 280px;
    height: 64px;
    background-color: #dc000c;
    color: #ffffff;
    font-size: 17px;
    letter-spacing: 1.7px;
    line-height: 34px;
    border-radius: 32px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.member-button {
    gap: 15px;
    margin: 0 auto;
}

.member-button img {
    width: 21px;
    filter: brightness(0) invert(1);
}

/* ▼ ホバー時：透明度で反応 */
.member_registration a:hover {
    opacity: 0.7;
}
/* 購入の流れ */
.purchase_flow {
    margin-top: 160px;
    position: relative;
    width: 100%;
    height: 100%;
    border-top: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
}

.purchase_flow .main {
    position: relative;
    display: flex;
    height: 100%;
    width: 100%;
    padding: 37.5px;
}

.purchase_flow .text {
    max-width: 654px;
    width: 90%;
    padding: 0;
}

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

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

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

.big-text {
    position: relative;
}

.property_cards_wrap.big-text::after {
    content: "Recommend";
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(0%, -100%);
    z-index: 0;
    font: normal normal bold 72px/57px "Century Gothic";
    letter-spacing: 3.6px;
    color: #f5f5f5;
    opacity: 1;
}

.purchase_flow.big-text::after {
    content: "Contents";
    position: absolute;
    top: -1px;
    right: 0;
    transform: translate(0%, -100%);
    z-index: 0;
    font: normal normal bold 72px/57px "Century Gothic";
    letter-spacing: 3.6px;
    color: #f5f5f5;
    opacity: 1;
}

.title {
    font: normal normal 500 24px/56px "Zen Kaku Gothic New";
    letter-spacing: 1.92px;
    color: #000000;
    opacity: 1;
}
.flow-txt {
    font: normal normal 500 16px/32px "Zen Kaku Gothic New";
    letter-spacing: 0.64px;
    color: #000000;
    opacity: 1;
}

.property_type_list .item .arrow {
    position: absolute;
    right: 0;
}

/* 店舗・事務所などのボタン共通ホバー */
.property_type_list .item button {
    transition: opacity 0.3s ease;
    cursor: pointer;
}

/* ホバー時に薄くする */
.item:hover {
    opacity: 0.7;
}

/* ボタン全体 */
.link {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 矢印エリア */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    overflow: hidden;
}

/* 白矢印 2本 */
.arrow::before,
.arrow::after {
    content: "→";
    position: absolute;
    top: 50%;
    font-size: 24px;
    transform: translateY(-50%);
    animation-fill-mode: forwards;
    animation-duration: 0.6s;
}

.arrow::after {
    transform: translateX(-100%);
}

/* 1本目：右に抜ける */
.arrow::before {
    right: 15px;
}

/* 2本目：左から入ってくる */
.arrow::after {
    right: 15px;
    transform: translate(calc(-100% - 12px), -50%);
}

/* ホバーでアニメ発動（対象を .link に変更） */
.item:hover .arrow::before {
    animation-name: arrowRightLeftBtn;
}

.item:hover .arrow::after {
    animation-name: arrowLeftRightBtn;
    animation-delay: 0.18s;
}

/* キーフレーム */
@keyframes arrowRightLeftBtn {
    0% {
        transform: translateY(-50%) translateX(0);
    }
    100% {
        transform: translateY(-50%) translateX(calc(48px + 12px));
    }
    /* ボタン幅 + 右余白分移動 */
}

@keyframes arrowLeftRightBtn {
    0% {
        transform: translateY(-50%) translateX(calc(-100% - 12px));
    }
    100% {
        transform: translateY(-50%) translateX(0);
    }
}


@media screen and (min-width: 960px) {
    .city_link_list_SP,
    .SP_img {
        display: none;
    }
}
@media screen and (min-width: 520px) and (max-width: 959px) {
    .city_link_list_SP,
    .SP_img {
        display: none;
    }
}
@media screen and (max-width: 519px) {

    /* ------- ページヘッダー ------- */
    .page_header {
        text-align: center;
        margin-top: 100px;
    }
    .header {
        margin-bottom: 35px;
        font-size: 28px !important;
    }
    .page_header .txt {
        text-align: left;
        width: 90%;
        margin: 0 auto;
        margin-bottom: 80px;
    }

    /* ------- 物件タイプ ------- */
    .property_links {
        display: block;
        flex-direction: column;
        margin-top: 20px;
        margin-bottom: 80px;
    }
    .property_links .property_type_list {
        width: 100%;
        margin-top: 0;
        margin-bottom: 160px;
    }
    .property_type_list .item {
        height: 56px;
        padding: 0 20px;
        font-size: 16px;
    }
    .property_type_list .item img {
        width: 32px;
        height: auto;
        margin-right: 12px;
    }
    .property_type_list .item button i {
        font-size: 20px;
        margin-right: 12px;
    }
    .property_type_list .item span {
        right: 20px;
        font-size: 16px;
    }

    /* ------- 数字丸 ------- */
    .properties_num_circle .number {
        font-size: 42px;
    }

    /* PC専用非表示 */
    .city_link_list_PC,
    .PC_img {
        display: none;
    }

    /* ------- レイアウト調整 ------- */
    .main {
        display: block !important;
    }
    .sub {
        padding: 10px;
    }
    .flex_registration {
        display: block;
    }
    .text {
        margin-left: 0;
    }
    .break {
        display: inline;
    }

    /* ------- 会員登録 ------- */
    .member_registration {
        border: 2px solid #dc000c;
    }
    .member_registration h1 {
        text-align: center;
        margin-bottom: 30px;
    }
    .member_registration p {
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .member_registration a {
        position: static;
    }
    .member_registration img {
        max-width: none;
    }

    /* ------- 推薦物件 ------- */
    .recommend_property {
        width: 86%;
    }

    /* ------- 非表示など ------- */
    .map-extra {
        display: none;
    }
    .case {
        font-size: 16px;
    }


    /* ==========================================
       ▼▼ 地図の位置調整（お手本の内容から補完）▼▼
    ========================================== */

    /* --- 親要素をスマホ用に拡張 --- */
    .city_link_list {
        width: 100%;
        margin: 40px auto 20px;
        position: relative;
        height: 340px;
    }

    .city_link_list img {
        transform: translate(-50%, -100%) scale(0.9);
        transform-origin: top left;
        width: auto;
        height: auto;
    }

    .city_link_list .map-base {
        transform: translate(-50%, -100%) scale(0.65);
        transform-origin: top left;
    }

    /* --- 市ごとのテキスト位置 --- */
    .tatuno_img {
        top: 90.2%;
        left: 27.1%;
    }
    .himeji_img {
        top: 100%;
        left: 50%;
    }
    .takasago_img {
        top: 78.3%;
        left: 56%;
    }
    .kakogawa_img {
        top: 92%;
        left: 68.8%;
    }
    .map12639_img {
        top: 78%;
        left: 75.6%;
    }
    .map12645_img {
        top: 81%;
        left: 66.2%;
    }
    .map12627_img {
        top: 96.4%;
        left: 89.5%;
    }
    .akashi_img {
        top: 97%;
        left: 81.1%;
    }

    /* --- ピンの位置（あなたが言ってたやつ） --- */
    .pin1 {
        top: 37%;
        left: 42%;
    }
    .pin2 {
        top: 50%;
        left: 23%;
    }
    .pin3 {
        top: 59%;
        left: 65%;
    }
    .pin4 {
        top: 67%;
        left: 55%;
    }
    .pin5 {
        top: 86%;
        left: 71%;
    }

    /* --- 下余白 --- */
    .city_link_list + * {
        margin-top: 40px;
    }
    .properties_num_circle {
    top: 5%;
    right: 12%;
    width: 25%;
}
}

/* =========================================
   ▼ 矢印アニメ（発火トリガー：.main.hovered）
========================================= */
.arrow-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 48px;
    height: 48px;
    overflow: hidden;
}

.arrow-box {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 矢印共通 */
.arrow-box::before,
.arrow-box::after {
    content: "→";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 1;
}

/* 1本目：右に抜ける */
.arrow-box::before {
    right: 15px;
}

/* 2本目：左から入ってくる */
.arrow-box::after {
    right: 15px;
    transform: translate(calc(-100% - 12px), -50%);
}

/* ▼ main に触れた時に矢印アニメ発動 */
.hover-card.hovered .arrow-box::before {
    animation: arrowRightLeftBtn 0.35s forwards;
}

.hover-card.hovered .arrow-box::after {
    animation: arrowLeftRightBtn 0.35s 0.18s forwards;
}

/* キーフレーム */
@keyframes arrowRightLeftBtn {
    0% {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-50%) translateX(calc(48px + 12px));
        opacity: 0;
    }
}

@keyframes arrowLeftRightBtn {
    0% {
        transform: translateY(-50%) translateX(calc(-100% - 12px));
        opacity: 0;
    }
    100% {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
}

/* =========================================
   ▼ 四辺線アニメ（発火トリガー：.main.hovered）
========================================= */

/* 下線 */
.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;
}

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

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

/* --------- main に触れた時の発火 --------- */
.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;
}
