/* グローバル設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: -1;
    -webkit-background-color: rgba(255, 255, 255, 0.5); /* 追加 */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(51, 51, 51, 0.8);
    padding: 1rem;
    color: #fff;
    height: 60px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    -webkit-background-color: rgba(51, 51, 51, 0.8); /* 追加 */
}

.navbar .logo {
    display: flex;
    align-items: center;
    font-size: 1.17em;
}

.navbar .logo img {
    margin-right: 10px;
    height: 50px;
}

.navbar nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar nav ul li {
    margin-left: 1rem;
    position: relative;
}

.navbar nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 1.1rem;
}

.navbar nav ul li a:hover {
    background-color: rgba(87, 87, 87, 0.8);
}

/* ドロップダウンメニュー */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; 
    right: 0;
    background-color: rgba(68, 68, 68, 0.9); 
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: #fff;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    font-size: 1rem;
}

.dropdown-content a:hover {
    background-color: rgba(87, 87, 87, 0.8);
}

/* ハンバーガーメニュー */
.hamburger {
    display: inline-block;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
    .navbar {
        align-items: center;
        background-color: rgba(51, 51, 51, 0.8); /* 再確認 */
        -webkit-background-color: rgba(51, 51, 51, 0.8); /* 追加 */
    }

    .navbar nav ul {
        flex-direction: column;
        width: 100%;
    }

    .navbar nav ul li {
        width: 100%;
    }

    .dropdown-content {
        position: absolute;
        width: 100%;
        transform: none;
        top: 48px;
        right: 0;
    }

    .banner img {
        width: 100%;
        height: auto;
    }

    .intro-content, .about-us-content, .sell-property-content, .property-section {
        padding: 1rem;
    }

    .intro-content p {
        font-size: 1rem;
    }

    .property-item {
        flex: 1 1 100%;
    }

    footer {
        flex-direction: column;
        align-items: center;
        background-color: rgba(51, 51, 51, 0.8); /* 再確認 */
        -webkit-background-color: rgba(51, 51, 51, 0.8); /* 追加 */
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-content p, .footer-content .social-media {
        margin-bottom: 0.5rem;
    }

    .search-bar {
        background-color: rgba(255, 255, 255, 0.8); /* 再確認 */
        -webkit-background-color: rgba(255, 255, 255, 0.8); /* 追加 */
    }

    .info-sections {
        background-color: rgba(255, 255, 255, 0.8); /* 再確認 */
        -webkit-background-color: rgba(255, 255, 255, 0.8); /* 追加 */
    }

    .contact-form {
        background-color: rgba(255, 255, 255, 0.8); /* 再確認 */
        -webkit-background-color: rgba(255, 255, 255, 0.8); /* 追加 */
    }

    .sell-property-content {
        background-color: rgba(255, 255, 255, 0.9); /* 再確認 */
        -webkit-background-color: rgba(255, 255, 255, 0.9); /* 追加 */
    }

    .property-section {
        background-color: rgba(255, 255, 255, 0.8); /* 再確認 */
        -webkit-background-color: rgba(255, 255, 255, 0.8); /* 追加 */
    }

    .property-item {
        background-color: rgba(255, 255, 255, 0.9); /* 再確認 */
        -webkit-background-color: rgba(255, 255, 255, 0.9); /* 追加 */
    }
}

/* その他のセクション */
.banner {
    margin-top: 60px; /* To offset the fixed navbar height */
}

.banner img {
    width: 100%;
    height: auto;
}

.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-background-color: rgba(255, 255, 255, 0.8); /* 追加 */
}

.search-bar input, .search-bar button {
    padding: 0.5rem;
    margin: 0.5rem;
}

.info-sections {
    display: flex;
    justify-content: space-around;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-background-color: rgba(255, 255, 255, 0.8); /* 追加 */
}

.info {
    width: 45%;
    text-align: center;
}

.contact-form {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-background-color: rgba(255, 255, 255, 0.8); /* 追加 */
}

