/**
 * NEWS Section
 */
.p-news {
    padding: clamp(60px, 8vw, 100px) 0;
    background-color: var(--color-white);
}

.p-news__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(30px, 5vw, 80px);
}

/* タイトルエリア（PC） */
.p-news__head {
    flex-shrink: 0;
    width: clamp(200px, 20vw, 300px);
}

/**
 * お知らせ専用タイトルコンポーネント (-news)
 */
.c-section-header.-news {
    text-align: left;
}

.c-section-header.-news .c-section-header__sub {
    background-color: inherit;
    color: var(--color-font);
    margin-bottom: 0;
    padding: 0;
}

/* 吹き出しの角を左寄せにする */
.c-section-header.-news .c-section-header__sub::after {
    content: none;
}

.c-section-header.-news .c-section-header__main {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--color-main);
    font-weight: 800;
}

/* 記事リストエリア */
.p-news__body {
    flex-grow: 1;
}

.p-news__list {
    border-top: 1px solid #ccc;
    margin-bottom: 30px;
}

.p-news__item {
    border-bottom: 1px solid #ccc;
}

.p-news__item-link {
    display: flex;
    align-items: center;
    padding: 25px 0;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.p-news__item-link:hover {
    background-color: #fafafa;
}

.p-news__item-date {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-font);
    width: 140px;
    flex-shrink: 0;
}

.p-news__item-title {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-font);
    line-height: 1.6;
    /* 長いタイトルを1行で省略 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.p-news__btn-wrap {
    text-align: right;
}

.p-news__empty {
    padding: 40px 0;
    color: var(--color-font);
}

/**
 * レスポンシブ (SP: 〜768px)
 */
@media screen and (max-width: 768px) {
    .p-news__inner {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }

    .p-news__head {
        width: 100%;
    }

    .p-news__item-link {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
    }

    .p-news__item-date {
        margin-bottom: 8px;
        font-size: 14px;
    }

    .p-news__item-title {
        white-space: normal; /* スマホでは改行させる */
        font-size: 15px;
        width: 100%;
    }

    .p-news__btn-wrap {
        text-align: right;
        margin-top: 10px;
    }
}

/**
 * Archive News Style
 */
.p-archive {
    padding: clamp(60px, 8vw, 100px) 0;
}

.p-archive__list {
    border-top: 1px solid #E0E0E0;
    margin-bottom: 60px;
}

.p-archive__item {
    border-bottom: 1px solid #E0E0E0;
}

.p-archive__item-link {
    display: flex;
    align-items: center;
    padding: 30px 20px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.p-archive__item-link:hover {
    background-color: #F9F9F9;
}

.p-archive__item-date {
    font-size: 16px;
    color: var(--color-font);
    width: 150px;
    flex-shrink: 0;
    font-family: var(--font-en); /* 英語フォント指定がある場合 */
}

.p-archive__item-title {
    font-size: 16px;
    color: var(--color-font);
    font-weight: 500;
    flex-grow: 1;
}

/* ページネーションのカスタマイズ */
.p-archive__pagination {
    margin-top: 40px;
}

.p-archive__pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
}

.p-archive__pagination li .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-main);
    color: var(--color-main);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

/* 現在のページ */
.p-archive__pagination li .page-numbers.current {
    background-color: var(--color-main);
    color: #fff;
}

.p-archive__pagination li a.page-numbers:hover {
    background-color: #f0f0f0;
}

/**
 * Responsive
 */
@media screen and (max-width: 768px) {
    .p-archive__item-link {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 10px;
    }

    .p-archive__item-date {
        margin-bottom: 8px;
        font-size: 14px;
    }

    .p-archive__item-title {
        font-size: 15px;
        line-height: 1.6;
    }
}

/**
 * Single Post Style
 */
.p-entry {
    padding: clamp(60px, 8vw, 100px) 0;
}

.p-entry__header {
    margin-bottom: 30px;
}

.p-entry__date {
    display: block;
    font-size: 16px;
    color: var(--color-font);
    margin-bottom: 15px;
}

.p-entry__title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    line-height: 1.5;
    color: var(--color-font);
}

.p-entry__thumbnail {
    margin-bottom: 40px;
    border-top: 1px solid #E0E0E0;
    border-bottom: 1px solid #E0E0E0;
    padding: 40px 0;
}

.p-entry__thumbnail img {
    width: 100%;
    height: auto;
}

/* ダミー枠（画像がない場合） */
.p-entry__no-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(29deg, transparent 49.5%, #ccc 49.5%, #ccc 50.5%, transparent 50.5%),
                linear-gradient(-29deg, transparent 49.5%, #ccc 49.5%, #ccc 50.5%, transparent 50.5%);
    border: 1px solid #ccc;
}

.p-entry__body {
    line-height: 2;
    margin-bottom: 80px;
}

/* ナビゲーションエリア */
.p-entry__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.p-entry__nav-prev a,
.p-entry__nav-next a {
    display: flex;
    align-items: center;
    color: var(--color-main);
    font-weight: bold;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
}

/* 黄色のアンダーライン */
.p-entry__nav-prev a::after,
.p-entry__nav-next a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-key);
}

/* 前後のアイコン（SVGや擬似要素） */
.p-entry__nav-prev a::before {
    content: "";
    width: 20px;
    height: 20px;
    background: url('../img/icon-prev.svg') no-repeat center / contain; /* アイコン画像がある場合 */
    margin-right: 10px;
}

.p-entry__nav-next a::after {
    /* nextはタイトルの後にアイコンが来るように調整が必要なためHTML構造に依存します */
}

.p-entry__back {
    text-align: center;
}

.p-entry__back-link {
    color: var(--color-main);
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s;
}

.p-entry__back-link:hover {
    opacity: 0.7;
}

/**
 * Responsive
 */
@media screen and (max-width: 768px) {
    .p-entry__nav {
        flex-direction: column;
        gap: 20px;
    }
}