/* ==================================== */
/* 1. PC (Desktop) Layout - 基本設定 */
/* ==================================== */

/* 全体のリセットと基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

body {
    line-height: 1.8; /* 読みやすさのため行間を広めに */
    color: #333;
    background-color: #ffffff;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: #007bff;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* ヘッダーのスタイル調整 (インラインスタイルを上書き) */
header {
    padding: 20px 5% ;
    background-color: #84c546 ;
    border-bottom: 1px solid #eee ;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header div{
    display: flex;
}

header div p {
    margin:auto 0;
    text-align: left;
}

.logo{
    width: 80px;
    height: auto;
    aspect-ratio: auto/auto;
}


header p {
    margin:0;
    text-align: left;
}

/* メインコンテンツエリア */
main {
    margin: 50px auto ;
    padding: 20px 5% ;
    max-width: 900px ;
}

/* タイトルと見出し */
h1 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 30px;
    border-bottom: 2px solid #007bff ; /* メインカラーを使用 */
    padding-bottom: 10px ;
}

h2 {
    font-size: 1.6em;
    color: #007bff;
    margin-top: 40px;
    margin-bottom: 15px;
    border-left: 5px solid #007bff;
    padding-left: 10px;
}

h3 {
    font-size: 1.2em;
    color: #555;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* 本文 */
main p {
    margin-bottom: 1.5em;
    text-align: justify;
}

/* リスト（利用目的） */
main ul {
    list-style: disc;
    padding-left: 40px;
    margin-bottom: 25px;
}

main ul li {
    margin-bottom: 8px;
}

/* お問い合わせ窓口のボックス */
main div[style*="border: 1px solid #ccc"] {
    border: 1px solid #ccc ;
    padding: 20px ;
    margin-top: 25px ;
    background-color: #f0f8ff ; /* 背景色を薄い青に */
    border-radius: 6px;
}

main div[style*="border: 1px solid #ccc"] p {
    margin-bottom: 5px;
    line-height: 1.5;
}

main strong {
    color: #333;
    font-weight: bold;
}

/* 制定日 */
main p[style*="text-align: right"] {
    margin-top: 50px ;
    font-size: 0.9em;
    color: #666;
}

/* フッター */
footer {
    padding: 20px 5% ;
    background-color: #333 ;
    color: white ;
    text-align: center ;
    font-size: 0.85em;
    margin-top: 40px;
}


/* ==================================== */
/* 2. スマートフォン (Mobile) Layout */
/* ==================================== */
@media (max-width: 600px) {
    
    body {
        font-size: 15px;
    }
    
    /* ヘッダー */
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    header p:first-child {
        margin-bottom: 10px;
    }
    header a {
        font-size: 0.9em;
    }

    /* メインコンテンツエリア */
    main {
        margin: 30px auto ;
        padding: 15px ;
    }

    /* タイトルと見出し */
    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
        margin-top: 30px;
    }
    
    h3 {
        font-size: 1.1em;
    }
    
    /* リスト（利用目的） */
    main ul {
        padding-left: 25px;
    }
    
    /* お問い合わせ窓口のボックス */
    main div[style*="border: 1px solid #ccc"] {
        padding: 15px ;
    }
    
    /* 制定日 */
    main p[style*="text-align: right"] {
        margin-top: 30px ;
        text-align: left ; /* スマホでは左寄せで読みやすく */
    }

}