/* ==========================================================================
   Bocek Corporate Red — トップページ
   FV → 導入企業ロゴ → About → 事業内容 → レポート → ニュース
   ========================================================================== */

/* ==========================================================================
   FV
   ========================================================================== */
.bk-fv {
    position: relative;
    overflow: hidden;
    height: calc(100vh + 89px);
    min-height: 640px;
    padding: 0 0 4vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bk-fv__defs {
    position: absolute;
}

/* ---------- PC: 写真3枚＋赤い線 ---------- */
.bk-fv__photo {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 95vh;
    overflow: hidden;
    pointer-events: none;
}

.bk-fv__reveal {
    position: absolute;
    inset: 0;
    animation: bkFvReveal 1.6s var(--bk-ease-io) .2s both;
}

.bk-fv__grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    clip-path: url(#bk-fv-wave);
}

.bk-fv__tile {
    position: relative;
    animation: bkFvTile 1.3s var(--bk-ease-out) .35s both;
}

.bk-fv__tile:nth-child(2) {
    animation-delay: .5s;
}

.bk-fv__tile:nth-child(3) {
    animation-delay: .65s;
}

.bk-fv__tile img {
    position: absolute;
    left: 1px;
    top: 0;
    width: calc(100% + 2px);
    max-width: none;
    height: 82%;
    object-fit: cover;
    object-position: 50% 20%;
    filter: grayscale(1);
    animation: bkFvKen 1.8s var(--bk-ease-out) .35s both;
}

.bk-fv__tile:nth-child(1) img {
    left: -1px;
    top: -2px;
    height: 88%;
    animation-delay: .2s;
}

.bk-fv__tile:nth-child(3) img {
    top: 14px;
    height: 78%;
    animation-delay: .5s;
}

.bk-fv__stroke {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    color: var(--bk-accent);
    clip-path: inset(0 100% 0 0);
    animation: bkFvReveal 1.8s var(--bk-ease-io) .45s both;
}

/* ---------- SP: 写真3枚＋赤い帯（767px以下で表示） ---------- */
.bk-fv__sp {
    display: none;
}

/* ---------- キャッチコピー ---------- */
.bk-fv__text {
    position: relative;
    height: 22vh;
    margin: 0 0 10vh;
    padding: 0 3% 0 24%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 24px;
}

.bk-fv__title {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin: -.06em 0;
    padding: .06em 0;
    overflow: hidden;
    white-space: nowrap;
    font-family: var(--bk-font);
    font-size: clamp(40px, min(4.8vw, 8vh), 84px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: .005em;
    color: var(--bk-ink);
}

.bk-fv__w {
    display: block;
    animation: bkUp 1s var(--bk-ease-out) .05s both;
}

.bk-fv__w--2 {
    animation-delay: .15s;
}

.bk-fv__w--3 {
    animation-delay: .28s;
}

.bk-fv__w--4 {
    animation-delay: .4s;
}

.bk-fv__accent {
    color: var(--bk-accent);
}

.bk-fv__br {
    display: none;
}

.bk-fv__sub {
    margin: 0;
    font-family: var(--bk-font);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .06em;
    text-align: right;
    color: var(--bk-ink);
    animation: bkUp 1s var(--bk-ease-out) .7s both;
}

@keyframes bkFvReveal {
    0% { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

@keyframes bkFvRevealSp {
    0% { clip-path: inset(-20% 100% -20% 0); }
    100% { clip-path: inset(-20% 0 -20% 0); }
}

@keyframes bkFvTile {
    0% { transform: translateY(24px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes bkFvKen {
    0% { scale: 1.08; }
    100% { scale: 1; }
}

@keyframes bkUp {
    0% { transform: translateY(105%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   導入企業ロゴ
   ========================================================================== */
.bk-logos {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 同じ並びを2回出力し、半分（1周分）だけ動かしてつなぎ目なくループさせる */
.bk-logos__track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    padding-right: 80px;
    animation: bkMarquee var(--bk-marquee, 45s) linear infinite;
}

.bk-logos__track--reverse {
    animation-name: bkMarqueeReverse;
}

.bk-logos__track img {
    display: block;
    flex-shrink: 0;
    width: auto;
    max-width: 220px;
    height: 36px;
    object-fit: contain;
}

@keyframes bkMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes bkMarqueeReverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ==========================================================================
   セクション共通
   ========================================================================== */
.bk-top__sections {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    padding: 96px 80px 0;
    display: flex;
    flex-direction: column;
    gap: 96px;
}

.bk-sec__inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.bk-sec-head {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bk-sec-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: var(--bk-font-en);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .05em;
    color: var(--bk-accent);
}

.bk-sec-label::before {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bk-accent);
}

.bk-sec-title {
    margin: 0;
    font-family: var(--bk-font);
    font-size: 40px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .01em;
    color: var(--bk-ink);
}

.bk-sec-title--bold {
    font-weight: 700;
}

.bk-sec-title__accent {
    color: var(--bk-accent);
}

/* 見出しと「全て見る」の行 */
.bk-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.bk-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid var(--bk-ink);
    color: var(--bk-ink);
    font-family: var(--bk-font-jp);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: .03em;
    text-decoration: none;
    transition: color .25s, border-color .25s, gap .25s;
}

.bk-more:hover {
    gap: 14px;
    border-color: var(--bk-accent);
    color: var(--bk-accent);
}

.bk-more svg {
    display: block;
    flex-shrink: 0;
}

/* ==========================================================================
   About
   ========================================================================== */
.bk-about__body {
    display: flex;
    flex-direction: column;
}

.bk-lead {
    margin: 0;
    font-family: var(--bk-font);
    font-size: 22px;
    font-weight: 500;
    line-height: 44px;
    color: var(--bk-ink);
    text-wrap: pretty;
}

/* 「AXといえば、Bocek。」: 表示されたら赤いマーカーを左から引く */
.bk-marker {
    padding: 0 6px;
    background-image: linear-gradient(var(--bk-accent), var(--bk-accent));
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 100% 100%;
    color: #FFFFFF;
    transition: background-size .7s var(--bk-ease-io), color .25s ease .35s;
}

.bk-js .bk-marker:not(.is-in) {
    background-size: 0% 100%;
    color: var(--bk-ink);
}

.bk-about__btn {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 32px;
    height: 60px;
    margin-top: -72px;
    padding: 20px 28px 20px 36px;
    border-radius: 100px;
    background: var(--bk-dark);
    color: #FFFFFF;
    font-family: var(--bk-font-jp);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .03em;
    white-space: nowrap;
    text-decoration: none;
    transition: background .3s, gap .3s, transform .3s;
}

.bk-about__btn:hover {
    gap: 44px;
    background: var(--bk-accent);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.bk-about__btn svg {
    display: block;
    flex-shrink: 0;
}

/* ==========================================================================
   事業内容
   ========================================================================== */
.bk-service__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bk-svc-feature {
    position: relative;
    display: block;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    background: url(../images/top/service-ax.webp) 50% 40% / cover no-repeat;
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: transform .45s var(--bk-ease-out), box-shadow .45s;
}

.bk-svc-feature:hover {
    color: #FFFFFF;
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(227, 38, 46, .22);
}

.bk-svc-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg, color-mix(in srgb, var(--bk-accent) 80%, transparent) 0%, rgba(255, 255, 255, 0) 100%);
}

.bk-svc-feature__text {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 64px;
    transform: translateY(-50%);
    width: 493px;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
}

.bk-svc-feature__title {
    display: block;
    font-family: var(--bk-font);
    font-size: 34px;
    font-weight: 500;
    line-height: 42px;
}

.bk-svc-feature__desc {
    display: block;
    font-family: var(--bk-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-wrap: pretty;
}

.bk-svc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.bk-svc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    height: 240px;
    padding: 24px;
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--bk-ink);
    text-decoration: none;
    transition: transform .45s var(--bk-ease-out), box-shadow .45s;
}

.bk-svc-card:hover {
    color: var(--bk-ink);
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .1);
}

.bk-svc-card--nayuta {
    gap: 32px;
    padding: 20px;
}

.bk-svc-card__logo {
    display: block;
    height: auto;
}

.bk-svc-card--taskhub .bk-svc-card__logo {
    width: 263px;
    max-width: 50%;
}

.bk-svc-card--nayuta .bk-svc-card__logo {
    width: 268px;
    max-width: 55%;
    margin: -10px 0;
}

.bk-svc-card__text {
    display: block;
    text-align: center;
    font-family: var(--bk-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: .05em;
}

.bk-svc-card--nayuta .bk-svc-card__text {
    line-height: 22px;
}

/* ==========================================================================
   レポート
   ========================================================================== */
.bk-report-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* --d: 表示の遅延（カードごとに0.12秒ずつずらす） */
.bk-report-card {
    display: block;
    text-decoration: none;
    transition: transform 1s var(--bk-ease-out) var(--d, 0s), opacity 1s var(--bk-ease-out) var(--d, 0s);
}

.bk-report-card.is-settled {
    transition-delay: 0s;
}

.bk-report-card.is-in:hover {
    transform: translateY(-8px);
}

.bk-report-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #FFFFFF;
    color: var(--bk-ink);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: box-shadow .35s;
}

.bk-report-card__inner:hover {
    box-shadow: 0 20px 48px rgba(0, 0, 0, .12);
}

.bk-report-card__thumb {
    display: block;
    aspect-ratio: 19 / 10;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: #F2F2F2;
}

.bk-report-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bk-report-card__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 24px 26px;
}

.bk-report-card__title {
    display: block;
    font-family: var(--bk-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--bk-ink);
}

.bk-report-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bk-report-card__date,
.bk-report-card__cat {
    font-family: var(--bk-font-jp);
    font-size: 14px;
    line-height: 1;
}

.bk-report-card__date {
    font-weight: 500;
    letter-spacing: .05em;
    color: var(--bk-text2);
}

.bk-report-card__cat {
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--bk-accent);
}

/* ==========================================================================
   ニュース
   ========================================================================== */
.bk-news .bk-sec__inner {
    gap: 32px;
}

.bk-news-list {
    display: flex;
    flex-direction: column;
}

.bk-news-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--bk-border);
    color: var(--bk-ink);
    text-decoration: none;
    transition: color .25s;
}

.bk-news-item:last-child {
    border-bottom: 0;
}

.bk-news-item:hover {
    color: var(--bk-accent);
}

.bk-news-item svg {
    display: block;
}

.bk-news-item__main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.bk-news-item__meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bk-news-item__date {
    margin-top: 3px;
    font-family: var(--bk-font-en);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .04em;
    color: var(--bk-text2);
}

.bk-news-item__cat {
    font-family: var(--bk-font-jp);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .03em;
    color: var(--bk-accent);
}

.bk-news-item__title {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: var(--bk-font-jp);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: inherit;
}

/* 本文の冒頭（ver9 (3)）。タイトルとの間は 16px から 8px に詰め、2行までで切る */
.bk-news-item__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin-top: -8px;
    font-family: var(--bk-font-jp);
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    color: var(--bk-text2);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1279px) {
    .bk-top__sections {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 1023px) {
    .bk-fv__text {
        padding: 0 40px;
    }

    .bk-fv__title {
        font-size: clamp(34px, 6.4vw, 52px);
    }

    .bk-top__sections {
        padding-top: 88px;
        padding-bottom: 56px;
        gap: 96px;
    }

    .bk-top__sections > section,
    .bk-top__sections > section > div {
        min-width: 0;
    }

    .bk-sec-title {
        font-size: clamp(36px, 5vw, 44px);
    }

    /* About: 行の改行をやめ、段落ごとに折り返す */
    .bk-lead {
        font-size: 19px;
        line-height: 36px;
    }

    .bk-lead br {
        display: none;
    }

    .bk-lead .bk-para br.bk-br-keep {
        display: inline;
    }

    .bk-para {
        display: block;
    }

    .bk-lead .bk-marker {
        margin-left: -6px;
    }

    .bk-about__btn {
        margin-top: 32px;
    }

    .bk-svc-feature {
        height: 260px;
    }

    .bk-svc-feature__text {
        left: 40px;
        right: 40px;
        top: 50%;
        width: auto;
    }

    .bk-svc-feature__desc br {
        display: none;
    }

    .bk-svc-feature__title {
        font-size: 36px;
        line-height: 44px;
    }

    .bk-svc-card {
        height: 240px;
    }

    /* レポート: 横スクロールのカルーセル */
    .bk-report-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
        width: calc(100% + 80px);
        min-width: 0;
        margin: -12px -40px -24px;
        padding: 12px 40px 24px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 40px;
        scrollbar-width: none;
    }

    .bk-report-grid::-webkit-scrollbar {
        display: none;
    }

    .bk-report-grid > a {
        flex: 0 0 320px;
        width: 320px;
        scroll-snap-align: start;
    }
}

