/* -----------------------------------------------------------------------------
 * CPT アーカイブ共通スタイル (Works / Knowledge / News)。
 * business.css の biz-band / biz-hologram-wrap / biz-heading と併用する前提。
 * design_handoff_sakazuki_site/pages/SAKAZUKI {Works,Knowledge,News}.dc.html
 * --------------------------------------------------------------------------- */

/* ============================================================
 * バンドの overlay 薄めバリアント (0.18)
 * ========================================================== */

.biz-band__overlay--light {
    background: rgba(35, 150, 190, 0.18);
}

/* ============================================================
 * Archive intro — バンド下の大見出し + リード文
 * ========================================================== */

.cpt-intro {
    position: relative;
    z-index: 1;
    padding: 140px 10vw 60px;
}

.cpt-intro--pad-more {
    padding-bottom: 120px;
}

.cpt-intro h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: var(--sk-fw-black);
    line-height: 1.6;
    letter-spacing: var(--sk-tracking-body);
}

.cpt-intro__lead {
    margin: 30px 0 0;
    font-size: 16px;
    font-weight: var(--sk-fw-bold);
    line-height: var(--sk-line-body);
    letter-spacing: var(--sk-tracking-wide);
}

/* ============================================================
 * Filter — chips
 * ========================================================== */

.cpt-filter {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cpt-filter__row {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 14px;
    align-items: baseline;
}

.cpt-filter__label {
    font-size: 12px;
    font-weight: var(--sk-fw-bold);
    letter-spacing: 0.1em;
    color: var(--sk-color-heading-blue);
}

.cpt-filter__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cpt-filter__chips--inline {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.cpt-chip {
    border-radius: var(--sk-radius-pill);
    padding: 7px 16px;
    font-size: 13px;
    font-weight: var(--sk-fw-bold);
    letter-spacing: var(--sk-tracking-tight);
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid rgba(22, 32, 47, 0.4);
    background: rgba(255, 255, 255, 0.8);
    color: var(--sk-color-text);
    font-family: inherit;
}

.cpt-chip--lg {
    padding: 8px 18px;
    letter-spacing: 0.05em;
}

.cpt-chip[aria-pressed="true"] {
    border: 1px solid var(--sk-color-text);
    background: var(--sk-color-text);
    color: #fff;
}

.cpt-chip:hover {
    /* デフォルトの a:hover を打ち消し (button なので効かないが念のため) */
    transform: none;
}

/* ============================================================
 * Works archive list
 * ========================================================== */

.cpt-works-section {
    position: relative;
    z-index: 1;
    padding: 20px 10vw 120px;
}

.cpt-works-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.cpt-work-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--sk-shadow-card);
    /* transform を明示的に固定 (base.css の a:hover scale(1.05) を確実に打ち消す) */
    transform: translateY(0);
}

.cpt-work-card:hover {
    /* translateY のみ、scale は絶対に効かせない */
    transform: translateY(-4px);
    box-shadow: var(--sk-shadow-card-hover);
    color: var(--sk-color-text);
    -webkit-text-fill-color: var(--sk-color-text);
    background: #fff;
}

/* 画像が親の hover に釣られてズームしないよう、img には常に scale を掛けない */
.cpt-work-card__img,
.cpt-work-card:hover .cpt-work-card__img {
    transform: none;
}

.cpt-work-card__img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.cpt-work-card__ph {
    aspect-ratio: 16 / 9;
    background: #c2c2c2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6d747d;
    letter-spacing: var(--sk-tracking-wide);
}

.cpt-work-card__body {
    padding: 16px 18px 20px;
}

.cpt-work-card__meta {
    margin: 0;
    font-size: 11px;
    font-weight: var(--sk-fw-bold);
    color: var(--sk-color-heading-blue);
    letter-spacing: var(--sk-tracking-wide);
}

.cpt-work-card__title {
    margin: 8px 0 0;
    font-size: 16px;
    font-weight: var(--sk-fw-bold);
    line-height: 1.7;
    letter-spacing: var(--sk-tracking-tight);
}

.cpt-work-card__scope {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: var(--sk-fw-medium);
    color: var(--sk-color-muted);
    letter-spacing: 0.05em;
}

.cpt-empty {
    margin: 40px 0 0;
    text-align: center;
    font-size: 14px;
    font-weight: var(--sk-fw-bold);
    color: var(--sk-color-muted);
}

/* ============================================================
 * Knowledge — featured large card + article grid
 * ========================================================== */

.kb-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(24px, 3.5vw, 44px);
    align-items: center;
    margin-top: 30px;
    background: linear-gradient(135deg, rgba(205, 229, 239, 0.85), rgba(214, 236, 244, 0.6));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: clamp(24px, 3vw, 40px);
}

.kb-featured:hover {
    transform: translateY(-4px);
    box-shadow: var(--sk-shadow-card-hover);
    color: var(--sk-color-text);
    -webkit-text-fill-color: var(--sk-color-text);
    background: linear-gradient(135deg, rgba(205, 229, 239, 0.85), rgba(214, 236, 244, 0.6));
}

.kb-featured__thumb {
    aspect-ratio: 16 / 9;
    background: #c2c2c2;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6d747d;
    letter-spacing: var(--sk-tracking-wide);
}

