@charset "utf-8";

/* hero */
.bp-hero {
    position: relative;
    overflow: hidden;
}

/* 背景画像（全体に敷く） */
.bp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/common/page-mv-bg.webp") no-repeat;
    background-position: left bottom;
    background-size: cover;
    pointer-events: none;
}

/* 上部：タイトルエリア */
.bp-hero-top {
    position: relative;
    z-index: 1;
    padding: calc(var(--header-h) + 40px) 0 0;
}

.news-page .bp-hero-title {
    font-family: "Shippori Antique", serif;
    font-size: clamp(40px, calc(40px + (100vw - 540px) * 40 / 1380), 80px);
    /* 80px at max */
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.2em;
    line-height: 1;
    text-shadow: 0 0 15px #007DCC;
    margin: 0;
}

/* 下部：キャッチコピーエリア */
.news-page .bp-hero-bottom {
    position: relative;
    z-index: 1;
    padding: clamp(100px, calc(100px + (100vw - 768px) * 200 / 832), 300px) 0 0;
    text-align: center;
}

.news-page .bp-hero-catch {
    position: relative;
    font-family: "Ubuntu", system-ui, sans-serif;
    font-size: clamp(40px, calc(40px + (100vw - 540px) * 70 / 1380), 110px);
    /* 110px at max */
    font-weight: 400;
    color: #007DCC;
    letter-spacing: 0.15em;
    margin: 0 0 20px;
    line-height: 1;
    z-index: 1;
}

.bp-hero-catch::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 64%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 30px;
    background: url("../img/common/line-1.png") no-repeat center / 100% auto;
    pointer-events: none;
    z-index: -1;
}

.news-page .bp-hero-lead {
    font-family: "Shippori Antique", serif;
    font-size: clamp(16px, calc(16px + (100vw - 540px) * 24 / 1380), 40px);
    font-weight: 400;
    color: #007DCC;
    letter-spacing: 0.2em;
    margin: 0;
    line-height: 2;
}

.bp-hero-catch-font {
    font-family: "Shippori Antique", serif;
    font-size: clamp(32px, calc(32px + (100vw - 540px) * 63 / 1380), 95px);
}

/* =========================
  News archive base
========================= */
.page-news-container {
    margin-top: 100px;
    margin-bottom: 100px;
}

.news-page {
    --acc: #007dcc;
    margin-top: -32px;
}

.news-page .c-secTitle {
    margin-bottom: 20px;
}

.news-page .c-secTitle-line {
    width: 25px;
    background: var(--acc);
}

.news-page .c-secTitle-text {
    font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.news-lead {
    margin: 0 0 18px;
    opacity: 0.85;
}

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
    margin-top: 70px;
}

@media(max-width:768px) {
    .news-page {
        margin-top: -46px;
    }

    .page-news-container {
        margin-top: 50px;
    }
}

/* =========================
  Tabs
========================= */
.news-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0 14px;
}

.news-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 999px;
    text-decoration: none;
    line-height: 1;
    background: rgba(0, 0, 0, 0.01);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
    box-shadow: none;
}

.news-tab:hover {
    transform: translateY(-1px);
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.22);
}

.news-tab.is-active {
    font-weight: 700;
    border-color: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(0, 125, 204, 0.12);
}

/* =========================
  Search
========================= */
.news-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin: 12px 0 18px;
}

