/* ========================================
   NEWS ARCHIVE
======================================== */

.p-newsArchive__section {
    padding: 80px 0 96px;
}

.p-newsArchive__heading {
    margin-bottom: 40px;
}

.p-newsArchive__title {
    position: relative;
    margin: 0;
    padding-left: 24px;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #222;
}

.p-newsArchive__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 56px;
    background: #f4c400;
}

/* ========================================
   SWIPER
======================================== */

.p-newsArchive__sliderWrap {
    width: 100%;
}

.p-newsArchive__slider {
    width: 100%;
    overflow: hidden;
}

.p-newsArchive__slider .swiper-wrapper {
    align-items: stretch;
}

.p-newsArchive__slider .swiper-slide {
    height: 450px !important;
}

/* ========================================
   CARD
======================================== */

.p-newsPanel {
    position: relative;
    height: 450px !important;
}

.p-newsPanel__link {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100% !important;
    background: #f7f7f7;
    border-radius: 28px;
    text-decoration: none;
}

.p-newsPanel__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.p-newsPanel__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.p-newsPanel:hover .p-newsPanel__image img {
    transform: scale(1.04);
}

/* ========================================
   OVERLAY
======================================== */

.p-newsPanel__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 30px 34px 32px;
    background: linear-gradient(to top,
            rgba(0, 0, 0, .62) 0%,
            rgba(0, 0, 0, .48) 58%,
            rgba(0, 0, 0, 0) 100%);
}

.p-newsPanel__date {
    display: block;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.p-newsPanel__title {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.45;
    color: #fff;
}

.p-newsPanel__label {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, .9);
    font-size: 13px;
    line-height: 1;
    color: #fff;
}

.p-newsPanel__icon {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    font-size: 24px;
    line-height: 1;
    color: #fff;
}

/* ========================================
   SWIPER NAVIGATION
======================================== */

.p-newsArchive__sliderNav {
    display: grid;
    grid-template-columns: 40px 90px 40px;
    justify-content: center;
    align-items: center;
    column-gap: 46px;
    margin-top: 42px;
    height: 40px;
}

.p-newsArchive__button {
    position: relative !important;
    inset: auto !important;
    width: 40px;
    height: 40px;
    margin: 0 !important;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.p-newsArchive__button::after {
    display: none !important;
}

.p-newsArchive__button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-top: 3px solid #333;
    border-right: 3px solid #333;
}

.p-newsArchive__button--prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.p-newsArchive__button--next::before {
    transform: translate(-65%, -50%) rotate(45deg);
}

.p-newsArchive__paginationDots {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 90px !important;
    height: 40px !important;
    min-width: 90px;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.p-newsArchive__paginationDots::before {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    height: 2px;
    background: #d6d6d6;
    transform: translateY(-50%);
    z-index: 0;
}

.p-newsArchive__paginationDots .swiper-pagination-bullet {
    position: relative;
    z-index: 1;
    display: block;
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin: 0 !important;
    background: #fff;
    border: 2px solid #333;
    opacity: 1;
}

.p-newsArchive__paginationDots .swiper-pagination-bullet-active {
    background: #333;
}

/* ========================================
   MONTH ARCHIVE NAV
======================================== */

.p-newsArchive__months {
    display: flex;
    align-items: flex-start;
    gap: 64px;
    margin-top: 56px;
}

.p-newsArchive__month {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
    padding-bottom: 18px;
    text-decoration: none;
    color: #555;
    font-size: 16px;
    font-weight: 700;
}

.p-newsArchive__month span {
    display: block;
}

.p-newsArchive__month i {
    position: relative;
    display: block;
    width: 12px;
    height: 12px;
    margin-top: 10px;
}

.p-newsArchive__month i::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 2px;
    width: 9px;
    height: 9px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: translateX(-50%) rotate(45deg);
}

.p-newsArchive__month.is-current {
    color: #007fa7;
}

.p-newsArchive__month.is-current::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 64px;
    height: 3px;
    background: #007fa7;
    transform: translateX(-50%);
}

/* ========================================
   MONTHLY NEWS LIST
======================================== */

.p-newsArchive__list {
    margin-top: 56px;
}

.p-newsArchive__monthBlock {
    margin-top: 48px;
}

.p-newsArchive__monthHeading {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

.p-newsArchive__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px;
}

.p-newsItem {
    border-top: 1px solid #ddd;
}

/* PC：最後の行の左右に下線 */
.p-newsItem:last-child,
.p-newsItem:nth-last-child(2):nth-child(odd) {
    border-bottom: 1px solid #ddd;
}

/* スマホ：1列なので最後の記事だけ下線 */
@media (max-width: 767px) {
    .p-newsItem:nth-last-child(2):nth-child(odd):not(:last-child) {
        border-bottom: none;
    }
}

.p-newsItem__link {
    position: relative;
    display: grid !important;
    grid-template-columns: 88px 1fr 16px;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    color: inherit;
    text-decoration: none;
}

