/* Reset & Base Styles */
:root {
    --primary-color: #0044cc;
    /* Vibrant Blue */
    --secondary-color: #002a80;
    /* Darker Blue */
    --accent-color: #00ccff;
    /* Cyan Accent */
    --text-color: #333;
    --bg-color: #f9f9f9;
    --white: #ffffff;
    --sidebar-width: 50%;
    --font-main: 'Noto Sans JP', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar (Left Column) */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    /* background-color: var(--white); Removed to show background image */
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 100;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.sidebar-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.3);
    /* Thin black overlay */
    color: #fff;
    /* White text */
}

.sidebar-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
    z-index: 0;
}

.sidebar-bg-slide.active {
    opacity: 1;
    z-index: 1;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 2rem;
}

.logo img {
    width: 140px;
    height: auto;
    filter: brightness(0) invert(1);
    /* Make logo white */
}

.tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.tagline-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    /* justify-content: center;  If horizontal centering is needed */
}

/* [変更後] H1に直接スタイルを適用し、他の要素のスタイルと分離する */
.tagline-container h1 {
    /* H1が親要素.tagline-container内にあることを利用 */
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0;
    letter-spacing: 0.2em;
    /* H1に直接適用したい他のスタイルをここに記述 */
}

.sidebar-bottom {
    margin-top: auto;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.7rem;
    position: relative;
    display: inline-block;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav ul li a:hover::after {
    width: 100%;
}

/* Document image in right column */
.document-image-wrapper {
    margin: 2rem 0;
    text-align: center;
}

.document-image {
    width: 80%;
    /* Responsive width */
    max-width: 600px;
    margin: 0 auto;
    display: block;
    /* Ensure margin auto works */
    border-radius: 12px;
    box-shadow: none;
}

.cta-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    /* Center buttons horizontally */
}

.btn {
    display: block;
    text-align: center;
    padding: 1rem;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 260px;
    /* Limit maximum width */
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* Main Footer (Right Column) */
.main-footer {
    /* background-color: #fff; Removed background */
    color: #333;
    /* Dark text */
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    /* Stacked layout */
    gap: 2rem;
    /* Space between links and companies */
}

.footer-links {
    margin-bottom: 2rem;
    /* Space between links and companies */
    list-style: none;
    padding: 0;
    text-align: center;
    /* Center align */
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links li a {
    font-size: 0.8rem;
    color: #333;
    /* Dark text for links */
    font-weight: normal;
    text-decoration: none;
}

.footer-links li a:hover {
    text-decoration: underline;
}

.footer-companies {
    text-align: center;
    /* Center align */
}

.footer-companies p {
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

.footer-companies p a {
    color: #666;
    /* Slightly lighter dark text for companies */
    text-decoration: none;
}

.footer-companies p a:hover {
    text-decoration: underline;
}

.copyright {
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2rem;
    width: 100%;
}

/* Right Column Top Section */
.right-top-section {
    padding: 0 0 4rem 0;
    /* Remove top padding */
    text-align: center;
}

.top-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: none;
    /* Remove shadow */
}

/* Main Content (Right Column) */
.main-content {
    width: 50%;
    /* Explicit width */
    margin-left: 50%;
    /* Push to right */
    padding: 5% 5% 4rem 5%;
    /* Top padding 5% to match sides */
    background-color: #ffffff;
    /* Solid white background */
    position: relative;
    /* Ensure z-index works if needed */
}

.section {
    margin-bottom: 8rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    line-height: 1.4;
    color: var(--secondary-color);
}

/* Problems Section */
.problem-list {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.problem-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.problem-item:last-child {
    margin-bottom: 0;
}

.check-icon {
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* About Section */
.lead-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.description-text {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #555;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-image {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.grid-image:nth-child(2) {
    margin-top: 4rem;
    /* Staggered effect */
}

/* Points Section */
.point-item {
    display: flex;
    align-items: center;
    margin-bottom: 6rem;
    gap: 3rem;
}

.point-item.reverse {
    flex-direction: row-reverse;
}

.point-text {
    flex: 1;
}

.point-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.point-title span {
    font-size: 1rem;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.point-image-wrapper {
    flex: 1;
    position: relative;
}

.point-image {
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category:last-child {
    margin-bottom: 0;
}

.faq-category-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    position: relative;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.q-label {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-right: 1rem;
    line-height: 1;
}

.faq-toggle {
    margin-left: auto;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-question.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-out;
}

.faq-answer-inner {
    padding-bottom: 1.5rem;
    padding-left: 2.5rem;
    /* Align with text */
    display: flex;
    align-items: flex-start;
}

.a-label {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-right: 1rem;
    line-height: 1.4;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    flex: 1;
}

/* CTA Bottom */
.cta-section-bottom {
    text-align: center;
    /* background-color: var(--white); Removed background */
    padding: 4rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    /* Reduced from default 8rem to narrow space before footer */
}

.cta-container-bottom {
    display: flex;
    flex-direction: column;
    /* Stack vertically like sidebar */
    justify-content: center;
    gap: 1rem;
    /* Match sidebar gap */
    align-items: center;
    /* Center items */
    margin-top: 2rem;
}

.btn-large {
    min-width: 200px;
    padding: 1.2rem;
    font-size: 1.1rem;
}


/* Column Section */
.column-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.column-item {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    transition: opacity 0.3s ease;
}

.column-item:hover {
    opacity: 1;
    /* Handle opacity via specific hover effects if needed, or keep default link hover */
}

.column-thumb-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 16 / 9;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.column-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
    /* Smooth return on mouse leave */
    will-change: transform;
}

.column-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.column-item:hover .column-title {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: 100vh;
        /* Full height for first view */
        position: relative;
        /* Reset to relative on mobile */
        border-right: none;
        border-bottom: 1px solid #eee;
        background-color: #333;
        /* Fallback bg for mobile if image fails or just to be safe */
    }

    .sidebar-inner {
        padding: 2rem;
    }

    .hero-image-container {
        display: none;
        /* Hide hero image in sidebar on mobile to save space */
    }

    .column-grid {
        grid-template-columns: 1fr;
        /* Stack columns on mobile */
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        /* Reset margin */
        padding: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .point-item,
    .point-item.reverse {
        flex-direction: column;
    }

    .grid-image:nth-child(2) {
        margin-top: 0;
    }

    .faq-answer-inner {
        padding-left: 0;
    }

    /* Disable Parallax on Mobile to prevent overlap */
    .parallax-element {
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .section {
        margin-bottom: 4rem;
        /* Reduced margin */
    }

    .right-top-section {
        padding: 0 0 2rem 0;
        /* Reduced padding */
    }

    .point-item {
        margin-bottom: 3rem;
        /* Reduced margin */
        gap: 2rem;
        /* Reduced gap */
    }

    .section-title {
        font-size: 1.8rem;
    }

    .lead-text {
        font-size: 1.2rem;
    }

    .faq-question {
        font-size: 1rem;
    }

    .q-label,
    .a-label {
        font-size: 1.1rem;
        margin-right: 0.5rem;
    }

    .sidebar-inner {
        padding: 1.5rem;
    }

    .logo img {
        width: 120px;
    }

    .sidebar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav ul {
        gap: 1rem;
        flex-wrap: nowrap;
    }

    .nav ul li a {
        font-size: 0.7rem;
        white-space: nowrap;
    }
}