/* ====================== 共通スタイル ====================== */
:root {
    --primary: #000000;
    --accent: #2E74B5;
}

body {
    font-family: "Hiragino Sans", "Meiryo", "Yu Gothic", sans-serif;
    margin: 0;
    line-height: 1.7;
    color: #333;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================== ヘッダー ====================== */
header {
    background: #000;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

nav a {
    color: white;
    padding: 18px 20px;
    text-decoration: none;
    display: block;
    font-size: 15px;
}

nav a:hover,
nav a.active {
    background: white;
    color: #000;
}

/* ====================== ヒーロー画像 ====================== */
.hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* ====================== フッター ====================== */
footer {
    background: #000;
    color: #fff;
    padding: 45px 20px 35px;
    text-align: center;
    font-family: Arial, sans-serif;
}

footer .footer-inner {
    max-width: 970px;
    margin: 0 auto;
}

footer .logo {
    margin-bottom: 25px;
}

footer .logo img {
    height: 65px;
}

footer .social {
    margin-bottom: 28px;
}

footer .social a {
    margin: 0 12px;
    display: inline-block;
}

footer .social img {
    width: 48px;
    height: 48px;
    vertical-align: middle;
}

footer .footer-links {
    margin-bottom: 22px;
    font-size: 15px;
}

footer .footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 18px;
}

footer .footer-links a:hover {
    text-decoration: underline;
}

footer .copyright {
    font-size: 13px;
    opacity: 0.75;
}

/* ====================== お知らせセクション ====================== */
.news-section {
    margin: 40px 0;
}

.news-section h3 {
    font-size: 1.35em;
    margin-bottom: 25px;
    color: #222;
}

.news-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.news-item {
    display: block;
    padding: 18px 22px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: #fff;
    border-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
}

.news-item strong {
    font-size: 1.1em;
    color: #000;
}

.news-item span {
    color: #555;
    font-size: 0.98em;
}

/* ====================== テーブル・セクション ====================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #fff;
}

th, td {
    border: 1px solid #ccc;
    padding: 12px 15px;
    vertical-align: top;
}

th {
    background: #f0f0f0;
    width: 28%;
    text-align: left;
    font-weight: bold;
}

.section-title {
    margin-top: 45px;
    font-size: 1.4em;
    color: #222;
    border-left: 6px solid #000;
    padding-left: 12px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    nav ul { 
        flex-direction: column; 
    }
    footer .social img { 
        width: 42px; 
        height: 42px; 
    }
}

/* ====================== スマホ専用 強化版 ====================== */
@media (max-width: 768px) {

    /* ヘッダー改善 */
 nav ul {
        flex-direction: row;
        flex-wrap: nowrap;           /* 絶対に折り返さない */
        justify-content: center;
        gap: 3px;
        padding: 8px 5px;
        overflow-x: auto;            /* 少しはみ出たら横スクロール */
    }

    nav a {
        padding: 10px 8px !important;
        font-size: 12.8px !important;   /* 少し小さく */
        min-width: 65px;
        text-align: center;
        white-space: nowrap;
        border-radius: 5px;
        background: rgba(255,255,255,0.1);
        flex-shrink: 0;                 /* 縮小を防ぐ */
    }

    nav a:hover,
    nav a.active {
        background: white !important;
        color: #000 !important;
    }
}

    footer .logo img {
        height: 55px;
        margin-bottom: 20px;
    }

    footer .social {
        margin-bottom: 22px;
    }

    footer .social a {
        margin: 0 7px;
    }

    footer .social img {
        width: 42px;
        height: 42px;
    }

footer .footer-links {
        display: flex;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 12px;
        margin-bottom: 20px;
    }

    footer .footer-links a {
        margin: 0;
        padding: 6px 10px;
        font-size: 13.5px;
        white-space: nowrap;
    }

    .copyright {
        font-size: 12.5px;
        line-height: 1.6;
    }

    /* ヒーロー画像 */
    .hero img {
        max-height: 170px;
        object-fit: cover;
    }


/* H2を少し大きく + 見やすく */
h2 {
    font-size: 30px;        /* 標準より少し大きめ（調整可能） */
    font-weight: 700;       /* 太字 */
    color: #333;            /* 文字色（サイトに合わせて変更） */
    margin-top: 40px;       /* 上の余白 */
    margin-bottom: 20px;    /* 下の余白 */

}

/* スマホでも見やすく */
@media (max-width: 768px) {
    h2 {
        font-size: 24px;
    }
}