@charset "utf-8";
/* CSS Document */


.dl-section {
    margin-bottom: 60px;
}

.dl-section h2 {
        font-size: 24px;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #ddd;
}

    .dl-column-box {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5em; /* 間隔を少し広げました */
        padding: 20px 0;
        border-bottom: 1px solid #ccc; /* 色を少し濃く */
        align-items: center; /* 垂直方向中央揃え */
    }
    
    /* 最初の要素の上線はセクションの最初だけにするか、好みで調整 */
    .dl-column-box:first-of-type {
        border-top: 1px solid #ccc;        
    }

    /* 1. 左カラム：画像 (固定幅) */
    .dl-column-box .dl-doc-thum {
        width: 150px; 
        flex-shrink: 0;
    }
    
    .dl-column-box .dl-doc-thum figure {
        width: 100%;
        margin: 0;
        border: 1px solid #eee; /* 画像に枠線を追加 */
    }
    .dl-column-box .dl-doc-thum img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* 2. 中央カラム：テキスト (可変幅) */
    .dl-column-box > div:nth-child(2) {
        flex: 1;
        min-width: 0;
        text-align: left;
    }

    .dl-column-box .document-ttl {
        display: block;
        margin-bottom: 0.8em;
        font-size: 18px; /* 少し大きく */
        font-weight: bold;
        line-height: 1.4;
        color: #333;
    }
    
    .dl-column-box p {
        font-size: 14px !important;
        color: #666;
        line-height: 1.6;
        margin: 0;
    }

    /* 3. 右カラム：ボタン (固定幅) */
    .dl-column-box .dl-button {
        width: 240px; /* ボタンエリアを少し広げる */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .dl-column-box .dl-button a {
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            width: 100%;
            padding: 12px 0;
            border-radius: 4px;
            font-size: 14px;
            font-weight: bold;
            transition: opacity 0.3s;
        }
    .dl-column-box .dl-button a:hover {
        opacity: 0.8;
    }

    /* ▼▼▼ スマホ対応 (768px以下) ▼▼▼ */
    @media screen and (max-width: 768px) {
        .dl-column-box {
            display: block; /* フレックス解除 */
        }
        .dl-column-box .dl-doc-thum {
            width: 100%;
            text-align: center;
            margin-bottom: 15px;
        }
            
        .dl-column-box .dl-doc-thum figure {
            width: 150px;
            margin: 0 auto;
        }       
        
        .dl-column-box > div:nth-child(2) {
            margin-bottom: 15px;
        }

        .dl-column-box .dl-button {
            display: block;
            width: 100%; 
            margin-top: 10px;
            text-align: center;
        }
    }

/* ==================================================
   カテゴリーアンカーリンクのスタイル
   ================================================== */
   
/* アンカーリンクのエリア */
.material-anchor-nav {
    margin-bottom: 60px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

/* リスト自体のスタイルリセットと並び */
.material-anchor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.material-anchor-list li {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important; /* テーマの標準スタイル対策 */
    list-style: none!important;
}
.material-anchor-list li::before {
    content: none !important; /* テーマのアイコン対策 */
}

/* リンクボタンのスタイル */
.material-anchor-list a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    background: #fff!important;
    border: 1px solid #ccc!important;
    border-radius: 4px;
    text-decoration: none;
    color: #333!important;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    line-height: 1;
}

.material-anchor-list a:hover {
    background: #e60012; /* サイトのメインカラーに合わせて調整してください */
    border-color: #e60012;
    color: #fff;
    text-decoration:none!important;
}

/* 矢印アイコン（CSSで簡易的に作成する場合） */
.material-anchor-list a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-bottom: 3px;
}

/* ==================================================
   追加：セクションごとの調整（ヘッダー被り対策）
   ================================================== */

.dl-section {
    /* リンクで飛んだ時にヘッダーに隠れないように余白を確保 */
    scroll-margin-top: 140px; 
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .dl-section {
        scroll-margin-top: 100px; /* スマホのヘッダー高さに合わせて調整 */
    }
    
    .material-anchor-nav {
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .material-anchor-list a {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* ==================================================
   追加：資料種別ラベルのスタイル
   ================================================== */

/* 基準点となる親要素 */
.dl-column-box .dl-doc-thum figure {
    position: relative; /* ここを基準に配置します */
    /* overflow: hidden; 画像の角丸からはみ出さないように */
}

/* 左上に重ねるラベル */
.doc-type-label {
    position: absolute;
    top: -5px;
    left: -5px;
    z-index: 2; /* 画像より手前に表示 */
    
    /* 見た目の調整（お好みで変更してください） */
    background: #0056b3; /* 例：青色背景 */
    color: #fff;         /* 白文字 */
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    line-height: 1;
    border-bottom-right-radius: 4px; /* 右下だけ少し角丸にするとお洒落です */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* 軽く影をつけて視認性アップ */
}