@media (max-width: 767px) {
    /* FV（SP）: 402px 幅を基準に --u、画面の高さに合わせて --h で縮める */
    .bk-fv {
        --u: calc(100vw / 402);
        --h: clamp(calc(var(--u) * .55), calc((100svh - var(--u) * 216) / 669), var(--u));
        height: auto;
        min-height: 0;
        padding: 0 0 calc(var(--u) * 28);
        justify-content: flex-start;
        background: var(--bk-site-bg);
    }

    .bk-fv__photo {
        display: none;
    }

    .bk-fv__sp {
        display: block;
        position: relative;
        width: 100%;
        height: calc(var(--h) * 669);
        overflow: hidden;
        pointer-events: none;
    }

    .bk-fv__sp-reveal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: calc(var(--h) * 634.5);
        animation: bkFvReveal 1.6s var(--bk-ease-io) .2s both;
    }

    .bk-fv__sp-grid {
        position: absolute;
        inset: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        clip-path: url(#bk-fv-wave-sp);
    }

    .bk-fv__sp-grid > div {
        position: relative;
        overflow: hidden;
    }

    .bk-fv__sp-grid img {
        position: absolute;
        left: -1px;
        top: 0;
        width: calc(100% + 2px);
        max-width: none;
        height: 100%;
        object-fit: cover;
        object-position: 50% 20%;
        filter: grayscale(1);
    }

    .bk-fv__sp-curve {
        position: absolute;
        left: 0;
        top: 0;
        width: calc(var(--u) * 449.839);
        height: calc(var(--h) * 105.718);
        transform-origin: 0 0;
        transform: translate(calc(var(--u) * -26.696), calc(var(--h) * 563.742)) matrix(.998, -.062, .062, .998, 0, 0);
    }

    .bk-fv__sp-curve svg {
        display: block;
        width: 100%;
        height: 100%;
        overflow: visible;
        color: #E3262E;
        clip-path: inset(-20% 100% -20% 0);
        animation: bkFvRevealSp 1.8s var(--bk-ease-io) .45s both;
    }

    .bk-fv__text {
        height: auto;
        margin: 0;
        padding: 0 calc(var(--u) * 33);
        justify-content: flex-start;
        align-items: stretch;
        gap: calc(var(--u) * 16);
    }

    .bk-fv__title {
        flex-wrap: wrap;
        justify-content: flex-end;
        font-size: calc(var(--u) * 42);
        line-height: 1.3;
        letter-spacing: 0;
        color: #0D0D0D;
    }

    .bk-fv__br {
        display: block;
        flex-basis: 100%;
        height: 0;
    }

    .bk-fv__sub {
        font-size: 13px;
        line-height: calc(var(--u) * 20);
        letter-spacing: .03em;
        text-align: right;
        color: #0D0D0D;
    }

    .bk-logos {
        padding: 36px 0;
        gap: 28px;
    }

    .bk-logos__track {
        gap: 48px;
        padding-right: 48px;
    }

    .bk-logos__track img {
        height: 30px;
    }

    .bk-top__sections {
        padding: 64px 24px 48px;
        gap: 72px;
    }

    .bk-sec-title {
        font-size: clamp(28px, 8.5vw, 32px);
        line-height: 1.25;
    }

    .bk-head-row {
        gap: 16px;
    }

    .bk-head-row > .bk-more {
        flex-shrink: 0;
        padding: 6px 4px;
        font-size: 14px;
        line-height: 20px;
        white-space: nowrap;
    }

    .bk-head-row > .bk-more svg {
        width: 14px;
        height: 14px;
    }

    .bk-lead {
        font-size: 16px;
        line-height: 32px;
        letter-spacing: .01em;
    }

    .bk-about .bk-sec__inner {
        gap: 16px;
    }

    .bk-about__btn {
        align-self: stretch;
        justify-content: space-between;
        height: 56px;
        margin-top: 24px;
        padding: 0 24px 0 28px;
        font-size: 16px;
    }

    .bk-svc-feature {
        display: flex;
        align-items: center;
        height: 300px;
        min-height: 0;
        padding: 40px;
    }

    .bk-svc-feature__text {
        position: relative;
        z-index: 1;
        left: auto;
        right: auto;
        top: auto;
        width: 100%;
        max-width: 100%;
        padding: 0;
        transform: none;
    }

    .bk-svc-feature__text > span {
        overflow-wrap: anywhere;
    }

    .bk-svc-feature__title {
        font-size: 26px;
        line-height: 34px;
        letter-spacing: .01em;
    }

    .bk-svc-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bk-svc-card,
    .bk-svc-card--nayuta {
        height: 300px;
        gap: 24px;
        padding: 24px 16px;
    }

    .bk-svc-card__text {
        font-size: 15px;
        letter-spacing: .03em;
    }

    .bk-report-grid {
        gap: 16px;
        width: calc(100% + 48px);
        margin: -12px -24px -24px;
        padding: 12px 24px 24px;
        scroll-padding: 0 24px;
    }

    .bk-report-grid > a {
        flex: 0 0 min(78vw, 340px);
        width: min(78vw, 340px);
    }

    .bk-report-card__body {
        padding: 20px 20px 24px;
    }

    .bk-news-item__title {
        white-space: normal;
    }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
    .bk-fv__reveal,
    .bk-fv__tile,
    .bk-fv__tile img,
    .bk-fv__stroke,
    .bk-fv__w,
    .bk-fv__sub,
    .bk-fv__sp-reveal,
    .bk-fv__sp-curve svg {
        animation: none;
        clip-path: none;
    }

    .bk-logos__track {
        animation: none;
    }

    .bk-marker,
    .bk-report-card {
        transition: none;
    }
}
