@charset "UTF-8";

/* =========================================================
   下層ページ メインビジュアル (Sub Hero)
========================================================= */
.p-sub-hero {
    position: relative;
    width: 100%;
    height: 395px;
    padding-top: 75px;
    background-color: var(--color-main);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-top: 0;
}

.p-sub-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.p-sub-hero__inner {
    position: relative;
    z-index: 2;
    transform: translateY(10px);
    opacity: 0;
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    100% { transform: translateY(0); opacity: 1; }
}

.p-sub-hero__title {
    font-family: var(--font-english);
    font-size: 2.8rem;
    font-weight: normal;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.p-sub-hero__en {
    display: block;
    font-family: var(--font-english);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media screen and (max-width: 768px) {
    .p-sub-hero { height: 280px; padding-top: 60px; }
    .p-sub-hero__title { font-size: 1.8rem; }
    .p-sub-hero__en { font-size: 0.9rem; }
}

/* =========================================================
   ニュース一覧 2カラムレイアウト
========================================================= */
.p-news-section {
    padding: 80px 0;
}

.p-news-layout {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

/* メインコンテンツ（左カラム） */
.p-news-main {
    flex: 1;
    min-width: 0;
}

.p-news-archive-list {
    display: flex;
    flex-direction: column;
}

.p-news-archive-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px dashed #ddd;
    gap: 20px;
}

.p-news-archive-item time {
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
    width: 95px;
}

.p-news-archive-cat {
    border: 1px solid var(--color-main);
    font-size: 0.75rem;
    padding: 3px 12px;
    white-space: nowrap;
    color: var(--color-main);
    font-weight: bold;
}

.p-news-archive-title {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.p-news-archive-title a {
    color: var(--color-text);
    transition: opacity 0.3s;
}

.p-news-archive-title a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* サイドバー（右カラム） */
.p-news-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.p-widget {
    background-color: var(--color-bg);
    padding: 30px 25px;
    border-radius: 6px;
    border: 1px solid #eaeaea;
    margin-bottom: 30px;
}

.p-widget:last-child {
    margin-bottom: 0;
}

.p-widget__title {
    position: relative;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-main);
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-main);
}

/* カテゴリリストの修正 */
.p-widget-cat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.p-widget-cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--color-text);
    transition: color 0.3s;
}

/* カテゴリ名と記事数をまとめる部分（左側をひとかたまりにする） */
.p-widget-cat-list li a > span:first-child {
    display: flex;
    align-items: center;
    gap: 8px; /* カテゴリ名と（記事数）の間隔 */
}

/* 記事数（カッコ書き）の文字サイズと色 */
.p-widget-cat-list li a > span:first-child + span {
    font-size: 0.85rem;
    color: #777;
}

.p-widget-cat-list li a::after {
    content: '\003e';
    font-size: 1.1rem;
    color: #888;
}

.p-widget-cat-list li a:hover {
    color: var(--color-main);
    text-decoration: underline;
}

/* 最新記事リスト (5件) */
.p-widget-recent-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.p-widget-recent-item a {
    display: block;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text);
    transition: opacity 0.3s;
}

.p-widget-recent-item a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.p-widget-recent-item time {
    display: block;
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 3px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 896px) {
    .p-news-section { padding: 40px 0; }
    .p-news-layout {
        flex-direction: column;
        gap: 40px;
    }
    .p-news-sidebar {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .p-news-archive-item {
        flex-wrap: wrap;
        gap: 8px 15px;
        padding: 15px 0;
    }
    .p-news-archive-title {
        flex: 0 0 100%;
    }
}

/* =========================================================
   ページネーション
========================================================= */
.p-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.p-pagination ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

.p-pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.p-pagination li a:hover {
    background-color: var(--color-bg);
    border-color: var(--color-main);
}

.p-pagination li a.is-current {
    background-color: var(--color-main);
    color: #fff;
    border-color: var(--color-main);
    cursor: default;
}

