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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background-color: #fafafa;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ========================================
   Typography
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif JP', serif;
    font-weight: 500;
    line-height: 1.5;
}

/* ========================================
   Container & Layout
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* ========================================
   Header
======================================== */
.header {
    background: linear-gradient(135deg, #1a5f7a 0%, #2d7a96 100%);
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.site-title {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: opacity 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    opacity: 0.8;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   Hero Section
======================================== */
.hero {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, #1a5f7a 0%, #2d7a96 50%, #3d9bb5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.95;
    letter-spacing: 0.08em;
    line-height: 1.8;
}

/* ========================================
   Section Headers
======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1a5f7a;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.title-decoration {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1a5f7a, #3d9bb5);
    margin: 0 auto;
}

/* ========================================
   About Section
======================================== */
.about-section {
    background-color: #fff;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.05rem;
    line-height: 2;
    color: #444;
    margin-bottom: 30px;
    text-align: justify;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* ========================================
   Greeting Section
======================================== */
.greeting-section {
    background-color: #f8f9fa;
}

.greeting-content {
    max-width: 900px;
    margin: 0 auto;
}

.greeting-profile-wrapper {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: flex-start;
}

.greeting-profile-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
}

.greeting-text {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.greeting-text p {
    font-size: 1rem;
    line-height: 2;
    color: #444;
    margin-bottom: 25px;
    text-align: justify;
}

.greeting-text p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Organization Section
======================================== */
.organization-section {
    background-color: #fff;
}

.organization-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.organization-card {
    background-color: transparent;
    border-radius: 8px;
    padding: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

.organization-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 95, 122, 0.15);
}

.organization-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ========================================
   Activities Section
======================================== */
.activities-section {
    background-color: #f8f9fa;
}

.activities-intro {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.activities-intro p {
    font-size: 1.05rem;
    line-height: 2;
    color: #444;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.activity-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 35px 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 95, 122, 0.15);
}

.activity-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.activity-title {
    font-size: 1.2rem;
    color: #1a5f7a;
    margin-bottom: 15px;
    font-weight: 600;
}

.activity-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    text-align: left;
}

/* ========================================
   Contact Section
======================================== */
.contact-section {
    background-color: #fff;
}

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

.contact-intro {
    font-size: 1.05rem;
    line-height: 2;
    color: #444;
    margin-bottom: 50px;
}

.contact-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 40px;
    border: 2px solid #e9ecef;
}

.contact-item {
    margin-bottom: 0;
}

.contact-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1a5f7a;
    margin-bottom: 15px;
}

.contact-email {
    display: inline-block;
    font-size: 1.3rem;
    color: #2d7a96;
    font-weight: 600;
    padding: 10px 20px;
    border-bottom: 2px solid #3d9bb5;
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: #1a5f7a;
    border-bottom-color: #1a5f7a;
}

.contact-note {
    font-size: 0.85rem;
    color: #999;
    margin-top: 15px;
}

.contact-notice {
    background-color: #e8f4f8;
    border-left: 4px solid #3d9bb5;
    padding: 25px 30px;
    border-radius: 4px;
}

.contact-notice p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
}

/* ========================================
   Footer
======================================== */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 50px 0 30px;
}

.footer-content {
    text-align: center;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.footer-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 30px;
    line-height: 1.8;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.7;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   Responsive Styles
======================================== */

/* Tablet */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    /* Header */
    .header-content {
        flex-wrap: wrap;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .site-title .subtitle {
        font-size: 1rem;
    }

    .nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding-top: 20px;
    }

    .nav-list li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-link {
        display: block;
        padding: 15px 10px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Hero */
    .hero {
        height: 400px;
    }

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

    .hero-subtitle {
        font-size: 0.9rem;
    }

    /* Section Headers */
    .section-title {
        font-size: 1.7rem;
    }

    /* Activities Grid */
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Greeting */
    .greeting-profile-wrapper {
        padding: 25px;
    }

    .greeting-text {
        padding: 30px 25px;
    }

    /* Hide desktop line breaks */
    .sp-hide {
        display: none;
    }
}

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

    .section {
        padding: 50px 0;
    }

    .site-title {
        font-size: 1rem;
    }

    .hero {
        height: 350px;
    }

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

    .hero-subtitle {
        font-size: 0.8rem;
    }

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

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

    .about-text {
        font-size: 1rem;
    }

    .greeting-profile-wrapper {
        padding: 20px;
    }

    .greeting-text {
        padding: 25px 20px;
    }

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

    .organization-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .activity-card {
        padding: 30px 20px;
    }

    .activity-icon {
        font-size: 2.5rem;
    }

    .contact-info {
        padding: 30px 20px;
    }

    .contact-email {
        font-size: 1.1rem;
    }

    .contact-notice {
        padding: 20px;
    }

    .footer {
        padding: 40px 0 25px;
    }

    .footer-title {
        font-size: 1.1rem;
    }
}
