/* Builder Heading Presets
   ブロック内見出し（タイトル/サブ見出し/ショップ説明文等）に適用される装飾プリセット。
   ecport-storefront/resources/views/themes/ecomus/components/heading.blade.php と
   ecport-manage/resources/views/builder/pages/edit.blade.php のプリセット定義と対応。
   命名規則: .ecp-heading.ecp-heading--<preset-id>
   accent-color は CSS変数 --ecp-heading-accent で上書き可能。 */

.ecp-heading {
    --ecp-heading-accent: #c9a86b;
    --ecp-heading-color: inherit;
    display: block;
    color: var(--ecp-heading-color);
    margin: 0;
}

.ecp-heading--block {
    display: block;
}

.ecp-heading-wrap {
    display: block;
}

/* ───── シンプル系 ───── */

/* none: 装飾なし */
.ecp-heading--none {}

/* underline-center: 中央下に短い線 */
.ecp-heading--underline-center {
    display: inline-block;
    padding-bottom: 14px;
    position: relative;
}
.ecp-heading--underline-center::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    background-color: var(--ecp-heading-accent);
    border-radius: 2px;
}
.ecp-heading-wrap--underline-center { text-align: center; }

/* underline-left: 左寄せ + 下線 */
.ecp-heading--underline-left {
    display: inline-block;
    padding-bottom: 12px;
    position: relative;
    text-align: left;
}
.ecp-heading--underline-left::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    background-color: var(--ecp-heading-accent);
    border-radius: 2px;
}
.ecp-heading-wrap--underline-left { text-align: left; }

/* accent-bar-left: 左にアクセントバー（縦線） */
.ecp-heading--accent-bar-left {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding-left: 0;
    text-align: left;
}
.ecp-heading--accent-bar-left::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 1em;
    background-color: var(--ecp-heading-accent);
    border-radius: 2px;
    flex-shrink: 0;
}
.ecp-heading-wrap--accent-bar-left { text-align: left; }

/* center-rule: センター左右に細線 */
.ecp-heading--center-rule {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    text-align: center;
    max-width: 100%;
    justify-content: center;
    white-space: nowrap;
}
.ecp-heading--center-rule::before,
.ecp-heading--center-rule::after {
    content: "";
    display: inline-block;
    width: 80px;
    min-width: 40px;
    height: 2px;
    background-color: var(--ecp-heading-accent, #c9a86b);
    flex-shrink: 0;
}
.ecp-heading-wrap--center-rule { text-align: center; }

/* ───── 装飾系 ───── */

/* eyebrow-en: 上に小さい英字併記（data-eyebrow 属性で英字を渡す） */
.ecp-heading--eyebrow-en {
    display: inline-block;
    position: relative;
    padding-top: 28px;
}
.ecp-heading--eyebrow-en::before {
    content: attr(data-eyebrow);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7em;
    letter-spacing: 0.2em;
    color: var(--ecp-heading-accent);
    text-transform: uppercase;
    font-weight: 500;
    font-family: "Helvetica Neue", "Arial", sans-serif;
}
.ecp-heading-wrap--eyebrow-en { text-align: center; }
.ecp-heading-wrap--eyebrow-en.text-start .ecp-heading--eyebrow-en::before { left: 0; transform: none; }
.ecp-heading-wrap--eyebrow-en.text-end .ecp-heading--eyebrow-en::before { left: auto; right: 0; transform: none; }

/* bracket: [ ] ブラケット囲み */
.ecp-heading--bracket {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.ecp-heading--bracket::before { content: "["; color: var(--ecp-heading-accent); font-weight: 300; }
.ecp-heading--bracket::after  { content: "]"; color: var(--ecp-heading-accent); font-weight: 300; }

/* dot-leader: 左右にドットリーダー */
.ecp-heading--dot-leader {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    text-align: center;
    width: 100%;
    justify-content: center;
}
.ecp-heading--dot-leader::before,
.ecp-heading--dot-leader::after {
    content: "";
    flex: 0 1 80px;
    height: 6px;
    background-image: radial-gradient(circle, var(--ecp-heading-accent) 1.2px, transparent 1.6px);
    background-size: 10px 6px;
    background-repeat: repeat-x;
    background-position: center;
}
.ecp-heading-wrap--dot-leader { text-align: center; }

/* tag-label: ラベル風タグ */
.ecp-heading--tag-label {
    display: inline-block;
    background-color: var(--ecp-heading-accent);
    color: #fff !important;
    padding: 0.4em 1em;
    border-radius: 999px;
    font-size: 0.85em;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

/* ───── 強調系 ───── */

/* bg-fill: 背景塗り + パディング */
.ecp-heading--bg-fill {
    display: inline-block;
    background-color: var(--ecp-heading-accent);
    color: #fff !important;
    padding: 0.5em 1em;
    border-radius: 4px;
}

/* gradient-underline: グラデーション下線 */
.ecp-heading--gradient-underline {
    display: inline-block;
    padding-bottom: 12px;
    position: relative;
}
.ecp-heading--gradient-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background-image: linear-gradient(90deg, var(--ecp-heading-accent), transparent);
    border-radius: 2px;
}

/* display-large: 大型表示 */
.ecp-heading--display-large {
    display: block;
    font-size: 1.4em;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* shadow-drop: ドロップシャドウ */
.ecp-heading--shadow-drop {
    display: inline-block;
    text-shadow: 3px 3px 0 var(--ecp-heading-accent);
    font-weight: 700;
}

/* ───── ミニマル系 ───── */

/* wide-spacing: 大letter-spacing */
.ecp-heading--wide-spacing {
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.9em;
}

/* bold-uppercase: 極太大文字 */
.ecp-heading--bold-uppercase {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

/* double-line: 上下に二重線 */
.ecp-heading--double-line {
    display: inline-block;
    padding: 14px 0;
    border-top: 1px solid var(--ecp-heading-accent);
    border-bottom: 1px solid var(--ecp-heading-accent);
    position: relative;
}
.ecp-heading--double-line::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 100%;
    height: 1px;
    background-color: var(--ecp-heading-accent);
    opacity: 0.5;
}
.ecp-heading--double-line::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 100%;
    height: 1px;
    background-color: var(--ecp-heading-accent);
    opacity: 0.5;
}

/* quiet-label: 薄色のサブテキスト風 */
.ecp-heading--quiet-label {
    color: #888 !important;
    font-weight: 400;
    font-size: 0.85em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