.p-newsItem__thumb {
    width: 88px !important;
    height: 58px !important;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 10px;
}

.p-newsItem__thumb img {
    display: block;
    width: 88px !important;
    height: 58px !important;
    object-fit: cover;
}

.p-newsItem__body {
    min-width: 0;
}

.p-newsItem__date {
    margin-right: 10px;
    font-size: 13px;
    color: #777;
}

.p-newsItem__label {
    display: inline-block;
    padding: 3px 8px;
    border: 1px solid #333;
    font-size: 11px;
    line-height: 1;
    color: #222;
}

.p-newsItem__title {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
    color: #222;
}

.p-newsItem__arrow {
    color: #999;
    font-size: 18px;
}

/* ========================================
   EMPTY
======================================== */

.p-newsArchive__empty {
    padding: 80px 0;
    text-align: center;
}

/* ========================================
   SP
======================================== */

@media (max-width: 767px) {


    .p-newsPanel__link {
        border-radius: 20px;
    }

    .p-newsItem__thumb {
        border-radius: 8px;
    }

    .p-newsArchive__section {
        padding: 50px 0 70px;
    }

    .p-newsArchive__heading {
        margin-bottom: 28px;
    }

    .p-newsArchive__title {
        padding-left: 18px;
        font-size: 34px;
    }

    .p-newsArchive__title::before {
        top: 4px;
        width: 5px;
        height: 40px;
    }

    .p-newsArchive__slider .swiper-slide,
    .p-newsPanel {
        height: 300px !important;
    }

    .p-newsPanel__overlay {
        padding: 20px;
    }

    .p-newsPanel__title {
        font-size: 20px;
    }

    .p-newsPanel__date {
        font-size: 13px;
    }

    .p-newsArchive__sliderNav {
        grid-template-columns: 32px 76px 32px;
        column-gap: 28px;
        margin-top: 32px;
        height: 32px;
    }

    .p-newsArchive__button {
        width: 32px;
        height: 32px;
    }

    .p-newsArchive__button::before {
        width: 11px;
        height: 11px;
        border-width: 3px;
    }

    .p-newsArchive__paginationDots {
        width: 76px !important;
        min-width: 76px;
        height: 32px !important;
    }

    .p-newsArchive__paginationDots .swiper-pagination-bullet {
        width: 11px;
        height: 11px;
    }

    .p-newsArchive__months {
        gap: 28px;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .p-newsArchive__items {
        grid-template-columns: 1fr;
    }

    .p-newsItem__link {
        grid-template-columns: 76px 1fr 14px;
        gap: 14px;
    }

    .p-newsItem__thumb,
    .p-newsItem__thumb img {
        width: 76px !important;
        height: 52px !important;
    }
}

/* ========================================
   MONTH ANCHOR OFFSET
======================================== */

.p-newsArchive__monthBlock {
    scroll-margin-top: 120px;
}

/* ========================================
   NEWS SINGLE：個別記事
======================================== */

.p-newsSingle {
    background: #f5f5f5;
    padding-bottom: 70px;
}

.p-newsSingle,
.p-newsSingle *,
.p-newsSingle *::before,
.p-newsSingle *::after {
    box-sizing: border-box;
}

/* ----------------------------------------
   ページ見出し
---------------------------------------- */

.p-newsSingle .p-pageHero {
    width: min(1100px, calc(100% - 40px));
    margin: 28px auto 0;
    padding: 40px 36px;
    border-radius: 30px;
    background:
        repeating-linear-gradient(
            130deg,
            transparent 0,
            transparent 5px,
            rgba(255, 255, 255, 0.45) 5px,
            rgba(255, 255, 255, 0.45) 6px
        ),
        linear-gradient(110deg, #ffda4a, #fff2a0);
}

.p-newsSingle .p-pageHero > .l-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.p-newsSingle .p-pageHero__inner {
    text-align: left;
}

.p-newsSingle .p-pageHero__icon {
    display: none;
}

.p-newsSingle .p-pageHero__eyebrow {
    margin: 0 0 10px;
    color: #368e94;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.p-newsSingle .p-pageHero__title {
    margin: 0;
    color: #292929;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.5;
}

/* ----------------------------------------
   パンくず
---------------------------------------- */

.p-newsSingle .c-breadcrumb {
    margin: 0;
    padding: 20px 0 30px;
}

.p-newsSingle .c-breadcrumb__list {
    flex-wrap: wrap;
}

.p-newsSingle .c-breadcrumb__item {
    min-width: 0;
    font-size: 12px;
    overflow-wrap: anywhere;
}

/* ----------------------------------------
   記事カード
---------------------------------------- */

.p-newsSingle__article {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.p-newsSingle__article > .l-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.p-newsSingle__header {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e5eeee;
}

.p-newsSingle__date {
    display: block;
    margin-bottom: 14px;
    color: #368e94;
    font-size: 13px;
    font-weight: 700;
}

.p-newsSingle__title {
    margin: 0;
    color: #292929;
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* ----------------------------------------
   記事本文
---------------------------------------- */

.p-newsSingle__content {
    color: #333;
    font-size: 16px;
    line-height: 2;
    overflow-wrap: anywhere;
}

.p-newsSingle__content > :first-child {
    margin-top: 0;
}

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

.p-newsSingle__content p {
    margin: 0 0 1.6em;
}

.p-newsSingle__content h2,
.p-newsSingle__content h3,
.p-newsSingle__content h4 {
    margin: 2em 0 0.8em;
    font-weight: 700;
    line-height: 1.6;
}

.p-newsSingle__content h2 {
    padding-bottom: 10px;
    border-bottom: 2px solid #dceff0;
    font-size: 24px;
}

.p-newsSingle__content h3 {
    font-size: 20px;
}

.p-newsSingle__content h4 {
    font-size: 18px;
}

.p-newsSingle__content ul,
.p-newsSingle__content ol {
    margin: 0 0 1.6em;
    padding-left: 1.5em;
}

.p-newsSingle__content ul {
    list-style: disc;
}

.p-newsSingle__content ol {
    list-style: decimal;
}

.p-newsSingle__content li {
    margin-bottom: 0.4em;
}

.p-newsSingle__content a {
    color: #368e94;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.p-newsSingle__content img,
.p-newsSingle__content video {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.p-newsSingle__content iframe {
    max-width: 100%;
}

.p-newsSingle__content figure {
    max-width: 100%;
    margin: 1.6em 0;
}

.p-newsSingle__content figcaption {
    margin-top: 8px;
    color: #777;
    font-size: 12px;
    text-align: center;
}

.p-newsSingle__content blockquote {
    margin: 1.6em 0;
    padding: 20px 24px;
    border-left: 4px solid #4ba5aa;
    background: #f0f8f8;
}

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

.p-newsSingle__content .wp-block-table {
    overflow-x: auto;
}

.p-newsSingle__content table {
    width: 100%;
    border-collapse: collapse;
}

.p-newsSingle__content th,
.p-newsSingle__content td {
    padding: 12px 16px;
    border: 1px solid #ddd;
    text-align: left;
}

.p-newsSingle__content th {
    background: #f0f8f8;
}

.p-newsSingle__content pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
}

/* ----------------------------------------
   一覧へ戻る
---------------------------------------- */

.p-newsSingle__footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5eeee;
    text-align: center;
}

.p-newsSingle__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 34px;
    border-radius: 999px;
    background: #4ba5aa;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.p-newsSingle__back:hover {
    background: #368e94;
}

.p-newsSingle__back:focus-visible {
    outline: 3px solid #ffd400;
    outline-offset: 4px;
}

/* ----------------------------------------
   スマホ
---------------------------------------- */

@media (max-width: 767px) {
    .p-newsSingle {
        padding-bottom: 45px;
    }

    .p-newsSingle .p-pageHero {
        width: calc(100% - 32px);
        margin-top: 20px;
        padding: 28px 24px;
        border-radius: 24px;
    }

    .p-newsSingle .c-breadcrumb {
        padding: 18px 0 24px;
    }

    .p-newsSingle .c-breadcrumb__item {
        font-size: 11px;
    }

    .p-newsSingle__article {
        width: calc(100% - 32px);
        padding: 28px 22px;
        border-radius: 22px;
    }

    .p-newsSingle__header {
        margin-bottom: 24px;
        padding-bottom: 22px;
    }

    .p-newsSingle__date {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .p-newsSingle__title {
        font-size: 22px;
    }

    .p-newsSingle__content {
        font-size: 15px;
        line-height: 1.95;
    }

    .p-newsSingle__content h2 {
        font-size: 21px;
    }

    .p-newsSingle__content h3 {
        font-size: 18px;
    }

    .p-newsSingle__content h4 {
        font-size: 16px;
    }

    .p-newsSingle__content blockquote {
        padding: 16px 18px;
    }

    .p-newsSingle__content th,
    .p-newsSingle__content td {
        padding: 10px;
        font-size: 13px;
    }

    .p-newsSingle__footer {
        margin-top: 30px;
        padding-top: 24px;
    }
}

/* 個別記事：パンくずの幅を黄色い見出しにそろえる */
.p-newsSingle .c-breadcrumb {
    width: min(1100px, calc(100% - 40px));
    margin-inline: auto;
    padding: 20px 0 30px;
}

.p-newsSingle .c-breadcrumb > .l-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 767px) {
    .p-newsSingle .c-breadcrumb {
        width: calc(100% - 32px);
        padding: 18px 0 24px;
    }
}

/* トラックの社名が見えるように左寄せ */
.p-newsPanel__image img,
.p-newsItem__thumb img {
    object-position: left center;
}