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

:root {
    --primary-color: #234c9f;
    --primary-dark: #1a3a7a;
    --primary-light: #3d6bc5;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --shadow: rgba(35, 76, 159, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

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

/* Mobile-only line break */
.mobile-br {
    display: none;
}

/* Header */
.header {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px var(--shadow);
}

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

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.logo .npo-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    font-family: 'Noto Sans JP', sans-serif;
    font-style: normal;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Satisfy', cursive;
    font-style: italic;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: opacity 0.3s;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.nav a:hover {
    opacity: 0.7;
}

.nav-jp {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
}

.nav .cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav .cta-button:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 76, 159, 0.3);
}

/* Hero Section */
.hero {
    background-color: var(--white);
    padding: 0;
    text-align: center;
    position: relative;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px 0;
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease;
    position: relative;
}

.hero-image.mosaic-transition {
    animation: mosaicEffect 1s ease-in-out;
}

.hero-image.mosaic-transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 15px,
            rgba(128, 128, 128, 0.3) 15px,
            rgba(128, 128, 128, 0.3) 16px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 15px,
            rgba(128, 128, 128, 0.3) 15px,
            rgba(128, 128, 128, 0.3) 16px
        );
    border-radius: 10px;
    pointer-events: none;
    z-index: 1;
    animation: mosaicOverlay 1s ease-in-out;
}

@keyframes mosaicOverlay {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes mosaicEffect {
    0% {
        filter: blur(0px);
        opacity: 1;
    }
    25% {
        filter: blur(5px);
        opacity: 0.8;
    }
    50% {
        filter: blur(20px) brightness(1.5);
        opacity: 0.5;
    }
    75% {
        filter: blur(5px);
        opacity: 0.8;
    }
    100% {
        filter: blur(0px);
        opacity: 1;
    }
}

.hero-content {
    padding: 3rem 0 4rem;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.hero-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 3rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(35, 76, 159, 0.3);
}

/* Section Base */
.section {
    padding: 5rem 0;
}

.section:nth-child(even) {
    background-color: var(--background-light);
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 3rem 0;
    margin-top: 3rem;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.newsletter-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form .form-group {
    flex: 1;
    min-width: 250px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.3s;
}

.newsletter-form input[type="email"]:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-button {
    padding: 0.9rem 2.5rem;
    background-color: #e74c3c;
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: var(--white);
    color: #e74c3c;
}

.newsletter-message {
    margin-top: 1rem;
    font-size: 0.95rem;
    min-height: 1.5rem;
}

.newsletter-message.success {
    color: #90EE90;
    font-weight: 500;
}

.newsletter-message.error {
    color: #FFB6C1;
    font-weight: 500;
}

/* Topics Section */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.topic-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(35, 76, 159, 0.2);
}

.topic-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.topic-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.topic-card:hover .topic-thumbnail img {
    transform: scale(1.05);
}

.topic-content {
    padding: 1.5rem;
}

.topic-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.topic-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.topic-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Action Section */
.action {
    background-color: var(--white);
}

.activities-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.activity-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 10px 30px rgba(35, 76, 159, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(35, 76, 159, 0.2);
}


.activity-number {
    position: absolute;
    top: -20px;
    right: 30px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(35, 76, 159, 0.05);
    line-height: 1;
    z-index: 0;
}

.activity-image {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.activity-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s;
}

.activity-card:hover .activity-image img {
    transform: scale(1.08);
}

.activity-content {
    position: relative;
    z-index: 1;
}

.activity-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

.activity-card p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
}

/* Product Subsection */
.product-subsection {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 2px solid var(--primary-color);
}

.subsection-title {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    padding: 2rem;
}

.product-image-link {
    display: block;
    text-decoration: none;
}

.product-title-link {
    text-decoration: none;
    transition: opacity 0.3s;
}

.product-title-link:hover {
    opacity: 0.7;
}

