/* fixed-new-buttonは.section-header-with-button内で使用すること */
.fixed-new-button {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin: 0;
}

.fixed-new-button .btn {
    background-color: var(--unit-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s;
}

.fixed-new-button .btn:hover {
    background-color: rgb(81, 123, 169);
}

/* section-header-with-button内での配置 */
.section-header-with-button {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px;
}

.section-header-with-button h2,
.section-header-with-button h3,
.section-header-with-button h4 {
    margin: 0 !important;
    flex: 0 1 auto !important;
}

.section-header-with-button .fixed-new-button {
    display: inline-flex !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}
  

/* モバイル対応 */
@media (max-width: 768px) {
    .section-header-with-button {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-header-with-button h2,
    .section-header-with-button h3,
    .section-header-with-button h4 {
        text-align: left !important;
        width: 100%;
    }
    
    .section-header-with-button .fixed-new-button {
        width: 50%;
        margin: 0 auto;
        justify-content: center;
    }
    
    .section-header-with-button .fixed-new-button .btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        text-align: center;
    }
}
  