/* ===========================
   ヘッドライン（モバイルファースト）
   =========================== */
:root {
    --s1: .25rem;
    --s2: .5rem;
    --s3: .75rem;
    --s4: 1rem;
    --s5: 1.5rem;
    --s6: 2rem;
    --card: #fff;
    --bg: #f7f7f9;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --primary: #0ea5e9;
    --primary-weak: #e0f2fe;
    --radius: 12px;
    --shadow: 0 10px 25px rgba(0, 0, 0, .06);
    --ff: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "游ゴシック体", YuGothic, system-ui, -apple-system, sans-serif;
}

/* ul ベース */
.body>ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--s3);
}

/* 各ニュース行（モバイル：日付+タイトルの2カラム） */
.body>ul>li {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: var(--s3);
    padding: .8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in oklab, var(--card) 92%, var(--primary-weak));
    transition: border-color .2s ease, background .2s ease, transform .05s ease;
    will-change: transform;
}

/* 日付 */
.body>ul>li>span {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    align-self: center;
}

/* タイトル（p > a） */
.body>ul>li>p {
    margin: 0;
    min-width: 0;
}

.body>ul>li>p>a {
    color: var(--text);
    text-decoration: none;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* モバイルは1行省略 */
    line-height: 1.6;
    border-bottom: 1px dashed transparent;
    transition: color .2s ease, border-color .2s ease;
}

.body>ul>li:hover {
    border-color: color-mix(in oklab, var(--border), var(--primary) 25%);
    background: color-mix(in oklab, var(--primary-weak) 85%, var(--card));
}

.body>ul>li:active {
    transform: translateY(1px);
}

.body>ul>li>p>a:hover {
    color: var(--primary);
    border-color: currentColor;
}

/* “すべて表示” ボタン */
.body>p.more {
    margin: var(--s5) 0 0;
    text-align: right;
}

.body>p.more>a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .95rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--card) 90%, var(--primary-weak));
    color: var(--text);
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .05s ease;
    will-change: transform;
}

.body>p.more>a::after {
    content: "→";
}

.body>p.more>a:hover {
    background: color-mix(in oklab, var(--primary-weak) 85%, var(--card));
    border-color: color-mix(in oklab, var(--border), var(--primary) 25%);
}

.body>p.more>a:active {
    transform: translateY(1px);
}

/* ===========================
   ブレークポイント
   =========================== */

/* 600px~：タイトルは2行まで表示（-webkit-line-clamp） */
@media (min-width:600px) {
    .body>ul {
        gap: var(--s4);
    }

    .body>ul>li>p>a {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        white-space: normal;
        /* 複数行省略 */
    }
}

/* 900px~：カードを横並びグリッドに（最新3〜4件をタイル表示に最適） */
@media (min-width:900px) {
    .body>ul {
        gap: var(--s4);
    }

    /* 横カード化：日付は上、タイトルは下（縦積み） */
    .body>ul>li {
        grid-template-columns: 1fr;
        gap: .4rem;
        padding: 1rem 1.1rem 1.15rem;
        height: 100%;
    }

    .body>ul>li>span {
        align-self: start;
    }

    .body>ul>li>p>a {
        -webkit-line-clamp: 3;
    }

    /* もっと見るは右寄せのままOK */
}
/* ===========================
   ブランド用トークン
   =========================== */
:root {
    --primary: #245FE5;
    /* メインカラー */
    --button: #EA7317;
    /* ボタン系 */
    --card: #fff;
    --text: #1C2434;
    --muted: #6B7280;
    --border: #E6E8EE;
    --shadow: 0 8px 24px rgba(16, 24, 40, .06);
    --radius: 12px;
    --s2: .5rem;
    --s3: .75rem;
    --s4: 1rem;
}

/* ===========================
   インライン属性の上書き
   =========================== */
.list_table .anken_list img[width],
.list_table .anken_list img[height] {
    width: 100% !important;
    height: auto !important;
}

.list_table .anken_list [style] {
    line-height: 1.6 !important;
}

/* ===========================
   リストレイアウト
   =========================== */
.list_table .anken_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--s3);
    grid-template-columns: 1fr;
    /* デフォルトは1列（スマホやサイドバー想定） */
}

@media (min-width: 700px) {
    .list_table .anken_list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--s4);
    }
}

@media (min-width: 1024px) {
    .list_table .anken_list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ===========================
   各カード（案件）
   =========================== */
.list_table .anken_list>li.ankenContent {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    padding: var(--s4);
    display: grid;
    gap: .65rem;
    transition: transform .08s ease, box-shadow .2s ease, border-color .2s ease;
}

.list_table .anken_list>li.ankenContent:hover {
    transform: translateY(-2px);
    border-color: color-mix(in oklab, var(--primary) 30%, var(--border));
    box-shadow: 0 10px 28px rgba(36, 95, 229, .12);
}

/* ===========================
   画像部分
   =========================== */
.ankenContent .img {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.ankenContent .img a,
.ankenContent .img img {
    display: block;
    width: 100%;
    height: auto;
}

/* ===========================
   テキスト部分
   =========================== */
.ankenContent .ankenList {
    display: grid;
    gap: .35rem;
}

/* カテゴリ（都道府県ラベル） */
.ankenContent .ankenList .cate {
    margin: .1rem 0 0;
    color: var(--primary);
    font-size: .9em;
    padding: .25rem .5rem;
    border: 1px solid color-mix(in oklab, var(--primary) 35%, var(--border));
    border-radius: 999px;
    background: color-mix(in oklab, var(--primary) 7%, #fff);
    display: inline-block;
}

/* タイトル */
.ankenContent .ankenList .title {
    margin: 0;
    font-weight: 700;
    line-height: 1.45;
}

.ankenContent .ankenList .title a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: color .2s, border-color .2s;
}

.ankenContent .ankenList .title a:hover {
    color: var(--primary);
    border-color: currentColor;
}

.ankenContent .ankenList .title span {
    color: var(--muted);
    font-weight: 400;
}

.ankenContent .title a {
    text-decoration: none;
    font-size: 16px;
}

@media (max-width:768px) {
    .body>ul>li {
        grid-template-columns: 100%;
    }
}

/* 1200px~：4カラムにも対応したい場合は下のコメントアウトをON
@media (min-width:1200px){
  .body > ul{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
*/

/* ===========================
   細かなユーティリティ
   =========================== */
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}