@charset "utf-8";

/* ===================================
   NEWSページ全体設定
   =================================== */
#news{
    background-image: url(../img/common/bg_logo_clear.png);
    background-repeat: no-repeat;
    background-position: 120% 96%;
    padding-bottom: 80px;
    background-size: 900px;
}
#news .main_ttl {
    background-image: url("../img/common/head_blue.jpg");
    background-size: cover;
    position: relative;
}
#news #breadcrumb {
    position: absolute;
    top:440px; 
    left: 0;
    z-index: 20;
    width: 100%;
    margin: 0; 
}


#news #breadcrumb ol {
    margin: 0;
    padding-left: 2%; 
    padding-top: 10px; 
}
.wrap_news {
    max-width: 700px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    box-sizing: border-box;
    margin-bottom: 50px;
    margin-top: -5em;
}

#news .ttl {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 35px;
    font-weight: 500;
    text-shadow: 1px 1px 5px #535d64;
    font-family: "Makinas-Scrap-5", sans-serif;
    letter-spacing: 0.2em;
}


/* ===================================
   お知らせリストデザイン
   =================================== */

/* リスト全体 */
.post-archive_wrapper {
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
}

/* 各記事の行 */
.post_wrapper {
    border-bottom: 1px solid #e0e0e0;
}

/* リンク全体（Flexboxで左右に分ける） */
.archive_li-a {
    display: flex;
    justify-content: space-between; /* コンテンツと矢印を両端に配置 */
    align-items: center;            /* 上下中央揃え */
    padding: 25px 0;
    color: #333;
    transition: background-color 0.3s, opacity 0.3s;
    text-decoration: none;
    padding-right: 20px;            /* 矢印のための余白 */
}

.archive_li-a:hover {
    background-color: #f9f9f9;
    opacity: 0.8;
}

/* 左側のテキストグループ */
.post-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* スマホで折り返す用 */
    width: 95%;      /* 矢印のスペースを残して幅をとる */
}

/* 日付とカテゴリ */
.meta_info {
    display: flex;
    align-items: center;
    margin-right: 20px; /* タイトルとの距離 */
    min-width: 180px;   /* PCで日付部分の幅を確保して揃える */
}

.post-date {
    margin-right: 15px;
    color: #666;
    font-family: 'Lato', 'Noto Sans JP', sans-serif;
    font-weight: 500;
}

/* カテゴリラベル */
.post-cat {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    background-color: #999;
    color: #fff;
    border-radius: 4px;
    line-height: 1;
}

/* カテゴリスラッグごとの色分け */
.post-cat.news    { background-color: #4c4948; }
.post-cat.recruit { background-color: #2b9597; }
.post-cat.event   { background-color: #002b62; }

/* 記事タイトル */
.post-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    flex: 1; /* 残りの幅をタイトルに使う */
}

/* -------------------------------------
   右側の矢印を作る（CSSで描画）
   ------------------------------------- */
.archive_li-a::after {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 2px solid #002b62;   /* 線の色（メインカラー） */
    border-right: 2px solid #002b62; /* 線の色 */
    transform: rotate(45deg);        /* 45度回転 */
    margin-left: 15px;
    flex-shrink: 0;                  /* 矢印が潰れないようにする */
}


/* ===================================
   ページネーション（数字ボタン）
   =================================== */
.post-pagination-wrapper {
    margin: 60px 0 40px;
    display: flex;
    justify-content: center; /* 中央寄せ */
}

/* ページネーションのリスト（ul） */
.post-pagination-wrapper ul.page-numbers {
    display: flex;
    padding: 0;
    list-style: none;
    gap: 10px; /* ボタン同士の間隔 */
}

/* ボタン共通設定 */
.post-pagination-wrapper .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    background-color: #fff;
    transition: all 0.3s;
    font-family: 'Lato', 'Noto Sans JP', sans-serif;
    font-size: 14px;
}

/* ホバー時 */
.post-pagination-wrapper a.page-numbers:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
}

/* カレント（現在のページ） */
.post-pagination-wrapper .current {
    background-color: #002b62; /* メインカラー（紺色） */
    color: #fff;
    border-color: #002b62;
    pointer-events: none;
}

/* 「…」の表示 */
.post-pagination-wrapper .dots {
    border: none;
    background: transparent;
}

/* ===================================
   詳細ページ (Single) 用の調整
   =================================== */

/* ===================================
   スマホ対応 (レスポンシブ)
   =================================== */
@media screen and (max-width: 1100px) {
#news {
    background-image: url(../img/common/bg_logo_clear.png);
    background-repeat: no-repeat;
    background-position: 280px 96%;
    background-size: 900px;
}
      }

@media screen and (max-width: 768px) {
    #news {
    padding-bottom: 10px;
    background-image: none;
     }
    /* 左側グループを縦積みに変更 */
    .post-content {
        display: block;
    }

    .meta_info {
        margin-right: 0;
        margin-bottom: 8px; /* タイトルとの隙間 */
    }

    .post-title {
        display: block;
        font-weight: 500;
    }

    .archive_li-a {
        padding: 15px 0;
    }

    .post-pagination-wrapper .page-numbers {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .post-pagination-wrapper ul.page-numbers {
        gap: 5px;
    }
     #news  #breadcrumb {
    top: 280px;
}

}