h2 {
    width: auto;
}

/* トップ全体 */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
}

/* 背景 文字 */
.hero::before {
    content: "INVESTMENT PROPERTY";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0%);
    text-align: left;
    font: normal normal bold 100px/88px "Century Gothic", sans-serif;
    letter-spacing: 5px;
    color: #f5f5f5;
    opacity: 1;
    white-space: nowrap;
    word-break: break-word;
    z-index: 0;
}

/* 内側のテキスト */
.hero-inner {
    z-index: 1;
    display: flex;
    width: 100%;
    height: 100vh;
}

.hero-text {
    width: 100%;
    height: 100%;
    margin-top: 120px;
    margin-left: 60px;
}

.hero-sub {
    position: relative;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 500;
    line-height: 1.4;
    color: #000;
    text-align: left;
    max-width: 390px;
    width: 100%;
    white-space: nowrap;
    font-weight: 500;
    border-bottom: 3px solid #dc000c;
    padding-bottom: 5px;
}

.hero-sub .himeji {
    font: var(--unnamed-font-style-normal) normal
        var(--unnamed-font-weight-bold) var(--unnamed-font-size-40) / 45px
        var(--unnamed-font-family-zen-kaku-gothic-new);
    text-align: left;
    font: normal normal bold 40px/45px Zen Kaku Gothic New;
    letter-spacing: 0.8px;
    color: #d71122;
}

.hero-sub .normal {
    text-align: left;
    font: normal normal bold 30px/45px Zen Kaku Gothic New;
    letter-spacing: 0.6px;
    color: #000000;
}

.hero-sub .number {
    text-align: left;
    font: normal normal bold 46px/45px Zen Kaku Gothic New;
    letter-spacing: 0.92px;
    color: #d71122;
}

.hero-sub .year {
    text-align: left;
    font: normal normal bold 30px/45px Zen Kaku Gothic New;
    letter-spacing: 0.6px;
    color: #d71122;
}

.hero-sub .highlight {
    color: #dc000c;
    font-size: var(--unnamed-font-size-42);
}

.hero-title {
    font-weight: 500;
    margin-top: 24px;
}

/* 強調部分 */
.hero-title .title-strong {
    text-align: left;
    font: normal normal 500 77px/97px "Zen Kaku Gothic New";
    letter-spacing: 0px;
    color: #070707;
}

/* なら */
.hero-title .title-small {
    text-align: left;
    font: normal normal bold 52px/97px "Zen Kaku Gothic New";
    letter-spacing: 0px;
    color: #070707;
}

/* 下の行 */
.hero-title .title-sub {
    text-align: left;
    font: normal normal bold 52px/75px "Zen Kaku Gothic New";
    letter-spacing: 0px;
    color: #070707;
}

/* 「赤鹿地所」 */
.hero-title .title-sub .highlight {
    color: #dc000c;
}

.hero-desc {
    margin-top: 40px;
    font: normal normal 500 18px/31px "Zen Kaku Gothic New";
    letter-spacing: 0.72px;
}

.hero-below-image {
    margin-top: 30px;
    text-align: left;
}

.hero-below-image img {
    width: 55%;
    position: absolute;
    left: 2%;
    top: 66%;
    z-index: -9999;
}

.category-images {
    margin-top: 40px;
    width: 100%;
    display: flex;
    gap: 20px;
}

.category-images img {
    position: relative;
    z-index: -1;
    width: 15%;
}

.hero-photos {
    margin-top: 5%;
    text-align: left;
    height: 95%;
}

.hero-photos img {
    height: 32%;
    padding: 5px 0;
    object-fit: cover;
    display: block;
}

.search-form {
    border-top: 1px solid #ccc;
}

.business-search h2 span {
    display: inline-block;
    background-color: #dc000c;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    margin-right: 10px;
    vertical-align: middle;
}
.business-search {
    padding-top: 200px;
}

.search-type-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.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;
    z-index: -1;
}

.form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 8px 0;
    width: 100%;
}

.price-group,
.flex_SP {
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 8px 0;
}

.area-group {
    text-align: center;
}

.section-title {
    font-size: 40px;
    margin-bottom: 40px;
    color: #000000;
    font-weight: 500;
    font-family: "Zen Kaku Gothic New", sans-serif;
    text-align: left;
}

