:root {
    --primary-color: #4CAF50;
    --secondary-color: #8BC34A;
    --accent-color: #FF9800;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
}

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

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

header {
    background-color: var(--white);
    color: var(--text-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

/* ハンバーガーメニューボタン */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* ハンバーガーメニューが開いた時のアニメーション */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

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

nav ul li {
    margin-left: 2rem;
}

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

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

.main-content {
    max-width: 85%;
    margin: 0 auto;
    padding-top: 70px;
}

section {
    padding: 3rem 0;
    scroll-margin-top: 5rem;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

.hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3)), url('images/header2.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
}

.card-logo {
    height: 1.2em;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    margin: 0 0.2em;
}

.news-updates {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.news-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-weight: bold;
    color: var(--accent-color);
}

.content-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.content-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
    margin-right: 1rem;
    vertical-align: middle;
}

.activities-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.activity-item {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.activity-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.activity-content {
    padding: 1.5rem;
}

.mission-item {
    margin-bottom: 2rem;
}

.sns-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sns-list-item {
    background-color: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sns-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.sns-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sns-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sns-logo2 {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.sns-logo2 img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sns-link {
    color: var(--primary-color);
    text-decoration: none;
}

.sns-link:hover {
    text-decoration: underline;
}

.sns-content {
    padding-left: 56px;
}

/* ブログ記事用のスタイル */
.article-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 2px solid var(--light-bg);
    margin-bottom: 2rem;
}

.article-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
}

.article-date {
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 1rem;
}

.article-author {
    color: #666;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

.article-content ul, .article-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content code {
    background-color: var(--light-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.article-content pre {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-bg);
}

.tag {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-decoration: none;
}

.tag:hover {
    background-color: var(--primary-color);
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

/* PDFダウンロードボタンのスタイル */
.download-section {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.download-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.download-btn {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.download-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.download-icon {
    font-size: 3rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.download-text {
    flex-grow: 1;
}

.download-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.download-subtitle {
    font-size: 0.9rem;
    color: #666;
}

.download-btn:hover .download-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.download-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* レスポンシブデザイン - タブレット・スマホ対応 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    nav.active {
        max-height: 400px;
    }
    
    nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    nav ul li {
        margin: 0;
        padding: 0.8rem 2rem;
        border-bottom: 1px solid #eee;
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav ul li a {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .card-logo {
        height: 1em;
    }
    
    .hero p {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .main-content {
        max-width: 95%;
        padding-top: 60px;
    }
    
    .content-container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .activities-container {
        grid-template-columns: 1fr;
    }
    
    .sns-content {
        padding-left: 0;
        margin-top: 0.5rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-content {
        padding: 1rem;
    }

    .download-buttons {
        grid-template-columns: 1fr;
    }

    .download-btn {
        padding: 1.2rem;
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .card-logo {
        height: 0.9em;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
}
