.container {
    padding: 10px;
}

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

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

/* 全体の構成 */
.container {
    max-width: 1126px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
    margin-top: 80px;
}

/* ページヘッダー */
.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;
}

/* 画像 */
.town_image {
    position: absolute;
    overflow: hidden;
    right: 15%;
    top: 10%;
}

.town_image img {
    object-fit: cover;
    display: block;
}

/* 検索 */
.investment-search {
    margin: 0 auto;
    max-width: 1200px;
    padding-top: 200px;
    border-radius: 12px;
    padding-top: 50px;
    border-radius: 12px;
    margin-top: 40px;
}

.search-type-wrapper {
    width: 100%;
    position: relative;
    margin-bottom: 20px;
    border-bottom: 1px solid #cccccc;
    display: inline-block;
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
}

.search-type {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.search-type span {
    position: relative;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 18px;
    color: #888;
}

.search-type span.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: red;
}
select {
    height: 40px;
    appearance: none;
    border: 1px solid #f5f5f5;
    border-radius: 4px;
    padding: 3px 24px 3px 6px;
    line-height: 1.2;
    font-size: 14px;
    font-family: "Zen Kaku Gothic New", sans-serif;
    background-color: #f5f5f5;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='12' fill='black'><polygon points='0,0 12,0 6,6'/></svg>");
    background-repeat: no-repeat;
    background-position-x: calc(100% - 10px);
    background-position-y: calc(50% + 3px);
    background-size: 12px;
    cursor: pointer;
    color: #000;
    width: auto;
    min-width: 100px;
}

.search-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-right: 20px;
    padding-bottom: 10px;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

/* 件数表示 */
.search-footer .result-count {
    font-size: 18px;
    color: #000;
}
.search-footer .result-count strong {
    font-size: 56px;
    font-weight: 700;
    margin: 0 4px;
}

/* 「この条件で検索する」テキスト部分 */
.search-footer .search-text {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin-right: 50px;
    margin-bottom: -9px;
}

.search-footer .search-action {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    top: 20px;
}

.search-footer .arrow-box {
    position: absolute;
    right: -20px;
    bottom: -24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 2px;
    font-size: 18px;
    text-decoration: none;
}
.search-footer .arrow-box:hover {
    background: #333;
}

/* おすすめ物件 */
.recommend_property {
    margin-top: 100px;
    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;
}

.text {
    margin-left: 30px;
}

/* 会員登録 */
.member_registration {
    position: relative;
    margin-top: 160px;
    border-top: 2px solid #dc000c;
    border-bottom: 2px solid #dc000c;
    width: 100%;
    padding: 30px;
    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 {
    position: relative;
    margin: 160px 0 121.5px 0;
    width: 100%;
    border-top: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
}

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

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

.purchase_flow .text .title {
    font-size: 24px;
    margin-bottom: 10px;
}

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

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

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

.big-text {
    position: relative;
}

.search-type-wrapper.big-text::after {
    content: "Search";
    position: absolute;
    top: -2px;
    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;
}

.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 medium 24px/56px "Zen Kaku Gothic New";
    letter-spacing: 1.92px;
    color: #000000;
    opacity: 1;
}
.flow-txt {
    font: normal normal medium 16px/32px "Zen Kaku Gothic New";
    letter-spacing: 0.64px;
    color: #000000;
    opacity: 1;
}
.purchase_flow .main .arrow-btn {
    position: absolute;
    bottom: 0;
    right: 0;
}

@media screen and (min-width: 960px) {
    .city_link_list_SP,
    .SP_img,
    .none_PC {
        display: none;
    }
}
@media screen and (min-width: 520px) and (max-width: 959px) {
}
@media screen and (max-width: 519px) {
    .none_SP {
        display: none;
    }
    .page_header {
        text-align: center;
        margin-top: 100px;
    }
    .header {
        margin-bottom: 35px;
    }
    .page_header .txt {
        text-align: left;
        width: 90%;
        margin: 0 auto;
    }
    .properties_num_circle .number {
        font-size: 42px;
    }
    .property_links {
        display: block;
    }
    .header {
        font-size: 28px !important;
    }
    .map-extra {
        display: none;
    }
    .case {
        font-size: 16px;
    }

    .area-options {
        display: block;
        align-items: center;
        flex-wrap: wrap;
        gap: 24px;
        border-bottom: 1px dotted #aaa;
        padding: 20px 0;
    }

    .area-options .labels {
        display: block;
    }

    .area-options .labels label {
        display: block;
        width: 100%;
        margin-bottom: 8px;
        white-space: normal;
    }

    /* ラベル表示切替 */
    .none_SP {
        display: none;
    }
    .none_PC {
        display: inline;
    }

    .city_link_list_PC,
    .PC_img {
        display: none;
    }
    .main {
        display: block !important;
    }
    .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;
    }
    .member_registration img {
        max-width: 500px;
    }
    .options {
        display: block !important;
    }
    .recommend_property {
        max-width: 368px;
        width: 100%;
        margin: 0 auto;
    }

    .town_image {
        margin-top: 50px;
    }

    .bg_text {
        display: none;
    }
}

/* =========================================
   ▼ 四辺線アニメ（発火トリガー：.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;
}
