/* =========================================================
   TOP ヒーロー：動画背景 × 写真抜きタイトル（白帯レイアウト）
   - 動画をキャンバスに描画し、白帯にかかる文字だけ動画で抜く
   - 動画の上の文字は白フチのみ
   ========================================================= */
.hero-knockout {
    --hk-blue: #0066cc;
    --hk-blue-2: #436ceb;
    --hk-navy: #1d3f8f;
    --hk-mute: #6b7891;
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 640px;
    max-height: 1100px;
    margin-top: 0 !important;
    overflow: hidden;
    background: #0a1f4d;
}

.hero-knockout__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
}

.hero-knockout__media::-webkit-media-controls,
.hero-knockout__media::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.hero-knockout__canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
}

/* JS 無効・描画前のフォールバック（動画＋白帯だけ表示） */
.hero-knockout__fallback-band {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 34%;
    background: #fff;
}

.hero-knockout.is-ready .hero-knockout__fallback-band {
    display: none;
}

.hero-knockout__band {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px clamp(22px, 4.2vh, 44px);
    box-sizing: border-box;
}

.hero-knockout__title {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 900;
    color: var(--hk-navy);
    font-size: clamp(1.3rem, 2.6vw, 2.2rem);
    line-height: 1.5;
    letter-spacing: 0.04em;
}

.hero-knockout__title .hk-accent {
    color: var(--hk-blue);
}

.hero-knockout__title,
.hero-knockout__lead {
    text-wrap: balance;
}

.hero-knockout__lead {
    margin: 6px 0 0;
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    line-height: 1.7;
    color: var(--hk-mute);
    letter-spacing: 0.04em;
}

.hero-knockout__cta {
    margin-top: clamp(12px, 2.2vh, 22px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hero-knockout__cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.hero-knockout__cta .hk-btn-primary {
    background: var(--hk-blue-2);
    color: #fff;
    box-shadow: 0 6px 18px rgba(67, 108, 235, 0.35);
}

.hero-knockout__cta .hk-btn-primary:hover {
    background: #325ad1;
    transform: translateY(-2px);
    opacity: 1;
}

.hero-knockout__cta .hk-btn-ghost {
    border: 2px solid var(--hk-blue);
    color: var(--hk-blue);
    background: #fff;
}

.hero-knockout__cta .hk-btn-ghost:hover {
    background: #f4f8fb;
    transform: translateY(-2px);
    opacity: 1;
}

/* 右側のスクロール誘導 */
.hero-knockout__scroll {
    position: absolute;
    right: clamp(14px, 2.6vw, 36px);
    top: 46%;
    z-index: 2;
    color: #fff;
    font-family: "Jost", sans-serif;
    font-size: 11px;
    letter-spacing: 0.3em;
    writing-mode: vertical-rl;
    opacity: 0.85;
}

.hero-knockout__scroll::after {
    content: "";
    display: block;
    width: 1px;
    height: 56px;
    margin: 10px auto 0;
    background: #fff;
    animation: hk-scroll-line 1.8s infinite;
}

@keyframes hk-scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}


/* JS 無効時：photo-title-layout で書き出した静止画を表示 */
.hero-knockout__noscript {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

/* ---------- 下層ページ用（ABOUT / SERVICE：写真背景） ---------- */
.hero-knockout.hero-knockout--sub {
    height: clamp(500px, 74svh, 780px);
    min-height: 0;
    max-height: none;
    background: #e9eef5;
}

/* SERVICE 詳細（白帯は見出しのみ） */
.hero-knockout.hero-knockout--service {
    height: clamp(500px, 74svh, 780px);
}

.hero-knockout--sub .hero-knockout__fallback-band {
    height: 40%;
}

.hero-knockout__kicker {
    display: block;
    margin: 0 0 6px;
    font-family: "Jost", "Noto Sans JP", sans-serif;
    font-weight: 600;
    font-size: clamp(0.78rem, 1vw, 0.9rem);
    letter-spacing: 0.28em;
    color: var(--hk-blue);
}

.hero-knockout--sub .hero-knockout__title {
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    color: #222;
    letter-spacing: 0.06em;
}

.hero-knockout--service .hero-knockout__title {
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    color: var(--hk-navy);
    letter-spacing: 0.04em;
}

.hero-knockout--sub .hero-knockout__lead {
    max-width: 40em;
}

.hero-knockout--sub .hero-knockout__band {
    padding-bottom: clamp(26px, 5vh, 52px);
}

@media (max-width: 768px) {
    .hero-knockout {
        min-height: 600px;
    }

    .hero-knockout.hero-knockout--sub {
        height: clamp(520px, 80svh, 700px);
    }

    .hero-knockout.hero-knockout--service {
        height: clamp(520px, 80svh, 700px);
    }

    .hero-knockout__scroll {
        display: none;
    }

    .hero-knockout__title br {
        display: inline;
    }

    .hero-knockout__cta a {
        padding: 12px 22px;
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) {
    .hero-knockout__title br {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-knockout__scroll::after {
        animation: none;
    }
}