.product-content h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.product-content p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* About Us Section */
.about-us {
    background-color: var(--background-light);
}

.about-intro {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 4rem;
    font-weight: 600;
    font-style: italic;
}

.organization-overview {
    max-width: 900px;
    margin: 5rem auto 0;
    background-color: var(--white);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 8px 20px rgba(35, 76, 159, 0.1);
}

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

.overview-item h4 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.overview-item p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
}

.document-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.document-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    grid-auto-rows: 1fr;
}

.members-grid .member-card:first-child {
    grid-column: 1 / -1;
    max-width: 300px;
    margin: 0 auto 2rem;
}

.member-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(35, 76, 159, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(35, 76, 159, 0.2);
}

.member-photo {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.member-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(35, 76, 159, 0.3), transparent);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.members-grid .member-card:first-child .member-photo img {
    object-position: 70% center;
    transform: scale(1.2) translateY(19px);
}

.members-grid .member-card:nth-child(2) .member-photo img {
    transform: scale(1.5) translateY(-20px);
}

.members-grid .member-card:nth-child(3) .member-photo img {
    object-fit: contain;
    object-position: center bottom;
    transform: translateY(5%);
}

.members-grid .member-card:nth-child(4) .member-photo img {
    object-position: 85% 35%;
}

.member-card:hover .member-photo img {
    transform: scale(1.1);
}

.members-grid .member-card:nth-child(2):hover .member-photo img {
    transform: scale(1.25);
}

.member-info {
    padding: 2rem 2.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.member-role {
    color: var(--primary-light);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-bio {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 0.95rem;
}

/* Supporters Section */
.supporters-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.supporters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.supporter-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s;
}

.supporter-card:hover {
    transform: translateY(-5px);
}

.supporter-logo {
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.supporter-card p {
    color: var(--text-dark);
    font-weight: 500;
}

.supporters-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Become Supporter Section */
.become-supporter {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.become-supporter .section-title {
    color: var(--white);
}

.become-supporter .section-title::after {
    background-color: var(--white);
}

.supporter-content {
    max-width: 1000px;
    margin: 0 auto;
}

.supporter-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.supporter-text > p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    text-align: center;
}

.support-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.plan-card {
    background-color: var(--white);
    color: var(--text-dark);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-5px);
}

.plan-card h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 0;
    text-align: center;
    padding: 0;
}

.plan-price {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--background-light);
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.plan-card li {
    padding: 0.7rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.plan-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.plan-link {
    text-align: center;
    margin-top: auto;
}

.plan-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    box-shadow: 0 4px 15px rgba(35, 76, 159, 0.3);
}

.plan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 76, 159, 0.4);
    background-color: var(--primary-dark);
}

