/* ════════════════════════════════════════════
   Block: bigboss/sc-hero
   pr-blocks.css の --bb-* 変数を使用
════════════════════════════════════════════ */

/* ── セクション本体 ──────────────────────── */
.bsc-hero {
    background: var(--bb-ink);
    color: var(--bb-on-ink);
    position: relative;
    overflow: hidden;
}

/* グラデーション背景 */
.bsc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, color-mix(in srgb, var(--bb-accent) 10%, transparent) 0%, transparent 60%),
        radial-gradient(ellipse 50% 80% at 10% 80%, color-mix(in srgb, var(--bb-accent) 5%, transparent) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* グリッド線 */
.bsc-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ── インナーコンテンツ ────────────────────── */
.bsc-hero__inner {
    position: relative;
    z-index: 1;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-block: 96px 48px;
    container-type: inline-size; /* タイトルを「この領域の幅」に追従させる基準（cqi）*/

    @media screen and (min-width: 480px) {
        padding-block: 112px 64px;
    }
    @media screen and (min-width: 768px) {
        padding-block: 128px 80px;
        max-width: 56%;
    }
}

/* ── 見出し ─────────────────────────────── */
.bsc-hero__title {
    font-family: var(--bb-font-display);
    font-size: clamp(38px, 13vw, 140px);    /* フォールバック（cqi 非対応ブラウザ用）*/
    font-size: clamp(38px, 13cqi, 140px);   /* コンテナ幅基準: テキスト領域の幅いっぱいに表示 */
    line-height: .92;
    letter-spacing: -.05em;
    color: var(--bb-on-ink);
    margin: 8px 0 16px;
}

.bsc-hero__title-part {
    display: inline-block;
    white-space: nowrap;
    line-height: 1.05;
}

.bsc-hero__title-accent {
    color: var(--bb-accent);
}

/* ── サブタイトル ─────────────────────────── */
.bsc-hero__subtitle {
    font-size: clamp(13px, 2vw, 17px);
    color: var(--bb-gray-light);
    font-weight: 500;
    margin-bottom: 28px;
    line-height: 1.85;
}

/* ── タグ ────────────────────────────────── */
.bsc-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

.bsc-hero__tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255,255,255,.08);
    color: var(--bb-on-ink);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--bb-radius-sm);
    border: 1px solid rgba(255,255,255,.15);
}

/* ── CTAボタン ───────────────────────────── */
.bsc-hero__ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;

    @media screen and (min-width: 480px) {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ── 楽器画像 ────────────────────────────── */
.bsc-hero__instruments {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bsc-hero__instrument {
    position: absolute;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 28px 60px rgba(0,0,0,.4));
    width: min(260px, 72vw);

    @media screen and (min-width: 480px) {
        width: min(280px, 60vw);
    }
    @media screen and (min-width: 768px) {
        width: min(320px, 28vw);
    }
}

/* SP: 右端1本だけうっすら見せる → 480px・768px で本数を見せていく */
.bsc-hero__instrument--1 {
    top: 10%; right: 50%;
    opacity: .08;
    transform: rotate(-5deg);

    @media screen and (min-width: 480px) { opacity: .15; right: 44%; }
    @media screen and (min-width: 768px) { opacity: 1;   right: 32%; }
}
.bsc-hero__instrument--2 {
    top: 8%;  right: 22%;
    opacity: .10;
    transform: rotate(1deg);

    @media screen and (min-width: 480px) { opacity: .15; right: 24%; }
    @media screen and (min-width: 768px) { opacity: 1;   right: 17%; }
}
.bsc-hero__instrument--3 {
    top: 8%;  right: 2%;
    opacity: .18;
    transform: rotate(5deg);

    @media screen and (min-width: 480px) { opacity: .22; right: 4%; }
    @media screen and (min-width: 768px) { opacity: 1;   right: 2%; }
}

/* ── スクロールインジケーター ────────────── */
.bsc-hero__scroll {
    position: absolute;
    bottom: 32px;
    right: 20px;
    writing-mode: vertical-rl;
    font-family: var(--bb-font-mono);
    font-size: 9px;
    letter-spacing: .2em;
    color: var(--bb-gray);
    text-transform: uppercase;
    z-index: 1;

    @media screen and (min-width: 768px) {
        right: 40px;
    }
}

.bsc-hero__scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--bb-gray), transparent);
    margin-top: 8px;
}

/* ── エディタープレビューバッジ ──────────── */
.bsc-hero__preview-badge {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bb-accent);
    color: var(--bb-white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    z-index: 10;
    white-space: nowrap;
    letter-spacing: .04em;
}

/* ── エディター表示調整 ──────────────────── */
.editor-styles-wrapper .bsc-hero {
    min-height: 400px;
    border-radius: var(--bb-radius-md);
}

.editor-styles-wrapper .bsc-hero__inner {
    min-height: 400px;
    padding-block: 48px;
    max-width: 100%;
}

/* ════════════════════════════════════════════
   Pattern B 拡張: 縦長キービジュアル × テキスト 左右分割
   （bsc_hero_layout = split-left / split-right）
   ════════════════════════════════════════════ */
/* モバイルファースト: 基本は1カラム。ブレイクポイント 1024px で左右分割。
   @media はクラス内にネストして記述する（プロジェクト規約）。 */
.bsc-hero--split .bsc-hero__split {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    padding-block: 112px 64px;

    @media screen and (min-width: 1024px) {
        gap: 48px;
        padding-block: 128px 80px;
    }
}

/* Pattern B: PC（1024px〜）でイメージ × テキストの左右分割。
   画像列は minmax で下限を設け、幅が狭まっても極端に小さくならないようにする。
   テキスト列は minmax(0, …) で適切に縮ませてオーバーフローを防ぐ。 */
.bsc-hero--split-left .bsc-hero__split {
    @media screen and (min-width: 1024px) {
        grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
    }
}
.bsc-hero--split-right .bsc-hero__split {
    @media screen and (min-width: 1024px) {
        grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    }
}

/* SP: キービジュアルを上・テキスト(inner)を下に（order:-1）。
   DOM順は inner→figure のため、SPは画像を先頭へ。 */
.bsc-hero--split .bsc-hero__visual {
    order: -1;
}
/* PC: split-right は画像を右へ戻す（SPの order:-1 を解除）。left は -1 のまま */
.bsc-hero--split-right .bsc-hero__visual {
    @media screen and (min-width: 1024px) {
        order: 0;
    }
}

/* split時は inner の 100svh / max-width 56% 制約を解除して通常フローに */
.bsc-hero--split .bsc-hero__inner {
    min-height: 0;
    max-width: none;
    justify-content: center;
    padding-block: 0;
}

/* 装飾ナンバー（VOL. 07 / 08）*/
.bsc-hero__volume {
    font-family: var(--bb-font-display);
    font-size: clamp(14px, 2vw, 20px);
    letter-spacing: .1em;
    color: var(--bb-accent);
    margin-bottom: 4px;
}

/* キービジュアル（モバイルファースト: SP=横長4/3・上部 → PCで縦長）*/
.bsc-hero__visual {
    position: relative;
    z-index: 1;
    margin: 0;
    border-radius: var(--bb-radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;

    @media screen and (min-width: 1024px) {
        aspect-ratio: 3 / 4;
    }
    @media screen and (min-width: 1200px) {
        aspect-ratio: 4 / 5;
    }
}

.bsc-hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
