/**
 * NEWS一覧 / NEWS詳細 共通スタイル
 * Figma:
 *   Archive node 964:16494 (20_NEWS_ブログ一覧_pc)
 *   Single  node 964:16838 (37_NEWS_記事詳細_pc)
 *
 * 全ルールを .page-news にプレフィックスして他ページ影響なし。
 * トークンは assets/tokens.css の --technoauto-* を参照。
 * 構造は page-course-advanced.css を踏襲。
 */

/* ========================================
   Container
   ======================================== */
.page-news {
    background-color: var(--technoauto-bg-base, #ffffff);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding: 50px 0;
    width: 100%;
    font-family: var(--technoauto-font-jp);
    color: var(--technoauto-text-primary, #000);
    box-sizing: border-box;
}

.page-news *,
.page-news *::before,
.page-news *::after {
    box-sizing: border-box;
}

.page-news p {
    margin: 0;
}

.page-news img {
    display: block;
    max-width: 100%;
}

/* ========================================
   Section 共通
   ======================================== */
.page-news__section {
    position: relative;
    width: 1240px;
    max-width: 100%;
}

.page-news__section-inner {
    position: relative;
    width: 100%;
    border: 1px solid var(--technoauto-border-base, #39364e);
    border-radius: 20px;
    padding: 150px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    margin-top: 30px;
}

.page-news__section--categories .page-news__section-inner {
    background: #ffffff;
}

.page-news__section--articles .page-news__section-inner {
    background: var(--technoauto-bg-section, #d7f2ff);
}

.page-news__section--related .page-news__section-inner {
    background: var(--technoauto-bg-brand-soft, #6bd0ff);
}

.page-news__section--body .page-news__section-inner,
.page-news__section--share .page-news__section-inner,
.page-news__section--tags .page-news__section-inner,
.page-news__section--back .page-news__section-inner {
    background: #ffffff;
}

/* ========================================
   Section Heading
   ======================================== */
.page-news__section-heading {
    position: absolute;
    top: -31px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    white-space: nowrap;
    word-break: break-word;
}

.page-news__section-heading-wordmark {
    position: relative;
    display: inline-flex;
    padding-bottom: 3px;
    font-family: var(--technoauto-font-en);
    font-style: italic;
    font-weight: 700;
    font-size: 50px;
    line-height: 1;
}

.page-news__section-heading-wordmark-shadow {
    position: absolute;
    top: 3px;
    left: 3px;
    color: var(--technoauto-bg-brand, #439fff);
}

.page-news__section-heading-wordmark-front {
    position: relative;
    color: var(--technoauto-bg-base, #ffffff);
    /* 2026-10-14 佐藤様指摘: 文字の中に黒線が入らないよう TOP .c-wordmark__front と同じ
       paint-order:stroke fill で stroke を文字の背面に回す */
    -webkit-text-stroke: 2px var(--technoauto-border-base, #39364e);
            text-stroke: 2px var(--technoauto-border-base, #39364e);
    paint-order: stroke fill;
}

.page-news__section-heading-jp {
    font-family: var(--technoauto-font-jp);
    font-weight: 700;
    font-size: 30px;
    line-height: 1.5;
    color: var(--technoauto-text-primary, #000);
}

.page-news__section-heading-lead {
    font-family: var(--technoauto-font-jp);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
    color: var(--technoauto-text-primary, #000);
    text-align: center;
    white-space: normal;
}

/* Hero は共通パーツ c-page-hero を使用 (figma-components.css 側で定義) */

.page-news__breadcrumb {
    background: var(--technoauto-bg-brand-strong, #2f8aee);
    border: 1px solid var(--technoauto-border-base, #39364e);
    border-radius: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    line-height: 1;
}

.page-news__breadcrumb-item {
    font-family: var(--technoauto-font-jp);
    font-weight: 400;
    font-size: 12px;
    color: var(--technoauto-text-inverse, #fff);
    text-decoration: none;
}

.page-news__breadcrumb-item--current {
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-news__breadcrumb-sep {
    font-family: var(--ytc-font-jp, "Noto Sans JP", sans-serif);
    font-style: normal;
    font-size: 10px;
    color: #6bd0ff;
}

/* ========================================
   Section / CATEGORIES (archive)
   ======================================== */
.page-news__cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.page-news__cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 10px 20px;
    border: 1px solid var(--technoauto-border-base, #39364e);
    border-radius: 999px;
    background: #ffffff;
    color: var(--technoauto-text-primary, #000);
    font-family: var(--technoauto-font-jp);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.page-news__cat:hover {
    background: var(--technoauto-bg-brand-soft, #6bd0ff);
}

.page-news__cat--active {
    background: var(--technoauto-bg-brand, #439fff);
    color: #ffffff;
}

/* ========================================
   Search form (archive)
   ======================================== */
.page-news__search {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 720px;
    margin-top: 20px;
}

.page-news__search-field {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--technoauto-border-base, #39364e);
    border-radius: 999px;
    padding: 0 20px;
    gap: 10px;
}

.page-news__search-icon {
    font-family: var(--ytc-font-jp, "Noto Sans JP", sans-serif);
    font-weight: 900;
    color: var(--technoauto-text-secondary, #787878);
    font-size: 16px;
}

.page-news__search-input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 12px 0;
    font-family: var(--technoauto-font-jp);
    font-size: 15px;
    color: var(--technoauto-text-primary, #000);
}

.page-news__search-input::placeholder {
    color: var(--technoauto-text-secondary, #787878);
}

.page-news__search-submit {
    background: var(--technoauto-bg-brand, #439fff);
    color: #ffffff;
    border: 1px solid var(--technoauto-border-base, #39364e);
    border-radius: 999px;
    padding: 10px 24px;
    font-family: var(--technoauto-font-jp);
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.page-news__search-submit:hover {
    background: var(--technoauto-bg-brand-strong, #2f8aee);
}

/* ========================================
   Section / TAGS (single)
   ======================================== */
.page-news__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    justify-content: flex-start;
}

/* ========================================
   Section / ARTICLES (archive list)
   ======================================== */
.page-news__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
}

.page-news__item {
    background: #ffffff;
    border: 1px solid var(--technoauto-border-base, #39364e);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.page-news__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(57, 54, 78, 0.12);
}

.page-news__item-link {
    display: flex;
    flex-direction: column;
    gap: 0;
    color: inherit;
    text-decoration: none;
    padding: 0;
    height: 100%;
}

.page-news__item-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--technoauto-bg-subtle, #edf9ff);
    overflow: hidden;
    position: relative;
}

.page-news__item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-news__item-thumb--placeholder::after {
    content: "NO IMAGE";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--technoauto-font-en);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: var(--technoauto-text-muted, #a1a1a1);
}

.page-news__item-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    min-width: 0;
    flex: 1;
}

.page-news__item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.page-news__item-date {
    font-family: var(--technoauto-font-en);
    font-weight: 700;
    font-size: 14px;
    color: var(--technoauto-text-secondary, #787878);
    line-height: 1;
}

.page-news__item-cat {
    background: var(--technoauto-bg-brand, #439fff);
    color: #ffffff;
    border-radius: 999px;
    padding: 3px 10px;
    font-family: var(--technoauto-font-jp);
    font-weight: 700;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
}

.page-news__item-cat--info    { background: #439fff; }
.page-news__item-cat--blog    { background: #20d99b; }
.page-news__item-cat--event   { background: #ffef6b; color: #000; }
.page-news__item-cat--oc      { background: #ffb84a; color: #000; }
.page-news__item-cat--school  { background: #ff5a5a; }

.page-news__item-title {
    font-family: var(--technoauto-font-jp);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.5;
    color: var(--technoauto-text-primary, #000);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-news__item-excerpt {
    font-family: var(--technoauto-font-jp);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.7;
    color: var(--technoauto-text-secondary, #787878);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-news__empty {
    padding: 40px 0;
    text-align: center;
    color: var(--technoauto-text-secondary, #787878);
    font-size: 16px;
    width: 100%;
}

/* ========================================
   Pagination
   ======================================== */
.page-news__pagination {
    width: 100%;
    display: flex;
    justify-content: center;
}

.page-news__pagination .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-news__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--technoauto-border-base, #39364e);
    border-radius: 999px;
    background: #ffffff;
    color: var(--technoauto-text-primary, #000);
    font-family: var(--technoauto-font-en);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.page-news__pagination .page-numbers:hover {
    background: var(--technoauto-bg-brand-soft, #6bd0ff);
}

.page-news__pagination .page-numbers.current {
    background: var(--technoauto-bg-brand, #439fff);
    color: #ffffff;
}

.page-news__pagination .page-numbers.dots {
    border: 0;
    background: transparent;
}

/* ========================================
   Single / BODY
   ======================================== */
.page-news__body {
    width: 100%;
    font-family: var(--technoauto-font-jp);
    font-size: 16px;
    line-height: 1.9;
    color: var(--technoauto-text-primary, #000);
}

.page-news__body > * + * { margin-top: 1.2em; }
.page-news__body h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    margin-top: 2em;
    padding: 12px 16px;
    border-left: 5px solid var(--technoauto-bg-brand, #439fff);
    background: var(--technoauto-bg-subtle, #edf9ff);
    border-radius: 4px;
}
.page-news__body h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    margin-top: 1.8em;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--technoauto-bg-brand, #439fff);
}
.page-news__body p { line-height: 1.9; }
.page-news__body a {
    color: var(--technoauto-text-link, #439fff);
    text-decoration: underline;
}
.page-news__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    /* 2026-10-14 佐藤様指摘: 本文画像の上下余白と、縦長画像は中央寄せ */
    display: block;
    margin: 32px auto;
}
/* figure/画像ブロックも中央寄せ (wp-block-image 等) */
.page-news__body figure,
.page-news__body .wp-block-image,
.page-news__body .wp-caption {
    margin: 32px auto;
    text-align: center;
}
.page-news__body figure img,
.page-news__body .wp-block-image img {
    margin: 0 auto;
}
/* 縦長画像 (aspect-ratio < 1 相当) は幅を控えめにして中央寄せ */
.page-news__body img[height][width] {
    object-fit: contain;
}
.page-news__body ul,
.page-news__body ol {
    padding-left: 1.6em;
}
.page-news__body ul li { list-style: disc; }
.page-news__body ol li { list-style: decimal; }
.page-news__body blockquote {
    border-left: 4px solid var(--technoauto-border-subtle, #dadada);
    padding: 12px 16px;
    color: var(--technoauto-text-secondary, #787878);
    background: #fafafa;
    border-radius: 4px;
}

.page-news__thumb {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.page-news__thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Single / SHARE
   ======================================== */
.page-news__share {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.page-news__share-label {
    font-family: var(--technoauto-font-jp);
    font-weight: 700;
    font-size: 14px;
    color: var(--technoauto-text-primary, #000);
}

.page-news__share-list {
    display: flex;
    gap: 12px;
    align-items: center;
}

.page-news__share-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--technoauto-border-base, #39364e);
    background: #ffffff;
    color: var(--technoauto-text-primary, #000);
    text-decoration: none;
    font-family: var(--technoauto-font-en);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}

.page-news__share-btn--x       { background: #000000; color: #ffffff; border-color: #000000; }
.page-news__share-btn--facebook { background: #1877f2; color: #ffffff; border-color: #1877f2; }
.page-news__share-btn--line    { background: #06c755; color: #ffffff; border-color: #06c755; }

.page-news__share-btn:hover { opacity: 0.85; }

/* ========================================
   Single / RELATED
   ======================================== */
.page-news__related {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.page-news__related-item {
    background: #ffffff;
    border: 1px solid var(--technoauto-border-base, #39364e);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.page-news__related-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(57, 54, 78, 0.12);
}

.page-news__related-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.page-news__related-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--technoauto-bg-subtle, #edf9ff);
    overflow: hidden;
    position: relative;
}

.page-news__related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-news__related-thumb--placeholder::after {
    content: "NO IMAGE";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--technoauto-font-en);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: var(--technoauto-text-muted, #a1a1a1);
}

.page-news__related-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
}

.page-news__related-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-news__related-date {
    font-family: var(--technoauto-font-en);
    font-weight: 700;
    font-size: 12px;
    color: var(--technoauto-text-secondary, #787878);
}

.page-news__related-cat {
    background: var(--technoauto-bg-brand, #439fff);
    color: #ffffff;
    border-radius: 999px;
    padding: 2px 8px;
    font-family: var(--technoauto-font-jp);
    font-weight: 700;
    font-size: 11px;
    line-height: 1.5;
    white-space: nowrap;
}

.page-news__related-title {
    font-family: var(--technoauto-font-jp);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.5;
    color: var(--technoauto-text-primary, #000);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Single / BACK
   ======================================== */
.page-news__back {
    display: flex;
    justify-content: center;
    width: 100%;
}

.page-news__back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: var(--technoauto-bg-brand, #439fff);
    color: #ffffff;
    border: 1px solid var(--technoauto-border-base, #39364e);
    border-radius: 999px;
    font-family: var(--technoauto-font-jp);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s;
}

.page-news__back-link:hover {
    background: var(--technoauto-bg-brand-strong, #2f8aee);
}

.page-news__back-link::before {
    content: "\2039";
    font-size: 20px;
    line-height: 1;
}

/* ========================================
   Breadcrumb (top) — PC では非表示
   ======================================== */
.page-news__breadcrumb--top {
    display: none;
}

/* ========================================
   SP (< 768px)
   ======================================== */
@media screen and (max-width: 768px) {
    .page-news {
        gap: 0;
        padding: 0 0 40px;
        overflow-x: hidden;
    }

    .page-news__breadcrumb--top {
        display: flex;
        background: transparent;
        border: 0;
        border-radius: 0;
        height: auto;
        padding: 14px 16px 12px;
        gap: 8px;
        align-items: center;
        overflow: hidden;
        width: 100%;
        white-space: nowrap;
    }
    .page-news__breadcrumb--top .page-news__breadcrumb-item {
        color: var(--technoauto-text-primary, #000);
        font-size: 12px;
    }
    .page-news__breadcrumb--top .page-news__breadcrumb-sep {
        color: #439fff;
    }

    .page-news__breadcrumb--inline {
        display: none;
    }

    /* Hero SP は c-page-hero 側で定義済み */

    /* Section 共通 SP */
    .page-news__section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0;
    }
    .page-news__section-inner {
        border: 0;
        border-radius: 0;
        padding: 40px 16px;
        gap: 20px;
        margin-top: 0;
        background: transparent;
    }
    .page-news__section-heading {
        position: static;
        transform: none;
        top: auto;
        left: auto;
        gap: 6px;
        white-space: normal;
    }
    .page-news__section-heading-wordmark {
        font-size: 40px;
        line-height: 1;
        padding-bottom: 4px;
        position: relative;
        display: inline-block;
    }
    .page-news__section-heading-wordmark-shadow { display: none; }
    .page-news__section-heading-wordmark-front {
        position: static;
        color: #ffffff;
        -webkit-text-stroke: 2px var(--technoauto-bg-brand, #439fff);
        text-stroke: 2px var(--technoauto-bg-brand, #439fff);
    }
    .page-news__section-heading-jp {
        font-size: 20px;
        line-height: 1.5;
        text-align: center;
    }
    .page-news__section-heading-lead {
        font-size: 13px;
        line-height: 1.7;
        text-align: center;
    }

    /* CATEGORIES SP */
    .page-news__section--categories .page-news__section-inner {
        background: transparent;
    }
    .page-news__cats {
        gap: 8px;
    }
    .page-news__cat {
        min-width: 0;
        padding: 8px 14px;
        font-size: 12px;
    }

    /* ARTICLES SP - Hex clip-path on colored section */
    .page-news__section--articles {
        background: var(--technoauto-bg-section, #d7f2ff);
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 50% 100%, 0 calc(100% - 30px));
        padding-bottom: 40px !important;
    }
    .page-news__section--articles .page-news__section-inner {
        background: transparent;
        padding: 40px 16px 60px;
    }

    .page-news__item-link {
        grid-template-columns: 100px 1fr;
        gap: 12px;
    }
    .page-news__item-thumb {
        width: 100px;
        height: 90px;
    }
    .page-news__item-body {
        padding: 10px 12px 10px 0;
        gap: 6px;
    }
    .page-news__item-title { font-size: 14px; }
    .page-news__item-excerpt { display: none; }
    .page-news__item-date { font-size: 12px; }
    .page-news__item-cat { font-size: 10px; padding: 2px 8px; }

    /* Single body SP */
    .page-news__body { font-size: 15px; }
    .page-news__body h2 { font-size: 20px; }
    .page-news__body h3 { font-size: 17px; }

    /* Share SP */
    .page-news__share-btn { width: 40px; height: 40px; font-size: 13px; }

    /* Related SP - Hex clip-path */
    .page-news__section--related {
        background: var(--technoauto-bg-brand-soft, #6bd0ff);
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 50% 100%, 0 calc(100% - 30px));
        padding-bottom: 40px !important;
    }
    .page-news__section--related .page-news__section-inner {
        background: transparent;
        padding: 40px 16px 60px;
    }
    .page-news__related {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Back SP */
    .page-news__back-link {
        padding: 12px 28px;
        font-size: 14px;
    }

    /* Pagination SP */
    .page-news__pagination .page-numbers {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
    }
}

/* 絞り込みドロップダウン */
.page-news__search-select {
    display: inline-flex;
    align-items: center;
    padding: 10px 36px 10px 20px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M5 6L0 0h10z' fill='%2339364e'/%3E%3C/svg%3E") no-repeat right 14px center/10px 6px;
    border: 1px solid var(--technoauto-border-base, #39364e);
    border-radius: 999px;
    font-family: var(--technoauto-font-jp);
    font-size: 14px;
    color: var(--technoauto-text-primary, #000);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

/* SHARE: 横長 pill 3等分 (Figma 準拠) */
.page-news__share-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
}
.page-news__share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 20px;
    background: #fff;
    border: 1px solid var(--technoauto-border-base, #39364e);
    border-radius: 999px;
    color: var(--technoauto-text-primary, #000);
    font-family: var(--technoauto-font-jp);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: opacity 0.15s;
}
.page-news__share-btn:hover { opacity: 0.85; }

/* タグ: outline + # prefix 対応 (Figma 準拠) */
.c-pill.page-news__tag {
    background: #fff;
    color: var(--technoauto-text-primary, #000);
    border-color: var(--technoauto-border-base, #39364e);
}

/* RELATED カテゴリ色分岐 */
.page-news__related-cat--info  { background: #439fff !important; }
.page-news__related-cat--blog  { background: #20d99b !important; }
.page-news__related-cat--event { background: #ffef6b !important; color: #000 !important; }
.page-news__item-cat--info  { background: #439fff !important; }
.page-news__item-cat--blog  { background: #20d99b !important; }
.page-news__item-cat--event { background: #ffef6b !important; color: #000 !important; }

/* RELATED グリッド: 件数不足時の左寄せ */
.page-news__related {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(0, 1fr));
    grid-auto-columns: 1fr;
    gap: 24px;
    width: 100%;
    justify-content: start;
}
.page-news__related-item {
    max-width: 420px;
}

@media screen and (max-width: 768px) {
    .page-news__share-list { grid-template-columns: 1fr; gap: 10px; }
    .page-news__share-btn { height: 44px; font-size: 14px; }
}

/* ===========================================================================
 * [layout-restore] 2026-10-19 NEWS 記事詳細 (single-news.php) を Figma「37_NEWS_記事詳細」構成に
 *   PC: ヘッダー → 50 → パンくず帯 (1240 x 40 の青ピル) → 50 → 記事カード (白・枠・角丸20・pad 40・gap 30)
 *       カード内: [カテゴリピル + 日付 (14px 青)] → タイトル 26px/700/39 → アイキャッチ (全幅・角丸5・枠) → 本文
 *   SP: ヘッダー直下に全幅のパンくず帯 (40px) → 記事カード (左右 15・pad 30/20・角丸10・gap 10、タイトル 20px/700/30)
 *   旧「ARTICLE / 記事本文」見出しは Figma に無いので非表示 (マークアップは残置)
 * ========================================================================= */
.page-news .page-news__crumb.c-breadcrumb {
    width: 1240px;
    max-width: 100%;
    margin: 0;
}
.page-news .page-news__crumb .c-breadcrumb__item:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}
.page-news__article .page-news__section-heading { display: none; }
.page-news .page-news__article .page-news__section-inner {
    align-items: stretch;
    gap: 30px;
    margin-top: 0;
    padding: 40px;
    background: #fff;
}
.page-news__article-head {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.page-news__article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.page-news .page-news__article-cat.c-pill {
    min-width: 82px;
    height: 20px;
    padding: 0 20px;
    background: var(--ytc-bg-brand, #439fff);
    border: 1px solid var(--ytc-border-strong, #39364e);
    color: #fff;
    font-size: 11px;
    line-height: 1;
}
.page-news__article-date {
    font-family: var(--ytc-font-en, "Montserrat", sans-serif);
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: var(--ytc-bg-brand, #439fff);
}
.page-news__article-title {
    margin: 0;
    font-family: var(--ytc-font-jp, "Noto Sans JP", sans-serif);
    font-weight: 700;
    font-size: 26px;
    line-height: 39px;
    color: var(--ytc-text-primary, #000);
}
/* Figma の画像枠 1160x651。旧ヒーローと同じく枠に合わせてトリミング (縦長写真で記事が間延びしないように) */
.page-news__article-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1160 / 651;
    object-fit: cover;
    border: 1px solid var(--ytc-border-strong, #39364e);
    border-radius: 5px;
}
@media screen and (max-width: 768px) {
    /* ヘッダー側の共通パンくず (TOP > 記事名) は隠し、Figma SP の全幅帯 (TOP > NEWS > 記事名) を出す */
    body:has(.page-news__crumb) .site-breadcrumb { display: none; }
    .page-news:has(.page-news__article) { padding-top: 0; }
    .page-news .page-news__crumb.c-breadcrumb {
        width: 100%;
        height: 40px;
        padding: 0 15px;
        border-width: 0 0 1px;
        border-radius: 0;
    }
    .page-news .page-news__article .page-news__section-inner {
        gap: 10px;
        margin: 30px 15px 0;
        width: auto;
        padding: 30px 20px;
        background: #fff;
        border: 1px solid var(--ytc-border-strong, #39364e);
        border-radius: 10px;
    }
    .page-news__article-head { gap: 10px; }
    .page-news__article-title {
        font-size: 20px;
        line-height: 30px;
    }
    .page-news__article-thumb { margin-top: 0; }
    .page-news .page-news__article-cat.c-pill { height: 22px; font-size: 11px; }
    /* Figma SP 本文 14px/25 */
    .page-news__article .page-news__body,
    .page-news__article .page-news__body p { font-size: 14px; line-height: 25px; }
}
