/* assets/css/news.css
   news.php（一覧）用：現行HTML構造に合わせた版
   依存：base.css / layout.css の変数（--bg, --ink, --muted, --line, --panel, --radius, --shadow, --orange 等）
*/

/* ===== HERO（index/contact と同型） ===== */
.hero {
    width: min(1320px, calc(100% - 56px));
    margin: 0 auto;
    border-radius: var(--radius2);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: #fff;
    overflow: hidden;
    position: relative;
}

.heroSlider {
    position: relative;
    height: 560px;
    background: #111;
}

.heroTrack {
    height: 100%;
    display: flex;
    transition: transform .85s var(--ease);
    will-change: transform;
}

.heroSlide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.heroSlide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.04) contrast(1.03);
    will-change: transform;
    transform: scale(1.06) translate3d(var(--px, 0px), var(--py, 0px), 0);
    transition: transform .35s var(--ease);
}

.heroOverlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 520px at 18% 80%, rgba(0, 0, 0, .55), transparent 62%),
        linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .12), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.heroContent {
    position: absolute;
    left: 44px;
    bottom: 44px;
    width: min(720px, calc(100% - 88px));
    color: #fff;
    pointer-events: auto;
}

.heroKicker {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 1000;
    letter-spacing: .10em;
    text-transform: uppercase;
    font-size: 12px;
    opacity: .95;
}

.heroKicker .kDot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--orange2);
    box-shadow: 0 0 18px rgba(255, 90, 90, .5);
}

.heroTitle {
    margin: 12px 0 0;
    font-size: clamp(30px, 3.3vw, 54px);
    line-height: 1.05;
    font-weight: 1000;
    letter-spacing: -.03em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.heroDesc {
    margin: 14px 0 0;
    font-size: 13.5px;
    line-height: 2.0;
    opacity: .92;
    max-width: 70ch;
    text-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.heroActions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.viewMore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 1000;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
    user-select: none;
    font-size: 13px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.viewMore:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .70);
}

.viewMore:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .16);
}

.viewMore .dot {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: var(--orange2);
    box-shadow: 0 0 18px rgba(255, 90, 90, .45);
}

/* ===== Big Typo ===== */
.bigWord {
    width: min(1320px, calc(100% - 56px));
    margin: 26px auto 0;
    font-weight: 1000;
    letter-spacing: -.05em;
    font-size: clamp(64px, 8.6vw, 150px);
    line-height: .92;
    color: transparent;
    background: linear-gradient(90deg, rgba(255, 46, 46, 1), rgba(255, 90, 90, 1));
    -webkit-background-clip: text;
    background-clip: text;
    transform: skewX(-6deg);
    user-select: none;
    opacity: .95;
}

/* ===== Page wrap ===== */
.pageWrap {
    width: min(1200px, calc(100% - 56px));
    margin: 0 auto;
}

/* =========
  NEWS TOP
========= */
.newsTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 18px;
}

.newsTabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.newsTab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    color: var(--ink);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .02em;
    text-decoration: none;
    transition: transform .18s var(--ease, ease), background .18s var(--ease, ease), border-color .18s var(--ease, ease);
    backdrop-filter: blur(10px);
}

.newsTab:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 0, 0, .18);
}

.newsTab.isActive {
    border-color: rgba(255, 46, 46, .55);
    background: rgba(255, 46, 46, .10);
}

.newsCount {
    font-weight: 900;
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}

/* =========
  GRID
========= */
.newsGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 14px 0 24px;
}

@media (max-width: 980px) {
    .newsGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .newsTop {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsGrid {
        grid-template-columns: 1fr;
    }
}

/* =========
  CARD
========= */
.newsCard {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, .85);
    box-shadow: var(--shadow, 0 16px 60px rgba(0, 0, 0, .08));
    text-decoration: none;
    color: var(--ink);
    transition: transform .18s var(--ease, ease), box-shadow .18s var(--ease, ease), border-color .18s var(--ease, ease);
}

.newsCard:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, .18);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .10);
}

.newsThumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0b0b0b;
}

.newsThumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    filter: saturate(1.02) contrast(1.02);
}

/* body */
.newsBody {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* meta */
.newsMeta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.newsCat {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 46, 46, .10);
    color: #b30000;
    font-weight: 900;
    font-size: 12px;
    line-height: 1;
}

.newsDate {
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
}

/* title / lead */
.newsTitle {
    margin: 0;
    font-size: 18px;
    font-weight: 1000;
    letter-spacing: -.01em;
    line-height: 1.35;
}

.newsLead {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    min-height: 3.4em;
    /* だいたい2行分を確保してカード高さを揃える */
}

.newsMore {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 1000;
    font-size: 12px;
    letter-spacing: .12em;
    color: var(--ink);
    opacity: .92;
    padding-top: 6px;
}

.newsMore .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--orange, #ff2e2e);
    display: inline-block;
}

/* =========
  PAGER
========= */
.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 22px 0 8px;
}

.pgBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .75);
    text-decoration: none;
    color: var(--ink);
    font-weight: 900;
    font-size: 13px;
    white-space: nowrap;
}

.pgBtn:hover {
    border-color: rgba(0, 0, 0, .18);
}

.pgBtn.isDisabled {
    opacity: .45;
    pointer-events: none;
}

.pgNums {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pgNum {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .75);
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--ink);
    font-weight: 1000;
    font-size: 13px;
}

.pgNum.isActive {
    border-color: rgba(255, 46, 46, .55);
    background: rgba(255, 46, 46, .10);
}

.bottomSpace {
    height: 48px;
}

/* ===== admin actions (news card bottom) ===== */
.newsCard {
    /* 既にdisplay等あるならそのまま。なければOK */
}

.newsLink {
    display: block;
    color: inherit;
    text-decoration: none;
}

.newsAdmin {
    display: flex;
    gap: 16px;
    padding: 0 18px 18px;
    margin-top: -4px;
    /* READ MOREに近づけたいなら微調整 */
    align-items: center;
}

.newsAdmin .adminEdit,
.newsAdmin .adminDelete {
    color: var(--orange);
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: .02em;
}

.newsAdmin .adminEdit:hover,
.newsAdmin .adminDelete:hover {
    text-decoration: underline;
}

.newsAdmin .adminDeleteForm {
    margin: 0;
}

.newsAdmin .adminDelete {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}