@charset "utf-8";

/* 1. ページ全体の共通軸 */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #f9f9f9;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.8;
}

#wrap {
    display: flex;
    flex-direction: column;
    align-items: center; /* コンテンツとフッターを中央に並べる */
    width: 100%;
}

/* 2. メインコンテンツ（白い箱） */
#contents {
    width: 95%;
    max-width: 900px;
    margin: 40px auto 20px auto;
    padding: 40px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    box-sizing: border-box;
    text-align: left !important; /* 文章は左寄せ */
}

/* 見出し（1枚目の画像の色） */
.section_title, h2 {
    color: #4b2d7f !important;
    border-left: 6px solid #4b2d7f !important;
    font-size: 1.6rem;
    padding-left: 15px;
    margin: 0 0 25px 0;
}

h3 {
    background: #f4f2f8;
    border-left: 4px solid #4b2d7f;
    padding: 12px 15px;
    margin: 30px 0 15px 0;
    font-size: 1.1rem;
}

/* 箇条書きドットの維持 */
#contents ul {
    padding-left: 20px;
    margin: 1em 0;
    list-style: disc;
}
#contents ul li {
    text-align: left;
}

/* 3. テーブル（PC・SP共通で項目に色を付ける） */
.uneisha {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.uneisha th, .uneisha td {
    border: 1px solid #eee;
    padding: 15px;
}
.uneisha th {
    background-color: #f4f2f8 !important; /* 1枚目の画像の薄い紫 */
    width: 30%;
    text-align: left;
    color: #333;
}

/* 4. フッター（中央寄せ・横並びリンク） */
footer, .footer-container, #wrap > div:last-child {
    width: 95%;
    max-width: 900px;
    margin: 20px auto 60px auto;
    text-align: center !important;
}

/* リンクの色を紫に固定・横並び */
footer a, .footer-container a, #wrap > div:last-child a {
    color: #4b2d7f !important;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin: 5px 12px;
}

/* 5. レスポンシブ（スマホ設定） */
@media (max-width: 768px) {
    #contents {
        padding: 20px;
        font-size: 14.5px !important; /* フォントを少し小さく */
        line-height: 1.6;
    }
    .uneisha th, .uneisha td {
        display: block;
        width: 100%;
    }
    .uneisha th {
        border-bottom: none;
    }
}