/* 共通フォント */
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;
}

.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;
}

/* ページヘッダー */
.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;
    border-bottom: 1px solid #cccccc;
}

.search-action {
    position: absolute;
    right: 0;
}
.link-txt {
    width: 200px;
}
.property_type_list .item:nth-child(6) {
    border-bottom: 1px solid #cccccc;
}

/* span → の位置決めを arrow 専用にする */
.property_type_list .item .arrow {
    position: absolute;
    right: 0;
}

.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: 107.8%;
    left: 62.2%;
}

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

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

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

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

.akashi_img {
    top: 134.3%;
    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: 62%;
    left: 48%;
}
.pin2 {
    top: 78%;
    left: 36%;
}
.pin3 {
    top: 91%;
    left: 71%;
}
.pin4 {
    top: 103%;
    left: 62%;
}
.pin5 {
    top: 125%;
    left: 80%;
}

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

.extra1 {
    top: 39%;
    left: 55%;
}
.extra2 {
    top: 67%;
    left: 70%;
}
.extra3 {
    top: 118%;
    left: 42%;
}
.extra4 {
    top: 89%;
    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: -6%;
    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;
}

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

/* 店舗・事務所などのボタン共通ホバー */
.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;
    }
    .page_header .txt {
        text-align: left;
        width: 90%;
        margin: 0 auto;
        margin-bottom: 80px;
    }
    .properties_num_circle .number {
        font-size: 42px;
    }
    .property_links {
        display: block;
    }
    .header {
        font-size: 28px !important;
    }
    .map-extra {
        display: none;
    }
    .case {
        font-size: 16px;
    }

    .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 h1 {
        text-align: center;
        margin-bottom: 30px;
    }
    .member_registration p {
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .member_registration a {
        position: static;
    }
    .property_links {
        flex-direction: column;
        margin-top: 20px;
    }

    .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;
    }

    .property_cards_wrap.big-text::after {
        display: none;
    }

    /* --- 親要素をスマホ用に拡張 --- */
    .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%;
    }

    /* --- テキストが被らないように下に余白 --- */
    .city_link_list + * {
        margin-top: 40px;
    }

    /* PCでは表示、スマホでは非表示の要素があればここに追加 */
    .PC_img {
        width: 100%;
    }

    .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%;
    }

    .properties_num_circle {
        top: 5%;
        right: 12%;
        width: 25%;
    }

    .member_registration img {
        max-width: none;
    }
}