.big-text {
    position: relative;
}

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

.card-content .arrow {
    position: absolute;
    right: 0;
    bottom: 0;
    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;
    z-index: 10;
}
.card-content .arrow:hover {
    background: #333;
}

.decor-container {
    text-align: center;
    margin-top: 40px;
    margin-left: -20px;
}

/* PROPERTIES 共通 */
.outline-text {
    font-size: 70px;
    font-weight: 500;
    font-family: "Century Gothic", sans-serif;
    letter-spacing: 3.5px;
    color: transparent;
    -webkit-text-stroke: 1px #ccc;
    margin: 0 10px;
    display: inline-block;
}

.recommend_property {
    width: 100%;
    margin: 0 auto;
    max-width: 1107px; /*合わせるなら1200px修正*/
    padding-top: 50px;
    padding-bottom: 50px;
}

/* FOR SALE 専用 */
.fill-text {
    font-size: 70px;
    font-weight: 700;
    font-family: "Century Gothic", sans-serif;
    letter-spacing: 3.5px;
    color: rgba(0, 0, 0, 0.08);
    margin: 0 20px;
    display: inline-block;
}

.more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: black;
    color: #fff;
    padding: 8px 12px;
    text-decoration: none;
    font-size: 14px;
}

.more-link:hover {
    background: #333;
}

.more-linkbox {
    display: flex;
    align-items: center;
    gap: 12px;
}

.more-text {
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

.arrow-linkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #000;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    border-radius: 2px;
    top: 12px;
}

.arrow-linkbox:hover {
    background: #333;
}
.utilization {
    position: relative;
    width: 100%;
    margin: 0 auto;
    max-width: 1200px;
    padding-top: 160px;
    margin-bottom: 50px;
}

.utilization h2 {
    line-height: 60px;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 40px;
    font-weight: 500;
    font-family: "Zen Kaku Gothic New", sans-serif;
    color: #000000;
}

.utilization h2 span {
    display: inline-block;
    background-color: #dc000c;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    margin-right: 10px;
    vertical-align: middle;
}

.utilization-cards {
    position: relative;
    display: flex;
    width: 100%;
}

.utilization .card {
    width: 100%;
    display: flex;
    gap: 24px;
    padding: 40px;
    align-items: flex-start;
    position: relative;
    box-sizing: border-box;
    border-top: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
}

.card-image {
    width: 168px;
    height: 145px;
    object-fit: cover;
    object-position: center;
    vertical-align: bottom;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-right: 40px;
}

