/**
 * Section Title Styles
 * セクションタイトルのスタイル
 */

/* ==========================================================================
   基本スタイル
   ========================================================================== */

.heading.section-title {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 60px;
    color: var(--text-color);
    font-weight: bold;
}

/* バー装飾 */
.heading.section-title .bar {
    position: relative;
    display: block;
    width: 50px;
    height: 1px;
    margin-bottom: 0;
    background: var(--border-color);
}

.heading.section-title .bar::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 20px;
    height: 3px;
    background: var(--gradient-diagonal);
}

/* タイトル要素 */
.heading.section-title .title-wrapper {
    display: grid;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0;
}

.heading.section-title .title-text {
    display: block;
    font-size: 1.5rem;
    line-height: 1.4;
}

.heading.section-title .title-en {
    font-size: 0.875rem;
    font-weight: bold;
    line-height: 1.4;
    color: var(--text-color);
    font-family: var(--font-en);
    letter-spacing: -0.025em;
    padding-left: 1%;
    text-align: left;
}

.heading.section-title .title-ja {
    font-size: clamp(1.875rem, 1.7885rem + 0.3846vw, 2.25rem);
    font-weight: bold;
    line-height: 1.4;
}

/* ==========================================================================
   Level 2: セクションサブタイトル (.section-subtitle)
   縦線バーで中レベルの見出しを表現
   ========================================================================== */

.heading.section-subtitle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    color: var(--text-color);
    font-weight: bold;
}

.heading.section-subtitle .bar {
    display: block;
    width: 4px;
    height: 24px;
    background: var(--text-color);
    border-radius: 2px;
    flex-shrink: 0;
}

.heading.section-subtitle .title-wrapper {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
}

.heading.section-subtitle .title-en {
    font-size: clamp(1.125rem, 1.02rem + 0.46vw, 1.5rem);
    font-weight: bold;
    line-height: 1.4;
    font-family: var(--font-en);
    letter-spacing: -0.025em;
}

.heading.section-subtitle .title-ja {
    font-size: clamp(0.8125rem, 0.72rem + 0.4vw, 1.125rem);
    font-weight: bold;
    line-height: 1.4;
}

/* ==========================================================================
   Level 3: セクションラベル (.section-label)
   ドットアクセントで小レベルの見出しを表現
   ========================================================================== */

.heading.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: bold;
}

.heading.section-label::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    background: var(--text-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.heading.section-label .title-ja {
    font-size: clamp(0.8125rem, 0.74rem + 0.31vw, 1rem);
    font-weight: bold;
    line-height: 1.4;
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */

/* モバイル（767px以下） */
@media screen and (max-width: 767.98px) {
    .heading.section-title .title-wrapper {
        display: grid;
        gap: 0;
    }
}

/* タブレット（768px - 1199px） */
@media screen and (min-width: 768px) {

    .heading.section-title .bar {
        width: 80px;
    }

    .heading.section-title .bar::before {
        width: 30px;
    }

    .heading.section-title .title-text {
        font-size: 1.625rem;
    }

    .heading.section-subtitle .bar {
        height: 28px;
    }

    .heading.section-subtitle .title-wrapper {
        gap: 16px;
    }
}

/* デスクトップ（1200px以上） */
@media screen and (min-width: 1200px) {
    .heading.section-title {
        flex-direction: row;
        align-items: center;
        gap: 0;
        margin-bottom: 120px;
    }

    .heading.section-title .bar {
        width: 110px;
        margin-right: 10px;
    }

    .heading.section-title .bar::before {
        width: 40px;
    }

    .heading.section-subtitle {
        gap: 16px;
        margin-bottom: 48px;
    }

    .heading.section-subtitle .bar {
        height: 32px;
    }

    .heading.section-subtitle .title-wrapper {
        gap: 20px;
    }

    .heading.section-label {
        margin-bottom: 28px;
    }
}

/* ==========================================================================
   カラーバリエーション
   ========================================================================== */

/* --- section-title --- */
.heading.section-title.text-primary { color: var(--bs-primary, #0d6efd); }
.heading.section-title.text-success { color: var(--bs-success, #198754); }
.heading.section-title.text-info { color: var(--bs-info, #0dcaf0); }
.heading.section-title.text-warning { color: var(--bs-warning, #ffc107); }
.heading.section-title.text-danger { color: var(--bs-danger, #dc3545); }
.heading.section-title.text-dark { color: var(--bs-dark, #212529); }

.heading.section-title.bar-primary .bar::before { background: var(--bs-primary, #0d6efd); }
.heading.section-title.bar-success .bar::before { background: var(--bs-success, #198754); }
.heading.section-title.bar-info .bar::before { background: var(--bs-info, #0dcaf0); }
.heading.section-title.bar-warning .bar::before { background: var(--bs-warning, #ffc107); }
.heading.section-title.bar-danger .bar::before { background: var(--bs-danger, #dc3545); }

/* --- section-subtitle --- */
.heading.section-subtitle.text-primary { color: var(--bs-primary, #0d6efd); }
.heading.section-subtitle.text-success { color: var(--bs-success, #198754); }
.heading.section-subtitle.text-info { color: var(--bs-info, #0dcaf0); }
.heading.section-subtitle.text-warning { color: var(--bs-warning, #ffc107); }
.heading.section-subtitle.text-danger { color: var(--bs-danger, #dc3545); }
.heading.section-subtitle.text-dark { color: var(--bs-dark, #212529); }

.heading.section-subtitle.bar-primary .bar { background: var(--bs-primary, #0d6efd); }
.heading.section-subtitle.bar-success .bar { background: var(--bs-success, #198754); }
.heading.section-subtitle.bar-info .bar { background: var(--bs-info, #0dcaf0); }
.heading.section-subtitle.bar-warning .bar { background: var(--bs-warning, #ffc107); }
.heading.section-subtitle.bar-danger .bar { background: var(--bs-danger, #dc3545); }

/* --- section-label --- */
.heading.section-label.text-primary { color: var(--bs-primary, #0d6efd); }
.heading.section-label.text-success { color: var(--bs-success, #198754); }
.heading.section-label.text-info { color: var(--bs-info, #0dcaf0); }
.heading.section-label.text-warning { color: var(--bs-warning, #ffc107); }
.heading.section-label.text-danger { color: var(--bs-danger, #dc3545); }
.heading.section-label.text-dark { color: var(--bs-dark, #212529); }

.heading.section-label.dot-primary::before { background: var(--bs-primary, #0d6efd); }
.heading.section-label.dot-success::before { background: var(--bs-success, #198754); }
.heading.section-label.dot-info::before { background: var(--bs-info, #0dcaf0); }
.heading.section-label.dot-warning::before { background: var(--bs-warning, #ffc107); }
.heading.section-label.dot-danger::before { background: var(--bs-danger, #dc3545); }

