@charset "UTF-8";

/* =========================================================
   下層ページ共通ヘッダー (Sub Hero)
========================================================= */
.p-sub-hero-bg {
    width: 100%;
    height: 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.p-sub-hero-title {
    padding: 60px 0 20px;
    text-align: center;
    margin-bottom: 40px;
}
@media screen and (max-width: 768px) {
    .p-sub-hero-bg {
        height: 100px;
    }
    .p-sub-hero-title {
        padding: 40px 0 10px;
        margin-bottom: 30px;
    }
}

/* =========================================================
   ニュース / ブログ (NEWS) 共通レイアウト
========================================================= */
.p-news-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 80px;
}
.p-news-main {
    width: 65%;
}
.p-news-sidebar {
    width: 30%;
}

/* =========================================================
   メインエリア：記事リスト (アーカイブ用)
========================================================= */
.p-news-list {
    margin-bottom: 60px;
}
.p-news-list__item {
    border-bottom: 1px solid #eaeaea;
}
.p-news-list__item:first-child {
    border-top: 1px solid #eaeaea;
}
.p-news-list__item a {
    display: flex;
    align-items: flex-start;
    padding: 25px 0;
    width: 100%;
    transition: background-color 0.3s;
}
.p-news-list__item a:hover {
    background-color: #fafafa;
}
.p-news-list__date {
    width: 100px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    margin-top: 2px;
    color: var(--color-text);
    flex-shrink: 0;
}
.p-news-list__cat {
    border: 1px solid var(--color-text);
    font-size: 11px;
    padding: 3px 12px;
    border-radius: 2px;
    margin-right: 20px;
    white-space: nowrap;
    color: var(--color-text);
    flex-shrink: 0;
    margin-top: 2px;
}
.p-news-list__title {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    font-weight: bold;
    color: var(--color-text);
    transition: color 0.3s;
}
.p-news-list__item a:hover .p-news-list__title {
    color: var(--color-main);
}

/* ページネーション */
.p-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.p-pagination a, 
.p-pagination span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ccc;
    font-weight: bold;
    color: var(--color-text);
    text-decoration: none;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s ease;
}
.p-pagination a:hover {
    border-color: var(--color-main);
    color: var(--color-main);
}
.p-pagination .is-current {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* =========================================================
   記事詳細ページ (シングル用)
========================================================= */
.p-news-single__header {
    margin-bottom: 30px;
}
.p-news-single__title {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 15px;
    color: var(--color-text);
}
.p-news-single__meta {
    display: flex;
    align-items: center;
}
.p-news-single__thumb {
    margin-bottom: 40px;
    width: 100%;
}
.p-news-single__thumb img {
    width: 100%;
    height: auto;
    display: block;
    background-color: #f5f5f5; /* 画像がない場合の仮背景 */
}

/* 記事本文エリア（WP出力用ベース） */
.p-news-single__body {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 50px;
}
.p-news-single__body p {
    margin-bottom: 25px;
}

/* SNSシェアエリア */
.p-share {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin-bottom: 40px;
}
.p-share a,
.p-share button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
    color: #333;
}
.p-share a:hover,
.p-share button:hover {
    opacity: 0.6;
}
.p-share svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* 前後の記事ナビゲーション */
.p-post-nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    border-bottom: 1px solid #ddd;
    padding-bottom: 40px;
}
.p-post-nav a {
    display: flex;
    align-items: center;
    width: 45%;
    font-size: 0.95rem;
    font-weight: bold;
    line-height: 1.5;
    color: var(--color-text);
    transition: color 0.3s;
    text-decoration: none;
}
.p-post-nav a:hover {
    color: var(--color-main);
}
.p-post-nav__prev {
    text-align: left;
    justify-content: flex-start;
}
.p-post-nav__next {
    text-align: right;
    justify-content: flex-end;
}

/* =========================================================
   サイドバー
========================================================= */
.p-sidebar-block {
    margin-bottom: 60px;
}
.p-sidebar-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #333;
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.p-sidebar-title__en {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1;
    color: var(--color-text);
}
.p-sidebar-title__ja {
    font-size: 0.85rem;
    font-weight: bold;
    color: #666;
    line-height: 1;
}

.p-sidebar-cat li {
    border-bottom: 1px solid #eaeaea;
}
.p-sidebar-cat a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5px;
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--color-text);
    transition: all 0.3s;
}
.p-sidebar-cat a::after {
    content: '＞';
    font-size: 0.9rem;
    color: #aaa;
    transition: color 0.3s;
}
.p-sidebar-cat a:hover {
    color: var(--color-main);
}
.p-sidebar-cat a:hover::after {
    color: var(--color-main);
}

.p-sidebar-new__item {
    margin-bottom: 20px;
    border-bottom: 1px dashed #eaeaea;
    padding-bottom: 15px;
}
.p-sidebar-new__item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}
.p-sidebar-new__item a {
    display: block;
    transition: opacity 0.3s;
}
.p-sidebar-new__item a:hover {
    opacity: 0.7;
}
.p-sidebar-new__date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
    font-family: 'Noto Sans JP', sans-serif;
}
.p-sidebar-new__title {
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: bold;
    color: var(--color-text);
    transition: color 0.3s;
}

/* =========================================================
   レスポンシブ (SP)
========================================================= */
@media screen and (max-width: 768px) {
    .p-news-layout {
        flex-direction: column;
        gap: 60px;
    }
    .p-news-main, .p-news-sidebar {
        width: 100%;
    }
    
    /* SP版のリスト表示調整 */
    .p-news-list__item a {
        display: block;
        padding: 20px 0;
    }
    .p-news-list__date {
        display: inline-block;
        width: auto;
        margin-right: 15px;
        margin-bottom: 8px;
    }
    .p-news-list__cat {
        display: inline-block;
        margin-right: 0;
        margin-bottom: 8px;
        vertical-align: 1px;
    }
    .p-news-list__title {
        display: block;
        width: 100%;
        margin-top: 0;
    }
    .p-pagination {
        margin-top: 40px;
    }

    /* SP版シングルページ調整 */
    .p-news-single__title {
        font-size: 1.4rem;
    }
    .p-news-single__meta {
        gap: 12px; /* ★ここでカテゴリと日付の隙間を確保 */
    }
    .p-news-single__meta .p-news-list__cat {
        margin-right: 0; /* リスト側のmarginをリセット */
        margin-bottom: 0;
    }
    .p-news-single__meta .p-news-list__date {
        margin-right: 0;
        margin-bottom: 0;
    }

    .p-share {
        gap: 20px;
    }
    .p-post-nav {
        flex-direction: column;
        gap: 20px;
    }
    .p-post-nav a {
        width: 100%;
    }
}