@charset "UTF-8";

/* 全体のリセットと基本設定 */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f5f7;
    margin: 0;
    padding: 0;
}

/* メインコンテンツ枠 */
.container {
    max-width: 800px;
    margin: 40px auto 50px;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* --- メインロゴデザイン --- */
.main-logo-container {
    text-align: center;
    margin-bottom: 30px; /* ロゴとタイトルの間の余白 */
}

.main-logo {
    height: 90px; /* ロゴサイズ */
    width: auto;
    max-width: 100%; /* スマホなどではみ出さないための設定 */
}

/* --- パンくずリスト（下層ページ用） --- */
.breadcrumb {
    margin: -10px 0 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eeeeee;
    font-size: 0.85rem;
    color: #777;
}

.breadcrumb a {
    color: #0056b3;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 6px;
    color: #aaa;
}

/* --- 見出しデザイン --- */

/* h1：TOPページ用（左寄せ・落ち着いたグレー） */
h1 {
    font-size: 1.6rem;
    color: #4a4a4a; 
    margin-top: 0;
}

/* 下層ページ専用：h1（中央揃えでタイトル感を明確化） */
.page-title {
    text-align: center;
    font-size: 1.6rem;
    color: #333333;
    margin: 15px 0 35px;
    padding-bottom: 15px;
    border-bottom: 2px solid #5b7991; /* 落ち着いたブルーグレーの下線 */
    line-height: 1.4;
}

/* 説明文の下に線を引く */
.intro-text {
    border-bottom: 2px solid #cccccc;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* h2：背景色をつけてブロック感を出す汎用デザイン */
h2 {
    font-size: 1.2rem;
    color: #333;
    margin-top: 40px;
    margin-bottom: 15px;
    background-color: #f5f7fa;
    border-left: 5px solid #888888;
    padding: 12px 15px;
}

/* h3：シンプルな下線デザイン */
h3 {
    font-size: 1.1rem;
    color: #444;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #bbbbbb;
    padding-bottom: 8px;
}

.date {
    text-align: right;
    color: #666;
    font-size: 0.95rem;
}

.content p {
    margin-bottom: 1.2em;
    font-size: 1.05rem;
}

/* --- 赤枠・赤字のデザイン --- */
.red-box {
    border: 2px solid #e60000;
    padding: 18px 20px;
    margin: 25px 0;
    background-color: #fff9f9;
    border-radius: 4px;
}

.red-box p {
    color: #e60000;
    font-weight: bold;
    margin: 0; /* p要素の標準上マージンをリセットして上下の余白を均等化 */
    font-size: 1.05rem;
    line-height: 1.7;
}

/* 赤枠内のリンク（下線付き赤文字） */
.red-box-link {
    color: #e60000;
    text-decoration: underline;
}

.red-box-link:hover {
    color: #b30000;
}

/* 外部リンクデザイン */
.link-item {
    margin: 20px 0;
    font-size: 1.05rem;
}

.link-item a {
    color: #0056b3;
    text-decoration: underline;
}

.link-item a:hover {
    color: #003679;
    text-decoration: none;
}

/* --- テーブル（表）デザイン --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 30px;
}

table th, table td {
    border: 1px solid #dddddd;
    padding: 12px 15px;
    text-align: left;
    font-size: 1rem;
}

/* テーブルのヘッダー部分 */
table th {
    background-color: #f0f0f0;
    color: #333;
    font-weight: bold;
    width: 30%; /* 項目列の幅 */
}

/* テーブルの交互の行の背景色 */
table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* --- フッター設定（独立したエリアとしてデザイン） --- */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    padding: 35px 20px 40px;
    color: #777;
    font-size: 0.85rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 25px;
}

.footer-links li a {
    color: #444;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links li a:hover {
    text-decoration: underline;
    color: #0056b3;
}

.footer p {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
}

/* 重要なお知らせ用の赤字指定クラス */
.text-red {
    color: #e60000;
    font-weight: bold;
}

/* スマートフォン向けのレスポンシブ調整 */
@media screen and (max-width: 768px) {
    .container {
        margin: 20px 15px 35px;
        padding: 25px;
    }
    
    .main-logo {
         height: 70px; /* スマホ表示時 */
    }

    h1, .page-title {
        font-size: 1.3rem;
    }

    table th, table td {
        padding: 10px;
        font-size: 0.9rem;
    }

    .red-box {
        padding: 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}