.contact-form h2 {
    margin-bottom: 1rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form form input, .contact-form form textarea {
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form form button {
    padding: 0.5rem;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: rgba(51, 51, 51, 0.8);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
    -webkit-background-color: rgba(51, 51, 51, 0.8); /* 追加 */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

footer .social-media {
    display: flex;
    gap: 1rem;
}

@media (max-width: 620px) {
    footer .social-media {
        display: block;
        gap: 1rem;
    }
}   

footer .social-media a {
    color: #fff;
    text-decoration: none;
}

footer .shibata-banner img {
    height: 60px;
}

.about-us {
    padding: 20px;
    background-color: rgba(249, 249, 249, 0.9);
    border-radius: 8px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    -webkit-background-color: rgba(249, 249, 249, 0.9); /* 追加 */
}

.about-us h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

.company-info, .representative-message, .privacy-policy, .disclaimer {
    margin-bottom: 20px;
}

.company-info ul {
    list-style-type: none;
    padding: 0;
}

.company-info ul li {
    padding: 5px 0;
    font-size: 1em;
}

.company-info ul li strong {
    color: #555;
}

.representative-message p {
    font-size: 1em;
    line-height: 1.6;
    color: #333;
}

.privacy-policy ol, .disclaimer {
    padding-left: 20px;
}

.privacy-policy ol li {
    margin-bottom: 10px;
}

.privacy-policy ol li strong, .disclaimer h3 {
    color: #555;
}

.privacy-policy ol li p, .disclaimer p {
    font-size: 1em;
    line-height: 1.6;
    color: #333;
}

#map-section {
    text-align: center;
    margin: 20px 0;
}

#map {
    height: 400px;
    width: 70%;
    margin: 0 auto;
}

.intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-background-color: rgba(255, 255, 255, 0.8); /* 追加 */
}

.intro-content {
    max-width: 800px;
    text-align: center;
    z-index: 1;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.intro-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.intro-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.intro h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.intro-images {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 20px;
}

.intro-images img {
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-us-content {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.about-us-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.sell-property {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-background-color: rgba(255, 255, 255, 0.8); /* 追加 */
}

.sell-property-content {
    max-width: 800px;
    text-align: center;
    z-index: 1;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 5px;
    -webkit-background-color: rgba(255, 255, 255, 0.9); /* 追加 */
}

.sell-property h2, .sell-property h3 {
    color: #333;
    margin-bottom: 20px;
}

.sell-property p, .sell-property li {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #666;
}

.sell-property ol {
    padding-left: 20px;
    text-align: left;
}

.sell-property .faq h4 {
    font-size: 1.1rem;
    margin-top: 20px;
    color: #007BFF;
}

.sell-property .faq p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.faq-answer {
    display: none;
    margin-top: 10px;
}

.see-all {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    text-align: right;
    padding-right: 20px;
}

.see-all a {
    color: #0066cc;
    text-decoration: none;
}

.see-all a:hover {
    text-decoration: underline;
}

.property-section {
    padding: 50px 20px;
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-background-color: rgba(255, 255, 255, 0.8); /* 追加 */
}

.property-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
}

.property-item {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 20px;
    width: 45%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    -webkit-background-color: rgba(255, 255, 255, 0.9); /* 追加 */
}

.property-item img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
}

.property-details {
    padding: 20px;
}

.property-details h3 {
    margin-bottom: 10px;
    color: #333;
}

.property-details p {
    margin-bottom: 10px;
    color: #666;
    font-size: 1rem;
}

.property-details a {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.property-details a:hover {
    background-color: #0056b3;
}

.property-item:hover {
    transform: scale(1.05);
}

.property-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.additional-info {
    flex: 1;
    margin-right: 20px;
    text-align: left;
}

.additional-info h3 {
    margin-bottom: 20px;
    color: #333;
}

.additional-info p {
    margin-bottom: 20px;
    color: #666;
    font-size: 1.1rem;
}

.additional-info img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.property-list {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.property-item {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 20px;
    flex: 1 1 calc(50% - 40px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    -webkit-background-color: rgba(255, 255, 255, 0.9); /* 追加 */
}

.property-item img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
}

.property-details {
    padding: 20px;
}

.property-details h3 {
    margin-bottom: 10px;
    color: #333;
}

.property-details p {
    margin-bottom: 10px;
    color: #666;
    font-size: 1rem;
}

.property-details a {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.property-details a:hover {
    background-color: #0056b3;
}

.property-item:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    h1 {
        display: none;
    }
    .property-item {
        flex: 1 1 100%;
    }

    .property-wrapper {
        flex-direction: column;
    }

    .additional-info {
        margin-right: 0;
        margin-bottom: 20px;
    }
}
