/* ブロック全体 */
.hero-banner {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-banner-background,
.hero-banner-overlay {
    position: absolute;
    inset: 0;
}

.hero-banner-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-banner-overlay {
    pointer-events: none;
}

/* 中身 */
.hero-banner-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 60px 40px;
    box-sizing: border-box;
}

/* テキストエリア */
.hero-banner-content {
    max-width: 600px;
}

/* キャッチコピー */
.hero-banner-heading {
    margin: 0 0 10px;
    line-height: 1.2;
}

/* 説明文 */
.hero-banner-subheading {
    margin: 0 0 20px;
}

/* ボタン（デフォルト値。個別設定はインラインstyleが上書き） */
.hero-banner-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    background: #ff6b6b;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* オーバーレイ画像 */
.hero-banner-media {
    max-width: 40%;
}

/* レイアウト（左右入れ替え） */
.hero-banner--layout-image-right .hero-banner-inner {
    flex-direction: row;
}

.hero-banner--layout-image-left .hero-banner-inner {
    flex-direction: row-reverse;
}

.hero-banner--layout-no-image .hero-banner-media {
    display: none;
}

/* 横位置 */
.hero-banner--align-left .hero-banner-inner {
    justify-content: flex-start;
}
.hero-banner--align-center .hero-banner-inner {
    justify-content: center;
}
.hero-banner--align-right .hero-banner-inner {
    justify-content: flex-end;
}

/* 縦位置 */
.hero-banner--valign-top .hero-banner-inner {
    align-items: flex-start;
}
.hero-banner--valign-center .hero-banner-inner {
    align-items: center;
}
.hero-banner--valign-bottom .hero-banner-inner {
    align-items: flex-end;
}

/* 背景エフェクト：ブラー */
.hero-banner--effect-blur .hero-banner-background {
    filter: blur(6px);
    transform: scale(1.05);
}

/* エディター用サムネイル */
.hero-banner-thumb {
    margin-top: 10px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .hero-banner-inner {
        padding: 40px 20px;
    }
    .hero-banner-media {
        max-width: 100%;
    }
}

/* 全幅表示用（テーマ側でalignfullを定義していない場合の保険） */
.wp-block-nano-hero-banner.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
