/* ========== 基本スタイル ========== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.7;
}
.container {
    max-width: 960px;
    margin: 20px auto;
    padding: 25px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
}
h2 {
    border-bottom: 2px solid #005a9c;
    padding-bottom: 8px;
    color: #005a9c;
}
h3 {
    color: #333;
    border-left: 5px solid #005a9c;
    padding-left: 10px;
    margin-top: 0;
}
a {
    color: #005a9c;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ========== ヘッダーデザイン (共通) ========== */
.hero-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('../images/imgp0919.jpg');
    background-size: cover;
    background-position: center center;
    color: white;
    padding: 20px;
    border-bottom: 5px solid #005a9c;
}
.header-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    max-width: 960px;
    margin: 0 auto;
}
.logo-area {
    font-weight: bold;
}
.logo-area .npo-name {
    font-size: 1.2em;
    display: block;
}
.logo-area .certification {
    font-size: 0.9em;
    background: #eee;
    color: #333;
    padding: 2px 6px;
    border-radius: 4px;
}
.hero-header h1 {
    font-size: 2.2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin: 10px 0;
    text-align: right;
    flex-grow: 1; 
}

/* ========== ナビゲーション (共通) ========== */
nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style-type: none;
    padding: 0;
    background: rgba(0, 58, 102, 0.85); 
    margin: 0 auto;
    border-radius: 4px;
    max-width: 960px;
}
nav li a {
    display: block;
    padding: 14px 18px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s;
}
nav li a:hover {
    background: #005a9c;
}
nav li a.active {
    background-color: #f0f0f0;
    color: #004a80;
    border-radius: 4px 4px 0 0;
}

/* ========== トップページ専用：2カラムグリッド ========== */
.main-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}
.news-list {
    padding: 0;
    list-style: none;
}
.news-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
}
.news-list .date {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
.news-list p {
    margin: 0;
}
.sidebar .sidebar-widget {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.sidebar-widget img {
    max-width: 100%;
    height: auto;
}
.link-banners {
    list-style: none;
    padding: 0;
    margin: 0;
}
.link-banners li {
    margin-bottom: 10px;
}
.link-banners img {
    border: 1px solid #ddd;
    transition: opacity 0.3s;
    display: block;
}
.link-banners img:hover {
    opacity: 0.7;
}

/* ========== フッター (共通) ========== */
footer {
    text-align: center;
    padding: 20px;
    background-color: #e9e9e9;
    color: #555;
    font-size: 0.9em;
    border-top: 1px solid #ccc;
    margin-top: 30px;
}
footer p {
    margin: 5px 0;
}

/* ========== レスポンシブ対応 ========== */
@media (max-width: 768px) {
    .header-top, .hero-header h1 {
        text-align: center;
        justify-content: center;
    }
    .hero-header h1 {
        font-size: 1.5em;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    nav li {
        width: 100%;
        text-align: center;
    }
    nav li a {
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    .main-content-grid {
        grid-template-columns: 1fr;
    }
}