/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.logo{
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Header Styles */
header {
    background-color: transparent;
    box-shadow: none;
    top: 0;
    left:0;
    right:0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo h1 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 5px;
}

.logo p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #007bff;
}

nav ul li a.active {
    color: #007bff;
    font-weight: 700;
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #007bff;
    transition: all 0.3s ease;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: #007bff;
    transition: all 0.3s ease;
    z-index: 1001;
    width: 0;
}

/* Active section highlighting for better integration */
section {
    position: relative;
}

/* Header scroll effect */
header.scrolled {
    background-color: #007bff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled .logo h1 {
    color: #ffffff;
}

header.scrolled .logo p {
    color: rgba(255, 255, 255, 0.9);
}

header.scrolled nav ul li a {
    color: #ffffff;
}

header.scrolled nav ul li a:hover {
    color: rgba(255, 255, 255, 0.8);
}

header.scrolled nav ul li a.active {
    color: #ffffff;
}

header.scrolled nav ul li a.active::after {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Animations */
/* Base animation class */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Different animation types */
/* Fade up animation (default) */
.info-item, .property-card,
.news-item:nth-child(2), /* Middle news item */
.service-item:nth-child(2) /* Second service item */
 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Fly in from left animation */
.company-details,
.news-item:nth-child(1), /* First news item */
.management-item:nth-child(1), /* First management item */
.minpaku-item:nth-child(1), /* First minpaku item */
.consulting-item:nth-child(1) /* First consulting item */
 {
    opacity: 0;
    transform: translateX(-50px) translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Fly in from right animation */
.company-mission,
.news-item:nth-child(3), /* Third news item */
.management-item:nth-child(2), /* Second management item */
.minpaku-item:nth-child(2), /* Second minpaku item */
.consulting-item:nth-child(2) /* Second consulting item */
 {
    opacity: 0;
    transform: translateX(50px) translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Service items with different animations */
.service-item:nth-child(1) /* First service item */
 {
    opacity: 0;
    transform: translateX(-30px) translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Animation delay for better visual flow */
/* News section delays */
.news-item:nth-child(1).animate {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateX(0px) translateY(0px);
}

.news-item:nth-child(2).animate {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateX(0px) translateY(0px);
}

.news-item:nth-child(3).animate {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateX(0px) translateY(0px);
}

/* Company info section delays */
.company-details.animate {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateX(0px) translateY(0px);
}

.company-mission.animate {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateX(0px) translateY(0px);
}

/* Service section delays */
.service-item:nth-child(1).animate {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateX(0px) translateY(0px);
}

.service-item:nth-child(2).animate {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateX(0px) translateY(0px);
}

/* Management section delays */
.management-item:nth-child(1).animate {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateX(0px) translateY(0px);
}

.management-item:nth-child(2).animate {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateX(0px) translateY(0px);
}

/* Minpaku section delays */
.minpaku-item:nth-child(1).animate {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateX(0px) translateY(0px);
}

.minpaku-item:nth-child(2).animate {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateX(0px) translateY(0px);
}

/* Consulting section delays */
.consulting-item:nth-child(1).animate {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateX(0px) translateY(0px);
}

.consulting-item:nth-child(2).animate {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateX(0px) translateY(0px);
}

.property-content {
    transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
    background-image: url('../images/banner.jpg');
    background-position: center center;
    background-color: rgba(0,0,0,0.3);
    background-blend-mode: multiply;
    /* background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); */
    color: white;
    padding: 200px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    background-color: #ffffff;
    color: #007bff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.btn-primary:hover {
    background-color: transparent;
    color: #ffffff;
}

.btn-secondary {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #007bff;
}

.btn-secondary:hover {
    background-color: transparent;
    color: #007bff;
}

/* Company Info Section */
.company-info {
    padding: 80px 0;
    background-color: #ffffff;
}

.company-info h3 {
    text-align: center;
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 50px;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    align-items: start;
}

.company-details h4,
.company-mission h4 {
    font-size: 1.4rem;
    color: #007bff;
    margin-bottom: 20px;
}

.info-list {
    list-style: none;
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-list li {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #343a40;
    padding-left: 20px;
    position: relative;
}

.info-list li::before {
    content: "•";
    color: #007bff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.company-mission p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* News Section */
.news {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.news h3 {
    text-align: center;
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 50px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-date {
    font-size: 0.9rem;
    color: #007bff;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-content h4 {
    font-size: 1.2rem;
    color: #343a40;
    margin-bottom: 10px;
}

.news-content p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
}

/* Brokerage Section */
.brokerage {
    padding: 80px 0;
    background-color: #ffffff;
}

.brokerage h3 {
    text-align: center;
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 50px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-item h4 {
    font-size: 1.4rem;
    color: #007bff;
    margin-bottom: 20px;
}

.service-item p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-item ul {
    list-style: none;
    padding-left: 20px;
}

.service-item ul li {
    margin-bottom: 10px;
    color: #343a40;
    position: relative;
}

.service-item ul li::before {
    content: "→";
    color: #007bff;
    position: absolute;
    left: -20px;
}

/* Management Section */
.management {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.management h3 {
    text-align: center;
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 30px;
}

.management-content p {
    text-align: center;
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.management-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.management-item h4 {
    font-size: 1.3rem;
    color: #007bff;
    margin-bottom: 20px;
}

.management-item ul {
    list-style: none;
    padding-left: 20px;
}

.management-item ul li {
    margin-bottom: 12px;
    color: #343a40;
    position: relative;
}

.management-item ul li::before {
    content: "✓";
    color: #007bff;
    font-weight: bold;
    position: absolute;
    left: -20px;
}

/* Minpaku Section */
.minpaku {
    padding: 80px 0;
    background-color: #ffffff;
}

.minpaku h3 {
    text-align: center;
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 30px;
}

.minpaku-content p {
    text-align: center;
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.minpaku-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.minpaku-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.minpaku-item h4 {
    font-size: 1.3rem;
    color: #007bff;
    margin-bottom: 20px;
}

.minpaku-item ul,
.minpaku-item ol {
    padding-left: 25px;
}

.minpaku-item ul li,
.minpaku-item ol li {
    margin-bottom: 12px;
    color: #343a40;
}

.minpaku-item ol {
    counter-reset: item;
}

.minpaku-item ol li {
    list-style-type: none;
    position: relative;
}

.minpaku-item ol li::before {
    content: counter(item) ".";
    counter-increment: item;
    color: #007bff;
    font-weight: bold;
    margin-right: 10px;
}

/* Consulting Section */
.consulting {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.consulting h3 {
    text-align: center;
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 30px;
    font-weight: normal;
    line-height: 1.6;
}

.consulting-content p {
    text-align: center;
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.consulting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.consulting-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.consulting-item h4 {
    font-size: 1.3rem;
    color: #007bff;
    margin-bottom: 20px;
}

.consulting-item ul {
    list-style: none;
    padding-left: 20px;
}

.consulting-item ul li {
    margin-bottom: 12px;
    color: #343a40;
    position: relative;
}

.consulting-item ul li::before {
    content: "→";
    color: #007bff;
    position: absolute;
    left: -20px;
}

/* Properties Section */
.properties {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.properties h3 {
    text-align: center;
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 50px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.property-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.property-image {
    height: 250px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-content {
    padding: 25px;
}

.property-content h4 {
    font-size: 1.4rem;
    color: #343a40;
    margin-bottom: 10px;
}

.property-content p {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 20px;
}

/* News Page Styles */
.news-page {
    padding: 60px 0;
    background-color: #ffffff;
}

.news-page h2 {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 40px;
    text-align: center;
}

.news-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-top: 30px;
}

/* News Sidebar */
.news-sidebar {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    padding: 15px 20px;
    margin-bottom: 8px;
    background-color: #007bff;
    color: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-item:hover {
    background-color: #0056b3;
    transform: translateX(5px);
}

.category-item.active {
    background-color: #ffc107;
    color: #333;
    font-weight: 700;
}

/* News Content */
.news-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.news-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.news-header h3 {
    font-size: 1.4rem;
    color: #343a40;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.news-date {
    font-size: 0.9rem;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: 500;
}

.news-body {
    margin-bottom: 15px;
}

.news-body p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.85rem;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 500;
}

.tag.rental-tag {
    background-color: #e3f2fd;
    color: #1976d2;
}

.tag.sale-tag {
    background-color: #e8f5e9;
    color: #388e3c;
}

.tag.management-tag {
    background-color: #fff3e0;
    color: #f57c00;
}

.tag.minpaku-tag {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.tag.foreigner-tag {
    background-color: #e0f2f1;
    color: #00796b;
}

.tag.investment-tag {
    background-color: #fff8e1;
    color: #fbc02d;
}

.tag.osaka-tag {
    background-color: #fce4ec;
    color: #c2185b;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #ffffff;
}

.contact h3 {
    text-align: center;
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: start;
}

.contact-info h4 {
    font-size: 1.4rem;
    color: #007bff;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-list {
    list-style: none;
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-list li {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #343a40;
    padding-left: 20px;
    position: relative;
}

.contact-list li::before {
    content: "•";
    color: #007bff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
}

.form-group textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: #343a40;
    color: white;
    padding: 50px 0 20px;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-info p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-links ul li a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    nav ul li {
        margin: 0 10px;
    }
    
    nav ul li a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 20px;
        flex-direction: column;
    }

    nav ul li {
        margin: 5px 0;
    }

    nav ul li a {
        font-size: 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .company-info,
    .properties,
    .contact {
        padding: 50px 0;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Responsive adjustments for new sections */
    .company-grid,
    .service-grid,
    .management-grid,
    .minpaku-grid,
    .consulting-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .consulting h3 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 70px 0;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    .company-info h3,
    .news h3,
    .brokerage h3,
    .management h3,
    .minpaku h3,
    .consulting h3,
    .contact h3 {
        font-size: 1.5rem;
    }

    .company-details,
    .company-mission,
    .service-item,
    .management-item,
    .minpaku-item,
    .consulting-item,
    .contact-info,
    .contact-form {
        padding: 20px;
    }
}