.news-search input[type='search'] {
    -webkit-appearance: none;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 12px;
    color: var(--text, #111);
    background: #fff;
}

.news-search button {
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 12px;
    background: #fff;
    color: var(--text, #111);
    cursor: pointer;
}

.news-search--main {
    display: none;
}

/* =========================
  Grid / Card
========================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
    /* tuned */
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    /* tuned */
    border-color: rgba(0, 0, 0, 0.16);
}

.news-card__link {
    display: block;
    text-decoration: none;
    height: 100%;
    color: var(--text);
}

.news-card__thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.news-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    filter: saturate(1.02) contrast(1.02);
    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.news-card:hover .news-card__thumb img {
    transform: scale(1.06);
}

.news-card__thumb--placeholder {
    width: 100%;
    height: 100%;
    background: rgba(112, 193, 255, 0.053);
}

.news-card__thumb--logo {
    display: grid;
    place-items: center;
}

.news-card__thumb--logo img {
    width: min(180px, 60%);
    height: auto;
    opacity: 0.6;
}

.news-card__body {
    padding: 14px 14px 16px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.news-card__date {
    opacity: 0.8;
    white-space: nowrap;
    font-size: 13px;
}

/* categories */
.news-card__cats {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.news-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(0, 125, 204, 0.35);
    background: rgba(0, 125, 204, 0.08);
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.news-chip--more {
    font-weight: 700;
    opacity: 0.85;
}

.news-card__title {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__excerpt {
    margin: 0 0 14px;
    opacity: 0.8;
    line-height: 1.8;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA (center) */
.news-page .c-ctaBtn.news-c-ctaBtn {
    width: clamp(150px,
            calc(150px + (100vw - 1280px) * 50 / 640),
            200px);
    height: 48px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 125, 204, 0.45);
    font-size: 0.875rem;
    line-height: 1;
    letter-spacing: 0.02em;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.c-ctaBtn-arrow {
    width: 13px;
    height: 11px;
    background: #fff;
    -webkit-mask: url('../img/common/cta-arrow.svg') no-repeat center / contain;
    mask: url('../img/common/cta-arrow.svg') no-repeat center / contain;
}

.news-c-ctaBtn {
    color: #3999FF;
    background: #fff;
    border: 1px solid #3999FF;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.news-c-ctaBtn .c-ctaBtn-icon {
    width: 19px;
    height: 19px;
    background: #3999FF;
    margin-right: 4px;
}

.news-c-ctaBtn .c-ctaBtn-arrow {
    background: #fff;
    width: 10px;
    height: 8px;
}

.news-c-ctaBtn:hover {
    background: #3999FF;
    color: #fff;
    border-color: #3999FF;
}

.news-c-ctaBtn:hover .c-ctaBtn-icon {
    background: #fff;
}

.news-c-ctaBtn:hover .c-ctaBtn-arrow {
    background: #3999FF;
}

.news-cta {
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
  Sidebar
========================= */
.news-box {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
    /* tuned */
    margin-bottom: 18px;
}

/* Category list: chips */
.news-catlist {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-catlist li {
    margin: 0;
}

.news-catlist a {
    color: var(--text);
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.02);
    text-decoration: none;
    line-height: 1;
    font-size: 14px;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.news-catlist a:hover {
    transform: translateY(-1px);
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.18);
}

.news-catlist a.is-active {
    font-weight: 700;
    border-color: rgba(0, 125, 204, 0.55);
    background: rgba(0, 125, 204, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 125, 204, 0.1);
}

/* Latest list (if still used elsewhere) */
.news-latest {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: grid;
    gap: 10px;
}

.news-latest__item a {
    display: grid;
    gap: 4px;
    text-decoration: none;
}

.news-side .c-secTitle-text.sidebar-h2 {
    font-size: clamp(20px, calc(20px + (100vw - 540px) * 4 / 1380), 24px);
    font-weight: 400;
}

/* =========================
  Ranking (sidebar)
========================= */
.news-rank {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: grid;
    gap: 10px;
}

.news-rank__item {
    margin: 0;
}

.news-rank__link {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 10px;
    align-items: center;
    padding: 9px 11px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.02);
    text-decoration: none;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
    box-shadow: none;
    /* tuned */
}

.news-rank__link:hover {
    transform: translateY(-1px);
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.14);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    /* tuned */
}

.news-rank__thumb {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 125, 204, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: visible;
    /* badge outside */
}

.news-rank__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

.news-rank__thumb img[src*='header-logo_bule.svg'] {
    width: 78% !important;
    height: auto !important;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    opacity: 0.75;
    border-radius: 0;
}

.news-rank__no {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: rgba(0, 125, 204, 0.92);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.news-rank__item:nth-child(1) .news-rank__no {
    background: rgba(0, 125, 204, 1);
}

.news-rank__item:nth-child(2) .news-rank__no {
    background: rgba(0, 125, 204, 0.88);
}

.news-rank__item:nth-child(3) .news-rank__no {
    background: rgba(0, 125, 204, 0.78);
}

.news-rank__date {
    font-size: 11px;
    opacity: 0.7;
    color: var(--text);
}

.news-rank__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
    font-size: 13px;
    color: var(--text);
}

/* =========================
  Pagination / Empty
========================= */
.news-pagination {
    margin-top: 22px;
    text-align: center;
}

.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    text-decoration: none;
    margin: 0 6px 8px 0;
    color: var(--text);
}

.news-pagination .page-numbers.current {
    font-weight: 700;
    border-color: rgba(0, 125, 204, 0.55);
    background: rgba(0, 125, 204, 0.1);
}

.news-empty {
    margin: 22px 0;
}

/* =========================
  Responsive
========================= */
@media (max-width: 1080px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-layout {
        grid-template-columns: minmax(0, 1fr) 250px;
    }
}

@media (max-width: 900px) {
    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-search--main {
        display: grid;
    }
}

@media(max-width:768px) {
    .bp-hero-top {
        padding: calc(var(--header-h) + 40px) 0 100px;
    }
}

@media (max-width: 560px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
}

/* =========================
  Single (news)
========================= */
.news-single__title {
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.4;
    margin: 10px 0 0;
}

.news-single__meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.news-single__content {
    margin-top: 18px;
}

.news-single__nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
}

.news-single__nav a {
    text-decoration: none;
}

.news-single__back {
    margin-top: 18px;
}

.shippori {
    font-family: "Shippori Antique", serif;
}

.search-news-page {
    margin-top: 50px;
}

/* 下層heroレスポンシブ */
@media(max-width: 768px) {
    .news-page .bp-hero-title {
        display: block;
        text-align: center;
        line-height: 1.1;
    }

    .news-page .bp-hero::before {
        background-size: cover;
        background-position: center top;
    }

    .news-page .bp-hero::after {
        height: 200px;
    }

    .news-page .bp-hero-catch {
        letter-spacing: 0.1em;
    }

    .news-page .bp-hero-catch::after {
        height: 20px;
    }

    .news-page .bp-hero-lead {
        letter-spacing: 0.1em;
    }

    .news-page .bp-hero-bottom {
        padding: clamp(100px, calc(100px + (100vw - 768px) * 200 / 832), 300px) 0 50px;
    }
}

@media(max-width: 540px) {
    .news-page .bp-hero-bottom {
        padding: 40px 0 30px;
    }

    .news-page .bp-hero-catch {
        letter-spacing: 0.08em;
        margin-bottom: 16px;
    }

    .news-page .bp-hero-catch::after {
        height: 15px;
    }

    .news-page .bp-hero-lead {
        letter-spacing: 0.08em;
    }

}

@media(max-width: 375px) {

    .news-page .bp-hero-catch {
        letter-spacing: 0.05em;
        margin-bottom: 12px;
    }

    .news-page .bp-hero-catch::after {
        height: 12px;
    }

    .news-page .bp-hero-lead {
        letter-spacing: 0.05em;
    }
}