@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

:root {
    --primary-color: #00B900; /* LINE green */
    --secondary-color: #f0f0f0;
    --light-green-1: #e6f8e6;
    --light-green-2: #cff1cf;
    --light-gray: #f5f5f5;
    --text-color: #111;
    --light-text-color: #555;
    --white-color: #fff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--white-color);
    padding: 15px 0;
    box-shadow: 0 2px 4px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

nav.nav-links ul {
    list-style: none;
    display: flex;
}

nav.nav-links ul li {
    margin-left: 30px;
}

nav.nav-links ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.3s ease;
}

nav.nav-links ul li a:hover {
    color: var(--primary-color);
}

.nav-toggle-checkbox {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(5px);
}


.header-logo {
    height: 30px;
    vertical-align: middle;
}

/* === NEW STYLES FOR INDEX PAGE === */

.page-section {
    padding-top: 100px;
    padding-bottom: 100px;
}





.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    border: none;
    transition: transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn.btn-secondary:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--text-color);
}

.about-gaku-fun {
    background-color: var(--light-gray);
}

.about-gaku-fun .section-title {
    text-align: left;
}

.flex-section {
    display: flex;
    gap: 60px;
    align-items: center;
}

.flex-section > div {
    flex: 1;
}

.line-mockup {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    width: 100%;
    max-width: 300px; /* Adjust as needed */
    box-shadow: none;
    margin: 0 auto;
}

.line-mockup img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

.card {
    background-color: var(--white-color);
    border-radius: 16px;
    box-shadow: 0 6px 18px var(--shadow-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.card-image-container {
    position: relative;
    background-color: var(--light-gray);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-logo {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    object-fit: cover;
}

.card-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 22px;
    margin-bottom: 10px;
    color: #000000;
}

.card-description {
    font-size: 16px;
    color: var(--light-text-color);
    margin-bottom: 15px;
}

.card-meta {
    font-size: 14px;
    color: var(--light-text-color);
}

/* === STYLES FOR ORGANIZATION DETAIL PAGE (NEW) === */

.organization-main-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.organization-title-container {
    display: flex;
    justify-content: flex-start; /* Changed to left-align */
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 10px; /* Reduced margin */
}

.organization-vision .section-title {
    text-align: left;
}


.organization-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.organization-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.organization-content-section {
    padding-top: 40px;
    margin-top: 0;
    box-shadow: none;
}

.contact-info-section {
    background-color: transparent; /* Removed background */
    padding: 60px 0;
}

.contact-info-header {
    display: none; /* Hide the header */
}

.contact-info-header .organization-logo {
    margin-bottom: 15px;
}

.contact-org-type {
    font-size: 1rem;
    color: var(--light-text-color);
}

.contact-org-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.contact-info-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-info-list li:last-child {
    border-bottom: none;
}

.contact-info-list i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
    margin-right: 15px;
}

.contact-info-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.contact-info-list a:hover {
    text-decoration: underline;
}


/* === STYLES FOR OTHER PAGES === */

.project-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 30px;
    margin-bottom: 30px;
}

footer {
    background-color: var(--text-color);
    color: var(--white-color);
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .flex-section {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .about-gaku-fun .section-title {
        text-align: center;
    }

    .nav-toggle-label {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--white-color);
        width: 100%;
        box-shadow: 0 2px 4px var(--shadow-color);
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .nav-links ul li {
        margin: 10px 0;
    }

    .nav-toggle-checkbox:checked ~ .nav-links {
        display: block;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .page-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 16px;
    }

    /* Organization Detail Page Responsive */
    .container {
        padding: 0 15px;
    }

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

    .organization-main-title {
        font-size: 1.8rem;
    }

    .organization-logo {
        width: 50px;
        height: 50px;
    }
}

/* === STYLES FOR ORGANIZATION DETAIL PAGE CARDS === */

.detail-section-block {
    padding: 0;
    margin-bottom: 40px; /* Uniform margin */
}

.detail-section-block h3 {
    font-size: 1.8rem;
    font-weight: 700; /* Bold */
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: none; /* Remove border */
    position: relative;
}

.detail-section-block h3::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.detail-section-block p,
.detail-section-block li {
    line-height: 1.8; /* Adjust line-height */
}

.detail-section-block ul li {
    margin-bottom: 10px; /* Add margin to list items */
}

.highlights-card .card .card-image {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.highlights-card .card {
    box-shadow: none;
    overflow: visible;
}

.highlights-card .card:hover {
    transform: translateY(-2px);
}

.members-card ul {
    list-style: none;
    padding-left: 0;
}

.members-card li {
    font-size: 1.1rem;
    line-height: 2;
    border-bottom: none; /* Removed border */
    padding: 0; /* Removed padding */
}

.members-card li:last-child {
    border-bottom: none;
}

/* === STYLES FOR NEW PROJECT DETAIL PAGE === */

.project-detail-header-new {
    background-color: var(--white-color);
    padding: 15px 0;
    box-shadow: 0 2px 4px var(--shadow-color);
    text-align: center;
    position: relative;
}

.project-detail-header-new h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.project-detail-header-new .back-link {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.project-detail-main {
    padding: 40px 0 120px 0; /* Add padding at the bottom for the footer button */
}

.project-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

.project-intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 40px;
    text-align: center;
}

.intro-item {
    padding: 10px;
}

.intro-label {
    display: block;
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-bottom: 5px;
}

.intro-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.project-sponsorship-amount {
    background-color: var(--light-green-1);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    text-align: center;
    padding: 20px;
    margin-bottom: 40px;
}

.project-sponsorship-amount span {
    font-size: 1rem;
    color: var(--text-color);
}

.project-sponsorship-amount p {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 5px;
}

.project-section {
    margin-bottom: 40px;
}

.project-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.project-section p, .project-section li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--light-text-color);
}

