/*
Theme Name: Delica Chef News
Theme URI: https://delica-chef.co.jp/news/
Description: デリカシェフ お知らせ専用テーマ
Version: 1.0
Author: SGD
*/

@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
    font-size: 14px;
    color: #333;
    background: #fff;
    line-height: 1.8;
}

a {
    color: #079e75;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== レイアウト ===== */
#news-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

/* ===== パンくず ===== */
.breadcrumb {
    font-size: 12px;
    color: #999;
    margin-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 12px;
}
.breadcrumb a {
    color: #079e75;
}
.breadcrumb span {
    margin: 0 6px;
    color: #ccc;
}

/* ===== ページタイトル ===== */
.page-heading {
    font-size: 28px;
    font-weight: normal;
    color: #333;
    margin-bottom: 8px;
    padding-bottom: 20px;
    position: relative;
}
.page-heading::before {
    position: absolute;
    bottom: -2px;
    left: 0;
    content: "";
    width: 30px;
    height: 5px;
    background-color: #079e75;
}
.page-heading::after {
    position: absolute;
    bottom: 0;
    left: 0;
    content: attr(data-en);
    font-size: 13px;
    color: #079e75;
    transform: translate(0, 0);
}
.page-heading-wrap {
    margin-bottom: 50px;
}

/* ===== 一覧ページ ===== */
.news-list {
    list-style: none;
}
.news-list-item {
    border-bottom: 1px solid #e8e8e8;
    padding: 18px 0;
}
.news-list-item:first-child {
    border-top: 1px solid #e8e8e8;
}
.news-list-item a {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    color: #333;
    text-decoration: none;
}
.news-list-item a:hover {
    opacity: 0.7;
    text-decoration: none;
}
.news-date {
    font-size: 13px;
    color: #888;
    min-width: 100px;
    padding-top: 2px;
    flex-shrink: 0;
}
.news-cat {
    font-size: 11px;
    background: #079e75;
    color: #fff;
    padding: 2px 8px;
    border-radius: 2px;
    min-width: 70px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.news-title {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

/* カテゴリバッジ色 */
.news-cat.cat-採用 { background: #2196a0; }
.news-cat.cat-お知らせ { background: #079e75; }
.news-cat.cat-重要 { background: #c0392b; }

/* ===== 詳細ページ ===== */
.news-single {
    max-width: 800px;
}
.news-single-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.news-single-date {
    font-size: 13px;
    color: #888;
}
.news-single-title {
    font-size: 22px;
    font-weight: normal;
    color: #333;
    line-height: 1.6;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8e8e8;
}
.news-single-body {
    font-size: 14px;
    line-height: 2;
    color: #333;
}
.news-single-body p {
    margin-bottom: 1.5em;
}
.news-single-body h2 {
    font-size: 18px;
    font-weight: bold;
    margin: 2em 0 1em;
    padding-left: 12px;
    border-left: 4px solid #079e75;
}
.news-single-body h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 1.5em 0 0.8em;
}
.news-single-body ul,
.news-single-body ol {
    margin: 1em 0 1em 1.5em;
}
.news-single-body li {
    margin-bottom: 0.4em;
}
.news-single-body a {
    color: #079e75;
    text-decoration: underline;
}
.news-single-body img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
}

/* 戻るボタン */
.btn-back {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 30px;
    border: 1px solid #079e75;
    color: #079e75;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-back:hover {
    background: #079e75;
    color: #fff;
    text-decoration: none;
    opacity: 1;
}

/* ===== ページネーション ===== */
.pagination {
    margin-top: 50px;
    text-align: center;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #ddd;
    color: #333;
    font-size: 13px;
    text-decoration: none;
}
.pagination .page-numbers.current {
    background: #079e75;
    color: #fff;
    border-color: #079e75;
}
.pagination .page-numbers:hover:not(.current) {
    border-color: #079e75;
    color: #079e75;
    text-decoration: none;
}

/* 外部リンクボタン（本文内で使用） */
.news-single-body .btn-external {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 36px;
    background: #079e75;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.news-single-body .btn-external::after {
    content: " ↗";
    font-size: 12px;
}
.news-single-body .btn-external:hover {
    opacity: 0.75;
    text-decoration: none;
}

/* ===== レスポンシブ ===== */
@media screen and (max-width: 767px) {
    #news-wrap {
        padding: 30px 15px 50px;
    }
    .page-heading {
        font-size: 20px;
    }
    .news-list-item a {
        flex-wrap: wrap;
        gap: 6px;
    }
    .news-date {
        min-width: auto;
    }
    .news-single-title {
        font-size: 18px;
    }
}
