@charset "utf-8";

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f9f2;
    color: #333;
}

div {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
/*    border: 1px solid #bcd8b7;*/
}

/* ヘッダー */
header {
    text-align: center;
    background-color: #77b562;
    color: white;
    padding: 20px;
    margin-bottom: 20px;
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    margin-bottom: 10px;
}

header h2, header p {
    margin-bottom: 5px;
}

/* ナビゲーションメニュー */
nav ul {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid white;
}

/* トップ画像指定（必須） */
img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* 見出し */
h3 {
    background-color: #e2f0da;
    border-left: 4px solid #77b562;
    padding: 8px;
    margin-bottom: 20px;
}

h4 {
    border-bottom: 2px solid #77b562;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* 段落 */
p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* テーブルスタイル */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #bcd8b7;
    padding: 10px;
    text-align: center;
}

thead {
    background-color: #cfe8c8;
}

tfoot td {
    font-size: 0.85em;
    color: #a33;
    text-align: right;
    background-color: #f7fbf5;
}

/* colgroupのcolに幅指定（必須） */
.col1 { width: 35%; }
.col2 { width: 45%; }
.col3 { width: 20%; }

/* フッター */
footer {
    text-align: center;
    background-color: #77b562;
    color: white;
    padding: 15px;
    margin-top: 20px;
}

/* レスポンシブ対応（768px以下で適用） */
@media (max-width: 768px) {

    div {
        width: 95%;
        padding: 10px;
    }

    header h1 {
        font-size: 1.6em;
    }

    nav ul {
        flex-direction: column;
        gap: 8px;
    }

    nav ul li a {
        display: block;
        padding: 5px 0;
        border-bottom: none;
        border-radius: 5px;
        background-color: #6aa856;
    }

    /* テーブルは縦スクロール可能に */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* 画像の余白を少し調整 */
    img {
        margin-bottom: 15px;
    }

    /* 見出し調整 */
    h3, h4 {
        font-size: 1.1em;
    }

    /* フッターの文字を小さく */
    footer {
        font-size: 0.9em;
        padding: 10px;
    }
}