.project-section ul, .project-section ol {
    padding-left: 20px;
}

.steps-list {
    list-style: none;
    padding-left: 0;
    counter-reset: step-counter;
}

.steps-list li {
    counter-increment: step-counter;
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    line-height: 1.6;
}

.steps-list li::before {
    content: "Step " counter(step-counter);
    background-color: var(--primary-color);
    color: var(--white-color);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 15px;
    flex-shrink: 0;
}

.project-detail-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    padding: 20px;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.08);
    z-index: 1000;
}

.project-detail-footer .apply-btn {
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    padding: 20px;
}

/* === STYLES FOR NEW INDEX PAGE SECTIONS === */

/* Features Section */
.features-section {
    background-color: var(--white-color);
}

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

.feature-card {
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-number {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.5;
}

.feature-illustration {
    height: 100px;
    margin: 20px auto 30px auto;
    border-radius: 8px;
}

.feature-illustration-1 {
    background: #d9f3d9;
    width: 120px;
    height: 100px;
    border-radius: 10px;
    position: relative;
}
.feature-illustration-1::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 10px;
    background: #b9e7b9;
    top: 20px;
    left: 10%;
    border-radius: 5px;
}
.feature-illustration-1::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 10px;
    background: #b9e7b9;
    top: 40px;
    left: 20%;
    border-radius: 5px;
}

.feature-illustration-2 {
    background: #d9f3d9;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: relative;
}
.feature-illustration-2::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 50%;
    background: #b9e7b9;
    top: 25%;
    left: 25%;
    border-radius: 50%;
}

.feature-illustration-3 {
    background: #d9f3d9;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    position: relative;
    transform: rotate(45deg);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.4; /* Adjust line height for better readability and potential two-line titles */
    min-height: 4.2rem; /* Ensure consistent height for titles, accommodating two lines */
}

.features-description {
    font-size: 1rem;
    color: var(--light-text-color);
}

/* Flow Section */
.flow-section {
    background-color: var(--light-gray);
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.flow-step {
    padding: 20px;
}

.flow-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.flow-title {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Coming Soon Section */
.coming-soon-section {
    text-align: center;
}

.coming-soon-content {
    background-color: var(--light-gray);
    padding: 80px 40px;
    border-radius: 12px;
}

.coming-soon-text {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}




/* === STYLES FOR CTA SECTION === */

.cta-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 80px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

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

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

.btn.btn-cta:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}


.btn-line {
    /* This is now a standard primary button */
}

.btn-line:hover {
    transform: translateY(-2px);
}

footer {
    background-color: var(--light-gray);
    color: var(--light-text-color);
    text-align: center;
    padding: 60px 20px;
    margin-top: 0;
}

/* CTA Button for Organization Detail Page */
.cta-button-container {
    text-align: center;
    padding: 40px 20px;
}



.cta-donate-button {

    padding: 18px 36px;

    font-size: 20px;

    width: 100%;

    max-width: 450px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    font-weight: 700;

}



/* Beta Button Style */

.btn-beta {

    background-color: var(--primary-color);

    color: var(--white-color);

    padding: 16px 32px;

    border-radius: 12px;

    text-decoration: none;

    font-weight: 700;

    font-size: 18px;

    border: none;

    transition: transform 0.2s ease;

    display: block;

    width: -moz-fit-content;

    width: fit-content;

    margin: 20px auto 0;

}



.btn-beta:hover {

    transform: translateY(-2px);

}

.no-bottom-padding {
    padding-bottom: 0 !important;
}

/* FV Background Section */
section.fv-background {
    position: relative;
    background-image: url('images/GAKUFUN_fv.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--white-color);
    min-height: 100vh;
    background-color: transparent;
}

/* Ensure about-gaku-fun background is transparent when fv-background is present */
.about-gaku-fun.fv-background {
    background-color: transparent;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

section.fv-background > .container {
    position: relative;
    z-index: 2;
}

/* Adjust title and paragraph color inside fv-background */
section.fv-background .section-title,
section.fv-background p {
    color: var(--white-color);
}

/* Make the button stand out more on the dark background */
section.fv-background .btn-beta {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--white-color);
}
