/*
Theme Name: 黄色い不動産｜株式会社愛光社
*/

@charset "utf-8";

/*-----------------------------------
テーマ用CSS設定　自由入力
-----------------------------------*/

a:hover {
    opacity: 0.7;
    filter: alpha(opacity=70);
    -ms-filter: "alpha(opacity=70)";
}

header,
footer {
    display: flex;
    flex-wrap: wrap;
}

body {
    margin: 0;
    position: relative;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100px;
}

.site_title {
    background: white;
    padding: 10px 30px;
    border: 1px solid #000;
    font-weight: bold;
}

.tel {
    font-size: 24px;
}

.tel span {
    font-weight: bold;
}

.contact-btn {
    background: navy;
    padding: 15px;
    font-weight: bold;
    margin-left: 20px;
    color: yellow;
}

.main-visual {
    position: relative;
    height: 80svh;
    overflow: hidden;
    top: 100px;
    left: 14rem;
    z-index: 3;
}

.main-visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 写真を切り取りながら枠にフィット */
    object-position: center;
    /* 中央を基準に表示（上下左右変更可） */
}

.main-visual .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.21%);
    /* グレーの透過色（黒に近い） */
    pointer-events: none;
    /* オーバーレイがクリックを邪魔しないように */
}

h1.title {
    margin-top: 0;
    padding-top: 10px;
    padding-left: 30px;
    z-index: 6;
}

.triangle-top-white {
    width: 0;
    height: 0;
    border-right: 800px solid transparent;
    border-top: 120px solid #fff;
    z-index: 6;
    position: absolute;
    top: 0;
    left: 0;
}

.triangle-top-yellow {
    width: 0;
    height: 0;
    border-right: 820px solid transparent;
    border-top: 130px solid yellow;
    z-index: 5;
    position: absolute;
    top: 0;
    left: 0;
}

.triangle-top-navy {
    width: 0;
    height: 0;
    border-right: 840px solid transparent;
    border-top: 140px solid navy;
    z-index: 4;
    position: absolute;
    top: 0;
    left: 0;
}

.triangle-bottom-yellow {
    width: 0;
    height: 0;
    border-left: 840px solid transparent;
    border-bottom: 140px solid yellow;
    z-index: 1;
    position: absolute;
    bottom: 0;
    right: 0;
}

.triangle-bottom-navy {
    width: 0;
    height: 0;
    border-left: 1920px solid transparent;
    border-bottom: 840px solid #7AAEC9;
    z-index: 2;
    position: absolute;
    bottom: 0;
    right: 0;
}

.mv-box {
    display: block;
    overflow: hidden;
    width: 100%;
    height: 100svh;
    background: #FFF5B2;
    position: relative;
}

nav li {
    list-style: none;
}

nav li a {
    text-decoration: none;
}

.top-heading {
    position: absolute;
    top: 15rem;
    left: 40rem;
    color: #fff;
    font-size: 70px;
    font-family: GSanSerif-B;
    text-shadow: 0 0 5px rgb(129, 129, 129);
    z-index: 5;
}

.text-band-container {
    width: 600px;
    margin: 100px auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: absolute;
    top: 20rem;
    left: 8rem;
    z-index: 5;
}

.text-band-wrapper {
    position: relative;
    height: 90px;
    overflow: hidden;
}

.text-band {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: navy;
    transform: scaleX(0);
    transform-origin: left;
    animation: expandBand .5s forwards;
}

.text-band-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: #fff;
    font-size: 56px;
    font-weight: 900;
    opacity: 0;
    animation: fadeInText 2s forwards;
    padding-left: 30px;
}


/* 2行目はアニメーション遅延 */

.delay-band {
    animation-delay: .5s;
}

.delay-text {
    animation-delay: 1s;
}

@keyframes expandBand {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 強調スタイル */

.highlight {
    font-style: italic;
    color: yellow;
}

.headercontent {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bh {
    font-size: 14px;
}

.contact-btn {
    text-align: center;
    padding: 30px;
    z-index: 2;
}

.message {
    display: block;
    overflow: hidden;
    width: 100%;
    background-color: #FFF5B2;
    height: 600px;
    position: relative;
    z-index: 1;
}

.message img {
    position: absolute;
    left: 25rem;
    top: 2rem;
    width: 500px;
    z-index: 2;
}

.massege-box {
    width: 700px;
    position: absolute;
    top: 16rem;
    right: 10rem;
    z-index: 3;
    display: block;
    padding: 20px;
    background-color: #ffee00;
}

.bg-text {
    position: absolute;
    font-size: 140px;
    color: rgba(240, 229, 81, 0.692);
    right: 10rem;
    top: 2rem;
    font-weight: 900;
    z-index: 2;
}

.message .shadow-box {
    width: 740px;
    height: 250px;
    position: absolute;
    z-index: 2;
    top: 17.5rem;
    right: 8.5rem;
    background-color: navy;
}

.wave-divider {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 100px;
}

.tel-num {
    font-weight: 900;
    font-size: 30px;
    color: navy;
}

.tel-num i.fa-phone {
    margin-right: 5px;
}

.tel i {
    font-size: 24px!important;
    /* 任意のサイズに変更 */
}

#property-area {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.property-item {
    flex: 1 1 calc(25% - 20px);
    /* PC: 4列 */
    box-sizing: border-box;
    background-color: #fff8e1;
    /* 淡い黄色 */
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.property-item:hover {
    transform: translateY(-5px);
}

.property-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.property-title {
    font-size: 18px;
    margin-top: 10px;
    color: #002b5c;
    /* ネイビー */
}

.property-price {
    font-size: 16px;
    margin-top: 5px;
    color: #444;
}


/* ✅ タブレット対応（2列） */

@media screen and (max-width: 1024px) {
    .property-item {
        flex: 1 1 calc(48% - 10px);
    }
}


/* ✅ モバイル：横スライド表示 */

@media screen and (max-width: 600px) {
    #property-area {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding-bottom: 10px;
    }
    .property-item {
        flex: 0 0 80%;
        scroll-snap-align: start;
    }
}

.property-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.property-table th,
.property-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
    vertical-align: top;
    background-color: #fff;
}

.property-table th {
    background-color: #f0f4f8;
    width: 15%;
    font-weight: bold;
}

a.h1-ttl {
    position: absolute;
    z-index: 6;
}