/**
 * ふるさと縁 - 共通デザインシステムCSS
 * index.html / flow.html で共有
 */

/* === Base === */
html {
    scroll-behavior: smooth;
}

/* === Chart Container (Chart.js用) === */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    height: 300px;
    max-height: 400px;
}
@media (min-width: 768px) {
    .chart-container {
        height: 350px;
    }
}

/* flow.html用: 横棒グラフはやや狭め */
.chart-container--compact {
    max-width: 700px;
    height: 250px;
    max-height: 300px;
}
@media (min-width: 768px) {
    .chart-container--compact {
        height: 300px;
    }
}

/* === Glass Panel (固定ナビ背景) === */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(229, 152, 155, 0.2);
}

/* === Mask Gradient === */
.mask-gradient-l {
    mask-image: linear-gradient(to right, transparent, black);
    -webkit-mask-image: linear-gradient(to right, transparent, black);
}

/* === Step Active (フロー・活動の流れセクション) === */
.step-active {
    border-left-color: #E5989B;
    background-color: #FFF0F0;
}

/* === Nav Link Active === */
.nav-link.active {
    color: #E5989B;
    border-bottom: 2px solid #E5989B;
}

/* === Timeline (flow.html用) === */
.timeline-line {
    position: absolute;
    left: 1.25rem;
    top: 2rem;
    bottom: 0;
    width: 2px;
    background-color: #F4E1D2;
    z-index: 0;
}

.step-btn.active .step-icon {
    background-color: #E5989B;
    color: white;
    border-color: #E5989B;
    transform: scale(1.1);
}

.step-btn.active .step-text {
    color: #E5989B;
    font-weight: bold;
}

/* === about.html用: 縦書きテキスト === */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}
