/* --- CSS SETTINGS --- */
:root {
    --primary-color: #0056b3;
    --accent-color: #ff6600;
    --text-color: #333;
    --bg-light: #f9f9f9;
    --white: #fff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- HEADER --- */
header {
    border-bottom: 1px solid #eee;
    background: #fff;
}

.top-bar {
    background: #f4f4f4;
    font-size: 12px;
    padding: 5px 0;
    text-align: center;
    color: #666;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Navigation */
nav {
    background: #333;
    color: #fff;
}

.nav-list {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.nav-list li a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

.nav-list li a:hover {
    background: var(--accent-color);
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('_src/mainpage/PXL_20250627_071059639.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.btn-hero {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
}

.btn-hero:hover {
    background: #e55c00;
    transform: translateY(-2px);
}

/* --- LISTINGS SECTION --- */
.section-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Loading / Error Messages */
#loading-message {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    width: 100%;
    padding: 20px;
}

/* Property Card Design */
.property-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.prop-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #eee;
}

.prop-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-color);
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
}

.status-rent {
    background: #333;
}

.status-land {
    background: #28a745;
}

.prop-details {
    padding: 20px;
}

.prop-price {
    color: #d00000;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
}

.prop-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 10px 0;
    line-height: 1.4;
    height: 3em;
    overflow: hidden;
}

.prop-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.prop-address {
    font-size: 0.85rem;
    color: #ff6600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: 0.3s;
    background: #fff5e6;
}

.prop-address:hover {
    color: #fff;
    background: #ff6600;
    text-decoration: underline;
}

.btn-detail {
    display: block;
    text-align: center;
    background: var(--primary-color);
    color: #fff;
    padding: 10px;
    border-radius: 4px;
}

.btn-detail:hover {
    background: #004494;
}

/* --- CATEGORY BUTTONS STYLES --- */
.category-links-wrapper {
    margin-top: 50px;
    text-align: center;
}

.category-links-wrapper h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #555;
}

.category-btn-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-category {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: #fff;
    width: 220px;
    padding: 18px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-category:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* --- FOOTER --- */
footer {
    background: #333;
    color: #fff;
    padding: 40px 0 10px;
    text-align: center;
}

.footer-links a {
    color: #ccc;
    margin: 0 10px;
    font-size: 0.9rem;
}

.copyright {
    font-size: 0.8rem;
    color: #777;
    margin-top: 20px;
}

/* --- POPUP / FLOATING BANNER --- */
.sell-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 360px;
    background: #fff;
    border: 4px solid #d00000;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.4);
    z-index: 9999;
    font-family: "Noto Sans JP", sans-serif;
    overflow: hidden;
    animation: slideIn 1s ease-out;
    display: block;
}

.popup-header {
    background: #d00000;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
    position: relative;
    letter-spacing: 1px;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.popup-body {
    padding: 20px;
    text-align: center;
}

.popup-text {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.6;
}

.popup-tel {
    display: block;
    font-size: 2.4rem;
    font-weight: bold;
    color: #d00000;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    margin: 5px 0 15px;
    letter-spacing: 1px;
}

.popup-btn-mail {
    display: block;
    background: #333;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: 0.3s;
}

.popup-btn-mail:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.02);
}

/* Animation */
@keyframes slideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-list li {
        border-bottom: 1px solid #444;
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .btn-category {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .sell-popup {
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;
        width: 94%;
    }

    .popup-tel {
        font-size: 2rem;
    }
}
