@font-face {
    font-family: 'MPLUS1p';
    /* font-weight: 400; */
    font-display: swap;
    src: url('https://www.roomii.jp/assets/assets/fonts/MPLUS1p-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Material Symbols';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://www.roomii.jp/assets/assets/fonts/MaterialSymbols.ttf') format('truetype');
}

.material-symbols {
    font-family: 'Material Symbols';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
}

.material-symbols.filled {
    font-variation-settings: 'FILL' 1, "wght" 300, "GRAD" 0, "opsz" 24;
}

.material-symbols.outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

body {
    font-family: 'MPLUS1p', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #363636;
    font-size: 16px;
    background-color: #f3f4f6;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-content {
    padding: 15px;
    margin: 0 auto;
    box-sizing: border-box;
}

.container {
    padding: 32px;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Header Styles */
.site-header {
    background-color: #ffffffcc;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 20px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
    box-sizing: border-box;
}

.back-button {
    background: none;
    border: none;
    font-size: 20px;
    color: #555;
    cursor: pointer;
    padding: 0;
    height: 40px;
    width: 40px;
    border-radius: 20px;
    padding-right: 2px;
    padding-bottom: 3px;
    display: flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
}

.back-button:hover {
    background-color: #f1f1f1;
}

/* Footer */
.site-footer {
    background-color: #eaeaea;
    padding: 20px 0;
    text-align: center;
    margin-top: 0;
    width: 100%;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-link {
    color: #2a63a2;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    font-weight: 500;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-copyright {
    color: #575757;
    font-size: 14px;
}

.property-grid {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    max-width: 1024px;
    margin: 0 auto 40px;
    padding: 0;
    gap: 20px;
    row-gap: 40px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.property-card {
    width: 310px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 0px 8px #dddddd;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

.property-card .image-wrapper {
    width: 100%;
    height: 180px;
    min-height: 180px;
    box-sizing: border-box;
    overflow: hidden;
}

.property-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-card .property-info {
    height: 100%;
    padding: 0 10px;
    box-shadow: 0px 0px 20px #dddddd;
}

.property-card .property-info h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    margin-top: 10px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.property-card .property-info p {
    margin: 0;
    font-size: 14px;
    margin-bottom: 6px;
}

.property-card .property-info .address {
    font-size: 12px;
    color: #595959;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.property-card .property-info .rent-info {
    color: #1e6cff;
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 0;
}

.property-card .property-info .rent-fee {
    color: #595959;
    font-size: 12px;
}

.view-map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin: 15px 0 10px 0;
    padding: 10px 0;
    background-color: #008A20;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.view-map-btn.disabled {
    color: #4a494a;
    cursor: not-allowed;
    background-color: #c2c2c2;
}

.view-map-btn:not(.disabled):hover {
    background-color: #009624;
}

.view-map-btn .material-symbols {
    font-size: 20px;
    margin-right: 6px;
}

@media screen and (max-width: 430px) {

    .main-content,
    .container {
        padding: 15px;
        margin-top: 0;
        margin-bottom: 0;
        border-radius: 0;
    }

    .site-header {
        margin-bottom: 0;
    }
}

@media screen and (max-width: 700px) {

    .property-grid {
        gap: 15px;
        row-gap: 15px;
    }

    .property-card {
        flex-grow: 1;
    }
}