@charset "UTF-8";

/* =========================================
   archive.whr.jp/projects/info-sec-edu/materials/ 専用スタイル
   ========================================= */

.wrap {
    background-color: #fff;
}

.page-intro {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ccc;
}

.report-content p {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 1.5em;
}

/* =========================================
   資料アーカイブリスト用スタイル
   ========================================= */
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.archive-item {
    display: block;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 25px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.archive-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    text-decoration: none;
    background: #ffffff; /* ホバー時に少し明るく */
}

/* ヘッダー部分（日付とバッジを横並びに） */
.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.archive-date {
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

/* PDFバッジのスタイル */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.pdf-badge {
    background-color: #dc3545; /* PDFらしい落ち着いた赤色 */
    color: #fff;
    border: 1px solid #c82333;
}

.archive-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #0056b3; /* 落ち着いたブルー */
    line-height: 1.4;
}

/* 詳細リスト（対象・場所など） */
.archive-details {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.archive-details li {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 8px;
    display: flex; /* 項目名と内容を揃える */
}

.archive-details li:last-child {
    margin-bottom: 0;
}

.archive-details li strong {
    color: #333;
    min-width: 3.5em; /* 「対象:」「場所:」などの幅を固定して揃える */
    margin-right: 8px;
    flex-shrink: 0;
}

/* =========================================
   関連リンク・ボタン用スタイル
   ========================================= */
.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.document-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #e9ecef;
    text-decoration: none;
    color: #0056b3;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.document-card:hover {
    background-color: #e9ecef;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-decoration: none;
}

/* =========================================
   ページ内リンク・ナビゲーション用スタイル
   ========================================= */

/* 年度ナビゲーション（目次ボタン） */
.year-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.year-nav a {
    display: inline-block;
    padding: 8px 20px;
    background-color: #f8f9fa;
    border: 1px solid #0056b3;
    border-radius: 20px; /* 角丸のピル（薬）型ボタン */
    color: #0056b3;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.year-nav a:hover {
    background-color: #0056b3;
    color: #ffffff;
    text-decoration: none;
}

/* 一番上に戻るリンク */
.back-to-top-wrapper {
    text-align: right;
    margin-top: -20px; /* archive-listの下余白とバランスをとる */
    margin-bottom: 50px;
}

.back-to-top-link {
    display: inline-block;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    transition: color 0.2s ease;
}

.back-to-top-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* =========================================
   注意事項（アラートボックス）用スタイル
   ========================================= */
.attention-box {
    background-color: #fffafb; /* ほんのり薄い赤（威圧感を与えない程度） */
    border: 1px solid #f5c2c7;
    border-left: 5px solid #dc3545; /* 左側に目立つ赤いライン */
    padding: 20px 25px;
    margin-bottom: 35px;
    border-radius: 4px;
}

.attention-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #dc3545;
    font-weight: bold;
}

.attention-list {
    margin: 0;
    padding-left: 20px;
    color: #444;
}

.attention-list li {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.attention-list li:last-child {
    margin-bottom: 0;
}

.attention-list li strong {
    color: #333;
}

/* スマホ向け調整 */
@media (max-width: 768px) {
    .attention-box {
        padding: 15px;
    }
    .attention-title {
        font-size: 16px;
    }
    .attention-list li {
        font-size: 14px;
    }
}

/* =========================================
   レスポンシブ調整 (スマートフォン向け)
   ========================================= */
@media (max-width: 768px) {
    .archive-item {
        padding: 20px 15px;
    }
    
    .archive-title {
        font-size: 18px;
    }
    
    .archive-details li {
        font-size: 14px;
        flex-direction: column; /* スマホでは項目名と内容を縦並びに */
    }

    .archive-details li strong {
        margin-bottom: 2px;
    }
}