.card-content h3 {
    font-size: 24px;
    font-weight: 200;
    margin-bottom: 12px;
    color: #000;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

.card-content p {
    font-size: 16px;
    line-height: 1;
    color: #000;
    font-family: "Zen Kaku Gothic New", sans-serif;
    white-space: pre-line;
    word-break: keep-all;
}
.utilization-border {
    position: relative;
}

/* 装飾文字 */
.utilization-border.big-text::after {
    content: "Sell";
    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;
}

.card-content .arrow {
    position: absolute;
    right: 0px;
    bottom: 0px;
    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;
}

.card-content .arrow:hover {
    background: #333;
}
.card-content p {
    height: auto;
}

.card-content {
    text-align: left;
}

@media screen and (min-width: 960px) {
    .none_PC {
        display: none;
    }
    .castle {
        position: absolute;
        left: 42.5%;
        top: 20%;
        z-index: 0;
        pointer-events: none;
        transform: scale(1.5);
        transform-origin: center;
    }
}

.arrow-box {
    position: relative;
    background: #000;
    color: #fff;
    width: 50px;
    height: 50px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* アニメ用の重ね矢印 */
.arrow-box::before,
.arrow-box::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #fff;
    animation-fill-mode: forwards;
    animation-duration: 0.6s;
}

/* after は左側から入場 */
.arrow-box::after {
    transform: translate(calc(-100% - 15px), -50%);
}

/* hover 時のアニメーション */
.arrow-box:hover::before {
    animation-name: arrowRightLeft;
}

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

/* アニメーション本体 */
@keyframes arrowLeftRight {
    from {
        transform: translate(calc(-100% - 15px), -50%);
    }
    to {
        transform: translateY(-50%);
    }
}

@keyframes arrowRightLeft {
    from {
        transform: translateY(-50%);
    }
    to {
        transform: translate(calc(100% + 15px), -50%);
    }
}
@media screen and (max-width: 959px) {
    .none_SP {
        display: none;
    }
    .price-group {
        display: inline;
    }
    .flex_SP {
        margin-top: 16px;
    }
    .hero {
        height: auto;
    }
    .hero-sub .himeji,
    .hero-sub .normal,
    .hero-sub .number,
    .hero-sub .year,
    .hero-title .title-strong,
    .hero-title .title-small,
    .hero-title .title-sub,
    .hero-desc {
        line-height: 2; /* 高さを統一 */
    }
    .utilization::after {
        display: none;
    }
    .hero-text {
        display: block;
        text-align: center;
        width: auto;
        padding-top: 40px;
        height: auto;
        margin-left: 0;
    }
    .hero-sub {
        margin: 0 auto;
    }
    .hero-title {
        font-weight: 500;
        margin-top: 0;
    }
    .category-images {
        margin-top: 24px;
        width: 100%;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .category-images img {
        position: relative;
        width: auto;
    }
    .hero-below-image img {
        width: 100%;
        left: 0;
        top: 440px;
    }

    .hero-sub .himeji {
        font-size: 22px;
    }
    .hero-sub .normal {
        font-size: 16px;
    }
    .hero-sub .number {
        font-size: 25px;
    }
    .hero-sub .year {
        font-size: 16px;
    }
    .hero-sub {
        max-width: 210px;
    }
    .hero-title .title-strong {
        font-size: 40px;
    }
    .hero-title .title-small {
        font-size: 24px;
    }
    .hero-title .title-sub {
        font-size: 24px;
    }
    .hero-inner {
        display: block;
        margin-left: 0;
        height: auto;
    }
    .hero-desc {
        font-size: 15px;
        margin-top: 24px;
        white-space: nowrap; /* 折り返し禁止 */
    }

    .hero::before {
        display: none;
    }
    .hero {
        padding: 0;
        display: block;
    }
    .hero-photos {
        display: none;
    }
    .castle {
        position: absolute;
        right: 30px;
        top: 40px;
        z-index: 0;
    }
    .img_PC {
        height: 150px !important;
        width: 45% !important;
    }
    .recommend_property {
        width: 90%;
    }
    .h2 {
        font-size: 28px;
    }
    .options {
        display: block !important;
    }
    .sub {
        padding: 10px;
    }
    .hero-below-image {
        margin-top: -10px;
    }
    .card {
        display: block !important;
    }
    .utilization .card {
        min-width: auto;
        margin-right: 0;
    }
    .utilization-border::after {
        display: none;
    }
    .utilization-cards {
        display: static;
    }
    .utilization .card:nth-child(1) {
        border-right: none;
    }
    .utilization .card {
        width: 100%;
        display: block;
    }
    .card-image {
        width: 100%;
        height: auto;
    }
    .card-content h3 {
        margin-top: 16px;
    }
    .utilization h2 {
        font-size: 28px;
    }
    .recommend_property .header h1 {
        font-size: 28px;
    }

    /* 横スクロール全体 */
    .decor-wrapper {
        width: 100%;
        overflow: hidden;
        white-space: nowrap;
        margin: 80px 0;
    }

    /* 中身の横並び */
    .decor-container {
        display: inline-flex;
        align-items: center;
        gap: 24px;
        white-space: nowrap;
        text-align: center;
        margin-top: 40px;
    }

    /* アウトライン文字（PROPERTIESなど） */
    .outline-text,
    .fill-text {
        font-size: 70px;
        font-weight: 700;
        font-family: "Century Gothic", sans-serif;
        letter-spacing: 3.5px;
        display: inline-block;
        white-space: nowrap;
        margin: 0 20px;
    }

    /* OUTLINE 専用 */
    .outline-text {
        color: transparent;
        -webkit-text-stroke: 1px #ccc;
    }

    /* FILL 専用 */
    .fill-text {
        color: rgba(0, 0, 0, 0.08);
    }

    /* カード全体 */
    .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;
    }

    body {
        overflow-x: hidden;
    }

    /* ---- 矢印アニメ 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;
        }
    }
}
