@charset "UTF-8";

/* =========================================================
   最新情報 (News)
========================================================= */

/* 2カラムレイアウト */
.p-news-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}
.p-news-main {
    flex: 1;
    min-width: 0; /* Flexbox内のテキストはみ出し防止 */
}
.p-news-side {
    width: 300px;
    flex-shrink: 0;
}

/* メイン：記事リスト */
.p-news-list {
    border-top: 1px solid #ccc;
}
.p-news-item {
    border-bottom: 1px dashed #ccc;
}
.p-news-item > a {
    display: flex;
    align-items: baseline;
    padding: 25px 15px;
    text-decoration: none;
    color: var(--color-text);
    transition: background-color 0.3s ease;
}
.p-news-item > a:hover {
    background-color: #f9f9f9;
}
.p-news-item__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 220px; /* 日付とカテゴリの固定幅 */
    flex-shrink: 0;
}
.p-news-item__date {
    font-family: var(--font-english);
    font-size: 1rem;
    color: #333;
}
.p-news-item__cat {
    font-size: 0.8rem;
    font-weight: 700;
    color: #333; /* ★文字色を黒（濃いグレー）に */
    background-color: #fff; /* ★背景色を白に */
    border: 1px solid #333; /* ★黒い縁取りを追加 */
    padding: 3px 11px; /* borderが増えた分、paddingを1px減らして元のサイズに合わせる */
    border-radius: 20px;
}
.p-news-item__title {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

/* ページネーション */
.c-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}
.c-pagination a,
.c-pagination span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-family: var(--font-english);
    font-size: 1rem;
    color: var(--color-main);
    background-color: #fff;
    border: 1px solid var(--color-main);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.c-pagination a:hover,
.c-pagination .current {
    background-color: var(--color-main);
    color: #fff;
}

/* サイドバー：ウィジェット共通 */
.p-side-widget {
    margin-bottom: 40px;
}
.p-side-widget__title {
    font-family: var(--font-english);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-main);
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.p-side-widget__title .ja {
    font-family: var(--font-gothic);
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* サイドバー：カテゴリー */
.p-side-cat {
    list-style: none;
}
.p-side-cat li {
    border-bottom: 1px dashed #e0e0e0;
}
.p-side-cat a {
    display: block;
    padding: 12px 5px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px;
    transition: color 0.3s ease;
}
.p-side-cat a::before {
    content: '\203A';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-main);
    font-size: 1.2rem;
}
.p-side-cat a:hover {
    color: var(--color-main);
}

/* サイドバー：新着記事 */
.p-side-recent {
    list-style: none;
}
.p-side-recent li {
    border-bottom: 1px dashed #e0e0e0;
}
.p-side-recent a {
    display: block;
    padding: 15px 0;
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.p-side-recent a:hover {
    opacity: 0.7;
}
.p-side-recent__date {
    display: block;
    font-family: var(--font-english);
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}
.p-side-recent__title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
}

/* レスポンシブ (SP) */
@media screen and (max-width: 900px) {
    .p-news-layout {
        flex-direction: column;
        gap: 60px;
        align-items: stretch; /* ★追加：コンテナ全体が横幅いっぱいまで伸びるようにする */
    }
    .p-news-main {
        width: 100%; /* ★追加：記事一覧エリア自体を常に100%の幅に固定する */
    }
    .p-news-side {
        width: 100%;
    }
    .p-news-item > a {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px 10px;
    }
    .p-news-item__meta {
        width: 100%;
    }
    .p-news-item__title {
        font-size: 1rem;
        width: 100%;
    }
}


/* =========================================================
   最新情報 記事詳細 (Single)
========================================================= */

/* 記事ヘッダー（タイトル・日付など） */
.p-news-article__header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-main);
}
.p-news-article__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.p-news-article__date {
    font-family: var(--font-english);
    font-size: 1rem;
    color: #333;
}
.p-news-article__cat {
    font-size: 0.8rem;
    font-weight: 700;
    color: #333;
    background-color: #fff;
    border: 1px solid #333;
    padding: 3px 11px;
    border-radius: 20px;
}
.p-news-article__title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0;
}

/* アイキャッチ画像 */
.p-news-article__eyecatch {
    margin-bottom: 40px;
}
.p-news-article__eyecatch img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: block;
}

/* WordPressの本文エリア (the_content) */
.p-news-article__content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
}
.p-news-article__content p {
    margin-bottom: 20px;
}
.p-news-article__content p:last-child {
    margin-bottom: 0;
}
.p-news-article__content img {
    max-width: 100%;
    height: auto;
}

/* 一覧へ戻るボタン */
.p-news-back {
    margin-top: 60px;
    text-align: center;
    border-top: 1px dashed #ccc;
    padding-top: 40px;
}
.p-news-back .c-btn-outline {
    display: inline-flex;
    width: 250px;
    padding: 12px 15px;
}

/* レスポンシブ (SP) */
@media screen and (max-width: 768px) {
    .p-news-article__title {
        font-size: 1.3rem;
    }
    .p-news-article__content {
        font-size: 0.95rem;
    }
}

