/* デフォルト (441px 以上) のスタイル */
html{
    overscroll-behavior:none;
}

body{
    margin: 0;
    background-color: rgb(255, 239, 218);
    overscroll-behavior:none;
}

header{
    padding: 10px;
}

header a{
    display: block;
    width: 300px;
    line-height: 40px;
}

header a img{
    width: 100%;
}

h1,
h2{
    margin: 0;
}

.front-link{
    position: fixed;
    bottom: 0;
    right: 0;
    height: 60px;
    width: 60px;
    text-align: center;
    line-height: 60px;
    background-position: center;
}

.front-link img{
    width: 100%;
}

#main{
    width: 90%;
    margin: 0 auto;
    background-image:url(../image/room1.jpg);
    background-size:cover;
    position: relative;
    overflow:scroll;
}

#main::-webkit-scrollbar { display: none; }

.index-main .municipalities-list h2 a{
    width: 100%;
    display: block;
}

.index-main .municipalities-list h2 a img{
    width: 100%;
}

.index-main .municipalities-list ul{
    padding: 0;
}

.index-main li{
    list-style: none;
    background-color: rgb(0 0 0 / .8);
    color: #fff;
    text-decoration: none;
    height: 2.4em;
    line-height: 2.4em;
    width: 100%;
    margin: 1em 0;
}

.index-main li a{
    text-decoration: none;
    width: 100%;
    display: block;
    padding-left: 1em;
}

.index-main li a:visited{
    color: #fff;
}

.index-main li a:link { color: #fff; }

.index-main li a:hover{ color: #fff; }

.index-main li a:active{ color: #fff; }

/*.index-main::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    margin: auto;
    background-image: url(../image/room1.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: top; 
    box-sizing: border-box;
    display: block;
    width: calc(100% - var(--municipalities-list-width, 0px));
}*/

.municipalities-list{
    padding: 30px 30px;
    margin-left: auto;
    max-width: 25em;
    width: 40%;
    right: 0;
    background-color: rgba(255, 255, 255, 0.5);
    height: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

.site-main{
    width: 100%;
    max-width: 1980px;
    margin: 0 auto;
    background-color: rgb(255 255 255 / .8);
    background-position: center;
    background-size:cover;
}
.property-list-item {
    display: flex;
    padding: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #a0a0a0;
    padding-bottom: 20px;
    align-items: center; /* 上下中央寄せのために変更 */
    background-color: rgba(255, 255, 255, 0.8);
}

.property-thumbnail {
    max-width: 25%; /* サムネイルの最大幅 */
    margin-right: 20px;
    display: flex; /* flexbox を有効にする */
    justify-content: center; /* 左右中央寄せ */
    align-items: center;    /* サムネイル自体も中央寄せ */
}

.property-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 100%; /* 必要に応じて */
    pointer-events: none;
}

.property-details {
    flex-grow: 1; /* 残りのスペースを占める */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* テキストを左寄せ */
}

.property-meta {
    margin-bottom: 5px;
    text-align: left; /* テキストを左寄せ */
}

.entry-title {
    text-align: left; /* タイトルを左寄せ */
}

.property-download {
    text-align: left; /* ダウンロードボタンなどを左寄せ */
}

.sp{
    display: none;
}

.pc{
    display: inline-block;
}

p {
    text-align: center;
}


@media screen and (max-width: 440px) {
    .pc{
        display: none;
    }
    .site-main{
        padding: 0;
    }
    .index-main{
    width: 100%;
    margin: 0 auto;
    background-image:url(../image/chofu_station.jpg);
    height: 480px;
    background-position: center;
    background-size:cover;
    background-repeat: no-repeat;
}
.index-main li a{
    box-sizing: border-box;
}
    .municipalities-list{
    height: 100%;
    padding: 0;
    margin-top: auto;
    margin-bottom: 0;
    max-width: 100%;
    width: 100%;
    vertical-align:bottom;
}

    .property-list-item {
        display: flex;
        flex-direction: column; /* 縦並びにする */
        align-items: center; /* 中央揃え */
    }

    .property-thumbnail {
        max-width: 98%; /* モバイルでは 98% */
        margin-bottom: 10px;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-right: 0;
    }

    .property-thumbnail img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
        max-height: none;
    }

    .property-details {
        max-width: 98%;
        text-align: center;
    }

    .property-meta {
        text-align: center;
    }

    .entry-title {
        text-align: center;
    }

    .property-download {
        text-align: center;
    }
    header{
        height: auto;
        font-size: 18px;
    }
    .sp{
    display: block;
}
}

.w3eden .card{
    border: none;
    display: block;
}

.w3eden .card-body{
    padding: 0;
}

.media-body{
    display: none;
}

.img-48{
    display: none;
}

.entry-content{
    overflow-x: scroll;
}
.entry-content::-webkit-scrollbar { display: none; }
.municipalities-matrix{
    width: 100%;
    max-width: 1000px;
    min-width: 480px;
    margin: 0 auto;
    border: 1px solid #ec6c00;
    background-color: rgb(255 255 255 / .6);
}

.municipalities-matrix th{
    border: 1px solid #ec6c00;
    background-color: rgb(255 255 255 / .6);
    color: #333;
    height: 2em;
    line-height: 2em;
}

.municipalities-matrix td{
    text-align: right;
    border: 1px solid #ec6c00;
    background-color: rgb(255 255 255 / .6);
    color: #333;
    height: 2em;
    line-height: 2em;
}