html, body {
    font-family: 'Noto Sans JP', 'Noto Sans SC', sans-serif;
    overflow-x: hidden;
}

.logo {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
}

main {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

.font-xl {
    font-size: 2em;
}

.font-lg {
    font-size: 1.5em;
}

.font-md {
    font-size: 1.1em;
}

.font-sm {
    font-size: 0.75em;
}

.font-xs {
    font-size: 0.55em;
}


.slide-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 95%;
    height: 100%;
    background-color: #fff;
    transition: right 0.3s ease-in-out;
    z-index: 1050;
    overflow-y: auto;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
}

    .slide-panel.open {
        right: 0;
    }


/* Robot */
.robot-speech-container {
    margin-top: 1rem;
}

.speech-bubble {
    position: relative;
    background: #f0f0f0;
    border-radius: 0.8em;
    padding: 0.5em 0.9em;
    font-size: 1rem;
    line-height: 1.4;
    display: inline-block;
}

    .speech-bubble.robot-left::before {
        content: "";
        position: absolute;
        left: -18px; /* トゲを左にオフセット */
        top: 12px; /* トゲの垂直位置 */
        width: 0;
        height: 0;
        border: 6px solid transparent; /* 全辺6pxにして小型に */
        border-right: 18px solid #f0f0f0; /* トゲの長さと色 */
    }

/*Task */
.badge-checkmark {
    background-color: #28a745; /* Bootstrap's "success" green */
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    border: 2px solid white;
}

.ab-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 1020;
}

.ab-slide-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 95%;
    height: 100%;
    background-color: #fff;
    transition: right 0.3s ease-in-out;
    z-index: 1040;
    overflow-y: auto;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
}

    .ab-slide-panel.open {
        right: 0;
    }

    .ab-slide-panel.full {
        z-index: 1045;
    }

.bar-wrapper {
    margin-bottom: 0.5rem;
}

.bar-label {
    display: inline-block;
    min-width: 60px;
    font-weight: 500;
    margin-bottom: 2px;
}

.stat-bar {
    height: 24px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.bar-fill {
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.bar-completed {
    background-color: #0d6efd;
}

.bar-active {
    background-color: #20c997;
}

.bar-delayed {
    background-color: #dc3545;
}

.bar-number {
    position: absolute;
    top: 0;
    right: 8px;
    line-height: 24px;
    font-weight: bold;
    color: #212529;
    z-index: 1;
}

.responsive-image-zone {
}

    .responsive-image-zone img {
        max-width: 100%;
        height: auto;
        display: block;
    }


.big-offcanvas {
    width: 600px !important;
}


@media (max-width: 767.98px) {
    .big-offcanvas {
        width: 100% !important;
    }
}

.timestamp-zone {
    width: 130px;
    min-width: 130px;
    flex-shrink: 0;
    font-weight: bold;
}

.vertical-divider {
    width: 4px;
    min-width: 4px;
    background-color: #cccccc;
}

.change-log-zone {
    word-break: break-word;
    overflow-wrap: break-word;
}

.drag-handle {
    cursor: grab;
    touch-action: none;
}

#sortableEnvironmentList [data-id] {
    user-select: none;
    -webkit-user-drag: none;
    touch-action: pan-y;
}

body.dragging {
    cursor: grabbing !important;
}

/* Unified back button style */
.ab-back-btn-wrapper {
    margin-left: -0.5rem; /* slight negative margin to align to left edge */
}

.ab-back-btn {
    color: #444;
    font-weight: 500;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

    .ab-back-btn:hover {
        color: #0d6efd; /* Bootstrap primary hover tone */
        text-decoration: none;
    }

    .ab-back-btn i {
        font-size: 1.25rem;
        vertical-align: middle;
    }

.ab-header {
    line-height: 1; /* baseline consistency */
}

.ab-header-actions .btn {
    border-color: #dee2e6;
    color: #444;
    padding: 0.45rem 0.6rem;
    font-size: 1.1rem;
    transition: all 0.15s ease;
}

    .ab-header-actions .btn:hover {
        color: #0d6efd;
        border-color: #cbd3da;
        background-color: rgba(13,110,253,0.06);
    }

    .ab-header-actions .btn:focus {
        box-shadow: none;
    }

.ab-section-title {
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1;
    margin: 0;
    padding-left: 0.25rem; /* tiny spacing between icon and text */
    padding-bottom:0.25em;
    display: flex;
    align-items: center; /* centers text relative to icon */
    color: #222;
}

.project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

    .project-grid .project-item {
        width: calc(50% - 1rem); /* mobile */
    }

@media (min-width: 768px) {
    .project-grid .project-item {
        width: calc(33.333% - 1rem); /* md */
    }
}

@media (min-width: 992px) {
    .project-grid .project-item {
        width: calc(25% - 1rem); /* lg */
    }
}