.kb-featured__meta {
    margin: 0;
    font-size: 12px;
    font-weight: var(--sk-fw-bold);
    letter-spacing: 0.1em;
    color: var(--sk-color-heading-blue);
}

.kb-featured__title {
    margin: 12px 0 0;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: var(--sk-fw-bold);
    line-height: 1.7;
    letter-spacing: var(--sk-tracking-tight);
}

.kb-featured__excerpt {
    margin: 14px 0 0;
    font-size: 14px;
    font-weight: var(--sk-fw-medium);
    line-height: 2;
    letter-spacing: var(--sk-tracking-tight);
}

.kb-articles-section {
    position: relative;
    z-index: 1;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: clamp(70px, 8vw, 120px) 10vw;
}

.kb-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.kb-article-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--sk-shadow-card);
}

.kb-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sk-shadow-card-hover);
    color: var(--sk-color-text);
    -webkit-text-fill-color: var(--sk-color-text);
    background: #fff;
}

.kb-article-card__thumb {
    aspect-ratio: 16 / 9;
    background: #c2c2c2;
    background-size: cover;
    background-position: center;
}

.kb-article-card__body {
    padding: 16px 18px 20px;
}

.kb-article-card__cat {
    margin: 0;
    font-size: 11px;
    font-weight: var(--sk-fw-bold);
    color: var(--sk-color-heading-blue);
    letter-spacing: 0.1em;
}

.kb-article-card__title {
    margin: 8px 0 0;
    font-size: 15px;
    font-weight: var(--sk-fw-bold);
    line-height: 1.8;
    letter-spacing: var(--sk-tracking-tight);
}

.kb-article-card__date {
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: var(--sk-fw-medium);
    color: var(--sk-color-muted);
    letter-spacing: var(--sk-tracking-body);
}

/* ============================================================
 * News archive list — date | category pill | title
 * ========================================================== */

.news-list-section {
    position: relative;
    z-index: 1;
    padding: 140px 10vw 140px;
}

.news-list {
    display: flex;
    flex-direction: column;
    margin-top: 36px;
    border-bottom: 1px solid var(--sk-rule-35);
}

.news-row {
    display: grid;
    grid-template-columns: 110px 130px 1fr;
    gap: 24px;
    align-items: baseline;
    padding: 24px 4px;
    border-top: 1px solid var(--sk-rule-35);
}

.news-row:hover {
    transform: none;
    background: none;
    -webkit-text-fill-color: initial;
    color: inherit;
}

.news-row__date {
    font-size: 14px;
    letter-spacing: var(--sk-tracking-tight);
    color: var(--sk-color-muted);
}

.news-row__cat {
    justify-self: start;
    border: 1px solid rgba(42, 98, 165, 0.5);
    color: var(--sk-color-heading-blue);
    border-radius: var(--sk-radius-pill);
    padding: 4px 14px;
    font-size: 12px;
    font-weight: var(--sk-fw-bold);
    letter-spacing: var(--sk-tracking-body);
    text-align: center;
}

.news-row__title {
    font-size: 16px;
    font-weight: var(--sk-fw-bold);
    letter-spacing: 0.05em;
    line-height: 1.8;
    transform-origin: left center;
    transition: var(--sk-transition-link);
}

.news-row:hover .news-row__title {
    background: var(--sk-grad-hover-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    transform: scale(1.03);
}

/* ============================================================
 * Pagination
 * ========================================================== */

.cpt-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 56px;
    font-size: 14px;
    font-weight: var(--sk-fw-bold);
    letter-spacing: 0.05em;
}

.cpt-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(22, 32, 47, 0.35);
    border-radius: 4px;
    color: var(--sk-color-text);
    text-decoration: none;
}

.cpt-pagination .page-numbers.current {
    background: var(--sk-color-text);
    color: #fff;
    border-color: var(--sk-color-text);
}

.cpt-pagination .page-numbers:hover {
    transform: none;
    background: rgba(22, 32, 47, 0.08);
    -webkit-text-fill-color: var(--sk-color-text);
    color: var(--sk-color-text);
}

/* ============================================================
 * Works CTA (fixed bg + button)
 * ========================================================== */

.cpt-cta {
    position: relative;
    z-index: 1;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: clamp(60px, 7vw, 100px) 10vw;
    text-align: center;
}

.cpt-cta__title {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: var(--sk-fw-bold);
    line-height: 1.8;
    letter-spacing: 0.05em;
    color: var(--sk-color-heading-blue);
}

.cpt-cta__body {
    margin: 20px 0 0;
    font-size: 15px;
    font-weight: var(--sk-fw-bold);
    letter-spacing: 0.05em;
    line-height: 2;
}

.cpt-cta__link-wrap {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

/* ============================================================
 * Responsive
 * ========================================================== */

@media (max-width: 1024px) {
    .cpt-works-grid,
    .kb-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .kb-featured {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .cpt-intro {
        padding: 90px 7vw 40px;
    }
    .cpt-intro h2 {
        font-size: clamp(28px, 8vw, 40px);
    }
    .cpt-filter__row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .cpt-works-section {
        padding: 20px 7vw 90px;
    }
    .cpt-works-grid,
    .kb-articles-grid {
        grid-template-columns: 1fr;
    }
    .kb-articles-section {
        padding: 70px 7vw;
    }
    .news-list-section {
        padding: 90px 7vw 110px;
    }
    .news-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}