.plan-button-red {
    background-color: #e74c3c;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.plan-button-red:hover {
    background-color: #c0392b;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.plan-button-white {
    background-color: #ffffff;
    color: #333333;
    border: 2px solid #ddd;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.plan-button-white:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Contact Form Section */
.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 8px 25px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.required {
    color: #e74c3c;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: underline;
}

.submit-button {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.submit-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

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

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

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    background-color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

/* Responsive Design */
@media (max-width: 968px) {
    .header .container {
        flex-wrap: wrap;
    }

    .nav {
        gap: 1.5rem;
    }

    .nav a {
        font-size: 1rem;
    }

    .logo-image {
        height: 50px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .logo .npo-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .mobile-br {
        display: inline;
    }

    .header {
        padding: 0.8rem 0;
    }

    .header .container {
        position: relative;
    }

    .logo-image {
        height: 45px;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .logo .npo-text {
        font-size: 0.75rem;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        background-color: var(--white);
        padding: 1rem 0;
        margin-top: 1rem;
        box-shadow: 0 4px 10px var(--shadow);
        border-radius: 8px;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .nav .cta-button {
        margin: 0.5rem 1.5rem;
        text-align: center;
        border-radius: 8px;
    }

    .hero-image-wrapper {
        padding: 1.5rem 15px 0;
    }

    .hero-content {
        padding: 2rem 0 3rem;
    }

    .hero-content h2 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-content p br {
        display: none;
    }

    .hero-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

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

    .topics-grid,
    .activities-grid,
    .support-plans,
    .supporters-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 2rem;
    }

    .product-card {
        max-width: 100%;
    }

    .supporter-text > p {
        font-size: 0.95rem;
    }

    .topic-thumbnail {
        height: 150px;
    }

    .topic-content {
        padding: 1rem;
    }

    .topic-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.7rem;
    }

    .topic-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .activities-grid {
        gap: 2.5rem;
    }

    .activity-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem;
    }

    .activity-number {
        font-size: 5rem;
        top: 10px;
        right: 20px;
    }

    .activity-image img {
        height: 200px;
    }

    .activity-card h3 {
        font-size: 1.3rem;
    }

    .plan-card {
        padding: 1.5rem;
    }

    .about-intro {
        font-size: 1.2rem;
        margin-bottom: 3rem;
    }

    .organization-overview {
        padding: 2rem;
        margin-top: 3rem;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .members-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
    }

    .members-grid .member-card:first-child {
        max-width: 100%;
        margin-bottom: 1.5rem;
        width: 100%;
    }

    .members-grid .member-card {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .member-photo {
        height: 240px;
    }

    /* 黒澤さん（2番目）のズームアウト */
    .members-grid .member-card:nth-child(2) .member-photo img {
        transform: scale(1.1) translateY(-20px);
    }

    .members-grid .member-card:nth-child(4) {
        max-width: 100%;
    }

    .members-grid .member-card:nth-child(4) .member-photo {
        height: 240px;
    }

    /* 古山さん（4番目）元に戻す */
    .members-grid .member-card:nth-child(4) .member-photo img {
        object-position: center center;
        transform: none;
    }

    .member-info {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .social-links {
        justify-content: center;
    }
}

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

    .logo {
        gap: 0.5rem;
    }

    .logo-image {
        height: 40px;
    }

    .logo h1 {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .logo .npo-text {
        font-size: 0.7rem;
    }

    .mobile-menu-toggle {
        font-size: 1.8rem;
        right: 15px;
    }

    .hero-image-wrapper {
        padding: 1rem 10px 0;
    }

    .hero-image {
        border-radius: 8px;
    }

    .hero-content {
        padding: 1.5rem 0 2.5rem;
    }

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

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .section {
        padding: 2.5rem 0;
    }

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

    .topic-thumbnail {
        height: 120px;
    }

    .topic-content {
        padding: 0.8rem;
    }

    .topic-date {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .topic-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .topic-card p {
        font-size: 0.85rem;
    }

    .activities-grid {
        gap: 2rem;
    }

    .activity-card {
        padding: 1.5rem;
        gap: 1rem;
    }

    .activity-number {
        font-size: 4rem;
        top: 5px;
        right: 15px;
    }

    .activity-image img {
        height: 180px;
    }

    .activity-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .activity-card p {
        font-size: 0.9rem;
    }

    .plan-card {
        padding: 1.2rem;
    }

    .about-intro {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }

    .organization-overview {
        padding: 1.5rem;
        margin-top: 2.5rem;
    }

    .overview-grid {
        gap: 1.5rem;
    }

    .overview-item h4 {
        font-size: 0.95rem;
    }

    .overview-item p {
        font-size: 0.9rem;
    }

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

    .member-photo {
        height: 200px;
    }

    .member-info {
        padding: 1.2rem;
    }

    .member-info h3 {
        font-size: 1.3rem;
    }

    .member-role {
        font-size: 0.9rem;
    }

    .member-bio {
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1.5rem 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .submit-button {
        font-size: 1rem;
    }

    .plan-price {
        font-size: 1.5rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }
}
